/* ============================================================
   Geli, die rasende Friseurin – Design-System
   Marken-Petrol #008FC3 von der Live-Seite (gelidierasendefriseurin.at),
   Logo-Königsblau #002291 (aus dem Logo-PNG gesampelt).
   Grundflächen auf Kundenwunsch leicht blau statt weiß – alle Neutraltöne
   aus dem Petrol abgeleitet, damit nichts warm/kalt gegeneinander läuft.
   Karten bleiben reinweiß und heben sich dadurch sauber ab.
   Schrift: Inter (Google Fonts) – schlicht und gut lesbar, ersetzt
   die Merriweather/Ubuntu-Kombination der alten Jimdo-Seite
   ============================================================ */

/* Inter lokal ausgeliefert – so geht beim Seitenaufruf keine IP-Adresse der
   Besucherinnen an Google. Ohne diese Einbindung braucht die Seite auch
   keinen Einwilligungsdialog für Schriften. */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-var.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-italic.woff2') format('woff2');
  font-weight: 400 500;
  font-style: italic;
  font-display: swap;
}

:root {
  --petrol: #008FC3;
  /* Textvariante des Petrols – tiefer gesetzt, damit sie auch auf der
     kräftig blauen Fläche den Kontrastwert 4.5 sicher erreicht */
  --petrol-dark: #005F80;
  --petrol-deep: #073F53;
  --petrol-tint: #EAF4FA;

  /* Grundflächen: deutlich blau. Karten und Kopfleiste bleiben reinweiß –
     dadurch heben sie sich klar ab und das Blau wirkt als Rahmen. */
  --flaeche: #DCEAF3;      /* Seitenhintergrund */
  --flaeche-2: #C8DEEC;    /* abwechselnde Abschnitte, eine Stufe tiefer */
  --weiss: #FFFFFF;        /* Karten, Kopfleiste */

  --linie: #B9D2E2;        /* Rahmen */
  --linie-stark: #93B5CA;  /* Punktlinien, gestrichelte Rahmen */

  --ink: #16232B;          /* Text, ins Blaue gezogen */
  --grau: #44555F;
  --logo-blau: #002291;
  --dunkel: #16242C;       /* Fußbereich */

  --font-display: "Inter", "Segoe UI", sans-serif;
  --font-text: "Inter", "Segoe UI", sans-serif;

  /* Kanten bewusst knapp – 10px-Rundungen an allem wirken schnell nach
     Baukasten. Zwei Werte, mehr nicht. */
  --radius: 3px;
  --radius-g: 4px;

  --container: 1120px;
  --header-h: 82px;
  --header-h-compact: 64px;
}

/* ---------- Reset & Basis ---------- */

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-text);
  font-size: 1.0625rem;          /* 17px – großzügig, Zielgruppe teils 60+ */
  line-height: 1.75;
  color: var(--ink);
  background: var(--flaeche);
  overflow-x: hidden;
}

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

a { color: var(--petrol-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--petrol-deep); }

ul, ol { padding-left: 1.3em; }

::selection { background: var(--petrol); color: var(--weiss); }

:focus-visible {
  outline: 2px solid var(--petrol-dark);
  outline-offset: 2px;
}

/* ---------- Typografie ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;   /* Grotesk wirkt in Großgrößen sonst luftig */
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 800; }
h2 {
  font-size: clamp(1.6rem, 3.1vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.55em;
  max-width: 20ch;              /* Überschriften brechen wie gesetzt, nicht beliebig */
}
h3 { font-size: 1.17rem; letter-spacing: -0.01em; margin-bottom: 0.45em; }

/* Lesbare Zeilenlänge – ohne Begrenzung laufen Absätze über die volle Breite */
p { max-width: 68ch; }
.section-petrol p, .cta-band p, .zitat p, td p, .footer-brand p { max-width: none; }

/* Der Kicker über den Überschriften: bewusst leise. Gesperrte Versalien in
   Akzentfarbe über jedem Abschnitt sind das auffälligste Baukasten-Merkmal. */
.eyebrow {
  display: block;
  font-family: var(--font-text);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--grau);
  margin-bottom: 0.35em;
}

p + p { margin-top: 1em; }

.lead { font-size: 1.15rem; line-height: 1.7; color: var(--grau); }

/* ---------- Layout ---------- */

.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }

/* Gleicher Abstand über die ganze Seite wirkt monoton – farbige Bänder
   bekommen mehr Luft, damit die Seite einen Rhythmus hat. */
.section-hell, .section-petrol { padding: clamp(4.5rem, 10vw, 7rem) 0; }

.section-hell { background: var(--flaeche-2); }
.section-petrol { background: var(--petrol-deep); color: var(--weiss); }
.section-petrol h2, .section-petrol h3 { color: var(--weiss); }
.section-petrol .eyebrow { color: var(--linie-stark); }

.grid-2 { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.grid-3 { display: grid; gap: 1.4rem; }
@media (min-width: 760px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 52px;               /* große Touch-Ziele */
  padding: 0.75em 1.7em;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font-family: var(--font-text);
  font-size: 1.02rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn .btn-icon { width: 1.2em; height: 1.2em; flex: none; }

.btn-primary { background: var(--petrol-dark); color: var(--weiss); }
.btn-primary:hover { background: var(--petrol-deep); color: var(--weiss); }

.btn-outline { border-color: var(--petrol-dark); color: var(--petrol-dark); background: transparent; }
.btn-outline:hover { background: var(--petrol-tint); color: var(--petrol-deep); }

.btn-hell { background: var(--weiss); color: var(--petrol-deep); }
.btn-hell:hover { background: var(--flaeche-2); color: var(--petrol-deep); }

/* Grün leicht abgedunkelt, damit weiße Schrift den Kontrastwert 4.5 erreicht */
.btn-whatsapp { background: #0E7C41; color: var(--weiss); }
.btn-whatsapp:hover { background: #0B6635; color: var(--weiss); }

.btn-group { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: flex-start; }

/* Urlaubshinweis (wird bei aktivem Urlaubsmodus oben eingeblendet) */
.urlaub-banner {
  position: relative;
  z-index: 110;
  margin: 0;
  padding: 0.85em 1.5rem;
  background: var(--petrol-deep);
  color: var(--weiss);
  text-align: center;
  font-weight: 500;
}
body:has(.urlaub-banner) .site-header { position: static; }
body:has(.urlaub-banner) .hero,
body:has(.urlaub-banner) .seiten-hero { padding-top: clamp(2.5rem, 6vw, 4rem); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--weiss);
  border-bottom: 1px solid var(--linie);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
  transition: height 0.25s ease;
}
.site-header.is-compact .header-inner { height: var(--header-h-compact); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
/* Die Logodatei ist randlos zugeschnitten – die Rahmen sind entsprechend
   kleiner gewählt, damit das Logo optisch gleich groß bleibt. */
.brand img {
  width: 38px; height: 38px;
  object-fit: contain;
  transition: width 0.25s ease, height 0.25s ease;
}
.site-header.is-compact .brand img { width: 32px; height: 32px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
}
.brand-name small {
  display: block;
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 0.76rem;
  color: var(--grau);
  letter-spacing: 0.03em;
}

.main-nav { display: none; }
@media (min-width: 980px) {
  .main-nav { display: flex; align-items: center; gap: 1.6rem; }
}
.main-nav a {
  font-weight: 500;
  font-size: 0.99rem;
  color: var(--ink);
  text-decoration: none;
  padding: 0.35em 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.main-nav a:hover { color: var(--petrol-dark); }
.main-nav a[aria-current="page"] {
  color: var(--petrol-dark);
  border-bottom-color: var(--petrol-dark);
}

.nav-cta { display: none; }
@media (min-width: 980px) {
  .nav-cta {
    display: inline-flex;
    min-height: 44px;
    padding: 0.5em 1.3em;
    font-size: 0.95rem;
  }
}

/* Burger */
.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 52px; height: 52px;
  padding: 14px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 130;
}
@media (min-width: 980px) { .burger { display: none; } }
.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobiles Menü – ruhiges Einblenden statt Effekt-Show */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 120;
  padding: 2rem 1.5rem;
  background: var(--weiss);
  border-top: 1px solid var(--linie);
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-8px);
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}
.mobile-menu.is-open {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  padding: 0.85rem 0.2rem;
  border-bottom: 1px solid var(--linie);
}
.mobile-menu a[aria-current="page"] { color: var(--petrol-dark); }
.mobile-menu .menu-kontakt {
  margin-top: 1.8rem;
  color: var(--grau);
  font-size: 0.98rem;
}
.mobile-menu .menu-kontakt a {
  font-family: var(--font-text);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--petrol-dark);
  padding: 0.3rem 0;
  border: none;
  display: inline-block;
}

/* ---------- Hero (Startseite) ---------- */

.hero {
  padding: calc(var(--header-h) + clamp(3rem, 7vw, 5.5rem)) 0 clamp(3.5rem, 8vw, 6rem);
  background: var(--flaeche);
  border-bottom: 1px solid var(--linie);
}

/* Zentrierter Hero mit rotierenden Begriffen */
.hero-mitte {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.4rem;
}

.hero-logo { width: clamp(64px, 8.5vw, 88px); height: auto; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.45em 1.15em;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  background: var(--weiss);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--grau);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.hero-badge:hover { color: var(--petrol-deep); border-color: var(--petrol-dark); }
.hero-badge svg { width: 1em; height: 1em; }

.hero-zentriert h1 {
  font-size: clamp(1.8rem, 4.6vw + 0.4rem, 3.4rem);
  /* volle Breite, damit der Rotator nicht von der schmalen
     "Schönes Haar,"-Zeile begrenzt (und abgeschnitten) wird */
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.hero-rotator {
  position: relative;
  display: block;
  height: 1.4em;
  overflow: hidden;
  max-width: 100%;
}
.rotator-wort {
  position: absolute;
  inset-inline: 0;
  top: 0;
  color: var(--petrol-dark);
  font-weight: 800;
  white-space: nowrap;   /* nie umbrechen – sonst verschluckt overflow die zweite Zeile */
  opacity: 0;
  transform: translateY(110%);
  transition: transform 0.55s cubic-bezier(0.22, 1.1, 0.36, 1), opacity 0.4s ease;
}
.rotator-wort.ist-aktiv { opacity: 1; transform: translateY(0); }
.rotator-wort.ist-vorbei { opacity: 0; transform: translateY(-110%); }

.hero-mitte .lead { max-width: 36em; margin: 0; }
.hero-btns { justify-content: center; }

.hero-usp {
  margin: 0.4rem 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--grau);
}

/* ---------- Hero mit gemaltem Hintergrund ---------- */

/* Muss nach .hero stehen: gleiche Spezifitaet, die Reihenfolge entscheidet. */
.hero-gemalt {
  position: relative;
  overflow: hidden;
  background: var(--petrol-deep);   /* Fallback, falls das Bild fehlt */
  border-bottom: 0;
}

.hero-grund { position: absolute; inset: 0; }
.hero-grund img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}

/* Abdunklung. Die Werte sind gemessen, nicht geschaetzt: an der hellsten
   Stelle des Bildes erreicht weisser Text damit 6,2:1 – die Norm verlangt
   4,5:1. Ohne diese Schicht waeren es nur 4,2:1. */
.hero-gemalt::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(176deg,
    rgba(6, 38, 56, 0.58) 0%,
    rgba(6, 38, 56, 0.30) 45%,
    rgba(6, 38, 56, 0.66) 100%);
}

.hero-gemalt .hero-mitte { position: relative; z-index: 1; }

/* Das zweifarbige Logo (blaue Schrift, schwarze Schnoerkel) verschwindet auf
   dem Blau. Als weisse Marke bleibt die Form vollstaendig erhalten. */
.hero-gemalt .hero-logo { filter: brightness(0) invert(1); }

.hero-gemalt h1,
.hero-gemalt .lead,
.hero-gemalt .hero-usp { color: var(--flaeche); }
.hero-gemalt .rotator-wort { color: var(--weiss); }

.hero-gemalt .hero-badge {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--weiss);
}
/* Nicht heller als 14 % aufhellen: bei 20 % faellt weisse Schrift auf der
   hellsten Bildstelle auf 4,1:1 und verfehlt die Norm. Die Rueckmeldung
   beim Zeigen uebernimmt deshalb der Rahmen, nicht die Flaeche. */
.hero-gemalt .hero-badge:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--weiss);
  color: var(--weiss);
}

.hero-gemalt .btn-outline {
  color: var(--weiss);
  border-color: rgba(255, 255, 255, 0.6);
}
.hero-gemalt .btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--weiss);
  color: var(--weiss);
}

/* ---------- Karten ---------- */

.card {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--radius-g);
  padding: clamp(1.5rem, 3vw, 2.1rem);
}

/* Icon klein und neben der Überschrift statt als Kästchen darüber */
.card .card-icon {
  width: 22px; height: 22px;
  margin-bottom: 0.7rem;
  color: var(--petrol-dark);
  opacity: 0.75;
}
.card .card-icon svg { width: 100%; height: 100%; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 1rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--petrol-dark);
}
.card-link:hover { text-decoration: underline; }
.card-link svg { width: 1.05em; height: 1.05em; }

/* Zwei-Wege-Karten (Startseite) */
.weg-karte {
  border-radius: var(--radius-g);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  background: var(--petrol-deep);
  color: var(--weiss);
}
.weg-karte a:not(.btn) { color: var(--weiss); }
.weg-karte.weg-beige {
  background: var(--flaeche-2);
  border: 1px solid var(--linie);
  color: var(--ink);
}
/* Foto oben in der Karte, randlos bis an die Kanten */
.weg-foto {
  margin: calc(-1 * clamp(1.8rem, 4vw, 2.6rem)) calc(-1 * clamp(1.8rem, 4vw, 2.6rem)) 1.5rem;
  border-radius: var(--radius-g) var(--radius-g) 0 0;
  overflow: hidden;
}
.weg-foto img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
@media (max-width: 720px) {
  .weg-foto {
    margin: -1.35rem -1.25rem 1.2rem;
  }
  .weg-foto img { aspect-ratio: 3 / 2; }
}

.weg-karte h3 { color: inherit; font-size: 1.3rem; }
.weg-karte p { max-width: 34em; }
.weg-karte p + p { margin-top: 0.9em; }
.weg-karte .btn-hell { border: 1px solid rgba(255, 255, 255, 0.35); }
.weg-karte.weg-beige .btn-outline { background: var(--weiss); }

/* ---------- Preistafel ----------
   Bewusst KEINE Kärtchen mit Icon: Eine Preisliste im Salon ist eine Tafel.
   Kategorie, feine Linie, Posten mit Führungspunkten – mehr braucht es nicht. */
.preistafel .grid-3 {
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 780px;
  margin-inline: auto;
}
@media (min-width: 900px) {
  .preistafel .grid-3 {
    grid-template-columns: 1fr 1fr;
    column-gap: 4.5rem;
    max-width: none;
  }
}
.preistafel .card {
  background: none;
  border: 0;
  border-top: 1px solid var(--linie-stark);
  border-radius: 0;
  padding: 1.6rem 0 1.9rem;
}
.preistafel .card-icon { display: none; }
.preistafel .card h3 {
  font-size: 1.32rem;
  letter-spacing: -0.015em;
  margin-bottom: 0.2em;
}
.preistafel .card > p {
  color: var(--grau);
  font-size: 0.96rem;
  max-width: 42ch;
  margin-bottom: 1.1rem;
}
.preistafel .preis-liste li { padding: 0.45em 0; }
.preistafel .preis-liste li + li { border-top: 0; }

/* ---------- Preisliste ---------- */

.preis-liste { list-style: none; padding: 0; margin-top: 0.6rem; }
.preis-liste li {
  display: flex;
  align-items: baseline;
  gap: 0.8em;
  padding: 0.6em 0;
}
.preis-liste li + li { border-top: 1px solid var(--flaeche-2); }
.preis-liste .preis-punkte {
  flex: 1;
  border-bottom: 1px dotted var(--linie-stark);
  transform: translateY(-4px);
}
.preis-liste .preis-wert {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

/* ---------- Schritte (Hausbesuch-Ablauf) ---------- */

.schritte { display: grid; gap: 1rem; counter-reset: schritt; }
@media (min-width: 620px) { .schritte { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .schritte { grid-template-columns: repeat(4, 1fr); } }
/* Ohne Kasten: große Ziffer, feine Linie darüber – liest sich als Ablauf,
   nicht als vier gleiche Kacheln. */
.schritt {
  counter-increment: schritt;
  background: none;
  border: 0;
  border-top: 2px solid var(--petrol-dark);
  border-radius: 0;
  padding: 1rem 0 0;
}
.schritt::before {
  content: counter(schritt);
  display: block;
  margin-bottom: 0.15rem;
  color: var(--petrol-dark);
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.schritt h3 { font-size: 1.02rem; margin-bottom: 0.35em; }
/* In den schmalen Spalten ist der Grundtext zu groß – hier bewusst kleiner */
.schritt p { font-size: 0.94rem; line-height: 1.6; color: var(--grau); }

/* ---------- Öffnungszeiten & Erreichbar-Badge ---------- */

.zeiten-tabelle { width: 100%; border-collapse: collapse; }
.zeiten-tabelle td { padding: 0.5em 0; vertical-align: top; }
.zeiten-tabelle td:last-child { text-align: right; font-weight: 500; white-space: nowrap; }
.zeiten-tabelle tr + tr td { border-top: 1px solid var(--linie); }
.zeiten-tabelle tr.ist-heute td { color: var(--petrol-deep); font-weight: 700; }

.erreichbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.45em 1em;
  border-radius: var(--radius);
  background: var(--weiss);
  border: 1px solid var(--linie);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--grau);
}
.erreichbar-badge .puls {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #1E8A4C;
  flex: none;
}
.erreichbar-badge.ist-zu .puls { background: var(--linie-stark); }

/* ---------- Karte / Map ---------- */

.map-rahmen {
  border-radius: var(--radius-g);
  overflow: hidden;
  border: 1px solid var(--linie);
}
.map-rahmen iframe {
  display: block;
  width: 100%;
  height: clamp(240px, 45vw, 400px);
  border: 0;
}

/* Ortsliste: bewusst als Fließtext, nicht als (scheinbar klickbare) Kacheln */
.orte-liste {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.65em;
  row-gap: 0.35em;
  list-style: none;
  padding: 0;
  margin-top: 1.1rem;
  font-size: 1.06rem;
  color: var(--grau);
}
.orte-liste li { display: inline-flex; align-items: baseline; }
.orte-liste li + li::before {
  content: "·";
  margin-right: 0.65em;
  color: var(--linie-stark);
  font-weight: 700;
}
.orte-liste li.ort-haupt {
  color: var(--petrol-deep);
  font-weight: 700;
}

/* ---------- Galerie ---------- */

.galerie-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.galerie-item {
  position: relative;
  border-radius: var(--radius-g);
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid var(--linie);
  padding: 0;
  background: none;
  aspect-ratio: 4 / 5;
}
.galerie-item svg, .galerie-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.galerie-item:hover svg, .galerie-item:hover img { transform: scale(1.03); }
.galerie-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.4rem 1rem 0.9rem;
  /* kräftig genug, damit die Schrift auch auf hellen Fotos lesbar bleibt */
  background: linear-gradient(to top, rgba(20, 21, 23, 0.88), rgba(20, 21, 23, 0.55) 45%, transparent);
  color: var(--weiss);
  font-size: 0.92rem;
  font-weight: 500;
  text-align: left;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(25, 26, 27, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity 0.25s ease; }
.lightbox-inhalt { max-width: min(720px, 92vw); width: 100%; }
.lightbox-inhalt svg, .lightbox-inhalt img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: var(--radius-g);
}
.lightbox-caption { color: var(--weiss); text-align: center; margin-top: 1rem; }
.lightbox-schliessen {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  color: var(--weiss);
  font-size: 1.4rem;
  cursor: pointer;
}
.lightbox-schliessen:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Formular ---------- */

.formular { display: grid; gap: 1.2rem; }
.feld label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.feld input, .feld textarea, .feld select {
  width: 100%;
  padding: 0.8em 1em;
  font: inherit;
  color: var(--ink);
  background: var(--weiss);
  border: 1px solid var(--linie-stark);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}
.feld input:focus, .feld textarea:focus, .feld select:focus {
  outline: none;
  border-color: var(--petrol-dark);
}
.feld .feld-hinweis { font-size: 0.9rem; color: var(--grau); margin-top: 0.3rem; }

/* ---------- Kontakt-Nummer ---------- */

.kontakt-nummer {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(1.55rem, 4.5vw, 2.4rem);
  color: var(--petrol-deep);
  text-decoration: none;
  line-height: 1.2;
}
.kontakt-nummer:hover { color: var(--petrol-dark); }

.kontakt-wege { display: grid; gap: 1.2rem; margin-top: 2rem; }
@media (min-width: 700px) { .kontakt-wege { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Zitat ---------- */

/* Zitat mit Porträt: gibt dem Satz ein Gesicht */
.zitat-zeile {
  display: grid;
  gap: 1.8rem;
  justify-items: center;
  align-items: center;
}
@media (min-width: 800px) {
  .zitat-zeile {
    grid-template-columns: auto 1fr;
    gap: 3rem;
    justify-items: start;
  }
  .zitat-zeile .zitat { text-align: left; margin-inline: 0; }
}
.zitat-bild {
  width: clamp(120px, 22vw, 190px);
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.18);
}
.zitat-bild img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.zitat {
  max-width: 42em;
  margin-inline: auto;
  padding: 0 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.6;
  text-align: center;
}
.zitat footer {
  margin-top: 1.1rem;
  font-family: var(--font-text);
  font-style: normal;
  font-size: 0.98rem;
  color: var(--grau);
}
.section-petrol .zitat footer { color: var(--linie-stark); }

/* Foto-Platzhalter */
.foto-platzhalter {
  display: grid;
  place-items: center;
  border-radius: var(--radius-g);
  background: var(--flaeche-2);
  border: 1px dashed var(--linie-stark);
  color: var(--grau);
  text-align: center;
  padding: 2rem;
  min-height: 300px;
}
.foto-platzhalter svg { width: 44px; height: 44px; margin-bottom: 0.8rem; color: var(--grau); opacity: 0.6; }

/* Echtes Foto (von der bestehenden Website übernommen) */
.foto {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-g);
  border: 1px solid var(--linie);
}
.foto-rahmen { border-radius: var(--radius-g); overflow: hidden; border: 1px solid var(--linie); }
.foto-rahmen img { display: block; width: 100%; height: auto; }
.foto-hoch { aspect-ratio: 4 / 5; }
.foto-quer { aspect-ratio: 4 / 3; }
.foto-caption { margin-top: 0.7rem; font-size: 0.92rem; color: var(--grau); }

/* ---------- Timeline (Über mich) ---------- */

.timeline { position: relative; display: grid; gap: 1.8rem; padding-left: 1.8rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 1.5px;
  background: var(--linie-stark);
}
.timeline-eintrag { position: relative; }
.timeline-eintrag::before {
  content: "";
  position: absolute;
  left: calc(-1.8rem + 1px);
  top: 9px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--petrol-dark);
}
.timeline-jahr {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--petrol-deep);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--dunkel);
  color: rgba(255, 255, 255, 0.82);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  font-size: 0.99rem;
}
.site-footer h3 {
  color: var(--weiss);
  font-family: var(--font-text);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer a { color: rgba(255, 255, 255, 0.82); }
.site-footer a:hover { color: var(--weiss); }

.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.1fr; } }

.footer-brand img { width: 52px; margin-bottom: 1rem; }
.footer-brand .claim {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--weiss);
  font-size: 1.02rem;
  margin-bottom: 0.8rem;
}
.footer-nav ul, .footer-kontakt ul { list-style: none; padding: 0; display: grid; gap: 0.45rem; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }

.footer-unten {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-unten a { color: rgba(255, 255, 255, 0.68); }
.footer-unten .rechts-links { display: flex; gap: 1.4rem; }

/* Built-by-Credit */
.scalez-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  font-size: 0.9rem;
}
.scalez-credit:hover { color: var(--weiss); text-decoration: underline; }
.scalez-chip {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: var(--weiss);
  border-radius: var(--radius);
  flex: none;
}
.scalez-chip img { width: 18px; height: 18px; display: block; }

/* ---------- Unterseiten-Hero ---------- */

.seiten-hero {
  padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 4rem)) 0 clamp(2.5rem, 6vw, 4rem);
  background: var(--flaeche);
  border-bottom: 1px solid var(--linie);
}
.seiten-hero h1 { max-width: 17em; }
.seiten-hero .lead { max-width: 40em; margin-top: 1rem; }

/* ---------- CTA-Band ---------- */

.cta-band .container {
  display: grid;
  gap: 1.8rem;
  align-items: center;
}
@media (min-width: 860px) {
  .cta-band .container { grid-template-columns: 1.5fr 1fr; }
  .cta-band .btn-group { justify-content: flex-end; }
}
.cta-band h2 { margin-bottom: 0.3em; }
/* Heller Text nur im Petrol-Band – sonst wäre er auf hellem Grund unsichtbar */
.cta-band p { color: var(--grau); max-width: 34em; }
.section-petrol.cta-band p { color: rgba(255, 255, 255, 0.85); }

/* ---------- Hinweiskästen (Rechtsseiten, Demo-Hinweise) ---------- */

.platzhalter-box {
  background: var(--flaeche-2);
  border: 1px dashed var(--linie-stark);
  border-radius: var(--radius-g);
  padding: 1.5rem;
  margin: 1.5rem 0;
  color: var(--grau);
}
.platzhalter-box strong { color: var(--ink); }
/* Fließtext nie über die ganze Breite – sonst wird das Lesen mühsam */
.platzhalter-box p { max-width: 72ch; }

.rechtsseite h2 { margin-top: 2.2rem; font-size: 1.3rem; }
.rechtsseite .container { max-width: 780px; }

/* ---------- Scroll-Reveal (dezent) ---------- */

html.hat-js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
html.hat-js .reveal.ist-sichtbar { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* Hero-Einblendung – früher über GSAP vom CDN, jetzt reine CSS-Animation.
   Damit entfällt eine externe Verbindung und ~70 KB Ladelast. */
@keyframes hero-herein {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
html.hat-js .hero [data-hero-reveal] {
  opacity: 0;
  animation: hero-herein 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
html.hat-js .hero [data-hero-reveal]:nth-child(1) { animation-delay: 0.05s; }
html.hat-js .hero [data-hero-reveal]:nth-child(2) { animation-delay: 0.14s; }
html.hat-js .hero [data-hero-reveal]:nth-child(3) { animation-delay: 0.23s; }
html.hat-js .hero [data-hero-reveal]:nth-child(4) { animation-delay: 0.32s; }
html.hat-js .hero [data-hero-reveal]:nth-child(5) { animation-delay: 0.41s; }
html.hat-js .hero [data-hero-reveal]:nth-child(6) { animation-delay: 0.5s; }

/* Karte lädt erst auf Klick – siehe .karte-hinweis */
.karte-platzhalter {
  display: grid;
  place-items: center;
  gap: 0.9rem;
  min-height: clamp(240px, 45vw, 400px);
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--flaeche-2);
}
.karte-platzhalter p {
  margin: 0;
  max-width: 44ch;
  color: var(--grau);
  font-size: 0.95rem;
}

/* Gestaffeltes Erscheinen: die Reihenfolge setzt main.js über --i */
html.hat-js .reveal[style*="--i"] { transition-delay: calc(var(--i) * 90ms); }

/* Bilder kommen mit einer Spur Zoom heraus – ruhiger als ein reines Einblenden */
html.hat-js .reveal-bild { overflow: hidden; }
html.hat-js .reveal-bild img,
html.hat-js .reveal-bild svg {
  transform: scale(1.06);
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
html.hat-js .reveal-bild.ist-sichtbar img,
html.hat-js .reveal-bild.ist-sichtbar svg { transform: scale(1); }

/* Überschriften-Kicker schiebt sich kurz von links herein */
html.hat-js .reveal .eyebrow,
html.hat-js .eyebrow.reveal {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
}
html.hat-js .reveal.ist-sichtbar .eyebrow,
html.hat-js .eyebrow.reveal.ist-sichtbar { opacity: 1; transform: none; }

/* Zeitachse auf „Über mich“ zeichnet sich beim Scrollen */
html.hat-js .timeline::before { transform: scaleY(0); transform-origin: top; }
html.hat-js .timeline.ist-sichtbar::before {
  transform: scaleY(1);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}
html.hat-js .timeline-eintrag::before { transform: scale(0); }
html.hat-js .timeline.ist-sichtbar .timeline-eintrag::before {
  transform: scale(1);
  transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
}
html.hat-js .timeline.ist-sichtbar .timeline-eintrag:nth-child(1)::before { transition-delay: 0.25s; }
html.hat-js .timeline.ist-sichtbar .timeline-eintrag:nth-child(2)::before { transition-delay: 0.45s; }
html.hat-js .timeline.ist-sichtbar .timeline-eintrag:nth-child(3)::before { transition-delay: 0.65s; }
html.hat-js .timeline.ist-sichtbar .timeline-eintrag:nth-child(4)::before { transition-delay: 0.85s; }

/* Schritt-Nummern springen kurz auf */
html.hat-js .schritt.reveal::before { transform: scale(0.4); opacity: 0; }
html.hat-js .schritt.reveal.ist-sichtbar::before {
  transform: scale(1);
  opacity: 1;
  transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1) 0.15s,
              opacity 0.3s ease 0.15s;
}

/* ============================================================
   Handy-Ansicht
   Zielgruppe teils 60+: Text bleibt groß, aber Abstände werden
   knapper und alle Tippziele sicher über 44 px.
   ============================================================ */

@media (max-width: 720px) {
  :root {
    --header-h: 68px;
    --header-h-compact: 60px;
  }

  .container { width: min(1120px, 100% - 2.25rem); }
  section { padding: 2.75rem 0; }

  /* Kopfleiste kompakter, Logo und Name kleiner */
  .brand img { width: 34px; height: 34px; }
  .site-header.is-compact .brand img { width: 30px; height: 30px; }
  .brand-name { font-size: 0.95rem; }
  .brand-name small { font-size: 0.72rem; }

  /* Schaltflächen über die volle Breite – leichter zu treffen */
  .btn-group { flex-direction: column; align-items: stretch; }
  .btn-group .btn { width: 100%; }
  .hero-btns { align-items: stretch; }

  /* Hero: weniger Luft, damit der Inhalt früher beginnt */
  .hero { padding: calc(var(--header-h) + 2.25rem) 0 2.75rem; }
  .seiten-hero { padding: calc(var(--header-h) + 2rem) 0 2.25rem; }
  .hero-mitte { gap: 1.1rem; }
  .hero-badge { font-size: 0.86rem; }

  /* Karten und Abstände etwas knapper */
  .card, .weg-karte { padding: 1.35rem 1.25rem; }
  .grid-2, .grid-3 { gap: 1.1rem; }

  /* Zitat nicht zu groß setzen */
  .zitat { font-size: 1.12rem; }

  /* Preiszeilen: Name und Preis dürfen umbrechen */
  .preis-liste li { flex-wrap: wrap; gap: 0.3em 0.8em; }
  .preis-liste .preis-punkte { min-width: 1.5rem; }

  /* Markenlogo im Kopf: sichere Tippfläche */
  .brand { min-height: 44px; }

  /* Textlinks in Karten und der Hinweis-Button im Hero */
  .card-link { min-height: 44px; padding: 0.4rem 0; }
  .hero-badge { min-height: 44px; }

  /* Große Telefonnummer: trotz Schriftgröße sichere Tipphöhe */
  .kontakt-nummer {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0.25rem 0;
  }

  /* Nummer im aufgeklappten Menü */
  .menu-kontakt a { min-height: 44px; display: inline-flex; align-items: center; }

  /* Fußbereich: Links mit ausreichender Tippfläche */
  .footer-grid { gap: 1.9rem; }
  .footer-nav ul, .footer-kontakt ul { gap: 0.15rem; }
  .footer-nav a, .footer-kontakt a {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0;
    min-height: 44px;
  }
  .footer-unten { flex-direction: column; gap: 0.5rem; }
  .footer-unten .rechts-links { gap: 1.5rem; }
  .footer-unten a {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 0;
    min-height: 44px;
  }
  .scalez-credit { min-height: 44px; padding: 0.5rem 0; }

  /* Galerie: eine Spalte, aber nicht übermäßig hoch */
  .galerie-grid { grid-template-columns: 1fr; }
  .galerie-item { aspect-ratio: 3 / 2; }
}

/* Sehr schmale Geräte (ab iPhone SE abwärts) */
@media (max-width: 380px) {
  .container { width: min(1120px, 100% - 1.75rem); }
  body { font-size: 1.02rem; }
  .brand-name small { display: none; }
}

/* ---------- Reduced Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.hat-js .reveal { opacity: 1; transform: none; }
}

/* ---------- Offene Stellen in den Rechtstexten ---------- */

/* Was noch von der Inhaberin oder vom Hoster kommen muss, ist mit <mark>
   ausgezeichnet. Bewusst auffaellig: Diese Stellen duerfen beim Livegang
   nicht uebersehen werden. Nach dem Ausfuellen verschwindet die Markierung
   von selbst, weil dann kein <mark> mehr im Text steht. */
.rechtstext mark,
[data-edit-html] mark {
  display: block;
  margin: 0.8em 0;
  padding: 0.7em 0.9em;
  background: #FFF3CD;
  border-left: 3px solid #B58100;
  border-radius: 0;
  color: #4A3600;
  font-size: 0.95rem;
  line-height: 1.55;
}
