/* ==========================================================================
   FIFTSIX OFFICIAL LABEL - GLOBAL SYSTEM STYLES [V3.3 - FINAL]
   ========================================================================== */

html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }

:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --text-muted: #888888;
    --border-color: #ffffff;
    --btn-hover-text: #000000;
    --box-bg: #121212;       
    --box-border: #666666;   
    --brand-orange: #ff4500; 
    --console-text: #dcdcdc; 
    --hr-color: #222222;
}

body.light-mode {
    --bg-color: #ffffff;
    --text-color: #000000;
    --text-muted: #555555;
    --border-color: #000000;
    --logo-filter: brightness(0);
    --btn-hover-text: #ffffff;
    --box-bg: #f9f9f9;       
    --box-border: #666666;   
    --console-text: #444444; 
    --hr-color: #cccccc;
}

body { 
    font-family: 'Share Tech Mono', monospace; 
    background-color: var(--bg-color); 
    color: var(--text-color); 
    margin: 0; 
    padding: 0; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; 
    height: 100dvh;
    width: 100vw;
    overflow: hidden; 
    text-align: center;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* === DIE AUSNAHME FÜR DAS IMPRESSUM === */
body.scrollable-page {
    height: auto;
    min-height: 100vh;
    overflow-y: auto; 
}

/* Theme Toggle Button */
.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
    padding: 5px;
    z-index: 1000;
}
.theme-toggle:hover { color: var(--brand-orange); transform: scale(1.1); }

/* Layout-Zonen */
main { 
    max-width: 800px; 
    padding: 20px 20px 10px 20px; 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-start; 
    align-items: center; 
    width: 100%; 
}

.header-zone {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo & Typo */
.logo-link { 
    display: block; 
    width: 100%; 
    text-align: center; 
    margin-bottom: 10px; 
    text-decoration: none; 
}
.logo { 
    width: 260px; 
    max-width: 80%; 
    height: auto; 
    margin: 0 auto; 
    display: inline-block; 
    filter: var(--logo-filter);
    transition: filter 0.4s ease, transform 0.3s ease; 
}
.logo-link:hover .logo { 
    filter: brightness(0) saturate(100%) invert(35%) sepia(91%) saturate(3665%) hue-rotate(2deg) brightness(103%) contrast(105%) !important; 
}

h1 { 
    font-family: 'Oswald', sans-serif;
    font-weight: 600; 
    letter-spacing: 3px; 
    text-transform: uppercase; 
    margin-top: 0; 
    margin-bottom: 15px; 
    font-size: 28px;
}

/* Navigation */
.main-nav { width: 100%; text-align: center; margin-bottom: 15px; }
.main-nav a {
    font-family: 'Share Tech Mono', monospace;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 15px;
    display: inline-block;
    transition: color 0.3s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--brand-orange) !important; }

/* Content & Pure Flat Video-Console */
.content-zone {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 0; 
}

.video-console {
    position: relative;
    background-color: var(--box-bg);
    border: 1px solid var(--box-border);
    border-radius: 2px;
    padding: 20px;
    width: 100%;
    max-width: 450px; 
    height: 28vh; 
    text-align: left;
    box-shadow: none; 
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.console-content {
    animation: consoleGlitch 5s infinite step-end;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto; 
}

.video-console.release-console {
    height: auto;
}

.release-console .console-content {
    height: auto;
    overflow: visible;
}

.release-console iframe {
    align-self: center;
    max-width: 100%;
}

/* === ARTIST ROSTER TABS === */
.roster-unit {
    width: 100%;
    max-width: 450px;
    min-width: 0;
    text-align: left;
}

.roster-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 4px;
    position: relative;
    z-index: 2;
    margin: 0 0 -1px;
}

.roster-tab {
    appearance: none;
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--box-border);
    border-radius: 2px 2px 0 0;
    padding: 7px 10px 6px;
    margin: 0;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.roster-tab:hover {
    color: var(--text-color);
}

.roster-tab.active {
    color: var(--brand-orange);
    background: var(--box-bg);
    border-bottom-color: var(--box-bg);
}

.roster-tab:focus-visible {
    outline: 1px solid var(--brand-orange);
    outline-offset: 2px;
}

.release-console .console-content.roster-panel {
    display: none;
}

.release-console .console-content.roster-panel.active {
    display: flex;
    animation: consoleGlitch 5s infinite step-end, rosterIn 0.28s ease;
}

@keyframes rosterIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes consoleGlitch {
    0%   { transform: translate(0, 0); }
    2%   { transform: translate(-1px, 0.5px); }
    4%   { transform: translate(1px, -0.5px); }
    6%   { transform: translate(-0.5px, 0); }
    8%   { transform: translate(0, 0); }
    52%  { transform: translate(0.5px, -0.5px); }
    54%  { transform: translate(0, 0); }
    100% { transform: translate(0, 0); }
}

.glitch-text {
    text-shadow: 0.5px 0px 0px rgba(255, 69, 0, 0.1), -0.5px 0px 0px rgba(0, 162, 255, 0.1);
}

.status-code {
    color: var(--brand-orange); 
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.status-text {
    color: var(--console-text); 
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: 1px;
}

.status-line { margin-bottom: 6px; }

.cursor::after {
    content: '_';
    animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Buttons & Footer */
.btn-outline { 
    font-family: 'Share Tech Mono', monospace;
    display: inline-block; 
    padding: 10px 25px; 
    background: transparent; 
    color: var(--text-color) !important; 
    text-decoration: none; 
    border: 1px solid var(--border-color); 
    border-radius: 2px; 
    margin-top: 15px;
    margin-bottom: 10px; 
    font-weight: bold; 
    transition: all 0.3s ease; 
    letter-spacing: 1px; 
}
.btn-outline:hover { background: var(--brand-orange) !important; border-color: var(--brand-orange) !important; color: var(--btn-hover-text) !important; }

.footer-container { width: 100%; margin-top: auto; }
.fiftsix-social-footer { display: flex; justify-content: center; align-items: center; gap: 25px; padding: 5px; background: transparent; }
.fiftsix-social-footer a { color: var(--text-color) !important; font-size: 28px; transition: all 0.3s ease; text-decoration: none; display: inline-block; }
.fiftsix-social-footer a:hover { color: var(--brand-orange) !important; transform: scale(1.1); }

.fiftsix-footer-legal { text-align: center; padding-top: 5px; padding-bottom: 10px; }
.legal-links a { color: var(--text-muted); text-decoration: none; font-size: 12px; letter-spacing: 1px; transition: color 0.3s ease; }
.legal-links a:hover { color: var(--brand-orange); }
.copyright-text { color: #555555; font-size: 11px; letter-spacing: 1.5px; margin-top: 5px; text-transform: uppercase; }

/* === IMPRINT SPEZIFISCHES STYLING (Zentrierter Block, linksbündiger Text) === */
.content-zone.layout-imprint { 
    margin-top: 20px; 
    align-items: center; /* Hält den gesamten Block mittig auf der Website */
}

.imprint-text-block {
    width: 100%;
    max-width: 450px; /* Exakt selbe Breite wie die Video-Console! */
    text-align: left; /* Der Text IM Block ist schnurgerade linksbündig */
    padding: 0 15px;
}

.version-label { 
    font-family: 'Share Tech Mono', monospace; 
    font-size: 13px; 
    letter-spacing: 2px; 
    color: var(--brand-orange); 
    text-transform: uppercase; 
    margin-bottom: 20px; 
    font-weight: bold; 
    text-align: center; /* Das Label sitzt mittig über dem Block */
}

.imprint-text-block h2 { 
    font-family: 'Oswald', sans-serif;
    font-size: 1.1em; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
    color: var(--text-color); 
    margin-top: 25px; 
    margin-bottom: 10px; 
}

.imprint-text-block p { 
    font-family: 'Share Tech Mono', monospace; 
    color: var(--console-text); 
    line-height: 1.6; 
    font-size: 13px; 
    letter-spacing: 0.5px; 
    margin-top: 0; 
    margin-bottom: 20px; 
}

a.legal-mail { color: var(--brand-orange); text-decoration: none; font-weight: bold; }
a.legal-mail:hover { opacity: 0.8; }

.imprint-text-block hr { 
    border: 0; 
    height: 1px; 
    background: var(--hr-color); 
    margin: 35px 0; 
    width: 100%; 
    transition: background-color 0.4s ease; 
}

/* === VONNI MASCOT === */
main:has(.vonni-stage) {
    min-height: 0;
    height: 100dvh;
    max-height: 100dvh;
    overflow: visible;
}

.content-zone.vonni-stage {
    position: relative;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
}

.vonni-figure {
    position: absolute;
    top: 50%;
    margin: 0;
    transform: translateY(-50%);
    z-index: 1;
}

.vonni-right .vonni-figure {
    left: calc(50% + min(450px, 100%) / 2 + 32px);
    right: auto;
}

.vonni-figure img {
    display: block;
    width: auto;
    height: clamp(240px, calc(100dvh - 420px), 400px);
    max-width: min(230px, 28vw);
    aspect-ratio: 1024 / 1834;
    object-fit: contain;
}

/* Impressum bleibt scrollbar; Vonni flankiert die zentrierte Textspalte im Viewport. */
@media screen and (min-width: 769px) {
    body.scrollable-page main:has(.vonni-stage) {
        height: auto;
        max-height: none;
        overflow: visible;
    }

    body.scrollable-page .vonni-right .vonni-figure {
        position: fixed;
        top: 50%;
        left: calc(50% + (100vw - 100%) / 2 + min(450px, 100%) / 2 + 32px);
        right: auto;
        transform: translateY(-50%);
    }
}

/* Responsive Mobile Check */
@media screen and (max-width: 768px) {
    main:has(.vonni-stage) {
        max-width: 800px;
        height: auto;
        max-height: none;
        overflow: visible;
    }

    body:has(.vonni-stage) {
        height: auto;
        min-height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .content-zone.vonni-stage {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 16px;
    }

    .vonni-figure {
        position: static;
        top: auto;
        right: auto;
        left: auto;
        transform: none;
        margin: 0;
    }

    .vonni-right .vonni-figure {
        order: -1;
        align-self: center;
        max-height: none;
        flex: 0 0 auto;
    }

    .vonni-right .video-console,
    .vonni-right .roster-unit {
        order: 1;
        flex: 1 1 auto;
        width: 100%;
        max-width: 450px;
        min-width: 0;
    }

    .vonni-figure img {
        height: auto;
        max-height: 210px;
        max-width: min(140px, 46vw);
        width: auto;
    }
}

@media (max-width: 600px) {
    main { padding: 15px 15px 5px 15px; }
    h1 { font-size: 20px; margin-bottom: 10px; }
    .logo { width: 180px; }
    .main-nav { margin-bottom: 10px; }
    .main-nav a { margin: 0 6px; font-size: 12px; }
    .video-console { height: 220px; padding: 15px; }
    .roster-tab { font-size: 11px; letter-spacing: 0.5px; padding: 6px 8px 5px; }
    .fiftsix-social-footer a { font-size: 24px; }
    .btn-outline { margin-top: 10px; padding: 8px 20px; font-size: 12px; }
}

.dossier-photo-frame {
    position: relative;
    width: 100%;
    max-width: 280px;
    margin: 15px auto;
    border: 1px solid var(--box-border);
    background-color: #000000;
    overflow: hidden;
    line-height: 0;
    transition: border-color 0.3s ease;
}

.dossier-photo-frame img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    filter: grayscale(100%) sepia(100%) hue-rotate(145deg) saturate(380%) contrast(1.2) brightness(0.95);
    transition: filter 0.3s ease;
}

.dossier-photo-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.45) 0px,
        rgba(0, 0, 0, 0.45) 1px,
        transparent 1px,
        transparent 3px
    );
    pointer-events: none;
    z-index: 2;
}

.dossier-photo-frame:hover {
    border-color: #00e5ff;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.25);
}

.dossier-photo-frame:hover img {
    animation: crtPhotoGlitch 0.45s steps(2) infinite;
}

@keyframes crtPhotoGlitch {
    0%   { transform: translate(0, 0); filter: grayscale(100%) sepia(100%) hue-rotate(145deg) saturate(380%) contrast(1.2) brightness(0.95); }
    15%  { transform: translate(-3px, 1px); filter: grayscale(100%) sepia(100%) hue-rotate(160deg) saturate(450%) contrast(1.4) brightness(1.2); }
    30%  { transform: translate(2px, -1px); filter: grayscale(100%) sepia(100%) hue-rotate(130deg) saturate(300%) contrast(1.1) brightness(0.85); }
    50%  { transform: translate(-1px, -1px); filter: grayscale(100%) sepia(100%) hue-rotate(145deg) saturate(400%) contrast(1.3) brightness(1.1); }
    70%  { transform: translate(3px, 0); filter: grayscale(100%) sepia(100%) hue-rotate(155deg) saturate(500%) contrast(1.5) brightness(1.25); }
    85%  { transform: translate(-2px, 0); filter: grayscale(100%) sepia(100%) hue-rotate(140deg) saturate(350%) contrast(1.2) brightness(0.9); }
    100% { transform: translate(0, 0); filter: grayscale(100%) sepia(100%) hue-rotate(145deg) saturate(380%) contrast(1.2) brightness(0.95); }
}