/*
Theme Name: AFS Ahnenforschung
Theme URI: https://schaffner-ahnenforschung.de/
Author: Familie Schaffner
Description: Blocktheme fuer die private Familienforschung Schaffner und Peters. Geometrisches Layout in der Bauhaus-Linie, Jost als durchgehende Schrift, Light und Dark Mode.
Version: 2026.07.31.0902
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: afs
Tags: block-theme, one-column, full-site-editing, accessibility-ready

Erzeugt von wordpress/build.sh. Nicht direkt bearbeiten.
Aenderungen gehoeren in ../styles.css oder wp-blocks.css.

Schrift: Jost von indestructible type, SIL Open Font License 1.1.
Lizenztext in fonts/OFL.txt.
*/

/* ============================================================
   Familienforschung Schaffner und Peters
   Statischer Prototyp. Keine Abhängigkeiten, kein Build.
   Farbsystem abgeleitet aus afs-logo.webp:
     Anthrazit #3A3937 · Kupfer #B08464 · Taubenblau #8496A3
   ============================================================ */

/* ------------------------------------------------------------
   Jost (indestructible type, SIL Open Font License 1.1)
   Geometrische Linearantiqua in der Linie von Renners Futura, 1927.
   Traegt die gesamte Seite: Ueberschriften, Lauftext, Beschriftungen.
   Variable Font: eine Datei je Teilmenge und Lage, alle Gewichte inklusive.
   ------------------------------------------------------------ */
@font-face {
  font-family: "Jost";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/jost-var-italic-latin-ext.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jost";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/jost-var-italic-latin.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/jost-var-latin-ext.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/jost-var-latin.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --paper:      #f2f2f0;
  --surface:    #fafaf8;
  --ink:        #24231f;
  --ink-2:      #58564f;
  --line:       #d9d8d2;
  --line-soft:  #e6e5e0;
  --accent:     #b08464;   /* dekorativ, nie als Textfarbe */
  --accent-ink: #8a5b3c;   /* textsicher, 5.4:1 auf --paper */
  --blue:       #8496a3;   /* dekorativ */
  --blue-ink:   #566b7a;
  --err:        #a03328;
  --btn-hover-ink: #ffffff;   /* 5.7:1 auf --accent-ink */

  /* Eine Familie für die ganze Seite: Jost, geometrisch, Bauhaus-Linie.
     Die drei Namen bleiben als Rollen bestehen, zeigen aber aufs Gleiche. */
  --display: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --sans:    var(--display);
  --serif:   var(--display);

  --r: 2px;            /* eine Radius-Stufe für die gesamte Seite */
  --head: 68px;
  --shell: 1240px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:      #191817;
    --surface:    #201f1d;
    --ink:        #edebe6;
    --ink-2:      #a9a59d;
    --line:       #35332f;
    --line-soft:  #2a2926;
    --accent:     #c99877;
    --accent-ink: #d3a583;
    --blue:       #8496a3;
    --blue-ink:   #9fb1bd;
    --err:        #e8998e;
    --btn-hover-ink: #1a1815; /* 8:1 auf hellem Kupfer, statt Weiß */
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 1.5rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.09rem/1.72 var(--serif);
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin: 0;
}
h3 { letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; max-width: 64ch; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: var(--r);
}

.shell { width: min(100% - 3rem, var(--shell)); margin-inline: auto; }
@media (max-width: 640px) { .shell { width: calc(100% - 2rem); } }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: .75rem 1.25rem; font: 500 .9rem var(--sans); border-radius: var(--r);
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  height: var(--head);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
@supports not (backdrop-filter: blur(1px)) { .site-head { background: var(--paper); } }

.head-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; }
.brand img { width: 40px; height: 40px; }
@media (prefers-color-scheme: dark) { .brand img, .foot-brand img { filter: invert(1) hue-rotate(180deg) brightness(1.05); } }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font: 500 1.02rem/1.1 var(--display); letter-spacing: -0.01em; }
.brand-sub  { font: 400 .68rem/1.1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }

.nav-desktop { display: flex; gap: 2rem; }
.nav-desktop a {
  font: 400 .95rem var(--sans); color: var(--ink-2); text-decoration: none;
  padding-bottom: 3px; border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.nav-desktop a:hover { color: var(--ink); border-bottom-color: var(--accent); }

.nav-mobile { display: none; position: relative; }
.nav-mobile summary {
  list-style: none; cursor: pointer; width: 40px; height: 40px;
  display: grid; align-content: center; justify-items: end; gap: 7px;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary span { display: block; width: 26px; height: 1px; background: var(--ink); transition: transform .25s var(--ease); }
.nav-mobile[open] summary span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-mobile[open] summary span:last-child  { transform: translateY(-4px) rotate(-45deg); }
.nav-mobile nav {
  position: absolute; right: 0; top: calc(100% + 14px); min-width: 220px;
  display: grid; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 20px 48px color-mix(in srgb, var(--ink) 16%, transparent);
}
.nav-mobile nav a {
  padding: .95rem 1.25rem; font: 400 1rem var(--sans);
  color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-soft);
}
.nav-mobile nav a:last-child { border-bottom: 0; }
.nav-mobile nav a:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }

@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .nav-mobile { display: block; }
}

/* ---------- Buttons & Links ---------- */
.btn {
  display: inline-block; font: 500 .95rem var(--sans); letter-spacing: .01em;
  background: var(--ink); color: var(--paper);
  padding: .85rem 1.6rem; border: 0; border-radius: var(--r);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s var(--ease), transform .12s var(--ease);
}
.btn:hover { background: var(--accent-ink); color: var(--btn-hover-ink); }
.btn:active { transform: translateY(1px); }

.link {
  font: 500 .95rem var(--sans); color: var(--accent-ink);
  text-decoration: underline; text-underline-offset: .3em;
  text-decoration-thickness: 1px; text-decoration-color: var(--accent);
  transition: text-decoration-color .2s var(--ease);
}
.link:hover { text-decoration-color: currentColor; }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--head) * .3 + 3.5rem) 0 5rem; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .8fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.eyebrow {
  font: 500 .72rem var(--sans); letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 1.6rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.15rem); line-height: 1.06;
  margin-bottom: 1.6rem;
}
.lede { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--ink-2); max-width: 40ch; margin-bottom: 2.2rem; }

.hero-fig { margin: 0; position: relative; }
.hero-fig::after {
  content: ""; position: absolute; inset: auto -14px -14px auto;
  width: 60%; height: 60%; border: 1px solid var(--accent); border-radius: var(--r); z-index: -1;
}
.hero-fig img {
  width: 100%; max-height: 62vh; object-fit: cover; border-radius: var(--r);
  filter: grayscale(1) contrast(1.04);
}

@media (max-width: 900px) {
  .hero { padding: 2.5rem 0 4rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-fig { order: -1; }
  .hero-fig img { max-height: 40vh; }
  .hero-fig::after { display: none; }
}
/* Hero muss auch auf kleinen Geräten mit CTA in den ersten Screen passen */
@media (max-width: 560px) {
  .hero-fig img { max-height: 32vh; }
  .eyebrow { margin-bottom: 1.1rem; }
  .hero h1 { margin-bottom: 1.1rem; }
  .lede { margin-bottom: 1.6rem; }
}

/* ---------- Bands ---------- */
.band { padding: clamp(4.5rem, 10vw, 8.5rem) 0; border-top: 1px solid var(--line-soft); }
.band.alt { background: var(--surface); }

.sec-title { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }

/* Über uns: ruhiges Statement, schmales Maß */
.statement { max-width: 46rem; }
.statement h2 { font-size: clamp(1.85rem, 3.6vw, 2.9rem); line-height: 1.2; margin-bottom: 1.8rem; }
.statement p { font-size: 1.12rem; color: var(--ink-2); }
.sign {
  font: italic 400 1.05rem var(--serif); color: var(--ink);
  margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
  display: inline-block; max-width: none;
}

/* ---------- Übersichtskarten (Startseite, Ortsseiten) ---------- */
.summary-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.scard {
  display: block; text-decoration: none; color: inherit;
  border-top: 1px solid var(--ink); padding-top: 1.5rem;
}
.scard h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: .6rem; }
.scard p { color: var(--ink-2); margin-bottom: 1rem; font-size: 1rem; }
.scard-go {
  font: 500 .92rem var(--sans); color: var(--accent-ink);
  border-bottom: 1px solid var(--accent); padding-bottom: 2px;
  transition: border-color .2s var(--ease);
}
.scard:hover .scard-go { border-bottom-color: currentColor; }
.scard-fig { margin: 0 0 1.4rem; overflow: hidden; border-radius: var(--r); }
.scard-fig img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  filter: grayscale(1) contrast(1.04);
  transition: transform .6s var(--ease);
}
.scard:hover .scard-fig img { transform: scale(1.03); }
.scard-empty { border-top-color: var(--line); color: var(--ink-2); }
.scard-empty h3 { color: var(--ink-2); }

@media (max-width: 700px) { .summary-cards { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ---------- Ortsliste ---------- */
.orte-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.orte-intro h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 1.6rem; }
.orte-intro .big { font-size: clamp(1.25rem, 2.1vw, 1.6rem); line-height: 1.45; color: var(--ink); max-width: 32ch; }
.orte-intro p:not(.big) { color: var(--ink-2); }

.place-list { list-style: none; margin: 0; padding: 0; }
.place-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem;
  padding: 1.15rem 0; border-bottom: 1px solid var(--line);
}
.place-list li:first-child { padding-top: 0; }
.place-name { text-decoration: none; color: inherit; display: block; }
.place-de {
  display: block; font: 400 clamp(1.25rem, 2vw, 1.55rem) var(--serif);
  border-bottom: 1px solid transparent; transition: border-color .2s var(--ease);
}
.place-name:hover .place-de { border-bottom-color: var(--accent); }
.place-now { display: block; font: 400 .88rem var(--sans); color: var(--ink-2); margin-top: .25rem; }
.place-map {
  flex: none; font: 500 .88rem var(--sans); color: var(--accent-ink);
  text-decoration: underline; text-underline-offset: .3em;
  text-decoration-thickness: 1px; text-decoration-color: var(--accent);
  transition: text-decoration-color .2s var(--ease);
}
.place-map:hover { text-decoration-color: currentColor; }
.place-foot { margin-top: 1.75rem; font-size: .95rem; }

@media (max-width: 820px) { .orte-grid { grid-template-columns: 1fr; gap: 3rem; } }

/* ---------- Fotogalerie ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(9rem, 15vw, 15rem); gap: 1rem;
}
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--r); background: var(--line-soft); }
.gallery img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.04);
  transition: transform .7s var(--ease), filter .5s var(--ease);
}
.gallery figure:hover img { transform: scale(1.04); filter: grayscale(1) contrast(1.1) brightness(1.05); }

.g1 { grid-column: 1 / 3; grid-row: 1 / 3; }
.g2 { grid-column: 3 / 7; grid-row: 1 / 2; }
.g3 { grid-column: 3 / 5; grid-row: 2 / 3; }
.g4 { grid-column: 5 / 7; grid-row: 2 / 4; }
.g5 { grid-column: 1 / 5; grid-row: 3 / 4; }

@media (max-width: 780px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 11rem; }
  .g1 { grid-column: 1 / 3; grid-row: auto; }
  .g2, .g3, .g4, .g5 { grid-column: auto; grid-row: auto; }
  .g1, .g5 { grid-column: 1 / 3; }
}

.notice {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-left: 2px solid var(--accent);
  padding: .25rem 0 .25rem 1.6rem; max-width: 50rem;
}
.notice p { font-size: .98rem; color: var(--ink-2); }

/* ---------- Kontakt ---------- */
.kontakt-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.kontakt-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 1.6rem; }
.kontakt-copy p { color: var(--ink-2); }

.field { display: grid; gap: .5rem; margin-bottom: 1.6rem; }
.field label { font: 500 .88rem var(--sans); color: var(--ink); }
.field input, .field textarea {
  font: 400 1rem var(--serif); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: .8rem .9rem; width: 100%; resize: vertical;
  transition: border-color .2s var(--ease);
}
.band.alt .field input, .band.alt .field textarea { background: var(--paper); }
.field input:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--accent-ink); }
.help { font: 400 .85rem var(--sans); color: var(--ink-2); margin: 0; }
.err  { font: 400 .85rem var(--sans); color: var(--err); margin: 0; }
.kontakt-form .help:last-child { margin-top: 1rem; }

@media (max-width: 820px) { .kontakt-grid { grid-template-columns: 1fr; gap: 3rem; } }

/* ---------- Platzhalter-Markierung (nur Prototyp) ---------- */
.todo {
  border-left: 2px solid var(--accent);
  padding-left: 1.1rem; font-style: italic; color: var(--ink-2);
}
.todo::before {
  content: attr(data-todo);
  display: block; font: 500 .68rem var(--sans); font-style: normal;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: .5rem;
}

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 3.5rem 0; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; }
.foot-brand { display: flex; align-items: center; gap: .7rem; margin: 0; font-size: 1rem; }
.foot-nav { display: flex; gap: 1.75rem; }
.foot-nav a {
  font: 400 .92rem var(--sans); color: var(--ink-2); text-decoration: none;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.foot-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.foot-note { margin: 0; font: 400 .85rem var(--sans); color: var(--ink-2); }

/* ============================================================
   Unterseiten
   ============================================================ */

/* Prototyp-Hinweis auf den Ortsvorlagen */
.tpl-banner {
  margin: 0; text-align: center;
  background: color-mix(in srgb, var(--accent) 16%, var(--paper));
  border-bottom: 1px solid var(--accent);
  padding: .8rem 1.5rem; max-width: none;
  font: 400 .88rem var(--sans); color: var(--ink);
}

/* ---------- Kopfbereich der Unterseiten ---------- */
.subhead { padding: calc(var(--head) * .3 + 2.75rem) 0 clamp(3rem, 6vw, 4.5rem); }
.subhead h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.08; margin-bottom: 1.2rem; }
.subhead .lede { margin-bottom: 2rem; }
.subhead .eyebrow { margin-bottom: 1.1rem; }

.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
  font: 400 .87rem var(--sans); color: var(--ink-2); margin-bottom: 2.25rem;
}
.crumbs a {
  color: var(--ink-2); text-decoration: none;
  border-bottom: 1px solid var(--line); padding-bottom: 1px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.crumbs a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.crumbs [aria-current="page"] { color: var(--ink); }

/* ---------- Stammlinie ---------- */
.gen { list-style: none; margin: 0; padding: 0; max-width: 58rem; }
.gen li {
  display: grid; grid-template-columns: 11rem 1fr; gap: 1.5rem 2.5rem;
  padding: 1.75rem 0; border-top: 1px solid var(--line);
}
.gen li:last-child { border-bottom: 1px solid var(--line); }
.gen-when { font: italic 400 1.05rem var(--serif); color: var(--ink); margin: 0; }
.gen-who { font-size: 1rem; }

@media (max-width: 700px) { .gen li { grid-template-columns: 1fr; gap: .9rem; } }

/* ---------- Quellen ---------- */
.src-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; max-width: 60rem; }
.src { font-size: 1rem; }

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

/* ---------- Dreier-Bildraster der Zweigseiten ---------- */
.tri {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(9rem, 15vw, 14rem); gap: 1rem;
}
.tri figure { margin: 0; overflow: hidden; border-radius: var(--r); background: var(--line-soft); }
.tri img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.04);
  transition: transform .7s var(--ease);
}
.tri figure:hover img { transform: scale(1.04); }
.t1 { grid-column: 1 / 2; grid-row: 1 / 3; }
.t2 { grid-column: 2 / 4; grid-row: 1 / 2; }
.t3 { grid-column: 2 / 4; grid-row: 2 / 3; }

@media (max-width: 700px) {
  .tri { grid-template-columns: 1fr; grid-auto-rows: 12rem; }
  .t1, .t2, .t3 { grid-column: 1 / 2; grid-row: auto; }
}

/* ---------- Ortsseiten ---------- */
.ort-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.ort-grid h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-bottom: 1.5rem; }

.facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 2rem; margin: 0; padding-top: 1.5rem;
  border-top: 1px solid var(--ink);
}
.facts dt { font: 500 .82rem var(--sans); color: var(--ink-2); margin-bottom: .3rem; }
.facts dd { margin: 0; font-size: 1.15rem; }
.fact-todo { color: var(--ink-2); font-style: italic; font-size: 1rem; }

.ort-fig { margin: 0; }
.ort-fig img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--r); filter: grayscale(1) contrast(1.04);
}
.ort-fig figcaption { margin-top: 1.25rem; font-size: .95rem; }

@media (max-width: 820px) { .ort-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; gap: 1.4rem; } }

/* ---------- Weiter-Verweis am Seitenende ---------- */
.next { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

/* ---------- Motion (MOTION_INTENSITY 4) ---------- */
/* Zweck: Hero-Eintritt ordnet die Lesereihenfolge, Scroll-Reveal
   zeigt an, dass ein neuer Abschnitt beginnt. Sonst nichts. */
@media (prefers-reduced-motion: no-preference) {
  .load { animation: rise .7s var(--ease) both; animation-delay: var(--d, 0ms); }

  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(1.4rem); }
  to   { opacity: 1; transform: none; }
}


/* ============================================================
   Gutenberg-Anpassungen
   Wird von build.sh hinter styles.css gehaengt. Enthaelt nur,
   was Core-Blocks anders aufbauen als das statische HTML.
   Keine Farb- oder Schriftwerte, die stehen in theme.json.
   ============================================================ */

/* ---------- Core-Reste neutralisieren ---------- */
.wp-block-group,
.wp-block-columns { margin-block: 0; }

.wp-site-blocks > * + * { margin-block-start: 0; }

.wp-block-image { margin: 0; }
.wp-block-image figcaption { margin-top: 1.25rem; text-align: left; }

/* Das 64ch-Maß gilt für Lesetext, nicht für Beschriftungen in Flex-Reihen */
.head-inner p, .foot-inner p, .place-row p, .facts-wp p, .crumbs p { max-width: none; }
.foot-brand p, .foot-nav p, .brand-name, .brand-sub, .crumbs p { margin: 0; }

/* ---------- Brotkrumen als Flex-Gruppe ---------- */
.crumbs { gap: .6rem; }
.crumbs p:last-child { color: var(--ink); }

/* ---------- Bildunterschrift der Ortsseiten ---------- */
.ort-fig figcaption { margin-top: 1.25rem; }

/* ---------- Kopfbereich ---------- */
header.site-head { display: flex; align-items: center; }

.brand .wp-block-site-logo { line-height: 0; }
.brand .wp-block-site-logo img { width: 40px; height: 40px; }
.brand-name a, .brand-name { text-decoration: none; color: inherit; }
.brand-txt { gap: 0; }

/* Navigation: Core liefert schon Flex, hier nur Farbe und Unterstrich */
.nav-desktop { gap: 2rem; }
.nav-desktop .wp-block-navigation-item__content {
  font: 400 .95rem var(--sans); color: var(--ink-2); text-decoration: none;
  padding-bottom: 3px; border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.nav-desktop .wp-block-navigation-item__content:hover {
  color: var(--ink); border-bottom-color: var(--accent);
}
.nav-desktop .wp-block-navigation__responsive-container-open,
.nav-desktop .wp-block-navigation__responsive-container-close { color: var(--ink); }
.nav-desktop .wp-block-navigation__responsive-container.is-menu-open {
  background: var(--surface); padding: 5rem 2rem;
}
.nav-desktop .wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation-item__content { font-size: 1.15rem; color: var(--ink); }

/* ---------- Fußbereich ---------- */
footer.site-foot .foot-brand .wp-block-site-logo img { width: 32px; height: 32px; }
.foot-nav { gap: 1.75rem; }
.foot-nav a {
  font: 400 .92rem var(--sans); color: var(--ink-2); text-decoration: none;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.foot-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- Buttons ---------- */
/* blockGap steht in theme.json auf 0, damit sich Core-Abstände nicht auf die
   Margins aus styles.css addieren. Flex-Abstände deshalb hier explizit. */
.wp-block-buttons { gap: 1rem; }

.wp-block-button__link {
  transition: background .2s var(--ease), transform .12s var(--ease);
}
.wp-block-button__link:hover {
  background: var(--accent-ink) !important;
  color: var(--btn-hover-ink) !important;
}
.wp-block-button__link:active { transform: translateY(1px); }

/* ---------- Übersichtskarten als Gruppe statt als Link ---------- */
/* Im Editor soll die Karte bearbeitbar bleiben, deshalb ist nur der
   Verweis am Fuß ein echter Link, nicht die ganze Fläche. */
.scard .scard-go { display: inline-block; margin: 0; }
.scard .scard-go a {
  color: var(--accent-ink); text-decoration: none;
  border-bottom: 1px solid var(--accent); padding-bottom: 2px;
  font: 500 .92rem var(--sans);
  transition: border-color .2s var(--ease);
}
.scard:hover .scard-go a { border-bottom-color: currentColor; }
.scard .wp-block-image { margin-bottom: 1.4rem; }

/* ---------- Ortsliste als Blockgruppen ---------- */
.place-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem;
  padding: 1.15rem 0; border-bottom: 1px solid var(--line);
}
.place-row:first-child { padding-top: 0; }
.place-de { margin: 0; font: 400 clamp(1.25rem, 2vw, 1.55rem) var(--serif); }
.place-de a {
  color: inherit; text-decoration: none;
  border-bottom: 1px solid transparent; transition: border-color .2s var(--ease);
}
.place-de a:hover { border-bottom-color: var(--accent); }
.place-now { margin: .25rem 0 0; font: 400 .88rem var(--sans); color: var(--ink-2); }
.place-map { margin: 0; flex: none; }
.place-map a {
  font: 500 .88rem var(--sans); color: var(--accent-ink);
  text-decoration: underline; text-underline-offset: .3em;
  text-decoration-thickness: 1px; text-decoration-color: var(--accent);
}
.place-map a:hover { text-decoration-color: currentColor; }

/* ---------- Stammlinie als Blockgruppen ---------- */
.gen-row {
  display: grid; grid-template-columns: 11rem 1fr; gap: 1.5rem 2.5rem;
  padding: 1.75rem 0; border-top: 1px solid var(--line);
}
.gen-row:last-child { border-bottom: 1px solid var(--line); }
.gen-row .gen-when { margin: 0; }
.gen-row .gen-who { margin: 0; }

@media (max-width: 700px) { .gen-row { grid-template-columns: 1fr; gap: .9rem; } }

/* ---------- Fakten der Ortsseiten ---------- */
.facts-wp {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 2rem; padding-top: 1.5rem; border-top: 1px solid var(--ink);
}
.facts-wp .fact-label { margin: 0 0 .3rem; font: 500 .82rem var(--sans); color: var(--ink-2); }
.facts-wp .fact-value { margin: 0; font-size: 1.15rem; }

@media (max-width: 480px) { .facts-wp { grid-template-columns: 1fr; gap: 1.4rem; } }

/* ---------- Bildraster: Core-Figuren statt eigener ---------- */
.gallery .wp-block-image, .tri .wp-block-image { height: 100%; }
.gallery .wp-block-image img, .tri .wp-block-image img { width: 100%; height: 100%; object-fit: cover; }
