/*
Theme Name:  O'Capella
Theme URI:   https://ocapella.de
Author:      O'Capella Hamburg
Description: Offizielles WordPress-Theme für O'Capella – Hamburg Vocal Ensemble. Dark/Light Mode, vollständig responsiv, echte Inhalte von ocapella.de.
Version:     3.0.0
License:     GNU General Public License v2 or later
Text Domain: ocapella
Tags:        dark, light, music, choir, one-page, custom-menu, featured-images, responsive
*/

/* ================================================================
   TOKENS – Light Mode (Default)
   ================================================================ */
:root {
    --bg:          #f5f3ef;
    --bg-card:     #ffffff;
    --bg-card2:    #eeebe6;
    --bg-nav:      rgba(245,243,239,0.88);
    --text:        #1a1814;
    --text-muted:  #7a7570;
    --text-light:  #4a4540;
    --border:      #ddd9d3;
    --shadow:      0 2px 18px rgba(0,0,0,.08);
    --btn-primary-bg:  #1a1814;
    --btn-primary-fg:  #f5f3ef;
    --btn-ghost-bg:    rgba(0,0,0,.06);
    --btn-ghost-border:rgba(0,0,0,.14);
    --overlay:     rgba(255,255,255,.28);
    --hero-overlay:rgba(0,0,0,.38);

    --serif: 'Georgia','Times New Roman',serif;
    --sans:  'Inter','Helvetica Neue',Arial,sans-serif;
    --radius-lg:   20px;
    --radius-pill: 50px;

    color-scheme: light;
}

/* ================================================================
   TOKENS – Dark Mode
   (a) System-Preference
   (b) Manuell per [data-theme="dark"] auf <html>
   ================================================================ */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg:          #0d0d0d;
        --bg-card:     #181818;
        --bg-card2:    #212121;
        --bg-nav:      rgba(13,13,13,.82);
        --text:        #f0ece4;
        --text-muted:  #777;
        --text-light:  #bbb;
        --border:      #2c2c2c;
        --shadow:      0 2px 18px rgba(0,0,0,.4);
        --btn-primary-bg:  #f0ece4;
        --btn-primary-fg:  #0d0d0d;
        --btn-ghost-bg:    rgba(255,255,255,.07);
        --btn-ghost-border:rgba(255,255,255,.14);
        --overlay:     rgba(0,0,0,.28);
        --hero-overlay:rgba(0,0,0,.58);
        color-scheme: dark;
    }
}

[data-theme="dark"] {
    --bg:          #0d0d0d;
    --bg-card:     #181818;
    --bg-card2:    #212121;
    --bg-nav:      rgba(13,13,13,.82);
    --text:        #f0ece4;
    --text-muted:  #777;
    --text-light:  #bbb;
    --border:      #2c2c2c;
    --shadow:      0 2px 18px rgba(0,0,0,.4);
    --btn-primary-bg:  #f0ece4;
    --btn-primary-fg:  #0d0d0d;
    --btn-ghost-bg:    rgba(255,255,255,.07);
    --btn-ghost-border:rgba(255,255,255,.14);
    --overlay:     rgba(0,0,0,.28);
    --hero-overlay:rgba(0,0,0,.58);
    color-scheme: dark;
}

[data-theme="light"] {
    --bg:          #f5f3ef;
    --bg-card:     #ffffff;
    --bg-card2:    #eeebe6;
    --bg-nav:      rgba(245,243,239,0.88);
    --text:        #1a1814;
    --text-muted:  #7a7570;
    --text-light:  #4a4540;
    --border:      #ddd9d3;
    --shadow:      0 2px 18px rgba(0,0,0,.08);
    --btn-primary-bg:  #1a1814;
    --btn-primary-fg:  #f5f3ef;
    --btn-ghost-bg:    rgba(0,0,0,.06);
    --btn-ghost-border:rgba(0,0,0,.14);
    --overlay:     rgba(255,255,255,.28);
    --hero-overlay:rgba(0,0,0,.38);
    color-scheme: light;
}

/* ================================================================
   RESET & BASE
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    transition: background .3s, color .3s;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ================================================================
   HEADER / NAV
   ================================================================ */
#site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 64px;
    background: var(--bg-nav);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: background .3s, border-color .3s, padding .3s;
}
#site-header.scrolled { padding-top: 10px; padding-bottom: 10px; }

.site-branding { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 600; }
.logo-circle {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--btn-primary-bg); color: var(--btn-primary-fg);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: .8rem; flex-shrink: 0;
    transition: background .3s, color .3s;
}
.site-title-text { color: var(--text); transition: color .3s; }

/* Nav links */
.nav-right { display: flex; align-items: center; gap: 32px; }
#primary-menu-wrap nav ul { display: flex; gap: 36px; list-style: none; font-size: .82rem; letter-spacing: .09em; text-transform: uppercase; }
#primary-menu-wrap nav a { color: var(--text-light); transition: color .2s; }
#primary-menu-wrap nav a:hover,
#primary-menu-wrap nav .current-menu-item > a { color: var(--text); }

/* ================================================================
   THEME TOGGLE BUTTON
   ================================================================ */
.theme-toggle {
    width: 52px; height: 28px;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: background .3s, border-color .3s;
    display: flex; align-items: center;
    padding: 0 4px;
    outline: none;
}
.theme-toggle:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.theme-toggle .tog-thumb {
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--btn-primary-bg);
    transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .3s;
    display: flex; align-items: center; justify-content: center;
    font-size: .65rem; line-height: 1;
}
[data-theme="dark"] .tog-thumb,
html:not([data-theme="light"]) .theme-toggle .tog-thumb {
    transform: translateX(24px);
}
.tog-icon-light { display: block; }
.tog-icon-dark  { display: none; }
[data-theme="dark"] .tog-icon-light,
html:not([data-theme="light"]) .theme-toggle .tog-icon-light { display: none; }
[data-theme="dark"] .tog-icon-dark,
html:not([data-theme="light"]) .theme-toggle .tog-icon-dark { display: block; }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .tog-thumb { transform: translateX(24px); }
    :root:not([data-theme="light"]) .tog-icon-light { display: none; }
    :root:not([data-theme="light"]) .tog-icon-dark { display: block; }
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 13px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    min-height: 44px; min-width: 44px;
    justify-content: center; align-items: center;
    transition: border-color .2s, color .2s;
}

/* ================================================================
   HERO
   ================================================================ */
#hero {
    position: relative; min-height: 100dvh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center; overflow: hidden;
    padding: 100px 24px 60px;
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center top;
    background-repeat: no-repeat;
}
.hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background: var(--hero-overlay);
    transition: background .3s;
}
.hero-fallback { background: var(--bg-card2); }

/* Light-mode fallback gradient */
[data-theme="light"] .hero-fallback,
html:not([data-theme="dark"]) .hero-fallback {
    background: linear-gradient(155deg, #e8e3db 0%, #d8d1c6 100%);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .hero-fallback {
        background: linear-gradient(155deg, #1e1c1a 0%, #0d0d0d 65%);
    }
}
[data-theme="dark"] .hero-fallback { background: linear-gradient(155deg, #1e1c1a 0%, #0d0d0d 65%); }

.hero-content { position: relative; z-index: 2; max-width: 820px; }
.hero-kicker { display: inline-block; font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; color: rgba(255,255,255,.65); margin-bottom: 24px; }
.hero-title {
    font-family: var(--serif); font-style: italic; font-weight: 400;
    font-size: clamp(2.2rem, 7vw, 5.2rem); line-height: 1.08;
    color: #fff; margin-bottom: 14px;
    text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero-subtitle { font-size: 1rem; color: rgba(255,255,255,.78); margin-bottom: 44px; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Light Hero: text on bg without photo */
.no-hero-photo .hero-kicker  { color: var(--text-muted); }
.no-hero-photo .hero-title   { color: var(--text); text-shadow: none; }
.no-hero-photo .hero-subtitle{ color: var(--text-light); }

.btn-primary {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 13px 30px; background: var(--btn-primary-bg); color: var(--btn-primary-fg);
    border-radius: var(--radius-pill); font-weight: 700; font-size: .88rem;
    transition: opacity .2s, transform .2s; border: none; cursor: pointer;
    min-height: 44px;
}
.btn-primary:hover { opacity: .84; transform: translateY(-1px); color: var(--btn-primary-fg); }

.btn-ghost {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 13px 30px; background: var(--btn-ghost-bg);
    border: 1px solid var(--btn-ghost-border);
    border-radius: var(--radius-pill); color: #fff; font-size: .88rem;
    transition: background .2s; cursor: pointer; min-height: 44px;
}
.btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; }
.no-hero-photo .btn-ghost { color: var(--text); }
.no-hero-photo .btn-ghost:hover { color: var(--text); }

.hero-arrow {
    position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
    z-index: 2; font-size: 1.5rem; color: rgba(255,255,255,.5);
    animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(9px)} }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition-duration: .01ms !important; } }

/* ================================================================
   LAYOUT HELPERS
   ================================================================ */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 64px; }
section { padding: 90px 0; border-top: 1px solid var(--border); transition: border-color .3s; }
#hero { border-top: none; }

.section-eyebrow { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.section-title { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.9rem, 3.5vw, 2.7rem); line-height: 1.15; margin-bottom: 14px; color: var(--text); transition: color .3s; }
.section-lead { color: var(--text-light); font-size: .95rem; max-width: 540px; margin-bottom: 48px; transition: color .3s; }

/* ================================================================
   CARDS
   ================================================================ */
.cards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 38px 34px;
    box-shadow: var(--shadow);
    transition: border-color .3s, transform .3s, background .3s, box-shadow .3s;
}
.card:hover { border-color: var(--text-muted); transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,.12); }
.card-icon { font-size: 1.7rem; margin-bottom: 18px; opacity: .72; }
.card h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.28rem; margin-bottom: 12px; color: var(--text); transition: color .3s; }
.card p { color: var(--text-light); font-size: .88rem; line-height: 1.75; margin-bottom: 22px; transition: color .3s; }
.card-link { font-size: .82rem; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; color: var(--text); transition: opacity .2s, color .3s; }
.card-link:hover { opacity: .6; }

/* ================================================================
   FACTS
   ================================================================ */
.facts-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.fact-item {
    background: var(--bg-card2); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 30px;
    transition: background .3s, border-color .3s;
}
.fact-number { font-family: var(--serif); font-style: italic; font-size: 3rem; font-weight: 400; color: var(--text); line-height: 1; margin-bottom: 8px; transition: color .3s; }
.fact-label { font-size: .82rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .1em; }
.fact-desc { font-size: .88rem; color: var(--text-light); margin-top: 10px; line-height: 1.65; transition: color .3s; }

/* ================================================================
   REPERTOIRE
   ================================================================ */
.repertoire-cols { columns: 3; gap: 32px; }
.repertoire-category { break-inside: avoid; margin-bottom: 32px; }
.repertoire-category h4 {
    font-family: var(--serif); font-style: italic; font-weight: 400;
    font-size: 1.05rem; color: var(--text); margin-bottom: 12px;
    padding-bottom: 8px; border-bottom: 1px solid var(--border);
    transition: color .3s, border-color .3s;
}
.repertoire-category ul { list-style: none; }
.repertoire-category li { font-size: .82rem; color: var(--text-light); padding: 4px 0; line-height: 1.5; transition: color .3s; }
.repertoire-category li span { color: var(--text-muted); font-style: italic; font-size: .78rem; }

/* ================================================================
   MEDIA
   ================================================================ */
.media-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 44px; }
.media-nav { display: flex; gap: 10px; margin-top: 6px; flex-shrink: 0; }
.media-nav-btn {
    width: 40px; height: 40px; background: transparent;
    border: 1px solid var(--border); border-radius: 50%;
    color: var(--text); font-size: .95rem; cursor: pointer;
    transition: background .2s, border-color .2s;
    min-height: 44px; min-width: 44px;
}
.media-nav-btn:hover { background: var(--bg-card); border-color: var(--text-muted); }

.media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.media-card {
    position: relative; border-radius: 16px; overflow: hidden;
    aspect-ratio: 16/9; background: var(--bg-card2); cursor: pointer;
}
.media-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: filter .4s; }
.media-card:hover img { filter: grayscale(50%); }
.media-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.32); transition: background .3s; }
.media-card:hover .media-overlay { background: rgba(0,0,0,.12); }
.media-icon {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 52px; height: 52px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; transition: transform .2s;
}
.media-icon.play { background: rgba(255,255,255,.92); color: #111; }
.media-icon.audio { background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.5); font-size: 1.3rem; }
.media-card:hover .media-icon { transform: translate(-50%,-50%) scale(1.1); }
.media-badge { position: absolute; bottom: 16px; left: 18px; font-size: .67rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.7); }

/* ================================================================
   EVENTS / KONZERTE
   ================================================================ */
.events-list { margin-top: 10px; }
.event-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 26px 0; border-bottom: 1px solid var(--border); gap: 20px;
    transition: opacity .2s, border-color .3s;
}
.event-row:hover { opacity: .72; }
.event-date-block { min-width: 64px; text-align: center; flex-shrink: 0; }
.event-day { font-family: var(--serif); font-style: italic; font-size: 2.2rem; font-weight: 400; line-height: 1; color: var(--text); transition: color .3s; }
.event-month { font-size: .65rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); margin-top: 2px; }
.event-details { flex: 1; }
.event-details h4 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.15rem; margin-bottom: 4px; color: var(--text); transition: color .3s; }
.event-details .venue { font-size: .82rem; color: var(--text-muted); }
.btn-outline {
    display: inline-flex; align-items: center;
    padding: 9px 22px; border: 1px solid var(--border);
    border-radius: var(--radius-pill); font-size: .8rem; color: var(--text-light);
    transition: border-color .2s, color .2s; min-height: 44px;
}
.btn-outline:hover { border-color: var(--text-muted); color: var(--text); }

/* ================================================================
   KONTAKT
   ================================================================ */
.kontakt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-form-side .section-lead { margin-bottom: 32px; }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-bottom: 11px; }
.f-input {
    width: 100%; padding: 13px 17px;
    background: var(--bg-card2); border: 1px solid var(--border);
    border-radius: 10px; color: var(--text); font-family: var(--sans); font-size: .88rem;
    outline: none; transition: border-color .2s, background .3s, color .3s;
}
.f-input:focus { border-color: var(--text-muted); }
.f-input::placeholder { color: var(--text-muted); }
textarea.f-input { resize: vertical; min-height: 126px; margin-bottom: 11px; display: block; }
.btn-send {
    width: 100%; padding: 15px; background: var(--btn-primary-bg); color: var(--btn-primary-fg);
    border: none; border-radius: 10px; font-size: .88rem; font-weight: 700; cursor: pointer;
    transition: opacity .2s, background .3s, color .3s; min-height: 44px;
}
.btn-send:hover { opacity: .84; }
.form-success { background: var(--bg-card2); border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; margin-bottom: 18px; color: var(--text-light); font-size: .88rem; }

/* CF7 overrides */
.wpcf7-form span.wpcf7-text,
.wpcf7-form span.wpcf7-email,
.wpcf7-form span.wpcf7-textarea { display: block; width: 100%; margin-bottom: 11px; }
.wpcf7-form input[type=text],
.wpcf7-form input[type=email],
.wpcf7-form textarea {
    width: 100%; padding: 13px 17px;
    background: var(--bg-card2); border: 1px solid var(--border);
    border-radius: 10px; color: var(--text); font-family: var(--sans); font-size: .88rem; outline: none;
    transition: background .3s, color .3s, border-color .3s;
}
.wpcf7-form input[type=submit] {
    width: 100%; padding: 15px; background: var(--btn-primary-bg); color: var(--btn-primary-fg);
    border: none; border-radius: 10px; font-weight: 700; cursor: pointer; transition: opacity .2s;
}

.newsletter-panel {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 22px; padding: 42px 38px;
    display: flex; flex-direction: column; gap: 28px;
    box-shadow: var(--shadow);
    transition: background .3s, border-color .3s, box-shadow .3s;
}
.newsletter-panel h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.85rem; line-height: 1.2; margin-bottom: 12px; color: var(--text); transition: color .3s; }
.newsletter-panel p { color: var(--text-light); font-size: .86rem; margin-bottom: 20px; transition: color .3s; }
.nl-form { display: flex; }
.nl-form input {
    flex: 1; padding: 12px 17px;
    background: var(--bg-card2); border: 1px solid var(--border);
    border-right: none; border-radius: var(--radius-pill) 0 0 var(--radius-pill);
    color: var(--text); font-size: .86rem; outline: none;
    transition: background .3s, color .3s, border-color .3s;
}
.nl-form input::placeholder { color: var(--text-muted); }
.nl-form button {
    padding: 12px 20px; background: var(--btn-primary-bg); color: var(--btn-primary-fg);
    border: none; border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
    font-weight: 700; font-size: .82rem; cursor: pointer; white-space: nowrap;
    transition: opacity .2s, background .3s, color .3s;
}
.nl-form button:hover { opacity: .84; }

.contact-info-grid { border-top: 1px solid var(--border); padding-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; transition: border-color .3s; }
.ci-label { display: block; font-size: .67rem; letter-spacing: .15em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.social-row { display: flex; gap: 10px; }
.soc-btn {
    width: 33px; height: 33px; background: var(--bg-card2);
    border: 1px solid var(--border); border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: .88rem; transition: background .2s, border-color .2s; cursor: pointer;
    color: var(--text); min-height: 44px; min-width: 44px;
}
.soc-btn:hover { background: var(--bg-card); border-color: var(--text-muted); }
.ci-email { font-size: .86rem; color: var(--text); transition: color .3s; }

/* ================================================================
   FOOTER
   ================================================================ */
#site-footer {
    border-top: 1px solid var(--border); padding: 22px 64px;
    display: flex; align-items: center; justify-content: space-between;
    font-size: .78rem; color: var(--text-muted);
    transition: border-color .3s, color .3s, background .3s;
    background: var(--bg);
}
#site-footer nav ul { display: flex; gap: 26px; list-style: none; }
#site-footer nav a { color: var(--text-muted); transition: color .2s; }
#site-footer nav a:hover { color: var(--text); }

/* ================================================================
   INNER PAGES
   ================================================================ */
.site-main { padding-top: 82px; }
.inner-wrap { max-width: 800px; margin: 0 auto; padding: 80px 64px; }
.entry-title { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.15; margin-bottom: 16px; color: var(--text); transition: color .3s; }
.entry-meta { font-size: .8rem; color: var(--text-muted); margin-bottom: 36px; }
.entry-content { font-size: .97rem; line-height: 1.85; color: var(--text-light); transition: color .3s; }
.entry-content h2,.entry-content h3 { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--text); margin: 2em 0 .8em; }
.entry-content p { margin-bottom: 1.4em; }
.entry-content a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul,.entry-content ol { padding-left: 1.4em; margin-bottom: 1.4em; }
.entry-content li { margin-bottom: .45em; }
.entry-content blockquote { border-left: 3px solid var(--border); padding-left: 22px; margin: 1.5em 0; font-style: italic; color: var(--text-muted); }
.entry-content strong { color: var(--text); font-weight: 600; }

/* ================================================================
   404
   ================================================================ */
.not-found-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 24px; }

/* ================================================================
   RESPONSIVE – Tablet Landscape (1024px)
   ================================================================ */
@media (max-width: 1024px) {
    .wrap { padding: 0 32px; }
    section { padding: 72px 0; }
    .cards-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .facts-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .repertoire-cols { columns: 2; gap: 24px; }
    .kontakt-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ================================================================
   RESPONSIVE – Smartphone (768px)
   ================================================================ */
@media (max-width: 768px) {
    /* Header */
    #site-header { padding: 14px 20px; }
    .nav-right { gap: 12px; }

    #primary-menu-wrap {
        display: none;
        position: fixed;
        top: 66px; left: 0; right: 0; bottom: 0;
        background: var(--bg-nav);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 28px 24px;
        overflow-y: auto;
        border-top: 1px solid var(--border);
        z-index: 199;
        transition: background .3s;
    }
    #primary-menu-wrap.open { display: block; }
    #primary-menu-wrap nav ul { flex-direction: column; gap: 0; }
    #primary-menu-wrap nav li { border-bottom: 1px solid var(--border); }
    #primary-menu-wrap nav a { display: block; padding: 18px 0; font-size: 1rem; letter-spacing: .06em; }
    .menu-toggle { display: flex; }

    /* Wrap & Sections */
    .wrap { padding: 0 20px; }
    section { padding: 56px 0; }

    /* Hero */
    #hero { padding: 0 20px 50px; }
    .hero-subtitle { font-size: .88rem; }
    .hero-btns { flex-direction: column; align-items: center; gap: 12px; }
    .btn-primary, .btn-ghost { width: 100%; max-width: 320px; }

    /* Cards, Facts */
    .cards-grid { grid-template-columns: 1fr; gap: 14px; }
    .card { padding: 28px 22px; }
    .facts-grid { grid-template-columns: 1fr; gap: 14px; }

    /* Repertoire */
    .repertoire-cols { columns: 1; }

    /* Media → scroll-snap slider */
    .media-header { flex-direction: column; gap: 16px; }
    .media-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 14px;
        padding-bottom: 8px;
    }
    .media-grid::-webkit-scrollbar { display: none; }
    .media-card { flex: 0 0 85vw; scroll-snap-align: start; }

    /* Events */
    .event-row { flex-wrap: wrap; gap: 12px; }
    .event-details { flex-basis: calc(100% - 80px); }

    /* Kontakt */
    .kontakt-grid { grid-template-columns: 1fr; gap: 28px; }
    .form-row-2 { grid-template-columns: 1fr; }
    .newsletter-panel { padding: 26px 20px; }
    .contact-info-grid { grid-template-columns: 1fr; gap: 20px; }
    .nl-form { flex-direction: column; gap: 8px; }
    .nl-form input { border-right: 1px solid var(--border); border-radius: 10px; }
    .nl-form button { border-radius: 10px; padding: 13px; }

    /* Footer */
    #site-footer { flex-direction: column; gap: 14px; padding: 20px; text-align: center; }
    #site-footer nav ul { justify-content: center; flex-wrap: wrap; gap: 14px; }

    /* Inner pages */
    .inner-wrap { padding: 50px 20px; }
}

/* ================================================================
   RESPONSIVE – Small Phone (480px)
   ================================================================ */
@media (max-width: 480px) {
    .hero-title { font-size: clamp(2rem, 12vw, 2.8rem); }
    .card { padding: 20px 16px; }
    .fact-number { font-size: 2.4rem; }
    .event-day { font-size: 1.8rem; }
    .newsletter-panel h3 { font-size: 1.55rem; }
}

/* ================================================================
   SAFE AREAS (iPhone notch / Dynamic Island)
   ================================================================ */
#site-header {
    padding-left: max(64px, env(safe-area-inset-left));
    padding-right: max(64px, env(safe-area-inset-right));
}
@media (max-width: 768px) {
    #site-header {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    #site-footer {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
}
