/* bros-bytes.com – Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600;700&display=swap');

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

html {
    scrollbar-gutter: stable;
}

/* Shell-Body */
body {
    background: #000000;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Content-iframe */
#content-frame {
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - 100px);
    border: none;
    background: transparent;
}

/* Page-Body (innerhalb des iframes) */
.page-body {
    background: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding-top: 50px;
    overflow-y: auto;
}

/* ── 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: 100px;
    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: 40px;
}

/* ── 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: 14px;
}

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

.music-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    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: 64px;
    width: auto;
    display: block;
}

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

.topbar-nav a {
    color: #999999;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    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: 18px;
    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; }
}
