/* ============================================
   Thema „Verzeichnis“ (friedhof-speyer)
   Sachlich wie die Friedhofsverzeichnisse Karlsruhe und Stuttgart:
   Serifentitel, Mono-Etiketten, dunkelgrüner Kopf mit Karte, Suche,
   Papierflächen und weiße Karten mit feiner Linie.
   ============================================ */

@font-face { font-family: "Source Serif 4"; src: url(../fonts/source-serif-4-regular.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(../fonts/source-serif-4-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(../fonts/source-serif-4-600.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url(../fonts/public-sans-regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url(../fonts/public-sans-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url(../fonts/public-sans-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(../fonts/ibm-plex-mono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --papier: #F4F2EC;
  --papier-2: #ECE8DE;
  --linie: #D8D2C5;
  --linie-2: #E5E0D5;
  --tinte: #17201E;
  --text: #333C39;
  --leise: #5F6965;
  --gruen: #2D5A4D;
  --gruen-dunkel: #1E4136;
  --gruen-hell: #DCE7E0;
  --gruen-licht: #8FC1AC;
  --rost: #9A4B32;
  --rost-licht: #E3A286;
  --wasser: #6FA3B5;
  --nacht: #111A18;
  --nacht-2: #18241F;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --nav-h: 74px;
  --wrap: 1220px;
  --gutter: clamp(18px, 4vw, 40px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-soft: cubic-bezier(.2, .8, .2, 1);

  /* Tokens für landing.css */
  --warm-white: var(--papier);
  --cream: #fff;
  --border: var(--linie);
  --border-light: var(--linie-2);
  --dark: var(--tinte);
  --dark-light: var(--gruen-dunkel);
  --text-body: var(--text);
  --mid-gray: var(--text);
  --soft-gray: var(--leise);
  --primary-dark: var(--gruen);
  --primary-light: var(--gruen-hell);
  --gold: var(--rost);
  --gold-dark: var(--rost);
  --radius: 10px;
  --radius-lg: 18px;
  --shadow-sm: none;

  --tag: var(--gruen);
  --akzent: var(--rost);
  --fokus: var(--rost);
  --puls: var(--gruen-licht);
  --welle-grund: #fff;
  --welle-blass: #CFCBC2;
  --welle-voll: var(--tinte);
}

/* --- Flächen ----------------------------------------------------------- */
.lp-sektion--hell { background: var(--papier); }
.lp-sektion--grau { background: #fff; }
.lp-sektion--blau { background: var(--gruen-hell); background-image: none; }
.tag::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.section-header h2, .lp-zwei h2, .lp-kurz h2 { font-weight: 600; }
.lp-sektion h3 { font-family: var(--serif); font-weight: 600; }

/* Mono-Etiketten statt Montserrat */
.lp-fakten-titel, .lp-tabelle caption, .lp-tabelle thead th, .lp-ort-gebiet, .lp-person-rolle, .lp-marke, .lp-sprung a {
  font-family: var(--mono);
  font-weight: 500;
}
.lp-tabelle thead th { background: var(--papier); color: var(--gruen-dunkel); font-size: 11px; letter-spacing: .12em; }
.lp-tabelle caption { color: var(--gruen); font-size: 11px; letter-spacing: .16em; }
.lp-tabelle tbody tr:hover td { background: #FAF9F5; }
.lp-fakten { border-radius: var(--radius-lg); }
.lp-fakten li::before { border-radius: 2px; width: 7px; height: 7px; background: var(--rost); }
.lp-hinweis { background: #F7EFE9; border-left-color: var(--rost); }
.lp-bild { border-radius: 14px; }

/* Sprungleiste als Register */
.lp-sprung { gap: 0; border: 1px solid var(--linie); border-radius: 14px; background: #fff; overflow: hidden; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.lp-sprung a {
  border: 0; border-radius: 0; background: transparent;
  border-right: 1px solid var(--linie-2); border-bottom: 1px solid var(--linie-2);
  min-height: 52px; padding: .7rem 1rem;
  font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--gruen-dunkel);
  justify-content: space-between;
}
.lp-sprung a::after { content: "↓"; font-family: var(--sans); color: var(--rost); }
.lp-sprung a:hover { background: var(--papier); }

/* Verzeichniskarten wie in Karlsruhe: Etikett über dem Titel */
.lp-ort { border-radius: var(--radius-lg); padding: 24px 26px; transition: border-color .3s var(--ease), transform .3s var(--ease); }
.lp-ort:hover { border-color: var(--gruen); }
.lp-ort-kopf { flex-direction: column-reverse; align-items: flex-start; gap: 6px; }
.lp-ort-gebiet { font-size: 11px; letter-spacing: .14em; color: var(--leise); }
.lp-ort h3 { font-size: 1.5rem; }
.lp-ort dl { border-top: 1px solid var(--linie-2); padding-top: .7rem; margin-top: .4rem; }
.lp-ort-links a, .lp-quelle a { color: var(--gruen); }
.lp-ort-links a::after { content: " →"; }
.lp-ort.weg { display: none; }
.vz-treffer { margin: 0 0 16px; font: 500 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--leise); }
.vz-treffer[hidden] { display: none; }

/* Weiterlesen und Team */
.lp-weiter a:hover { border-color: var(--gruen); }
.lp-person { border-radius: 22px; }
.lp-person-rolle { color: var(--gruen); font-size: 12px; letter-spacing: .08em; }
.lp-team-mitglied { border-radius: 14px; }

/* --- Schaltflächen ----------------------------------------------------- */
.btn { padding: 0 1.5rem; border-radius: 999px; font: 600 15px/1 var(--sans); }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #3B6E5F 0%, var(--gruen) 50%, var(--gruen-dunkel) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(0, 0, 0, .25), 0 0 0 1px rgba(30, 65, 54, .6), 0 10px 24px rgba(30, 65, 54, .28);
  overflow: hidden;
}
.btn-primary::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .25) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn-primary:hover { --lift: -2px; }
.btn-primary:hover::before { transform: translateX(120%); }
.btn-outline-dark { color: var(--tinte); background: #fff; box-shadow: inset 0 0 0 1px var(--linie), 0 1px 2px rgba(23, 32, 30, .05); }
.btn-outline-dark:hover { box-shadow: inset 0 0 0 1px var(--gruen); color: var(--gruen-dunkel); --lift: -2px; }

/* --- Navigation -------------------------------------------------------- */
.th-nav { color: #fff; background: rgba(17, 26, 24, .34); -webkit-backdrop-filter: blur(12px) saturate(150%); backdrop-filter: blur(12px) saturate(150%); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.th-nav.scrolled { color: var(--tinte); background: rgba(244, 242, 236, .95); border-bottom-color: var(--linie); box-shadow: 0 6px 24px rgba(23, 32, 30, .06); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .th-nav { background: rgba(17, 26, 24, .9); } }
html.sparsam .th-nav:not(.scrolled) { background: rgba(17, 26, 24, .92); }
.vz-zeichen { width: 38px; height: 38px; flex-shrink: 0; }
.th-marke strong { display: block; font: 600 clamp(17px, 1.4vw, 19px)/1.15 var(--serif); letter-spacing: -.01em; }
.th-marke small { display: block; margin-top: 3px; font: 500 9.5px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; opacity: .78; }
.th-links { display: flex; gap: clamp(10px, 1.6vw, 26px); margin-left: auto; list-style: none; padding: 0; }
.th-links a { position: relative; display: inline-flex; align-items: center; min-height: 44px; font: 500 clamp(14px, 1vw, 15px)/1 var(--sans); }
.th-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.th-links a:hover::after, .th-links a.aktiv::after { transform: scaleX(1); }
.th-tel {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-height: 52px; padding: 6px 20px 6px 44px; border-radius: 999px; position: relative;
  color: #fff; background: var(--gruen-dunkel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 0 0 1px rgba(255, 255, 255, .12);
  white-space: nowrap;
}
.th-tel svg { position: absolute; left: 18px; top: 50%; width: 17px; height: 17px; margin-top: -8.5px; }
.th-tel small { font: 600 9.5px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.th-tel b { font: 600 16px/1.25 var(--sans); }
.th-nav.scrolled .th-tel { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 6px 16px rgba(30, 65, 54, .22); }
.th-schublade { background: var(--papier); color: var(--tinte); }
.th-schublade ul { list-style: none; margin: 0; padding: 0; }
.th-schublade li a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; border-bottom: 1px solid var(--linie); font: 600 1.3rem/1.2 var(--serif); }
.th-schublade li a::after { content: "→"; color: var(--rost); font-family: var(--sans); }
.th-schublade .th-tel { margin-top: 24px; align-self: flex-start; }
@media (max-width: 1120px) {
  .th-links { display: none; }
  .th-burger { display: inline-flex; }
  .th-nav .th-tel { margin-left: auto; }
  .th-nav .th-tel { padding: 0; width: 46px; min-height: 46px; height: 46px; }
  .th-nav .th-tel small, .th-nav .th-tel b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .th-nav .th-tel svg { left: 50%; margin-left: -8.5px; }
}
@media (max-width: 420px) { .th-marke small { display: none; } .vz-zeichen { width: 32px; height: 32px; } }

/* --- Kopf: dunkel, Text links, Karte rechts ---------------------------- */
.vz-kopf {
  position: relative; overflow: clip;
  min-height: min(92svh, 860px);
  padding: calc(var(--nav-h) + clamp(44px, 6vw, 92px)) 0 clamp(44px, 5vw, 72px);
  color: #fff;
  background-color: var(--nacht);
  background-image: radial-gradient(120% 70% at 70% 0%, #26443A 0%, rgba(38, 68, 58, 0) 60%), linear-gradient(180deg, #1A2B25 0%, var(--nacht) 100%);
  display: flex; align-items: center;
}
.vz-kopf::before { /* feines Raster */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(80% 80% at 70% 40%, #000 0%, transparent 75%);
  mask-image: radial-gradient(80% 80% at 70% 40%, #000 0%, transparent 75%);
}
.vz-kopf-raster { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 64px); align-items: center; width: 100%; }
.vz-kopf .tag { color: var(--gruen-licht); }
.vz-anbieter { max-width: 520px; margin-bottom: 22px; padding: 2px 0 2px 14px; border-left: 2px solid var(--rost-licht); font-size: 14.5px; line-height: 1.55; color: rgba(255, 255, 255, .82); }
.vz-kopf h1 { color: #fff; font-weight: 600; font-size: clamp(38px, 5.2vw, 70px); line-height: 1.05; letter-spacing: -.02em; max-width: 13ch; }
.vz-kopf .lead { margin-top: 22px; max-width: 34em; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; color: rgba(255, 255, 255, .84); }

.vz-suche { position: relative; display: flex; align-items: center; max-width: 540px; margin-top: 30px; padding: 6px 6px 6px 50px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 5px rgba(255, 255, 255, .1), 0 18px 40px rgba(0, 0, 0, .3); }
.vz-suche > svg { position: absolute; left: 20px; width: 19px; height: 19px; color: var(--leise); }
.vz-suche input { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; font: 400 16px/1 var(--sans); color: var(--tinte); }
.vz-suche input::placeholder { color: #7B847F; }
.vz-suche input:focus { outline: none; }
.vz-suche:focus-within { box-shadow: 0 0 0 3px var(--rost-licht), 0 18px 40px rgba(0, 0, 0, .3); }
.vz-suche .btn { min-height: 46px; }
.vz-kopf .hero-cta { margin-top: 16px; }
.vz-kopf .btn-outline-dark { color: #fff; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32); }
.vz-kopf .btn-outline-dark:hover { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); color: #fff; }

.vz-zahlen { display: flex; flex-wrap: wrap; gap: 14px clamp(22px, 3vw, 40px); margin-top: 34px; }
.vz-zahlen div { display: flex; flex-direction: column; gap: 6px; }
.vz-zahlen b { font: 600 clamp(28px, 2.6vw, 36px)/1 var(--serif); font-variant-numeric: tabular-nums; }
.vz-zahlen div > span { font: 500 10.5px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); max-width: 14ch; }

/* Karte */
.vz-karte { position: relative; margin: 0; }
.vz-karte svg { width: 100%; height: auto; max-height: min(70svh, 620px); overflow: visible; }
.vz-karte .rhein { fill: none; stroke: var(--wasser); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .9; }
.vz-karte .rhein-glanz { fill: none; stroke: #A9D1DE; stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .7; }
.vz-karte .umkreis { fill: none; stroke: rgba(255, 255, 255, .14); stroke-dasharray: 3 6; }
.vz-karte .weg { fill: none; stroke: rgba(143, 193, 172, .35); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; }
.vz-karte .ort { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.4); }
.vz-karte .ort circle { fill: var(--gruen-licht); }
.vz-karte .ort .hof { fill: rgba(143, 193, 172, .18); }
.vz-karte .ort text { fill: rgba(255, 255, 255, .86); font: 500 12.5px var(--sans); }
.vz-karte .ort--speyer circle { fill: var(--rost-licht); }
.vz-karte .ort--speyer .hof { fill: rgba(227, 162, 134, .22); }
.vz-karte .ort--speyer text { font: 600 17px var(--serif); fill: #fff; }
.vz-karte .ort--klein text { font-size: 11px; fill: rgba(255, 255, 255, .62); }
.vz-karte a.ort:hover circle, .vz-karte a.ort:focus-visible circle { fill: #fff; }
.vz-karte .fluss-name { fill: rgba(169, 209, 222, .7); font: italic 400 13px var(--serif); letter-spacing: .1em; }
.vz-karte figcaption { display: flex; align-items: center; gap: 10px; margin-top: 10px; font: 500 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.vz-karte figcaption::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gruen-licht); }
.vz-karte.an .rhein, .vz-karte.an .rhein-glanz { animation: vz-zeichnen 2.4s var(--ease) forwards; }
.vz-karte.an .weg { animation: vz-zeichnen 1.6s var(--ease) forwards; animation-delay: calc(var(--d) * 1ms + 900ms); }
.vz-karte.an .ort { animation: vz-ort .7s var(--ease) forwards; animation-delay: calc(var(--d) * 1ms + 600ms); }
.vz-karte.an .ort--speyer .hof { animation: vz-hof 3.2s ease-in-out 2.4s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes vz-zeichnen { to { stroke-dashoffset: 0; } }
@keyframes vz-ort { to { opacity: 1; transform: none; } }
@keyframes vz-hof { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: .4; } }

@media (max-width: 980px) {
  .vz-kopf { min-height: 0; }
  .vz-kopf-raster { grid-template-columns: minmax(0, 1fr); }
  .vz-karte { order: -1; max-width: 420px; width: 100%; margin: 0 auto -10px; }
  .vz-karte svg { max-height: 300px; }
  .vz-karte figcaption { justify-content: center; }
}
@media (max-width: 560px) {
  .vz-suche { padding-left: 44px; }
  .vz-suche > svg { left: 16px; }
  .vz-suche .btn { padding: 0 1.1rem; }
  .vz-kopf .hero-cta .btn { width: 100%; }
}

/* --- Fußbereich -------------------------------------------------------- */
.th-fuss { background: var(--nacht); color: rgba(255, 255, 255, .78); padding: clamp(44px, 4.6vw, 64px) 0 96px; font-size: 15px; }
.th-fuss-raster { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.th-fuss h2 { font: 500 11px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gruen-licht); margin-bottom: 14px; }
.th-fuss ul { list-style: none; padding: 0; }
.th-fuss li + li { margin-top: 6px; }
.th-fuss a { display: inline-block; padding: 4px 0; color: #fff; text-decoration: none; }
.th-fuss a:hover { color: var(--rost-licht); }
.th-fuss .th-marke { color: #fff; margin-bottom: 16px; }
.th-fuss-unten { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; color: rgba(255, 255, 255, .6); }
.th-fuss-unten a { color: rgba(255, 255, 255, .8); }
@media (max-width: 900px) { .th-fuss-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .th-fuss-raster { grid-template-columns: minmax(0, 1fr); } }

/* --- Kontaktfeld ------------------------------------------------------- */
.th-kontakt-knopf { color: #fff; border-radius: 999px; background: var(--gruen-dunkel); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 0 0 1px rgba(255, 255, 255, .1), 0 14px 30px rgba(17, 26, 24, .32); }
.th-kontakt-panel { background: #fff; color: var(--tinte); border: 1px solid var(--linie); border-radius: 18px; box-shadow: 0 24px 60px rgba(17, 26, 24, .22); }
.th-kontakt-panel a { border-radius: 12px; }
.th-kontakt-panel a:hover { background: var(--papier); }
.th-kontakt-panel svg { color: var(--gruen); }

/* --- Rechner in Grün --------------------------------------------------- */
body .kfg-wrap, body .kfg-wrap *:not(i):not(.fa):not([class*="icon"]) { font-family: var(--sans) !important; }
.kfg-wrap { --surface: #fff; --surface-2: var(--papier); --border: rgba(23, 32, 30, .12); --border-md: rgba(23, 32, 30, .22); --border-input: rgba(23, 32, 30, .24); --text: var(--tinte); --text-2: var(--text); --text-3: var(--leise); --accent: var(--gruen-dunkel); --accent-light: var(--gruen-hell); --accent-text: var(--gruen-dunkel); --gold: var(--rost); --gold-light: #F7EFE9; }
.sv-werkzeug { --lila: var(--gruen-dunkel); --lila-tief: #15302A; --lila-dunkel: var(--gruen); --lila-weich: #7F9A8F; --lila-hell: var(--gruen-hell); --lila-zart: var(--papier); --tinte: var(--tinte); --text: var(--tinte); --text-2: var(--text); --text-3: var(--leise); --linie: var(--linie); --linie-2: var(--linie-2); --flaeche: var(--papier); --gold: var(--rost); --schrift: var(--sans); --schrift-titel: var(--serif); }
.sv-werkzeug .sv-btn-voll { background: linear-gradient(180deg, #3B6E5F 0%, var(--gruen) 50%, var(--gruen-dunkel) 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(0, 0, 0, .25), 0 0 0 1px rgba(30, 65, 54, .6), 0 10px 24px rgba(30, 65, 54, .28); }
.sv-werkzeug .lp-rechner-kopf h2, .lp-rechner-kopf h2 { font-family: var(--serif); font-weight: 600; color: var(--tinte); }
.sv-werkzeug .lp-rechner-kopf p { color: var(--text); font-size: 1.05rem; }

@media (prefers-reduced-motion: reduce) {
  .vz-karte .rhein, .vz-karte .rhein-glanz, .vz-karte .weg { stroke-dashoffset: 0; }
  .vz-karte .ort { opacity: 1; transform: none; }
}
