/* bros-bytes.com – Stylesheet */

/* Orbitron self-hosted (Variable Font, deckt 600–700 ab) –
   kein Google-Fonts-Request mehr (DSGVO, CSP font-src 'self') */
@font-face {
    font-family: 'Orbitron';
    font-style: normal;
    font-weight: 600 700;
    font-display: swap;
    src: url('../fonts/orbitron-latin-600-700.woff2') format('woff2');
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scrollbar-gutter: stable;
    scroll-behavior: smooth;
}

body {
    background: #000000;
    margin: 0;
    padding: 0;
}

/* Seiten-Body (alle Seiten; 72px fixe Topbar + 24px Luft) */
.page-body {
    background: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding-top: 96px;
}

/* ── Design Tokens ── */
:root {
    --cols:       12;
    --gutter:     24px;
    --container:  1200px;
    --pad:        40px;        /* seitlicher Abstand Container */
}

/* ── Grid System ── */
.container {
    max-width: var(--container);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--pad);
}

.grid {
    display: grid;
    grid-template-columns: repeat(var(--cols), 1fr);
    gap: var(--gutter);
}

/* Spalten-Helfer  col-1 … col-12 */
.col-1  { grid-column: span 1;  }
.col-2  { grid-column: span 2;  }
.col-3  { grid-column: span 3;  }
.col-4  { grid-column: span 4;  }
.col-5  { grid-column: span 5;  }
.col-6  { grid-column: span 6;  }
.col-7  { grid-column: span 7;  }
.col-8  { grid-column: span 8;  }
.col-9  { grid-column: span 9;  }
.col-10 { grid-column: span 10; }
.col-11 { grid-column: span 11; }
.col-12 { grid-column: span 12; }

/* ── Under Construction ── */
.under-construction {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.uc-img {
    width: min(90%, 800px);
    height: auto;
    display: block;
}

.uc-sub {
    font-family: sans-serif;
    font-size: 16px;
    color: #666;
    letter-spacing: 0.03em;
}

/* ── Topbar ── */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: #0f0f0f;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 100;
}

.topbar-inner {
    max-width: var(--container);
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--pad);
    display: flex;
    align-items: center;
    gap: 24px;
}

/* ── Music Button ── */
.music-btn {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.music-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
}

.music-btn {
    gap: 10px;
}

.music-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.music-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.music-btn .icon-off {
    display: none;
}

.music-btn.muted .icon-on  { display: none; }
.music-btn.muted .icon-off { display: block; }

.topbar-logo img {
    height: 44px;
    width: auto;
    display: block;
}

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-nav a {
    color: #999999;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    transition: color 0.2s;
}

.topbar-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #cccccc;
    transition: width 0.3s ease;
}

.topbar-nav a:hover {
    color: #cccccc;
}

.topbar-nav a:hover::after {
    width: 100%;
}

.topbar-nav a.active {
    color: #ff9933;
}

.topbar-nav a.active::after {
    width: 100%;
    background: #ff9933;
}

.music-btn.on .music-label {
    color: #ff9933;
}

.music-btn.on .icon-on {
    color: #ff9933;
}

/* ── Equalizer Bars ── */
.eq-bars {
    display: none;
    align-items: flex-end;
    gap: 4px;
    height: 22px;
}

.music-btn.on .eq-bars {
    display: flex;
}

.eq-bars span {
    display: block;
    width: 5px;
    background: #ff9933;
    border-radius: 3px 3px 0 0;
    box-shadow: 0 0 6px #ff9933;
    animation: eqBounce 0.6s ease-in-out infinite alternate;
}

.eq-bars span:nth-child(1) { animation-duration: 0.5s;  animation-delay: 0.0s;  }
.eq-bars span:nth-child(2) { animation-duration: 0.75s; animation-delay: 0.1s;  }
.eq-bars span:nth-child(3) { animation-duration: 0.4s;  animation-delay: 0.2s;  }
.eq-bars span:nth-child(4) { animation-duration: 0.65s; animation-delay: 0.05s; }

@keyframes eqBounce {
    from { height: 4px;  opacity: 0.6; }
    to   { height: 22px; opacity: 1;   }
}

.music-btn.on {
    box-shadow: 0 0 14px rgba(255, 153, 51, 0.3);
    border-radius: 6px;
}

.topbar-nav .dot {
    color: #555;
    font-size: 14px;
    line-height: 1;
}


/* ── Scene ── */
.scene {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.monitor-wrap {
    position: relative;
    width: min(90vw, 1200px);
    mask-image:
        linear-gradient(to right,  transparent 0%,  black 8%,  black 92%,  transparent 100%),
        linear-gradient(to bottom, transparent 0%,  black 6%,  black 88%,  transparent 100%);
    mask-composite: intersect;
    -webkit-mask-image:
        linear-gradient(to right,  transparent 0%,  black 8%,  black 92%,  transparent 100%),
        linear-gradient(to bottom, transparent 0%,  black 6%,  black 88%,  transparent 100%);
    -webkit-mask-composite: destination-in;
}

/* ── Home Monitor Swap + Video ── */
.home-monitor {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.monitor-video {
    position: absolute;
    top: 25%;
    left: 24%;
    width: 52%;
    height: 52%;
    object-fit: fill;
    opacity: 0;
    transition: opacity 1s ease;
}

/* ── Frames ── */
.frame {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/*
    Loop-Zyklus: 9 Sekunden
    0   – 3.6s  (0–40%)  : b01 sichtbar
    3.6 – 4.95s (40–55%) : Übergang b01 → b02  (Glow-Blitz + Burn-in)
    4.95– 7.2s  (55–80%) : b02 sichtbar
    7.2 – 9s    (80–100%): Übergang b02 → b01  (sanftes Fade)
*/

.frame-before {
    position: relative;
    animation: beforeLoop 5s ease-in-out infinite;
}

.frame-after {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: afterLoop 5s ease-in-out infinite;
}

/* ── Keyframes ── */

@keyframes beforeLoop {
    0%   { opacity: 1; }
    40%  { opacity: 1; }
    55%  { opacity: 0; }
    80%  { opacity: 0; }
    95%  { opacity: 1; }
    100% { opacity: 1; }
}

@keyframes afterLoop {
    /* wartend */
    0%   { opacity: 0;    filter: blur(0px)  brightness(1); }
    /* Glow-Blitz kurz vor Übergang */
    38%  { opacity: 0;    filter: blur(8px)  brightness(2.5) saturate(2); }
    42%  { opacity: 0.2;  filter: blur(4px)  brightness(3.5) saturate(2.5); }
    44%  { opacity: 0;    filter: blur(8px)  brightness(2.5) saturate(2); }
    /* Burn-in: Logo erscheint */
    55%  { opacity: 1;    filter: blur(0px)  brightness(1)   saturate(1); }
    /* Logo sichtbar */
    80%  { opacity: 1;    filter: blur(0px)  brightness(1)   saturate(1); }
    /* Fade zurück zu b01 */
    95%  { opacity: 0;    filter: blur(0px)  brightness(1); }
    100% { opacity: 0;    filter: blur(0px)  brightness(1); }
}

/* ── Contact Overlay auf CRT-Bildschirm ── */
.contact-overlay {
    position: absolute;
    top: 20%;
    left: 25%;
    right: 25%;
    bottom: 18%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Courier New', Courier, monospace;
    font-size: clamp(9px, 1.0vw, 12px);
    color: #c8c8c8;
    letter-spacing: 0.02em;
}

.cfo-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
    margin-top: 10px;
}

.cfo-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.cfo-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cfo-msg {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cfo-group label {
    font-size: 1em;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.cfo-group input,
.cfo-group textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 2px;
    color: #ff9933;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1em;
    padding: 8px 10px;
    outline: none;
    width: 100%;
    transition: border-color 0.2s;
}

.cfo-msg textarea {
    flex: 1;
    resize: none;
    min-height: 100px;
}

.cfo-group input:focus,
.cfo-group textarea:focus {
    border-color: rgba(255, 153, 51, 0.5);
}

.cfo-group input::placeholder,
.cfo-group textarea::placeholder {
    color: #383838;
}

.cfo-feedback {
    display: none;
    font-size: 0.85em;
    padding: 3px 0;
}

.cfo-success { color: #00cc66; }
.cfo-error   { color: #ff4444; }

.cfo-bottom {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
}

.cfo-submit {
    background: transparent;
    border: 1px solid #ff9933;
    color: #ff9933;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1em;
    padding: 5px 18px;
    cursor: pointer;
    letter-spacing: 0.1em;
    transition: background 0.2s, color 0.2s;
}

.cfo-submit:hover {
    background: #ff9933;
    color: #000;
}

.cfo-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Contact Form ── */
.contact-section {
    width: 100%;
    max-width: 700px;
    padding: 0 var(--pad) 60px;
    margin: 0 auto;
}

.contact-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(22px, 4vw, 34px);
    font-weight: 700;
    color: #ff9933;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 0 0 24px rgba(255, 153, 51, 0.45);
}

.contact-sub {
    font-family: sans-serif;
    font-size: 14px;
    color: #666;
    text-align: center;
    letter-spacing: 0.04em;
    margin-bottom: 36px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #0d0d0d;
    border: 1px solid rgba(255, 153, 51, 0.15);
    border-radius: 10px;
    padding: 36px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 540px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 24px 20px;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.form-group input,
.form-group textarea {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 6px;
    color: #e0e0e0;
    font-family: sans-serif;
    font-size: 15px;
    padding: 12px 16px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(255, 153, 51, 0.55);
    box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.08), 0 0 14px rgba(255, 153, 51, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #3a3a3a;
}

.form-feedback {
    display: none;
    border-radius: 6px;
    padding: 12px 16px;
    font-family: sans-serif;
    font-size: 14px;
    text-align: center;
    letter-spacing: 0.02em;
}

.form-success {
    background: rgba(0, 200, 100, 0.08);
    border: 1px solid rgba(0, 200, 100, 0.25);
    color: #00cc66;
}

.form-error {
    background: rgba(255, 60, 60, 0.08);
    border: 1px solid rgba(255, 60, 60, 0.25);
    color: #ff4444;
}

.form-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.form-notice {
    font-family: sans-serif;
    font-size: 12px;
    color: #444;
    letter-spacing: 0.03em;
}

.submit-btn {
    background: #ff9933;
    color: #000;
    border: none;
    border-radius: 6px;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 13px 34px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}

.submit-btn:hover {
    background: #ffaa55;
    box-shadow: 0 0 22px rgba(255, 153, 51, 0.4);
}

.submit-btn:active {
    transform: scale(0.97);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ── About – Text-Overlay auf CRT-Bildschirm ── */
.about-overlay {
    position: absolute;
    top: 20%;
    left: 25%;
    right: 25%;
    bottom: 18%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Courier New', Courier, monospace;
    font-size: clamp(9px, 1.2vw, 14px);
    color: #c8c8c8;
    line-height: 1.5;
    letter-spacing: 0.025em;
    pointer-events: none;
}

.about-header {
    font-size: 0.82em;
    color: #999;
    white-space: nowrap;
    padding-bottom: 5px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.about-divider { display: none; }

.about-body {
    flex: 1;
    overflow: hidden;
}

.term-gap {
    min-height: 0.5em !important;
    line-height: 1 !important;
}

/* ── Terminal (About-Seite) ── */
.terminal-wrap {
    width: min(90vw, 780px);
    background: #111;
    font-family: 'Courier New', Courier, monospace;
    color: #d8d8d8;
    border-top: 1px solid #3a3a3a;
    border-bottom: 1px solid #3a3a3a;
}

.terminal-titlebar {
    background: #1c1c1c;
    border-bottom: 1px solid #3a3a3a;
    padding: 9px 18px;
    display: flex;
    align-items: center;
    font-size: 13px;
    letter-spacing: 0.02em;
}

.terminal-path  { color: #e0e0e0; }
.terminal-sep   { color: #555; margin: 0 10px; }
.terminal-file  { color: #999; }
.terminal-pipes { margin-left: auto; color: #555; letter-spacing: 0.15em; }

.terminal-body {
    padding: 18px 22px;
    border-left: 6px double #3a3a3a;
    border-right: 6px double #3a3a3a;
    min-height: 460px;
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: 0.025em;
}

.term-line {
    min-height: 1.8em;
    white-space: pre-wrap;
}

.term-prompt { color: #ff9933; }

.term-cursor {
    color: #ff9933;
    animation: termBlink 1s step-end infinite;
}

@keyframes termBlink {
    0%,  49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* ── Footer ── */
.site-footer {
    width: 100%;
    margin-top: auto;
    background: #0f0f0f;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 14px var(--pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-copy {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    color: #555;
    letter-spacing: 0.04em;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-nav a {
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav a:hover { color: #ff9933; }

.footer-nav .dot { color: #555; }

/* ── Honeypot (Klasse statt Inline-Style, CSP-kompatibel) ── */
.hp-field { display: none !important; }

/* ── DSGVO-Consent im Kontaktformular ── */
.cfo-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8em;
    line-height: 1.45;
    color: #999;
    cursor: pointer;
}

.cfo-consent input[type="checkbox"] {
    accent-color: #ff9933;
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
}

.cfo-consent a { color: #ff9933; }

/* ── Rechtsseiten (zentrierte Lesespalte, max 65ch) ── */
.legal-section {
    width: 100%;
    max-width: 65ch;
    margin: 0 auto;
    padding: 0 var(--pad) 56px;
    font-family: 'Courier New', Courier, monospace;
    color: #c8c8c8;
    line-height: 1.7;
}

.legal-section h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(22px, 4vw, 34px);
    font-weight: 700;
    color: #ff9933;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 28px;
    text-shadow: 0 0 24px rgba(255, 153, 51, 0.45);
}

.legal-section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #ff9933;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 32px 0 12px;
}

.legal-section p  { margin-bottom: 14px; }
.legal-section ul { margin: 0 0 14px 20px; }
.legal-section a  { color: #ff9933; }

/* Platzhalter rot markieren, damit sie vor dem Deploy auffallen */
.legal-placeholder {
    color: #ff4444;
    background: rgba(255, 60, 60, 0.08);
    padding: 0 4px;
}

/* ── Terminal-Overlay mit klickbaren Links (404) ── */
.overlay-links { pointer-events: auto; }
.about-overlay a { color: #ff9933; }

/* ════════════════════════════════════════════════════════
   Startseite: Hero + Sparten-Grid (Hierarchical Grid)
   ════════════════════════════════════════════════════════ */

/* ── Hero: Claim links, CRT-Monitor rechts (asymmetrisch) ── */
.hero {
    width: 100%;
}

.hero-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--pad);
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: var(--gutter);
}

/* Bewusster Raster-Bruch 1: Claim ragt in den Monitor-Bereich (Tiefe) */
.hero-copy {
    position: relative;
    z-index: 2;
    margin-right: -8%;
}

.hero-claim {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.2rem, 4.5vw + 0.5rem, 4.2rem);
    font-weight: 700;
    line-height: 1.12;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #f0f0f0;
    margin-bottom: 14px;
}

/* Color-Cycling: wandernder Copper-Gradient im Claim. Glow via
   drop-shadow statt text-shadow (text-shadow wuerde hinter dem
   transparenten background-clip-Text matschig durchscheinen) */
.claim-accent {
    background: linear-gradient(90deg, #ff9933 0%, #ffd27f 30%, #ff5ec4 55%, #ff9933 80%, #ff9933 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 14px rgba(255, 153, 51, 0.45));
}

@media (prefers-reduced-motion: no-preference) {
    .claim-accent { animation: copperText 6s linear infinite; }
}

@keyframes copperText { to { background-position-x: -300%; } }

.hero-sub {
    font-family: 'Courier New', Courier, monospace;
    font-size: clamp(14px, 1.2vw, 17px);
    line-height: 1.6;
    color: #999;
    max-width: 44ch;
    margin-bottom: 18px;
}

.hero-cta {
    display: inline-block;
    font-family: 'Courier New', Courier, monospace;
    font-size: 15px;
    letter-spacing: 0.1em;
    color: #ff9933;
    background: transparent;
    border: 1px solid #ff9933;
    padding: 10px 24px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.hero-cta:hover {
    background: #ff9933;
    color: #000;
    box-shadow: 0 0 22px rgba(255, 153, 51, 0.4);
}

.hero-visual {
    min-width: 0;
}

.hero-visual .monitor-wrap {
    width: 100%;
}

/* ── Bewusster Raster-Bruch 2: Scanline-Trenner ── */
/* Copper-Bars: klassische Amiga-Copper-List, rollt vertikal durch.
   Animationsweg = exakt eine Gradient-Periode (26px) -> nahtloser Loop */
.scanline-divider {
    width: 100%;
    height: 18px;
    margin-top: 24px;
    background: repeating-linear-gradient(
        to bottom,
        #000000 0px,  #2b1100 2px,  #8c3d12 4px,  #ff9933 6px,
        #ffd27f 7px,  #ff9933 8px,  #8c3d12 10px, #2b1100 12px,
        #000000 14px, #06262b 16px, #00e5ff 17px, #06262b 18px,
        #000000 20px, #2b0a20 22px, #ff5ec4 23px, #2b0a20 24px,
        #000000 26px
    );
    background-size: 100% 26px;
    opacity: 0.75;
}

@media (prefers-reduced-motion: no-preference) {
    .scanline-divider { animation: copperRoll 1.8s linear infinite; }
}

@keyframes copperRoll { to { background-position-y: 26px; } }

/* ── Sparten-Grid: Games als 2x2-Hero-Modul, 4 Sparten als 1x1 ── */
.sparten {
    width: 100%;
    padding: 36px 0 12px;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(24px, 3.5vw, 42px);
    font-weight: 700;
    color: #ff9933;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 0 24px rgba(255, 153, 51, 0.45);
    margin-bottom: 22px;
}

.sparten-grid {
    display: grid;
    grid-template-columns: repeat(var(--cols), 1fr);
    gap: var(--gutter);
}

.sparte-card {
    grid-column: span 3;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 150px;
    padding: 18px;
    background: #0d0d0d;
    border: 1px solid rgba(255, 153, 51, 0.15);
    border-radius: 6px;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.sparte-hero {
    grid-column: span 6;
    grid-row: span 2;
    justify-content: center;
    gap: 10px;
}

a.sparte-card:hover {
    border-color: rgba(255, 153, 51, 0.6);
    box-shadow: 0 0 26px rgba(255, 153, 51, 0.18);
    transform: translateY(-2px);
}

.sparte-num {
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    letter-spacing: 0.15em;
    color: #555;
}

.sparte-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 17px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #e0e0e0;
}

.sparte-hero .sparte-title {
    font-size: clamp(22px, 2.4vw, 30px);
    color: #ff9933;
}

.sparte-text {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    line-height: 1.55;
    color: #999;
    flex: 1;
}

.sparte-status {
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    letter-spacing: 0.1em;
    color: #666;
    margin-top: auto;
}

.status-dev { color: #ff9933; }

/* Bewusster Raster-Bruch 3: CRT-Glitch nur auf der Games-Kachel */
@keyframes cardGlitch {
    0%   { text-shadow: none;                       transform: translate(0, 0); }
    20%  { text-shadow: -2px 0 #00e5ff, 2px 0 #ff3366; transform: translate(1px, -1px); }
    40%  { text-shadow: 2px 0 #00e5ff, -2px 0 #ff3366; transform: translate(-1px, 1px); }
    60%  { text-shadow: -1px 0 #00e5ff, 1px 0 #ff3366; transform: translate(0, 0); }
    100% { text-shadow: none;                       transform: translate(0, 0); }
}

.sparte-glitch:hover .sparte-title {
    animation: cardGlitch 0.4s steps(2, end) 1;
}

/* ── About-Teaser (eine Terminal-Zeile) ── */
.about-teaser {
    width: 100%;
    padding: 14px 0;
    text-align: center;
}

.teaser-line {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #999;
    letter-spacing: 0.03em;
}

.teaser-line .term-prompt { color: #ff9933; }

.teaser-line a {
    color: #ff9933;
    text-decoration: none;
    white-space: nowrap;
}

.teaser-line a:hover { text-decoration: underline; }

/* ── Kontakt-CTA ── */
/* position/overflow: macht die Sektion zum Anker fuer den Boing-Ball-
   Canvas (siehe Demoscene-Vol.2-Block am Dateiende). */
.contact-cta {
    width: 100%;
    padding: 30px 0 52px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 700;
    color: #f0f0f0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.cta-btn {
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: #ff9933;
    color: #000;
    border-radius: 6px;
    padding: 14px 36px;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}

.cta-btn:hover {
    background: #ffaa55;
    box-shadow: 0 0 22px rgba(255, 153, 51, 0.4);
}

.cta-btn:active { transform: scale(0.97); }

/* ── Showcase-Seiten (Games/Filme/Musik/Comics/Bilder) ── */
.showcase {
    width: 100%;
    padding: 4px 0 40px;
}

.showcase-intro {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #999;
    max-width: 70ch;
    margin-bottom: 20px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(var(--cols), 1fr);
    gap: var(--gutter);
    align-items: start;
}

.show-tile {
    grid-column: span 3;
    display: flex;
    flex-direction: column;
    background: #0d0d0d;
    border: 1px solid rgba(255, 153, 51, 0.15);
    border-radius: 6px;
    overflow: hidden;
}

.show-featured {
    grid-column: span 6;
}

.show-tile video,
.show-tile .show-poster {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: #000;
}

.show-meta {
    padding: 10px 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.show-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e0e0e0;
}

.show-featured .show-title {
    font-size: 16px;
    color: #ff9933;
}

.show-sub {
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    color: #777;
}

/* Musik: Track-Karten mit Audio-Player */
.track-card {
    grid-column: span 6;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    background: #0d0d0d;
    border: 1px solid rgba(255, 153, 51, 0.15);
    border-radius: 6px;
}

.track-card audio {
    width: 100%;
}

/* Comics/Bilder: Terminal-Hinweis solange Inhalte in Produktion sind */
.terminal-note {
    grid-column: span 12;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.9;
    color: #c8c8c8;
    background: #0d0d0d;
    border: 1px solid rgba(255, 153, 51, 0.15);
    border-radius: 6px;
    padding: 18px 22px;
}

.terminal-note .term-prompt { color: #ff9933; }

.terminal-note a { color: #ff9933; }

/* Spalten-Override fuer Grid-Kinder (nach den Komponenten definiert,
   damit er deren Default-Spans schlaegt) */
.span-6 { grid-column: span 6; }

/* ── Games: Arcade-Automat + klickbare Trailer-Liste ── */
.arcade-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--gutter);
    align-items: stretch;
}

.arcade-wrap {
    position: relative;
}

.arcade-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Video + Glas-Overlay sitzen deckungsgleich auf dem CRT-Glas des
   Automaten. Pixelgenau vermessen auf images/automat.png (688x1024):
   Glas = x 140..545, y 242..478, Eckradius ~28px. Radius in Prozent,
   damit er mit der responsiven Breite mitskaliert. */
.arcade-video,
.arcade-glass {
    position: absolute;
    top: calc(23.6% - 12px);
    left: calc(20.3% + 2px);
    width: 58.9%;
    height: 23.1%;
    border-radius: 7% / 12%;
}

.arcade-video {
    object-fit: cover;
    background: #000;
}

/* Glas-Schicht ueber dem Video: Vignette + Lichtreflex + Scanlines,
   damit das Video wirklich "im" Roehrenbildschirm liegt */
.arcade-glass {
    pointer-events: none;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.04) 22%, rgba(255, 255, 255, 0) 42%),
        repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.10) 0 1px, rgba(0, 0, 0, 0) 1px 3px);
    box-shadow: inset 0 0 32px rgba(0, 0, 0, 0.6);
}

/* Liste rechts: exakt so hoch wie der Automat, Rest scrollt */
.trailer-panel { position: relative; }

.trailer-list {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: min-content;
    gap: 12px;
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}

.trailer-list::-webkit-scrollbar { width: 8px; }
.trailer-list::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
.trailer-list::-webkit-scrollbar-thumb:hover { background: #ff9933; }

.trailer-tile {
    display: block;
    width: 100%;
    padding: 0;
    background: #0d0d0d;
    border: 1px solid rgba(255, 153, 51, 0.15);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.trailer-tile img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.trailer-label {
    display: block;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #999;
    padding: 6px 10px 8px;
}

.trailer-tile:hover {
    border-color: rgba(255, 153, 51, 0.7);
    box-shadow: 0 0 18px rgba(255, 153, 51, 0.25);
    transform: translateY(-2px);
}

.trailer-tile.active { border-color: #ff9933; box-shadow: 0 0 14px rgba(255, 153, 51, 0.3); }
.trailer-tile.active .trailer-label { color: #ff9933; }

/* Ton-Schalter unter dem Automaten */
.arcade-sound {
    display: block;
    margin: 12px auto 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    letter-spacing: 0.1em;
    color: #999;
    background: transparent;
    border: 1px solid rgba(255, 153, 51, 0.4);
    padding: 6px 18px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.arcade-sound:hover { color: #ff9933; border-color: #ff9933; }

.arcade-sound.on {
    color: #ff9933;
    border-color: #ff9933;
    box-shadow: 0 0 14px rgba(255, 153, 51, 0.3);
}

.arcade-notes { margin-top: var(--gutter); }

/* ── Responsive: Tablet/Mobile ── */
@media (max-width: 900px) {
    /* Topbar umbrechen lassen statt horizontal ueberlaufen */
    .topbar {
        height: auto;
        padding: 10px 0;
    }

    .topbar-inner {
        height: auto;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 24px;
        padding: 0 16px;
    }

    .topbar-logo img { height: 38px; }

    .topbar-nav { gap: 8px; flex-wrap: wrap; justify-content: center; }

    .topbar-nav a,
    .topbar-nav .dot { font-size: 13px; }

    .music-btn { margin-left: 0; padding: 2px 8px; }

    .music-btn svg { width: 20px; height: 20px; }

    .music-label { font-size: 12px; }

    .page-body { padding-top: 150px; }

    .show-tile     { grid-column: span 6; }
    .show-featured { grid-column: span 12; }
    .track-card    { grid-column: span 12; }
    .span-6        { grid-column: span 12; }

    .arcade-layout { grid-template-columns: 1fr; }
    .trailer-panel { position: static; }
    .trailer-list  { position: static; max-height: 440px; }

    .hero-inner {
        grid-template-columns: 1fr;
        min-height: 0;
        gap: 32px;
        padding-top: 0;
    }

    .hero-copy {
        margin-right: 0;
        text-align: center;
    }

    .hero-sub { margin-left: auto; margin-right: auto; }

    .sparte-card  { grid-column: span 6; }
    .sparte-hero  { grid-column: span 12; grid-row: auto; min-height: 220px; }
}

@media (max-width: 540px) {
    :root { --pad: 20px; }

    .music-label { display: none; }

    .page-body { padding-top: 165px; }

    /* Orbitron ist breit - "TWO BROTHERS." braucht bei 390px-Displays
       deutlich Luft, sonst laeuft die Zeile randlos bis zur Kante */
    .hero-claim {
        font-size: clamp(21px, 6.6vw, 30px);
        letter-spacing: 0.02em;
    }

    .sparte-card,
    .sparte-hero { grid-column: span 12; }

    .show-tile { grid-column: span 12; }
}

/* ════════════════════════════════════════════════════════
   Amiga-FX: Cursor, Starfield, Sine-Scroller, Guru, CRT-Wipe
   ════════════════════════════════════════════════════════ */

/* ── Workbench-Cursor ── */
html { cursor: url('/images/cursor-wb.png') 0 0, auto; }

/* cursor erbt -> interaktiven Elementen ihre Standard-Cursor zurueckgeben */
a, button, .cfo-consent { cursor: pointer; }
input:not([type="checkbox"]), textarea { cursor: text; }

/* ── Starfield hinter dem Hero ── */
.hero { position: relative; }

.starfield {
    position: absolute;
    inset: 0;
    /* canvas ist ein replaced element mit intrinsischer Groesse 300x150:
       inset:0 allein streckt es NICHT, ohne width/height:100% bliebe es
       300x150 in der oberen linken Ecke statt den Hero zu fuellen. */
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ── Sine-Scroller (Demoscene-Laufschrift, Startseite) ── */
/* position/isolation: eigener Stacking-Kontext, damit das Plasma-Canvas
   (z-index:0) sauber HINTER dem Scroller-Text (z-index:1) liegt. */
.sine-scroller {
    width: 100%;
    overflow: hidden;
    position: relative;
    isolation: isolate;
    padding: 26px 0 30px;
    border-top: 1px solid rgba(255, 153, 51, 0.12);
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(13px, 1.8vw, 22px);
    font-weight: 600;
    letter-spacing: 0.12em;
    white-space: nowrap;
    text-align: center; /* reduced-motion-Fallback: statisch zentriert */
}

.scroller-track span {
    display: inline-block;
    color: #ff9933;
}

@media (prefers-reduced-motion: no-preference) {
    .scroller-track {
        display: inline-block;
        padding-left: 100vw;
        will-change: transform;
        animation: scrollX var(--scroll-dur, 40s) linear infinite;
    }

    .scroller-track span {
        animation: sineWave 1.5s ease-in-out infinite,
                   copperCycle 2.8s linear infinite;
        animation-delay: calc(var(--i) * -0.07s), calc(var(--i) * -0.11s);
    }

    .sine-scroller.paused .scroller-track,
    .sine-scroller.paused .scroller-track span { animation-play-state: paused; }
}

@keyframes scrollX  { to { transform: translateX(-100%); } }

@keyframes sineWave {
    0%, 100% { transform: translateY(-0.32em); }
    50%      { transform: translateY(0.32em); }
}

@keyframes copperCycle {
    0%   { color: #ff9933; }
    30%  { color: #ffd27f; }
    55%  { color: #ff5ec4; }
    80%  { color: #00e5ff; }
    100% { color: #ff9933; }
}

/* ── Guru Meditation (404) ── */
.guru {
    display: block;
    width: min(90vw, 1200px);
    margin: 0 auto 20px;
    padding: 14px 12px;
    background: #000;
    border: 5px solid #ff2020;
    font-family: 'Courier New', Courier, monospace;
    font-size: clamp(11px, 1.7vw, 19px);
    color: #ff2020;
    text-align: center;
    text-decoration: none;
    line-height: 1.7;
}

@media (prefers-reduced-motion: no-preference) {
    .guru { animation: guruBlink 1.4s step-end infinite; }
}

@keyframes guruBlink {
    0%, 49%   { border-color: #ff2020; }
    50%, 100% { border-color: #000; }
}

/* ── CRT-Page-Transition (View Transitions API, Chromium/Safari;
      Firefox ignoriert die At-Rule -> progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    @view-transition { navigation: auto; }

    ::view-transition-old(root) {
        animation: crtOff 0.22s ease-in both;
    }

    ::view-transition-new(root) {
        animation: crtOn 0.28s ease-out 0.18s both;
    }
}

@keyframes crtOff {
    0%   { transform: scaleY(1);     filter: brightness(1); }
    60%  { transform: scaleY(0.012); filter: brightness(4); }
    100% { transform: scaleY(0.002); filter: brightness(0); opacity: 0; }
}

@keyframes crtOn {
    0%   { transform: scaleY(0.012); filter: brightness(5); }
    45%  { transform: scaleY(0.012); filter: brightness(7); }
    100% { transform: scaleY(1);     filter: brightness(1); }
}

/* ════════════════════════════════════════════════════════
   Demoscene Vol. 2: Boing Ball, Plasma, Doom-Fire (alle js/amiga.js)
   ════════════════════════════════════════════════════════ */

/* ── Boing Ball: dezent hinter dem Kontakt-CTA ── */
/* CTA-Text liegt per z-index ueber dem Canvas (.contact-cta ist oben
   bereits position:relative + overflow:hidden). */
.contact-cta .container {
    position: relative;
    z-index: 1;
}

.boing {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* dezent: niedrige Deckkraft, damit der Ball nicht vom CTA-Text ablenkt */
    opacity: 0.5;
    pointer-events: none;
}

/* ── Plasma: Hintergrund der Laufschrift ── */
.plasma-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Deckkraft niedrig: dunkle Palette + 0.38 Opacity halten das
       Plasma dezent, damit Orange/Cyan-Scroller-Text lesbar bleibt. */
    opacity: 0.38;
    pointer-events: none;
}

/* Scroller-Text liegt ueber dem Plasma */
.sine-scroller .scroller-track {
    position: relative;
    z-index: 1;
}

/* ── Doom-Fire-Streifen (404, "Crash & Burn") ── */
.fire-strip {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 150px;
    /* hinter dem Footer-Text, aber sichtbar vor dem schwarzen Body */
    z-index: 50;
    pointer-events: none;
    /* scharfe Pixel beim Hochskalieren -> Demoscene-Look (Fallback,
       der eigentliche Upscale passiert im JS mit imageSmoothingEnabled=false) */
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* Footer muss ueber dem Feuer liegen, damit der Text lesbar bleibt. */
.site-footer {
    position: relative;
    z-index: 60;
}

/* Body-Padding unten NUR auf der 404-Seite (die als einzige den
   #fire-Hook hat), damit das Feuer nicht den letzten Inhalt verdeckt.
   :has() grenzt das auf 404 ein -> kein toter Platz auf anderen Seiten,
   die dieselbe style.css laden. */
body:has(#fire.fire-strip) {
    padding-bottom: 150px;
}

/* reduced-motion: alle drei Canvas-Effekte starten im JS nicht und
   werden zusaetzlich ausgeblendet; das Fire-Padding wird zurueckgenommen. */
@media (prefers-reduced-motion: reduce) {
    .boing,
    .plasma-bg,
    .fire-strip { display: none; }
    body:has(#fire.fire-strip) { padding-bottom: 0; }
}
