@font-face {
    font-family: "MONO";
    src: url("../fonts/MONO.ttf") format("truetype");
}

body {
    background: #000;
    -webkit-font-smoothing: antialiased;
    font-family: MONO;

    --colorYellow: #f1ac43;
    --colorYellowDark: #30220c;
    --colorYellowRGB: 241,172,67;
    --colorGreen: #49DA6C;
    --colorGreenDark: #143c1d;
    --colorGreenRGB: 73,218,108;

    --primary: var(--colorYellow);
    --primaryDark: var(--colorYellowDark);
    --primaryRGB: var(--colorYellowRGB);

    color: var(--primary);
    text-shadow: 0 0 5px var(--primary);
    overflow:hidden;
}

body.green {
    --primary: var(--colorGreen);
    --primaryDark: var(--colorGreenDark);
}

::-moz-selection { background: var(--primary); color: var(--primaryDark); }
::selection { background: var(--primary); color: var(--primaryDark); }



.greenModifier {
    filter: hue-rotate(85deg);
}

body.green .background-video {
    filter: hue-rotate(85deg);
}

.small {
    font-size: 11px;
    line-height: 11px;
}

img.small {
    width: 70%;
}



a, a.nav-link, .nav-link:hover, .nav-link:active {
    color: var(--primary) !important;
    text-decoration: none;
    cursor: none;
}

a:hover {
    color:lighten(var(--primary),10%) !important;
}

/* Aktiver Nav-Link */
.navbar-nav .nav-link.active {
    background: var(--primary);
    color: var(--primaryDark) !important;
    text-shadow: none;
    padding-left: 0.3rem !important;
    padding-right: 0.3rem !important;
}

#monitorImage {
    background: url(../images/monitorImg.png) no-repeat;
    background-size: 100% 100%;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9994;
    pointer-events: none;
}

#monitor-snake-btn {
    position: fixed;
    /    position: fixed;
    top: calc(50% - 46vh + 13.2%);
    right: calc(50% - 51vh);
    width: 6.5vh;
    height: 2.5vh;
    z-index: 99999;
    cursor: pointer;
    border-radius: 3px;
}

#monitor-snake-btn:hover,
#monitor-pong-btn:hover {
    box-shadow: 0 0 10px var(--primary), inset 0 0 5px var(--primary);
    background: rgba(var(--primaryRGB), 0.3);
}

#monitor-pong-btn {
    position: fixed;
    top: calc(50% - 46vh + 17.5%);
    right: calc(50% - 51vh);
    width: 6.5vh;
    height: 2.5vh;
    z-index: 99999;
    cursor: pointer;
    border-radius: 3px;
}

#monitor-power-btn {
    position: fixed;
    top: calc(50% - 46vh + 32%);
    right: calc(50% - 52vh + 1%);
    width: 4vh;
    height: 4vh;
    z-index: 99999;
    cursor: pointer;
    border-radius: 50%;
    background: transparent;
    border: none;
}

#monitor-power-btn:hover,
#monitor-shutdown-btn:hover {
    box-shadow: 0 0 15px var(--primary), inset 0 0 8px var(--primary);
    background: rgba(var(--primaryRGB), 0.3);
}

/* Shutdown Button (unten rechts am Monitor) */
#monitor-shutdown-btn {
    position: fixed;
    bottom: calc(50% - 44vh + 13%);
    right: calc(50% - 40vh);
    width: 3.5vh;
    height: 3.5vh;
    z-index: 99999;
    cursor: pointer;
    border-radius: 50%;
    background: transparent;
    border: none;
}

/* CRT Shutdown Animation Overlay - nur für den Bildschirmbereich */
#crt-shutdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 999999;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}

#crt-shutdown-overlay.active {
    visibility: visible;
    animation: finalFadeOut 0.5s ease-in 2.5s forwards;
}

@keyframes finalFadeOut {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Phase 1: Bildschirminhalt ausschalten (CRT Shrink) */
#contentWrapepr.screen-off {
    animation: screenOff 0.8s ease-in forwards;
}

@keyframes screenOff {
    0% {
        filter: brightness(1);
        transform: translate(-50%, -50%) scale(1);
    }
    30% {
        filter: brightness(1.5);
        transform: translate(-50%, -50%) scale(1, 1);
    }
    60% {
        filter: brightness(2);
        transform: translate(-50%, -50%) scale(1, 0.01);
    }
    100% {
        filter: brightness(0);
        transform: translate(-50%, -50%) scale(0, 0);
    }
}

/* Phase 1b: Video und Overlay abdunkeln */
.background-video.fading-out,
#convex.fading-out,
#my-overlay.fading-out {
    animation: fadeToBlack 0.6s ease-in forwards;
}

@keyframes fadeToBlack {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* Phase 2: Monitor rauszoomen */
#monitor.zoom-out {
    animation: monitorZoomOut 1.5s ease-in-out forwards;
}

@keyframes monitorZoomOut {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    70% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.1);
        opacity: 0;
    }
}

/* CLI Terminal */
#cli-screen {
    position: absolute;
    top: 13.5%;
    left: 14%;
    width: 66%;
    height: 52%;
    padding: 1rem;
    font-size: 0.85rem;
    line-height: 1.4;
    z-index: 10;
    display: flex;
    flex-direction: column;
    font-family: MONO, monospace;
}

#cli-screen.hidden {
    display: none;
}

.cli-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--primary);
}

.cli-output {
    flex: 1;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--primaryDark);
}

.cli-output::-webkit-scrollbar {
    width: 8px;
}

.cli-output::-webkit-scrollbar-track {
    background: var(--primaryDark);
}

.cli-output::-webkit-scrollbar-thumb {
    background: var(--primary);
}

.cli-input-line {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
    gap: 0.5rem;
}

.cli-prompt {
    white-space: nowrap;
}

.cli-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--primary);
    font-family: MONO, monospace;
    font-size: 0.85rem;
    outline: none;
    caret-color: var(--primary);
    text-shadow: 0 0 5px var(--primary);
}

.cli-input::selection {
    background: var(--primary);
    color: var(--primaryDark);
}

#monitorImageTop {
    background: url(../images/monitorImgTop.png) no-repeat;
    background-size: contain;
    background-position-x: center;
    width: 100vw;
    height: 100vh;
    z-index: 9993;
    overflow: hidden;
    position: fixed;
}

#monitor {
    aspect-ratio: 1.25;
    height: 90vh;
    width: auto;
    z-index: 999;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.1);
    opacity: 0;
    animation: monitorZoomIn 1.5s ease-out 0.3s forwards;
}

@keyframes monitorZoomIn {
    0% {
        transform: translate(-50%, -50%) scale(0.1);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}


#contentWrapepr {
    aspect-ratio: 1.25;
    height: 90vh;
    width: auto;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9993;
    opacity: 0;
    animation: contentFadeIn 0.5s ease-out 1.8s forwards;
}

@keyframes contentFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Start Screen */
#start-screen {
    position: absolute;
    top: 13.5%;
    left: 14%;
    width: 66%;
    height: 52%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 15;
    cursor: pointer;
}
#start-screen .start-logo img {
    width: 200px !important;
}

#logo {
}

.banner {
    height: 100px;
    overflow: hidden;
}

.banner-pirate {
    background: url(../images/banner/pirate.png) no-repeat;
    background-position: 50% 37%;
    background-size: cover;
}
}

#start-screen .start-logo {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

#start-screen .start-logo span {
    background: var(--primary);
    color: var(--primaryDark);
}

#start-screen .start-text {
    font-size: 1.2rem;
    animation: pulse 1.5s ease-in-out infinite;
}

#start-screen .skip-intro {
    font-size: 0.7rem;
    margin-top: 1.5rem;
    opacity: 0;
    animation: fadeInSkip 0.5s ease-out 3s forwards;
}

#start-screen .skip-intro:hover {
    text-decoration: underline;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes fadeInSkip {
    0% { opacity: 0; }
    100% { opacity: 0.6; }
}

#start-screen.hidden {
    display: none;
}

/* Boot Screen */
#boot-screen {
    position: absolute;
    top: 13.5%;
    left: 14%;
    width: 66%;
    height: 52%;
    padding: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
    z-index: 10;
}

#boot-screen .boot-text {
    white-space: pre-wrap;
    font-family: MONO, monospace;
}

#boot-screen .boot-cursor {
    display: inline-block;
    width: 0.6em;
    height: 1em;
    background: var(--primary);
    animation: blink 0.5s infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

#boot-screen.hidden {
    display: none;
}

.terminal.hidden {
    opacity: 0;
    visibility: hidden;
}

.terminal {
    transition: opacity 0.8s ease, visibility 0.8s ease;
    position: absolute;
    width: 66%;
    height: 52%;
    left: 14%;
    top: 13.5%;
    border: 2px solid var(--primary);
    cursor: none;
}

.terminal > .container-fluid {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.terminal .row {
    flex-shrink: 0;
}

.terminal .footer {
    font-size: 0.7rem;
}

/* Settings Modal */
.terminal-modal {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 100;
    justify-content: center;
    align-items: center;
}

.terminal-modal.active {
    display: flex;
}

.terminal-modal-content {
    border: 2px solid var(--primary);
    background: var(--primaryDark);
    width: 70%;
    max-width: 400px;
}

.terminal-modal-header {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.terminal-modal-body {
    padding: 1rem;
}

.setting-item {
    margin: 0.8rem 0;
}

.setting-item label {
    display: block;
    margin-bottom: 0.3rem;
}

.setting-item select,
.setting-item input[type="checkbox"] {
    accent-color: var(--primary);
}

.setting-item select {
    background: var(--primaryDark);
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 0.3rem;
    width: 100%;
    position: relative;
    z-index: 1000;
}

.setting-item select option {
    background: var(--primaryDark);
    color: var(--primary);
}

.section-container {
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
    overflow: hidden;
}

.section-container section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease, visibility 1.2s ease;
}

.section-container section.active {
    opacity: 1;
    visibility: visible;
}

.section-container section .row {
    flex-shrink: 0;
}

.section-container section .row.flex-fill {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    margin-right: 0;
    flex-wrap: nowrap;
    align-items: stretch;
}

.section-container section .row.flex-fill > [class*="col"] {
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0;
}

.section-container section .row.flex-fill > [class*="col"] > * {
    padding-right: 1rem;
}

/* Pixel Style Scrollbar */
.section-container section .row.flex-fill > [class*="col"]::-webkit-scrollbar {
    width: 10px;
}

.section-container section .row.flex-fill > [class*="col"]::-webkit-scrollbar-track {
    background: var(--primaryDark);
    border: 1px solid var(--primary);
}

.section-container section .row.flex-fill > [class*="col"]::-webkit-scrollbar-thumb {
    background: var(--primary);
    border: none;
}

.section-container section .row.flex-fill > [class*="col"]::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
    opacity: 0.8;
}

/* Firefox */
.section-container section .row.flex-fill > [class*="col"] {
    scrollbar-width: inherit;
    scrollbar-color: var(--primary) var(--primaryDark);
}

/* Scrollable Column - für einzelne Columns die scrollbar sein sollen */
.section-container section [class*="col"].scrollable {
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
}

.section-container section [class*="col"].scrollable::-webkit-scrollbar {
    width: 10px;
}

.section-container section [class*="col"].scrollable::-webkit-scrollbar-track {
    background: var(--primaryDark);
    border: 1px solid var(--primary);
}

.section-container section [class*="col"].scrollable::-webkit-scrollbar-thumb {
    background: var(--primary);
    border: none;
}

.section-container section [class*="col"].scrollable::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
    opacity: 0.8;
}

/* Firefox */
.section-container section [class*="col"].scrollable {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--primaryDark);
}

.border-start, .border-top, .border-end,.border-bottom, .border {
    border-color: var(--primary) !important;
    border-width: 2px !important;
}


.header {
    border-bottom: 2px solid var(--primary);
    overflow: hidden;
}

h1, h2, h3 {
    margin-bottom: 0;
    padding-bottom: 0;
}

h1, h2 {
    font-size: 1.7rem;
}

h1 span {
    background: var(--primary);
    color: var(--primaryDark);
}

.convex {
    z-index: 2;
    opacity: .2;
    filter: none;
    mix-blend-mode: color-dodge;
    background-image: url(../images/monitor.jpg);
    background-position: 50% 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: scroll;
    display: flex;
    position: absolute;
    top: 10.5%;
    left: 11%;
    width: 72%;
    height: 58%;
}

.my-overlay {
    z-index: 1;
    opacity: 1;
    filter: none;
    mix-blend-mode: overlay;
    background-image: url(../images/pixel.png);
    background-position: 50%;
    background-repeat: repeat;
    background-size: auto;
    background-attachment: fixed;
    display: flex;
    position: absolute;
    top: 10.5%;
    left: 11%;
    width: 72%;
    height: 58%;
    box-shadow: 0 0 200vh #fff;
}

.background-video {
    z-index: 0;
    height: 100%;
    filter: none;
    display: block;
    top: 10.5%;
    left: 11%;
}

.background-video video{
    position: absolute;
    top: 10.5%;
    left: 11%;
    width: 72%;
    height: 58%;
}


.cursor{
    width: 10px;
    height: 20px;
    background-color: rgba(var(--primaryRGB), 0.8);
    box-shadow: 0 0 5px var(--primary);
    position: fixed;
    top:0;
    left:0;
    pointer-events: none; /* damit der Cursor keine Mausaktionen blockiert */
    transform: translate3d(0, 0, 0);
    z-index: 9999; /* über allem */
}


/* MARQUEE - START */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
}

.marquee {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%; /* Start außerhalb rechts */
    animation: marquee 60s linear infinite;
}

.marquee span {
    margin: 0 2rem; /* Abstand zwischen Nachrichten */
    font-size: 0.8rem;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
/* MARQUEE - END */

/* SNAKE & PONG GAMES */
.snake-header,
.pong-header {
    font-size: 0.75rem;
    flex-shrink: 0 !important;
}

#snake-canvas,
#pong-canvas {
    border: 2px solid var(--primary);
    box-shadow: 0 0 10px rgba(var(--primaryRGB), 0.3);
}

/* VISUALS - START */
#visuals {
    min-height: 40px;
}

#visuals > [class*="col"] {
    height: 100%;
}

/* 1. Status LEDs */
.led {
    width: 8px;
    height: 8px;
    background: var(--primary);
    opacity: 0.2;
    box-shadow: 0 0 4px var(--primary);
}

.led-1 { animation: ledBlink 1.2s steps(2) infinite; }
.led-2 { animation: ledBlink 0.8s steps(2) infinite 0.2s; }
.led-3 { animation: ledBlink 1.5s steps(2) infinite 0.4s; }
.led-4 { animation: ledBlink 0.6s steps(2) infinite 0.1s; }
.led-5 { animation: ledBlink 1s steps(2) infinite 0.3s; }

@keyframes ledBlink {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; box-shadow: 0 0 10px var(--primary); }
}

/* 2. Equalizer */
.eq-bar {
    width: 5px;
    background: var(--primary);
    box-shadow: 0 0 4px var(--primary);
}

.eq-1 { animation: eqBounce 0.8s steps(4) infinite; }
.eq-2 { animation: eqBounce 0.6s steps(4) infinite 0.1s; }
.eq-3 { animation: eqBounce 0.9s steps(4) infinite 0.2s; }
.eq-4 { animation: eqBounce 0.5s steps(4) infinite 0.15s; }
.eq-5 { animation: eqBounce 0.7s steps(4) infinite 0.25s; }
.eq-6 { animation: eqBounce 0.85s steps(4) infinite 0.05s; }
.eq-7 { animation: eqBounce 0.65s steps(4) infinite 0.3s; }

@keyframes eqBounce {
    0%, 100% { height: 4px; }
    50% { height: 28px; }
}

/* 3. Pixel Wave */
.wave-container {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 100%;
}

.wave-dot {
    width: 5px;
    height: 5px;
    background: var(--primary);
    box-shadow: 0 0 4px var(--primary);
}

.wd-1 { animation: waveDot 1.2s steps(5) infinite 0s; }
.wd-2 { animation: waveDot 1.2s steps(5) infinite 0.15s; }
.wd-3 { animation: waveDot 1.2s steps(5) infinite 0.3s; }
.wd-4 { animation: waveDot 1.2s steps(5) infinite 0.45s; }
.wd-5 { animation: waveDot 1.2s steps(5) infinite 0.6s; }
.wd-6 { animation: waveDot 1.2s steps(5) infinite 0.75s; }
.wd-7 { animation: waveDot 1.2s steps(5) infinite 0.9s; }
.wd-8 { animation: waveDot 1.2s steps(5) infinite 1.05s; }

@keyframes waveDot {
    0%, 100% { transform: translateY(12px); opacity: 0.3; }
    50% { transform: translateY(-12px); opacity: 1; }
}

/* 4. Matrix Rain */
.matrix-col {
    font-family: MONO, monospace;
    font-size: 0.8rem;
    color: var(--primary);
    text-shadow: 0 0 5px var(--primary);
}

.mc-1 { animation: matrixFall 1.5s steps(6) infinite 0s; }
.mc-2 { animation: matrixFall 1.2s steps(6) infinite 0.3s; }
.mc-3 { animation: matrixFall 1.8s steps(6) infinite 0.1s; }
.mc-4 { animation: matrixFall 1.3s steps(6) infinite 0.5s; }
.mc-5 { animation: matrixFall 1.6s steps(6) infinite 0.2s; }

@keyframes matrixFall {
    0% { transform: translateY(-18px); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateY(18px); opacity: 0; }
}
/* VISUALS - END */

/* MOBILE - START */
@media (max-width: 768px), (max-height: 500px) {
    /* Monitor-Animation: rein und dann raus */
    #monitor {
        animation: monitorZoomInOut 3s ease-in-out 0.3s forwards;
        transform: translate(-50%, -50%) scale(0.1);
        opacity: 0;
    }

    @keyframes monitorZoomInOut {
        0% {
            transform: translate(-50%, -50%) scale(0.1);
            opacity: 0;
        }
        30% {
            transform: translate(-50%, -50%) scale(1);
            opacity: 1;
        }
        70% {
            transform: translate(-50%, -50%) scale(1);
            opacity: 1;
        }
        100% {
            transform: translate(-50%, -50%) scale(3);
            opacity: 0;
        }
    }

    /* Nach Animation: Elemente im Endzustand halten */
    body.animation-complete #monitor {
        animation: none;
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }

    body.animation-complete #contentWrapepr {
        animation: none;
        opacity: 1;
    }

    /* Content-Wrapper Vollbild */
    #contentWrapepr {
        aspect-ratio: unset;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        animation: contentFadeIn 0.5s ease-out 3.3s forwards;
    }

    /* Terminal Vollbild */
    .terminal {
        width: calc(100% - 1rem);
        height: calc(100% - 1rem);
        left: 0.5rem;
        top: 0.5rem;
        border: 2px solid var(--primary);
        border-radius: 0;
    }

    /* Start/Boot Screen Vollbild */
    #start-screen,
    #boot-screen {
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        padding: 2rem;
    }

    /* CRT-Effekt auf Terminal */
    .terminal::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 2px
        );
        pointer-events: none;
        z-index: 100;
    }

    /* Glow-Effekt */
    .terminal {
        box-shadow: inset 0 0 100px rgba(var(--primaryRGB), 0.1);
    }

    /* Cursor und Monitor-Buttons ausblenden auf Touch */
    .cursor,
    #monitor-snake-btn,
    #monitor-pong-btn {
        display: none;
    }

    /* Settings Modal anpassen */
    .terminal-modal {
        position: fixed;
        width: 100vw;
        height: 100vh;
        z-index: 10000;
    }

    .terminal-modal-content {
        width: 90%;
    }

    /* Kleinere Schrift */
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 1.3rem;
    }

    /* Navbar kompakter und horizontal */
    .navbar-nav {
        flex-direction: row !important;
        flex-wrap: wrap;
    }

    .nav-link {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem !important;
    }

    /* Footer kleiner */
    .terminal .footer {
        font-size: 0.6rem;
    }

    /* Skip nach Monitor-Animation anzeigen */
    #start-screen .skip-intro {
        animation: fadeInSkip 0.5s ease-out 4s forwards;
    }
}

/* Landscape auf kleinen Geräten */
@media (max-width: 768px) and (orientation: landscape) {
    .terminal .header {
        padding: 0.2rem 0;
    }

    h1 {
        font-size: 1rem;
    }

    .marquee span {
        font-size: 0.6rem;
    }
}
/* MOBILE - END */


.card {
    background: none;
    margin-bottom: 0.5rem;
}

.card .card-header {
    background: var(--primary);
    color: var(--primaryDark);
    cursor: none;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card .card-header::after {
    content: '[+]';
    font-family: MONO, monospace;
}

.card.open .card-header::after {
    content: '[-]';
}

.card .card-body {
    display: none;
    border: 1px solid var(--primary);
    border-top: none;
    padding: 0.5rem;
}

.card.open .card-body {
    display: block;
}

/* GUESTBOOK - START */

/* Honeypot - versteckt für Bots, unsichtbar für Menschen */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
}

.terminal-btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-family: MONO, monospace;
    padding: 0.5rem 1rem;
    cursor: pointer;
    text-shadow: 0 0 5px var(--primary);
    transition: all 0.2s;
}

.terminal-btn:hover {
    background: var(--primary);
    color: var(--primaryDark);
    text-shadow: none;
}

/* Guestbook Form */
.guestbook-form .form-group {
    margin-bottom: 1rem;
}

.guestbook-form label {
    display: block;
    margin-bottom: 0.3rem;
}

.guestbook-form input,
.guestbook-form textarea {
    width: 100%;
    background: var(--primaryDark);
    border: 1px solid var(--primary);
    color: var(--primary);
    font-family: MONO, monospace;
    padding: 0.5rem;
    outline: none;
    text-shadow: 0 0 5px var(--primary);
}

.guestbook-form input:focus,
.guestbook-form textarea:focus {
    box-shadow: 0 0 5px var(--primary);
}

.guestbook-form input::placeholder,
.guestbook-form textarea::placeholder {
    color: var(--primary);
    opacity: 0.5;
}

#guestbook-status {
    margin-left: 1rem;
    font-size: 0.8rem;
}

#guestbook-status.success {
    color: var(--colorGreen);
}

#guestbook-status.error {
    color: #ff6b6b;
}

/* Visitor Entries */
.visitor-entry {
    border: 1px solid var(--primary);
    margin-bottom: 0.5rem;
    padding: 0.5rem;
}

.visitor-entry-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    opacity: 0.8;
    margin-bottom: 0.3rem;
    border-bottom: 1px solid var(--primary);
    padding-bottom: 0.3rem;
}

.visitor-entry-name {
    font-weight: bold;
}

.visitor-entry-message {
    font-size: 0.85rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.visitor-loading,
.visitor-error {
    padding: 1rem;
    text-align: center;
    opacity: 0.7;
}

.visitor-error {
    color: var(--primary);
}

.visitor-empty {
    padding: 1rem;
    text-align: center;
    opacity: 0.5;
    font-style: italic;
}
/* GUESTBOOK - END */
