/* ============================================================
   NV LAB GMBH – Haupt-CSS
   Palette angelehnt an dev.kiso.care (Navy/Sage/Amber, helle Flächen)
   ============================================================ */

/* ── RESET & VARIABLEN ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Palette aus den Geschaeftspapieren (Petrol/Kupfer/Salbei), uebernommen
     2026-09-04. Die sechs Grundwerte stehen unveraendert, die uebrigen Tokens
     sind daraus abgeleitet - Zwischentoene fuer Verlaeufe und zwei Kupfer-
     Abstufungen, damit Text auf farbigem Grund die Kontrastschwelle 4.5:1
     erreicht (reines Kupfer #A9713F traegt mit Weiss nur 4.1:1). */
  --ink:        #1E4A52;   /* Petrol - Hero, Footer, Ueberschriften */
  --ink-mid:    #355D64;   /* Verlaufsmitte */
  --ink-light:  #40666C;   /* Icon-Badges */
  --sage:       #4C7075;   /* Verlaufsende, Weiss darauf 5.4:1 */
  --salbei:     #B9C9C7;   /* Salbei pur - Flaechen, nie Textgrund */
  --gold:       #875A32;   /* Kupfer abgedunkelt fuer Text/Buttons: auf Papier
                              5.5:1, auf Wechselflaeche 4.8:1, Weiss darauf 5.9:1 */
  --gold-pur:   #A9713F;   /* Kupfer im Original - Linien, Flaechen */
  --gold-lt:    #CDAD90;   /* Kupfer aufgehellt - auf Petrol 4.6:1 */
  --bg:         #F7F6F3;   /* Papier */
  --bg-dark:    #E4E8E6;   /* Wechselflaeche, aus Salbei aufgehellt */
  --paper:      #FDFDFB;   /* Nav-Leiste, helle Karten */
  --text:       #2B3A38;   /* Tinte */
  --text-lt:    #5C6A68;   /* Stumpf */
  --divider:    #CFD9D6;
  --white:      #FFFFFF;
  --red:        #C0392B;
  --green:      #27AE60;
  --radius:     10px;
  --radius-lg:  16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── TYPOGRAFIE ──────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  line-height: 1.2;
  color: var(--ink);
}
h1 { font-size: clamp(2.5rem, 4.4vw, 3.8rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 3.3vw, 2.9rem);   font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; font-weight: 600; }

h2.light, h3.light { color: var(--white); }
.page-hero h1 { color: var(--white); }

.section-light h1, .section-light h2, .section-light h3,
.section-muted h1, .section-muted h2, .section-muted h3,
.page-hero--muted h1, .page-hero--muted h2, .page-hero--muted h3 {
  color: var(--ink);
}

.eyebrow {
  display: block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
/* Auf dunklem Grund braucht die Eyebrow-Zeile den aufgehellten Kupferton:
   das Kupfer aus den Geschaeftspapieren traegt dort nur rund 1.9:1. */
.hero .eyebrow,
.section-dark .eyebrow { color: var(--gold-lt); }

.gold-rule {
  width: 64px; height: 4px;
  background: var(--gold-pur);
  margin: 20px auto 32px;
  border-radius: 2px;
}
.gold-rule.left { margin-left: 0; width: 80px; }

/* ── NAVIGATION ──────────────────────────────────────────── */
.main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--paper);
  height: 68px;
  box-shadow: 0 2px 16px rgba(30,74,82,.08);
  border-bottom: 1px solid var(--divider);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 32px;
  height: 100%; padding: 0 32px;
}
.nav-logo {
  display: flex; align-items: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem; color: var(--ink);
  letter-spacing: 0.04em; white-space: nowrap;
  font-weight: 600;
}
.nav-logo span { color: var(--gold); }
/* Schriftzug in der Navigation: eigene dunkle Fassung, weil eine per <img>
   eingebundene SVG keine CSS-Farbe uebernimmt. */
.nav-logo img { display: block; height: 38px; width: auto; }

.nav-links {
  display: flex; gap: clamp(8px, 1.4vw, 20px); list-style: none; flex: 1;
  justify-content: flex-end;
}
.nav-links li { white-space: nowrap; }
.nav-links a {
  color: var(--text-lt);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover { color: var(--gold); }

.nav-lang { display: flex; gap: 6px; }
.lang-btn {
  color: var(--text-lt);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em;
  padding: 4px 8px; border: 1px solid var(--divider); border-radius: 6px;
  transition: color .2s, border-color .2s;
}
.lang-btn.active, .lang-btn:hover { color: var(--ink); border-color: var(--gold); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink);
}

/* Kostenvoranschlag-Anfrage: steht neben der Ueberschrift "Kontakt" und
   ist bewusst der auffaelligste Knopf der Seite. Schrift ein Drittel
   groesser als zuvor (1.4rem statt 1.05rem). */
.kontakt-kopf {
  /* dieselben Spalten wie .contact-layout darunter - so sitzt der Button
     genau ueber dem Formular und nicht auf der Seitenmitte */
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  align-items: center; gap: 64px;
}
.kontakt-kopf__titel { min-width: 0; }

.btn-kv {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center; text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
  padding: 24px 36px;
  background: var(--ink); color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 26px rgba(30, 74, 82, .22);
}
.btn-kv__text {
  font-family: 'Source Sans 3', sans-serif; font-size: 1.4rem;
  font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  line-height: 1.2;
}
.btn-kv__meta {
  font-family: 'Source Sans 3', sans-serif; font-size: 1rem;
  color: rgba(255,255,255,.75);
}
.btn-kv:hover { background: var(--ink-mid); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(30,74,82,.28); }
/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--gold); color: var(--white);
  padding: 13px 28px; border-radius: var(--radius);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: background .2s, transform .2s;
}
.btn-primary:hover { background: var(--gold-lt); transform: translateY(-1px); }

.btn-outline {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.5); color: var(--white);
  padding: 12px 27px; border-radius: var(--radius);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: border-color .2s, color .2s, background .2s;
}
.btn-outline:hover { border-color: var(--gold-lt); color: var(--gold-lt); background: rgba(255,255,255,.06); }

.btn-outline-dark {
  display: inline-block;
  border: 1px solid var(--divider); color: var(--ink);
  padding: 12px 27px; border-radius: var(--radius);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: border-color .2s, color .2s;
}
.btn-outline-dark:hover { border-color: var(--gold); color: var(--gold); }

/* ── SECTIONS ────────────────────────────────────────────── */
.section { padding: 80px 32px; }
.section-light  { background: var(--bg); }
.section-dark   { background: linear-gradient(160deg, var(--ink) 0%, var(--ink-mid) 60%, var(--sage) 100%); }
.section-muted  { background: var(--bg-dark); }
.section-inner  { max-width: 1100px; margin: 0 auto; }
.section-center { text-align: center; max-width: 680px; }
.section-lead   { font-size: 1.05rem; margin: 12px 0 28px; color: var(--text-lt); }

.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.two-col--top { align-items: start; }

.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  position: relative; padding-left: 28px; margin-bottom: 12px;
  color: var(--text-lt);
}
.check-list li::before {
  content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700;
}

.img-placeholder {
  aspect-ratio: 4 / 3; background: var(--bg-dark);
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
}
.img-placeholder::after {
  content: 'Bild folgt'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-lt); font-size: 0.85rem; letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  padding: 140px 32px 80px;
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-mid) 60%, var(--sage) 100%);
}
/* Nautilus-Motiv aus dem Flyer: rechts angeschnitten, abgedunkelt, damit der
   Text darueber seinen Kontrast behaelt. Ueber --hero-motiv-deckkraft laesst
   sich die Staerke an einer Stelle regeln. */
.hero-motiv {
  position: absolute; z-index: 1; pointer-events: none;
  /* An der Seitenmitte ausgerichtet statt am Fensterrand: sonst rutscht das
     Motiv auf breiten Monitoren aus dem Bild und ist nur noch angeschnitten. */
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) translateX(clamp(60px, 20vw, 290px));
  width: min(52vw, 620px); aspect-ratio: 1;
  opacity: var(--hero-motiv-deckkraft, .55);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 58%, transparent 78%);
          mask-image: radial-gradient(circle at 50% 50%, #000 58%, transparent 78%);
}
.hero-motiv img { width: 100%; height: 100%; object-fit: contain; }

.hero-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 1180px; margin: 0 auto;
  /* Nur noch eine Spalte: die rechte Haelfte gehoert dem Nautilus allein,
     sonst lag er hinter dem Schriftzug. Der steht jetzt unter den Buttons. */
  display: grid; grid-template-columns: minmax(0, 620px);
  gap: 56px; align-items: center;
}
.hero-content { max-width: 580px; }
/* Der Schriftzug steht klein in der Navigation und hier gross als Blickfang. */
.hero-media { display: flex; justify-content: flex-start; margin-top: 52px; }
.hero-wordmark { width: 100%; max-width: 440px; height: auto; opacity: .95; }
.hero h1 { color: var(--white); margin-bottom: 24px;
           font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.2; }
.hero h1 em { font-style: italic; color: var(--gold-lt); }
.hero-text { color: rgba(255,255,255,.8); font-size: 1.05rem; max-width: 480px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── LEISTUNGEN (Karten) ─────────────────────────────────── */
.leistungen-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 48px; }
.leistung-card {
  background: var(--paper); border: 1px solid var(--divider); border-radius: var(--radius-lg);
  padding: 32px 28px; box-shadow: 0 1px 4px rgba(30,74,82,.06);
  transition: box-shadow .2s, transform .2s;
}
.leistung-card:hover { box-shadow: 0 8px 28px rgba(30,74,82,.12); transform: translateY(-2px); }
.leistung-card--light { background: var(--white); }
.leistung-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--ink), var(--ink-light));
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem; color: var(--white); font-weight: 700; margin-bottom: 16px;
}
.leistung-card h3 { color: var(--ink); margin-bottom: 12px; font-size: 1.15rem; }
.leistung-card p  { color: var(--text-lt); font-size: 0.9rem; line-height: 1.65; }

/* Leistungen mit Foto: Bild links im Kreis, Text rechts. Die Fotos aus dem
   Flyer sind quadratisch mit dunklen Ecken - der Kreis entsteht hier per
   border-radius, deshalb bleiben sie JPEG und damit klein. */
.leistungen-liste { max-width: 900px; margin: 0 auto; }
.leistung-zeile {
  display: grid; grid-template-columns: 180px minmax(0, 1fr);
  gap: 40px; align-items: center;
  padding: 36px 0; border-bottom: 1px solid var(--divider);
}
.leistung-zeile:first-child { padding-top: 0; }
.leistung-zeile:last-child  { border-bottom: none; }
/* Zeilen ohne Foto fluchten ueber einen Einzug mit den Texten darueber -
   nicht ueber eine leere Rasterspalte: die kollidierte auf schmalen
   Fenstern mit dem einspaltigen Raster und verschob jede Zeile anders. */
.leistung-zeile--ohne-bild { grid-template-columns: minmax(0, 1fr); padding-left: 220px; }
.leistung-bild { margin: 0; }
.leistung-bild img {
  display: block; width: 100%; height: auto;
  border-radius: 50%; box-shadow: 0 6px 22px rgba(30,74,82,.16);
}
.leistung-text h2 { color: var(--ink); font-size: 1.55rem; margin-bottom: 14px; }
.leistung-text ul { list-style: none; margin: 0; padding: 0; }
.leistung-text li {
  position: relative; padding-left: 20px; margin-bottom: 8px;
  color: var(--text-lt); line-height: 1.65;
}
.leistung-text li::before {
  content: ''; position: absolute; left: 0; top: 0.62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold-pur);
}

/* Zeitstrahl auf "Ueber uns": senkrechte Linie mit Punkten, funktioniert
   in jeder Breite ohne Umbruchakrobatik. */
/* Ablauf in fuenf Schritten (Startseite) */
.ablauf {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
}
.ablauf-schritt {
  position: relative; padding-top: 20px; border-top: 2px solid var(--divider);
}
.ablauf-num {
  display: block; font-family: 'Source Sans 3', sans-serif;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  color: var(--gold); margin-bottom: 8px;
}
.ablauf-schritt h3 { color: var(--ink); font-size: 1.02rem; margin-bottom: 6px; }
.ablauf-schritt p  { color: var(--text-lt); font-size: 0.9rem; margin: 0; line-height: 1.6; }

.zeitstrahl { list-style: none; margin: 0; padding: 0; position: relative; }
.zeitstrahl::before {
  content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: var(--divider);
}
.zeitstrahl-station { position: relative; padding: 0 0 28px 40px; }
.zeitstrahl-station::before {
  content: ''; position: absolute; left: 0; top: 5px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg-dark); border: 2px solid var(--gold-pur);
}
/* Wie im Flyer: 2024 markiert den Namenswechsel mit einem kleinen gefuellten
   Quadrat, 2026 als Zielpunkt mit einem groesseren. Alle anderen Stationen
   bleiben offene Kreise. */
.zeitstrahl-station--wechsel::before {
  border-radius: 2px; background: var(--gold-pur); border-color: var(--gold-pur);
}
.zeitstrahl-station--ziel::before {
  border-radius: 3px; background: var(--gold-pur); border-color: var(--gold-pur);
  width: 24px; height: 24px; left: -4px; top: 1px;
}

/* Abzweig ab 2024: eigener Kasten, angebunden ueber eine kurze Kurve. */
.zeitstrahl-abzweig {
  position: relative; margin: 4px 0 0 40px;
  padding: 24px 24px 4px; border-radius: var(--radius-lg);
  background: var(--paper); border: 1px solid var(--divider);
}
.zeitstrahl-abzweig::before {
  content: ''; position: absolute; left: -33px; top: -14px;
  width: 26px; height: 40px;
  border-left: 2px solid var(--gold-pur);
  border-bottom: 2px solid var(--gold-pur);
  border-bottom-left-radius: 12px;
}
.zeitstrahl-abzweig-label {
  display: block; font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-lt); margin-bottom: 18px;
}
.zeitstrahl--abzweig { margin: 0; }
.zeitstrahl--abzweig .zeitstrahl-station:last-child { padding-bottom: 20px; }
.zeitstrahl-jahr {
  display: block; font-family: 'Source Sans 3', sans-serif;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em;
  color: var(--gold); margin-bottom: 2px;
}
.zeitstrahl-station h3 { color: var(--ink); font-size: 1.05rem; margin-bottom: 4px; }
.zeitstrahl-station p  { color: var(--text-lt); font-size: 0.92rem; margin: 0; }

.meister-paar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* Kompakte Leistungskacheln auf der Startseite: Bild, Titel, eine Zeile.
   Ohne Nummerierung - die Reihenfolge traegt keine Bedeutung. */
.leistung-kachel {
  display: block; text-decoration: none;
  background: var(--paper); border: 1px solid var(--divider);
  border-radius: var(--radius-lg); padding: 26px 24px;
  box-shadow: 0 1px 4px rgba(30,74,82,.06);
  transition: box-shadow .2s, transform .2s;
}
.leistung-kachel:hover { box-shadow: 0 8px 28px rgba(30,74,82,.14); transform: translateY(-2px); }
.leistung-kachel-bild {
  display: block; width: 64px; height: 64px;
  border-radius: 50%; object-fit: cover; margin-bottom: 16px;
}
.leistung-kachel h3 { color: var(--ink); font-size: 1.08rem; margin-bottom: 6px; }
.leistung-kachel p  { color: var(--text-lt); font-size: 0.9rem; line-height: 1.6; margin: 0; }

.leistungen-list { max-width: 820px; margin: 0 auto; }
.leistung-row { padding: 28px 0; border-bottom: 1px solid var(--divider); }
.leistung-row:first-child { padding-top: 0; }
.leistung-row h3 { margin-bottom: 8px; }
.leistung-row p { color: var(--text-lt); }

/* ── KONTAKT ─────────────────────────────────────────────── */
.contact-layout {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px;
}
.contact-info p { color: var(--text-lt); }
.u-c-gold { color: var(--gold); }

.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-family: 'Source Sans 3', sans-serif; font-size: 0.82rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-input {
  width: 100%; padding: 12px 14px; font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem; color: var(--text);
  background: var(--white); border: 1px solid var(--divider); border-radius: var(--radius);
}
.form-input:focus { outline: none; border-color: var(--gold); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 0.8rem; color: var(--text-lt); margin-top: 12px; }

.nl-msg { margin-top: 16px; padding: 12px 20px; border-radius: var(--radius); font-family: 'Source Sans 3', sans-serif; font-size: 0.9rem; }
.nl-success { background: rgba(39,174,96,.12); color: #1e8449; }
.nl-error   { background: rgba(192,57,43,.12); color: #a93226; }

/* ── FLASH ───────────────────────────────────────────────── */
.flash {
  position: fixed; top: 68px; left: 0; right: 0; z-index: 90;
  padding: 14px 32px; text-align: center;
  font-family: 'Source Sans 3', sans-serif; font-size: 0.9rem;
}
.flash-success { background: var(--green); color: var(--white); }
.flash-error   { background: var(--red); color: var(--white); }
.flash-info    { background: var(--ink); color: var(--white); }
.flash-close {
  background: none; border: none; color: inherit; font-size: 1.1rem;
  margin-left: 16px; cursor: pointer;
}

/* ── PAGE HERO (Unterseiten) ─────────────────────────────── */
.page-hero {
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-mid) 60%, var(--sage) 100%);
  padding: 160px 32px 60px;
}
.page-hero--muted { background: var(--bg-dark); }

/* ── FOOTER ──────────────────────────────────────────────── */
.main-footer { background: var(--ink); padding: 56px 32px 20px; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo {
  font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.3rem;
  color: var(--white); font-weight: 600; margin-bottom: 12px;
}
.footer-logo span { color: var(--gold-lt); }
.footer-tagline { color: rgba(255,255,255,.55); font-size: 0.88rem; line-height: 1.65; }
.footer-col h4 {
  font-family: 'Source Sans 3', sans-serif; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold-lt); margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col li { color: rgba(255,255,255,.65); font-size: 0.88rem; }
.footer-col a { color: inherit; transition: color .2s; }
.footer-col a:hover { color: var(--gold-lt); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 12px; padding-top: 20px;
  font-family: 'Source Sans 3', sans-serif; font-size: 0.8rem; color: rgba(255,255,255,.5);
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: rgba(255,255,255,.5); font-size: 0.8rem; transition: color .2s; }
.footer-legal a:hover { color: rgba(255,255,255,.85); }

/* ── LEGAL TEXT (Impressum/Datenschutz) ──────────────────── */
.legal-text { max-width: 780px; margin: 0 auto; }
.legal-text h2 { font-size: 1.3rem; margin: 32px 0 12px; }
.legal-text h2:first-child { margin-top: 0; }
.legal-text p { color: var(--text-lt); margin-bottom: 12px; }
.legal-text a { color: var(--gold); text-decoration: underline; }

/* ── UTILITIES ───────────────────────────────────────────── */
.u-mt-16 { margin-top: 16px; }
.u-mt-24 { margin-top: 24px; }
.u-mt-32 { margin-top: 32px; }
.u-d-none { display: none; }
.u-c-text-lt { color: var(--text-lt); }
.u-fs-85 { font-size: 0.85rem; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .kontakt-kopf { grid-template-columns: 1fr; gap: 28px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  /* Auf schmalen Fenstern liegt das Motiv hinter dem Text. Bei 30 %
     Deckkraft fiel der Fliesstext ueber den hellen Stellen der Muschel auf
     2,9:1 - nachgemessen an den tatsaechlich gerenderten Pixeln. Deshalb
     hier schwaecher, und der Text ohne Transparenz. */
  .hero-motiv {
    transform: translate(-50%, -50%) translateX(clamp(0px, 8vw, 60px));
    width: 88vw; --hero-motiv-deckkraft: .16;
  }
  .hero-text { color: var(--white); }
  .hero-media { justify-content: flex-start; margin-top: 36px; }
  .hero-wordmark { max-width: 300px; }
  .two-col, .contact-layout, .meister-paar { grid-template-columns: 1fr; gap: 40px; }
  .leistungen-grid { grid-template-columns: repeat(2,1fr); }
  .ablauf { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .leistung-zeile { grid-template-columns: 120px minmax(0, 1fr); gap: 24px; }
  .leistung-zeile--ohne-bild { grid-template-columns: minmax(0, 1fr); padding-left: 144px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ── Ersatz fuer frueher inline gesetzte Styles ────────────────
   Die CSP verbietet style-Attribute (style-src-attr 'none'), inline
   gesetzte Styles wurden vom Browser blockiert - deshalb als Klassen. */
.section-figure { margin: 0; }
.section-figure img {
  display: block; width: 100%; height: auto;
  background: var(--white, #fff);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 28px rgba(30, 74, 82, .08);
}

.u-center-auto  { margin-left: auto; margin-right: auto; text-align: center; }
.u-center-gap   { margin: 0 auto 8px; text-align: center; }
.u-center-cta   { text-align: center; margin-top: 40px; }
.section--vcenter { min-height: 60vh; display: flex; align-items: center; }

/* Scroll-Reveal: fruher per element.style aus JS gesetzt, was dieselbe
   CSP-Direktive blockiert hat. Jetzt rein ueber Klassen. */
.main-nav.is-scrolled { box-shadow: 0 2px 24px rgba(0, 0, 0, .35); }

.reveal { opacity: 0; transform: translateY(20px);
          transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 700px) {
  /* ── Bedienbarkeit am Telefon ──────────────────────────────
     Die Schaltflaechen waren mit 38x32 bzw. 33x30 px zu klein, um sie
     mit dem Finger sicher zu treffen (Richtwert 44 px). Sie werden hier
     vergroessert, ohne dass sich das Aussehen aendert - die Balken und
     die Beschriftung bleiben gleich, nur die Trefferflaeche waechst. */
  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0; margin-right: -8px;
  }
  .nav-toggle span { width: 24px; }
  .lang-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; min-height: 40px; padding: 4px 10px;
  }
  .footer-col li { padding: 3px 0; }
  /* Telefonnummer und E-Mail sind am Telefon die naheliegendste Aktion -
     sie bekommen eine groessere Trefferflaeche. */
  .contact-info a { display: inline-block; padding: 7px 0; }
  .footer-col a, .footer-legal a { display: inline-block; padding: 5px 0; }

  /* Schriftgroesse der Eingabefelder: unter 16 px zoomt iOS Safari beim
     Antippen automatisch in die Seite hinein und springt aus dem Layout. */
  .form-input, .form-input::placeholder { font-size: 16px; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--divider);
    flex-direction: column; padding: 12px 32px 24px; gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 10px 0; }
  .leistungen-grid { grid-template-columns: 1fr; }
  .ablauf { grid-template-columns: 1fr; }
  .leistung-zeile { grid-template-columns: 1fr; gap: 18px; }
  .leistung-zeile--ohne-bild { grid-template-columns: 1fr; padding-left: 0; }
  .leistung-bild { max-width: 160px; }
  .form-row { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 120px 24px 60px; }
  .page-hero { padding: 120px 24px 48px; }
  .section { padding: 56px 20px; }
}


/* ── PRAXISKARTE (interner Bereich) ───────────────────────── */
.karte-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
#karte {
  height: 560px; border-radius: var(--radius-lg);
  border: 1px solid var(--divider); box-shadow: 0 6px 22px rgba(30,74,82,.10);
}
.karte-labor span {
  display: inline-block; padding: 4px 10px; border-radius: 13px;
  background: var(--ink); color: var(--white);
  font-family: 'Source Sans 3', sans-serif; font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.praxis-zahl { margin: 12px 0 8px; color: var(--text-lt); font-size: .9rem; }
.praxis-zahl strong { color: var(--ink); font-size: 1.1rem; }
.praxis-liste {
  list-style: none; margin: 0; padding: 0;
  max-height: 520px; overflow-y: auto; border-top: 1px solid var(--divider);
}
.praxis-liste li { border-bottom: 1px solid var(--divider); }
.praxis-liste button {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: none; border: none; padding: 12px 4px;
  font-family: 'Source Sans 3', sans-serif;
}
.praxis-liste button:hover { background: var(--bg-dark); }
.praxis-name { display: block; color: var(--ink); font-weight: 600; font-size: .95rem; }
.praxis-adresse { display: block; color: var(--text-lt); font-size: .85rem; margin-top: 2px; }
.praxis-fehler { padding: 16px 4px; color: var(--red); font-size: .9rem; }
.leaflet-popup-content { font-family: 'Source Sans 3', sans-serif; font-size: .9rem; line-height: 1.5; }
.leaflet-popup-content a { color: var(--gold); }

@media (max-width: 900px) {
  .karte-layout { grid-template-columns: 1fr; }
  #karte { height: 420px; }
  .praxis-liste { max-height: 360px; }
}

.intern-schmal { max-width: 460px; }

.intern-abmelden { color: var(--gold); font-family: 'Source Sans 3', sans-serif; font-size: .9rem; }
.praxis-liste li.hat-notiz .praxis-name::after {
  content: '●'; color: var(--gold-pur); font-size: .7em; margin-left: 6px; vertical-align: middle;
}
.praxis-notiz { padding: 0 4px 14px; }
.praxis-notiz label {
  display: block; font-family: 'Source Sans 3', sans-serif; font-size: .75rem;
  font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-lt); margin-bottom: 4px;
}
.praxis-notiz textarea {
  width: 100%; padding: 8px 10px; font-family: 'Source Sans 3', sans-serif;
  font-size: .9rem; color: var(--text); background: var(--white);
  border: 1px solid var(--divider); border-radius: var(--radius); resize: vertical;
}
.praxis-notiz-fuss { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.praxis-notiz-fuss button {
  background: var(--gold); color: var(--white); border: none; cursor: pointer;
  padding: 7px 14px; border-radius: var(--radius);
  font-family: 'Source Sans 3', sans-serif; font-size: .8rem; font-weight: 700;
}
.praxis-notiz-fuss button:disabled { opacity: .6; cursor: default; }
.praxis-notiz-fuss span { font-size: .78rem; color: var(--text-lt); }

/* Zugang zum internen Bereich - zurueckhaltend im Footer unter dem Namen */
.footer-intern {
  display: inline-block; margin-top: 18px; padding: 9px 18px;
  border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius);
  color: rgba(255,255,255,.8); text-decoration: none;
  font-family: 'Source Sans 3', sans-serif; font-size: .82rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  transition: border-color .2s, color .2s, background .2s;
}
.footer-intern:hover { border-color: var(--gold-lt); color: var(--gold-lt); background: rgba(255,255,255,.06); }

/* ── AGB ──────────────────────────────────────────────────── */
.agb-text { max-width: 760px; }
.agb-text h2 {
  margin: 48px 0 8px; padding-top: 24px; border-top: 2px solid var(--divider);
  color: var(--ink); font-size: 1.5rem;
}
.agb-text h2:first-of-type { margin-top: 16px; }
.agb-text h3 { margin: 28px 0 6px; color: var(--ink); font-size: 1.1rem; }
.agb-text p { color: var(--text-lt); line-height: 1.75; margin-bottom: 10px; }
.agb-vorspann {
  background: var(--bg-dark); border-radius: var(--radius-lg);
  padding: 22px 26px; margin-bottom: 8px;
}
.agb-vorspann p { margin-bottom: 6px; font-size: .92rem; }
.agb-liste { margin: 8px 0 14px 20px; color: var(--text-lt); line-height: 1.7; }

/* Geltungshinweis oben auf der AGB-Seite - beide Gesellschaften */
.agb-geltung {
  margin-bottom: 24px; padding: 16px 20px;
  background: var(--paper); border-left: 4px solid var(--gold-pur);
  border-radius: var(--radius);
  font-family: 'Source Sans 3', sans-serif; font-size: 1rem; color: var(--text);
}
.agb-geltung strong { color: var(--ink); }
