/* global.css - Re-written to match the screenshot's simple, high-contrast style */

:root {
    /* High-contrast palette: Black text on white background */
    --bg-color: #ffffff;        /* White background */
    --text-color: #000000;      /* Black text */
    --accent-color: #0000ff;    /* Bright Blue for links, similar to screenshot */

    /* Simple, readable fonts with a slight "old web" or "typewriter" feel */
    --font-serif: 'Times New Roman', Times, serif; /* Used for body/main content */
    --font-mono: 'Courier New', Courier, monospace; /* Used for logo/nav/special text */
}

/* --- BASE STYLES --- */

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-serif); /* Main content font */
    margin: 0;
    padding: 25px 50px; /* More padding to give a spacious feel */
    line-height: 1.6; /* Slightly looser line spacing for readability */
}

/* Reset the default link styles to match the simple, blue aesthetic */
a {
    color: var(--accent-color);
    text-decoration: none; /* No underline by default */
}

a:hover {
    text-decoration: underline;
}

/* --- NAVIGATION / HEADER AREA --- */

/* The 'nav' area for the main links (Kontakt, Risografie, Pseudoforschung) */
nav {
    margin-bottom: 25px;
    /* No border-bottom or complex styling needed, keeping it simple */
}

nav ul {
    list-style-type: disc; /* Use standard bullet points */
    padding-left: 20px;
    margin: 0;
}

nav li {
    font-size: 1.2rem; /* Slightly larger size */
    margin-bottom: 5px;
}

nav a {
    color: var(--text-color); /* Navigation links are black text */
    font-family: var(--font-serif);
    font-weight: normal;
}

nav a:hover {
    color: var(--accent-color); /* Highlight only on hover */
    text-decoration: none;
}

/* --- MAIN CONTENT & TYPOGRAPHY --- */

/* Text on the right side: "Wir machen Risografie Druck..." */
.main-text {
    font-size: 1.6rem; /* Large, noticeable size */
    font-weight: 500;
    font-family: var(--font-serif);
    /* In the original, the text wraps naturally, so no max-width is needed here */
    margin-top: 20px;
    margin-left: 50px; /* Add some left margin to separate from the logo/nav */
}

/* Highlighted words within the main text (like "Risografie Druck") */
.highlight {
    color: var(--accent-color);
    font-style: italic;
    font-weight: bold;
}

/* Logo or Title (if text-based) */
.logo {
    font-family: var(--font-mono); /* Use the code/typewriter font */
    font-size: 2.5rem; /* Very large and impactful */
    font-weight: bold;
    text-transform: uppercase;
}

/* The footer text "Wir sind Caro und Lulu + ∞" */
.footer-text {
    font-size: 0.9rem;
    margin-top: 50px;
    padding-top: 15px;
    border-top: 1px solid var(--text-color); /* Thin black line separation */
    width: fit-content; /* Only draw the line under the content */
}

/* Common container: Keeping your original structure but simplifying its role */
.container {
    max-width: 1200px; /* A bit wider to allow the layout to breathe */
    margin: 0 auto;
    /* The screenshot suggests a two-column or free-form layout,
       so simple centering is the main goal here. */
}

/* --- STICKY SITE HEADER --- */
/* Always visible at top, links back to home */

.site-header {
    position: sticky;
    top: 0;
    background-color: var(--bg-color);
    padding: 10px 0;
    margin: -25px -50px 20px -50px;
    padding: 10px 50px;
    border-bottom: 1px solid var(--text-color);
    z-index: 100;
}

.site-header a {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    font-weight: bold;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.site-header a:hover {
    text-decoration: underline;
}

/* --- CPG LAB STYLES --- */
/* Adapted for early web / zine aesthetic */

h1 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: bold;
    font-style: italic;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--text-color);
    padding-bottom: 10px;
    max-width: 800px;
}

h3 {
    margin-top: 0;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: bold;
}

/* Demo sections - simple stacked layout */
.demo-section {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px dashed var(--text-color);
}

.demo-section:last-of-type {
    border-bottom: none;
}

/* Control panels - minimal styling */
.controls {
    border: 1px solid var(--text-color);
    padding: 15px;
    width: 320px;
    flex-shrink: 0;
}

/* Canvas wrapper */
.canvas-wrapper {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

canvas {
    border: 1px solid var(--text-color);
    background-color: #fff;
    max-width: 100%;
}

/* Control groups */
.control-group {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dotted #999;
}

.control-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.val-display {
    font-family: var(--font-mono);
    color: var(--accent-color);
}

input[type=range] {
    width: 100%;
    cursor: pointer;
}

/* Code display - typewriter style */
.code-display {
    background: #f5f5f5;
    border: 1px solid var(--text-color);
    border-left: 3px solid var(--accent-color);
    padding: 10px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-color);
    line-height: 1.4;
    margin-top: 12px;
    white-space: pre-wrap;
    overflow-x: auto;
}

.comment { color: #666; font-style: italic; }
.var { color: var(--text-color); }
.func { color: var(--accent-color); }
.num { color: #333; }

/* Preset buttons - simple web 1.0 style */
.preset-btn {
    background: var(--bg-color);
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 3px 8px;
    margin: 2px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.preset-btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

/* --- PROJECT PREVIEW CARDS --- */

.project-preview {
    margin-top: 8px;
    margin-left: 0;
}

.project-preview img {
    display: block;
    max-width: 300px;
    border: 2px solid var(--text-color);
    margin-bottom: 8px;
}

.project-preview small {
    display: block;
    max-width: 300px;
    line-height: 1.4;
}

/* --- CONTACT FOOTER --- */

.contact-footer {
    margin-top: 300px;
    margin-left: 0;
    position: relative;
    display: inline-block;
}

.contact-footer::before {
    content: '';
    position: absolute;
    background-color: #00ff00;
    top: 5px;
    bottom: 5px;
    left: 10px;
    right: 10px;
    z-index: -1;
}

.contact-footer a {
    display: block;
    color: var(--text-color);
    font-family: var(--font-serif);
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    text-transform: lowercase;
    margin-bottom: 5px;
    padding: 2px 0;
}

.contact-footer a:last-child {
    margin-bottom: 0;
}

.contact-footer a:hover {
    text-decoration: underline;
}