/* JOPA Skatehalle Erfurt. Farben und Schriften siehe DESIGN.md. */

:root {
  --orange: #ff5500;
  --orange-dunkel: #d94800;
  --ink: #161616;
  --ink-2: #222222;
  --ink-3: #2e2e2e;
  --paper: #f4f3f0;
  --paper-2: #e9e7e2;
  --grey: #d8d8d8;
  --text: #1c1c1c;
  --muted: #5f5e5a;
  --linie: rgba(22, 22, 22, 0.14);
  --linie-dunkel: rgba(216, 216, 216, 0.18);
  --radius: 8px;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --text-font: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --kopf-h: 72px;
  --wrap: 1200px;
  --pad: clamp(20px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--text-font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.92;
  margin: 0;
}
h1 { font-size: clamp(2.6rem, 8vw, 6.5rem); font-weight: 800; }
h2 { font-size: clamp(2.1rem, 5vw, 3.9rem); }
h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--pad)); margin-inline: auto; }
.abschnitt { padding-block: clamp(64px, 9vw, 120px); }
.abschnitt-eng { padding-block: clamp(40px, 6vw, 80px); }
.dunkel { background: var(--ink); color: var(--paper); }
.dunkel p { color: rgba(244, 243, 240, 0.86); }
.dunkel .kicker { color: var(--orange); }

.kicker {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  color: var(--orange-dunkel);
  margin-bottom: 14px;
}
.lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.45; }
.muted { color: var(--muted); }
.dunkel .muted { color: rgba(244, 243, 240, 0.62); }

/* Fokus sichtbar */
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* Skip-Link */
.skip { position: absolute; left: 12px; top: -60px; background: var(--orange); color: var(--ink); padding: 10px 14px; z-index: 100; font-weight: 700; border-radius: var(--radius); }
.skip:focus { top: 12px; }

/* ---------- Knöpfe: je Absicht eigene Form ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.15rem;
  text-decoration: none; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.knopf:active { transform: translateY(1px) scale(0.985); }

/* Buchen: gefüllt orange, das einzige laute Element */
.knopf-buchen { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.knopf-buchen:hover { background: var(--orange-dunkel); border-color: var(--orange-dunkel); color: #fff; }

/* Hell gefüllt: primär auf Foto, ohne Orange zu verbrauchen */
.knopf-hell { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.knopf-hell:hover { background: #fff; border-color: #fff; }

/* Sekundär auf Foto: Kontur + dunkler Schleier dahinter */
.knopf-kontur { background: rgba(22, 22, 22, 0.45); color: #fff; border-color: rgba(255, 255, 255, 0.85); backdrop-filter: blur(4px); }
.knopf-kontur:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* Route: dunkel, mit Pfeil */
.knopf-route { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.knopf-route:hover { background: var(--ink-3); border-color: var(--ink-3); }
.dunkel .knopf-route { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.dunkel .knopf-route:hover { background: #fff; }

/* Anrufen: Textlink mit Unterstrich */
.link-tel { font-weight: 600; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.link-tel:hover { color: var(--orange-dunkel); }

/* ---------- Kopf ---------- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); color: var(--paper);
  border-bottom: 1px solid var(--linie-dunkel);
}
.kopf-innen { height: var(--kopf-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.marke { display: flex; align-items: center; }
.marke img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.nav a:not(.knopf) {
  font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; font-size: 1.1rem;
  text-decoration: none; color: var(--grey); padding: 8px 2px; border-bottom: 2px solid transparent;
}
.nav a:not(.knopf):hover, .nav a:not(.knopf)[aria-current="true"] { color: #fff; border-bottom-color: var(--orange); }
.nav .knopf { min-height: 42px; padding: 0 18px; font-size: 1.05rem; }
.burger { display: none; width: 48px; height: 48px; background: none; border: 0; color: var(--paper); cursor: pointer; padding: 0; }
.burger span { display: block; width: 26px; height: 2px; background: currentColor; margin: 6px auto; transition: transform 0.2s, opacity 0.2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 899px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--kopf-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--linie-dunkel); padding: 8px var(--pad) 20px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav.offen { transform: none; opacity: 1; pointer-events: auto; }
  .nav a:not(.knopf) { padding: 14px 0; font-size: 1.35rem; border-bottom: 1px solid var(--linie-dunkel); }
  .nav .knopf { margin-top: 16px; min-height: 52px; font-size: 1.2rem; }
}

/* ---------- Laufband ---------- */
.laufband { background: var(--orange); color: var(--ink); overflow: hidden; border-bottom: 1px solid rgba(22,22,22,0.15); }
.laufband-innen { display: flex; width: max-content; animation: laufen 28s linear infinite; }
.laufband a { text-decoration: none; }
.laufband-innen span {
  display: inline-block; padding: 10px 0; white-space: nowrap;
  font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.15rem;
}
.laufband-innen span::after { content: "\2022"; margin: 0 22px; opacity: 0.5; }
@keyframes laufen { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .laufband-innen { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .laufband-innen span:nth-child(n+3) { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(92dvh, 900px); display: flex; align-items: flex-end; color: #fff; background: var(--ink); overflow: hidden; isolation: isolate; }
.hero-medium { position: absolute; inset: 0; z-index: -2; }
.hero-medium img, .hero-medium video { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-medium img { animation: heranfahren 18s ease-out forwards; transform-origin: 60% 50%; }
@keyframes heranfahren { from { transform: scale(1); } to { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .hero-medium img { animation: none; } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(22,22,22,0.94) 0%, rgba(22,22,22,0.74) 45%, rgba(22,22,22,0.18) 78%, rgba(22,22,22,0.35) 100%);
}
.hero-inhalt { padding-block: clamp(48px, 8vw, 96px) clamp(48px, 7vw, 88px); max-width: 860px; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .lead { margin-top: 22px; max-width: 46ch; color: rgba(255,255,255,0.9); }
.hero-spalten { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: start; }
@media (min-width: 1000px) { .hero-spalten { grid-template-columns: 1.15fr 1fr; gap: 40px; } }
.hero .lead { max-width: 52ch; }
.winter {
  border-left: 3px solid var(--orange);
  padding: 2px 0 2px 18px;
}
.winter h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem); line-height: 1.02;
  color: var(--orange); margin-bottom: 8px;
}
.winter p { color: #fff; font-size: 1rem; max-width: 42ch; margin: 0; }
.hero-aktionen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.status {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  background: rgba(22,22,22,0.55); border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; padding: 8px 16px 8px 12px;
  font-weight: 600; font-size: 0.95rem; backdrop-filter: blur(6px);
}
.status .punkt { width: 10px; height: 10px; border-radius: 50%; background: var(--grey); }
@media (max-width: 700px) {
  .hero h1 { font-size: clamp(2.05rem, 8.6vw, 3rem); }
  .hero .lead { font-size: 1rem; line-height: 1.42; margin-top: 16px; }
  .hero-inhalt { padding-block: 40px 34px; }
  .hero-aktionen { gap: 10px; margin-top: 24px; }
  .hero-aktionen .knopf { flex: 1 1 auto; min-height: 46px; font-size: 1.05rem; padding: 0 12px; }
  .status { margin-bottom: 16px; font-size: 0.9rem; }
}
.status.offen .punkt { background: #38d16a; }
.status.zu .punkt { background: var(--orange); }

/* ---------- Eröffnung ---------- */
.eroeffnung { position: relative; overflow: hidden; }
.eroeffnung-raster { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.eroeffnung .datum { font-family: var(--display); font-weight: 800; font-size: clamp(4.5rem, 14vw, 11rem); line-height: 0.85; color: var(--orange); letter-spacing: -0.02em; }
.eroeffnung .datum small { display: block; font-size: 0.3em; color: var(--paper); font-weight: 700; letter-spacing: 0.02em; margin-top: 10px; }
.countdown { display: flex; gap: clamp(12px, 3vw, 28px); margin-top: 32px; flex-wrap: wrap; }
.countdown div { min-width: 72px; }
.countdown b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(244,243,240,0.6); margin-top: 4px; }
.countdown.vorbei b { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.fakten { border-top: 1px solid var(--linie-dunkel); }
.fakten li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--linie-dunkel); }
.fakten dt, .fakten .k { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--orange); font-size: 1.05rem; padding-top: 3px; }
.fakten .v { font-size: 1.1rem; }
.fakten .v strong { font-weight: 700; color: #fff; }
@media (max-width: 799px) { .eroeffnung-raster { grid-template-columns: 1fr; } }

/* ---------- Warum ---------- */
.gruende { border-top: 2px solid var(--ink); }
.grund { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: clamp(16px, 4vw, 64px); padding: clamp(28px, 4vw, 44px) 0; border-bottom: 1px solid var(--linie); align-items: start; }
.grund h3 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.grund p { font-size: 1.1rem; }
@media (max-width: 699px) { .grund { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- Halle ---------- */
.halle-bild { border-radius: var(--radius); overflow: hidden; margin-top: 36px; }
.halle-bild img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.faktenleiste { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--linie); border-radius: var(--radius); margin-top: 20px; overflow: hidden; background: #fff; }
.faktenleiste li { flex: 1 1 180px; padding: 18px 20px; border-right: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.faktenleiste b { display: block; font-family: var(--display); font-weight: 700; font-size: 1.7rem; line-height: 1; text-transform: uppercase; }
.faktenleiste span { color: var(--muted); font-size: 0.95rem; }
.details { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(40px, 6vw, 72px); align-items: start; }
.details figure { margin: 0; }
.details img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.details img { aspect-ratio: 4 / 3; }
@media (max-width: 599px) { .details { grid-template-columns: 1fr; } }
.details figcaption { margin-top: 10px; color: var(--muted); font-size: 0.95rem; }

/* ---------- Zeiten ---------- */
.zeiten-raster { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); margin-top: 36px; }
.tabelle { width: 100%; border-collapse: collapse; font-size: 1.1rem; }
.tabelle th, .tabelle td { text-align: left; padding: 16px 0; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle th { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 1.05rem; color: var(--muted); }
.tabelle td:last-child, .tabelle th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.tabelle tr.heute td { color: var(--orange-dunkel); font-weight: 700; }
.tabelle thead th { border-bottom: 2px solid var(--ink); }
.nutzung li { padding: 18px 0; border-bottom: 1px solid var(--linie); display: grid; grid-template-columns: 1fr; gap: 4px; }
.nutzung b { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1.5rem; line-height: 1; }
.nutzung span { color: var(--muted); }
.nutzung small { display: block; font-size: 0.9rem; color: var(--muted); margin-top: 4px; }
.hinweise { margin-top: 36px; padding: 22px 24px; background: var(--paper-2); border-radius: var(--radius); }
.hinweise li { padding: 6px 0 6px 18px; position: relative; }
.hinweise li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 8px; height: 2px; background: var(--orange); }
@media (max-width: 799px) { .zeiten-raster { grid-template-columns: 1fr; } }

/* ---------- Preise ---------- */
.preise .tabelle { margin-top: 32px; font-size: 1.15rem; }
.preise .tabelle td:nth-child(2), .preise .tabelle th:nth-child(2) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.preise .tabelle td .name { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1.45rem; line-height: 1; display: block; }
.preise .tabelle td small { display: block; color: var(--muted); font-size: 0.95rem; margin-top: 4px; }
.preis { font-family: var(--display); font-weight: 700; font-size: 1.9rem; line-height: 1; }
.fussnote { margin-top: 18px; color: var(--muted); font-size: 0.95rem; }
.pass-hinweise { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; }
.pass-hinweise h3 { margin-bottom: 10px; }
.pass-hinweise li { padding: 6px 0 6px 18px; position: relative; }
.pass-hinweise li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 8px; height: 2px; background: var(--orange); }
@media (max-width: 699px) {
  .pass-hinweise { grid-template-columns: 1fr; }
  .preise .tabelle, .preise .tabelle tbody, .preise .tabelle tr, .preise .tabelle td { display: block; }
  .preise .tabelle thead { display: none; }
  .preise .tabelle tr { padding: 18px 0; border-bottom: 1px solid var(--linie); }
  .preise .tabelle td { padding: 4px 0; border: 0; text-align: left !important; }
  .preise .tabelle td[data-l]::before { content: attr(data-l); display: inline-block; min-width: 150px; color: var(--muted); font-size: 0.95rem; }
  .preise .tabelle td .preis { font-size: 1.5rem; }
}

/* ---------- Kurse ---------- */
.kurse-raster { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: 36px; }
.kurse-raster img { border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.angebot li { padding: 14px 0; border-bottom: 1px solid var(--linie); display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.angebot b { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1.35rem; line-height: 1; }
.angebot span { color: var(--muted); text-align: right; font-size: 0.95rem; }
.kurstabellen { margin-top: 48px; }
.kurstabellen:empty { display: none; }
@media (max-width: 799px) {
  .kurse-raster { grid-template-columns: 1fr; }
  .kurse-raster img { order: -1; }
  .angebot li { flex-direction: column; gap: 4px; }
  .angebot span { text-align: left; }
}

/* ---------- Buchen-Band ---------- */
.band { background: var(--orange); color: var(--ink); }
.band-innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: clamp(36px, 5vw, 64px); }
.band h2 { max-width: 16ch; }
.band p { color: rgba(22,22,22,0.8); margin-top: 10px; }
.band .knopf-buchen { background: var(--ink); color: #fff; border-color: var(--ink); min-height: 56px; padding: 0 28px; font-size: 1.3rem; }
.band .knopf-buchen:hover { background: #000; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-top: 32px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--linie); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; font-family: var(--display); font-weight: 700; font-size: 1.45rem; line-height: 1.05; text-transform: uppercase;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 600; font-size: 1.8rem; color: var(--orange-dunkel); flex: none; width: 32px; text-align: center; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 44px 22px 0; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ---------- Kontakt ---------- */
.kontakt-raster { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); margin-top: 36px; }
.adresse { font-size: 1.2rem; font-style: normal; line-height: 1.5; }
.adresse strong { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1.6rem; display: block; margin-bottom: 6px; }
.kontakt-liste li { padding: 14px 0; border-bottom: 1px solid var(--linie-dunkel); display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.kontakt-liste .k { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--orange); font-size: 1.05rem; padding-top: 2px; }
.kontakt-liste a { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }
.anfahrt-liste li { padding: 16px 0; border-bottom: 1px solid var(--linie-dunkel); }
.anfahrt-liste b { display: block; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1.35rem; line-height: 1; margin-bottom: 6px; }
.kontakt-aktionen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 799px) { .kontakt-raster { grid-template-columns: 1fr; } }

/* ---------- Fuß ---------- */
.fuss { background: #101010; color: var(--grey); border-top: 1px solid var(--linie-dunkel); font-size: 0.98rem; }
.fuss-raster { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-block: clamp(40px, 6vw, 72px) 32px; }
.fuss img.mono { height: 72px; width: auto; margin-bottom: 18px; }
.fuss h3 { font-size: 1.05rem; letter-spacing: 0.08em; color: #fff; margin-bottom: 14px; }
.fuss li { padding: 5px 0; }
.fuss a { text-decoration: none; color: var(--grey); }
.fuss a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }
.fuss p { color: rgba(216,216,216,0.75); }
.fuss-unten { border-top: 1px solid var(--linie-dunkel); padding: 20px 0 28px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; color: rgba(216,216,216,0.6); font-size: 0.9rem; }
.fuss-unten ul { display: flex; gap: 20px; }
@media (max-width: 899px) { .fuss-raster { grid-template-columns: 1fr 1fr; } }
@media (max-width: 549px) { .fuss-raster { grid-template-columns: 1fr; } }

/* ---------- Unterseiten ---------- */
.seite-kopf { padding-block: clamp(40px, 6vw, 72px) 0; }
.seite-text { max-width: 760px; padding-block: 32px clamp(64px, 9vw, 120px); }
.seite-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 36px 0 12px; }
.seite-text h3 { margin: 24px 0 8px; }
.seite-text ul { list-style: disc; padding-left: 22px; }
.seite-text li { margin: 4px 0; }
.platzhalter { background: #fff3e8; border: 2px dashed var(--orange); border-radius: var(--radius); padding: 18px 20px; margin: 24px 0; }
.platzhalter strong { color: var(--orange-dunkel); }

/* Buchungsseite: Butlerapp-Farben */
.buchung-bereich { padding-block: clamp(32px, 5vw, 64px) clamp(64px, 9vw, 120px); min-height: 60dvh; }
.websail { --ws-primary-color: #ff5500; --ws-button-default-bg: #ff5500; --ws-input-border-radius: 8px; font-family: var(--text-font); }

/* ---------- Einblenden beim Scrollen (Inhalt ohne JS sichtbar) ---------- */
.js .zeigen { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .zeigen.da { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .zeigen { opacity: 1; transform: none; transition: none; } }

/* ---------- Sticky-Buchen auf Mobil ---------- */
.sticky-buchen { display: none; }
@media (max-width: 899px) {
  .sticky-buchen {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
    background: rgba(22, 22, 22, 0.96); color: var(--paper);
    border-top: 1px solid var(--linie-dunkel); box-shadow: 0 -8px 24px rgba(0,0,0,0.25);
    transform: translateY(110%); transition: transform 0.25s ease;
  }
  .sticky-buchen.sichtbar { transform: none; }
  .sticky-buchen .text { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1rem; line-height: 1.1; }
  .sticky-buchen .knopf { flex: none; min-height: 46px; padding: 0 18px; font-size: 1.1rem; }
  .sticky-buchen.offen .text::before, .sticky-buchen.zu .text::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: var(--grey); }
  .sticky-buchen.offen .text::before { background: #38d16a; }
  .sticky-buchen.zu .text::before { background: var(--orange); }
  body.hat-sticky { padding-bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) { .sticky-buchen { transition: none; } }

/* ---------- Sportpark-Kacheln: kompakt, alle gleich groß ---------- */
.sportpark { padding-block: clamp(48px, 6vw, 84px); }
.kacheln { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.kachel { position: relative; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--linie); padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.kachel h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); }
.kachel p { font-size: 0.98rem; max-width: none; }
.kachel-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: auto; padding-top: 6px; }
.kachel .textlink { margin-top: auto; align-self: flex-start; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 1rem; text-decoration: none; border-bottom: 2px solid var(--orange); padding-bottom: 2px; }
.kachel .textlink:hover { color: var(--orange-dunkel); }
.kachel-links .textlink { margin-top: 0; }
.kachel-dunkel { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.kachel-dunkel p { color: rgba(244,243,240,0.86); }
.kachel-dunkel .textlink { color: #fff; }
.kachel-orange { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.kachel-orange p { color: rgba(22,22,22,0.85); }
.kachel-wohnzimmer { padding-top: 0; }
.kachel-wohnzimmer .wz-bild { width: calc(100% + 44px); max-width: none; margin: 0 -22px 14px; aspect-ratio: 16 / 9; object-fit: cover; }
.kachel-wohnzimmer .wz-logo { height: 56px; width: auto; align-self: flex-start; flex: none; margin-bottom: 2px; }
.wz-zeiten { display: grid; gap: 4px; margin-top: 2px; }
.wz-zeiten li { display: flex; justify-content: space-between; gap: 16px; max-width: 260px; }
.wz-zeiten li span:first-child { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.98rem; color: var(--muted); }
.wz-zeiten li span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; font-size: 0.95rem; }

/* Kachel mit Foto: Bild als Grund, Text im Verlauf darüber */
.kachel-bild { padding: 0; color: #fff; justify-content: flex-end; min-height: 280px; background: var(--ink); border-color: var(--ink); }
.kachel-bild > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kachel-bild .kachel-text { position: relative; padding: 22px 22px 24px; background: linear-gradient(to top, rgba(22,22,22,0.96), rgba(22,22,22,0.78) 45%, rgba(22,22,22,0.25) 80%, rgba(22,22,22,0)); padding-top: 72px; display: flex; flex-direction: column; gap: 8px; }
.kachel-bild p { color: rgba(255,255,255,0.9); }
.kachel-bild .textlink { color: #fff; margin-top: 4px; }
@media (max-width: 899px) { .kacheln { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .kacheln { grid-template-columns: 1fr; } }

/* ---------- Aufbau: drei Bilder auf gleicher Höhe ---------- */
.aufbau { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.aufbau figure { margin: 0; }
.aufbau-breit { grid-column: span 2; }
.aufbau img { width: 100%; height: clamp(240px, 28vw, 400px); object-fit: cover; border-radius: var(--radius); }
.aufbau figcaption { margin-top: 10px; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 799px) {
  .aufbau { grid-template-columns: 1fr 1fr; }
  .aufbau-breit { grid-column: span 2; }
  .aufbau img { height: clamp(200px, 42vw, 320px); }
}

/* ---------- Team: Polaroids, drei nebeneinander ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 40px); margin-top: clamp(40px, 6vw, 68px); }
.team li { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.team li img { width: 100%; aspect-ratio: 620 / 775; object-fit: cover; display: block; background: #fff; box-shadow: 0 8px 22px rgba(22,22,22,0.14); border-radius: 2px; }
.team li:nth-child(3n+1) img { transform: rotate(-1.1deg); }
.team li:nth-child(3n) img { transform: rotate(1deg); }
.team .name { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.05; text-align: center; }
.bildnachweis { margin-top: 22px; color: var(--muted); font-size: 0.92rem; }
@media (max-width: 599px) { .team { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (prefers-reduced-motion: reduce) { .team li img { transform: none; } }

/* ---------- Galerie ---------- */
.galerie-kopf { margin-top: clamp(52px, 7vw, 88px); }
.galerie-kopf p { margin-top: 8px; color: var(--muted); }
.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.4vw, 18px); margin-top: clamp(14px, 1.6vw, 20px); }
.galerie li { border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.4s ease; }
.galerie li:hover img { transform: scale(1.05); }
@media (max-width: 699px) { .galerie { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) { .galerie img { transition: none; } .galerie li:hover img { transform: none; } }

/* ---------- Workshops: kleine Notiz ---------- */
.workshop-notiz { margin-top: 32px; max-width: 68ch; padding-left: 18px; border-left: 3px solid var(--linie); }
.workshop-notiz h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-bottom: 8px; }
.workshop-notiz p { font-size: 1.05rem; max-width: none; }
.workshop-notiz a { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- Feriencamp: der laute Block des Abschnitts ---------- */
.camp {
  display: grid; grid-template-columns: 1fr; gap: 0;
  margin-top: clamp(36px, 5vw, 64px);
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden;
}
@media (min-width: 900px) { .camp { grid-template-columns: 0.85fr 1fr; } }
.camp-bild img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.camp-text { padding: clamp(26px, 3.5vw, 44px); }
.camp-text h3 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 14px; }
.camp-text p { font-size: 1.05rem; max-width: 58ch; }

.camp-termin { margin-top: 28px; background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: clamp(22px, 2.6vw, 30px); }
.camp-termin h4 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1; margin: 0 0 4px; color: var(--orange);
}
.camp-fakten { border-top: 1px solid var(--linie-dunkel); margin-top: 14px; }
.camp-fakten li { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--linie-dunkel); }
.camp-fakten .k { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(244,243,240,0.55); font-size: 0.98rem; padding-top: 3px; }
.camp-fakten .v { font-size: 1.03rem; color: rgba(244,243,240,0.9); }
.camp-fakten .v strong { color: #fff; font-weight: 700; }
.camp-termin .knopf { margin-top: 22px; }
@media (max-width: 479px) { .camp-fakten li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Bilder groß ansehen ---------- */
.zoombar { cursor: zoom-in; }
.js .galerie li, .js .aufbau figure, .js .team li, .js .details figure,
.js .halle-bild, .js .kurse-raster { position: relative; }
/* Kleines Lupenzeichen, nur wo es einen Zeiger gibt */
@media (hover: hover) {
  .js .galerie li::after, .js .aufbau figure::after, .js .details figure::after,
  .js .halle-bild::after, .js .team li::after {
    content: "⤢";
    position: absolute; top: 10px; right: 10px; z-index: 2;
    width: 30px; height: 30px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(22,22,22,0.6); color: #fff; font-size: 0.95rem; line-height: 1;
    opacity: 0; transition: opacity 0.2s ease; pointer-events: none;
    backdrop-filter: blur(3px);
  }
  .js .galerie li:hover::after, .js .aufbau figure:hover::after, .js .details figure:hover::after,
  .js .halle-bild:hover::after, .js .team li:hover::after { opacity: 1; }
}

.lupe {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(16,16,16,0.95);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  animation: lupe-auf 0.18s ease-out;
}
@keyframes lupe-auf { from { opacity: 0; } to { opacity: 1; } }
.lupe-inhalt { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; }
.lupe-inhalt img {
  max-width: min(1400px, 100%); max-height: 80vh; width: auto; height: auto;
  object-fit: contain; border-radius: var(--radius); background: var(--ink);
  animation: lupe-rein 0.22s ease-out;
}
@keyframes lupe-rein { from { transform: scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }
.lupe figcaption {
  color: rgba(244,243,240,0.82); font-size: 0.95rem; text-align: center;
  display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; max-width: 70ch;
}
.lupe-zahl { color: rgba(244,243,240,0.5); font-variant-numeric: tabular-nums; }
.lupe-zu, .lupe-pfeil {
  position: absolute; z-index: 2; background: rgba(244,243,240,0.12); color: #fff;
  border: 1px solid rgba(255,255,255,0.25); border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; padding: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.lupe-zu { top: 14px; right: 14px; width: 48px; height: 48px; font-size: 1.9rem; line-height: 1; }
.lupe-pfeil { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2.2rem; line-height: 1; }
.lupe-pfeil.zurueck { left: 14px; }
.lupe-pfeil.vor { right: 14px; }
.lupe-zu:hover, .lupe-pfeil:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }
/* display:flex oben schlaegt sonst das hidden-Attribut: das Fenster bliebe nach dem
   Schliessen liegen und finge jeden Klick ab. Beide Regeln muessen staerker sein. */
.lupe[hidden] { display: none !important; }
.lupe [hidden] { display: none !important; }
@media (max-width: 640px) {
  .lupe { padding: 12px; }
  .lupe-inhalt img { max-height: 68vh; }
  .lupe-pfeil { width: 46px; height: 46px; font-size: 1.9rem; top: auto; bottom: 16px; transform: none; }
  .lupe-pfeil.zurueck { left: 16px; }
  .lupe-pfeil.vor { right: 16px; }
  .lupe figcaption { padding-bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .lupe, .lupe-inhalt img { animation: none; }
  .js .galerie li::after, .js .aufbau figure::after, .js .details figure::after,
  .js .halle-bild::after, .js .team li::after { transition: none; }
}
