/* parafeld.de — Gestaltung der Textseiten. Anmutung des Bretts (src/ui/basis.css): warmes Papier, weiße Pillen,
   weiche Schatten, Systemschrift. Keine Webschriften, keine fremden Quellen. */
:root {
  --grund: #eceae6;
  --papier: #faf8f4;
  --papier-dunkel: #f0ebe1;
  --linie: #ddd6c8;
  --linie-hell: #eee8dc;
  --text: #2c2a26;
  --text-kopf: #3a352c;
  --text-mittel: #5d584d;
  --text-leise: #6d685d; /* Kontrast ≥ 4,5:1 auf --grund und --papier (Lighthouse 16.11.2026; vorher #857f72) */
  --akzent: #236e9e; /* ≥ 4,5:1 auf --grund (vorher #2471a3: 4,4) */
  --akzent-hell: #e6f0f7;
  --holz: #c9a676;
  --dunkel: #3a352c;
  --gut: #2e7d52;
  --radius: 14px;
  --schatten: 0 4px 16px rgba(0, 0, 0, 0.08);
  --breite: 1120px;
  --spalte: 780px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--grund); color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--akzent); text-underline-offset: 2px; }
a:hover { color: #1b5a85; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { color: var(--text-kopf); line-height: 1.2; font-weight: 650; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(30px, 4.6vw, 46px); margin: 0 0 0.5em; }
h2 { font-size: clamp(23px, 3vw, 29px); margin: 1.9em 0 0.5em; }
h3 { font-size: 19px; margin: 1.6em 0 0.3em; letter-spacing: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin: 0.3em 0; }
sup { font-size: 0.6em; line-height: 0; }
.symbol { flex: 0 0 auto; }
.nur-vorlesen { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprung { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.sprung:focus { left: 16px; }

/* ---------- Schaltflächen ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--linie); background: var(--papier); color: var(--text-kopf);
  border-radius: 999px; padding: 9px 18px; min-height: 42px;
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.knopf:hover { background: var(--papier-dunkel); color: var(--text-kopf); }
.knopf.haupt { background: var(--dunkel); border-color: var(--dunkel); color: #fff; }
.knopf.haupt:hover { background: #2a261f; color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18); transform: translateY(-1px); }
.knopf.gross { padding: 13px 26px; font-size: 17px; min-height: 52px; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- Kopf mit Menü ---------- */
.kopf { position: sticky; top: 0; z-index: 50; padding: 10px 16px 0; }
.kopf-innen {
  max-width: var(--breite); margin: 0 auto; min-height: 54px; position: relative;
  display: flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: 999px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.09); padding: 6px 6px 6px 18px;
}
.marke {
  display: flex; align-items: center; gap: 8px; margin-right: auto;
  font-size: 19px; font-weight: 650; letter-spacing: -0.01em; color: var(--text-kopf); text-decoration: none; white-space: nowrap;
}
.marke:hover { color: var(--text-kopf); }
.menue { display: flex; align-items: center; gap: 2px; }
.menue a {
  padding: 8px 13px; border-radius: 999px; color: var(--text-mittel); text-decoration: none; font-size: 15px; white-space: nowrap;
}
.menue a:hover { background: var(--papier-dunkel); color: var(--text); }
.menue a.aktiv { background: var(--papier-dunkel); color: var(--text-kopf); font-weight: 600; }
.kopf .knopf.haupt { margin-left: 6px; }
.kopf .knopf.haupt .kurz { display: none; }
/* Sprachumschalter: Flaggen rechts im Kopf, am Handy immer sichtbar (Hausregel); aktive Sprache mit Rahmen, andere abgeblendet */
.sprachen { display: flex; align-items: center; flex: none; margin-left: 4px; }
.flagge {
  display: flex; align-items: center; justify-content: center; width: 32px; height: 40px; border-radius: 10px; opacity: 0.55;
}
.flagge:hover, .flagge:focus-visible { opacity: 1; background: var(--papier-dunkel); }
.flagge.aktiv { opacity: 1; }
.flagge-bild { display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.14); }
.flagge.aktiv .flagge-bild { box-shadow: 0 0 0 2px var(--holz); }
.menue-mobil { display: none; }
.menue-mobil > summary {
  list-style: none; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; color: var(--text-kopf);
  display: flex; align-items: center; justify-content: center;
}
.menue-mobil > summary::-webkit-details-marker { display: none; }
.menue-mobil > summary:hover, .menue-mobil[open] > summary { background: var(--papier-dunkel); }
.menue-mobil nav {
  position: absolute; right: 0; left: 0; top: calc(100% + 8px);
  background: #fff; border-radius: 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16); padding: 8px;
  display: flex; flex-direction: column;
}
.menue-mobil nav a {
  padding: 13px 16px; border-radius: 12px; color: var(--text-kopf); text-decoration: none; font-size: 17px;
}
.menue-mobil nav a:hover, .menue-mobil nav a.aktiv { background: var(--papier-dunkel); }
.menue-mobil nav a.aktiv { font-weight: 600; }
/* „Mein Parafeld“ (website/bauen.mjs → meinParafeld, Verhalten in seite.js) vor „Brett öffnen“: am Rechner ein heller
   Knopf mit Pfeil wie das Vorbild, wo der Platz nicht reicht und am Handy ein rundes Personen-Symbol (Breiten unten);
   grüner Punkt = angemeldet. Das Menü hängt rechts unter dem Knopf, am Handy über die ganze Kopfbreite. */
.mp { position: relative; flex: none; display: flex; align-items: center; }
.mp[hidden], .mp [hidden] { display: none !important; }
.mp-knopf {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px;
  padding: 8px 13px 8px 15px; border: 1px solid var(--linie); border-radius: 999px; background: var(--papier);
  color: var(--text-kopf); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.mp-knopf:hover, .mp-offen .mp-knopf { background: var(--papier-dunkel); color: var(--text-kopf); }
.mp-knopf .symbol { display: none; color: var(--text-kopf); }
.mp-pfeil {
  width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform 0.15s;
}
.mp-offen .mp-pfeil { transform: translateY(2px) rotate(225deg); }
.mp-punkt {
  display: none; position: absolute; top: -2px; right: -2px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--gut); border: 2px solid #fff;
}
.mp-an .mp-punkt { display: block; }
.mp-liste {
  position: absolute; right: 0; top: calc(100% + 12px); z-index: 60; width: 300px; max-width: calc(100vw - 24px);
  background: #fff; border-radius: 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16); padding: 8px;
  font-size: 16px; line-height: 1.45; text-align: left; white-space: normal;
}
.mp-liste a, .mp-liste button {
  display: block; width: 100%; padding: 11px 14px; border: 0; border-radius: 12px; background: none; cursor: pointer;
  color: var(--text-kopf); font: inherit; text-align: left; text-decoration: none;
}
.mp-liste a:hover, .mp-liste button:hover, .mp-liste a:focus-visible, .mp-liste button:focus-visible { background: var(--papier-dunkel); color: var(--text-kopf); }
.mp-liste :focus-visible { outline-offset: -2px; }
.mp-liste .mp-betont { font-weight: 650; }
.mp-hinweis { margin: 6px 0 0; padding: 12px 14px 6px; border-top: 1px solid var(--linie-hell); font-size: 14px; line-height: 1.5; color: var(--text-mittel); }
.mp-wer { margin: 0 0 6px; padding: 8px 14px 12px; border-bottom: 1px solid var(--linie-hell); font-size: 14px; color: var(--text-leise); }
.mp-wer b { display: block; margin-top: 1px; font-size: 16px; font-weight: 650; color: var(--text-kopf); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-liste hr { border: 0; border-top: 1px solid var(--linie-hell); margin: 6px 0; }
/* mit Flaggen braucht die ausgeschriebene Menüzeile mehr Platz als ohne */
@media (max-width: 899px) {
  .menue { display: none; }
  .menue-mobil { display: block; }
  .kopf { padding: 8px 10px 0; }
  .kopf-innen { padding-left: 14px; }
}
@media (min-width: 900px) and (max-width: 999px) {
  .kopf-innen:has(.sprachen) .menue { display: none; }
  .kopf-innen:has(.sprachen) .menue-mobil { display: block; }
}
/* sechs Menüpunkte mit Flaggen: bis 1199 px enger gesetzt und „Brett“ statt „Brett öffnen“ (gemessen 1000–1440 px, de/en/fr/es) */
@media (min-width: 1000px) and (max-width: 1199px) {
  .kopf-innen:has(.sprachen) .menue a { padding: 8px 9px; }
  .kopf-innen:has(.sprachen) .knopf.haupt .lang { display: none; }
  .kopf-innen:has(.sprachen) .knopf.haupt .kurz { display: inline; }
}
/* Handy: „Brett“ statt „Brett öffnen“, damit Marke, Flaggen, Knopf und Menü auf eine Zeile passen */
@media (max-width: 559px) {
  .kopf-innen:has(.sprachen) .knopf.haupt .lang { display: none; }
  .kopf-innen:has(.sprachen) .knopf.haupt .kurz { display: inline; }
  .kopf-innen:has(.sprachen) .knopf.haupt { padding: 8px 14px; }
  .sprachen { margin-left: 0; }
  .flagge { width: 30px; }
}
@media (max-width: 413px) {
  .kopf { padding: 8px 6px 0; }
  .kopf-innen { gap: 4px; padding-left: 12px; }
  .marke { font-size: 17px; gap: 6px; }
  .kopf .knopf.haupt { padding: 8px 12px; font-size: 14px; margin-left: 2px; }
  .menue-mobil > summary { width: 38px; }
  .flagge { width: 26px; }
}
/* unter 390 px: mit Flaggen bleibt von der Marke nur das Bildzeichen (der Name steht im aria-label und im Titel) */
@media (max-width: 389px) {
  .kopf-innen:has(.sprachen) .marke > span { display: none; }
  .kopf-innen:has(.sprachen) .marke { padding-right: 4px; }
}
@media (max-width: 359px) {
  /* 320 px: Marke, „Brett öffnen“ und Menüknopf passen nur mit schmaleren Rändern auf eine Zeile */
  .kopf-innen { gap: 2px; padding-left: 10px; padding-right: 4px; }
  .marke { font-size: 16px; gap: 5px; }
  .kopf .knopf.haupt { padding: 8px 10px; }
  .menue-mobil > summary { width: 34px; }
  .flagge { width: 25px; }
  .flagge-bild { width: 19px; height: 13px; }
}

/* „Mein Parafeld“ in den Breiten (gemessen 18.11.2026 mit DejaVu Sans, de/en/fr/es, 320–1440 px). Der Kopf war schon vorher
   fast voll (ab 1200 px blieben 70 px frei). Nur wenn der Knopf zu sehen ist (:has(> .mp:not([hidden])) — Schalter „an“
   oder Tester), rückt der Kopf zusammen; für alle anderen bleibt er wie bisher:
   ab 1200 px Knopf mit Text, Menüzeile und Flaggen enger, „Brett“ statt „Brett öffnen“ · 1000–1199 px rundes Symbol, Menü
   und Flaggen noch etwas enger · 900–999 px (Menü zugeklappt) Knopf mit Text · unter 900 px rundes Symbol, Menü über die ganze Breite;
   unter 700 px „Brett“, unter 500 px von der Marke nur das Bildzeichen (Name im aria-label), Symbol 38 bzw. 32 px. */
.kopf-innen:has(> .mp:not([hidden])) .menue a { padding: 8px 8px; }
.kopf-innen:has(> .mp:not([hidden])) .flagge { width: 28px; }
.kopf-innen:has(> .mp:not([hidden])) .knopf.haupt .lang { display: none; }
.kopf-innen:has(> .mp:not([hidden])) .knopf.haupt .kurz { display: inline; }
@media (max-width: 1199px) {
  .mp-knopf { width: 42px; height: 42px; min-height: 0; padding: 0; border-radius: 50%; }
  .mp-knopf .symbol { display: block; }
  .mp-knopf-text { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .mp-pfeil { display: none; }
}
@media (min-width: 1000px) and (max-width: 1199px) {
  .kopf-innen:has(> .mp:not([hidden])) .menue a { padding: 8px 7px; }
  .kopf-innen:has(> .mp:not([hidden])) .flagge { width: 27px; }
}
@media (min-width: 900px) and (max-width: 999px) {
  .mp-knopf { width: auto; height: auto; min-height: 42px; padding: 8px 13px 8px 15px; border-radius: 999px; }
  .mp-knopf .symbol { display: none; }
  .mp-knopf-text { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; }
  .mp-pfeil { display: block; }
}
@media (max-width: 899px) {
  .mp { position: static; margin-left: 0; }
  .mp-liste { left: 0; right: 0; width: auto; max-width: none; top: calc(100% + 8px); }
  .mp-liste a, .mp-liste button { padding: 13px 16px; font-size: 17px; }
}
@media (max-width: 699px) {
  .kopf-innen:has(> .mp:not([hidden])) .knopf.haupt .lang { display: none; }
  .kopf-innen:has(> .mp:not([hidden])) .knopf.haupt .kurz { display: inline; }
}
@media (max-width: 499px) {
  .kopf-innen:has(> .mp:not([hidden])) .marke > span { display: none; }
  .kopf-innen:has(> .mp:not([hidden])) .marke { padding-right: 4px; }
}
@media (max-width: 413px) {
  .mp-knopf { width: 38px; height: 38px; }
}
@media (max-width: 359px) {
  .mp-knopf { width: 32px; height: 32px; }
  .mp-knopf .symbol { width: 18px; height: 18px; }
  /* 320 px: in fr/es ist „Brett“ länger („Plateau“, „Tablero“) — Abstände und Flaggen noch etwas schmaler */
  .kopf-innen:has(> .mp:not([hidden])) { gap: 0; padding-left: 8px; }
  .kopf-innen:has(> .mp:not([hidden])) .flagge { width: 23px; }
  .kopf-innen:has(> .mp:not([hidden])) .knopf.haupt { padding: 8px 8px; }
}

/* ---------- Seitenrahmen ---------- */
main { display: block; padding: 0 16px 8px; }
.innen { max-width: var(--breite); margin: 0 auto; }
.pfad { max-width: var(--spalte); margin: 22px auto 10px; font-size: 14px; color: var(--text-leise); }
.pfad.breit { max-width: var(--breite); }
.pfad a { color: var(--text-mittel); text-decoration: underline; text-decoration-color: var(--linie); text-underline-offset: 3px; }
.pfad a:hover { text-decoration-color: currentColor; }
.pfad span[aria-hidden] { margin: 0 6px; opacity: 0.6; }
.papier {
  max-width: var(--spalte); margin: 0 auto; background: rgba(255, 255, 255, 0.93);
  border-radius: 18px; box-shadow: var(--schatten); padding: clamp(22px, 4.5vw, 52px);
}
.papier.breit { max-width: var(--breite); }
.papier > :first-child { margin-top: 0; }
.papier > :last-child { margin-bottom: 0; }
.papier.breit > p, .papier.breit > ul, .papier.breit > ol, .papier.breit > h1, .papier.breit > h2, .papier.breit > h3 { max-width: 46em; }
.vorspann { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.55; color: var(--text-mittel); }
.auge-zeile {
  font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-leise); margin: 0 0 10px;
}
.stand { font-size: 14px; color: var(--text-leise); }
/* Seiten, die erst mit der Bezahlfunktion gelten (Kopfangabe nur: zahlung-an) */
.entwurf-streifen {
  max-width: var(--breite); margin: 18px auto 0; padding: 10px 18px; border-radius: 12px;
  background: #fbf0e3; border: 1px solid #ecd3b0; color: #7a4e1d; font-size: 15px; font-weight: 600; text-align: center;
}
/* Fehlerseite: Wege in die anderen Sprachen */
.sprachen-hilfe { list-style: none; padding: 0; }
.sprachen-hilfe a { display: inline-flex; align-items: center; gap: 10px; padding: 4px 0; }
.sprachen-hilfe .flagge-bild { flex: none; }

/* ---------- Bausteine im Text ---------- */
.kasten {
  background: var(--papier); border: 1px solid var(--linie-hell); border-left: 4px solid var(--holz);
  border-radius: 10px; padding: 16px 20px; margin: 1.4em 0;
}
.kasten > :last-child { margin-bottom: 0; }
.kasten > :first-child { margin-top: 0; }
.kasten.hinweis { border-left-color: var(--akzent); }
.schritte { list-style: none; padding: 0; counter-reset: schritt; margin: 1.2em 0; }
.schritte > li {
  counter-increment: schritt; position: relative; padding: 2px 0 14px 52px; margin: 0; min-height: 44px;
}
.schritte > li::before {
  content: counter(schritt); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--dunkel); color: #fff; font-weight: 650; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.schritte > li strong:first-child { display: block; color: var(--text-kopf); }
.haken { list-style: none; padding: 0; }
.haken > li { position: relative; padding-left: 30px; margin: 0.5em 0; }
.haken > li::before {
  content: ''; position: absolute; left: 2px; top: 0.42em; width: 16px; height: 9px;
  border-left: 2.5px solid var(--gut); border-bottom: 2.5px solid var(--gut); transform: rotate(-45deg) scale(0.85); transform-origin: left top;
  margin-top: 4px;
}
.tabelle-rahmen { overflow-x: auto; margin: 1.3em 0; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--linie-hell); }
th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-leise); font-weight: 650; white-space: nowrap; }
tr.eigen td { background: var(--papier); font-weight: 600; }
kbd {
  font: 600 13px/1 system-ui, sans-serif; background: var(--papier); border: 1px solid var(--linie); border-bottom-width: 2px;
  border-radius: 6px; padding: 3px 7px; white-space: nowrap; color: var(--text-kopf);
}
blockquote {
  margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--holz); color: var(--text-mittel); font-size: 18px;
}
blockquote > :last-child { margin-bottom: 0; }
/* Begriffsliste (Glossar): Begriff fett, Erklärung eingerückt, feine Linie zwischen den Einträgen */
dl { margin: 1.2em 0; }
dt { font-weight: 650; color: var(--text-kopf); margin: 0; padding-top: 14px; border-top: 1px solid var(--linie-hell); }
dt:first-child { border-top: 0; padding-top: 0; }
dd { margin: 4px 0 14px; padding-left: 18px; color: var(--text); }
dd + dd { margin-top: -8px; }
dd > :last-child { margin-bottom: 0; }

/* Häufige Fragen */
details.frage { border-top: 1px solid var(--linie-hell); }
details.frage:last-of-type { border-bottom: 1px solid var(--linie-hell); }
details.frage > summary {
  cursor: pointer; list-style: none; padding: 16px 34px 16px 0; position: relative;
  font-weight: 600; color: var(--text-kopf); font-size: 18px;
}
details.frage > summary::-webkit-details-marker { display: none; }
details.frage > summary::after {
  content: ''; position: absolute; right: 8px; top: 24px; width: 9px; height: 9px;
  border-right: 2px solid var(--text-leise); border-bottom: 2px solid var(--text-leise); transform: rotate(45deg); transition: transform 0.15s;
}
details.frage[open] > summary::after { transform: rotate(-135deg); top: 28px; }
details.frage > div { padding: 0 0 18px; }
details.frage > div > :last-child { margin-bottom: 0; }

/* ---------- Beispielbrett (Bild, auf Klick das Brett in 3D) ---------- */
figure { margin: 1.6em 0; }
figcaption { font-size: 14.5px; color: var(--text-leise); margin-top: 9px; display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: space-between; }
figcaption a { white-space: nowrap; font-weight: 600; }
.brett-rahmen, .bild-rahmen {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--grund); border: 1px solid var(--linie);
}
.brett-rahmen { aspect-ratio: 3 / 2; }
.brett-rahmen picture { display: contents; }
.brett-rahmen img { width: 100%; height: 100%; object-fit: cover; }
/* am Handy quadratisch: das Brett füllt die Breite, die Namensschilder bleiben lesbar (Bild szene-…-hoch.jpg) */
@media (max-width: 640px) { .brett-rahmen { aspect-ratio: 1 / 1; } }
.brett-rahmen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.brett-rahmen .knopf {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14); border-color: transparent;
}
.brett-rahmen .knopf:hover { background: #fff; transform: translateX(-50%) translateY(-1px); }
.brett-rahmen.laeuft img, .brett-rahmen.laeuft .knopf { display: none; }
.brett-rahmen .leer { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--text-leise); font-size: 14px; }
.bild-rahmen img { width: 100%; }
figure.handy { max-width: 300px; margin-left: auto; margin-right: auto; }
figure.handy .bild-rahmen { border-radius: 26px; border: 6px solid var(--dunkel); }

/* ---------- Filme der Widget-Seiten ({{film}}): Film links, Name und Beschreibung rechts, am Handy untereinander ---------- */
.film-zeile {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px 34px; align-items: start;
  padding: 26px 0; border-top: 1px solid var(--linie-hell);
}
h2 + .film-zeile, h3 + .film-zeile, p + .film-zeile { border-top: 0; padding-top: 10px; }
@media (min-width: 760px) {
  .film-zeile { grid-template-columns: min(440px, 44%) minmax(0, 1fr); }
}
.film { margin: 0; }
.film.einzeln { max-width: 640px; margin: 1.6em 0; }
.film-rahmen {
  position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden;
  background: var(--grund); border: 1px solid var(--linie); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.film-rahmen img, .film-rahmen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.film-rahmen video { background: transparent; }
.film-rahmen video:not([controls]) { cursor: pointer; }
.film-rahmen.leer { display: flex; align-items: center; justify-content: center; color: var(--text-leise); font-size: 14px; }
/* Anhalten/Abspielen (setzt seite.js ein): am Rechner beim Darüberfahren, sonst nur, wenn angehalten */
.film-knopf {
  position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(58, 53, 44, 0.78); color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; transition: opacity 0.15s;
}
.film-knopf svg { display: block; }
.film-rahmen:hover .film-knopf, .film-knopf:focus-visible, .film-rahmen.angehalten .film-knopf { opacity: 1; }
.film-text > h3:first-child { margin-top: 0; }
.film-text > :last-child { margin-bottom: 0; }
.film-text p { margin-bottom: 0.7em; }
/* Sprungmarken am Seitenanfang einer Widget-Seite */
.sprungliste { list-style: none; padding: 0; margin: 0.4em 0 1em; columns: 2 12em; column-gap: 28px; }
.sprungliste li { margin: 0 0 0.35em; break-inside: avoid; }

/* ---------- Karten ---------- */
.karten { list-style: none; padding: 0; margin: 1.4em 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.karten > li { margin: 0; }
.karte {
  display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--radius);
  border: 1px solid var(--linie-hell); overflow: hidden; text-decoration: none; color: var(--text);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
a.karte:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1); border-color: var(--linie); color: var(--text); }
.karte img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; background: var(--grund); border-bottom: 1px solid var(--linie-hell); }
.karte-text { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.karte-titel { font-size: 18px; font-weight: 650; color: var(--text-kopf); line-height: 1.3; display: flex; align-items: center; gap: 9px; }
.karte-titel .symbol { color: var(--holz); }
.karte-anriss { font-size: 15px; line-height: 1.5; color: var(--text-mittel); }
.karte-mehr { margin-top: auto; padding-top: 8px; font-size: 14.5px; font-weight: 600; color: var(--akzent); }
.karten.klein { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }

/* ---------- Abschnitte der Startseite und der Übersichten ---------- */
.abschnitt { max-width: var(--breite); margin: 0 auto; padding: clamp(40px, 7vw, 76px) 0 0; }
/* auch die Überschrift, die in einem zweispaltigen Block steht (Startseite „So beginnen Sie“): sonst kam zum Abstand des
   Abschnitts der volle Rand der h2 (1,9em) hinzu, und sie war kleiner als die übrigen Abschnittsüberschriften (18.11.2026) */
.abschnitt > h2, .abschnitt > .zwei > div > h2:first-child { margin-top: 0; font-size: clamp(26px, 3.6vw, 36px); }
.abschnitt > .vorspann { max-width: 44em; }
.buehne {
  max-width: var(--breite); margin: 0 auto; padding: clamp(22px, 5vw, 56px) 0 0;
  display: grid; gap: clamp(22px, 4vw, 48px); grid-template-columns: minmax(0, 1fr); align-items: center;
}
.buehne h1 { font-size: clamp(32px, 4.3vw, 50px); letter-spacing: -0.02em; margin-bottom: 0.4em; }
.buehne .vorspann { margin-bottom: 1.3em; }
.buehne figure { margin: 0; }
.buehne .brett-rahmen { box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14); border: 0; }
.merkmale { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14.5px; color: var(--text-mittel); }
.merkmale li { margin: 0; display: flex; align-items: center; gap: 6px; }
.merkmale .symbol { color: var(--gut); }
@media (min-width: 980px) {
  .buehne { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); }
}
.zwei { display: grid; gap: clamp(20px, 4vw, 44px); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 860px) {
  .zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zwei.umgekehrt > :first-child { order: 2; }
}
.zwei figure { margin: 0; }
.flaeche { background: rgba(255, 255, 255, 0.93); border-radius: 22px; box-shadow: var(--schatten); padding: clamp(22px, 4.5vw, 52px); }
.flaeche > :first-child { margin-top: 0; }
.flaeche > :last-child { margin-bottom: 0; }

/* Tarife */
.tarife { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); margin: 1.4em 0; align-items: stretch; }
.tarif { background: #fff; border: 1px solid var(--linie); border-radius: 18px; padding: 26px 26px 28px; display: flex; flex-direction: column; }
.tarif.betont { border: 2px solid var(--dunkel); box-shadow: 0 8px 26px rgba(0, 0, 0, 0.1); }
.tarif h2, .tarif h3 { margin: 0 0 4px; font-size: 22px; }
.tarif .fuer { color: var(--text-mittel); font-size: 15px; margin: 0 0 14px; }
.tarif .preis { font-size: 40px; font-weight: 700; color: var(--text-kopf); line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
.tarif .preis small { font-size: 16px; font-weight: 500; color: var(--text-mittel); letter-spacing: 0; }
.tarif .preis-zusatz { font-size: 14.5px; color: var(--text-mittel); margin: 6px 0 16px; min-height: 1.5em; }
.tarif ul { margin-bottom: 20px; font-size: 15.5px; }
.tarif .knopf { margin-top: auto; }

/* Aufruf am Seitenende */
.aufruf {
  max-width: var(--spalte); margin: clamp(26px, 5vw, 44px) auto 0; background: var(--dunkel); color: #f3efe6;
  border-radius: 18px; padding: clamp(22px, 4vw, 34px) clamp(22px, 4.5vw, 40px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px;
}
.aufruf.breit { max-width: var(--breite); }
.aufruf h2 { color: #fff; margin: 0 0 4px; font-size: clamp(21px, 2.8vw, 26px); }
.aufruf p { margin: 0; color: #d9d3c6; font-size: 16px; }
.aufruf .knopf { background: #fff; border-color: #fff; color: var(--dunkel); }
.aufruf .knopf:hover { background: var(--papier-dunkel); }

/* Weiterlesen */
.weiter { max-width: var(--spalte); margin: clamp(30px, 5vw, 48px) auto 0; }
.weiter.breit { max-width: var(--breite); }
.weiter h2 { font-size: 21px; margin: 0 0 12px; }

/* ---------- Fuß ---------- */
.fuss { background: var(--dunkel); color: #cfc8ba; margin-top: clamp(48px, 8vw, 90px); padding: clamp(34px, 6vw, 56px) 16px 26px; font-size: 15px; }
.fuss-innen { max-width: var(--breite); margin: 0 auto; display: grid; gap: 28px 36px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.fuss h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.09em; color: #a79f90; margin: 0 0 10px; font-weight: 650; }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { margin: 0; }
.fuss a { color: #efeadf; text-decoration: none; display: inline-block; padding: 4px 0; }
.fuss a:hover { text-decoration: underline; color: #fff; }
.fuss .marke { color: #fff; margin-bottom: 10px; }
.fuss-kuendigen { margin-top: 14px !important; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.fuss .fuss-kuendigen .knopf { display: inline-flex; padding: 8px 16px; min-height: 40px; background: transparent; color: #fff; border-color: #8f877a; font-size: 14.5px; }
.fuss .fuss-kuendigen .knopf:hover { background: rgba(255, 255, 255, 0.1); text-decoration: none; }
.fuss p { margin: 0 0 8px; line-height: 1.55; }
.fuss-zeile { max-width: var(--breite); margin: 30px auto 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 13.5px; color: #a79f90; display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; }

@media (max-width: 599px) {
  body { font-size: 16.5px; }
  .papier, .flaeche { border-radius: 14px; }
  th, td { padding: 9px 10px; }
  figcaption { font-size: 14px; }
  .aufruf .knopf { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .knopf, .karte, .film-knopf { transition: none; }
}
@media print {
  .kopf, .fuss, .aufruf, .weiter, .brett-rahmen .knopf { display: none; }
  body { background: #fff; }
  .papier { box-shadow: none; padding: 0; }
}
