/* ============================================================
   THÖMUS RAMPENVERKAUF 2026 — main.css
   Vanilla CSS, kein Build. Tokens siehe tokens.css.
   Leitmotiv: das schräge Parallelogramm (--skew / --slant).
   ============================================================ */

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
/* Muss die display-Werte der Komponenten schlagen (z.B. .confirm{display:flex}). */
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6, p, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--color-link); text-decoration: none; transition: color var(--duration-fast) var(--ease-out); }
a:hover { color: var(--color-link-hover); }

:focus-visible {
  outline: 3px solid var(--color-brand);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 200;
  background: var(--tho-red); color: #fff; padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm); font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider); text-transform: uppercase;
  transition: top var(--duration-base) var(--ease-out);
}
.skip-link:focus { top: var(--space-4); color: #fff; }

/* ── LAYOUT ────────────────────────────────────────────────── */
.wrap { max-width: var(--content-max); margin-inline: auto; }
.section { padding-inline: var(--content-gutter); }
.section--top { padding-top: var(--space-24); }
.section--flow { padding-block: var(--space-24); }

.measure { max-width: 820px; }

/* ── HEADER (nicht sticky — scrollt weg) ───────────────────── */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4);
  padding: 10px var(--content-gutter);
  background: var(--tho-white);
  min-height: 72px;
}
.site-header__logo { display: flex; align-items: center; height: 52px; }
/* width:auto ist Pflicht — sonst zieht das width-Attribut das Logo in die Breite. */
.site-header__logo img { display: block; width: auto; }
.site-header__logo img[data-variant="thoemus"]   { height: 52px; }
.site-header__logo img[data-variant="bikeworld"] { height: 23px; }

/* ── SPRACHUMSCHALTER (Referenz: sommerwettbewerb.thoemus.ch) ─ */
.lang { display: flex; align-items: center; gap: 10px; }
.lang__sep { color: var(--color-border); font-size: 13px; }
.lang__btn {
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 14px; font-weight: var(--fw-medium);
  letter-spacing: 0.08em; padding: 4px 2px;
  color: var(--color-fg-subtle);
  border-bottom: 2px solid transparent;
  transition: color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}
.lang__btn:hover { color: var(--tho-red); }
.lang__btn[aria-pressed="true"] {
  color: var(--tho-red); font-weight: var(--fw-semibold);
  border-bottom-color: var(--tho-red);
}

/* ── HERO ──────────────────────────────────────────────────────
   Reines Hintergrundvisual (kein Text im Bild) plus zwei Textbausteine.
   Das Seitenverhältnis gibt die Site vor, nicht die Bilddatei — so
   bleibt die Seitenhöhe stabil, egal welches Motiv geliefert wird.
   Zielmass Bilddatei: 2560 x 1280 px (2:1), Motiv mittig.
   ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  aspect-ratio: 2 / 1;
  background: var(--tho-black);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hero__media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
/* Nur eine leichte Abdunkelung: Die gelieferten Visuals sind bereits
   kontrastreich gestaltet, die Textbausteine bringen ihre Kontur mit. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(13,13,13,0.28) 0%, rgba(13,13,13,0.08) 45%, rgba(13,13,13,0) 75%);
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 3;
  width: 100%; max-width: var(--content-max);
  padding: 0 var(--content-gutter);
  display: flex; flex-direction: column; align-items: center;
  gap: var(--space-5); text-align: center;
  /* Die beiden Bausteine wandern beim Scrollen aus dem Bild —
     ohne Überlauf-Scrollbalken. */
  overflow: hidden;
}
.hero__title,
.hero__sub {
  will-change: transform;
  /* Die Verschiebung selbst setzt effects.js; hier nur der Rückweg,
     falls JS fehlt oder reduzierte Bewegung gewünscht ist. */
  transform: translate3d(0, 0, 0);
}
/* Gelieferte Textbausteine als PNG mit Transparenz, auf den sichtbaren
   Inhalt beschnitten und alle im selben Massstab exportiert.

   Bemasst wird über die HÖHE, nicht die Breite: Die Sprachfassungen haben
   sehr unterschiedliche Seitenverhältnisse (DE-Titel 1.92, FR-Titel 1.35),
   bei gleicher Breite wäre die französische Schrift deutlich grösser.
   Über die Höhe bleibt der Schriftgrad in beiden Sprachen identisch.
   max-width fängt die breiten Fassungen ab (FR-Untertitel bis 4.84). */
.hero__block { display: block; width: auto; object-fit: contain; }
/* Ab 1440px unveraendert: Titel 432px, Untertitel 171px (Verhaeltnis 2.53).
   Auf kleineren Desktops waechst der Untertitel relativ, der Titel schrumpft
   leicht — bei 1000px: Titel 287px statt 330px, Untertitel 145px statt 120px
   (Verhaeltnis ~2.0). Beide Geraden treffen bei 1440px exakt die alten
   Maximalwerte, es gibt keinen Sprung. object-fit: contain verhindert
   Verzerrung, falls die max-width greift: Das Bild wird dann im Rahmen
   proportional verkleinert statt gestaucht. */
.hero__block--title { height: min(33vw - 43px, 432px); max-width: 92vw; }
.hero__block--sub   { height: min(6vw + 85px, 171px);  max-width: 88vw; }

/* Fallback, falls statt eines Bausteins HTML-Text steht */
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 6.4vw, 104px);
  font-weight: var(--fw-black);
  line-height: 0.94;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #fff;
  max-width: 16ch;
  text-wrap: balance;
  text-shadow: 0 2px 40px rgba(13,13,13,0.5);
}
.hero__sub {
  font-size: clamp(14px, 1.5vw, 21px); font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider); text-transform: uppercase;
  color: #fff; max-width: 48ch; text-wrap: balance;
  text-shadow: 0 1px 18px rgba(13,13,13,0.65);
}

/* Fade: NUR der unterste Abschnitt läuft ins Tiefrot aus (§6.4) —
   der obere Teil des Visuals bleibt unangetastet.

   Die Endfarbe --tho-red-deep ist nicht frei gewählt, sondern die am
   unteren Rand des Hero-Visuals gemessene Farbe. Wird das Visual
   ersetzt, muss sie neu gemessen und der Verlauf darunter angepasst
   werden — sonst entsteht an der Nahtstelle eine sichtbare Kante. */
.hero__fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 28%;
  /* Volle Deckung schon bei 85%: Der unterste Streifen des Heros ist damit
     komplett flaches --tho-red-deep, die Bildtextur endet weich davor.
     Erst dadurch verschwindet die Naht zum Verlauf darunter — stimmen nur
     die Farben, bleibt der Textur-Stopp an der Kante als Linie sichtbar. */
  background: linear-gradient(to bottom,
    rgba(66,1,1,0) 0%,
    rgba(66,1,1,0.3) 35%,
    rgba(66,1,1,0.8) 65%,
    var(--tho-red-deep) 85%,
    var(--tho-red-deep) 100%);
  pointer-events: none; z-index: 2;
}

/* Übergang Tiefrot -> Weiss (§6.4: Seitenhintergrund überall weiss)
   160px statt der ursprünglichen 280px: Das ist der einzige Weg, die
   Anker-Nav nach oben zu holen, ohne den Hero anzufassen. Derselbe Wert
   gilt auf dem Handy schon länger. */
.hero-fade-out {
  height: 160px;
  background: linear-gradient(to bottom,
    var(--tho-red-deep) 0%, #782525 22%, #B37475 46%,
    #DFC2C2 68%, #F9F1F0 86%, var(--tho-white) 100%);
  pointer-events: none;
}

/* ── STICKY-ANKER-NAV (§6.3) ───────────────────────────────── */
.anchornav {
  position: sticky; top: 0; z-index: 60;
  background: var(--tho-white);
  display: flex; justify-content: center; align-items: center; gap: 10px;
  padding: 14px var(--space-5) 28px;
  flex-wrap: wrap;
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}
.anchornav.is-stuck {
  border-bottom-color: var(--color-divider);
  box-shadow: 0 4px 14px rgba(0,0,0,0.10);
}
.anchornav__logo {
  position: absolute; left: var(--content-gutter); top: 14px;
  display: none; cursor: pointer; background: none; border: 0; padding: 0;
}
.anchornav.is-stuck .anchornav__logo { display: block; }
.anchornav__logo img { display: block; width: auto; }
.anchornav__logo img[data-variant="thoemus"]   { height: 52px; transform: translateY(-4px); }
.anchornav__logo img[data-variant="bikeworld"] { height: 23px; transform: translateY(11px); }

.anchornav__link {
  display: inline-block; padding: 16px 30px;
  font-size: 14px; font-weight: var(--fw-semibold);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-fg); background: var(--tho-white);
  border: 1px solid var(--color-border);
  transition: background var(--duration-base) var(--ease-out),
              color var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out);
}
.anchornav__link:hover { color: var(--color-fg); border-color: var(--tho-black); }
/* .is-on = roter Zustand. Vor der ersten Section tragen ihn alle Buttons,
   danach nur noch der aktive (Scroll-Spy in effects.js). */
.anchornav__link.is-on {
  color: #fff; background: var(--tho-red); border-color: var(--tho-red);
}
.anchornav__link.is-on:hover { color: #fff; background: var(--tho-red-dark); border-color: var(--tho-red-dark); }

/* ── INTRO ─────────────────────────────────────────────────── */
/* Lead-Absatz auf allen drei Seiten. Bewusst grösser und kräftiger als
   Fliesstext — er ist der erste Text nach dem Hero und trägt die Aussage.
   Grosszügiger Abstand unten, weil darunter ein grosses Bildelement folgt
   (Kacheln bzw. Breaker). */
.intro {
  padding: var(--space-24) var(--space-6) var(--space-32);
  display: flex; justify-content: center;
}
.intro p {
  margin: 0; max-width: 860px; text-align: center;
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.55;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.005em;
  color: var(--tho-gray-700); text-wrap: pretty;
}

/* ── BREAKER (Full-Width-Bild mit Parallax) ────────────────── */
.breaker { position: relative; overflow: hidden; height: 600px; }
.breaker--short { height: 300px; }
.breaker img {
  position: absolute; left: 0; top: -12%;
  width: 100%; height: 124%;
  object-fit: cover; object-position: center 50%;
  will-change: transform;
}

/* ── SECTION-KOPF ──────────────────────────────────────────── */
.overline {
  font-size: 15px; font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest); text-transform: uppercase;
  color: var(--tho-red); margin-bottom: var(--space-4);
}
.h-section {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  text-transform: uppercase;
  color: var(--color-fg);
  text-wrap: pretty;
}
.section-lead {
  margin-top: var(--space-6);
  font-size: var(--text-md); line-height: var(--lh-relaxed);
  color: var(--tho-gray-700); text-wrap: pretty;
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: var(--fw-semibold);
  letter-spacing: 0.14em; text-transform: uppercase;
  border: 0; cursor: pointer; text-align: center;
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}
.btn--primary { background: var(--tho-red); color: #fff; padding: 20px 52px; font-size: 16px; }
.btn--primary:hover { background: var(--tho-red-dark); color: #fff; }
.btn--sm { padding: 14px 32px; font-size: 13px; }
.btn--outline {
  background: var(--tho-white); color: var(--tho-black);
  border: 2px solid var(--tho-black); padding: 12px 28px;
  font-size: 13px; letter-spacing: var(--ls-wider);
}
.btn--outline:hover { background: var(--color-bg-subtle); color: var(--tho-black); }
.btn-row { display: flex; justify-content: center; padding-top: 72px; }

/* ── HOMEPAGE: PARALLELOGRAMM-KACHELN (§7.4) ───────────────── */
.tiles { position: relative; height: 600px; }
.tile {
  position: absolute; top: 0; height: 100%;
  width: calc(50% + 60px);
  display: block; overflow: hidden;
  background: var(--tho-black);
}
.tile--left  { left: 0;  clip-path: polygon(0 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%); }
.tile--right { right: 0; clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%); }
.tile img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
.tile:hover img, .tile:focus-visible img { transform: scale(1.05); }
.tile::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(13,13,13,0.45); pointer-events: none;
  transition: background var(--duration-base) var(--ease-out);
}
.tile:hover::after, .tile:focus-visible::after { background: rgba(13,13,13,0.32); }
.tile__body {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 36px; text-align: center; pointer-events: none;
}
.tile--left  .tile__body { padding: 0 140px 0 60px; }
.tile--right .tile__body { padding: 0 60px 0 140px; }
.tile__heading { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.tile__title {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.2vw, 64px); font-weight: var(--fw-semibold);
  line-height: 1.02; letter-spacing: -0.01em; text-transform: uppercase;
  color: #fff; max-width: 560px; text-wrap: balance;
}
.tile__date {
  font-size: clamp(16px, 1.4vw, 21px); font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider); text-transform: uppercase; color: #fff;
}
.tile__cta {
  background: var(--tho-red); padding: 18px 44px;
  color: #fff; font-size: 15px; font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider); text-transform: uppercase;
  transition: background var(--duration-fast) var(--ease-out);
}
.tile:hover .tile__cta { background: var(--tho-red-dark); }

/* ── HIGHLIGHT-GRID ────────────────────────────────────────── */
.cards { display: grid; gap: 56px 48px; margin-top: 56px; }
.cards--2 { grid-template-columns: 1fr 1fr; }
.cards--3 { grid-template-columns: 1fr 1fr 1fr; gap: 56px 40px; }
.card__media { overflow: hidden; background: var(--color-bg-subtle); margin-bottom: 22px; }
.cards--2 .card__media { aspect-ratio: 16 / 10; }
.cards--3 .card__media { aspect-ratio: 4 / 3; }
/* Für Motive mit einem Grafikelement am rechten Rand (Voucher-Kacheln):
   Der Beschnitt geht links weg, damit der Voucher ganz im Bild bleibt. */
.card__media--anchor-right img { object-position: right center; }
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
.card:hover .card__media img { transform: scale(1.04); }
.card__title {
  font-family: var(--font-display);
  font-size: 24px; font-weight: var(--fw-semibold);
  line-height: 1.15; letter-spacing: -0.01em; text-transform: uppercase;
  color: var(--color-fg); margin-bottom: var(--space-3);
}
.cards--3 .card__title { font-size: 22px; }
.card__text {
  font-size: var(--text-base); line-height: var(--lh-relaxed);
  color: var(--tho-gray-700); max-width: 560px; text-wrap: pretty;
}
.card .btn { margin-top: var(--space-5); }

/* Fünfte Kachel: behält die Spaltenbreite, sitzt aber mittig unter den
   beiden Spalten statt links angeschlagen. */
.cards--2 .card--centered {
  grid-column: 1 / -1;
  width: calc(50% - 24px);
  margin-inline: auto;
}
/* Platzhalter, solange das Foto fehlt — bewusst deutlich sichtbar,
   damit er beim Review nicht übersehen und versehentlich live geht. */
.card__media--pending {
  position: relative;
  background: var(--color-bg-subtle);
  border: 1px dashed var(--color-border);
  display: flex; align-items: center; justify-content: center;
}
.card__media--pending .tagpill {
  background: var(--color-border); color: var(--tho-gray-700);
  font-size: 11px; font-weight: var(--fw-semibold);
  letter-spacing: 0.18em; text-transform: uppercase; padding: 8px 16px;
}

/* ── TABS: grosse Pills + grosses Canvas (§8/§9) ───────────── */
.tabs { display: flex; gap: 20px; flex-wrap: wrap; margin: 44px 0 40px; }
.tab {
  display: inline-flex; align-items: baseline; gap: 9px;
  padding: 17px 32px; border-radius: var(--radius-pill); border: 0;
  cursor: pointer; font-family: var(--font-body);
  background: var(--color-divider); color: var(--color-fg);
  transition: background var(--duration-base) var(--ease-out),
              color var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
}
.tab:hover { background: var(--color-border); }
.tab[aria-selected="true"] {
  background: var(--tho-red); color: #fff;
  box-shadow: 0 6px 18px rgba(227,6,19,0.28);
}
.tab[aria-selected="true"]:hover { background: var(--tho-red); }
.tab[data-past="true"]:not([aria-selected="true"]) { color: var(--color-fg-muted); }
.tab__key { font-size: 18px; font-weight: var(--fw-semibold); letter-spacing: 0.02em; line-height: 1; }
.tab__meta { font-size: 16px; font-weight: var(--fw-medium); opacity: 0.75; line-height: 1; }
.tabs--filialen .tab__key { font-size: 16px; letter-spacing: 0.03em; text-transform: uppercase; }
.tabs--filialen .tab__meta { font-size: 14px; }

.canvas {
  background: var(--tho-black);
  padding: clamp(36px, 5vw, 72px);
  position: relative; overflow: hidden;
}
/* Parallelogramm-Akzent als wiederkehrendes Motiv */
.canvas::before {
  content: ""; position: absolute; top: 0; right: -40px;
  width: 220px; height: 100%;
  background: var(--tho-red); transform: skewX(var(--skew));
  opacity: 0.08; pointer-events: none;
}
.canvas > * { position: relative; z-index: 1; }
.canvas__panel[hidden] { display: none; }
.canvas__panel { animation: canvas-in var(--duration-slow) var(--ease-out); }
@keyframes canvas-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* Programm-Canvas (/dasoriginal) */
.canvas__grid {
  display: grid; grid-template-columns: minmax(240px, 320px) 1fr;
  gap: clamp(32px, 4vw, 64px);
}
.speaker__photo {
  aspect-ratio: 4 / 5; background: var(--tho-gray-900);
  position: relative; overflow: hidden;
}
.speaker__photo img { width: 100%; height: 100%; object-fit: cover; }
.speaker__photo--empty {
  border: 1px dashed var(--tho-gray-700);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3);
}
.speaker__initials {
  width: 72px; height: 72px; border-radius: 50%; background: var(--tho-red);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 24px; font-weight: var(--fw-semibold);
}
.speaker__note {
  color: var(--tho-gray-600); font-size: 11px; font-weight: var(--fw-semibold);
  letter-spacing: 0.18em; text-transform: uppercase;
}
.speaker__name { margin-top: var(--space-5); color: #fff; font-size: 22px; font-weight: var(--fw-semibold); line-height: 1.2; }
.speaker__role { margin-top: var(--space-2); color: var(--tho-gray-400); font-size: var(--text-md); line-height: var(--lh-normal); }

.canvas__kicker {
  font-size: 12px; font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest); text-transform: uppercase;
  color: var(--tho-red-light); margin-bottom: 14px;
}
.canvas__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px); font-weight: var(--fw-semibold);
  line-height: var(--lh-tight); letter-spacing: -0.01em; text-transform: uppercase;
  color: #fff; margin-bottom: var(--space-5); text-wrap: pretty;
}
.canvas__text {
  font-size: 17px; line-height: var(--lh-relaxed);
  color: var(--color-border); max-width: 620px; text-wrap: pretty;
}
.agenda { margin-top: 52px; }
.agenda__label {
  font-size: 13px; font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest); text-transform: uppercase;
  color: var(--tho-gray-400); margin-bottom: var(--space-6);
}
.agenda__items { display: flex; gap: clamp(40px, 6vw, 96px); flex-wrap: wrap; }
.agenda__item { display: flex; flex-direction: column; gap: 9px; }
.agenda__time { color: #fff; font-size: clamp(26px, 2.4vw, 34px); font-weight: var(--fw-semibold); line-height: 1; }
.agenda__what { color: var(--tho-red); font-size: 14px; font-weight: var(--fw-semibold); letter-spacing: var(--ls-wider); text-transform: uppercase; }

/* Filial-Canvas (/filialen) */
.canvas__headline {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.8vw, 40px); font-weight: var(--fw-semibold);
  line-height: 1.08; letter-spacing: -0.01em; text-transform: uppercase;
  color: #fff; margin-bottom: 44px; max-width: 900px; text-wrap: pretty;
}
.canvas__row {
  display: grid; grid-template-columns: minmax(280px, 460px) 1fr;
  gap: clamp(32px, 4vw, 64px); align-items: start;
}
.canvas__row--split { grid-template-columns: 1fr 1fr; }
.canvas__block {
  margin-top: 56px; border-top: 1px solid var(--tho-gray-800); padding-top: 44px;
}
.filiale__photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--tho-gray-900); position: relative; }
.filiale__photo img { width: 100%; height: 100%; object-fit: cover; }
.filiale__photo .tagpill {
  position: absolute; top: 12px; left: 12px;
  background: rgba(13,13,13,0.75); color: var(--tho-gray-400);
  font-size: 10px; font-weight: var(--fw-semibold);
  letter-spacing: 0.16em; text-transform: uppercase; padding: 5px 10px;
}
.canvas__block-label {
  font-size: 13px; font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest); text-transform: uppercase;
  color: #fff; margin-bottom: var(--space-5);
}
.hours { display: flex; flex-direction: column; gap: var(--space-3); font-size: var(--text-base); line-height: var(--lh-normal); }
.hours__row { display: flex; justify-content: space-between; gap: var(--space-4); max-width: 420px; }
.hours__row span { color: var(--tho-gray-400); }
.hours__row strong { color: #fff; font-weight: var(--fw-semibold); }
.canvas__address { margin-bottom: var(--space-4); font-size: var(--text-base); line-height: var(--lh-snug); color: var(--color-border); }
.link-arrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: 13px; font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider); text-transform: uppercase;
}
.canvas .link-arrow { color: var(--tho-red-light); }
.canvas .link-arrow:hover { color: #fff; }

/* ── KARTE (Leaflet, rötlich gestylt — §6.5) ───────────────── */
.map { height: 220px; background: var(--color-bg-subtle); margin-bottom: 14px; }
.map--wide { height: 300px; background: var(--color-bg-subtle); margin-top: var(--space-8); margin-bottom: 0; }
/* Marker leicht abheben, damit er auf der hellen Karte Tiefe bekommt. */
.leaflet-container .leaflet-interactive { filter: drop-shadow(0 2px 4px rgba(13,13,13,0.35)); }
/* Neutrale, hellgraue Karte (CARTO Positron) — kein Farbstich.
   Rot ist allein dem Marker vorbehalten, damit der Standort trägt.
   Zwei Klassen tief, weil leaflet.css zur Laufzeit nachgeladen wird und dort
   `.leaflet-tile { filter: inherit }` sonst gewinnt. */
.leaflet-container .leaflet-tile {
  filter: grayscale(1) contrast(1.04);
}
/* isolation + z-index:0 halten die Leaflet-Panes unter der Sticky-Nav,
   ohne ihre Reihenfolge untereinander zu zerstören. */
.leaflet-container {
  background: var(--color-bg-subtle);
  isolation: isolate; position: relative; z-index: 0;
  font-family: var(--font-body);
}
.leaflet-control-attribution { font-size: 10px; background: rgba(255,255,255,0.75); }

/* ── INFO-GRID (/dasoriginal) ──────────────────────────────── */
.infogrid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px; margin-top: 72px; }
.infocard { border-top: 1px solid var(--color-divider); padding-top: 26px; }
.infocard__title {
  font-family: var(--font-display);
  font-size: 15px; font-weight: var(--fw-semibold);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-fg); margin-bottom: var(--space-5);
}
.infocard__rows { display: flex; flex-direction: column; gap: 10px; font-size: var(--text-base); color: var(--tho-gray-700); }
.infocard__row { display: flex; justify-content: space-between; gap: var(--space-4); }
.infocard__row strong { color: var(--color-fg); font-weight: var(--fw-semibold); }
.infocard p { font-size: var(--text-base); line-height: var(--lh-relaxed); color: var(--tho-gray-700); text-wrap: pretty; }
.infocard__address { line-height: var(--lh-snug); margin-bottom: var(--space-4); }
.infocard p + .btn, .infocard p + .link-arrow { margin-top: var(--space-5); }

/* ── HUBSPOT-EMBEDS (§6.6) ─────────────────────────────────── */
.formshell { background: var(--tho-black); padding: clamp(32px, 5vw, 64px); }
.formshell__inner { max-width: 760px; margin: 0 auto; min-height: 320px; }
.canvas .formshell { background: transparent; padding: 0; }
.canvas .formshell__inner { margin: 0; }

.embed-placeholder {
  border: 2px dashed var(--color-border); background: var(--color-bg-subtle);
  padding: 72px var(--space-8);
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
}
.embed-placeholder__id {
  font-size: 13px; font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider); text-transform: uppercase; color: var(--color-fg-muted);
}
.embed-placeholder__note { font-size: 15px; color: var(--color-fg-subtle); }
.canvas .embed-placeholder { border-color: var(--tho-gray-700); background: #141414; padding: 64px var(--space-8); }
.canvas .embed-placeholder__id { color: var(--tho-gray-600); }
.canvas .embed-placeholder__note { color: var(--tho-gray-400); }

/* Inline gerendertes HubSpot-Formular auf dunklem Grund.
   (Rendert das Embed in einem iFrame, übernimmt hubspot.js das Styling.) */
.formshell .hs-form,
.formshell form { font-family: var(--font-body); }
.formshell .hs-form-field { margin-bottom: 22px; }
.formshell .hs-form label,
.formshell .hs-form .hs-form-field > label {
  font-size: 12px; font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider); text-transform: uppercase;
  color: #fff; display: block; margin-bottom: var(--space-2);
}
.formshell legend.hs-field-desc { font-size: 13px; color: var(--tho-gray-400); margin: 0 0 var(--space-2); }
.formshell input[type=text], .formshell input[type=email], .formshell input[type=tel],
.formshell input[type=number], .formshell select, .formshell textarea {
  width: 100%; box-sizing: border-box;
  background: #fff; border: 1px solid var(--tho-gray-700); border-radius: 0;
  padding: 14px 16px; font-size: 16px; font-family: var(--font-body);
  color: var(--color-fg); outline: none;
  transition: border-color var(--duration-fast) var(--ease-out);
}
.formshell input:focus, .formshell select:focus, .formshell textarea:focus { border-color: var(--tho-red); }
.formshell ::placeholder { color: var(--color-fg-muted); }
.formshell .hs-form-booleancheckbox label,
.formshell .hs-form-radio label,
.formshell .hs-form-checkbox label {
  text-transform: none; letter-spacing: 0; font-weight: var(--fw-regular);
  font-size: 15px; color: var(--color-border);
  display: flex; align-items: flex-start; gap: 10px;
}
.formshell input[type=checkbox], .formshell input[type=radio] { accent-color: var(--tho-red); width: 18px; height: 18px; margin-top: 1px; }
.formshell .hs-error-msgs, .formshell .hs-error-msg {
  color: var(--tho-red-light); font-size: 13px; list-style: none;
  padding: 6px 0 0; margin: 0; text-transform: none; letter-spacing: 0;
}
.formshell .hs-form-required { color: var(--tho-red-light); }
.formshell .hs-button, .formshell input[type=submit] {
  background: var(--tho-red); color: #fff; border: 0; border-radius: 0;
  padding: 18px 48px; font-size: 15px; font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider); text-transform: uppercase;
  cursor: pointer; font-family: var(--font-body); width: auto;
  transition: background var(--duration-fast) var(--ease-out);
}
.formshell .hs-button:hover, .formshell input[type=submit]:hover { background: var(--tho-red-dark); }
.formshell .hs-submit { margin-top: 10px; }
.formshell .submitted-message { font-size: 17px; color: #fff; line-height: 1.6; }
.formshell .hs-richtext, .formshell .hs-richtext p { font-size: 14px; color: var(--color-border); line-height: 1.6; }
.formshell fieldset { max-width: none !important; border: 0; padding: 0; margin: 0; }
.formshell fieldset.form-columns-2 .hs-form-field { width: calc(50% - 12px); display: inline-block; vertical-align: top; margin-right: var(--space-6); }
.formshell fieldset.form-columns-2 .hs-form-field:last-child { margin-right: 0; }
.formshell .input { margin-right: 0 !important; }
.formshell iframe { width: 100%; border: 0; }
@media (max-width: 700px) {
  .formshell fieldset.form-columns-2 .hs-form-field { width: 100%; margin-right: 0; }
}

/* Bestätigung nach Absenden */
.confirm {
  background: var(--tho-black);
  padding: clamp(48px, 6vw, 88px) var(--space-8);
  display: flex; flex-direction: column; align-items: center; gap: var(--space-5); text-align: center;
}
.canvas .confirm { padding: clamp(32px, 4vw, 56px) var(--space-6); }
.confirm__icon { width: 72px; height: 72px; }
.confirm__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 36px); font-weight: var(--fw-semibold);
  letter-spacing: -0.01em; text-transform: uppercase; color: #fff;
}
.confirm p { font-size: var(--text-md); line-height: 1.6; color: var(--color-border); }
.confirm__link {
  background: none; border: 0; cursor: pointer; margin-top: 6px; padding: 6px 2px;
  color: var(--tho-red-light); font-size: 15px; font-weight: var(--fw-semibold);
  letter-spacing: 0.1em; text-transform: uppercase;
  border-bottom: 2px solid var(--tho-red); font-family: var(--font-body);
}
.confirm__link:hover { color: #fff; }

/* ── FREUNDE EINLADEN (WhatsApp) ───────────────────────────── */
.invite {
  margin-top: 72px; background: var(--color-bg-subtle);
  padding: clamp(32px, 5vw, 64px); scroll-margin-top: 90px;
}
.invite__grid {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: clamp(32px, 4vw, 64px); align-items: center;
  max-width: 1200px; margin: 0 auto;
}
.invite__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 36px); font-weight: var(--fw-semibold);
  line-height: 1.1; letter-spacing: -0.01em; text-transform: uppercase;
  color: var(--color-fg); margin-bottom: var(--space-4); text-wrap: pretty;
}
.invite__text { font-size: 17px; line-height: var(--lh-relaxed); color: var(--tho-gray-700); margin-bottom: 28px; text-wrap: pretty; }
.invite__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.invite__actions .btn--primary { padding: 17px 40px; font-size: 14px; letter-spacing: var(--ls-wider); }
.invite__actions .btn--outline { padding: 15px 36px; font-size: 14px; }
.wa-preview { background: #E8E0D8; padding: clamp(24px, 3vw, 44px); display: flex; justify-content: center; }
.wa-bubble {
  background: #DCF8C6; border-radius: 12px; padding: 18px 20px;
  max-width: min(380px, 100%); min-width: 0; box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}
.wa-bubble p { font-size: 15px; line-height: 1.55; color: var(--color-fg); overflow-wrap: anywhere; white-space: pre-line; }
.wa-bubble__meta { text-align: right; margin-top: var(--space-2); font-size: 11px; color: #7A8A7A; }
/* Nachbau der Link-Vorschau, die WhatsApp aus den Open-Graph-Tags baut.
   Rein illustrativ (aria-hidden) — die echte Karte erzeugt WhatsApp. */
.wa-card { background: #D2EFBC; border-radius: 8px; overflow: hidden; margin-bottom: 8px; }
.wa-card__img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.wa-card__body { padding: 10px 12px 12px; }
.wa-card__title { font-size: 14px !important; font-weight: var(--fw-semibold); line-height: 1.35 !important; }
.wa-card__desc { font-size: 13px !important; line-height: 1.4 !important; color: #4A5A4A; margin-top: 3px; }
.wa-card__host { font-size: 12px !important; color: #7A8A7A; margin-top: 6px; }
.wa-bubble__url { font-size: 14px !important; color: #1F6FB2; }

/* ── TEASER ────────────────────────────────────────────────── */
.teaser__media { height: 600px; overflow: hidden; position: relative; }
.teaser__media img { width: 100%; height: 100%; object-fit: cover; }
.teaser__body { padding: 88px var(--content-gutter) 104px; display: flex; justify-content: center; }
.teaser__inner { max-width: 880px; width: 100%; text-align: center; }
.teaser__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 46px); font-weight: var(--fw-semibold);
  line-height: 1.08; letter-spacing: var(--ls-tight); text-transform: uppercase;
  color: var(--color-fg); margin-bottom: 48px; text-wrap: pretty;
}
.filiallist { display: flex; flex-direction: column; border-top: 1px solid var(--color-divider); margin: 0; }
.filiallist dd { margin: 0; }
.filiallist__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-6);
  padding: 18px 6px; border-bottom: 1px solid var(--color-divider);
}
.filiallist__name { font-size: 19px; font-weight: var(--fw-semibold); letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-fg); }
.filiallist__date { font-size: 17px; color: var(--color-fg-subtle); }

/* Original-Teaser (/filialen) — vollflächig klickbar */
.bigteaser {
  display: block; position: relative; height: 700px; overflow: hidden;
  background: var(--tho-black);
}
.bigteaser img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform 900ms var(--ease-out);
}
.bigteaser:hover img, .bigteaser:focus-visible img { transform: scale(1.04); }
.bigteaser::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,0.82) 0%, rgba(13,13,13,0.25) 55%, rgba(13,13,13,0.1) 100%);
  pointer-events: none;
}
.bigteaser__body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 0 var(--content-gutter) 80px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px;
  pointer-events: none;
}
/* Gleicher Schrägbalken wie im Hero — trägt auch auf hellen Bildstellen. */
.bigteaser__overline {
  background: var(--tho-red);
  transform: skewX(var(--skew));
  padding: 8px 22px;
}
.bigteaser__overline > span {
  display: inline-block;
  transform: skewX(calc(-1 * var(--skew)));
  font-size: 12px; font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest); text-transform: uppercase; color: #fff;
}
.bigteaser__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 56px); font-weight: var(--fw-semibold);
  line-height: 1.04; letter-spacing: var(--ls-tight); text-transform: uppercase;
  color: #fff; max-width: 1000px; text-wrap: pretty;
}
.bigteaser__cta {
  background: var(--tho-red); padding: 18px 46px;
  color: #fff; font-size: 15px; font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider); text-transform: uppercase;
  transition: background var(--duration-fast) var(--ease-out);
}
.bigteaser:hover .bigteaser__cta { background: var(--tho-red-dark); }

/* ── 404 ───────────────────────────────────────────────────── */
.notfound {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(72px, 14vh, 160px) var(--content-gutter) clamp(80px, 16vh, 180px);
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: var(--space-6);
}
/* Gleicher Schrägbalken wie im Hero — durchgängiges Motiv. */
.notfound__overline {
  background: var(--tho-red);
  transform: skewX(var(--skew));
  padding: 8px 22px;
}
.notfound__overline > span {
  display: inline-block;
  transform: skewX(calc(-1 * var(--skew)));
  font-size: 13px; font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest); text-transform: uppercase; color: #fff;
}
.notfound__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.5vw, 72px);
  font-weight: var(--fw-black);
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--color-fg);
  text-wrap: balance;
}
.notfound__text {
  font-size: var(--text-md); line-height: var(--lh-relaxed);
  color: var(--tho-gray-700); max-width: 46ch; text-wrap: pretty;
}
.notfound__actions {
  display: flex; gap: var(--space-4); flex-wrap: wrap; justify-content: center;
  margin-top: var(--space-2);
}
.notfound__link { margin-top: var(--space-2); }

/* ── FOOTER ────────────────────────────────────────────────── */
.site-footer { background: var(--tho-black); padding: 64px var(--content-gutter) 40px; margin-top: 96px; }
.site-footer__inner { max-width: var(--content-max); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.site-footer__logo { height: 34px; width: auto; filter: brightness(0) invert(1); }
.site-footer__links { display: flex; gap: 36px; flex-wrap: wrap; justify-content: center; }
.site-footer__links a {
  color: var(--tho-gray-400); font-size: 13px; font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider); text-transform: uppercase;
}
.site-footer__links a:hover { color: #fff; }
.site-footer__legal {
  width: 100%; border-top: 1px solid #222; padding-top: var(--space-6);
  text-align: center; color: #555; font-size: 12px;
}

/* ── SCROLL-REVEAL ─────────────────────────────────────────── */
/* Nur mit JS verstecken — ohne JS bleibt alles sichtbar. */
.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }

/* ── ANCHOR-OFFSET für Sticky-Nav ──────────────────────────── */
[id] { scroll-margin-top: 90px; }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .infogrid { grid-template-columns: 1fr 1fr; }
  .infogrid .infocard:last-child { grid-column: 1 / -1; }
}

@media (max-width: 920px) {
  :root { --content-gutter: var(--space-8); }
  .cards--2, .cards--3 { grid-template-columns: 1fr; gap: 48px; }
  .cards--2 .card--centered { width: 100%; }
  .canvas__grid, .canvas__row, .canvas__row--split, .invite__grid { grid-template-columns: 1fr; }
  .anchornav__logo { display: none !important; }
  .breaker { height: 420px; }
  .teaser__media { height: 420px; }
  .bigteaser { height: 520px; }
  /* Hochformat: der Hintergrund wird seitlich beschnitten, das Motiv
     gehört darum mittig. Die Textbausteine dürfen hier mehr Breite
     nehmen als auf dem Desktop, sonst wirken sie verloren. */
  .hero { aspect-ratio: 4 / 5; }
  /* Die Desktop-Geraden ergeben unter 920px zu kleine Werte — hier gelten
     eigene. Untertitel bewusst groesser als frueher (min 68px -> 86px).
     Die breiteste Sprachfassung (FR Filialen, Verhaeltnis 4.84) stoesst
     dabei an die 94vw-Grenze und wird per object-fit: contain proportional
     kleiner gezeigt (~73px auf 375px) — mehr gibt ihre Breite nicht her.
     Die schmaleren DE-Fassungen profitieren voll. */
  .hero__block--title { height: clamp(167px, 30vw, 432px); }
  .hero__block--sub   { height: clamp(86px, 14vw, 171px); max-width: 94vw; }

  /* Parallelogramm-Kacheln stapeln — schräge Kante bleibt Stilelement (§7) */
  .tiles { height: auto; display: flex; flex-direction: column; }
  .tile {
    position: relative; top: auto; left: auto; right: auto;
    width: 100%; height: 380px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 44px), 0 100%);
    margin-bottom: -44px;
  }
  .tile:last-child { clip-path: none; margin-bottom: 0; }
  .tile--left .tile__body, .tile--right .tile__body { padding: 0 var(--space-8) 44px; }
}

@media (max-width: 760px) {
  .infogrid { grid-template-columns: 1fr; gap: 40px; }
  .infogrid .infocard:last-child { grid-column: auto; }
  .btn-row { padding-top: 48px; }
  .cards { margin-top: 40px; }
  .agenda__items { gap: var(--space-8) var(--space-10); }
}

@media (max-width: 600px) {
  :root { --content-gutter: var(--space-5); }
  .site-header { padding: 10px var(--space-5); }
  .btn--primary { padding: 18px 34px; font-size: 15px; }
  .intro { padding: var(--space-16) var(--space-5) var(--space-20); }
  .section--top { padding-top: var(--space-16); }
  .teaser__body { padding: 56px var(--space-5) 72px; }
  .tabs { gap: 12px; }
  .tab { padding: 14px 22px; }
  .tab__key { font-size: 16px; }
  .tab__meta { font-size: 14px; }
  .canvas { padding: var(--space-6) var(--space-5); }
  /* Der Schrägbalken bleibt Akzent am Rand statt Fläche über dem Text. */
  .canvas::before { width: 110px; right: -50px; }
  .agenda { margin-top: var(--space-8); }
  .invite { margin-top: 48px; }
  .site-footer { padding: 48px var(--space-5) 32px; }
  .hero-fade-out { height: 160px; }
  .breaker { height: 260px; }
  /* Auf dem Handy umbrechen die Anker-Buttons ohnehin auf zwei Zeilen —
     dort bleiben sie in der kompakten Höhe, sonst frisst die Sticky-Nav
     einen Fünftel des Bildschirms. Die grössere Höhe gilt dem Desktop. */
  .anchornav__link { padding: 11px 26px; font-size: 13px; }
}

/* ── MOTION-PRÄFERENZ ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .breaker img { transform: none !important; }
}

/* ── PRINT ─────────────────────────────────────────────────── */
@media print {
  .anchornav, .lang, .hero__fade, .invite { display: none !important; }
  .canvas { background: #fff; color: #000; }
}
