/* ==========================================================================
   Concordia Wissens-/Enzyklopädie-Startseite — "Startseite Null"
   Phase 2C: Umsetzung nach verbindlicher Bildreferenz (Nutzer-Upload,
   siehe 01_startseite/reports/STARTSEITE_NULL_REFERENZUMSETZUNG.md).
   Phase 2D: Primärfarbe auf verifiziertes Concordia-Blau aus der KFZ-
   Referenz umgestellt (kein Indigo/Lila mehr), Hero-Rhythmus verfeinert.
   Siehe 01_startseite/reports/STARTSEITE_NULL_HERO_UND_FARBKORREKTUR.md.
   Phase 2E (überarbeitet): Überschriftfarbe aus einer bestehenden,
   live-verifizierten Referenzseite übernommen statt neu erfunden — siehe
   01_startseite/reports/STARTSEITE_NULL_UEBERSCHRIFTFARBE_BESTAND.md.
   Kein Font-/Gewichtswechsel (frühere Source-Sans-3-Fassung zurückgerollt).
   ========================================================================== */

:root {
  /* Grundpalette */
  --ink:         #07365f;   /* H1, Kachel-Titel — KFZ --blue-dark, live-verifiziert 2026-08-11 */
  --text-body:   #4b5468;   /* Fließtext/Beschreibungen */
  --text-muted:  #5f6b7a;   /* Sublabel, Schlusszeile — auf ≥4.5:1 Kontrast zu Weiß/--bg-tint gehärtet (Review 2026-08-12) */
  --border:      #e7ebf3;
  --white:       #ffffff;
  --bg-tint:     #f4f8fb;   /* Nutzenleiste unten — KFZ --blue-pale */

  /* Akzentblau — Links, Icons, "Mehr erfahren", Header-Kontakt.
     Quelle: kfz.concordia-borkowsky.de/assets/css/styles.css, --blue /
     --blue-dark, live-verifiziert 2026-08-11 (byte-identisch zum lokalen
     Kandidaten). Kein frei gewähltes/geschätztes Blau. */
  --accent:      #07549b;
  --accent-dark: #07365f;
  --accent-tint: #eaf3f9;   /* KFZ --blue-soft */

  --error:   #b3261e;
  --success: #059669;

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 18px;
  --shadow-soft: 0 18px 46px rgba(16, 20, 46, .08);
  --shadow-lift: 0 10px 24px rgba(16, 20, 46, .12);

  --page-max: 1280px;
  --flow-max: 760px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text-body);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--ink); font-weight: 700; letter-spacing: -.015em; margin: 0; overflow-wrap: break-word; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: min(var(--page-max), calc(100% - 48px)); margin: 0 auto; }

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

/* ── Skip Link ─────────────────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -60px; left: 16px; z-index: 200;
  background: var(--accent); color: var(--white);
  padding: 10px 18px; border-radius: var(--radius-sm);
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

/* ── Header ────────────────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.wordmark-link { display: inline-flex; }
.wordmark { display: inline-flex; flex-direction: column; line-height: 1.2; }
.wordmark-name { font-size: 19px; font-weight: 800; color: var(--accent); letter-spacing: -.01em; }
.wordmark-sub { font-size: 12.5px; font-weight: 500; color: var(--text-muted); margin-top: 2px; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 700; color: var(--accent);
}
.header-phone svg { width: 17px; height: 17px; }
.header-divider { width: 1px; height: 18px; background: var(--border); }
.header-kontakt { font-size: 14.5px; font-weight: 700; color: var(--accent); }
.header-kontakt:hover, .header-phone:hover { color: var(--accent-dark); }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 8vw, 92px) 0 clamp(56px, 8vw, 96px);
  background: var(--white);
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  width: 720px; height: 420px; top: -220px; left: -180px;
  background: radial-gradient(closest-side, rgba(7,84,155,.07), transparent);
}
.hero::after {
  width: 820px; height: 480px; bottom: -280px; right: -220px;
  background: radial-gradient(closest-side, rgba(7,84,155,.06), transparent);
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; text-align: center; }
.hero h1 {
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.12;
  letter-spacing: -.02em;
}
.hero-subtext {
  margin: clamp(16px, 2vw, 20px) auto 0;
  max-width: 560px;
  font-size: 16.5px;
  color: var(--text-body);
  line-height: 1.55;
}
.search-shell { margin: clamp(30px, 4vw, 42px) auto 0; max-width: 640px; }
.search-field { position: relative; display: flex; align-items: center; }
.search-icon {
  position: absolute; left: 24px; width: 21px; height: 21px;
  color: var(--ink); pointer-events: none;
}
#site-search {
  width: 100%;
  min-height: 62px;
  padding: 0 58px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  font-size: 17px;
  color: var(--ink);
  transition: box-shadow .18s ease, border-color .18s ease;
}
#site-search::placeholder { color: #9aa2b4; }
#site-search:hover { box-shadow: var(--shadow-lift); }
#site-search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-tint), var(--shadow-lift);
}
@media (max-width: 480px) {
  #site-search { min-height: 54px; padding: 0 46px; font-size: 14.5px; }
  .search-icon { left: 17px; width: 18px; height: 18px; }
  .search-clear { right: 6px; }
}
.search-clear {
  position: absolute; right: 12px; width: 36px; height: 36px;
  display: none; align-items: center; justify-content: center;
  border: 0; background: transparent; border-radius: 50%;
  color: var(--text-muted); cursor: pointer;
}
.search-clear.is-visible { display: inline-flex; }
.search-clear:hover { background: var(--accent-tint); color: var(--accent-dark); }
.search-clear svg { width: 18px; height: 18px; }

.hero-helper { margin: 18px 0 0; font-size: 14px; color: var(--text-muted); }

.no-result-note {
  margin: 20px auto 0; max-width: 480px; text-align: center;
  padding: 14px 20px; border-radius: var(--radius);
  background: var(--accent-tint); color: var(--accent-dark);
  font-size: 14px; display: none;
}
.no-result-note.is-visible { display: block; }
.no-result-note button {
  margin-left: 6px; border: 0; background: transparent; color: var(--accent-dark);
  font-weight: 700; text-decoration: underline; cursor: pointer;
}

/* ── Info-Leisten: Orientierung (weiß) + Nutzen (getönt) ─────────────── */
/* Suchbereich soll als eigener ruhiger Block wirken, bevor die
   Orientierungsleiste folgt — vorher lag hier real gemessen 0px Abstand
   (Leiste stieß direkt an den Suchhinweistext). Responsiv skaliert, auf
   Mobile spürbar weniger als auf Desktop. */
.info-bar-wrap { position: relative; z-index: 1; }
.hero .info-bar-wrap { margin-top: clamp(26px, 6vw, 64px); }
.info-bar {
  border-radius: var(--radius-lg);
  padding: 30px 8px;
}
.info-bar-white {
  background: var(--white);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}
.info-bar-tint { background: var(--bg-tint); }

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.info-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 6px 26px;
  border-left: 1px solid var(--border);
}
.info-item:first-child { border-left: 0; }
.info-item svg { width: 26px; height: 26px; color: var(--accent); flex: 0 0 auto; margin-top: 2px; }
.info-item h3 { font-size: 15.5px; margin-bottom: 4px; }
.info-item p { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }

@media (max-width: 1023px) {
  .info-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 0; }
  .info-item { border-left: 0; }
  .info-item:nth-child(2n) { border-left: 1px solid var(--border); }
}
@media (max-width: 640px) {
  .info-grid { grid-template-columns: 1fr; gap: 20px 0; }
  .info-item { border-left: 0 !important; }
}

/* ── Themenwelten ──────────────────────────────────────────────────── */
.themes-section { padding: clamp(56px, 7vw, 84px) 0 clamp(48px, 6vw, 72px); }
.themes-heading { text-align: center; font-size: clamp(24px, 2.8vw, 32px); }
.themes-subtext { text-align: center; margin: 10px 0 0; font-size: 15.5px; color: var(--text-muted); }

.theme-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 768px) {
  .theme-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (min-width: 1024px) {
  .theme-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

.theme-tile {
  display: block;
  padding: 24px 22px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: opacity .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.theme-tile:hover, .theme-tile:focus-visible {
  border-color: #c9d3ea;
  box-shadow: var(--shadow-lift);
}
.tile-icon-circle {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  margin-bottom: 16px;
  background: var(--accent-tint);
  color: var(--accent);
}
.tile-icon-circle svg { width: 26px; height: 26px; }
.theme-tile h3 { font-size: 16.5px; margin-bottom: 6px; }
.theme-tile p { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; min-height: 2.8em; }
.tile-more {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 12px; font-size: 13.5px; font-weight: 700; color: var(--accent);
}

.theme-tile.is-match { border-color: var(--accent); box-shadow: var(--shadow-lift); }
.theme-tile.is-dim { opacity: .35; }
.theme-tile.is-dim:hover, .theme-tile.is-dim:focus-visible { opacity: .7; }

/* ── Abschluss ─────────────────────────────────────────────────────── */
.closing-text {
  text-align: center;
  max-width: 620px;
  margin: 40px auto 0;
  padding: 0 24px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Footer — bewusst klein in dieser Phase ───────────────────────── */
.site-footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--border);
  margin-top: 48px;
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  align-items: center; justify-content: space-between;
  font-size: 12.5px; color: var(--text-muted);
}
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-legal a:hover { color: var(--accent-dark); text-decoration: underline; }

/* ── Platzhalter-Seite (Themenwelt "in Aufbau") ──────────────────────── */
.stub-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px); text-align: center; }
.stub-hero .tile-icon-circle { margin: 0 auto 20px; width: 64px; height: 64px; }
.stub-hero .tile-icon-circle svg { width: 32px; height: 32px; }
.stub-hero h1 { font-size: clamp(24px, 3.2vw, 34px); margin-bottom: 12px; }
.stub-hero p.lede { max-width: 520px; margin: 0 auto 26px; color: var(--text-body); font-size: 15.5px; line-height: 1.6; }
.stub-note {
  display: inline-block; padding: 10px 20px; border-radius: 999px;
  background: var(--accent-tint); color: var(--accent-dark);
  font-size: 13px; font-weight: 700; margin-bottom: 26px;
}
.stub-back {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); padding: 11px 20px; border-radius: 999px;
  font-weight: 700; color: var(--accent);
  transition: border-color .15s ease, background .15s ease;
}
.stub-back:hover { border-color: var(--accent); background: var(--accent-tint); }

/* ==========================================================================
   Themenwelt-Seite (Phase 3C, "Gesundheit & Zähne" als erste Muster-
   Themenwelt) — reine Ergänzung, nichts oben Verändertes. Modulare
   Sektionen: Sub-/Wissensthemen sollen spaeter ohne Redesign anwachsen
   koennen (siehe THEMENWELTEN_MODELL.md).
   ========================================================================== */

.breadcrumb {
  padding: 18px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--accent); font-weight: 600; }
.breadcrumb a:hover { color: var(--accent-dark); }
.breadcrumb .sep { margin: 0 6px; }
.breadcrumb .current { color: var(--text-muted); }

/* ── Themenwelt-Hero (Text links, Bildmotiv rechts) ───────────────────── */
.theme-hero { padding: clamp(28px, 5vw, 56px) 0 clamp(40px, 6vw, 64px); }
.theme-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) {
  .theme-hero-grid { grid-template-columns: 0.92fr 1.08fr; gap: 44px; }
}
.theme-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px;
}
.theme-hero h1 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.14; letter-spacing: -.02em; }
.theme-hero-lead { margin: 16px 0 0; max-width: 46ch; font-size: 16.5px; color: var(--text-body); line-height: 1.6; }
.theme-hero-visual img { width: 100%; height: auto; display: block; }

/* ── Unterthemen-Raster (Wissens-/Zusatzbereiche der Themenwelt) ─────────
   Bewusst dieselben Klassen wie die Startseiten-Kacheln (.theme-grid/
   .theme-tile) -- eine Themenwelt ist strukturell dieselbe Kachel-Idee,
   nur eine Ebene tiefer. Jede Kachel ist ein real erreichbares Ziel
   (Wissensbereich, Rechner oder Beratung) -- keine erfundenen Themen.
   Neue Themen spaeter = neue <a> nach demselben Muster, kein
   Strukturwechsel. Mehrfachzuordnung eines Ziels (z.B. ein Rechner aus
   mehreren Themenwelten heraus verlinkt) ist bewusst vorgesehen. */
.theme-subtopics { padding: 0 0 clamp(48px, 6vw, 72px); }
.tile-stage {
  display: inline-block;
  margin: 2px 0 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent-dark);
  font-size: 11.5px;
  font-weight: 700;
}

/* ── Schwerpunktblock "Zahnzusatz" ─────────────────────────────────────── */
.spotlight {
  padding: clamp(48px, 6vw, 72px) 0;
  background: var(--bg-tint);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.spotlight-heading { text-align: center; max-width: 640px; margin: 0 auto; }
.spotlight-heading .eyebrow-pill {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: var(--accent-tint); color: var(--accent-dark);
  font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: 14px;
}
.spotlight-heading h2 { font-size: clamp(24px, 2.8vw, 32px); }
.spotlight-heading p { margin-top: 10px; font-size: 15px; color: var(--text-muted); }

.spotlight-stage-label {
  margin: 36px 0 16px;
  font-size: 12.5px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .05em;
}

.pitch-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) { .pitch-grid { grid-template-columns: repeat(3, 1fr); } }

.pitch-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.pitch-card:hover, .pitch-card:focus-visible { border-color: #c9d3ea; box-shadow: var(--shadow-lift); }
.pitch-card .pitch-kicker { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 8px; }
.pitch-card h3 { font-size: 16px; line-height: 1.35; margin-bottom: 8px; }
.pitch-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; flex: 1; }
.pitch-card .pitch-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; font-size: 13.5px; font-weight: 700; color: var(--accent); }
.pitch-card .pitch-link svg { width: 15px; height: 15px; }

.solution-cta {
  margin-top: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  box-shadow: var(--shadow-soft);
}
.solution-cta-text .pitch-kicker { display: block; margin-bottom: 6px; }
.solution-cta-text h3 { font-size: 18px; margin-bottom: 4px; }
.solution-cta-text p { font-size: 13.5px; color: var(--text-muted); }
.solution-cta-button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px;
  background: var(--accent); color: var(--white);
  font-size: 14.5px; font-weight: 700; white-space: nowrap;
  transition: background .15s ease, transform .15s ease;
}
.solution-cta-button:hover { background: var(--accent-dark); transform: translateY(-1px); }
.solution-cta-button svg { width: 17px; height: 17px; }

/* ── Ansprechpartner ─────────────────────────────────────────────────── */
.advisor { padding: clamp(48px, 6vw, 72px) 0; }
.advisor-intro {
  text-align: center;
  max-width: 480px;
  margin: 0 auto 28px;
  font-size: 15px;
  color: var(--text-body);
}
.advisor-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 28px;
}
@media (min-width: 720px) {
  .advisor-card { grid-template-columns: 160px 1fr; padding: 32px 36px; }
}
.advisor-photo {
  width: 128px; height: 176px; object-fit: cover;
  border-radius: var(--radius);
  margin: 0 auto;
}
@media (min-width: 720px) { .advisor-photo { width: 100%; height: auto; aspect-ratio: 493/677; } }
.advisor-copy h3 { font-size: 20px; margin-bottom: 6px; }
.advisor-copy .advisor-role { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; display: block; }
.advisor-copy p.advisor-text { font-size: 15px; color: var(--text-body); line-height: 1.6; max-width: 52ch; }
.advisor-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.advisor-actions a.button-outline {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 20px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--accent); font-weight: 700; font-size: 13.5px;
}
.advisor-actions a.button-outline:hover { border-color: var(--accent); background: var(--accent-tint); }

/* Gut bedienbare Links in Kopf, Fuß und Breadcrumb */
.header-phone,.header-kontakt,.footer-legal a,.breadcrumb a { min-height: 44px; display: inline-flex; align-items: center; }
.footer-legal { gap: 4px 16px; }

/* Editorial decision paths: readable at wide and narrow viewports. */
.encyclopedia-guide { padding: clamp(44px, 5vw, 68px) 0; background: #f5f8fc; border-top: 1px solid #e0e9f4; border-bottom: 1px solid #e0e9f4; }
.encyclopedia-guide h2 { max-width: 24ch; margin: 8px 0 10px; font-size: clamp(25px, 2.8vw, 34px); line-height: 1.2; }
.encyclopedia-lead { max-width: 72ch; color: var(--text-body); line-height: 1.65; margin: 0 0 26px; }
.encyclopedia-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.encyclopedia-card { display: flex; flex-direction: column; min-width: 0; padding: clamp(20px, 2vw, 28px); border: 1px solid #e0e9f4; border-radius: 16px; background: #fff; box-shadow: 0 12px 30px rgba(11, 52, 93, .04); }
.encyclopedia-card h3 { margin: 0 0 12px; font-size: clamp(18px, 1.8vw, 21px); line-height: 1.3; overflow-wrap: normal; }
.encyclopedia-card p { margin: 0 0 18px; color: var(--text-body); font-size: 15px; line-height: 1.72; hyphens: none; overflow-wrap: normal; }
.encyclopedia-card a { margin-top: auto; color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 900px) { .encyclopedia-grid { grid-template-columns: 1fr; } }
