/*
Theme Name: Martino Cycling
Theme URI: https://martino-cycling.at
Author: Robert Plank
Description: Block-Theme fuer Martino Cycling — Fahrradwerkstatt & Fachgeschaeft in Salzburg. High-End Boutique-Look: dunkler Grund, Rosso/Verde aus dem Logo, Big Shoulders Versal-Headlines.
Version: 1.14.1
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: martino
*/

/* ══════════════════════════════════════════════════════════════════════════
   1. DESIGN-TOKENS
   Aus der Next.js-Referenz uebernommen (tailwind.config.ts).
   Die Rot-Toene sind KONTRASTGEPRUEFT — bitte nicht "vereinfachen":
     --rosso       Logo-Rot. Auf Dunkel nur 2,57:1 → NUR Flaechen, Text darauf weiss (7,67:1).
     --rosso-hover Hellere Flaeche, weiss darauf 5,78:1.
     --rosso-text  EINZIGER Rotton, der als Text auf Ink zulaessig ist (5,03:1).
   ══════════════════════════════════════════════════════════════════════════ */
:root {
  color-scheme: dark;

  --ink-900: #0b0b0c;
  --ink-800: #0f1012;
  --ink-700: #16171a;
  --ink-600: #20232a;
  --ink-500: #2a2d34;

  --cream: #ece9e2;
  --steel: #8a8f99;

  --rosso: #a90b0b;
  --rosso-hover: #c81c14;
  --rosso-text: #e5484d;
  --verde: #1d9706;
  /* Italienische Trikolore (gruen-weiss-rot), gleiche Drittel. Weiss bewusst
     rein (#fff) statt --cream, damit die Mittelbande auch auf der hellen
     Bikes-Sektion (Cream-Grund) sichtbar bleibt. Ueberall via var() nutzen. */
  --tricolore-grad: linear-gradient(to right,
    var(--verde) 0 33.333%,
    #fff 33.333% 66.666%,
    var(--rosso) 66.666% 100%);

  --f-display: "Big Shoulders", "Arial Narrow", sans-serif;
  --f-body: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;

  --wrap: 1320px;
  --pad: 1.5rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 768px) {
  :root { --pad: 2.5rem; }
}
@media (min-width: 1024px) {
  :root { --pad: 3rem; }
}

/* ══════════════════════════════════════════════════════════════════════════
   2. BASIS
   ══════════════════════════════════════════════════════════════════════════ */

/* WordPress bringt keinen border-box-Reset fuer eigenes Markup mit (Tailwind
   tat das in der Referenz via Preflight). Ohne ihn addiert sich bei
   .wrap { width:100%; padding-inline: var(--pad) } das Padding OBEN DRAUF —
   jeder Wrap wird 2x --pad zu breit und schiebt Inhalt rechts aus dem Bild. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--cream);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: var(--rosso);
  color: #fff;
}

/* Dezente dunkle Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink-900); }
::-webkit-scrollbar-thumb { background: var(--ink-600); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a41; }

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

/* ══════════════════════════════════════════════════════════════════════════
   3. LAYOUT
   ══════════════════════════════════════════════════════════════════════════ */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* Standard-Abstand einer Sektion (aus py-28 / md:py-36) */
.section {
  padding-block: 7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  scroll-margin-top: 6rem;
}
/* Section-Rhythmus auf Unterseiten: jede zweite Sektion dezent Anthrazit statt
   Schwarz -> textlastige Seiten bekommen Struktur ohne harte Trenner. Greift NUR
   auf Unterseiten (die haben .page-hero); die Startseite (.hero) bleibt schwarz.
   Foto-/Cover-Kacheln liegen als eigene Ebene drueber -> unberuehrt.
   :not(.section--light): helle Sektionen (z. B. Radgalerie auf /martino-bikes)
   duerfen nicht vom Rhythmus auf Anthrazit ueberschrieben werden. */
.page-hero ~ section.section:nth-of-type(even):not(.section--light) { background: #17181c; }
@media (min-width: 768px) {
  .section { padding-block: 9rem; }
}

/* ══════════════════════════════════════════════════════════════════════════
   4. TYPOGRAFIE
   ══════════════════════════════════════════════════════════════════════════ */

/* Headline im Duktus der Wortmarke: fett, schmal, Versalien.
   Leicht POSITIVES Tracking — schmale Versalien kleben sonst zusammen.
   Zeilenabstand bewusst > 1: Versalien haben keine Unterlaengen, bei 0.94
   klebten mehrzeilige Headlines aufeinander. Grosse Grade brauchen relativ
   weniger Luft als kleine — daher nach unten hin steigende Werte. */
.headline,
h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.12;
  letter-spacing: 0.01em;
  text-wrap: balance;
  margin: 0;
}

h1 { font-size: clamp(3.5rem, 9vw, 6.5rem); line-height: 1.06; }
h2 { font-size: clamp(2.5rem, 5vw, 3.75rem); line-height: 1.08; }
h3 { font-size: clamp(1.5rem, 2.5vw, 1.875rem); line-height: 1.15; }

p { margin: 0; }

/* Fliesstext gedaempft — wie text-cream/70 in der Referenz */
.lede {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(236, 233, 226, 0.7);
  max-width: 34rem;
}

.muted { color: rgba(236, 233, 226, 0.65); }

/* Technisches Sektions-Label (Mono). Kein dekoratives 01/02.
   Der Tricolore-Strich kommt als ::before — NICHT als <span> im Text.
   Grund: Gutenberg strippt Klassen an Inline-Spans beim Bearbeiten.
   So bleibt das Markenzeichen erhalten und Luca tippt einfach Text. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--steel);
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: "";
  flex: none;
  height: 3px;
  width: 3rem;
  background: var(--tricolore-grad);
}

/* Mono-Datenwert mit tabellarischen Ziffern — Preise, Messwerte, Specs. */
.data {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.01em;
  color: var(--cream);
}

/* ══════════════════════════════════════════════════════════════════════════
   5. TRICOLORE — das Markenzeichen aus dem Logo
   Rein grafisch (kein Text) → die Logo-Farben sind hier kontrast-unkritisch.
   ══════════════════════════════════════════════════════════════════════════ */
.tricolore {
  display: inline-block;
  height: 3px;
  width: 3rem;
  flex: none;
  background: var(--tricolore-grad);
}

/* ══════════════════════════════════════════════════════════════════════════
   6. BUTTONS — eckig (Praezision statt Pillenform), Touch-Target >= 48px
   ══════════════════════════════════════════════════════════════════════════ */
.btn-primary,
.btn-ghost,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.875rem 1.75rem;
  font-family: var(--f-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  text-decoration: none;
  border-radius: 0;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.btn-primary,
.wp-block-button__link {
  background: var(--rosso);
  color: #fff;
  border: 1px solid var(--rosso);
}
.btn-primary:hover,
.wp-block-button__link:hover {
  background: var(--rosso-hover);
  border-color: var(--rosso-hover);
  color: #fff;
}

.btn-ghost,
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--ink-500);
}
.btn-ghost:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: rgba(236, 233, 226, 0.7);
  background: rgba(255, 255, 255, 0.03);
}

/* Sichtbarer Tastatur-Fokus (Guardrail — nicht entfernen) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.wp-block-button__link:focus-visible {
  outline: 2px solid var(--rosso-text);
  outline-offset: 2px;
}

/* ══════════════════════════════════════════════════════════════════════════
   7. FLAECHEN-UTILITIES (aus der Referenz)
   ══════════════════════════════════════════════════════════════════════════ */

/* Feines Blueprint-Raster — Zeichentisch-Anmutung des Framebuildings */
.blueprint-grid {
  background-image:
    linear-gradient(to right, rgba(138, 143, 153, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(138, 143, 153, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
}

.vignette {
  background: radial-gradient(
    120% 90% at 50% 0%,
    transparent 0%,
    rgba(11, 11, 12, 0.2) 55%,
    rgba(11, 11, 12, 0.92) 100%
  );
}

.grain {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.hairline { border: 1px solid var(--ink-500); }

/* ══════════════════════════════════════════════════════════════════════════
   8. HEADER — fixe Navigation
   WICHTIG: Header NICHT im Site-Editor bearbeiten (erzeugt DB-Version,
   die parts/header.html aushebelt). Aenderungen immer hier + in der Datei.
   ══════════════════════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.5s, border-color 0.5s, backdrop-filter 0.5s;
}
.site-header.is-scrolled {
  background: rgba(11, 11, 12, 0.8);
  backdrop-filter: blur(16px);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.site-logo img,
.site-logo svg {
  height: 1.75rem;
  width: auto;
  display: block;
}
@media (min-width: 768px) {
  .site-logo img { height: 2rem; }
}

.nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 1024px) {
  .nav { display: flex; }
}

.nav a {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  color: rgba(236, 233, 226, 0.7);
  text-decoration: none;
  transition: color 0.3s;
}
.nav a:hover { color: var(--cream); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.375rem;
  height: 1px;
  width: 0;
  background: var(--rosso-text);
  transition: width 0.3s;
}
.nav a:hover::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.header-actions .btn-primary { display: none; }
@media (min-width: 1024px) {
  .header-actions .btn-primary { display: inline-flex; }
}

/* Icon-Button (Burger, Warenkorb) — 44px Touch-Target */
.icon-btn {
  display: grid;
  place-items: center;
  height: 2.75rem;
  width: 2.75rem;
  border: 1px solid var(--ink-500);
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  transition: border-color 0.2s;
}
.icon-btn:hover { border-color: rgba(236, 233, 226, 0.6); }

.nav-toggle { display: grid; }
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
}

/* ── Mobiles Overlay-Menue ─────────────────────────────────────────────────
   FALLE (aus dem Preschl-Projekt): backdrop-filter erzeugt einen
   containing block fuer position:fixed → mit inset:0 waere das Overlay nur
   so hoch wie der Header. Deshalb explizit 100vw / 100dvh.
   ─────────────────────────────────────────────────────────────────────── */
.mobile-nav {
  position: fixed;
  top: 5rem;
  left: 0;
  width: 100vw;
  height: calc(100dvh - 5rem);
  background: rgba(11, 11, 12, 0.97);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem var(--pad);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.5rem);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.mobile-nav[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
@media (min-width: 1024px) {
  .mobile-nav { display: none; }
}

.mobile-nav ul {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}
.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  font-family: var(--f-display);
  font-size: 1.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: rgba(236, 233, 226, 0.9);
  text-decoration: none;
}
.mobile-nav a:hover { color: var(--rosso-text); }

/* ══════════════════════════════════════════════════════════════════════════
   9. FOOTER
   ══════════════════════════════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(15, 16, 18, 0.4);
  padding-block: 4rem;
}
.site-footer__top {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .site-footer__top { flex-direction: row; }
}
.site-footer__logo img { height: 6rem; width: auto; }

.site-footer a {
  color: rgba(236, 233, 226, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer a:hover { color: var(--cream); }

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.75rem;
  color: rgba(236, 233, 226, 0.4);
}
@media (min-width: 640px) {
  .site-footer__bottom { flex-direction: row; }
}

/* Der Inhalt startet unter dem fixen Header */
.site-main { padding-top: 5rem; }
.site-main.is-flush { padding-top: 0; } /* fuer Hero, der unter den Header laeuft */

/* ══════════════════════════════════════════════════════════════════════════
   10. SCROLL-REVEALS (ersetzen Framer Motion)
   Startzustand hier, Animation via GSAP in assets/js/main.js.
   ══════════════════════════════════════════════════════════════════════════ */
[data-reveal] { will-change: transform, opacity; }

/* Kein JS / reduced motion → Inhalt trotzdem sichtbar (kein leerer Screen) */
.no-js [data-reveal] { opacity: 1 !important; transform: none !important; }

/* ══════════════════════════════════════════════════════════════════════════
   11. REDUCED MOTION (Guardrail)
   ══════════════════════════════════════════════════════════════════════════ */
@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; }
}

/* ══════════════════════════════════════════════════════════════════════════
   12. SEKTIONEN — Layouts der Patterns
   Uebersetzt aus den React-Komponenten der Referenz (referenz-nextjs/components).
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Sektionskopf (Eyebrow + Headline) ─────────────────────────────────── */
.sec-head { max-width: 42rem; margin-bottom: 4rem; }
.sec-head--split {
  display: flex; flex-direction: column; gap: 1.5rem;
  align-items: flex-start; justify-content: space-between;
}
@media (min-width: 768px) {
  .sec-head--split { flex-direction: row; align-items: flex-end; max-width: none; }
}

/* Zweispaltiges Split-Layout (Ueber mich / Kontakt) */
.split { display: grid; gap: 4rem; }
@media (min-width: 1024px) {
  .split { grid-template-columns: 5fr 6fr; gap: 3rem; }
}

/* Leasingrechner-Slot (Bikeleasing): der Linexo-Rechner ist ein weisses,
   eigenstaendiges Widget -> rechts im Split, oben ausgerichtet (nicht gestreckt),
   mit Haarlinien-Rahmen, damit es auf dem dunklen Grund sauber sitzt. */
.rechner { align-self: start; border: 1px solid var(--ink-500); background: #fff; }
.rechner__embed {
  color: var(--ink-900); min-height: 320px; padding: 2.5rem 1.5rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .5rem; text-align: center;
}
.rechner__embed strong {
  font-family: var(--f-display); font-weight: 700; font-size: 1.25rem;
  text-transform: uppercase; letter-spacing: .02em;
}
.rechner__embed span { font-family: var(--f-mono); font-size: .8rem; color: rgba(11,11,12,.55); }

/* BLS-Leasingrechner: zwei Rechner (Angestellte / Selbstaendige) nebeneinander,
   jeweils im weissen Rahmen. Mobil gestapelt. */
.rechner-grid { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 900px) { .rechner-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.rechner-label {
  font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase;
  letter-spacing: .22em; color: var(--steel); margin: 0 0 .75rem;
}
.rechner-card {
  background: #fff; border: 1px solid var(--ink-500);
  min-height: 320px; overflow: hidden;
  /* Der BLS-Rechner setzt fuer manche Texte keine eigene Farbe/Schrift und erbt
     sonst die helle Theme-Textfarbe (cream) + schmale Display-Schrift -> auf
     weissem Grund unleserlich. Innen auf dunkle, neutrale Schrift zwingen
     (vererbte color/font-family wirken auch in die Web-Component hinein). */
  color: #1a1a1a;
  font-family: var(--f-body);
}
.rechner-card leasing-calculator { display: block; width: 100%; color: #1a1a1a; font-family: var(--f-body); }

/* ── Seitenkopf Unterseiten (wiederverwendbar: Werkstatt, Verkauf, …) ────
   Kleinerer Cover als der Home-Hero. Text sitzt unten; ein zusaetzlicher
   Verlauf sichert Lesbarkeit, falls das Foto oben hell ist. Der Inhalt wird
   ins 1320er-Raster gezwungen (WP-Cover-Layout gibt sonst max-width:100%,
   siehe Home-Hero) -> linksbuendig zu allen Sektionen darunter. */
.page-hero.wp-block-cover { min-height: 56svh; padding: 0; align-items: flex-end; }
.page-hero .wp-block-cover__inner-container { width: 100%; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,11,12,.92) 0%, rgba(11,11,12,.35) 55%, rgba(11,11,12,.15) 100%);
  pointer-events: none; z-index: 1;
}
.page-hero .page-hero__inner {
  position: relative; z-index: 2;
  max-width: var(--wrap); margin-inline: auto;
  padding-top: 7rem; padding-bottom: 3.5rem;
}
@media (min-width: 768px) { .page-hero .page-hero__inner { padding-top: 9rem; padding-bottom: 4.5rem; } }
/* Kleiner als der Home-Hero (Hierarchie) und ohne Silbentrennung, damit lange
   Komposita wie FAHRRADWERKSTATT nicht mit Trennstrich mitten im Wort brechen. */
.page-hero h1 { font-size: clamp(2rem, 6vw, 4.25rem); max-width: 22ch; margin-bottom: 1.25rem; hyphens: none; }
.page-hero .lede { margin-bottom: 2rem; }
.page-hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ── Personen-Story: Portrait + Text nebeneinander (Über mich) ─────────────
   Portrait im Rahmen mit Passmarken (wie der Home-Hero-Bildrahmen). Sitzt in
   einer normalen .section — daher KEIN eigenes vertikales Padding. */
.lead { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) {
  .lead { grid-template-columns: 6fr 5fr; gap: 4rem; }
}
.lead__text h2 { margin-bottom: 1.5rem; hyphens: none; }
.lead__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.lead__portrait { position: relative; margin: 0; }
.lead__portrait img {
  display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border: 1px solid rgba(42,45,52,.7);
}
.lead__portrait::before, .lead__portrait::after {
  content: ""; position: absolute; height: 1rem; width: 1rem; border: 0 solid var(--rosso); z-index: 2;
}
.lead__portrait::before { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.lead__portrait::after  { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
/* Auf Mobil das Portrait ZUERST, dann Text (Order im Markup: Text zuerst fuer SEO). */
@media (max-width: 899px) {
  .lead__portrait { order: -1; max-width: 22rem; }
}

/* ── Karten-Raster (3 Vorteile/Leistungen, wiederverwendbar) ───────────────
   Haarlinien-Raster wie das Bento. Jede Karte traegt oben den Tricolore-Strich
   als ::before (Markenzeichen, Gutenberg-sicher — kein <span> noetig). */
.cards {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: rgba(42,45,52,.6); border: 1px solid rgba(42,45,52,.6);
}
@media (min-width: 768px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .cards.cards--2 { grid-template-columns: repeat(2, 1fr); } }
.cards > * { background: var(--ink-900); padding: 2rem; min-width: 0; }
.card::before {
  content: ""; display: block; width: 2.5rem; height: 3px; margin-bottom: 1.25rem;
  background: var(--tricolore-grad);
}
.card h3 { margin-bottom: .75rem; }
.card p { color: rgba(236,233,226,.7); }

/* Bild-Karte: helles Foto oben (kein Overlay) + Text darunter. Hellt die
   Sektion auf und behaelt den vollen Text. Ersetzt den Tricolore-Strich. */
.cards .card--img { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.card--img::before { content: none; }
.card--img .card__img { margin: 0; }
.card--img .card__img img {
  display: block; width: 100%; height: 220px; object-fit: cover; object-position: center;
  transition: transform .7s var(--ease);
}
.card--img:hover .card__img img { transform: scale(1.04); }
.card--img .card__body { padding: 1.75rem 2rem 2rem; }
.card--img .card__body h3 { margin-bottom: .75rem; }
.card--img .card__body p { color: rgba(236,233,226,.7); }

/* ── Zitat (Luca-O-Ton, wiederverwendbar) ─────────────────────────────── */
.quote { max-width: 52rem; margin-inline: auto; text-align: center; border: 0; padding: 0; }
.quote p {
  font-size: clamp(1.375rem, 3vw, 2rem); line-height: 1.4; color: var(--cream);
}
.quote cite, .quote__by {
  display: block; margin-top: 1.5rem; font-family: var(--f-mono); font-style: normal;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--rosso-text);
}

/* ── Abschluss-CTA (zentriertes Band, wiederverwendbar) ────────────────── */
.cta-band { text-align: center; }
.cta-band .eyebrow { justify-content: center; }
.cta-band h2 { margin-bottom: 1.5rem; }
.cta-band .lede { margin-inline: auto; margin-bottom: 2.5rem; }
.cta-band__buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ── Spec-Sheet (Mono-Tabelle: Label links, Wert rechts) ───────────────── */
.spec { margin: 3rem 0 0; border-top: 1px solid rgba(42,45,52,.6); }
.spec > * {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem;
  padding: 1rem 0; border-bottom: 1px solid rgba(42,45,52,.6);
}
.spec dt, .spec .label {
  font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase;
  letter-spacing: .22em; color: var(--steel); margin: 0;
}
.spec dd, .spec .value {
  font-family: var(--f-mono); font-variant-numeric: tabular-nums;
  color: var(--cream); margin: 0;
}

/* ── BENTO — asymmetrisches 12-Spalten-Raster ──────────────────────────── */
.bento { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 1024px) {
  .bento {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 235px;
  }
  .tile--feature { grid-column: span 7; grid-row: span 2; }
  .tile--m       { grid-column: span 5; }
  .tile--half    { grid-column: span 6; }
  .tile--wide    { grid-column: span 12; }
  /* Wie tile--m, aber 2 Reihen hoch — fuellt die rechte Spalte neben dem
     tile--feature (7x2), wenn nur EINE Kachel daneben steht (4-Kachel-Bento). */
  .tile--tall    { grid-column: span 5; grid-row: span 2; }
}
/* Werkstatt-Bento: Kacheln mit Haarlinien-Naht statt Abstand */
.bento--seam { gap: 1px; background: rgba(42,45,52,.6); border: 1px solid rgba(42,45,52,.6); }
@media (min-width: 1024px) { .bento--seam { grid-auto-rows: minmax(230px, auto); } }
.bento--seam .tile { background: var(--ink-900); }

.tile { position: relative; overflow: hidden; }

/* ── Leistungs-Kachel (Werkstatt) ──────────────────────────────────────── */
.svc {
  display: flex; flex-direction: column; padding: 2rem;
  transition: background-color .3s;
}
.svc:hover { background: var(--ink-800); }
.tile--feature .svc { padding: 2.5rem; }

.svc__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.75rem; }
.svc__icon {
  display: grid; place-items: center; height: 3rem; width: 3rem;
  border: 1px solid rgba(42,45,52,.7); background: var(--ink-800); color: var(--cream);
  transition: color .3s;
}
.svc:hover .svc__icon { color: var(--rosso-text); }
.svc__tag {
  font-family: var(--f-mono); font-size: .65rem; text-transform: uppercase;
  letter-spacing: .22em; color: var(--steel);
}
.svc h3 { margin-bottom: .75rem; }
.svc__list {
  list-style: none; margin: auto 0 0; padding: 1.5rem 0 0;
  border-top: 1px solid rgba(42,45,52,.6);
  display: grid; gap: .625rem; font-size: .875rem; color: rgba(236,233,226,.55);
}
.tile--feature .svc__list { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .tile--feature .svc__list { grid-template-columns: 1fr 1fr; }
}
.svc__list li { display: flex; align-items: center; gap: .75rem; }
.svc__list li::before {
  content: ""; height: 1px; width: .75rem; background: var(--rosso-text); flex: none;
}

/* ── Bild-Kacheln (Martino Bikes) — Cover-Bloecke ──────────────────────── */
.tile--img .wp-block-cover,
.tile.wp-block-cover { min-height: 260px; height: 100%; border: 1px solid rgba(42,45,52,.6); }
.tile.wp-block-cover .wp-block-cover__image-background { transition: transform .7s var(--ease); }
.tile.wp-block-cover:hover .wp-block-cover__image-background { transform: scale(1.05); }
.tile.wp-block-cover .wp-block-cover__inner-container {
  margin-top: auto; /* Bildunterschrift sitzt unten */
}
.build__brand {
  font-family: var(--f-mono); font-size: .65rem; text-transform: uppercase;
  letter-spacing: .22em; color: var(--rosso-text); margin-bottom: .375rem;
}
.build__spec {
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .02em;
  color: rgba(236,233,226,.55); margin-top: .25rem;
}

/* ── Marken — einheitliche Cover-Kacheln (ink-700), Inhalt zentriert ─────── */
.brands { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .brands { grid-template-columns: repeat(4, 1fr); } }

/* Jede Marke ist ein wp:cover mit Volltonfarbe. Rahmen + Hover wie die anderen
   Kacheln. Grid-Stretch macht alle Kacheln gleich hoch. */
.brand.wp-block-cover {
  min-height: 220px; padding: 2rem 1.25rem;
  border: 1px solid var(--ink-500);
  transition: border-color .3s;
}
.brand.wp-block-cover:hover { border-color: rgba(169,11,11,.5); }
.brand .wp-block-cover__inner-container {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.25rem; width: 100%; text-align: center;
}
.brand__n {
  font-family: var(--f-mono); font-size: .65rem; text-transform: uppercase;
  letter-spacing: .22em; color: var(--steel); margin: 0;
}
.brand__note {
  font-family: var(--f-mono); font-size: .75rem; color: rgba(236,233,226,.55); margin: 0;
}
/* Logo mittig (durch align-items:center des inner-container), auf einheitliche
   Bounding-Box skaliert. KEIN display:flex hier — das wuerde das Conway-SVG
   (nur viewBox, keine feste Groesse) auf 0 kollabieren lassen. */
.brand__logo { margin: 0; }
.brand__logo img {
  height: 3.5rem; width: auto; max-width: 10rem;
  object-fit: contain; opacity: .9; transition: opacity .3s;
}
.brand.wp-block-cover:hover .brand__logo img { opacity: 1; }

/* Radtypen-Chips */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 2rem; }
.chip {
  border: 1px solid rgba(42,45,52,.6); padding: .375rem .75rem;
  font-size: .875rem; color: rgba(236,233,226,.7);
}

/* Bikeleasing-Band */
.leasing {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
  gap: 2rem; margin-top: 3rem; padding: 2rem;
  border: 1px solid rgba(169,11,11,.3); background: rgba(169,11,11,.04);
}
@media (min-width: 768px) {
  .leasing { flex-direction: row; align-items: center; padding: 2.5rem; }
}

/* ── Kontakt ───────────────────────────────────────────────────────────── */
.contact-list { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
.contact-list li { display: flex; align-items: center; gap: 1rem; color: rgba(236,233,226,.7); }
.contact-list .ico {
  display: grid; place-items: center; height: 2.5rem; width: 2.5rem; flex: none;
  border: 1px solid rgba(42,45,52,.6); background: var(--ink-800); color: var(--rosso-text);
}
.contact-list a { color: inherit; text-decoration: none; }
.contact-list a:hover { color: var(--cream); }

.form-card { border: 1px solid rgba(42,45,52,.6); background: rgba(15,16,18,.4); padding: 1.75rem; }
@media (min-width: 768px) { .form-card { padding: 2.25rem; } }

/* ── Kontaktformular-Felder (plugin-agnostisch) ─────────────────────────────
   Greift auf die tatsaechlichen HTML-Elemente INNERHALB der .form-card, nicht
   auf plugin-spezifische Klassen -> funktioniert mit Fluent Forms, Contact
   Form 7, WPForms usw. Dunkle Felder im Theme-Look, rosso Fokus, eckig. */
.form-card label {
  display: block; margin-bottom: .4rem;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--steel);
}
.form-card input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
.form-card textarea,
.form-card select {
  width: 100%; box-sizing: border-box; margin: 0;
  padding: .8rem .9rem;
  background: var(--ink-900); color: var(--cream);
  border: 1px solid rgba(42,45,52,.8); border-radius: 0;
  font-family: var(--f-body); font-size: 1rem; line-height: 1.4;
  transition: border-color .2s;
}
.form-card textarea { min-height: 8rem; resize: vertical; }
.form-card input:focus, .form-card textarea:focus, .form-card select:focus {
  outline: none; border-color: var(--rosso);
}
.form-card ::placeholder { color: rgba(236,233,226,.4); }
/* Abstand zwischen den Feld-Gruppen (viele Plugins wrappen jedes Feld in ein div) */
.form-card form > div,
.form-card form > p { margin-bottom: 1.1rem; }
/* DSGVO-Checkbox + Label inline und klein */
.form-card input[type="checkbox"], .form-card input[type="radio"] { accent-color: var(--rosso); margin-right: .5rem; }
.form-card label:has(input[type="checkbox"]),
.form-card label:has(input[type="radio"]) {
  display: flex; align-items: flex-start; gap: .25rem;
  font-family: var(--f-body); font-size: .8rem; letter-spacing: 0;
  text-transform: none; color: rgba(236,233,226,.72);
}
/* Absende-Button wie .btn-primary */
.form-card input[type="submit"],
.form-card button[type="submit"],
.form-card button:not([type]) {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .875rem 1.75rem; margin-top: .25rem;
  background: var(--rosso); color: #fff; border: 1px solid var(--rosso);
  border-radius: 0; cursor: pointer;
  font-family: var(--f-body); font-size: .875rem; font-weight: 500; letter-spacing: .025em;
  transition: background-color .2s, border-color .2s;
}
.form-card input[type="submit"]:hover,
.form-card button[type="submit"]:hover,
.form-card button:not([type]):hover { background: var(--rosso-hover); border-color: var(--rosso-hover); }
/* Fluent Forms bringt fuer den Submit-Button eigenes (blaues) CSS mit. Dessen
   Standard-Regeln sind klassenbasiert -> mit !important sicher ueberschreiben.
   (Falls Luca im Fluent-Forms-Styler eine eigene Farbe setzt, gewinnt die ID-
   Regel — dann dort einfach #a90b0b eintragen.) */
.form-card .ff-btn-submit,
.form-card .fluentform button[type="submit"],
.form-card .fluentform .ff-btn,
.form-card button.ff-btn {
  background-color: var(--rosso) !important;
  border-color: var(--rosso) !important;
  color: #fff !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.form-card .ff-btn-submit:hover,
.form-card .fluentform button[type="submit"]:hover,
.form-card button.ff-btn:hover {
  background-color: var(--rosso-hover) !important;
  border-color: var(--rosso-hover) !important;
}
/* Validierungs-/Statusmeldungen */
.form-card .error, .form-card [role="alert"],
.form-card .wpcf7-not-valid-tip, .form-card .fluent_form_error,
.form-card .fluentform .error { color: var(--rosso-text); font-size: .8rem; }

/* Eingebettete Google-Karte (Kontaktseite): Haarlinien-Rahmen wie die anderen
   Kacheln. Ein leichter Graustich + reduzierte Helligkeit betten die (helle)
   Karte in den dunklen Grund ein; beim Hover kehrt sie zur vollen Farbe zurueck. */
.map-embed { margin-top: 3rem; border: 1px solid rgba(42,45,52,.6); overflow: hidden; line-height: 0; }
.map-embed iframe {
  display: block; width: 100%; height: 440px; border: 0;
  filter: grayscale(0.35) brightness(0.92) contrast(1.05);
  transition: filter .4s var(--ease);
}
.map-embed:hover iframe { filter: none; }
@media (max-width: 600px) { .map-embed iframe { height: 340px; } }

/* ── Hero ──────────────────────────────────────────────────────────────── */
/* Der Cover zentriert vertikal. Ein groesseres padding-top als padding-bottom
   verschiebt den Inhalt daher um die halbe Differenz NACH UNTEN — nicht nur
   unter den Header. Deshalb bleiben die beiden Werte hier gleich. */
.hero.wp-block-cover { min-height: 100svh; padding: 0; align-items: center; }
.hero .wp-block-cover__inner-container { width: 100%; }
.hero__grid { display: grid; gap: 3rem; align-items: center; padding-top: 6rem; padding-bottom: 6rem; }

/* WordPress' Cover-Layout gibt der Gruppe im inner-container max-width:100%
   und haengt damit meine .wrap-Regel (max-width: var(--wrap)) aus — der
   Hero-Inhalt lief voll breit, waehrend alle Sektionen darunter im 1320er-
   Raster zentriert sind. Hier per hoeherer Spezifitaet wieder ins gleiche
   Raster ziehen, damit Hero-Text linksbuendig zu den Sektionen sitzt.
   Das Hintergrundbild (alignfull) bleibt davon unberuehrt voll breit. */
.hero .hero__grid { max-width: var(--wrap); margin-inline: auto; }

/* Mobil ist die Headline so hoch, dass zentrierter Satz den Text weit unter die
   Navbar drueckt. Hier daher oben ausrichten: fester Abstand zum Header (5rem),
   der Rest der Flaeche bleibt Bild. */
@media (max-width: 1023px) {
  .hero.wp-block-cover { align-items: flex-start; }
  .hero__grid { gap: 2rem; padding-top: 7rem; padding-bottom: 3rem; }
}
@media (min-width: 1024px) {
  /* Text nach rechts: einspaltig, an das rechte Ende des 1320er-Rasters
     geschoben. Motiv (Person + Rad) bleibt links frei, der Text liegt ueber
     der ruhigeren Betonwand rechts. */
  .hero__grid { grid-template-columns: minmax(0, 46rem); justify-content: end; }
}
.hero h1 { margin-bottom: 2rem; }
.hero .accent { color: var(--rosso-text); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }

/* Vollflaechiges Hero-Foto (Veloce vor Betonwand): der Text steht rechts, Motiv
   (Person + Rad) links. Statt des flachen has-background-dim-Overlays ein
   gerichteter Verlauf: rechts kraeftig abgedunkelt fuer die Textlesbarkeit,
   links fast klar, damit Fahrerin und Rad frei sichtbar bleiben. Der Selektor >
   schlaegt die WP-Core-Dim-Klassen (.has-background-dim-60) an Spezifitaet. */
.hero > .wp-block-cover__image-background { object-position: 35% center; }
.hero > .wp-block-cover__background {
  opacity: 1;
  background: linear-gradient(100deg,
    rgba(11,11,12,.15) 0%,
    rgba(11,11,12,.34) 40%,
    rgba(11,11,12,.72) 68%,
    rgba(11,11,12,.90) 100%);
}
@media (max-width: 1023px) {
  /* Mobil stapelt das Grid (Text oben-links) -> von oben abdunkeln. */
  .hero > .wp-block-cover__background {
    background: linear-gradient(160deg,
      rgba(11,11,12,.90) 0%,
      rgba(11,11,12,.60) 45%,
      rgba(11,11,12,.35) 100%);
  }
}

/* Tricolore-Rennrad ueber der Headline — das Marken-Motiv aus dem Logo.
   Kommt bewusst per CSS (::before der H1), NICHT als wp:image im Pattern:
   Der Hero-Inhalt ist beim Einfuegen in die Seite eingefroren (Gutenberg
   kopiert Pattern-Markup in den post_content) — Aenderungen an hero.php
   erreichen die Live-Seite nicht mehr. Als reines Marken-Dekor (kein von Luca
   austauschbarer Inhalt) ist der CSS-Weg hier legitim, genau wie beim
   Tricolore-Strich und der .eyebrow. Relativer Pfad -> bricht nicht unter /test.
   Hoehe per svh gedeckelt, damit das Rad die 100svh-Rechnung nicht sprengt. */
.hero h1::before {
  content: "";
  display: block;
  width: min(100%, 26rem);
  aspect-ratio: 890 / 245;
  max-height: 16svh;
  margin: 0 0 1rem -0.25rem;
  background: url(assets/img/foto/hero/hero-rad-tricolore.webp) left center / contain no-repeat;
}
@media (min-width: 1024px) {
  .hero h1::before { width: min(100%, 32rem); max-height: 11svh; margin-bottom: min(1rem, 1.5svh); }
}

/* Ab Desktop soll der Hero auf EINE Bildschirmhoehe passen (min-height:100svh).
   Der Engpass ist die Headline: mit reinem vw-clamp wird sie auf flachen
   Laptops (1440x800) so hoch, dass CTA und Bildrahmen unter die Falz rutschen.
   Deshalb skaliert sie hier auch mit der VIEWPORT-HOEHE (svh) — min() nimmt,
   was zuerst limitiert. Gleiches Prinzip fuer die Abstaende. */
@media (min-width: 1024px) {
  .hero h1 { font-size: clamp(2.75rem, min(6vw, 8svh), 5.5rem); margin-bottom: min(2rem, 3svh); }
  .hero .lede { font-size: min(1.125rem, 2.2svh); }
  .hero__cta { margin-top: min(2.5rem, 4svh); }
  .hero__grid { padding-top: min(6rem, 8svh); padding-bottom: min(6rem, 8svh); }
}

/* Bildrahmen mit Passmarken (technische Zeichnung) */
.hero__frame { position: relative; display: none; }
@media (min-width: 1024px) { .hero__frame { display: block; } }
.hero__frame .wp-block-image { margin: 0; border: 1px solid rgba(42,45,52,.7); }
.hero__frame .wp-block-image img {
  display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover;
  /* Deckel, damit das Hochformat den Hero nicht ueber die Bildschirmhoehe treibt. */
  max-height: 62svh;
}
.hero__frame::before, .hero__frame::after {
  content: ""; position: absolute; height: 1rem; width: 1rem; border: 0 solid var(--rosso); z-index: 2;
}
.hero__frame::before { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.hero__frame::after  { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

/* Marken-Laufband unten im Hero */
.brandbar {
  border-top: 1px solid rgba(42,45,52,.4); background: rgba(11,11,12,.5);
  backdrop-filter: blur(4px);
}
.brandbar__inner { display: flex; align-items: center; gap: 1.5rem; padding: 1rem 0; }
.brandbar__label {
  font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase;
  letter-spacing: .28em; color: var(--steel); flex: none; display: none;
}
@media (min-width: 640px) { .brandbar__label { display: inline; } }
.brandbar__track { flex: 1; overflow: hidden; }
.brandbar__track ul {
  display: flex; width: max-content; gap: 2.5rem; list-style: none; margin: 0; padding: 0;
  animation: marquee 28s linear infinite;
}
.brandbar__track li {
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .2em;
  color: rgba(236,233,226,.45); white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .brandbar__track ul { animation: none; }
}

/* Hero-Fakten — Overlay-Streifen unten im Bildrahmen.
   Als normale Liste gebaut, damit Luca sie im Editor bearbeiten kann. */
.hero__facts {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  list-style: none; margin: 0; padding: 0;
  background: rgba(42,45,52,.6);
}
.hero__facts li {
  background: rgba(11,11,12,.82);
  backdrop-filter: blur(4px);
  padding: .75rem 1rem;
  font-family: var(--f-mono); font-size: .6rem; text-transform: uppercase;
  letter-spacing: .2em; color: var(--steel);
}
.hero__facts strong {
  display: block; margin-top: .25rem;
  font-family: var(--f-mono); font-weight: 500; font-size: .875rem;
  letter-spacing: -.01em; text-transform: none; color: var(--cream);
  font-variant-numeric: tabular-nums;
}

/* ══════════════════════════════════════════════════════════════════════════
   13. HELLE SEKTION
   Die Studio-Freisteller der Raeder sind auf WEISS fotografiert. Statt sie in
   dunkle Kacheln zu zwingen (wo sie wie weisse Kaesten wirken), bekommen sie
   eine eigene helle Buehne. Bewusster Kontrast — die Raeder treten ins Licht.
   ══════════════════════════════════════════════════════════════════════════ */
.section--light {
  background: var(--cream);
  color: var(--ink-900);
  border-top: none;
}
.section--light h2,
.section--light h3 { color: var(--ink-900); }
.section--light .muted,
.section--light .lede { color: rgba(11, 11, 12, 0.7); }
.section--light .eyebrow { color: #5a5f66; }
.section--light .data { color: var(--ink-900); }

/* ── Rad-Galerie (Freisteller auf hellem Grund) ────────────────────────── */
.gallery-bikes {
  display: grid; gap: 1.5rem; margin-top: 3rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.bike-card, .bike-card.wp-block-image { text-align: left; margin: 0; }
.bike-card img {
  display: block; width: 100%; aspect-ratio: 3/2; object-fit: contain;
  background: #fff; border: 1px solid rgba(11,11,12,.08);
  transition: transform .5s var(--ease);
}
.bike-card:hover img { transform: scale(1.03); }
.bike-card figcaption {
  margin-top: .75rem;
  font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase;
  letter-spacing: .18em; color: #5a5f66;
}
.bike-card strong {
  display: block; margin-top: .25rem;
  font-family: var(--f-display); font-weight: 700; font-size: 1.25rem;
  text-transform: uppercase; letter-spacing: .01em; color: var(--ink-900);
}

/* ══════════════════════════════════════════════════════════════════════════
   14. TEASER-KACHELN — je eine pro Unterseite (Bild + Text + CTA)
   ══════════════════════════════════════════════════════════════════════════ */
.teasers { display: grid; gap: 1px; background: rgba(42,45,52,.6);
           border: 1px solid rgba(42,45,52,.6); margin-top: 3rem; }
@media (min-width: 900px) { .teasers { grid-template-columns: 1fr 1fr; } }

.teaser {
  display: grid; background: var(--ink-900);
  transition: background-color .3s;
}
.teaser:hover { background: var(--ink-800); }
@media (min-width: 600px) { .teaser { grid-template-columns: 40% 1fr; } }

.teaser__img { position: relative; overflow: hidden; min-height: 220px; margin: 0; }
.teaser__img img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease);
}
.teaser__img.wp-block-image { margin: 0; }
.teaser__img figcaption { display: none; }
.teaser:hover .teaser__img img { transform: scale(1.05); }

.teaser__body { padding: 2rem; display: flex; flex-direction: column; }
.teaser__body h3 { margin: .75rem 0 0; }
.teaser__sub {
  margin-top: .5rem; font-size: 1.05rem; font-weight: 500; color: var(--cream);
}
.teaser__body p.muted { margin-top: .75rem; font-size: .95rem; }
.teaser__cta {
  margin-top: auto; padding-top: 1.5rem;
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase;
  letter-spacing: .18em; color: var(--rosso-text); text-decoration: none;
}
.teaser__cta::after { content: "→"; transition: transform .3s; }
.teaser:hover .teaser__cta::after { transform: translateX(4px); }

/* ══════════════════════════════════════════════════════════════════════════
   15. VERSPRECHEN ("Keine Fehlkaeufe" etc.) + Marken
   ══════════════════════════════════════════════════════════════════════════ */
.promise { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 700px) { .promise { grid-template-columns: repeat(3, 1fr); } }
.promise li {
  border: 1px solid rgba(42,45,52,.6); padding: 1.5rem;
  font-family: var(--f-display); font-weight: 700; font-size: 1.25rem;
  text-transform: uppercase; letter-spacing: .01em; line-height: 1.1;
}
.promise li::before {
  content: ""; display: block; width: 2rem; height: 3px; margin-bottom: .875rem;
  background: var(--tricolore-grad);
}

/* ── Foto-Mosaik (helle Bild-Galerie, wiederverwendbar) ────────────────────
   Bricht die dunklen Text-Sektionen der Unterseiten auf: reine Fotos ohne
   Overlay, erstes Bild gross (2×2), Rest klein. Haarlinien-Fugen wie Bento. */
.mosaic {
  display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px;
  gap: 1px; background: rgba(42,45,52,.6); border: 1px solid rgba(42,45,52,.6);
}
@media (min-width: 768px) {
  .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; }
  .mosaic > *:first-child { grid-column: span 2; grid-row: span 2; }
}
.mosaic figure, .mosaic .wp-block-image {
  margin: 0; height: 100%; min-width: 0; overflow: hidden;
}
.mosaic img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease);
}
.mosaic .wp-block-image:hover img { transform: scale(1.04); }

/* ── Lifestyle-Band (volle Breite, Landschaftsbilder) ──────────────────── */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
         background: rgba(42,45,52,.6); }
.strip img { display: block; width: 100%; height: 260px; object-fit: cover;
             filter: grayscale(.2); transition: filter .5s, transform .7s var(--ease); }
.strip a:hover img { filter: none; transform: scale(1.04); }
.strip figure, .strip .wp-block-image { margin: 0; overflow: hidden; }
.strip figcaption { display: none; }
@media (max-width: 700px) { .strip { grid-template-columns: 1fr; } .strip img { height: 200px; } }

/* Kontakt-Icons als CSS — damit die Kontaktdaten eine NATIVE Liste bleiben
   und Luca Adresse/Telefon/Zeiten direkt im Editor aendern kann. */
.contact-list li::before {
  content: ""; flex: none; width: 2.5rem; height: 2.5rem;
  border: 1px solid rgba(42,45,52,.6); background-color: var(--ink-800);
  background-repeat: no-repeat; background-position: center;
  background-size: 18px 18px;
}
.contact-list li:nth-child(1)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E5484D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
.contact-list li:nth-child(2)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E5484D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92Z'/%3E%3C/svg%3E"); }
.contact-list li:nth-child(3)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E5484D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E"); }
.contact-list li:nth-child(4)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E5484D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E"); }

/* ══════════════════════════════════════════════════════════════════════════
   16. FIX — Grid-Blowout
   Grid-Kinder haben per Default min-width:auto. Dadurch kann der Inhalt
   (hier: das Cover-Bild) die Spalte breiter druecken als ihre 1fr-Zelle,
   und die Kachel haengt aus dem Block heraus. min-width:0 verhindert das.
   ══════════════════════════════════════════════════════════════════════════ */
.bento > *,
.teasers > *,
.brands > *,
.gallery-bikes > *,
.strip > * {
  min-width: 0;
  max-width: 100%;
}
.bento > .wp-block-cover,
.tile.wp-block-cover { width: 100%; }

/* Cover-Kacheln duerfen nie ueber ihre Zelle hinauswachsen */
.tile { min-width: 0; overflow: hidden; }

/* Label auf hellen Fotos lesbar machen (Schatten statt Farbwechsel,
   damit das Rosso als Markenfarbe erhalten bleibt) */
.wp-block-cover .build__brand {
  text-shadow: 0 1px 6px rgba(0, 0, 0, .85);
}
.wp-block-cover h3 {
  text-shadow: 0 2px 10px rgba(0, 0, 0, .6);
}

/* ══════════════════════════════════════════════════════════════════════════
   17. FIX — Spezifitaet gegen WordPress' Block-CSS
   WP setzt ".wp-block-image img { height:auto }" mit derselben Spezifitaet
   wie unsere Regeln und laedt SEIN CSS spaeter -> es gewinnt, und die Bilder
   behalten ihr natuerliches Seitenverhaeltnis (ungleiche Hoehen, Luecken).
   Deshalb hier gezielt hoeher gewichtet.
   ══════════════════════════════════════════════════════════════════════════ */

/* Lifestyle-Band: drei gleich hohe Bilder */
.strip .wp-block-image,
.strip figure { margin: 0; overflow: hidden; }
.strip .wp-block-image img,
.strip figure img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  filter: grayscale(.2);
  transition: filter .5s, transform .7s var(--ease);
}
.strip .wp-block-image:hover img { filter: none; transform: scale(1.04); }
@media (max-width: 700px) {
  .strip .wp-block-image img,
  .strip figure img { height: 220px; }
}

/* Teaser-Bild: fuellt die Kachelhaelfte komplett */
.teaser .teaser__img.wp-block-image img,
.teaser .teaser__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}

/* Rad-Karten: einheitliches Format, Freisteller nicht anschneiden */
.gallery-bikes .bike-card.wp-block-image img,
.gallery-bikes .bike-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: #fff;
}

/* ══════════════════════════════════════════════════════════════════════════
   18. FIX — Cover-Bild muss seine Kachel voll ausfuellen
   Sonst schimmert oben der Cover-Grund durch und das Bild sitzt zu tief.
   ══════════════════════════════════════════════════════════════════════════ */
.wp-block-cover .wp-block-cover__image-background,
.wp-block-cover img.wp-block-cover__image-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  margin: 0;
}

/* Kacheln fuellen ihre Rasterzelle komplett */
.bento > * { align-self: stretch; }
.bento .wp-block-cover { height: 100%; }

/* ══════════════════════════════════════════════════════════════════════════
   19. FIX — WordPress' Flow-Margins toeten das Raster
   WP haengt an Gruppen die Klasse .is-layout-flow und dazu:
       .is-layout-flow > *            { margin-block-start: 24px; }
       .is-layout-flow > *:first-child { margin-block-start: 0; }
   In einem Grid landet dieser Rand INNERHALB der Zelle: die erste Kachel sitzt
   richtig, alle weiteren werden 24px nach unten geschoben und haengen ueber.
   Hoehere Spezifitaet (.wp-block-group.bento) schlaegt WordPress' Regel.
   ══════════════════════════════════════════════════════════════════════════ */
.wp-block-group.bento > *,
.wp-block-group.teasers > *,
.wp-block-group.brands > *,
.wp-block-group.gallery-bikes > *,
.wp-block-group.strip > *,
.wp-block-group.cards > *,
.wp-block-group.card--img > *,
.wp-block-group.mosaic > *,
.wp-block-group.lead > *,
.wp-block-list.promise > *,
.wp-block-group.hero__grid > *,
.wp-block-group.split > * {
  margin-block-start: 0;
  margin-block-end: 0;
  margin-top: 0;
  margin-bottom: 0;
}

/* Dieselbe WP-Regel greift auch eine Ebene hoeher:
       :root :where(.wp-site-blocks) > * { margin-block-start: 24px }
   Der <main> ist dort das zweite Kind (nach dem Header) und bekommt die 24px.
   Weil der Header fixed ist, wird daraus ein sichtbarer Streifen Body-Hinter-
   grund UEBER dem Hero. .wp-site-blocks > .site-main schlaegt :where() (0 Spez.). */
.wp-site-blocks > .site-main { margin-block-start: 0; }

/* ══════════════════════════════════════════════════════════════════════════
   20. FIX — Koepfe nicht abschneiden (Mobile)
   Die Portraets sind hochformatig (1000x1500). Auf Mobile stapelt der Teaser,
   das Bild wird also breit und flach beschnitten -> object-fit:cover schneidet
   mittig zu und der Kopf faellt raus.
   Loesung: Ausschnitt nach oben ruecken + auf Mobile mehr Hoehe geben.
   ══════════════════════════════════════════════════════════════════════════ */
.teaser .teaser__img.wp-block-image img,
.teaser .teaser__img img {
  object-position: center 22%;
}

@media (max-width: 599px) {
  .teaser .teaser__img { min-height: 320px; }
}

/* Hero-Rahmenbild (Luca in der Werkstatt) — gleiche Logik */
.hero__frame .wp-block-image img { object-position: center 25%; }

/* ══════════════════════════════════════════════════════════════════════════
   21. FIX — Lange deutsche Woerter sprengen die Headline (Mobile)
   "FAHRRADWERKSTATT" ist bei 3.5rem breiter als ein 375px-Display. Die
   Mindestgroesse war zu hoch, und lange Komposita durften nicht umbrechen.
   ══════════════════════════════════════════════════════════════════════════ */
h1 { font-size: clamp(2.25rem, 10vw, 6.5rem); }
h2 { font-size: clamp(1.875rem, 6vw, 3.75rem); }
h3 { font-size: clamp(1.375rem, 4vw, 1.875rem); }

/* Notbremse: ueberlange Komposita duerfen brechen, statt auszubrechen —
   aber OHNE Trennstrich (hyphens:auto setzte "SALZBUR-GER" mitten ins Wort).
   overflow-wrap bricht im Notfall lautlos, ohne haesslichen Bindestrich. */
.headline,
h1, h2, h3 {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
}

/* Nichts darf horizontal aus dem Viewport ragen */
.hero .wp-block-cover__inner-container,
.hero__grid { max-width: 100%; }
.hero__grid > * { min-width: 0; }

/* ══════════════════════════════════════════════════════════════════════════
   22. RECHTSTEXTE — Impressum, Datenschutz, AGB
   Bewusst KEIN Foto-Hero: Rechtstexte sollen sachlich wirken und schnell
   auffindbar sein, nicht beworben. Stattdessen ein kompakter Textkopf und
   eine schmale, gut lesbare Spalte (ca. 70 Zeichen Zeilenlaenge).
   Der Header ist position:fixed -> der Kopf braucht eigenes padding-top.
   ══════════════════════════════════════════════════════════════════════════ */
.legal-head {
  padding-top: 9rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(42,45,52,.6);
}
@media (min-width: 768px) { .legal-head { padding-top: 11rem; padding-bottom: 4rem; } }
.legal-head h1 { font-size: clamp(2rem, 6vw, 4rem); hyphens: none; margin-bottom: 1.25rem; }
.legal-head .lede { max-width: 46rem; }

/* Datumszeile ("Stand: …") — Mono wie alle Meta-Angaben im Theme. */
.legal__meta {
  margin-top: 1.5rem;
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--steel);
}

/* Die Textspalte. Schmaler als .wrap, weil Fliesstext ab ~75 Zeichen
   Zeilenlaenge unangenehm zu lesen wird. */
.legal { max-width: 52rem; }
.legal h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-top: 3.5rem; margin-bottom: 1rem; hyphens: none;
}
.legal h2:first-child { margin-top: 0; }
.legal h3 {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  margin-top: 2.25rem; margin-bottom: .75rem; hyphens: none;
}
.legal p,
.legal li { color: rgba(236,233,226,.72); line-height: 1.75; }
.legal p { margin-top: 1rem; }
.legal ul { margin: 1rem 0 0; padding-left: 1.25rem; display: grid; gap: .5rem; }
.legal li::marker { color: var(--rosso-text); }
.legal a { color: var(--cream); text-decoration: underline; text-underline-offset: .2em; }
.legal a:hover { color: var(--rosso-text); }
.legal strong { color: var(--cream); }

/* Hinweiskasten fuer noch einzutragende Angaben (nur Impressum).
   Rosso-Kante, damit im Editor sofort auffaellt, was Luca ergaenzen muss. */
.legal__todo {
  margin-top: 1.5rem; padding: 1.25rem 1.5rem;
  border: 1px solid rgba(42,45,52,.6); border-left: 3px solid var(--rosso);
  background: rgba(15,16,18,.5);
}
.legal__todo p { margin-top: .5rem; }
.legal__todo p:first-child { margin-top: 0; }

/* Querverweise zwischen den drei Rechtsseiten (Fuss der Seite). */
.legal-nav {
  margin-top: 4rem; padding-top: 2rem;
  border-top: 1px solid rgba(42,45,52,.6);
  display: flex; flex-wrap: wrap; gap: 2rem;
}
.legal-nav a {
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--steel); text-decoration: none;
}
.legal-nav a:hover { color: var(--cream); }
