/* 24Gym Thun - Redesign. Farben aus dem Logo: Schwarz, Signalrot, Weiss.
   Keine Webfonts: die Systemschrift kostet null Anfragen und null FOUT,
   das ist der billigste LCP-Gewinn, den es gibt. */

:root {
  --schwarz: #0a0a0c;
  --tief: #111116;
  --karte: #17171d;
  --rand: #26262f;
  --weiss: #ffffff;
  --grau: #b9b9c4;
  --grau-hell: #d8d8e0;
  --rot: #e8112d;
  --rot-hell: #ff3347;
  --rot-tief: #b80d24;

  --breite: 1180px;
  --radius: 14px;
  --radius-s: 8px;
  --schatten: 0 18px 50px rgba(0, 0, 0, .55);

  --serif: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
           "Helvetica Neue", Arial, sans-serif;

  --t1: clamp(2.3rem, 7.2vw, 4.4rem);
  --t2: clamp(1.75rem, 4.4vw, 2.75rem);
  --t3: clamp(1.2rem, 2.6vw, 1.5rem);
}

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

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

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--grau-hell);
  background: var(--schwarz);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  color: var(--weiss);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
  font-weight: 800;
}
h1 { font-size: var(--t1); text-transform: uppercase; letter-spacing: -.03em; }
h2 { font-size: var(--t2); text-transform: uppercase; }
h3 { font-size: var(--t3); }
p { margin: 0 0 1.1em; }
a { color: var(--rot-hell); }

.huelle { width: 100%; max-width: var(--breite); margin-inline: auto; padding-inline: 1.25rem; }
.mitte { text-align: center; }

/* Sprungmarke fuer Tastatur und Screenreader */
.skip {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--rot); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--radius-s) 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 3px solid var(--rot-hell); outline-offset: 3px; border-radius: 4px; }

/* ---------- Kopfzeile ---------- */
.kopf {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 12, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rand);
}
.kopf__innen { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; }
.marke { display: flex; align-items: center; gap: .65rem; text-decoration: none; margin-right: auto; }
.marke img { width: 44px; height: 44px; }
.marke b { color: var(--weiss); font-size: 1.15rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.marke span { display: block; color: var(--grau); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

.nav { display: none; }
.nav a {
  color: var(--grau-hell); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: .45rem .1rem; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: .1rem; height: 2px;
  background: var(--rot); transition: right .25s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav a[aria-current="page"] { color: var(--weiss); }

.kopf__innen .kopf__tel { display: none; }

.burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 9px; background: none; border: 1px solid var(--rand);
  border-radius: var(--radius-s); cursor: pointer;
}
.burger span { display: block; height: 2px; background: var(--weiss); transition: transform .25s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.schub {
  display: none; flex-direction: column; gap: .25rem;
  padding: 1rem 1.25rem 1.5rem; border-top: 1px solid var(--rand); background: var(--tief);
}
.schub[data-offen] { display: flex; }
.schub a { color: var(--weiss); text-decoration: none; font-weight: 700; font-size: 1.1rem; padding: .7rem 0; border-bottom: 1px solid var(--rand); }
.schub .knopf { margin-top: .9rem; border-bottom: 0; }

@media (min-width: 62rem) {
  .nav { display: flex; gap: 1.85rem; align-items: center; }
  .kopf__innen .kopf__tel { display: inline-flex; }
  .burger, .schub { display: none !important; }
}

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
  min-height: 48px;
}
.knopf--voll { background: var(--rot); color: #fff; box-shadow: 0 8px 26px rgba(232, 17, 45, .3); }
.knopf--voll:hover { background: var(--rot-hell); transform: translateY(-2px); }
.knopf--rand { border-color: var(--rand); color: var(--weiss); background: rgba(255,255,255,.03); }
.knopf--rand:hover { border-color: var(--rot); transform: translateY(-2px); }
.knopf--klein { padding: .6rem 1.1rem; font-size: .9rem; min-height: 40px; }
.knopf svg { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }
@media (prefers-reduced-motion: reduce) { .knopf:hover { transform: none; } }

.knopfreihe { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Abschnitte ---------- */
section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.sek--tief { background: var(--tief); }
.augbraue {
  display: inline-block; color: var(--rot-hell); font-size: .78rem; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase; margin-bottom: .9rem;
}
.lead { font-size: clamp(1.05rem, 2.2vw, 1.2rem); color: var(--grau); max-width: 62ch; }

/* ---------- Held ---------- */
.held { position: relative; padding-block: clamp(4rem, 12vw, 8rem); overflow: hidden; }
.held__bild { position: absolute; inset: 0; z-index: 0; }
.held__bild img { width: 100%; height: 100%; object-fit: cover; }
.held__bild::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(10,10,12,.96) 0%, rgba(10,10,12,.86) 45%, rgba(10,10,12,.55) 100%);
}
.held__innen { position: relative; z-index: 1; max-width: 46rem; }
.held h1 { margin-bottom: .45em; }
.held h1 em { font-style: normal; color: var(--rot); }
.held .lead { color: var(--grau-hell); }
.held .knopfreihe { margin-top: 1.9rem; }

.fakten { display: flex; flex-wrap: wrap; gap: 1.6rem 2.6rem; margin-top: 2.6rem; padding: 0; list-style: none; }
.fakten li { min-width: 7rem; }
.fakten b { display: block; color: var(--weiss); font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; line-height: 1.1; }
.fakten span { color: var(--grau); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }

/* ---------- Vertrauensleiste ---------- */
.vertrauen { border-block: 1px solid var(--rand); background: var(--tief); padding-block: 1.75rem; }
.vertrauen ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.25rem 2.5rem;
}
.vertrauen img { height: 42px; width: auto; opacity: .92; filter: grayscale(1) brightness(2.2); transition: filter .25s, opacity .25s; }
.vertrauen li:hover img { filter: none; opacity: 1; }
.vertrauen .siegel img { filter: none; opacity: 1; border-radius: 6px; background: #fff; padding: 3px; }
.vertrauen__text { display: flex; align-items: center; gap: .5rem; color: var(--grau); font-size: .85rem; font-weight: 600; }
.vertrauen__text svg { width: 1.15rem; height: 1.15rem; fill: var(--rot); flex: none; }

/* ---------- Raster ---------- */
.raster { display: grid; gap: 1.1rem; }
@media (min-width: 40rem) { .raster--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 40rem) { .raster--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .raster--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 40rem) { .raster--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .raster--4 { grid-template-columns: repeat(4, 1fr); } }

.karte {
  background: var(--karte); border: 1px solid var(--rand); border-radius: var(--radius);
  padding: 1.6rem; transition: transform .22s ease, border-color .22s ease;
}
.karte:hover { transform: translateY(-4px); border-color: #3a3a46; }
.karte h3 { margin-bottom: .45rem; }
.karte p:last-child { margin-bottom: 0; }
.karte__icon {
  width: 46px; height: 46px; border-radius: 12px; background: rgba(232,17,45,.12);
  display: grid; place-items: center; margin-bottom: 1.1rem;
}
.karte__icon svg { width: 24px; height: 24px; fill: var(--rot-hell); }
@media (prefers-reduced-motion: reduce) { .karte:hover { transform: none; } }

/* ---------- Bild + Text ---------- */
.duo { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56rem) {
  .duo { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .duo--gedreht .duo__text { order: 2; }
}
.duo__bild { border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten); }
.duo__bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Preise ---------- */
.preise { display: grid; gap: 1.1rem; }
@media (min-width: 46rem) { .preise { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .preise { grid-template-columns: repeat(3, 1fr); } }

.abo {
  position: relative; display: flex; flex-direction: column;
  background: var(--karte); border: 1px solid var(--rand); border-radius: var(--radius); padding: 1.75rem;
  transition: transform .22s ease, border-color .22s ease;
}
.abo:hover { transform: translateY(-4px); border-color: #3a3a46; }
.abo--top { border-color: var(--rot); background: linear-gradient(180deg, rgba(232,17,45,.09), var(--karte) 60%); }
.abo__fahne {
  position: absolute; top: -.75rem; left: 1.75rem;
  background: var(--rot); color: #fff; font-size: .7rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 999px;
}
.abo h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.abo__preis { display: flex; align-items: baseline; gap: .35rem; margin: .7rem 0 1rem; }
.abo__preis b { color: var(--weiss); font-size: 2.4rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.abo__preis span { color: var(--grau); font-size: .9rem; font-weight: 600; }
.abo ul { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .55rem; }
.abo li { display: flex; gap: .6rem; font-size: .95rem; color: var(--grau-hell); }
.abo li svg { width: 1.1rem; height: 1.1rem; fill: var(--rot-hell); flex: none; margin-top: .25rem; }
.abo .knopf { margin-top: auto; }
@media (prefers-reduced-motion: reduce) { .abo:hover { transform: none; } }

/* ---------- Zeiten ---------- */
.zeiten { width: 100%; border-collapse: collapse; font-size: 1rem; }
.zeiten caption { text-align: left; color: var(--grau); font-size: .9rem; padding-bottom: .9rem; }
.zeiten th, .zeiten td { padding: .85rem .6rem; border-bottom: 1px solid var(--rand); text-align: left; vertical-align: top; }
.zeiten th { color: var(--weiss); font-weight: 700; white-space: nowrap; }
.zeiten td { color: var(--grau-hell); }
.zeiten tr:last-child th, .zeiten tr:last-child td { border-bottom: 0; }

/* ---------- Galerie ---------- */
.galerie { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 56rem) { .galerie { grid-template-columns: repeat(4, 1fr); } }
.galerie figure { margin: 0; border-radius: var(--radius-s); overflow: hidden; background: var(--karte); }
.galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .45s ease; }
.galerie figure:hover img { transform: scale(1.06); }
.galerie figcaption {
  padding: .6rem .75rem; font-size: .8rem; color: var(--grau);
  text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
}
@media (prefers-reduced-motion: reduce) { .galerie figure:hover img { transform: none; } }

/* ---------- Team ---------- */
.person { text-align: center; }
.person img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: top center;
  border-radius: var(--radius); margin-bottom: 1.1rem;
}
.person h3 { margin-bottom: .1rem; }
.person .rolle { color: var(--rot-hell); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .9rem; }

/* ---------- Kontakt ---------- */
.kanaele { display: grid; gap: .75rem; }
@media (min-width: 40rem) { .kanaele { grid-template-columns: repeat(3, 1fr); } }
.kanal {
  display: flex; align-items: center; gap: .9rem; text-decoration: none;
  background: var(--karte); border: 1px solid var(--rand); border-radius: var(--radius);
  padding: 1.1rem 1.25rem; transition: border-color .2s, transform .2s;
}
.kanal:hover { border-color: var(--rot); transform: translateY(-2px); }
.kanal svg { width: 1.6rem; height: 1.6rem; fill: var(--rot-hell); flex: none; }
.kanal b { display: block; color: var(--weiss); font-size: 1rem; }
.kanal span { color: var(--grau); font-size: .82rem; }
@media (prefers-reduced-motion: reduce) { .kanal:hover { transform: none; } }

form { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .feldpaar { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } }
label { display: block; font-size: .85rem; font-weight: 700; color: var(--weiss); margin-bottom: .4rem; }
input, textarea, select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--weiss);
  background: var(--tief); border: 1px solid var(--rand); border-radius: var(--radius-s);
  padding: .8rem .95rem; min-height: 48px;
}
textarea { min-height: 8rem; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--rot); outline: none; box-shadow: 0 0 0 3px rgba(232,17,45,.22); }
.einwilligung { display: flex; gap: .7rem; align-items: flex-start; font-size: .85rem; color: var(--grau); }
.einwilligung input { width: 1.15rem; height: 1.15rem; min-height: 0; margin-top: .2rem; flex: none; }
.einwilligung label { font-weight: 400; color: var(--grau); font-size: .85rem; margin: 0; }

.karte-einbettung { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rand); }
.karte-einbettung iframe { display: block; width: 100%; height: 340px; border: 0; filter: grayscale(.35) contrast(1.05); }

/* ---------- Ausrufer ---------- */
.ausrufer {
  background: linear-gradient(120deg, var(--rot-tief), var(--rot));
  border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.25rem); text-align: center;
}
.ausrufer h2 { color: #fff; }
.ausrufer p { color: rgba(255,255,255,.9); max-width: 48ch; margin-inline: auto; }
.ausrufer .knopf--voll { background: #fff; color: var(--rot-tief); box-shadow: 0 8px 26px rgba(0,0,0,.28); }
.ausrufer .knopf--voll:hover { background: #fff; color: #000; }
.ausrufer .knopf--rand { border-color: rgba(255,255,255,.55); color: #fff; }
.ausrufer .knopf--rand:hover { border-color: #fff; background: rgba(255,255,255,.12); }
.ausrufer .knopfreihe { justify-content: center; margin-top: 1.75rem; }

/* ---------- Fusszeile ---------- */
.fuss { background: var(--tief); border-top: 1px solid var(--rand); padding-block: 3.25rem 2rem; font-size: .95rem; }
.fuss__raster { display: grid; gap: 2.25rem; }
@media (min-width: 52rem) { .fuss__raster { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; } }
.fuss h3 { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--grau); margin-bottom: 1rem; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.fuss a { color: var(--grau-hell); text-decoration: none; }
.fuss a:hover { color: var(--rot-hell); }
.fuss address { font-style: normal; color: var(--grau); }
.sozial { display: flex; gap: .7rem; margin-top: 1.25rem; }
.sozial a {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--rand); border-radius: 50%; transition: border-color .2s, background .2s;
}
.sozial a:hover { border-color: var(--rot); background: rgba(232,17,45,.12); }
.sozial svg { width: 1.15rem; height: 1.15rem; fill: var(--grau-hell); }
.fuss__unten {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rand);
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between;
  color: var(--grau); font-size: .85rem;
}

/* ---------- Krümelpfad ---------- */
.kruemel { font-size: .82rem; color: var(--grau); padding-top: 1.5rem; }
.kruemel ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
.kruemel li + li::before { content: "/"; margin-right: .5rem; color: var(--rand); }
.kruemel a { color: var(--grau); text-decoration: none; }
.kruemel a:hover { color: var(--rot-hell); }
.kruemel [aria-current] { color: var(--grau-hell); }

/* ---------- Seitenkopf der Unterseiten ---------- */
.seitenkopf { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 2.5rem); border-bottom: 1px solid var(--rand); }
.seitenkopf h1 { margin-bottom: .35em; }

/* ---------- Auftauchen beim Scrollen ---------- */
/* Nur wenn JavaScript laeuft: sonst blieben die Abschnitte fuer immer auf
   opacity 0 stehen - eine leere Seite fuer jeden ohne JS und fuer jeden
   Crawler, der das Blatt anwendet, aber das Skript nicht ausfuehrt.
   Die Klasse "js" setzt ein Einzeiler im <head>, vor dem ersten Rendern. */
@media (prefers-reduced-motion: no-preference) {
  .js .auf { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
  .js .auf.da { opacity: 1; transform: none; }
}

/* ---------- Fliesstext (Impressum, Datenschutz) ---------- */
.text { max-width: 70ch; }
.text h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin-top: 2.25rem; }
.text h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.text ul { padding-left: 1.2rem; }
.text li { margin-bottom: .4rem; }
.text dl { display: grid; gap: .3rem 1.5rem; margin: 0 0 1.5rem; }
@media (min-width: 34rem) { .text dl { grid-template-columns: 13rem 1fr; } }
.text dt { color: var(--weiss); font-weight: 700; }
.text dd { margin: 0 0 .6rem; }

/* ---------- Kleine Hilfsklassen ----------
   Diese Regeln standen urspruenglich als style="..."-Attribute im HTML. Die
   Content-Security-Policy erlaubt kein 'unsafe-inline' fuer Stile, und das soll
   sie auch nicht - jedes Inline-Attribut waere sonst ein offenes Tor. Also
   Klassen. */
.notiz      { color: var(--grau); font-size: .95rem; }
.notiz--s   { color: var(--grau); font-size: .85rem; margin-top: 1rem; }
.notiz--m   { color: var(--grau); font-size: .9rem; }
.hervor     { color: var(--weiss); }
.einleitung { max-width: 60ch; margin-bottom: 2.5rem; }
.schmal     { max-width: 34rem; }
.abstand-o  { margin-top: 1rem; }
.abstand-o-m{ margin-top: 1.5rem; }
.abstand-o-g{ margin-top: 2rem; }
.abstand-u  { margin-bottom: 1rem; }
.abstand-u-g{ margin-bottom: 2rem; }
.person .biografie { color: var(--grau); text-align: left; }

.frage { padding: 1.25rem 1.5rem; }
.frage > summary { cursor: pointer; color: #fff; font-weight: 700; list-style-position: outside; }
.frage > summary::marker { color: var(--rot); }
.frage > p { margin: .9rem 0 0; color: var(--grau); }
