/* ==========================================================================
   Lesbarkeit: Grössere Schrift für alle, drei Stufen zum Umschalten.
   Alle Grössen der Seite sind in rem angegeben und wachsen mit der Stufe mit.
   ========================================================================== */

html[data-size="s"] { font-size: 100%; }    /* Klein: 16 px Basis (wie vorher) */
html { font-size: 118.75%; }               /* Normal: 19 px Basis (vorher 16 px) */
html[data-size="l"] { font-size: 137.5%; }  /* Gross: 22 px Basis */
html[data-size="xl"] { font-size: 162.5%; } /* Sehr gross: 26 px Basis */

body { font-size: 1.1rem; line-height: 1.7; }  /* Fliesstext: 21 px / 24 px / 29 px */

/* Kleine Texte nie zu klein */
.eyebrow, .plate-label, .ticket .t-week, .stat span, .pull-quote figcaption { font-size: .8rem; letter-spacing: .18em; }
.lead { font-size: clamp(1.15rem, 1.4vw, 1.3rem); }
.hint, .fs-hint, .field .hint, .price-note, .trust, .cal-legend, .secure-note, .pay-logos span,
.next-head p, .float-badge, .summary .vat, .cal-selected-label { font-size: .88rem; }
.field label, .field .label, .check { font-size: .95rem; }
.cal-weekdays span { font-size: .78rem; }
.cal-slot b { font-size: 1rem; }
.cal-slot small, .cal-slot .until { font-size: .8rem; }
.ticket .t-time, .ticket .t-seats, .ticket .t-cta { font-size: .92rem; }
.site-footer { font-size: .95rem; }
.faq .answer { font-size: 1.05rem; }
.timeline p, .included-list p, .short-points li, .fact-list li, .checklist li { font-size: 1.02rem; }
input[type=text], input[type=email], input[type=tel], input[type=date], select, textarea { font-size: 1.05rem; padding: .8rem .9rem; }
.btn { font-size: 1rem; padding: 1rem 1.6rem; }
.nav a:not(.btn) { font-size: .95rem; }

/* ---------- Schalter für Schriftgrösse und Design ---------- */
.site-tools { display: flex; align-items: center; gap: 10px; flex: none; }
.size-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: rgba(255, 255, 255, .04); }
.size-switch button, .theme-toggle {
  font: 600 15px/1 var(--sans); color: var(--ink-soft); background: transparent; border: 0; cursor: pointer;
  min-width: 40px; height: 40px; padding: 0 10px; border-radius: 999px; transition: background .25s ease, color .25s ease;
}
.size-switch button { min-width: 34px; padding: 0 8px; }
.size-switch button:nth-child(1) { font-size: 13px; }
.size-switch button:nth-child(2) { font-size: 15px; }
.size-switch button:nth-child(3) { font-size: 17px; }
.size-switch button:nth-child(4) { font-size: 19px; }
.size-switch button sup { font-size: .6em; margin-left: 1px; }
.size-switch button:hover, .theme-toggle:hover { color: var(--ink); background: rgba(201, 162, 74, .14); }
.size-switch button[aria-pressed="true"] { background: var(--gold-grad, #c9a24a); color: var(--on-gold); }
.theme-toggle { width: 46px; height: 46px; border: 1px solid var(--line); display: grid; place-items: center; padding: 0; }
.theme-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-toggle .i-moon { fill: currentColor; stroke: none; }
html[data-theme="light"] .theme-toggle .i-sun, html:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
.theme-toggle svg { transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
.theme-toggle:hover svg { transform: rotate(25deg); }
.floating-tools { position: fixed; top: 16px; right: 16px; z-index: 60; }

/* Kopfzeile: Platz für die Schalter */
.site-header .wrap { gap: 18px; }
.site-header .nav { margin-left: auto; gap: 26px; }
.nav a, .nav .btn, .brand small, .brand strong { white-space: nowrap; }
.nav .btn { font-size: .9rem; padding: .7rem 1.2rem; }
@media (max-width: 1560px) { .nav a.ext { display: none; } }
@media (max-width: 1180px) { .nav { gap: 20px; } .brand small { display: none; } }
@media (min-width: 961px) and (max-width: 1100px) { .nav a[href="#faq"] { display: none; } }
@media (max-width: 960px) {
  .site-tools { margin-left: auto; order: 2; }
  .nav-toggle { order: 3; }
}
@media (max-width: 520px) {
  .size-switch button { min-width: 34px; height: 36px; padding: 0 6px; font-size: 14px; }
  .size-switch button:nth-child(1) { font-size: 12px; }
  .size-switch button:nth-child(2) { font-size: 14px; }
  .size-switch button:nth-child(3) { font-size: 15px; }
  .size-switch button:nth-child(4) { font-size: 16px; }
  .theme-toggle { width: 40px; height: 40px; }
  .brand small { display: none; }
  .brand strong { font-size: 1.4rem; }
}

/* Sanfter Übergang beim Wechsel des Designs */
html.theme-switching, html.theme-switching *, html.theme-switching *::before, html.theme-switching *::after {
  transition: background-color .4s ease, color .4s ease, border-color .4s ease, fill .4s ease !important;
}

/* ---------- Grosse und sehr grosse Schrift: Layouts entzerren ---------- */
html[data-size="l"] .wrap, html[data-size="xl"] .wrap { max-width: 1320px; }
html[data-size="xl"] .hero--premium .hero-grid { grid-template-columns: 1fr; }
html[data-size="xl"] .hero-stage { max-width: 680px; margin: 10px auto 0; width: 100%; }
html[data-size="xl"] .booking { grid-template-columns: 1fr; }
html[data-size="xl"] .summary { position: static; }
html[data-size="xl"] .included-layout, html[data-size="l"] .included-layout { grid-template-columns: 1fr; }
html[data-size="xl"] .included-intro, html[data-size="l"] .included-intro { position: static; }
html[data-size="xl"] .course-grid { grid-template-columns: 1fr; }
html[data-size="xl"] .facts { position: static; }
html[data-size="xl"] .row { grid-template-columns: 1fr; }
html[data-size="xl"] .tickets { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
html[data-size="xl"] .stats { grid-template-columns: 1fr 1fr; row-gap: 40px; }
html[data-size="xl"] .stat:nth-child(3) { border-left: 0; }
html[data-size="xl"] .nav a:not(.btn) { display: none; }
html[data-size="l"] .nav a.ext { display: none; }

/* Kalender als gut lesbare Liste, wenn die Schrift gross ist */
html[data-size="xl"] .cal-weekdays { display: none; }
html[data-size="xl"] .cal-month { grid-template-columns: 1fr; gap: 12px; }
html[data-size="xl"] .cday { min-height: 0; flex-direction: row; align-items: center; gap: 16px; padding: 14px 16px; }
html[data-size="xl"] .cday:not(.has-sessions), html[data-size="xl"] .cday.is-blank { display: none; }
html[data-size="xl"] .cday-num { display: none; }
html[data-size="xl"] .cday-long { display: block; flex: 1; font-weight: 600; }
html[data-size="xl"] .cal-slots { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; }
html[data-size="xl"] .cal-slot { width: auto; min-width: 160px; padding: 10px 14px; }
@media (max-width: 1200px) {
  html[data-size="l"] .cal-weekdays { display: none; }
  html[data-size="l"] .cal-month { grid-template-columns: 1fr; gap: 12px; }
  html[data-size="l"] .cday { min-height: 0; flex-direction: row; align-items: center; gap: 16px; padding: 14px 16px; }
  html[data-size="l"] .cday:not(.has-sessions), html[data-size="l"] .cday.is-blank { display: none; }
  html[data-size="l"] .cday-num { display: none; }
  html[data-size="l"] .cday-long { display: block; flex: 1; font-weight: 600; }
  html[data-size="l"] .cal-slots { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; }
  html[data-size="l"] .cal-slot { width: auto; min-width: 150px; padding: 10px 14px; }
  html[data-size="l"] .booking { grid-template-columns: 1fr; }
  html[data-size="l"] .summary { position: static; }
}

/* Lange Wörter (z. B. "Geschäftsbedingungen") sauber trennen statt überlaufen */
h1, h2, h3, .stat span, .ticket .t-month { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 10px 8px; }
  .stat span { letter-spacing: .06em; }
}

/* Handy: Kopfzeile mit Schaltern kompakt halten */
@media (max-width: 460px) {
  .site-header .brand span { display: none; }
  .site-header .wrap { gap: 10px; }
}
@media (max-width: 640px) {
  .site-header .nav[style] .btn { display: none; } /* Unterseiten: Anmelde-Button in der Kopfzeile ausblenden */
}

/* Feste Kopfzeile: Sprungziele nicht verdecken */
section[id] { scroll-margin-top: 90px; }

/* ==========================================================================
   Kopfzeile: Logo links, Menü mittig, rechts Anmelden und Darstellung.
   Feste Pixelgrössen, damit die Kopfzeile bei jeder Schriftstufe stabil bleibt.
   ========================================================================== */
.site-header .wrap.header-grid {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  gap: 28px; height: 82px; max-width: 1400px;
}
.site-header.is-scrolled .wrap.header-grid { height: 68px; }
.header-grid .brand { display: flex; align-items: center; gap: 12px; line-height: 1; }
.header-grid .brand img { width: 42px; height: 42px; flex: none; }
.header-grid .brand-text { display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.header-grid .brand strong { font-size: 28px; line-height: 1; font-weight: 500; letter-spacing: .01em; }
.header-grid .brand small { font-size: 10.5px; line-height: 1; margin: 0; letter-spacing: .2em; color: var(--ink-mute); }

.header-grid .nav { margin: 0; justify-content: center; gap: 32px; }
.header-grid .nav a:not(.btn) { font-size: 15.5px; font-weight: 500; }
.header-grid .nav a.ext { display: inline-flex; }
.header-grid .nav .nav-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: 16px; justify-self: end; }
.header-actions .header-cta { font-size: 15px; padding: 12px 22px; white-space: nowrap; }
.header-actions .site-tools { gap: 10px; padding-left: 16px; border-left: 1px solid var(--line-soft); }
.header-actions .nav-toggle { display: none; }

/* Schalter: vier "A" in steigender Grösse */
.size-switch { padding: 3px; gap: 2px; }
.size-switch button { min-width: 36px; height: 38px; padding: 0 6px; font-size: 0; }
.size-switch button span { font-family: var(--sans); font-weight: 600; line-height: 1; }
.size-switch .a-s { font-size: 12px; }
.size-switch .a-m { font-size: 15px; }
.size-switch .a-l { font-size: 18px; }
.size-switch .a-xl { font-size: 21px; }
.theme-toggle { width: 44px; height: 44px; }

/* Stufe "Klein": wie die ursprüngliche Grösse */
html[data-size="s"] body { font-size: 1.06rem; }

/* Mittlere Breiten: Schritt für Schritt verdichten */
@media (max-width: 1400px) { .header-grid .nav a.ext { display: none; } }
@media (max-width: 1220px) {
  .header-grid .brand small { display: none; }
  .header-grid .nav { gap: 24px; }
}
@media (max-width: 1100px) {
  .header-grid .nav a[href="#faq"] { display: none; }
  .header-actions .site-tools { padding-left: 12px; }
}

/* Handy und Tablet: Menü aufklappbar, Anmelden im Menü */
@media (max-width: 960px) {
  .site-header .wrap.header-grid { grid-template-columns: auto 1fr; height: 72px; gap: 12px; }
  .header-grid .nav { position: absolute; top: 72px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; }
  .header-grid .nav.open { display: flex; }
  .header-grid .nav a:not(.btn) { font-size: 17px; padding: 15px 0; }
  .header-grid .nav a[href="#faq"], .header-grid .nav a.ext { display: inline-flex; }
  .header-grid .nav .nav-cta { display: inline-flex; margin-top: 16px; }
  .header-actions .header-cta { display: none; }
  .header-actions .site-tools { padding-left: 0; border-left: 0; }
  .header-actions .nav-toggle { display: block; }
}
/* Unterseiten ohne Menü: Anmelden-Button erst bei sehr wenig Platz ausblenden */
@media (max-width: 960px) { .site-header:not(:has(#nav)) .header-actions .header-cta { display: inline-flex; } }
@media (max-width: 620px) { .site-header:not(:has(#nav)) .header-actions .header-cta { display: none; } }
@media (max-width: 520px) {
  .size-switch button { min-width: 30px; height: 34px; padding: 0 4px; }
  .size-switch .a-s { font-size: 11px; } .size-switch .a-m { font-size: 13px; }
  .size-switch .a-l { font-size: 15px; } .size-switch .a-xl { font-size: 17px; }
  .theme-toggle { width: 38px; height: 38px; }
  .header-actions { gap: 8px; }
}
@media (max-width: 460px) { .header-grid .brand-text { display: none; } }
