/* ============================================================
   Tierarztpraxis Dr. Schäfer · Schorndorf
   Praxisblau als Farbfläche + helles Blaugrau + Orange-Akzent,
   Space Grotesk (Display) + Hanken Grotesk (Text)
   ============================================================ */

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  /* Eigene Kopie: In der Original-Hanken sind alle Ziffern gleich breit und
     die „1" hat rechts viel Luft („7361 4"). Hier hat die 1 normale Ränder
     (fontTools, 27.09.26; OFL erlaubt Änderungen). */
  src: url("fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --blau: #0a7a99;
  --blau-dark: #076780;
  --blau-deep: #05445a;
  --himmel: #e2f0f5;
  --himmel-strong: #c6e3ec;
  --sand: #f5f8fa;
  --card: #ffffff;
  --ink: #16262c;
  --ink-soft: #4a5c64;
  --amber: #f0873f;
  --amber-soft: #fdf3e0;
  --coral: #d94f38;
  --coral-soft: #fdeeea;
  --line: #dde7ec;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 3px rgba(6, 60, 76, 0.08);
  --shadow-md: 0 10px 30px -12px rgba(6, 60, 76, 0.22);
  --shadow-lg: 0 24px 60px -24px rgba(6, 60, 76, 0.35);
  --font-display: "Space Grotesk", "Hanken Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
}

/* ── Basis ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}

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

/* Space Grotesk trägt kräftiger als eine Serifenschrift – daher engere
   Laufweite und etwas mehr Gewicht, sonst wirken Überschriften weich. */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; color: var(--ink); margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 4.8vw, 3.5rem); letter-spacing: -0.035em; font-weight: 650; }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); letter-spacing: -0.03em; }
h3 { font-size: 1.2rem; font-weight: 620; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
/* --blau traegt auf den hellen Blaufeldern nur 4.23:1, deshalb der dunklere Ton. */
a { color: var(--blau-dark); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2rem); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--blau-dark); color: #fff; padding: 0.6rem 1rem; z-index: 100; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blau); margin-bottom: 0.9rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--amber); border-radius: 2px; }

.lead { font-size: 1.15rem; color: var(--ink-soft); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.85rem 1.6rem; border-radius: 999px;
  font-family: var(--font-body); font-size: 1rem; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-primary { background: var(--blau); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--blau-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--blau-dark); border-color: var(--blau); }
.btn-ghost:hover { background: var(--himmel); transform: translateY(-2px); }
.btn-quiet { background: var(--himmel); color: var(--blau-dark); }
.btn-quiet:hover { background: var(--himmel-strong); transform: translateY(-2px); }
.btn-coral { background: var(--coral); color: #fff; box-shadow: var(--shadow-md); }
.btn-coral:hover { background: #b93e2a; transform: translateY(-2px); }

/* Buttons auf dunklem Panel: müssen lesbar bleiben und dürfen im Hover
   nie in die Hintergrundfarbe kippen (heller Button → dunkle Schrift). */
.btn-on-dark { background: #fff; color: var(--blau-dark); border-color: #fff; box-shadow: var(--shadow-md); }
.btn-on-dark:hover { background: var(--himmel); color: var(--blau-deep); transform: translateY(-2px); }
.btn-ghost-on-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.btn-ghost-on-dark:hover { background: #fff; color: var(--blau-dark); border-color: #fff; transform: translateY(-2px); }

/* Telefon-Button mit Nummer und Zusatzzeile.
   Die Rufnummer darf nie umbrechen – sie ist das Kernelement des Buttons. */
.btn-tel { text-align: left; padding-block: 0.7rem; flex: none; }
.btn-tel .tel-num { display: block; font-size: 1.05rem; line-height: 1.25; white-space: nowrap; }
.btn-tel .tel-note { display: block; font-size: 0.78rem; font-weight: 500; opacity: 0.85; white-space: nowrap; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 700; text-decoration: none; color: var(--blau-dark);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.18s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ── Topbar ─────────────────────────────────────────────────── */
.topbar { background: var(--blau); color: #fff; font-size: 0.9rem; }
.topbar-inner {
  max-width: 1160px; margin: 0 auto; padding: 0.45rem clamp(1.1rem, 4vw, 2rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.topbar a.tel { color: #fff; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 0.45rem; }
.topbar a.tel svg { width: 15px; height: 15px; }
.topbar-left { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.tel-hours { opacity: 0.85; }
.topbar .notdienst-mini { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.topbar .notdienst-mini:hover { text-decoration: underline; }

.status-chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.25rem 0.8rem; border-radius: 999px; font-size: 0.82rem; font-weight: 700; white-space: nowrap;
}
.status-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-chip.is-open { background: rgba(80, 200, 150, 0.16); color: #1b6e4a; }
.status-chip.is-closed { background: rgba(217, 79, 56, 0.13); color: #a03c26; }
.topbar .status-chip.is-open { background: rgba(5, 68, 90, 0.7); color: #8ce8c0; }
.topbar .status-chip.is-closed { background: rgba(5, 68, 90, 0.7); color: #ffb4a0; }

/* ── Banner ─────────────────────────────────────────────────── */
.tsj-banner {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  background: var(--amber-soft); border-bottom: 1px solid #f3ddb4;
  padding: 0.55rem clamp(1.1rem, 4vw, 2rem); font-size: 0.95rem; color: #6e5320;
}
.tsj-banner p { margin: 0; }
.tsj-banner a { color: inherit; font-weight: 700; }
.tsj-banner button {
  border: 0; background: transparent; font-size: 1rem; cursor: pointer; color: inherit;
  padding: 0.2rem 0.5rem; border-radius: 8px;
}
.tsj-banner button:hover { background: rgba(0, 0, 0, 0.06); }
/* Warn-Variante (Portal-Darstellung „warn"): kräftiger, für Dringendes. */
.tsj-banner--warn { background: var(--coral-soft); border-bottom-color: #f2c7bd; color: #7c3221; }

/* Wichtiger Hinweis als Pop-up: erscheint bei Portal-Darstellung „warn"
   einmal pro Nachricht, damit Besucher ihn wirklich lesen (z. B. Urlaub). */
.tsj-modal {
  border: 0; padding: 0; width: min(92vw, 460px);
  border-radius: var(--radius-lg); background: var(--card); color: var(--ink);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.tsj-modal::backdrop { background: rgba(7, 53, 69, 0.55); backdrop-filter: blur(3px); }
.tsj-modal-inner { position: relative; padding: clamp(1.7rem, 4.5vw, 2.4rem); text-align: center; }
.tsj-modal-icon {
  width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--coral-soft); color: var(--coral);
}
.tsj-modal-icon svg { width: 28px; height: 28px; }
.tsj-modal-badge {
  display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--coral); margin-bottom: 0.5rem;
}
.tsj-modal-text { margin: 0 0 1.5rem; font-size: 1.06rem; line-height: 1.55; color: var(--ink); }
.tsj-modal .btn-coral { width: 100%; }
.tsj-modal-x {
  position: absolute; top: 0.7rem; right: 0.7rem; width: 34px; height: 34px;
  border: 0; background: transparent; color: var(--ink-soft); font-size: 1.1rem; line-height: 1;
  border-radius: 10px; cursor: pointer;
}
.tsj-modal-x:hover { background: rgba(0, 0, 0, 0.06); color: var(--ink); }
.tsj-modal[open] { animation: tsjModalIn 0.22s ease both; }
.tsj-modal::backdrop { animation: tsjFade 0.22s ease both; }
@keyframes tsjModalIn { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes tsjFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tsj-modal[open], .tsj-modal::backdrop { animation: none; } }

/* ── Header & Navigation ────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 241, 0.92); backdrop-filter: blur(10px);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  max-width: 1160px; margin: 0 auto; padding: 0.7rem clamp(1.1rem, 4vw, 2rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); }
.brand svg { width: 46px; height: 46px; flex: none; }
/* Original-Praxislogo: Strichzeichnung Hund/Katze/Kaninchen, Weiß freigestellt */
.brand-logo { height: 52px; width: auto; flex: none; }
@media (max-width: 1100px) { .brand-logo { height: 44px; } }
/* Untertitel ab mittlerer Breite ausblenden – er ist das breiteste
   Element der Wortmarke und drängt die Navigation sonst zusammen. */
@media (max-width: 1250px) { .brand-name small { display: none; } }
.brand-name { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name strong { font-family: var(--font-display); font-size: 1.12rem; font-weight: 640; }
.brand-name small { font-size: 0.78rem; color: var(--ink-soft); }

.main-nav { display: flex; align-items: center; gap: clamp(0.6rem, 1.5vw, 1.3rem); }
/* nowrap + flex:none – ohne das schrumpfen die Punkte unter ihre Textbreite
   und brechen um, obwohl in der Kopfzeile noch Platz frei ist. */
.main-nav > a {
  text-decoration: none; color: var(--ink); font-weight: 650; font-size: 0.98rem;
  padding: 0.35rem 0.15rem; border-bottom: 2px solid transparent;
  white-space: nowrap; flex: none;
}
.main-nav > a:hover, .main-nav > a[aria-current="page"] { color: var(--blau-dark); border-bottom-color: var(--amber); }
.main-nav > a.nav-cta, .main-nav > a.nav-cta:hover { color: #fff; border-bottom: 0; }
.main-nav .nav-cta { padding: 0.6rem 1.15rem; border-bottom: 0; flex: none; white-space: nowrap; }
.main-nav .nav-cta span { white-space: nowrap; }

.nav-toggle { display: none; }

/* Menü-Umschaltpunkt bei 1100px: darunter reicht die Breite für die
   fünf Punkte plus Telefon-Button nicht mehr aus. */
@media (max-width: 1100px) {
  /* backdrop-filter würde das fixe Menü-Overlay im Header einfangen */
  .site-header { backdrop-filter: none; background: var(--sand); }

  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 46px; padding: 10px; border: 1px solid var(--line); border-radius: 12px;
    background: #fff; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .main-nav {
    position: fixed; inset: 0; top: 0; z-index: 40;
    padding: calc(var(--header-h, 5.5rem) + 1.6rem) 2rem 2rem;
    flex-direction: column; align-items: flex-start; gap: 1.2rem;
    background: var(--sand); transform: translateX(100%); transition: transform 0.25s ease;
    overflow-y: auto;
  }
  body.nav-open .main-nav { transform: translateX(0); }
  .main-nav > a { font-size: 1.3rem; }
  .site-header { z-index: 60; }
  .nav-toggle { position: relative; z-index: 70; }

  /* Bei offenem Menü die Kopfzeile fest oben verankern: sticky allein reicht
     nicht, weil sie bei Scrollposition 0 noch unter Banner und Topbar liegt. */
  body.nav-open .site-header { position: fixed; top: 0; left: 0; right: 0; }

  /* Scrollsperre für den Hintergrund. Bewusst innerhalb der Media Query:
     bliebe die Klasse beim Wechsel auf Desktopbreite hängen, wäre die Seite
     sonst gar nicht mehr scrollbar. */
  html.nav-locked, html.nav-locked body { overflow: hidden; }
}

/* ── Bildschirmfüllender Hero (Startseite) ──────────────────── */
/* Randloses Bildband über die volle Breite – deutlich flacher als ein
   klassischer Hero, weil der Text darunter steht und nicht darauf. */
.hero-bild { height: clamp(260px, 42vh, 460px); overflow: hidden; }
.hero-bild img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }

.hero-text { padding: clamp(2rem, 4.5vw, 3.6rem) 0 clamp(1.4rem, 3vw, 2.2rem); }
.hero-text h1 {
  max-width: 24ch; text-wrap: balance;
  font-size: clamp(2.2rem, 5vw, 3.9rem); line-height: 1.06;
  margin-bottom: 1.5rem;
}
/* Zweite Zeile als eigener Block, damit sie für sich ausgeglichen umbricht
   („der Tierarzt in Schorndorf, / dem die Tiere vertrauen") */
.hero-text h1 .h1-zeile { display: block; text-wrap: balance; }

.hero-status-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.5rem;
  padding: 0.9rem 0 0; border-top: 1px solid var(--line);
  margin-top: clamp(1.3rem, 2.6vw, 1.9rem); color: var(--ink-soft); font-size: 0.93rem;
}

@media (max-width: 700px) {
  .hero-text h1 { max-width: none; }
  /* Untereinander gestapelt würden vier Angaben zu viel Platz kosten */
  .hero-status-bar span:nth-child(n+3) { display: none; }
}

/* ── Bild-Kopf für Unterseiten ──────────────────────────────── */
.page-hero {
  position: relative; overflow: hidden;
  min-height: clamp(240px, 40vh, 400px);
  display: grid; align-items: end;
}
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 53, 69, 0.55) 0%, rgba(7, 53, 69, 0.34) 30%, rgba(7, 53, 69, 0.86) 70%, rgba(7, 53, 69, 0.97) 100%);
}
.page-hero-inner { position: relative; z-index: 2; width: 100%; padding-block: clamp(1.6rem, 4vw, 2.8rem); }
.page-hero h1 { color: #fff; margin-bottom: 0.35rem; }
.page-hero p { color: #d9e9f0; margin: 0; max-width: 56ch; font-size: 1.05rem; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero::before {
  content: ""; position: absolute; top: -220px; right: -180px; width: 640px; height: 640px;
  background: radial-gradient(closest-side, var(--himmel-strong), transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; position: relative; }
.hero-copy { position: relative; z-index: 2; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin: 1.6rem 0 0; }
.hero-tel { text-align: left; }
.hero-tel .tel-num { display: block; font-size: 1.02rem; }
.hero-tel .tel-note { display: block; font-size: 0.78rem; font-weight: 500; opacity: 0.8; }

.hero-facts { list-style: none; margin: 1.8rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.9rem 1.4rem; }
.hero-facts li { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; font-weight: 600; color: var(--ink-soft); }
.hero-facts svg { width: 19px; height: 19px; color: var(--blau); flex: none; }

.hero-media { position: relative; z-index: 1; }
.hero-media img {
  width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.hero-media::after {
  content: ""; position: absolute; inset: auto -14px -14px auto; width: 58%; height: 58%;
  border: 3px solid var(--amber); border-radius: var(--radius-lg); z-index: -1;
  transform: translate(0, 0);
}
.hero-status {
  position: absolute; left: 18px; bottom: 18px;
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(6px);
  border-radius: 14px; padding: 0.6rem 0.9rem; box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 0.2rem;
}
.hero-status small { color: var(--ink-soft); }

/* schwebende Pfoten */
.paw-float { position: absolute; color: var(--blau); opacity: 0.1; pointer-events: none; z-index: 0; }
.paw-float svg { width: 100%; height: 100%; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media img { aspect-ratio: 16 / 10; }
}

/* ── Notdienst-Streifen ─────────────────────────────────────── */
/* Signalroter Banner: dunkleres Korallrot, weil das Standardrot
   weiße Schrift nicht mit 4.5:1 trägt. */
.notfall-strip { background: #bf3b26; border-block: 1px solid #bf3b26; }
.notfall-strip-inner {
  max-width: 1160px; margin: 0 auto; padding: 0.85rem clamp(1.1rem, 4vw, 2rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  color: #fff; font-size: 0.98rem;
}
.notfall-strip p { margin: 0; }
.notfall-strip strong { color: #fff; }
.notfall-strip .link-arrow { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ── Sektionen ──────────────────────────────────────────────── */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-tight { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.band-himmel { background: linear-gradient(180deg, var(--himmel), #eef6fa); }
/* Große Farbfläche im Praxisblau – das prägende Gestaltungselement.
   Der Ton ist bewusst hell; getönte Schrift käme darauf unter 4.5:1,
   deshalb ist hier konsequent alles weiß. */
.band-blau { background: var(--blau); color: #fff; }
/* Doppelte Klasse: hebt die Spezifität gerade so weit an, dass auch später
   definierte Regeln wie `.feature-text p` sicher überschrieben werden.
   Die Ausnahmen für weiße Karten weiter unten haben denselben Wert und
   gewinnen dank ihrer Position. */
.band-blau.band-blau h2, .band-blau.band-blau h3, .band-blau.band-blau strong { color: #fff; }
.band-blau.band-blau p, .band-blau.band-blau .lead, .band-blau.band-blau li,
.band-blau.band-blau dd, .band-blau.band-blau small { color: #fff; }
.band-blau .eyebrow { color: #fff; }
.band-blau .eyebrow::before { background: #fff; }
.band-blau .link-arrow { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
/* Fließtext-Links erben sonst --blau und wären auf der Fläche unsichtbar.
   Buttons sind ausgenommen, sie bekommen weiter unten weißen Grund. */
.band-blau.band-blau a:not(.btn) { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.band-blau.band-blau a:not(.btn):hover { color: var(--himmel); }
.band-blau .arten-rest { color: #fff; border-left-color: rgba(255, 255, 255, 0.5); }
.band-blau .art-item img { border-color: rgba(255, 255, 255, 0.7); }
.band-blau .art-item span { color: #fff; }
.band-blau .section-head p { color: #fff; }
.band-blau .checklist svg { color: #fff; }
.band-blau .checklist strong, .band-blau .checklist span { color: #fff; }
.band-blau .btn-primary, .band-blau .btn-quiet { background: #fff; color: var(--blau-dark); border-color: #fff; }
.band-blau .btn-primary:hover, .band-blau .btn-quiet:hover { background: var(--himmel); color: var(--blau-dark); }
.band-blau .btn-quiet:hover { background: var(--himmel); }
.band-blau .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.band-blau .btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }
/* Helle Bauteile innerhalb der Fläche behalten ihre eigenen Textfarben.
   Ohne diese Ausnahmen färbten die weißen Regeln oben auch die Schrift in
   weißen Karten und in den hellen Hinweisboxen weiß – dort unlesbar. */
.band-blau :is(.team-card, .symptom-card, .kontakt-card, .faq-item, .info-box) { color: var(--ink); }
.band-blau.band-blau :is(.team-card, .symptom-card, .kontakt-card, .faq-item, .info-box)
  :is(h2, h3, h4, strong) { color: var(--ink); }
.band-blau.band-blau :is(.team-card, .symptom-card, .kontakt-card, .faq-item, .info-box)
  :is(p, li, small, dd, span) { color: var(--ink-soft); }
.band-blau.band-blau :is(.team-card, .symptom-card, .kontakt-card, .info-box)
  a:not(.btn) { color: var(--blau-dark); }
.band-blau.band-blau .team-card .team-role { color: var(--blau); }
.band-blau.band-blau .team-fokus span { color: var(--blau-dark); }

.section-head { max-width: 660px; margin-bottom: clamp(1.6rem, 3.5vw, 2.6rem); }
.section-head p { color: var(--ink-soft); }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; max-width: none; }
.section-head-row > div { max-width: 660px; }

/* Reveals */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }

/* ── Kompass-Karten ─────────────────────────────────────────── */
.kompass-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.kompass-card {
  display: flex; flex-direction: column; gap: 0.8rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.3rem; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-sm); transition: transform 0.18s ease, box-shadow 0.18s ease;
  will-change: transform;
}
.kompass-card:hover { box-shadow: var(--shadow-md); }
.kompass-card h3 { margin: 0 0 0.25rem; font-size: 1.08rem; }
.kompass-card p { margin: 0; font-size: 0.94rem; color: var(--ink-soft); }
.k-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--himmel); color: var(--blau-dark);
}
.k-icon svg { width: 24px; height: 24px; }
.k-go { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: auto; font-weight: 700; font-size: 0.92rem; color: var(--blau-dark); }
.k-go svg { width: 16px; height: 16px; transition: transform 0.18s ease; }
.kompass-card:hover .k-go svg { transform: translateX(4px); }
.kompass-card.is-emergency { background: var(--coral-soft); border-color: #f2cfc5; }
.kompass-card.is-emergency .k-icon { background: #fadcd4; color: var(--coral); }
.kompass-card.is-emergency .k-go { color: #a03c26; }

@media (max-width: 900px) { .kompass-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .kompass-grid { grid-template-columns: 1fr; } }

/* ── Startseite: Leistungs-Raster, 1 groß + 2 klein ─────────── */
.feature-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 1.1rem;
}
.feature-grid > a:first-child { grid-row: span 2; }
.feature-card {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius-lg); text-decoration: none; color: #fff;
  min-height: 240px; box-shadow: var(--shadow-md);
}
.feature-grid > a:first-child .feature-card, .feature-card.is-tall { min-height: 100%; }
.feature-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.feature-card:hover img { transform: scale(1.04); }
.feature-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 53, 69, 0.1) 25%, rgba(7, 53, 69, 0.94));
}
.feature-text { position: absolute; inset: auto 0 0 0; padding: 1.4rem 1.5rem; z-index: 2; }
.feature-text h3 { color: #fff; margin: 0 0 0.25rem; font-size: 1.3rem; }
.feature-text p { margin: 0; font-size: 0.95rem; color: #d3e7f0; }
.feature-grid > a:first-child .feature-text h3 { font-size: 1.6rem; }

@media (max-width: 820px) {
  .feature-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .feature-grid > a:first-child { grid-row: auto; }
  .feature-card { min-height: 260px; }
}

/* Kopfzeile mit Überschrift links, Link rechts – ohne Lead-Absatz */
.head-inline {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.6rem;
}
.head-inline h2 { margin: 0; max-width: 22ch; }
.arten-line { margin: 1.4rem 0 0; font-size: 0.97rem; color: var(--ink-soft); }

/* ── Tierarten: runde Porträts ──────────────────────────────── */
.arten-grid { display: flex; flex-wrap: wrap; gap: clamp(1.2rem, 3vw, 2.4rem); align-items: flex-start; }
/* figure bringt browserseitig 40px Seitenrand mit – sonst passt nur eins pro Zeile */
.art-item { margin: 0; text-align: center; width: clamp(88px, 13vw, 150px); }
.art-item img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  box-shadow: var(--shadow-md); border: 4px solid #fff;
}
.art-item span { display: block; margin-top: 0.65rem; font-weight: 650; font-size: 0.95rem; }
.arten-rest {
  align-self: center; max-width: 24ch; font-size: 0.97rem; color: var(--ink-soft); margin: 0;
  border-left: 3px solid var(--himmel-strong); padding-left: 1rem;
}

/* ── Google-Rezensionen ─────────────────────────────────────── */
.rez-head-row { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.rez-head-row h2 { margin: 0; }
.rez-quelle {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 0.35rem 0.9rem; font-size: 0.87rem; font-weight: 650; box-shadow: var(--shadow-sm);
}
.rez-quelle svg { width: 16px; height: 16px; }

.rez-grid {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr);
  gap: 1.1rem; overflow-x: auto; padding-bottom: 0.8rem;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.rez-card {
  scroll-snap-align: start; margin: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.5rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 0.7rem;
}
.rez-head { display: flex; align-items: center; gap: 0.7rem; }
.rez-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--himmel); color: var(--blau-dark);
  display: grid; place-items: center; font-weight: 700; font-size: 0.9rem;
}
.rez-meta { display: flex; flex-direction: column; line-height: 1.3; }
.rez-meta strong { font-size: 0.97rem; }
.rez-meta time { font-size: 0.83rem; color: var(--ink-soft); }
.rez-stars { display: inline-flex; gap: 2px; color: var(--amber); }
.rez-stars svg { width: 17px; height: 17px; }
.rez-card blockquote { margin: 0; font-size: 0.97rem; color: var(--ink-soft); }
.rez-card blockquote::before { content: "„"; }
.rez-card blockquote::after { content: "“"; }
.rez-note { margin: 1rem 0 0; font-size: 0.86rem; color: var(--ink-soft); }

@media (max-width: 700px) { .rez-grid { grid-auto-columns: minmax(84%, 1fr); } }

/* ── Startseite: Praxisgeschichte mit großer Jahreszahl ─────── */
.story { position: relative; background: var(--blau); color: #fff; overflow: hidden; }
.story-grid { display: grid; grid-template-columns: 1fr 0.85fr; align-items: stretch; }
.story-copy { padding: clamp(2.5rem, 6vw, 5rem) clamp(1.1rem, 4vw, 3rem) clamp(2.5rem, 6vw, 5rem) 0; }
.story-year {
  font-family: var(--font-display); font-weight: 620; line-height: 0.9;
  font-size: clamp(4.5rem, 13vw, 9rem); color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.55);
  margin: 0 0 0.4rem;
}
.story-copy h2 { color: #fff; max-width: 20ch; }
.story-copy p { max-width: 46ch; }
.story-copy .link-arrow { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.story-media { position: relative; }
.story-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-copy { padding: clamp(2.5rem, 7vw, 4rem) clamp(1.1rem, 4vw, 2rem); }
  .story-media { height: 300px; }
}

/* ── Startseite: Sprechzeiten + Anfahrt in einer Sektion ─────── */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.duo h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.zeiten-table { width: 100%; border-collapse: collapse; margin: 1.1rem 0; }
.zeiten-table th, .zeiten-table td { text-align: left; padding: 0.62rem 0; border-bottom: 1px solid var(--line); }
.zeiten-table th { font-weight: 700; padding-right: 1.2rem; white-space: nowrap; }
.zeiten-table tr:last-child th, .zeiten-table tr:last-child td { border-bottom: 0; }
.duo .map-frame { min-height: 300px; }
.duo .map-frame iframe { min-height: 300px; }
.adresse-block { margin-top: 1.1rem; font-size: 0.97rem; color: var(--ink-soft); }
.adresse-block strong { color: var(--ink); }
@media (max-width: 820px) { .duo { grid-template-columns: 1fr; } }

/* ── Schlanker Abschluss-CTA ─────────────────────────────────── */
/* Kräftiges, dunkelblaues Panel – setzt sich klar von den hellen Bändern
   darüber ab und wirkt als Abschluss hochwertiger als ein heller Kasten. */
.cta-slim {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap;
  background: linear-gradient(115deg, var(--blau), #06657f);
  color: #fff; border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3.6vw, 2.4rem) clamp(1.5rem, 4vw, 2.8rem);
  box-shadow: var(--shadow-lg);
}
.cta-slim::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 240px; height: 240px;
  background: radial-gradient(closest-side, rgba(4, 58, 76, 0.35), transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.cta-slim > * { position: relative; z-index: 1; }
.cta-slim h2 { margin: 0 0 0.2rem; font-size: clamp(1.3rem, 2.4vw, 1.7rem); color: #fff; }
.cta-slim p { margin: 0; color: #fff; font-size: 0.97rem; }
.cta-slim .hero-actions { margin: 0; }
/* Buttons im dunklen Panel lesbar halten – unabhängig von ihrer Grundklasse. */
.cta-slim .btn-primary { background: #fff; color: var(--blau-dark); }
.cta-slim .btn-primary:hover { background: var(--himmel); color: var(--blau-deep); }
.cta-slim .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.cta-slim .btn-ghost:hover { background: #fff; color: var(--blau-dark); border-color: #fff; }
.cta-slim .btn-quiet { background: rgba(255, 255, 255, 0.14); color: #fff; }
.cta-slim .btn-quiet:hover { background: #fff; color: var(--blau-dark); }

/* ── Bildband über die volle Breite (Unterseiten) ────────────── */
.bildband { position: relative; height: clamp(220px, 34vw, 380px); overflow: hidden; }
/* Hochformate und quadratische Aufnahmen zeigen sonst nur den Bildmittelpunkt */
.bildband img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
.bildband-text {
  position: absolute; inset: auto 0 0 0; padding: clamp(1.4rem, 4vw, 2.4rem) 0;
  background: linear-gradient(transparent, rgba(7, 53, 69, 0.85));
}
.bildband-text .wrap { color: #fff; }
.bildband-text p { margin: 0; max-width: 46ch; color: #dae9f0; font-size: 0.98rem; }
.bildband-text strong { display: block; font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 0.2rem; }

/* ── Leistungs-Teaser (Foto-Karten) ─────────────────────────── */
.leist-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.leist-card {
  display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.leist-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.leist-card img { aspect-ratio: 3 / 2; object-fit: cover; }
.leist-body { padding: 1.2rem 1.3rem 1.4rem; }
.leist-meta { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--amber); }
.leist-body h3 { margin: 0.35rem 0 0.4rem; }
.leist-body p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }

@media (max-width: 860px) { .leist-grid { grid-template-columns: 1fr; } }

/* ── Tierarten-Band ─────────────────────────────────────────── */
.tiere-band { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.tier-chip {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 0.55rem 1.1rem; font-weight: 650; font-size: 0.95rem; box-shadow: var(--shadow-sm);
}
.tier-chip svg { width: 21px; height: 21px; color: var(--blau); }

/* ── Split-Layouts & Checklisten ────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; object-fit: cover; }
.split .img-tall { aspect-ratio: 4 / 4.6; }
.split-media-left img { order: -1; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split .img-tall { aspect-ratio: 16 / 11; }
}

.checklist { list-style: none; margin: 1.4rem 0; padding: 0; display: grid; gap: 1rem; }
.checklist li { display: flex; gap: 0.8rem; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; color: var(--blau); flex: none; margin-top: 0.15rem; }
.checklist strong { display: block; }
.checklist span { color: var(--ink-soft); font-size: 0.97rem; }

/* ── Zahlen / Stats ─────────────────────────────────────────── */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2rem; }
.stat-card { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.stat-num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 620; color: #fff; line-height: 1.1; }
.stat-num small { font-size: 1.3rem; }
.stat-card p { margin: 0.3rem 0 0; font-size: 0.93rem; color: #b5d4e0; }
@media (max-width: 700px) { .stats-row { grid-template-columns: 1fr; } }

/* ── Zeiten ─────────────────────────────────────────────────── */
.zeiten-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: stretch; }
.zeiten-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.7rem; box-shadow: var(--shadow-sm);
}
.zeiten-card h3 { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.8rem; }
.zeiten-card h3 svg { width: 22px; height: 22px; color: var(--blau); }
.zeiten-card table { width: 100%; border-collapse: collapse; margin-top: 0.9rem; }
.zeiten-card th, .zeiten-card td { text-align: left; padding: 0.55rem 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.zeiten-card th { font-weight: 700; padding-right: 1rem; white-space: nowrap; }
.zeiten-card tr:last-child th, .zeiten-card tr:last-child td { border-bottom: 0; }
.z-note { font-size: 0.92rem; color: var(--ink-soft); margin: 0.9rem 0 0; }
@media (max-width: 820px) { .zeiten-grid { grid-template-columns: 1fr; } }

/* ── Aktuelles ──────────────────────────────────────────────── */
.news-teaser { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.news-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.5rem; box-shadow: var(--shadow-sm);
}
.news-meta { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.7rem; font-size: 0.85rem; color: var(--ink-soft); }
.news-tag {
  background: var(--himmel); color: var(--blau-dark); font-weight: 700;
  border-radius: 999px; padding: 0.15rem 0.7rem; font-size: 0.78rem;
}
.news-card h3 { font-size: 1.05rem; }
.news-card p {
  margin: 0; font-size: 0.93rem; color: var(--ink-soft);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 860px) { .news-teaser { grid-template-columns: 1fr; } }

/* ── Karte / Anfahrt ────────────────────────────────────────── */
.map-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); min-height: 340px; }
.map-frame iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; }

/* Karte lädt erst auf Klick (DSGVO): bis dahin ein Platzhalter mit Adresse.
   Erst der Klick baut das OpenStreetMap-iframe ein und überträgt die IP. */
.map-consent {
  display: grid; place-items: center; text-align: center;
  padding: clamp(1.6rem, 4vw, 2.4rem) 1.4rem;
  background: linear-gradient(160deg, var(--himmel), #eef6fa);
}
.map-consent-inner { max-width: 360px; }
.map-consent-pin { width: 42px; height: 42px; color: var(--blau); margin: 0 auto 0.7rem; }
.map-consent p { margin: 0 0 0.5rem; }
.map-consent-adr { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
.map-consent-note { font-size: 0.85rem; color: var(--ink-soft); }
.map-consent-btn { margin-top: 0.5rem; }
.map-consent-alt { margin-top: 0.9rem; font-size: 0.85rem; }
.map-consent-alt a { color: var(--blau-dark); }

/* ── Abschluss-CTA ──────────────────────────────────────────── */
.cta-panel {
  position: relative; overflow: hidden;
  background: linear-gradient(115deg, var(--blau), #06657f);
  border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem);
  color: #fff; box-shadow: var(--shadow-lg);
}
.cta-panel h2 { color: #fff; }
.cta-panel .eyebrow { color: #fff; }
.cta-panel::after {
  content: ""; position: absolute; right: -70px; bottom: -70px; width: 280px; height: 280px;
  background: radial-gradient(closest-side, rgba(4, 58, 76, 0.4), transparent 70%); border-radius: 50%;
}

/* ── Leistungsseite: Filter + Karten ────────────────────────── */
.filter-row { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 1.8rem; }
.filter-chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 0.5rem 1.1rem; font-family: var(--font-body);
  font-size: 0.92rem; font-weight: 650; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.filter-chip:hover { border-color: var(--blau); }
.filter-chip.is-active { background: var(--blau); border-color: var(--blau); color: #fff; }

.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.service-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.6rem; box-shadow: var(--shadow-sm);
}
.service-card.is-hidden { display: none; }
.service-card h3 { display: flex; align-items: center; gap: 0.65rem; }
.service-card h3 svg { width: 24px; height: 24px; color: var(--blau); flex: none; }
.service-card ul { margin: 0.6rem 0 0; padding-left: 1.2rem; color: var(--ink-soft); font-size: 0.97rem; }
.service-card ul li { margin-bottom: 0.3rem; }
.service-cat-label { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); }
@media (max-width: 820px) { .service-grid { grid-template-columns: 1fr; } }

.info-box {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--amber-soft); border: 1px solid #f3ddb4; border-radius: var(--radius);
  padding: 1.4rem 1.5rem; margin-top: 2rem;
}
.info-box svg { width: 26px; height: 26px; color: var(--amber); flex: none; margin-top: 0.2rem; }
.info-box p { margin: 0; font-size: 0.97rem; }

/* ── Team & Zeitstrahl ──────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.team-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.8rem; box-shadow: var(--shadow-sm);
}
.team-card .team-role { color: var(--blau); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; }
.team-card h3 { margin: 0.2rem 0 0.7rem; font-size: 1.35rem; }
.team-card ul { padding-left: 1.2rem; color: var(--ink-soft); font-size: 0.96rem; margin: 0.7rem 0; }
.team-card ul li { margin-bottom: 0.3rem; }
.vita { padding-left: 1.2rem; color: var(--ink-soft); font-size: 0.96rem; margin: 0.9rem 0 0; }
.vita li { margin-bottom: 0.35rem; }

/* Hundefotos ohne jeden Zuschnitt an den Profiaufnahmen: die
   Spaltenbreiten sind aus den Seitenverhaeltnissen abgeleitet, dann
   stehen die Unterkanten von selbst buendig.
   Reihe A: Querformat 3:2 neben Hochformat 2:3. Damit beide gleich hoch
   werden, verhalten sich die Breiten wie 2.25 : 1 - das gilt bei jeder
   Fensterbreite, weil beide linear mitskalieren. */
.hunde-reihen { margin-top: clamp(1.8rem, 4vw, 2.8rem); display: grid; gap: 1.1rem; }
.hunde-reihe { display: grid; gap: 1.1rem; }
.hunde-reihe-a { grid-template-columns: 2.25fr 1fr; }
.hunde-reihe-b { grid-template-columns: 1fr 1fr; }
.hunde-reihe figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.hunde-reihe img { display: block; width: 100%; height: auto; }
/* Nur in Reihe B wird auf ein gemeinsames Format gebracht. Das eine Bild
   liegt bereits exakt auf 3:2, das andere traegt kein Wasserzeichen. */
.hunde-reihe-b img { aspect-ratio: 3 / 2; object-fit: cover; }
.bild-credit { margin: 0.9rem 0 0; font-size: 0.8rem; color: var(--ink-soft); }
@media (max-width: 700px) {
  .hunde-reihe-a, .hunde-reihe-b { grid-template-columns: 1fr; }
}
.team-fokus { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1rem; }
.team-fokus span {
  background: var(--himmel); color: var(--blau-dark); border-radius: 999px;
  padding: 0.28rem 0.85rem; font-size: 0.83rem; font-weight: 650;
}
@media (max-width: 820px) { .team-grid { grid-template-columns: 1fr; } }

.timeline { position: relative; margin: 2.4rem 0 0; padding-left: 2rem; list-style: none; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 3px;
  background: linear-gradient(180deg, var(--himmel-strong), var(--blau)); border-radius: 3px;
}
.timeline li { position: relative; padding: 0 0 1.8rem 1.2rem; }
.timeline li:last-child { padding-bottom: 0; }
/* Punkt mittig auf der Linie: Linie sitzt bei left:8px (3px breit, Mitte 9,5px);
   die li beginnen 2rem vom Zeitstrahl-Rand. So liegt die 13px-Kugel genau auf
   der Linie statt daneben. */
.timeline li::before {
  content: ""; position: absolute; left: calc(-2rem + 3px); top: 0.42rem; width: 13px; height: 13px;
  border-radius: 50%; background: var(--amber); border: 3px solid var(--sand); box-shadow: 0 0 0 2px var(--amber);
}
.timeline .tl-year { font-family: var(--font-display); font-size: 1.3rem; font-weight: 620; color: var(--blau-dark); }
.timeline p { margin: 0.15rem 0 0; color: var(--ink-soft); }

/* ── Galerie / Rundgang ─────────────────────────────────────── */
.galerie-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.galerie-item {
  position: relative; border: 0; padding: 0; background: none; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.galerie-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.galerie-item img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.galerie-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.6rem 1rem 0.8rem;
  background: linear-gradient(transparent, rgba(7, 53, 69, 0.82));
  color: #fff; font-size: 0.9rem; font-weight: 600; text-align: left;
}
@media (max-width: 860px) { .galerie-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .galerie-grid { grid-template-columns: 1fr; } }

dialog#lightbox {
  border: 0; border-radius: var(--radius); padding: 0; max-width: min(92vw, 1000px);
  background: var(--blau-deep); color: #fff; box-shadow: var(--shadow-lg);
}
dialog#lightbox::backdrop { background: rgba(8, 30, 28, 0.82); backdrop-filter: blur(4px); }
#lightbox figure { margin: 0; }
#lightbox img { max-height: 74vh; width: 100%; object-fit: contain; background: #04222b; }
#lightbox figcaption { padding: 0.8rem 1.2rem; font-size: 0.95rem; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0.8rem; }
.lb-bar button {
  border: 0; background: rgba(255, 255, 255, 0.1); color: #fff; border-radius: 10px;
  padding: 0.45rem 0.9rem; font-size: 1rem; cursor: pointer;
}
.lb-bar button:hover { background: rgba(255, 255, 255, 0.22); }
.lb-counter { font-size: 0.9rem; opacity: 0.8; }

/* ── Notdienst-Seite ────────────────────────────────────────── */
.notruf-hero {
  background: linear-gradient(115deg, #7d2817, #b03a24); color: #ffe9e3;
  border-radius: var(--radius-lg); padding: clamp(1.8rem, 4.5vw, 3rem); box-shadow: var(--shadow-lg);
}
.notruf-hero h2 { color: #fff; margin-bottom: 0.4rem; }
.notruf-number {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-display); font-size: clamp(1.7rem, 4.5vw, 2.6rem); font-weight: 640;
  color: #fff; text-decoration: none; margin: 0.4rem 0;
}
.notruf-number svg { width: 30px; height: 30px; }
.notruf-hero small { display: block; font-size: 0.95rem; color: #ffe9e3; }

.symptom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.symptom-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.6rem; box-shadow: var(--shadow-sm); }
.symptom-card.is-red { border-top: 4px solid var(--coral); }
.symptom-card.is-amber { border-top: 4px solid var(--amber); }
.symptom-card ul { margin: 0.6rem 0 0; padding-left: 1.2rem; color: var(--ink-soft); }
.symptom-card ul li { margin-bottom: 0.35rem; }
@media (max-width: 820px) { .symptom-grid { grid-template-columns: 1fr; } }

/* Eskalations-Stufen: klare 1-2-3-Reihenfolge, wen man wann anruft. */
.eskalation { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 0.8rem; max-width: 760px; }
.eskalation li {
  counter-increment: step; display: flex; gap: 1rem; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 1.05rem 1.3rem;
}
.eskalation li::before {
  content: counter(step); flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--blau); color: #fff; font-family: var(--font-display); font-weight: 700;
  display: grid; place-items: center; font-size: 0.98rem; margin-top: 0.05rem;
}
.eskalation .es-body { display: flex; flex-direction: column; gap: 0.15rem; }
.eskalation strong { font-size: 1.02rem; }
.eskalation span { color: var(--ink-soft); font-size: 0.96rem; }
.eskalation a { font-weight: 650; }

/* ── Formulare ──────────────────────────────────────────────── */
.form-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.4rem); box-shadow: var(--shadow-md);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field.span-2 { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 0.92rem; }
.field label small { font-weight: 500; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 0.75rem 0.9rem; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--blau); outline-offset: 1px; border-color: var(--blau);
}
.field [aria-invalid="true"] { border-color: var(--coral); }
.field-error { min-height: 1.1em; font-size: 0.84rem; color: var(--coral); }
.field-hint { font-size: 0.86rem; color: var(--ink-soft); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.check-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; }
.check-row label { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 550; font-size: 0.95rem; }
.check-row input { accent-color: var(--blau); width: 18px; height: 18px; }
.form-actions { margin-top: 1.4rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-note { font-size: 0.86rem; color: var(--ink-soft); }
.form-success {
  background: var(--himmel); border: 1px solid var(--himmel-strong); border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
}
.form-success h3 { display: flex; align-items: center; gap: 0.6rem; color: var(--blau-dark); }
.form-success svg { width: 26px; height: 26px; color: var(--blau); }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

/* ── Kontakt-Karten ─────────────────────────────────────────── */
/* auto-fit statt fester Spaltenzahl: Der Block wird mit zwei wie mit drei
   Karten gleichmäßig gefüllt, ohne leere Spalte am Rand. */
.kontakt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 1.2rem; }
.kontakt-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.6rem; box-shadow: var(--shadow-sm);
}
.kontakt-card h3 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.08rem; }
.kontakt-card h3 svg { width: 22px; height: 22px; color: var(--blau); }
.kontakt-card p { margin: 0.4rem 0 0; color: var(--ink-soft); font-size: 0.97rem; }
/* Die Zeilen sind durch <br> getrennt und koennen keinen Aussenabstand
   bekommen; die groessere Zeilenhoehe entspricht dem Absatzabstand
   in der Karte daneben. */
.kontakt-card p.zeiten-liste { line-height: 2.05; }
.kontakt-card a { font-weight: 650; }
@media (max-width: 860px) { .kontakt-grid { grid-template-columns: 1fr; } }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer { margin-top: clamp(3rem, 7vw, 5rem); background: var(--blau); color: #fff; }
/* Endet die Seite mit einer vollflächigen Farbfläche, entfiele sonst kein
   Abstand, sondern es bliebe ein heller Streifen zwischen zwei Blauflächen. */
main:has(> section:last-child.band-blau) + .site-footer { margin-top: 0; border-top: 1px solid rgba(255, 255, 255, 0.28); }
.footer-main {
  max-width: 1160px; margin: 0 auto; padding: clamp(2.5rem, 5vw, 4rem) clamp(1.1rem, 4vw, 2rem) 2rem;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem;
}
.footer-main .brand { color: #fff; }
.footer-main .brand-name small { color: #fff; }
.footer-brand p { font-size: 0.95rem; margin-top: 1rem; }
.footer-col strong { display: block; color: #fff; margin-bottom: 0.8rem; font-size: 1rem; }
.footer-col a { display: block; color: #fff; text-decoration: none; padding: 0.22rem 0; font-size: 0.96rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col p { font-size: 0.96rem; margin: 0 0 0.7rem; }
.footer-notdienst {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  max-width: 1160px; margin: 0 auto; padding: 1rem clamp(1.1rem, 4vw, 2rem);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; align-items: center; font-size: 0.95rem;
}
.footer-notdienst strong { color: #fff; }
.footer-notdienst a { color: #fff; font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.footer-bottom-inner {
  max-width: 1160px; margin: 0 auto; padding: 1rem clamp(1.1rem, 4vw, 2rem);
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; align-items: center; justify-content: space-between;
  font-size: 0.86rem; color: #fff;
}
.footer-bottom nav { display: flex; gap: 1.2rem; }
.footer-bottom a { color: #fff; }
/* Hinweis auf die Agentur: bewusst klein und zurueckhaltend. Die Farbe erbt
   von der Fusszeile, damit sie in jedem Design lesbar bleibt. */
.footer-credit {
  max-width: 1160px; margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2rem) 0.9rem;
  font-size: 0.72rem; color: inherit;
}
/* Unterstrichen, damit "Lejama" ohne sichtbare Adresse als Link erkennbar ist */
.site-footer .footer-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.site-footer .footer-credit a:hover { text-decoration-thickness: 2px; }
@media (max-width: 900px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-liste { display: grid; gap: 0.9rem; max-width: 820px; }
.faq-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
/* Hover hebt die weiße Karte an, statt sie in den hellblauen Band-Hintergrund
   einzufärben – so bleibt sie klar erkennbar. */
.faq-item:hover { border-color: var(--himmel-strong); box-shadow: var(--shadow-md); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.25rem 1.5rem;
  display: flex; align-items: flex-start; gap: 1rem;
  font-family: var(--font-display); font-size: 1.12rem; font-weight: 620; letter-spacing: -0.015em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; margin-left: auto; width: 12px; height: 12px;
  border-right: 2.5px solid var(--blau); border-bottom: 2.5px solid var(--blau);
  transform: rotate(45deg); transition: transform 0.2s ease; margin-top: 0.35rem;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item summary:hover { color: var(--blau-dark); }
.faq-item summary:hover .faq-q-icon { background: var(--himmel-strong); color: var(--blau-deep); }
.faq-q-icon {
  flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--himmel); color: var(--blau-dark);
}
.faq-q-icon svg { width: 17px; height: 17px; }
.faq-body { padding: 0 1.5rem 1.4rem; }
.faq-body > :first-child { margin-top: 0; }
.faq-body p:last-child { margin-bottom: 0; }

/* ── Stellenangebote: Auswahl vor dem Formular ──────────────── */
.wahl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; max-width: 900px; }
/* Symbol klein neben der Überschrift statt als eigener Block darüber:
   so gehört die Karte dem Text. */
.wahl-card {
  display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 0.75rem; row-gap: 0.7rem;
  align-content: start; text-align: left;
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem 2rem 1.8rem; cursor: pointer; font: inherit; color: var(--ink);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.wahl-card:hover { border-color: var(--blau); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.wahl-card .w-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--himmel); color: var(--blau-dark); }
.wahl-card .w-icon svg { width: 19px; height: 19px; }
.wahl-card > span:not(.w-icon) { grid-column: 1 / -1; line-height: 1.6; }
.wahl-card strong { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: -0.015em; }
.wahl-card span { font-size: 0.95rem; color: var(--ink-soft); }
@media (max-width: 700px) { .wahl-grid { grid-template-columns: 1fr; } }

.zurueck-btn {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 1.2rem;
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-weight: 650; color: var(--blau-dark);
}
.zurueck-btn svg { width: 17px; height: 17px; }
.zurueck-btn:hover { text-decoration: underline; }

/* ── Großer Telefon-Block (Kontaktseite) ────────────────────── */
.tel-panel {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem 2.4rem;
  background: linear-gradient(115deg, var(--blau), #06657f);
  border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 2.6rem);
  color: #fff; box-shadow: var(--shadow-lg);
}
.tel-panel h2 { color: #fff; margin: 0 0 0.3rem; }
.tel-panel p { margin: 0; font-size: 0.97rem; }
.tel-panel .btn { background: #fff; color: var(--blau-dark); border: 0; }
.tel-panel .btn:hover { background: var(--himmel); }
.tel-panel-text { flex: 1 1 300px; }

/* ── Rechtsseiten ───────────────────────────────────────────── */
.legal-page { max-width: 780px; }
.legal-page h2 { margin-top: 2.2rem; font-size: 1.35rem; }
.demo-hinweis {
  background: var(--amber-soft); border: 1px solid #f3ddb4; border-radius: var(--radius);
  padding: 1.2rem 1.4rem; font-size: 0.95rem; margin-bottom: 2rem;
}

/* Formular-Versand: unsichtbares Fangfeld gegen Bots, Fehlermeldung */
.hp-feld { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-fehler { margin: 1rem 0 0; padding: .8rem 1rem; border-radius: 10px; background: #fdecea; color: #8a1c12; font-size: .95rem; line-height: 1.5; }

