/* 
 * RAXWORX | Elite Awwwards Level Design System
 * "Industrial Alpine Elegance"
 */

/* ==========================================================================
   DSGVO-Compliant Local Fonts
   ========================================================================== */
@font-face {
    font-family: 'Inter';
    src: url('./assets/fonts/inter/inter-latin-300-normal.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('./assets/fonts/inter/inter-latin-400-normal.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('./assets/fonts/inter/inter-latin-500-normal.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('./assets/fonts/inter/inter-latin-600-normal.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('./assets/fonts/inter/inter-latin-700-normal.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('./assets/fonts/outfit-latin-300-normal.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('./assets/fonts/outfit-latin-400-normal.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('./assets/fonts/outfit-latin-700-normal.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('./assets/fonts/playfair-display-latin-400-normal.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('./assets/fonts/playfair-display-latin-400-italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
    --bg-primary: #114333;
    /* Tiefes Alpingrün / Forest Green */
    --bg-secondary: #F4F3F0;
    /* Papierweiß */
    --text-light: #F4F3F0;
    --text-dark: #114333;
    --accent-gold: #D4AF37;
    /* Messing/Bronze Details */
    --logo-red: #cd1719;
    /* Exaktes RaxworX Logo Rot */
    --steel: rgba(244, 243, 240, 0.2);

    --font-heading: 'Merriweather', 'Playfair Display', 'Lora', serif;
    --font-body: 'Inter', 'Open Sans', 'Lato', sans-serif;
    --font-mono: 'Space Mono', monospace;
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    background-color: var(--bg-primary);
    /* Disable default smooth scroll as we might control it or keep native crisp */
    scroll-behavior: auto;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-light);
    font-family: var(--font-body);
    /* Sans-serif for UI clarity */
    font-weight: 300;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--accent-gold);
    color: var(--bg-primary);
}



/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.font-serif {
    font-family: var(--font-serif);
}

/* Global Brand Logo Type */
.brand-name {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: inherit;
    font-size: inherit;
}

.brand-highlight {
    color: var(--logo-red);
}

.font-arial {
    font-family: 'Arial', sans-serif;
}

.italic {
    font-style: italic;
}

.text-muted {
    color: rgba(244, 243, 240, 0.6);
    /* For dark backgrounds */
}

.text-muted-dark {
    color: rgba(17, 67, 51, 0.6);
    /* For light backgrounds */
}

/* Animation Utility Classes */
.reveal-text {
    overflow: hidden;
    display: inline-block;
}

.reveal-text span {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 1.2s var(--ease-out-expo), opacity 1.2s var(--ease-out-expo);
}

.reveal-text.is-visible span {
    transform: translateY(0);
    opacity: 1;
}

.reveal-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s var(--ease-out-expo), transform 1.2s var(--ease-out-expo);
}

.reveal-fade.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Layout 
   ========================================================================== */
.smooth-wrapper {
    /* Required for our basic JS smooth scroll wrapper if needed, otherwise native */
    width: 100%;
}

.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    /* Absolute safe padding for mobile */
}

@media (min-width: 992px) {
    .container {
        padding: 0 4vw;
        /* Dramatic whitespace for larger screens */
    }
}

/* Deleted standard header styling per poster layout architecture */

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--bg-primary);
    color: var(--text-light);
    overflow: hidden;
}

/* Cinematic Noise overlay */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.05;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    z-index: 1;
}

/* Architectural Print Grid Overlay */
.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Blockiert keine Klicks */
    z-index: 0;

    /* Das Architektur-Grid: Feine, 1px vertikale Linien */
    background-image: linear-gradient(to right, rgba(244, 243, 240, 0.05) 1px, transparent 1px);
    background-size: 20vw 100%;
    /* Setzt exakt alle 20% der Bildschirmbreite eine Linie */
}

.hero-split {
    display: flex;
    align-items: center;
    /* Vertikal zentriert */
    justify-content: space-between;
    height: 100%;
    min-height: 100vh;
    /* Sichert vertikale Zentrierung auf voller Höhe */
    gap: 4rem;
    position: relative;
    z-index: 2;
    /* Über dem Noise textur */
    /* Pure poster layout - no top header offset needed */
}

.hero-left {
    flex: 1 1 50%;
    z-index: 10;
    padding-right: 2vw;
    text-align: left;
    /* Typografie streng linksbündig */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Harte linksbündige Kante */
    max-width: 650px;
    /* Max-width für optimale Lesbarkeit */
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 80vh;
    position: relative;
    z-index: 10;
}

.triptych-wrapper {
    flex: 1 1 50%;
    display: flex;
    gap: 1.5rem;
    height: 75vh;
    min-height: 500px;
    justify-content: center;
}

.triptych-panel {
    flex: 1;
    background-image: url('./assets/img/hero_summer.png');
    background-size: 300% 100%;
    /* Wichtig für den Panorama-Effekt */
    background-repeat: no-repeat;
    border-radius: 8px;
    /* Ganz leichter, edler Radius */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    will-change: transform;
    transition: transform 0.1s ease-out;
    /* Für extrem smoothes Scrolling */
}

.panel-left {
    background-position: left center;
    transform: translateY(30px);
}

.panel-center {
    background-position: center center;
    transform: translateY(-20px);
}

.panel-right {
    background-position: right center;
    transform: translateY(40px);
}

/* Massive SVG Poster Approach */
.hero-logo-wrapper {
    margin-bottom: 3rem;
    animation: fadeSlideUp 1.5s var(--ease-out-expo) forwards;
    opacity: 0;
    transform: translateY(40px);
}

.hero-logo {
    width: 100%;
    max-width: 380px;
    height: auto;
    display: block;
}

.hero-subline {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.5vw, 2.2rem);
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.6;
    text-align: left;
    animation: fadeSlideUp 1.5s var(--ease-out-expo) 0.2s forwards;
    opacity: 0;
    transform: translateY(40px);
}

.hero-address {
    font-family: var(--font-body);
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    font-weight: 400;
    color: rgba(244, 243, 240, 0.6);
    letter-spacing: 0.05em;
    line-height: 1.6;
    text-align: left;
    animation: fadeSlideUp 1.5s var(--ease-out-expo) 0.4s forwards;
    opacity: 0;
    transform: translateY(40px);
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tagline {
    position: absolute;
    bottom: 4vw;
    left: 4vw;
    /* Align to the left grid */
    z-index: 10;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--accent-gold);
}

@media (max-width: 992px) {
    .hero-split {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 2rem;
        padding-top: 15vh;
    }

    .hero-left {
        padding-right: 0;
    }

    .hero-right {
        height: 50vh;
        width: 100%;
        justify-content: center;
        margin-top: 2rem;
    }

    .hero-image-mask {
        max-width: 80%;
    }

    .tagline {
        left: 50%;
        transform: translateX(-50%);
        bottom: 2rem;
    }
}

/* ==========================================================================
   Vision & Ticket Invitation Section
   ========================================================================== */
.section-vision {
    position: relative;
    padding-top: 12vw;
    /* More whitespace */
    padding-bottom: 15vw;
    background-color: var(--bg-secondary);
    /* Soft secondary bg */
    z-index: 20;
}

.vision-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vision-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: rgba(17, 67, 51, 0.6);
    border-bottom: 1px solid rgba(17, 67, 51, 0.2);
    padding-bottom: 1rem;
    margin-bottom: 3rem;
    display: inline-block;
}

.vision-statement {
    position: relative;
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    line-height: 1.4;
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text-dark);

    /* Massively Widen Text Container */
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;

    /* Strict Left Typographic Alignment */
    text-align: left;
    letter-spacing: -0.01em;
}

/* Premium Ticket Invitation */
.ticket-box {
    margin-top: 10vw;
    width: 100%;
    max-width: 900px;
    border: 1px solid rgba(244, 243, 240, 0.2);
    background: var(--bg-primary);
    color: var(--text-light);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.ticket-header {
    padding: 4rem;
    /* More generous whitespace */
    border-bottom: 1px solid rgba(244, 243, 240, 0.2);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ticket-status {
    font-size: 1.1rem;
    color: rgba(244, 243, 240, 0.6);
    letter-spacing: 0.02em;
}

.ticket-date {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1;
    color: var(--accent-gold);
}

.ticket-body {
    padding: 4rem;
}

/* Ticket Countdown */
.ticket-countdown {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Center the countdown elements */
    gap: 2rem;
    margin-bottom: 2rem;
    /* Reduced margin since CTA is gone */
    font-family: var(--font-body);
}

.cd-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cd-item span {
    font-size: 3rem;
    font-weight: 300;
    line-height: 1;
    color: var(--text-light);
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
}

.cd-item small {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(244, 243, 240, 0.6);
    margin-top: 0.5rem;
}

.cd-divider {
    width: 1px;
    height: 3rem;
    background-color: rgba(244, 243, 240, 0.2);
}

.ticket-cta {
    text-align: left;
    /* Button start hard left */
    margin-top: 3rem;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-light);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 0px;
    transition: all 0.4s ease;
}

.cta-button:hover {
    background-color: var(--bg-secondary);
    color: var(--text-dark);
}

@media (max-width: 768px) {

    .ticket-header,
    .ticket-body {
        padding: 2rem;
    }

    /* FIX 1: Date text prevention from wrapping and slight scale down */
    .ticket-header .font-serif {
        white-space: nowrap;
        font-size: clamp(0.7rem, 3vw, 1.1rem);
        /* Prevents overflow on very small devices */
    }

    .ticket-date {
        white-space: nowrap;
        font-size: clamp(1.2rem, 6vw, 2.5rem);
    }

    /* FIX 2: Mobile Triptych Panel float fallback */
    .triptych-panel {
        animation: floatPanel 6s ease-in-out infinite alternate;
    }

    .panel-left {
        animation-delay: 0s;
    }

    .panel-center {
        animation-delay: 1.5s;
    }

    .panel-right {
        animation-delay: 3s;
    }

    @keyframes floatPanel {
        0% {
            transform: translateY(-5px);
        }

        100% {
            transform: translateY(5px);
        }
    }

    /* FIX 2: Force Countdown onto a single line */
    .ticket-countdown {
        flex-wrap: nowrap;
        /* Force single line */
        gap: 0.75rem;
        /* Drastically reduce gap to fit 320px */
        justify-content: space-between;
        /* Distribute evenly */
    }

    .cd-item span {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
        /* Drastically shrink numbers for mobile */
    }

    .cd-item small {
        font-size: 0.55rem;
        /* Shrink labels */
        margin-top: 0.25rem;
    }

    .cd-divider {
        display: none;
        /* Keep dividers hidden on mobile to save space */
    }
}

/* Newsletter Form removed per request */

/* ==========================================================================
   Minimalist Footer
   ========================================================================== */
.footer {
    padding: 2rem;
    /* Mobile safe padding */
    border-top: 1px solid rgba(244, 243, 240, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(244, 243, 240, 0.6);
    background-color: var(--bg-primary);
}

@media (min-width: 992px) {
    .footer {
        padding: 4vw;
    }
}

@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
}

.footer a {
    color: rgba(244, 243, 240, 0.6);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.3s ease;
}

.footer a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-gold);
    transition: width 0.3s ease;
}

.footer a:hover {
    color: var(--text-light);
}

.footer a:hover::after {
    width: 100%;
}

/* ==========================================================================
   2026 Program Section (rax-prog-)
   ========================================================================== */
.rax-prog-wrapper {
    margin-top: 10vw; /* Match distance of ticket-box */
    width: 100%;
    max-width: 1000px;
    text-align: left;
}

.rax-prog-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--text-dark); /* Tannen-Grün */
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--text-dark);
}

.rax-prog-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rax-prog-item {
    display: flex;
    flex-direction: column;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(17, 67, 51, 0.2); /* Soft dark green line */
    gap: 0.5rem; /* Reduced whitespace for mobile */
}

.rax-prog-item:last-child {
    border-bottom: none;
}

@media (min-width: 768px) {
    .rax-prog-item {
        flex-direction: row;
        align-items: flex-start;
        gap: 4rem; /* Restore wide gap for desktop */
    }
    .rax-prog-date-wrapper {
        flex: 0 0 250px; /* Aligns all dates cleanly strictly on desktop */
    }
}

.rax-prog-date-wrapper {
    /* Mobile needs auto height */
    flex: 0 0 auto; 
}

.rax-prog-date {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3vw, 2.8rem);
    color: var(--accent-gold);
    line-height: 1.1;
    font-weight: 700;
}

.rax-prog-date-range {
    font-size: clamp(1.4rem, 2.2vw, 2rem); /* Slightly smaller for date ranges */
}

.rax-prog-time {
    display: block;
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: rgba(17, 67, 51, 0.8);
    margin-top: 0.5rem;
    font-weight: 400;
}

.rax-prog-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rax-prog-desc {
    font-family: var(--font-body);
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    color: var(--text-dark);
    line-height: 1.5;
    font-weight: 400;
}

.rax-prog-desc strong {
    font-weight: 600;
    display: block;
    margin-top: 0.5rem;
    font-size: clamp(1.4rem, 2.5vw, 2.2rem);
    letter-spacing: -0.01em;
}

.rax-prog-tickets {
    margin-top: 1.5rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(17, 67, 51, 0.6);
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(17, 67, 51, 0.2);
    border-radius: 0px;
    align-self: flex-start;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.rax-prog-tickets:hover,
.rax-prog-tickets:focus {
    text-decoration: none !important;
}

.rax-prog-tickets.active {
    background-color: var(--accent-gold);
    color: var(--bg-primary);
    border-color: var(--accent-gold);
    font-weight: 600;
    text-decoration: none !important;
}

.rax-prog-tickets.active:hover {
    background-color: #e5cd6c;
    transform: translateY(-2px);
    text-decoration: none !important;
}

/* =========================================
   NEWSLETTER
========================================= */

.section-newsletter {
    background-color: var(--bg-primary);
    padding: clamp(4rem, 8vw, 8rem) 0;
    margin-top: clamp(2rem, 5vw, 4rem);
}

.newsletter-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.newsletter-form-wrapper {
    width: 100%;
    margin-top: 3rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

@media (min-width: 768px) {
    .newsletter-form {
        flex-direction: row;
        justify-content: center;
    }
}

.newsletter-input {
    flex: 1;
    padding: 1.2rem 1.5rem;
    font-family: var(--font-body);
    font-size: 1.1rem;
    background-color: transparent;
    border: 1px solid rgba(244, 243, 240, 0.3);
    color: var(--bg-secondary);
    border-radius: 0;
    transition: border-color 0.3s ease;
}

.newsletter-input::placeholder {
    color: rgba(244, 243, 240, 0.5);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.newsletter-btn {
    padding: 1.2rem 2.5rem;
    background-color: var(--accent-gold);
    color: var(--bg-primary);
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 0;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.newsletter-btn:hover {
    background-color: #e5cd6c;
    transform: translateY(-2px);
}

.newsletter-msg {
    margin-top: 1.5rem;
    font-family: var(--font-body);
    font-size: 1.1rem;
    padding: 1rem;
    border-left: 3px solid transparent;
}

.newsletter-msg.success {
    color: var(--bg-secondary);
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
}

.newsletter-msg.error {
    color: #ff6b6b;
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.newsletter-gdpr {
    margin-top: 1rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(244, 243, 240, 0.7);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    text-align: left;
}

.newsletter-gdpr input[type="checkbox"] {
    margin-top: 0.2rem;
    cursor: pointer;
}

.newsletter-gdpr a {
    color: var(--accent-gold);
    transition: color 0.3s ease;
}

.newsletter-gdpr a:hover {
    color: #e5cd6c;
}