/* =========================================================
   TGW – Struktur/Layout (design-unabhängig)
   Die Optik (Farben, Schriften, Rundung, Glow) kommt aus
   css/design-1.css | design-2.css | design-3.css
   ========================================================= */

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--olive); text-decoration-thickness: 1px; text-underline-offset: 2px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.02em; }

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

main { flex: 1 0 auto; }

/* Sichtbarer Fokus für Tastaturbedienung */
:focus-visible { outline: 3px solid var(--ball); outline-offset: 2px; border-radius: 4px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 0.5rem; top: -3rem;
    background: var(--ink); color: #fff; padding: 0.5rem 0.9rem;
    border-radius: 8px; z-index: 100; transition: top 0.2s;
}
.skip-link:focus { top: 0.5rem; }

/* ---------- Kopf / Navigation ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: saturate(1.2) blur(8px);
    border-bottom: 1px solid var(--line);
}
.nav {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand-logo { width: 40px; height: 40px; }
.brand-name {
    font-family: var(--font-display); font-weight: 700;
    font-size: 1.35rem; letter-spacing: 0.01em;
}

.nav-links { display: flex; align-items: center; gap: 0.4rem; }
.nav-link {
    font-weight: 500; color: var(--ink); text-decoration: none;
    padding: 0.5rem 0.85rem; border-radius: 999px; position: relative;
    transition: background 0.15s, color 0.15s;
}
.nav-link:hover { background: var(--paper-2); }
.nav-link.active { color: var(--olive); }
.nav-link.active::after {
    content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.28rem;
    height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--ball), var(--ball-dk));
}

/* Burger-Button (nur mobil sichtbar) */
.nav-toggle {
    display: none; width: 44px; height: 44px; border: 0; background: transparent;
    cursor: pointer; border-radius: 10px; padding: 10px;
}
.nav-toggle span {
    display: block; height: 2px; width: 100%; background: var(--ink);
    border-radius: 2px; transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle span + span { margin-top: 5px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: var(--font-body); font-weight: 600; font-size: 1rem;
    padding: 0.7rem 1.3rem; border-radius: 999px; border: 1px solid transparent;
    text-decoration: none; cursor: pointer; transition: transform 0.12s, box-shadow 0.2s, background 0.2s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper-2); }

/* ---------- Hero (Startseite) ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(55% 60% at 78% 10%, rgba(var(--glow), 0.20), transparent 70%),
        radial-gradient(50% 55% at 8% 96%, rgba(var(--glow), 0.12), transparent 70%);
}
.hero-seam {
    position: absolute; inset: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
}
.hero-seam path { fill: none; stroke-linecap: round; }
.hero-seam .soft   { stroke: var(--ball); stroke-width: 30; opacity: 0.14; }
.hero-seam .thread { stroke: var(--ball); stroke-width: 3;  opacity: 0.8; }

.hero-inner {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: 1.2rem; padding-block: clamp(3rem, 8vw, 6rem);
}
.hero-logo { width: clamp(120px, 20vw, 170px); filter: drop-shadow(0 14px 30px rgba(90,110,20,0.18)); }
.eyebrow {
    font-size: 0.8rem; font-weight: 500; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--olive);
}
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 700; text-wrap: balance; }
.hero-lead { max-width: 46ch; color: var(--muted); font-size: clamp(1.02rem, 2.3vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; margin-top: 0.4rem; }

.mark { position: relative; white-space: nowrap; }
.mark::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em;
    height: 0.14em; border-radius: 1em;
    background: linear-gradient(90deg, var(--ball), var(--ball-dk));
}

/* ---------- Abschnitte ---------- */
.section { padding-block: clamp(2.6rem, 6vw, 4.5rem); }
.section-alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 600; }
.section-head p { color: var(--muted); margin-top: 0.6rem; }

/* ---------- Karten (Aktuelles) ---------- */
.card-grid {
    display: grid; gap: 1.3rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.card {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; gap: 0.6rem;
    transition: transform 0.15s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-date { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; color: var(--olive); text-transform: uppercase; }
.card h3 { font-size: 1.25rem; font-weight: 700; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card-more { margin-top: auto; font-weight: 600; color: var(--olive); text-decoration: none; }
.card-more:hover { text-decoration: underline; }

/* Platzhalter-Markierung (Dummy-Inhalte) */
.is-placeholder { opacity: 0.75; }
.tag-placeholder {
    display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em;
    text-transform: uppercase; color: var(--muted);
    background: var(--paper-2); border: 1px solid var(--line);
    padding: 0.15rem 0.55rem; border-radius: 999px;
}

/* ---------- Seitenkopf (Unterseiten) ---------- */
.page-head { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-head::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(60% 80% at 85% -10%, rgba(var(--glow), 0.16), transparent 70%);
}
.page-head-inner { position: relative; padding-block: clamp(2.4rem, 6vw, 4rem); }
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; }
.page-head p { color: var(--muted); margin-top: 0.6rem; max-width: 48ch; }

/* Platzhalter-Notiz auf Dummy-Seiten */
.placeholder-note {
    margin-block: clamp(2rem, 5vw, 3.5rem);
    border: 1px dashed var(--line); border-radius: var(--radius);
    background: var(--card); padding: clamp(1.5rem, 4vw, 2.5rem);
    text-align: center; color: var(--muted);
}
.placeholder-note strong { color: var(--ink); font-family: var(--font-display); }

/* ---------- Fuss ---------- */
.site-footer { background: var(--ink); color: #e9ecdf; margin-top: auto; }
.footer-inner {
    display: flex; flex-wrap: wrap; gap: 1rem 2rem;
    justify-content: space-between; align-items: center;
    padding-block: 2rem;
}
.footer-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: #fff; }
.footer-meta { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin-top: 0.2rem; }
.footer-mail { color: var(--ball); font-weight: 600; text-decoration: none; }
.footer-mail:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-block: 1rem; font-size: 0.85rem; color: rgba(255,255,255,0.55); }

/* ---------- Inhalts-Typografie (Textseiten) ---------- */
.prose { max-width: 46rem; }
.prose > * + * { margin-top: 1rem; }
.lead-text { font-size: clamp(1.08rem, 2.4vw, 1.22rem); color: var(--muted); }

/* Dezenter Dokument-Link (z. B. Statuten-PDF) */
.doc-link { margin-top: 1.4rem; font-size: 0.9rem; }
.doc-link a {
    display: inline-flex; align-items: center; gap: 0.45rem;
    color: var(--muted); text-decoration: none; transition: color 0.15s ease;
}
.doc-link a:hover, .doc-link a:focus-visible { color: var(--olive); text-decoration: underline; }
.doc-icon { flex-shrink: 0; opacity: 0.8; }

/* Aufzählungen */
.bullet-list, .tick-list { list-style: none; display: grid; gap: 0.7rem; padding-left: 1.6rem; }
.bullet-list li, .tick-list li { position: relative; padding-left: 1.7rem; }
.bullet-list li::before {
    content: ""; position: absolute; left: 0.3rem; top: 0.62em;
    width: 0.5rem; height: 0.5rem; border-radius: 50%;
    background: linear-gradient(180deg, var(--ball), var(--ball-dk));
}
.tick-list li::before {
    content: "✓"; position: absolute; left: 0; top: -0.05em;
    color: var(--olive); font-weight: 700;
}

/* Preise */
.price-grid {
    display: grid; gap: 1.3rem; align-items: start;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}
.price-card {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); padding: clamp(1.3rem, 3vw, 1.9rem);
}
.price-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.6rem; }
.price-row {
    display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
    padding: 0.65rem 0; border-bottom: 1px dashed var(--line);
}
.price-row:last-child { border-bottom: 0; }
.price-row .label { color: var(--ink); }
.price-row .label small { color: var(--muted); }
.price-row .amount { font-family: var(--font-display); font-weight: 700; white-space: nowrap; }

.price-note {
    margin-top: 1rem;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 0.85rem 1.15rem;
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 1rem; flex-wrap: wrap;
}
.price-note .label { color: var(--ink); font-weight: 600; }
.price-note .amount { font-family: var(--font-display); font-weight: 700; white-space: nowrap; }

/* Kontakt-Aufruf */
.cta {
    background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
    padding: clamp(1.8rem, 5vw, 3rem); text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
}
.cta h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 600; }
.cta p { color: var(--muted); max-width: 42ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; }
.cta-actions .btn[aria-expanded="true"] { background: var(--paper-2); border-color: var(--ball-dk); }

/* Ausklappbare Formulare (Kontakt & Beitritt) */
.form-wrap {
    display: grid; grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}
.form-wrap.is-open { grid-template-rows: 1fr; margin-top: 1.4rem; }
.form-inner { overflow: hidden; min-height: 0; }
.form-wrap:not(.is-open) .form-inner { visibility: hidden; }

.site-form {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: clamp(1.4rem, 4vw, 2.2rem); max-width: 46rem; margin-inline: auto; text-align: left;
}
.site-form h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 1.3rem; }

/* Honeypot – versteckt, nur für Bots sichtbar */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field-grid {
    display: grid; gap: 1rem 1.3rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.site-form > .field + .field { margin-top: 1rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.req { color: var(--olive); }
.field input, .field textarea {
    font: inherit; color: var(--ink); background: var(--paper); width: 100%;
    border: 1px solid var(--line); border-radius: 10px; padding: 0.6rem 0.75rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { resize: vertical; min-height: 6.5rem; }
.field input:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field textarea:focus {
    outline: 0; border-color: var(--ball-dk); box-shadow: 0 0 0 3px rgba(var(--glow), 0.25);
}

.field-radio { border: 0; padding: 0; margin-top: 1.5rem; }
.field-radio legend { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.6rem; padding: 0; }
.field-radio label {
    display: flex; align-items: flex-start; gap: 0.6rem;
    font-size: 0.98rem; padding: 0.25rem 0; cursor: pointer;
}
.field-radio input { margin-top: 0.28rem; accent-color: var(--ball-dk); }

.form-foot { margin-top: 1.7rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.2rem; }

.form-status { margin-top: 1rem; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-ok  { color: var(--olive); }
.form-status.is-err { color: var(--danger); }

/* Beitritt: Hinweis, WhatsApp-Opt-out, Bestätigung */
.hint { color: var(--muted); font-weight: 400; font-size: 0.82em; }
.whatsapp-info { margin-top: 1.6rem; }
.whatsapp-info h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.7rem; }
.wa-box {
    background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1rem 1.1rem; margin-bottom: 0.9rem;
}
.wa-box p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.7rem; }
.wa-box p strong { color: var(--ink); }
.wa-optout, .confirm { display: flex; align-items: baseline; gap: 0.55rem; cursor: pointer; font-size: 0.95rem; }
.wa-optout > input, .confirm > input {
    flex: none; width: 1.05em; height: 1.05em; accent-color: var(--ball-dk);
}
.wa-optout > span, .confirm > span { flex: 1 1 auto; min-width: 0; }
.confirm { margin-top: 1.4rem; font-weight: 500; }

/* Termintabelle (Jahresprogramm) */
.table-wrap { overflow-x: auto; }
.schedule { width: 100%; max-width: 48rem; border-collapse: collapse; }
.schedule th {
    text-align: left; font-family: var(--font-body); font-weight: 600;
    font-size: 0.76rem; letter-spacing: 0.09em; text-transform: uppercase;
    color: var(--muted); padding: 0 0 0.8rem 0; border-bottom: 1px solid var(--line);
}
.schedule td { padding: 0.95rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.schedule th { padding-left: 0.9rem; padding-right: 0.9rem; }
.schedule th:first-child, .schedule td.date { padding-right: clamp(1.75rem, 6vw, 3.5rem); }
.schedule td.date {
    font-family: var(--font-display); font-weight: 700; color: var(--olive);
    white-space: nowrap; font-variant-numeric: tabular-nums;
}
.schedule td.event { width: 100%; font-weight: 700; }

/* Beschreibung über die volle Breite; Kopfzeile ohne Einfärbung */
.schedule tr.termin-row.has-detail > td { border-bottom: 0; }
.schedule td.termin-detail-cell { padding: 0 0.9rem; }
.schedule tbody tr:last-child td { border-bottom: 0; }
.table-note { margin-top: 1rem; color: var(--muted); font-size: 0.9rem; }

/* Aufklappbare Termin-Beschreibung */
.termin-toggle {
    display: flex; align-items: center; gap: 0.75rem; width: 100%;
    background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
    font: inherit; color: inherit; text-align: left;
}
.termin-titel { font-weight: 700; }
.termin-toggle:hover .termin-titel { color: var(--olive); }
.termin-chevron {
    flex: none; margin-left: auto; width: 0.55em; height: 0.55em;
    border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
    transform: rotate(45deg); transition: transform 0.2s;
}
.termin-toggle[aria-expanded="true"] .termin-chevron { transform: rotate(-135deg); }

.termin-detail {
    overflow: hidden; max-height: 0;
    transition: max-height 0.3s ease;
}
/* Beschreibung: erlaubt einfache Formatierung (fett, Aufzählung, Umbruch) */
.termin-detail-inner { color: var(--muted); padding-block: 0.35rem 0.95rem; max-width: 60ch; }
.termin-detail-inner b, .termin-detail-inner strong { color: var(--ink); font-weight: 700; }
.termin-detail-inner ul { list-style: disc; margin: 0.4rem 0; padding-left: 1.3rem; }
.termin-detail-inner li { margin: 0.2rem 0; }
.termin-detail-inner p { margin: 0.4rem 0; }
.termin-detail-inner p:first-child { margin-top: 0; }
.termin-detail-inner p:last-child { margin-bottom: 0; }

/* ---------- Design-Umschalter (nur Testphase) ---------- */
.design-switch {
    position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%);
    z-index: 200; display: flex; align-items: center; gap: 0.35rem;
    background: #14170f; color: #fff; padding: 0.4rem 0.55rem; border-radius: 999px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
    font-family: system-ui, sans-serif; font-size: 0.85rem;
}
.design-switch-label { opacity: 0.65; padding-inline: 0.35rem; letter-spacing: 0.03em; }
.design-switch button {
    width: 2rem; height: 2rem; border-radius: 50%; cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.28); background: transparent; color: #fff;
    font: 700 0.9rem system-ui, sans-serif; transition: background 0.15s, color 0.15s;
}
.design-switch button:hover { background: rgba(255, 255, 255, 0.14); }
.design-switch button[aria-pressed="true"] { background: #fff; color: #14170f; border-color: #fff; }

/* ---------- Mobil / Navigation einklappen ---------- */
@media (max-width: 760px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0.15rem;
        background: var(--paper); border-bottom: 1px solid var(--line);
        padding: 0.6rem clamp(1.1rem, 4vw, 2.5rem) 1rem;
        box-shadow: var(--shadow);
        display: none;
    }
    .site-header.is-open .nav-links { display: flex; }
    .nav-link { padding: 0.7rem 0.6rem; border-radius: 10px; }
    .nav-link.active::after { left: 0.6rem; right: auto; width: 1.4rem; }

    .site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
    .site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation: none !important; transition: none !important; }
}
