/* ========================== */
/*        Farbvariablen       */
/* ========================== */
:root {
    --primary-dark: #266B75;
    --primary-light: #4DA699;
    --grey: #A9A9A9;
    --white: #ffffff;
}

/* ========================== */
/*           Body             */
/* ========================== */
/* Body bekommt dunklen Hintergrund, aber ohne Grafik */
.dark-body {
    position: relative;
    background: radial-gradient(circle at top left,
        var(--primary-light) 0%,
        var(--primary-dark) 50%,
        #000000 100%);
    color: var(--white);
}


/* ========================== */
/*           Header           */
/* ========================== */
.header {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-light));
    padding: 10px 0;
}

.logo {
    height: 55px;
    width: auto;
}

/* Damit der rechte Bereich nicht am Rand klebt */
.header-right {
    margin-left: auto;
}


/* Hintergrundbereich für die Weihnachtsgrafik */
.page-background {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);

    width: 100%;
    max-width: 1024px;
    height: 100vh;

    background-image: url("../xmas.png");
    background-repeat: no-repeat;
    background-position: top center;
    background-size: contain;

    pointer-events: none; /* verhindert Klickprobleme */
    z-index: -2;          /* liegt hinter allem */
}

.page-dim {
    position: fixed;
    inset: 0;
    z-index: -1;

    background: rgba(0, 0, 0, 0); /* Start: völlig transparent */
    pointer-events: none;

    transition: background 0.3s ease;
}

.page-dim.dimmed {
    background: rgba(0, 0, 0, 0.45);
}


/* ========================== */
/*       Content (Main)       */
/* ========================== */
/* Main benötigt keinen eigenen Hintergrund mehr */
main {
    position: relative;
    padding-top: 20px; /* Grafik-Puffer */
}

.text-bg {
	border-radius: 1rem;
    background: linear-gradient(
        rgba(0,0,0,0.2),
        rgba(0,0,0,0.5)
    );
	padding: 10px 5px;
	margin: 10px 0;
}


/* Countdown-Karte mit Frostglas-Stil */
.countdown-card {
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;
}

/* Countdown-Gestaltung */
.countdown-box {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #fff;
    padding: 20px 30px;

    background: rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.countdown-time span {
    display: inline-block;
    min-width: 60px;
    text-align: center;
}



#loadingIndicator {
    min-height: 200px;

    display: flex;
    justify-content: center;
    align-items: center;

    /* sorgt dafür, dass er trotz text-center korrekt funktioniert */
    text-align: center;
}




/* ========================== */
/*        Anrede Titel        */
/* ========================== */
.anrede {
    font-size: 2rem;
    font-weight: 600;
    color: var(--white);
    text-shadow: 0 0 12px rgba(0,0,0,0.6);
}


/* ========================== */
/*         Bonus-Karte        */
/* ========================== */
.bonus-card {
    min-height: 200px;
    display: flex;
    flex-direction: column;      /* wichtig: Inhalt stapeln */
    justify-content: center;     /* vertikal starten */
    align-items: center;         /* horizontal IMMER zentriert */
    padding: 20px;

    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px) brightness(1.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    color: var(--white);

    transition: padding-top 0.6s ease, justify-content 0.6s ease;
	font-size: 20px;
	margin: 20px 0;
}

/* Wenn zweite Zeile erscheint → Karte rutscht nur VERTIKAL nach oben */
.bonus-card.has-second-row {
    justify-content: flex-start;
    padding-top: 40px; /* Inhalt wandert nach oben */
}



/* ========================== */
/*        Bonus Tabelle       */
/* ========================== */
.bonus-table {
    border-collapse: separate;
    border-spacing: 0.5rem 0.3rem;
}

.bonus-table td {
    padding: 0.2rem 0.4rem;
}






.bonus-table-animated {
    width: auto;
    max-width: 360px;

    margin-left: auto;
    margin-right: auto;  /* Block zentrieren */

    transition: transform 0.6s ease, opacity 0.6s ease;
}

.bonus-table td {
    text-align: left;
	vertical-align: bottom;
}







/* ============================ */
/*   Zusatzbonus Fade-In Row    */
/* ============================ */
/*.fade-target {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-row {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
*/

/* Ausgangszustand (unsichtbar, ohne Platzbedarf) */
.fade-row {
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    max-height: 0;
    overflow: hidden;
    transition:
        opacity 0.9s ease,
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        max-height 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0.9s;
}

/* Aktiver Zustand: sichtbar, weich expandierend */
.fade-row-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 200px;
    transition:
        opacity 0.9s ease,
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        max-height 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0s;
}




/* ========================== */
/*         Loader Icon        */
/* ========================== */
.hourglass-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 90px;
    height: 90px;
    border-radius: 50%;

    /* Transparenter weißer Kreis */
    background: rgba(255, 255, 255, 0.8);

    /* Frostglas-Effekt */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    /* Optionaler Glow */
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.35);
}

/* WICHTIG: Keine Transparenz auf das SVG! */
.hourglass {
    width: 60px;
    height: 60px;
    opacity: 1 !important;     /* ← fix: SVG wird wieder vollständig sichtbar */
    filter: none !important;   /* ← falls vorher etwas durch CSS geerbt wurde */
}



/* ========================== */
/*        Fade-In global      */
/* ========================== */
.fade-in {
    animation: fadeIn 1s ease forwards;
}

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


/* ========================== */
/*           Footer           */
/* ========================== */
.footer {
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--grey);
    text-align: center;
    padding: 10px;
}
