
/****************************************************************************
--------------------------  GLOBAL STYLES  ---------------------------------
 ****************************************************************************/

/* 1. FONTS - Unageo Family */
@font-face { font-family: Unageo; local: Unageo Regular; font-weight: normal; font-style: normal; src: url(../fonts/Unageo-Regular.ttf); } 
@font-face { font-family: Unageo; local: Unageo Regular Italic; font-weight: normal; font-style: italic; src: url(../fonts/Unageo-Regular-Italic.ttf); }
@font-face { font-family: Unageo; local: Unageo Light; font-weight: 300; font-style: normal; src: url(../fonts/Unageo-Light.ttf); } 
@font-face { font-family: Unageo; local: Unageo Light Italic; font-weight: 300; font-style: italic; src: url(../fonts/Unageo-Light-Italic.ttf); }
@font-face { font-family: Unageo; local: Unageo Medium; font-weight: 500; font-style: normal; src: url(../fonts/Unageo-Medium.ttf); } 
@font-face { font-family: Unageo; local: Unageo Medium Italic; font-weight: 500; font-style: italic; src: url(../fonts/Unageo-Medium-Italic.ttf); }
@font-face { font-family: Unageo; local: Unageo SemiBold; font-weight: 600; font-style: normal; src: url(../fonts/Unageo-SemiBold.ttf); } 
@font-face { font-family: Unageo; local: Unageo SemiBold Italic; font-weight: 600; font-style: italic; src: url(../fonts/Unageo-SemiBold-Italic.ttf); }
@font-face { font-family: Unageo; local: Unageo Bold; font-weight: bold; font-style: normal; src: url(../fonts/Unageo-Bold.ttf); } 
@font-face { font-family: Unageo; local: Unageo Bold Italic; font-weight: bold; font-style: italic; src: url(../fonts/Unageo-Bold-Italic.ttf); }
@font-face { font-family: Unageo; local: Unageo ExtraBold; font-weight: 800; font-style: normal; src: url(../fonts/Unageo-ExtraBold.ttf); } 
@font-face { font-family: Unageo; local: Unageo ExtraBold Italic; font-weight: 800; font-style: italic; src: url(../fonts/Unageo-ExtraBold-Italic.ttf); }
@font-face { font-family: Unageo; local: Unageo Black; font-weight: 900; font-style: normal; src: url(../fonts/Unageo-Black.ttf); } 
@font-face { font-family: Unageo; local: Unageo Black Italic; font-weight: 900; font-style: italic; src: url(../fonts/Unageo-Black-Italic.ttf); }
/* Orbitron Family - Nur Regular verfügbar */
@font-face { font-family: Orbitron; local: Orbitron Regular; font-weight: normal; font-style: normal; src: url(../fonts/Orbitron-Regular.ttf); }

/* 2. VARIABLES */
:root {
    --bg-dark: #121212;
    --card-bg: #1e1e1e;
    --text-light: #ffffff;
    --text-gray: #a0a0a0;
    --content-width: 1380px;
    
    --infinite_tango: #FF3300; 
    --infinite_gray_light: #E8EAEA;
    --infinite_gray_medium: #AFB0B4; 
    --infinite_gray_dark: #333944;  
}

/* 3. BASE LAYOUT */
body {
    background-color: var(--bg-dark);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-light);
    font-family: 'Unageo', sans-serif;
    margin: 0;
    padding: 70px 0;
    min-height: 100vh;
}

.container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* 4. LOGO & TYPO */
.agency-logo {
    position: absolute;
    top: 0;
    right: 20px;
    width: 180px;
    z-index: 50;
    transition: opacity 0.3s ease;
}

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

h1 {
    font-size: 2.6rem;
    font-weight: 500;
    margin: 20px 0 170px 0;
    letter-spacing: -1px;
    line-height: 1.1;
}

h2 {
    font-size: 7.5rem;
    font-weight: 300;
    color: var(--text-gray);
    margin: 0 0 10px 0;
    letter-spacing: 0px;
    opacity: 0.9;
    line-height: 1.05;
}

.h2_subheadline {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--text-gray);
    max-width: 1100px;
    margin: 0 0 36px 0;
    letter-spacing: 0px;
    opacity: 0.9;
    line-height: 1.1;
}

.intro_text {
    max-width: 1000px; 
    font-size: 1.5rem;
    line-height: 1.3;
    color: var(--text-gray);
    margin: 0 0 70px 0;
    font-weight: 300;
    opacity: 0.9;
}

/* 5. GRID SYSTEM */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.logo-card {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 7px;
    transition: background-color 0.4s ease, border-color 0.4s ease; 
}

/* 6. FOOTER */
.main-footer {
    margin-top: 50px;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer-content {
    display: flex;
    flex-direction: column;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.footer-content:hover { opacity: 1; }

.main-footer a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-footer a:hover { color: var(--infinite_tango); }

.footer-copyright {
    margin-top: 10px;
    font-size: 0.75rem;
    color: var(--text-gray);
}

/* ------------------------------------------------------------------------------------ 
   ______ ____  ____  __ __  ____ ______ ____   ___    ____ 
  / ____// __ \/ __ \/ //_/ /  _// ____// __ ) /   |  / __ \
 / /    / / / / / / / ,<    / / / __/  / __  |/ /| | / /_/ /
/ /___ / /_/ / /_/ / /| | _/ / / /___ / /_/ // ___ |/ _, _/ 
\____/ \____/\____/_/ |_|/___//_____//_____//_/  |_/_/ |_|  

/* ------------------------------------------------------------------------------------ */

#cookie_box {
    display: none; /* Wird per JS eingeblendet */
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
	transition: opacity 0.3s ease-in-out;
    width: calc(100% - 40px);
    max-width: 800px;
    background-color: var(--infinite_gray_light);
    padding: 20px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
    z-index: 2000;
    box-sizing: border-box;
}

#cookie_box_icon {
    float: right;
    width: 74px;
    height: 84px;
    margin-left: 20px;
}

#cookie_box_headline {
    font-family: 'Unageo';
    font-weight: 300;
    font-size: 24px;
    line-height: 100%;
    color: var(--infinite_gray_dark);
    margin-bottom: 12px;
}

#cookie_box_headline strong {
    font-weight: bold;
	color: var(--infinite_gray_dark);
}

#cookie_box_text {
    font-family: 'Unageo';
    font-weight: 300;
    font-size: 16px;
    line-height: 1.1;
    color: var(--infinite_gray_dark);
    margin-bottom: 16px;
}

#cookie_box_text strong {
    font-weight: bold;
	color: var(--infinite_gray_dark);
}

.cookie_box_button_container {
    display: flex;
    gap: 10px;
}

.cookie_box_button {
    flex: 1;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Unageo';
    font-weight: bold;
    font-size: 17px;
    line-height: 36px;
    color: #FFFFFF;
    transition: opacity 0.3s ease;
}

.cookie_box_button:hover {
    opacity: 0.6;
}

#cookie_reject {
    background-color: var(--infinite_gray_medium);
}

#cookie_accept {
    background-color: var(--infinite_tango);
}

@media screen and (max-width: 600px) {
	#cookie_box {
    bottom: 20px;
    padding: 14px;
	}
    .cookie_box_button_container {
    flex-direction: column;
    }
    #cookie_box_headline {
    font-size: 15px;
    line-height: 100%;
    color: var(--infinite_gray_dark);
    margin-bottom: 6px;
	}
	#cookie_box_icon {
        display: none; 
    }
	#cookie_box_text {
    font-size: 12px;
    margin-bottom: 14px;
	}
	.cookie_box_button {
    height: 28px;
    font-size: 13px;
    line-height: 28px;
	}
	.cookie_box_button_container {
    gap: 6px;
	}
}



/****************************************************************************
--------------------------  GUERILLA MARKETING STYLES                         
 ****************************************************************************/

.body-guerilla {
    background-image: url('../graphics/infinite-guerilla-marketing-ambient-media-oesterreich-background.webp');
}

.guerilla-grid {
    position: relative;
    z-index: 5;
    background: transparent; 
    overflow: visible;
}

/* Die Taschenlampe */
#flashlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    background: radial-gradient(
        circle var(--flashlight-size, 200px) at var(--x) var(--y), 
        transparent 0%,
        rgba(0, 0, 0, var(--flashlight-opacity-outer, 0.90)) 100%
    );
}

.guerilla-card {
    background: #151515 !important;
    border: 1px solid #222 !important;
    position: relative;
    overflow: hidden; /* Wichtig, damit das schräge Overlay nicht übersteht */
}

/* Das echte Bild - liegt UNTER dem Overlay */
.guerilla-reveal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0; /* Standardmäßig unsichtbar */
    transition: opacity 0.5s ease;
    z-index: 1;
}

/* Censored Overlay - Deine diagonalen Streifen */
.censored-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(
        45deg,
        #111,
        #111 10px,
        #151515 10px,
        #151515 20px
    );
    z-index: 3; /* Liegt über dem Bild */
    transition: opacity 0.4s ease;
    opacity: 1;
}

.censored-text {
    background: #FF3300; /* Infinite Tango */
    color: white;
    padding: 5px 15px;
    font-weight: 900;
    font-size: 1.2rem;
    transform: rotate(-10deg);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Reveal Logik beim Hover */
.guerilla-card:hover .censored-overlay {
    opacity: 0; /* Streifen verschwinden */
}

.guerilla-card:hover .guerilla-reveal-img {
    opacity: 1; /* Bild wird voll sichtbar */
}

/* --- GUERILLA LIGHTBOX STYLES --- */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95); /* Fast schwarzer Hintergrund */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3000; /* Muss höher sein als Flashlight (1000) und Cookie Bar (2000) */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-in-out;
}

/* Wird per JS hinzugefügt */
.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

#lightbox-img {
    max-width: 90%;
    max-height: 80%;
    border: 2px solid var(--infinite_tango);
    box-shadow: 0 0 40px rgba(255, 51, 0, 0.4);
    object-fit: contain;
}

#lightbox-caption {
	max-width: 80%;
    margin-top: 25px;
    color: #FFFFFF;
    font-size: 1.4rem;
	line-height: 1.1;
    font-weight: 500;
    font-family: 'Unageo', sans-serif;
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #FFFFFF;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-lightbox:hover {
    color: var(--infinite_tango);
}

/* Verhindert das Scrollen im Hintergrund, wenn die Lightbox offen ist */
body.modal-open {
    overflow: hidden;
}

/* GUERILLA AUDIO CARD */

.audio-card .guerilla-reveal-img {
    filter: brightness(0.4) blur(1px); /* Bild dezent im Hintergrund */
}

.audio-play-indicator {
    position: absolute;
    z-index: 2;
    opacity: 0;
    transition: all 0.4s ease;
    transform: scale(0.5);
}

.guerilla-card:hover .audio-play-indicator {
    opacity: 1;
    transform: scale(1);
}

.play-icon {
    font-size: 4rem;
    color: var(--infinite_tango);
    text-shadow: 0 0 20px rgba(255, 51, 0, 0.5);
}

/* Puls-Effekt wenn Audio spielt */
.audio-card.playing {
    border-color: var(--infinite_tango) !important;
    box-shadow: inset 0 0 20px rgba(255, 51, 0, 0.3);
}

/* GUERILLA VIDEO CARD */

.video-play-indicator {
    position: absolute;
    z-index: 2;
    opacity: 0;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%) scale(0.5);
    top: 50%;
    left: 50%;
}

.video-card:hover .video-play-indicator {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.video-card .guerilla-reveal-img {
    filter: brightness(0.7); /* Video-Thumbnail etwas dunkler für den Play-Button */
}



/* --- GUERILLA SECRET CARD & MODAL --- */

.secret-card {
    cursor: pointer;
    min-height: 200px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
	box-sizing: border-box; 
    width: 100%; 
    max-width: 100%;
}

/* Vorschaubild der Box (verschlossen) */
.lock-preview-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0; 
    transition: opacity 0.5s ease;
    z-index: 1;
}

.secret-card:not(.unlocked):hover .lock-preview-img {
    opacity: 1;
}

.secret-card.unlocked .lock-preview-img {
    display: none !important;
}

/* Modal Hintergrund - EXTREM HOCH gesetzt */
.password-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;  /* Sicherstellen, dass es den ganzen Viewport füllt */
    height: 100vh;
    background: rgba(0, 0, 0, 0.98); 
    display: none; 
    align-items: center;
    justify-content: center;
    /* Dieser Z-Index muss höher sein als der vom Flashlight-Element! */
    z-index: 9999 !important; 
    cursor: default !important;
    /* Verhindert, dass Taschenlampen-Effekte von "unten" durchscheinen */
    pointer-events: all; 
}

/* Die Eingabebox */
.password-box {
    background: #111;
    padding: 50px 40px;
    border: 1px solid var(--infinite_tango);
    text-align: center;
    position: relative;
    box-shadow: 0 0 50px rgba(255, 51, 0, 0.3);
    border-radius: 4px;
    cursor: default;
    /* Sicherstellen, dass die Box innerhalb des Modals auch oben liegt */
    z-index: 10000; 
}

/* ... Rest der Styles (Header, Sub, Inputs) bleibt gleich ... */

.password-box .panel-header {
    color: var(--infinite_tango);
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 5px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.password-box .panel-sub {
    color: #666;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.code-inputs {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.code-field {
    width: 45px;
    height: 60px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: var(--infinite_tango);
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.2s ease;
    cursor: text;
}

.code-field:focus {
    border-color: var(--infinite_tango);
    background: #222;
    outline: none;
    box-shadow: 0 0 15px rgba(255, 51, 0, 0.3);
}

.code-field.success {
    border-color: #00FF00 !important;
    background: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
    color: #00FF00 !important;
}

.unlock-trigger-btn {
    margin-top: 30px;
    padding: 15px 40px;
    background: transparent;
    border: 2px solid var(--infinite_tango);
    color: var(--infinite_tango);
    font-weight: 900;
    letter-spacing: 3px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-block;
}

.unlock-trigger-btn:hover {
    background: var(--infinite_tango);
    color: #000;
    box-shadow: 0 0 20px rgba(255, 51, 0, 0.4);
}

.success-msg-box {
    display: none; 
    margin-top: 30px;
    color: #00FF00;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 1.2rem;
    animation: fadeIn 0.5s ease forwards;
}

.error-msg {
    color: var(--infinite_tango);
    font-size: 0.9rem;
    font-weight: bold;
    margin-top: 25px;
    letter-spacing: 1px;
    visibility: hidden;
    height: 20px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #444;
    font-size: 35px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
    z-index: 10001;
}

.close-modal:hover { 
    color: #FFFFFF; 
}

/* Download Bereich */
.download-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background: rgba(0, 0, 0, 0.7); 
    opacity: 0; 
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.secret-card.unlocked .download-link {
    pointer-events: auto; 
}

.secret-card.unlocked:hover .download-link {
    opacity: 1;
}

.download-icon-img {
    width: 32%; 
    height: auto; 
    display: block;
    filter: drop-shadow(0 0 15px rgba(0, 255, 0, 0.5)); 
    transition: transform 0.3s ease;
}

.download-link:hover .download-icon-img {
    transform: scale(1.1); 
}

/* Animationen */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.shake { 
    animation: shake 0.2s ease-in-out 0s 2; 
    border-color: #ff0000 !important; 
}

/* --- MOBILE OPTIMIERUNG FÜR DIE EINGABEMASKE --- */

@media (max-width: 600px) {
    .password-box {
        padding: 30px 15px; /* Weniger Padding an den Seiten */
        width: 95%;         /* Box nutzt fast die volle Breite */
    }

    .code-inputs {
        gap: 4px;           /* Kleinerer Abstand zwischen den Feldern */
    }

    .code-field {
        /* Wir nutzen 'vw' (Viewport Width), damit die Felder 
           proportional zum Display schrumpfen */
        width: 8vw;         
        max-width: 35px;    /* Deckelung nach oben */
        height: 50px;       /* Etwas niedriger auf Mobile */
        font-size: 1.4rem;  /* Kleinere Schrift, damit sie ins Feld passt */
        margin: 0;          /* Sicherstellen, dass kein extra Margin stört */
    }

    .password-box .panel-header {
        font-size: 1.3rem;  /* Headline etwas kleiner */
    }
}



/* --- BROKEN BOX: FINALE LOGIK --- */

.broken-box {
    background: #050505 !important;
    border: 1px solid #330000 !important;
    position: relative;
    overflow: hidden;
    display: flex; /* Sicherstellen, dass der Container zentriert */
    align-items: center;
    justify-content: center;
}

/* --- SYSTEM ERROR (ROTER ZUSTAND) --- */

.error-screen {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    color: #ff0000;
    z-index: 2;
    animation: simple-flicker 0.1s infinite;
}

.glitch-text {
    font-size: 1.8rem; 
    font-weight: bold;
    animation: horizontal-stretch 1s infinite ease-in-out;
}

.error-code {
    font-size: 0.85rem;
    margin-top: 2px;
    letter-spacing: 1px;
    font-family: monospace;
    opacity: 0.5;
}

/* Seitlicher Stretch-Effekt */
@keyframes horizontal-stretch {
    0%, 90% { transform: scaleX(1); }
    95% { transform: scaleX(1.4); opacity: 0.7; }
    100% { transform: scaleX(1); }
}

/* Einfaches, schnelles Helligkeits-Flackern */
@keyframes simple-flicker {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

/* --- DATA RESTORED (GRÜNER ZUSTAND) --- */

.secret-message {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Vertikale Zentrierung des gesamten Blocks */
    background: #000;
    color: #00FF00;
    opacity: 0;
    pointer-events: none;
    padding: 20px;
    text-align: center;
    z-index: 4;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
    box-sizing: border-box;
}

.secret-message p {
    font-family: 'Courier New', Courier, monospace;
    /* Um 20% vergrößert (von 1.1rem auf 1.35rem) */
    font-size: 1.35rem; 
    font-weight: bold;
    margin-top: 10px;
    line-height: 1.2;
}

.broken-box.unlocked .secret-message {
    opacity: 1;
    pointer-events: auto;
    /* Flackern und zufällige Ausfälle */
    animation: signal-loss 2.5s infinite;
}

.broken-box.unlocked .error-screen {
    display: none;
}

/* Scanline-Overlay */
.secret-message::before {
    content: " ";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.3) 50%);
    background-size: 100% 4px;
    z-index: 5;
}

/* Instabiles Signal: Flackern + komplette Aussetzer */
@keyframes signal-loss {
    0% { opacity: 1; }
    5% { opacity: 0.2; }
    7% { opacity: 1; }
    40% { opacity: 0.9; }
    41% { opacity: 0; } /* Kurzer kompletter Ausfall */
    43% { opacity: 1; }
    85% { opacity: 1; }
    86% { opacity: 0.3; }
    88% { opacity: 1; }
    95% { opacity: 0.1; }
    96% { opacity: 1; }
}

.clue-label {
    font-size: 1.2rem;
    color: rgba(0, 255, 0, 0.5);
    letter-spacing: 2px;
    font-family: monospace;
}


/* -- SECRET LINK im Footer -- */

.secret-footer-link {
    display: inline-block;
    margin-left: 10px;
    color: var(--text-gray);
    text-decoration: none;
    font-family: monospace;
    font-size: 0.7rem;
    opacity: 0.15; /* Fast unsichtbar */
    transition: all 0.3s ease;
}

/* Wenn die Taschenlampe (oder die Maus) drüberfährt */
.secret-footer-link:hover {
    opacity: 1;
    color: var(--infinite_tango);
    text-shadow: 0 0 8px var(--infinite_tango);
}

/* --- FOOTER: BROKEN LINK STYLE --- */

.broken-link-footer {
    color: var(--text-gray) !important;
    font-family: monospace;
    font-size: 0.75rem;
    text-decoration: none;
    opacity: 0.5; /* dezent */
    transition: all 0.4s ease;
    letter-spacing: 1px;
    position: relative;
}

/* Der Effekt, wenn die Taschenlampe oder Maus den Link trifft */
.broken-link-footer:hover {
    opacity: 1 !important;
    color: var(--infinite_tango) !important;
    text-shadow: 0 0 10px var(--infinite_tango);
    /* Ein kleiner Glitch-Effekt beim Hover */
    animation: simple-flicker 0.2s infinite;
}

/* Optional: Ein kleiner roter Punkt davor, der wie eine Warnleuchte wirkt */
.broken-link-footer::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    background-color: #ff0000;
    border-radius: 50%;
    margin-left: 5px;
    margin-right: 5px;
    vertical-align: middle;
    box-shadow: 0 0 5px #ff0000;
    opacity: 0.5;
}



/* CASE CARD (IM GRID) */
.case-card {
    position: relative;
    background: #050505;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease;
    border-radius: 12px;
    border: 1px solid #1a1a1a;
    aspect-ratio: 1 / 1; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.case-card:hover {
    border-color: #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

/* Das Vorschaubild im Hintergrund */
.case-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    opacity: 0.3;
    transition: all 0.6s ease;
    z-index: 1; /* Ganz unten */
}

.case-card:hover .case-thumb {
    filter: grayscale(0) brightness(1); /* Volle Helligkeit */
    opacity: 1;
    transform: scale(1.05);
}

/* Der "Preview-Overlay" (Flashlight-Support) */
.case-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Das Abdunklungs-Layer */
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), transparent 0%, rgba(5,5,5,0.6) 100%);
    z-index: 2; /* Über dem Bild, aber unter dem Text */
    transition: opacity 0.4s ease;
}

.case-card:hover .case-preview-overlay {
    opacity: 0; /* Wird beim Hover unsichtbar -> Bild wird glasklar */
}

/* Mittige Text-Info */
.case-info {
    position: relative;
    padding: 20px;
    z-index: 3; /* Über dem Overlay -> wird nicht abgedunkelt */
    background: transparent;
    transition: all 0.4s ease;
    pointer-events: none;
}

.case-card:hover .case-info {
    opacity: 0;
    transform: scale(0.9);
}

.case-id {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.2rem;
    color: var(--infinite_tango, #ff4400);
    display: block;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
}

.case-info h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.4rem;
    line-height: 1.1;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 15px rgba(0,0,0,0.9);
}


/* --- BOOST CARD --- */

/* Der Link-Wrapper - Alle Browser-Standards entfernen */
.boost-card-link {
  text-decoration: none !important;
  color: inherit;
  display: block;
  width: 100%;
  outline: none;
}

/* Container */
.boost-card-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Statischer Tango-Glow im Hintergrund */
.tango-glow-emitter {
  position: absolute;
  inset: -10px; 
  background: #ff4b00;
  z-index: 1;
  opacity: 0;
  filter: blur(15px);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.boost-card-link:hover .tango-glow-emitter {
  opacity: 0.8;
}

/* Haupt-Button */
.boost-card {
  position: relative;
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 25, 0.95);
  border: none;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(10% 0%, 100% 0%, 100% 90%, 90% 100%, 0% 100%, 0% 10%);
  z-index: 5;
}

/* Effekte triggern über den Link-Hover */
.boost-card-link:hover .boost-card {
  animation: jitter 0.1s linear 4;
}

/* Weiße Outline (Dauerlauf) */
.outline-frame {
  position: absolute;
  inset: 0;
  border: 2px solid #ffffff;
  pointer-events: none;
  opacity: 0;
  z-index: 15;
}

.boost-card-link:hover .outline-frame {
  opacity: 1;
  animation: draw-border 1s linear infinite;
}

/* Tango-Hintergrund Fade-In */
.tango-fill-layer {
  position: absolute;
  inset: 0;
  background: #ff4b00;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.5s ease-out;
}

.boost-card-link:hover .tango-fill-layer {
  opacity: 1;
}

/* Text & Switch */
.mission-status {
  position: relative;
  font-family: 'Orbitron', sans-serif;
  font-weight: 400; 
  font-size: 1.4rem;
  line-height: 1.1;
  letter-spacing: 3px;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 4.4rem;
  overflow: hidden;
  z-index: 10;
}

.status-default, .status-hover {
  flex-shrink: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  color: #fff;
  text-decoration: none !important;
}

.boost-card-link:hover .status-default { 
  transform: translateY(-100%); 
}

.boost-card-link:hover .status-hover { 
  transform: translateY(-100%); 
}

/* Animationen */
@keyframes jitter {
  0% { transform: translate(0, 0); }
  25% { transform: translate(2px, 1px); }
  50% { transform: translate(-1px, -2px); }
  75% { transform: translate(-2px, 1px); }
  100% { transform: translate(0, 0); }
}

@keyframes draw-border {
  0% { clip-path: inset(0 100% 100% 0); }
  25% { clip-path: inset(0 0 100% 0); }
  50% { clip-path: inset(0 0 0 0); }
  75% { clip-path: inset(100% 0 0 0); }
  100% { clip-path: inset(0 100% 100% 0); }
}




/* --- PANEL BASIS STYLES --- */
.case-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 45%;
    height: 100vh;
    background: #050505;
    z-index: 3000;
    transition: right 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    border-left: 2px solid #1a1a1a;
    display: flex;
    flex-direction: column;
}

.case-panel.active {
    right: 0;
}

/* --- OPTIMIERTE SCAN-LINIE MIT LASER-GLOW --- */
.panel-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px; 
    background: #ff0000; /* Reines Laser-Rot oder var(--infinite_tango) */
    
    /* Mehrschichtiger Glow für Tiefenwirkung */
    box-shadow: 
        0 0 8px #ff0000, 
        0 0 15px #ff0000, 
        0 0 25px #ff0000; 
        
    z-index: 3001;
    opacity: 0;
    pointer-events: none;
}

.case-panel.active .panel-scan-line {
    /* Animation bleibt gleich, aber der Effekt ist jetzt intensiver */
    animation: scan-down 1.5s ease-out forwards;
}

@keyframes scan-down {
    0% { 
        top: 0; 
        opacity: 0; 
    }
    10% { 
        opacity: 1; /* Schnelles Einblenden zu Beginn */
    }
    90% { 
        opacity: 1; 
    }
    100% { 
        top: 100%; 
        opacity: 0; /* Sanftes Ausblenden am Boden */
    }
}

.panel-close {
    padding: 20px;
    cursor: pointer;
    color: #444;
    font-weight: bold;
    text-align: right;
    transition: color 0.3s;
}

.panel-close:hover {
    color: var(--infinite_tango, #ff4400);
}

/* --- SIDEPANEL HEADER ANPASSUNG --- */
.panel-header {
    margin-bottom: 30px;
}

#panel-title {
    margin: 10px 0 5px 0;
    color: #ffffff;
    font-size: 2.4rem; 
    line-height: 1.0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#panel-subtitle {
    margin: 0;
    color: var(--infinite_tango, #ff4400);
    font-size: 0.9rem;
	line-height: 1.2;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.panel-content {
    padding: 0 40px 40px 40px;
    overflow-y: auto;
}

/* Medien-Elemente (Bilder/Videos) */
.panel-media-list img, 
.panel-media-list video {
    width: 100%;
    margin-bottom: 5px;
    border: 1px solid #111;
}

/* --- EINHEITLICHES STYLING FÜR CAPTIONS & ALT-TEXTE --- */
.panel-media-list p[style*="font-size:0.75rem"], 
.panel-media-list p[style*="font-size:0.85rem"] {
    color: #bbbbbb !important; /* Hellgrau */
    font-size: 1.1rem !important; /* Einheitlich 1.1rem */
    line-height: 1.2;
    margin-top: 12px;
    margin-bottom: 35px;
    font-style: normal !important;
    /* font-family entfernt -> nutzt Body-Standard */
    border-left: 2px solid var(--infinite_tango, #ff4400) !important; /* Balken in Tango */
    padding-left: 15px;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* Audio-Label Re-Styling (z.B. AUDIO-INTERZEPT) */
.panel-media-list div p[style*="color:#666"] {
    color: var(--infinite_tango, #ff4400) !important;
    font-size: 1.1rem !important; 
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-left: none !important;
    padding-left: 0 !important;
    margin-bottom: 8px;
}

/* Projektbeschreibung im Footer */
.panel-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #1a1a1a;
}

#panel-description {
    color: #888;
    font-size: 1.1rem;
    line-height: 1.2;
    /* font-family entfernt -> nutzt Body-Standard */
    margin-bottom: 40px;
}

/* Hintergrund-Overlay */
.panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    z-index: 2999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s;
}

.panel-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* RESPONSIVE FOUNDATION */
@media (max-width: 1100px) {
    .logo-grid { grid-template-columns: repeat(3, 1fr); }
    .agency-logo { width: 150px; }
}

@media (max-width: 768px) {
    body { padding: 30px 0; }
    .logo-grid { grid-template-columns: repeat(2, 1fr); }
    h1 { font-size: 1.4rem; margin: 100px 0 20px 0; }
    h2 { font-size: 2.6rem; }
    .h2_subheadline { font-size: 1.1rem; }
	.intro_text { font-size: 1.0rem; line-height: 1.2; }
    .agency-logo { width: 130px; top: -100px; }
    .case-panel { width: 100%; }
    .panel-content { padding: 0 20px 20px 20px; }
	#panel-title { margin: 10px 0 5px 0; font-size: 1.6rem; }
	.panel-media-list p[style*="font-size:0.75rem"], 
    .panel-media-list p[style*="font-size:0.85rem"],
    .panel-media-list div p[style*="color:#666"] { font-size: 0.95rem !important; }
	#panel-description { font-size: 1.0rem; }
	#lightbox-caption {	max-width: 90%; margin-top: 16px; font-size: 1.0rem; }
}

@media (max-width: 480px) {
    .logo-grid { grid-template-columns: repeat(1, 1fr); }
}