:root {
    --color-orange-bright: #FE5900;
    --color-orange-dark: #E93400;
    --color-orange-light: #FF9359;
    --color-text-beige: #FDDFD1;
    --color-red-dark: #B42300;
    --bg-btn-orange: rgba(254, 89, 0, 0.4);
    --bg-btn-red: rgba(233, 52, 0, 0.4);
}

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

body,
html {
    width: 100%;
    height: 100%;
    font-family: 'Big Shoulders Display', sans-serif;
    overflow-x: hidden;
    background-color: #000;
}

/* Background Layers */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
}

.bg-layer {
    position: absolute;
}

.bg-sunset {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url('_Ressourcen/Sunset.webp');
    animation: sunPulse 8s infinite alternate ease-in-out;
}

@keyframes sunPulse {
    0% { transform: scale(1); filter: brightness(1) contrast(1); }
    100% { transform: scale(1.05); filter: brightness(1.15) contrast(1.1); }
}

/* Heat waves rising from the desert floor */
.heat-waves {
    top: auto;
    bottom: 0;
    width: 100vw;
    height: 70vh;
    background: repeating-linear-gradient(0deg,
            transparent,
            rgba(254, 89, 0, 0.06) 10px,
            transparent 20px),
        repeating-linear-gradient(90deg,
            transparent,
            rgba(233, 52, 0, 0.04) 15px,
            transparent 30px);
    backdrop-filter: blur(3px) contrast(1.1);
    -webkit-backdrop-filter: blur(3px) contrast(1.1);
    mask-image: linear-gradient(to top, black 20%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, black 20%, transparent 100%);
    animation: rise 3s linear infinite, wobbleWaves 5s infinite alternate ease-in-out;
    pointer-events: none;
    mix-blend-mode: color-dodge;
}

@keyframes rise {
    0% {
        background-position: 0 0, 0 0;
    }
    100% {
        background-position: 0 -40px, -30px 0;
    }
}

@keyframes wobbleWaves {
    0% { transform: translateX(-1%) translateY(1%); }
    100% { transform: translateX(1%) translateY(-1%); }
}

.bg-silhouettes {
    background-image: url('_Ressourcen/Sepp-und-Schelm.webp');
    background-repeat: no-repeat;
    filter: blur(2.1px);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background-size: 100vw auto;
    background-position: center 210px;
}


.gradient-overlay {
    position: absolute;
    left: 0;
    width: 100%;
    height: 30vh;
}

.gradient-overlay.top {
    top: 0;
    background: linear-gradient(180deg, #000000 0%, rgba(0, 0, 0, 0) 100%);
}

.gradient-overlay.bottom {
    bottom: 0;
    background: linear-gradient(0deg, #000000 0%, rgba(0, 0, 0, 0) 100%);
}

/* Header */
.header {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.logo {
    width: 58px;
    height: 58px;
    background-image: url('_Ressourcen/Bildmarke_weiß.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* Main Layout */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 100dvh;
    padding: 40px 20px 25px;
    z-index: 1;
    position: relative;
}

/* Title Section */
.title-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    margin-top: max(3vh, 10px);
    margin-bottom: 50px;
}

.title-desktop {
    display: none;
    width: 100%;
    max-width: 800px;
    filter: drop-shadow(0px 6px 8px rgba(0, 0, 0, 0.4));
}

.title-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80vw;
    max-width: 450px;
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.4));
}

.title-mobile img {
    height: auto;
    object-fit: contain;
}

.title-mobile img:nth-child(1) {
    width: 50%;
}

.title-mobile img:nth-child(2) {
    width: 100%;
}

.subtitle {
    font-family: 'Arvo', serif;
    font-weight: 700;
    font-size: clamp(16px, 5vw, 24px);
    text-align: center;
    color: var(--color-text-beige);
    letter-spacing: 0.05em;
    margin: 0;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Countdown */
.countdown-wrapper {
    display: flex;
    justify-content: center;
    margin-top: auto;
    margin-bottom: 3vh;
}

.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.number {
    font-weight: 500;
    font-size: clamp(65px, 16vw, 130px);
    line-height: 0.9;
    color: var(--color-orange-bright);
    text-shadow: 0px 4px 8px rgba(0, 0, 0, 0.6);
}

.label {
    font-weight: 500;
    font-size: clamp(15px, 3.5vw, 28px);
    line-height: 1;
    color: var(--color-orange-dark);
    margin-top: 8px;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.6);
}

.colon {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 2vw, 15px);
    margin-bottom: clamp(20px, 5vw, 40px);
}

.dot {
    width: clamp(6px, 1.5vw, 12px);
    height: clamp(6px, 1.5vw, 12px);
    background-color: var(--color-orange-bright);
    border-radius: 50%;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.6);
}

/* Actions Section */
.actions-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.notify-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 54px;
    background: var(--bg-btn-red);
    border: 1px solid rgba(255, 147, 89, 0.1);
    border-radius: 50px;
    padding: 0 24px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    font-family: 'Big Shoulders Display', sans-serif;
    animation: pulseButton 2s infinite;
}

@keyframes pulseButton {
    0% {
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(233, 52, 0, 0.6);
    }

    70% {
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), 0 0 0 15px rgba(233, 52, 0, 0);
    }

    100% {
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(233, 52, 0, 0);
    }
}

.notify-btn:hover {
    background: rgba(233, 52, 0, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
    animation: none;
    /* Stop pulsing on hover */
}

.notify-btn span {
    font-weight: 300;
    font-size: 24px;
    color: var(--color-orange-light);
}

.btn-icon {
    width: 22px;
    height: 22px;
    /* Use CSS filter to colorize SVG if needed, but the original SVG may already have fill applied. */
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--bg-btn-orange);
    border: 1px solid rgba(255, 147, 89, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.social-btn:hover {
    background: rgba(254, 89, 0, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
}

.social-btn img {
    width: 22px;
    height: 22px;
}

/* Footer */
.footer {
    position: absolute;
    bottom: 25px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.impressum-link {
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 3vw, 16px);
    color: var(--color-red-dark);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.impressum-link:hover {
    color: var(--color-orange-bright);
}

/* Responsive adjustments for Tablets and Desktops */
@media (min-width: 768px) {
    .bg-silhouettes {
        background-size: auto calc((100dvh - 300px) * 1.25);
        background-position: center calc(100% + (100dvh - 300px) * 0.25 + 50px);
    }

    .title-section {
        margin-bottom: 100px;
    }

    .main-content {
        padding-top: 80px;
        padding-bottom: 60px;
    }

    .countdown-wrapper {
        margin-bottom: 6vh;
    }

    .title-desktop {
        display: block;
    }

    .title-mobile {
        display: none;
    }

    .header {
        top: 30px;
        right: 40px;
    }



    .countdown {
        gap: 20px;
    }

    .time-block {
        min-width: 120px;
    }

    .notify-btn {
        padding: 12px 30px;
    }

    .btn-icon {
        width: 24px;
        height: 24px;
    }

    .social-btn {
        width: 55px;
        height: 55px;
    }

    .social-btn img {
        width: 26px;
        height: 26px;
    }

    .footer {
        bottom: 30px;
    }
}

@media (max-width: 480px) {
    .header {
        top: 15px;
        right: 15px;
    }

    .logo {
        width: 45px;
        height: 45px;
    }
}


@media (min-width: 1200px) {
    .subtitle {
        font-size: 30px;
    }

    .title-desktop {
        max-width: 1000px;
    }

    .countdown {
        gap: 30px;
    }

    .time-block {
        min-width: 140px;
    }

    .logo {
        right: 60px;
    }
}

/* WhatsApp Overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.overlay.active {
    display: flex;
}

.overlay-content {
    background: rgba(20, 20, 20, 0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(242, 214, 195, 0.15);
    border-radius: 24px;
    padding: 45px 35px;
    text-align: center;
    position: relative;
    max-width: 90%;
    width: 420px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.02);
    transform: translateY(30px);
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-beige);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: rotate(90deg);
}

.overlay-content h2 {
    font-family: 'Big Shoulders Display', sans-serif;
    color: var(--color-orange-bright);
    font-size: 44px;
    margin: 0 0 12px 0;
    text-shadow: 0 2px 10px rgba(233, 52, 0, 0.4);
}

.overlay-content p {
    font-family: 'Helvetica', Arial, sans-serif;
    color: rgba(242, 214, 195, 0.85);
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.5;
}

.qr-code {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 20px;
    margin-bottom: 30px;
    width: 180px;
    height: 180px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.qr-code:hover {
    transform: scale(1.05);
}

.whatsapp-link-btn {
    display: inline-block;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    font-family: 'Big Shoulders Display', sans-serif;
    font-size: 26px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 40px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-link-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 25px rgba(37, 211, 102, 0.5);
}

/* Legal Pages */
.legal-main {
    display: flex;
    justify-content: center;
    padding: 100px 20px 60px;
    min-height: 100vh;
    background-color: #000;
    position: relative;
    z-index: 1;
}

.legal-container {
    padding: 20px;
    max-width: 800px;
    width: 100%;
    color: #F2F2F2;
    font-family: 'Helvetica', Arial, sans-serif;
    line-height: 1.8;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
    word-break: break-word;
}

.legal-container h1 {
    font-family: 'Big Shoulders Display', sans-serif;
    color: var(--color-orange-bright);
    font-size: 38px;
    margin-top: 50px;
    margin-bottom: 30px;
    text-align: left;
}

.legal-container h2 {
    font-family: 'Big Shoulders Display', sans-serif;
    color: var(--color-orange-bright);
    font-size: 24px;
    margin-top: 60px;
    margin-bottom: 20px;
    text-align: left;
    line-height: 1.4;
}

.legal-container p {
    margin-bottom: 25px;
}

.legal-container ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

.legal-container li {
    margin-bottom: 12px;
}

.legal-container a {
    color: var(--color-orange-light);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.legal-container a:hover {
    color: var(--color-orange-bright);
}

.legal-container hr {
    border: 0;
    height: 1px;
    background: rgba(242, 214, 195, 0.2);
    margin: 80px 0;
}

.back-link {
    display: inline-block;
    margin-bottom: 40px;
    font-family: 'Helvetica', Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: var(--color-orange-light);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.back-link:hover {
    transform: translateX(-5px);
}

.wortmarke-link {
    display: block;
    margin: 80px auto 60px auto;
    width: 90%;
    max-width: 500px;
}

.wortmarke-img {
    width: 100%;
    height: auto;
}