/* ═══════════════════════════════════════════════════
   WNE Theater – "Luminous Stage" Design System
   ═══════════════════════════════════════════════════ */

:root {
    /* Colors */
    --wne-primary: #a6341f;
    --wne-primary-hover: #c84b34;
    --wne-surface: #fff8f3;
    --wne-surface-container-low: #fcf2e7;
    --wne-surface-container: #f7ece2;
    --wne-surface-container-high: #f1e7dc;
    --wne-surface-container-highest: #ebe1d6;
    --wne-on-surface: #1f1b15;
    --wne-on-surface-variant: #58413d;
    --wne-outline: #8c716c;
    --wne-outline-variant: #e0bfb9;
    --wne-inverse-surface: #1f1b15;
    --wne-inverse-on-surface: #f9efe4;
    --wne-stage-gold: #C5A059;
    --wne-error: #ba1a1a;

    /* Typography */
    --wne-font-headline: 'Playfair Display', serif;
    --wne-font-body: 'Plus Jakarta Sans', sans-serif;

    /* Spacing */
    --wne-margin-mobile: 24px;
    --wne-margin-desktop: 64px;
    --wne-container-max: 1280px;

    /* Shadows */
    --wne-shadow-card: 0 4px 24px rgba(31,27,21,0.06);
    --wne-shadow-portrait: 0 24px 56px rgba(31,27,21,0.15);
    --wne-shadow-btn: 0 4px 16px rgba(166,52,31,0.18);
    --wne-shadow-btn-hover: 0 8px 24px rgba(166,52,31,0.28);
}

/* ── Global ── */
body {
    background-color: var(--wne-surface);
    color: var(--wne-on-surface);
    font-family: var(--wne-font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--wne-font-headline);
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-size: 24px;
    line-height: 1;
    vertical-align: middle;
    display: inline-block;
}

.material-symbols-outlined.filled {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ── Scroll Reveal ── */
.wne-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.wne-reveal.visible {
    opacity: 1;
    transform: none;
}

/* ── Buttons ── */
.wne-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--wne-font-body);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    border: none;
    line-height: 1;
}

.wne-btn--primary {
    background: var(--wne-primary);
    color: #fff;
    box-shadow: var(--wne-shadow-btn);
}
.wne-btn--primary:hover {
    background: var(--wne-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--wne-shadow-btn-hover);
    color: #fff;
}

.wne-btn--outline {
    background: transparent;
    color: var(--wne-on-surface);
    border: 1.5px solid var(--wne-on-surface);
}
.wne-btn--outline:hover {
    background: var(--wne-on-surface);
    color: var(--wne-surface);
    transform: translateY(-2px);
}

.wne-btn--gold {
    background: var(--wne-stage-gold);
    color: var(--wne-on-surface);
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(197, 160, 89, 0.25);
}
.wne-btn--gold:hover {
    filter: brightness(0.9);
}

.wne-btn--disabled {
    background: transparent;
    color: var(--wne-outline);
    border: 1.5px solid var(--wne-outline-variant);
    cursor: not-allowed;
    opacity: 0.6;
}

/* ── Spielplan Rows ── */
.wne-spielplan-liste {
    display: flex;
    flex-direction: column;
}

.wne-perf-row {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 24px 12px;
    border-bottom: 1px solid #f0e6dc;
    transition: background 0.25s;
    cursor: pointer;
}
.wne-perf-row:hover {
    background: var(--wne-surface-container-low);
}

.wne-perf-row--highlight {
    border-bottom: 2px solid var(--wne-primary);
    background: rgba(166, 52, 31, 0.03);
}

.wne-perf-row--ausverkauft {
    opacity: 0.6;
    cursor: default;
}

.wne-perf-row__monat {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--wne-primary);
}

.wne-perf-row__tag {
    display: block;
    font-family: var(--wne-font-headline);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--wne-on-surface);
    line-height: 1;
}

.wne-perf-row__title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wne-perf-row__time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--wne-on-surface-variant);
}
.wne-perf-row__time .material-symbols-outlined {
    font-size: 16px;
    color: var(--wne-stage-gold);
}

.wne-perf-row__status--warning {
    font-size: 13px;
    font-weight: 600;
    color: var(--wne-primary);
    margin-top: 4px;
    display: block;
}

.wne-perf-row__preis {
    font-size: 13px;
    color: var(--wne-on-surface-variant);
    margin-top: 4px;
}
.wne-perf-row__preis strong {
    color: var(--wne-on-surface);
}

.wne-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 2px 8px;
    border-radius: 3px;
}
.wne-badge--highlight {
    background: var(--wne-primary);
    color: #fff;
}

/* ── Portrait Cards ── */
.wne-ensemble-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (min-width: 768px) {
    .wne-ensemble-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (min-width: 1200px) {
    .wne-ensemble-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.wne-portrait-card {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}
.wne-portrait-card:hover {
    transform: translateY(-8px);
}

.wne-portrait-card__image {
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 4px;
    background: #e0d4c8;
    margin-bottom: 14px;
    position: relative;
}
.wne-portrait-card__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.wne-portrait-card:hover .wne-portrait-card__image img {
    transform: scale(1.05);
}
.wne-portrait-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0d4c8, #f1e7dc);
}

.wne-portrait-card__name {
    font-family: var(--wne-font-headline);
    font-size: 15px;
    margin-bottom: 4px;
    transition: color 0.3s;
}
.wne-portrait-card:hover .wne-portrait-card__name {
    color: var(--wne-primary);
}

.wne-portrait-card__role {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--wne-primary);
    margin: 0;
}

/* ── Team List ── */
.wne-team-liste {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}
@media (min-width: 768px) {
    .wne-team-liste {
        grid-template-columns: 1fr 1fr;
        column-gap: 48px;
    }
}

.wne-team-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 8px;
    border-bottom: 1px solid #f0e4dc;
    transition: background 0.3s;
    border-radius: 2px;
}
.wne-team-row:hover {
    background: var(--wne-surface-container-high);
}

.wne-team-row__funktion {
    font-size: 15px;
    color: var(--wne-on-surface);
}

.wne-team-row__name {
    font-size: 13px;
    color: var(--wne-on-surface-variant);
    font-style: italic;
}

/* ── Countdown ── */
.wne-countdown {
    display: flex;
    gap: 16px;
}

.wne-countdown__item {
    flex: 1;
    background: var(--wne-surface-container-high);
    border-radius: 8px;
    padding: 28px 12px;
    text-align: center;
    transition: all 0.3s;
}
.wne-countdown__item:hover {
    background: var(--wne-surface-container-highest);
    transform: scale(1.02);
}

.wne-countdown__number {
    display: block;
    font-family: var(--wne-font-headline);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    color: var(--wne-primary);
    line-height: 1;
}

.wne-countdown__label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--wne-on-surface-variant);
    margin-top: 6px;
}

/* ── Ticket Calculator ── */
.wne-ticket-calc {
    background: #fff;
    border: 1.5px solid var(--wne-outline-variant);
    border-radius: 10px;
    padding: 32px;
    box-shadow: var(--wne-shadow-card);
}

.wne-ticket-calc__title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 28px;
}

.wne-ticket-calc__category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    margin: 0 -14px;
    border-radius: 6px;
    transition: background 0.2s;
}
.wne-ticket-calc__category:hover {
    background: var(--wne-surface-container-low);
}

.wne-ticket-calc__label {
    display: block;
    font-size: 15px;
    font-weight: 600;
}
.wne-ticket-calc__price {
    display: block;
    font-size: 13px;
    color: var(--wne-on-surface-variant);
}

.wne-ticket-calc__stepper {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wne-counter-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--wne-outline);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s;
    color: var(--wne-on-surface);
    line-height: 1;
}
.wne-counter-btn:hover {
    background: var(--wne-primary);
    border-color: var(--wne-primary);
    color: #fff;
}

.wne-counter-value {
    font-size: 18px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.wne-ticket-calc__summary {
    border-top: 1px solid var(--wne-outline-variant);
    padding-top: 20px;
    margin-top: 28px;
}

.wne-ticket-calc__line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--wne-on-surface-variant);
}

.wne-ticket-calc__total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 700;
    margin-top: 16px;
}
.wne-ticket-calc__total span:last-child {
    color: var(--wne-primary);
}

/* ── Editorial Input (for forms) ── */
.wne-editorial-input {
    border: none;
    border-bottom: 1px solid var(--wne-outline);
    background: transparent;
    padding: 10px 0;
    width: 100%;
    font-family: var(--wne-font-body);
    font-size: 16px;
    color: var(--wne-on-surface);
    outline: none;
    transition: border-color 0.3s;
    border-radius: 0;
}
.wne-editorial-input:focus {
    border-bottom-color: var(--wne-primary);
    box-shadow: none;
}
.wne-editorial-input::placeholder {
    color: #9a8680;
}

/* ── Gold Accent Line ── */
.wne-gold-line {
    width: 80px;
    height: 3px;
    background: var(--wne-stage-gold);
}

/* ── Parallax ── */
.wne-parallax-wrap {
    overflow: hidden;
    position: relative;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--wne-surface); }
::-webkit-scrollbar-thumb { background: var(--wne-outline-variant); border-radius: 10px; }

/* ── Responsive Spielplan ── */
@media (max-width: 767px) {
    .wne-perf-row {
        grid-template-columns: 70px 1fr;
        gap: 12px;
    }
    .wne-perf-row__action {
        grid-column: 1 / -1;
    }
    .wne-perf-row__action .wne-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ── Elementor Overrides ── */
.elementor-page body,
body.elementor-page {
    background-color: var(--wne-surface);
}

/* Ensure Elementor sections can use our design tokens */
.elementor-section.wne-section-surface {
    background-color: var(--wne-surface) !important;
}
.elementor-section.wne-section-container {
    background-color: var(--wne-surface-container) !important;
}
.elementor-section.wne-section-container-low {
    background-color: var(--wne-surface-container-low) !important;
}
.elementor-section.wne-section-dark {
    background-color: var(--wne-inverse-surface) !important;
    color: var(--wne-inverse-on-surface) !important;
}

/* ── WS Form Styling ── */
.wsf-form .wsf-field input[type="text"],
.wsf-form .wsf-field input[type="email"],
.wsf-form .wsf-field input[type="tel"],
.wsf-form .wsf-field textarea {
    border: none;
    border-bottom: 1px solid var(--wne-outline);
    background: transparent;
    padding: 10px 0;
    font-family: var(--wne-font-body);
    font-size: 16px;
    color: var(--wne-on-surface);
    border-radius: 0;
    transition: border-color 0.3s;
}
.wsf-form .wsf-field input:focus,
.wsf-form .wsf-field textarea:focus {
    border-bottom-color: var(--wne-primary);
    box-shadow: none;
    outline: none;
}

.wsf-form .wsf-field label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--wne-primary);
    font-family: var(--wne-font-body);
}

.wsf-form button[type="submit"],
.wsf-form input[type="submit"] {
    background: var(--wne-primary) !important;
    color: #fff !important;
    padding: 14px 32px !important;
    font-family: var(--wne-font-body) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    border-radius: 6px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    box-shadow: var(--wne-shadow-btn) !important;
}
.wsf-form button[type="submit"]:hover,
.wsf-form input[type="submit"]:hover {
    background: var(--wne-primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: var(--wne-shadow-btn-hover) !important;
}

/* ── Pulse Animation ── */
@keyframes wne-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.wne-pulse {
    animation: wne-pulse 2s infinite;
}

/* ── Strong Testimonials ── */
.wpmtst-submit input[type="submit"],
.wpmtst_submit_testimonial {
    background: #a6341f;
    color: #fff;
    border: none;
    padding: 14px 32px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.3s ease;
}
.wpmtst-submit input[type="submit"]:hover,
.wpmtst_submit_testimonial:hover {
    background: #c84b34;
}
.wpmtst-submission-form input[type="text"],
.wpmtst-submission-form input[type="email"],
.wpmtst-submission-form textarea {
    border: 1px solid #d4c5b9;
    padding: 10px 14px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 15px;
    color: #1f1b15;
    background: #fff;
    width: 100%;
}
.wpmtst-submission-form input[type="text"]:focus,
.wpmtst-submission-form input[type="email"]:focus,
.wpmtst-submission-form textarea:focus {
    border-color: #a6341f;
    outline: none;
    box-shadow: 0 0 0 2px rgba(166,52,31,0.15);
}

/* ── Footer Navigation ── */
.wne-footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.wne-footer-nav ul li {
    line-height: 2.2;
}
.wne-footer-nav ul li a {
    color: rgba(249,239,228,0.6);
    text-decoration: none;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 14px;
    transition: color 0.3s;
}
.wne-footer-nav ul li a:hover {
    color: #C5A059;
}
/* ── Header Nav-Menu: Umschaltpunkt auf 1280px (Elementor Pro erlaubt hier nur Mobile/Tablet-Breakpoint,
   "Laptop" wird von Elementor absichtlich aus diesem Dropdown ausgeschlossen) ── */
@media (max-width: 1279px) {
    .elementor-nav-menu--dropdown-tablet .elementor-nav-menu--main {
        display: none !important;
    }
}
@media (min-width: 1280px) {
    .elementor-nav-menu--dropdown-tablet .elementor-menu-toggle,
    .elementor-nav-menu--dropdown-tablet .elementor-nav-menu--dropdown {
        display: none !important;
    }
}
@media (min-width: 1025px) and (max-width: 1279px) {
    .elementor-nav-menu--dropdown-tablet .elementor-menu-toggle {
        display: flex !important;
    }
}

/* Verlags-Referenz (Aufführungsrechte) - rechtlich erforderlicher Hinweis */
.wne-verlags-referenz {
    font-size: 12px;
    color: #a89a8c;
    margin-top: 12px;
    font-style: italic;
}

/* Spielort-Zeile im Spielplan */
.wne-perf-row__ort {
    font-size: 13px;
    color: #58413d;
    margin-top: 2px;
}

/* MailPoet Newsletter-Formular (Startseite) */
.mailpoet_form input[type=email] {
    border: 1px solid #e0bfb9 !important;
    border-radius: 4px !important;
    padding: 12px 16px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    width: 100% !important;
    margin-bottom: 12px !important;
}
input.mailpoet_submit {
    background: #a6341f !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 12px 32px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    cursor: pointer !important;
}
input.mailpoet_submit:hover {
    background: #c84b34 !important;
}
