/* Schriften lokal eingebunden (SIL Open Font License), keine Verbindung zu Google */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/fraunces-latin.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/publicsans-latin.woff2") format("woff2"); }

:root {
  --cream: #f8f5ef;
  --white: #ffffff;
  --ink: #1f1f1f;
  --text: #333333;
  --orange: #f28a12;
  --navy: #2c3e5c;
  --blue-box: #e6eff9;
  --rose-box: #fdeceb;
  --icon-bg: #fbe8cc;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.15;
  margin: 0;
}

.container { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.container.narrow p { max-width: 580px; }

/* Header */
.site-header { text-align: center; padding: 14px 16px 0; }

.logo {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 38px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}
.logo span { color: var(--orange); }

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 42px;
  margin-top: 14px;
}
.main-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  padding: 4px 0;
}
.main-nav a:hover,
.main-nav a.active { color: var(--orange); }

/* Hero */
.hero { padding: 10px 0 28px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}
.hero-text { padding-top: 46px; display: flex; flex-direction: column; min-height: 100%; }
.hero h1 { font-size: 32px; font-weight: 700; }
.hero h1::after {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  background: var(--orange);
  margin: 14px 0 12px;
}
.hero .lead {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  margin: 0 0 32px;
  max-width: 260px;
}
.hero-img { border-radius: 10px; width: 100%; }

.btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 6px 28px;
  transition: background .2s;
}
.btn:hover { background: #d9760a; }
.btn-pill { border-radius: 10px; align-self: flex-start; margin-top: auto; padding: 6px 26px; }

/* Intro */
.intro { background: var(--white); padding: 20px 0 22px; }
.intro p { margin: 0 0 16px; font-size: 14px; }
.intro h2 { font-size: 24px; font-weight: 700; margin: 6px 0 28px; max-width: 480px; }

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}
.box {
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
}
.box p { margin: 0; font-size: 12px; line-height: 1.6; }
.box-blue { background: var(--blue-box); }
.box-rose { background: var(--rose-box); }

.intro h3.backup { font-size: 21px; font-weight: 700; margin-top: 30px; }
.intro .backup-sub { margin: 2px 0 0; }

/* Themes */
.themes { padding: 30px 0 50px; }

.banner {
  background: var(--navy);
  color: #fff;
  border-radius: 6px;
  padding: 20px 26px 22px;
}
.banner h2 { color: #fff; font-size: 24px; font-weight: 700; margin-bottom: 14px; }
.banner p { margin: 0; font-size: 13px; line-height: 1.7; }

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px 30px;
  margin: 48px 0 58px;
}
.card {
  background: var(--white);
  border-radius: 6px;
  padding: 12px 36px 20px;
  display: flex;
  flex-direction: column;
}
.card h3 {
  font-size: 17px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}
.icon {
  width: 30px; height: 30px;
  border-radius: 6px;
  background: var(--icon-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon svg {
  width: 15px; height: 15px;
  fill: none;
  stroke: #6b4a1e;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card p { margin: 0 0 18px; font-size: 12px; line-height: 1.6; }
.more {
  margin-top: auto;
  font-size: 13px;
  font-weight: 500;
  text-underline-offset: 2px;
}
.more::before { content: "⟶ "; text-decoration: none; display: inline-block; margin-right: 4px; }
.more:hover { color: var(--orange); }

.banner-cta {
  text-align: center;
  border-radius: 0;
  padding: 28px 40px 22px;
}
.banner-cta h2 { max-width: 520px; margin: 0 auto 24px; }
.banner-cta p { max-width: 440px; margin: 0 auto; }
.banner-cta .accent { color: var(--orange); font-size: 14px; margin: 22px auto 40px; }

/* Footer */
.site-footer {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.02em;
  padding: 0 16px 28px;
  color: var(--ink);
}
.site-footer a { text-decoration: none; display: inline-block; padding: 8px 0; }
.site-footer a:hover { color: var(--orange); }

/* Responsive */
@media (max-width: 640px) {
  .main-nav { gap: 4px 20px; }
  .hero-grid, .compare, .cards { grid-template-columns: 1fr; }
  .hero-grid { gap: 24px; }
  .hero-text { padding-top: 20px; }
  .hero-img { order: -1; }
  .btn-pill { margin-top: 0; }
  .cards { gap: 20px; }
  .banner-cta { padding: 24px 20px; }
}

/* Mythen */
.lead-wide { max-width: 300px; }
.intro-center { text-align: center; }
.intro-center p { max-width: 440px; margin: 10px auto; font-size: 13px; line-height: 1.7; }

:root { --badge-bg: #fde7e4; --badge-fg: #b5541c; --tip-bg: #fdf3e3; }

.myths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.myth {
  background: var(--white);
  border-radius: 8px;
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.myth-wide { grid-column: 1 / -1; }
.badge {
  align-self: flex-start;
  background: var(--badge-bg);
  color: var(--badge-fg);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}
.myth h2 { font-size: 19px; font-weight: 700; margin-bottom: 6px; text-wrap: balance; }
.myth p { margin: 0; font-size: 11.5px; line-height: 1.6; }
.myth .takeaway {
  margin-top: auto;
  background: var(--tip-bg);
  border-radius: 8px;
  padding: 12px 18px;
}
.myth p:not(.takeaway) { margin-bottom: 14px; }
.banner-round { border-radius: 8px; }
.banner-round .accent { margin-bottom: 16px; }

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

/* Freiheit */
:root { --gold: #a77b2c; --tan: #e5d5b8; --red-line: #c9393a; }

.page-freiheit .chapter {
  border-top: 2px solid var(--gold);
  padding: 14px 0 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.page-freiheit .chapter:first-child { border-top: 0; }
.page-freiheit .chapter p { margin: 0; font-size: 13px; line-height: 1.65; }
.page-freiheit .chapter h2 {
  font-size: 22px;
  font-weight: 700;
  text-wrap: balance;
}
.page-freiheit .chapter h2::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--gold);
  margin-top: 10px;
}
.eyebrow {
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold);
  font-size: 12px !important;
  margin-bottom: -10px !important;
}
.page-freiheit .label { font-family: var(--sans); font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.page-freiheit .split > div > p + .label { margin-top: 12px; }

.split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
  align-items: start;
}
.split > div { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.split > div > .label + p { margin-top: -12px; }
.split-reverse { grid-template-columns: 1fr 2fr; }

.callout {
  border-left: 3px solid var(--red-line);
  padding: 4px 0 4px 18px;
  font-weight: 700;
  font-size: 16px !important;
  color: var(--ink);
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  align-items: start;
}
.steps li, .countries > div {
  background: var(--tan);
  padding: 10px 12px;
  font-size: 11.5px;
  line-height: 1.6;
}
.steps strong { display: block; font-weight: 600; }
.source { display: block; font-size: 11px; }

.cases { display: flex; flex-direction: column; gap: 14px; }
.case {
  background: var(--white);
  padding: 12px 16px;
}
.case > * { border-left: 2px solid var(--red-line); padding-left: 10px; }
.case h3 { font-family: var(--sans); font-size: 12px; font-weight: 600; }
.case p { font-size: 11.5px !important; }

.countries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.countries > div { display: flex; flex-direction: column; gap: 4px; padding: 16px 14px; }
.countries h3, .spaces h3 { font-family: var(--sans); font-size: 13px; font-weight: 600; }
.countries p { font-size: 11.5px !important; }
.countries .source { margin-top: auto; padding-top: 18px; }

.cite {
  margin: 0 12px;
  background: var(--rose-box);
  padding: 14px 28px;
  font-size: 12px;
}
.cite p { font-size: 12px !important; margin-bottom: 14px !important; }
.cite footer { font-size: 12px; }

.spaces {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.spaces > div {
  background: var(--white);
  border-top: 2px solid #e2a83a;
  padding: 12px 12px 22px;
}
.spaces p { font-size: 11.5px !important; }

.trio {
  display: grid;
  grid-template-columns: 1.6fr 0.6fr 1fr;
  gap: 16px;
  align-items: start;
}
.source-line { font-style: italic; font-weight: 600; font-size: 11px !important; }

.page-freiheit .banner-cta { margin-bottom: 40px; }

@media (max-width: 640px) {
  .split, .split-reverse, .trio { grid-template-columns: 1fr; }
  .steps, .spaces { grid-template-columns: 1fr 1fr; }
  .countries { grid-template-columns: 1fr; }
  .cite { margin: 0; padding: 14px 18px; }
}

/* Krisenfest */
.toc {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--cream);
  padding: 6px 0 14px;
  transition: box-shadow .2s;
}
.toc.is-stuck { box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 6px 14px -10px rgba(0,0,0,.25); padding: 8px 0; }
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.toc a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
  background: var(--white);
  border-radius: 8px;
  padding: 8px 9px;
  text-decoration: none;
  font-size: 10.5px;
  line-height: 1.3;
  color: var(--ink);
  transition: background .15s, color .15s;
}
.toc a span {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  color: var(--orange);
}
.toc a:hover { background: var(--icon-bg); }
.toc a[aria-current="true"] { background: var(--navy); color: #fff; }
.toc a:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
/* Beim Scrollen nur noch die Nummern zeigen */
.toc.is-stuck a { flex-direction: row; align-items: center; justify-content: center; padding: 4px 6px; font-size: 0; }
.toc.is-stuck a span { font-size: 14px; }
.toc.is-stuck a[aria-current="true"] span { color: #fff; }

.ks {
  border-top: 2px solid var(--gold);
  padding: 22px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-margin-top: 60px;
}
.ks:first-child { border-top: 0; }
.ks p { margin: 0; font-size: 13.5px; line-height: 1.7; }
.ks-head { display: flex; flex-direction: column; gap: 4px; }
.ks-num {
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
  font-size: 12px !important;
}
.ks h2 { font-size: 24px; font-weight: 700; text-wrap: balance; }
.ks h2::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background: var(--gold);
  margin-top: 12px;
}
.ks-lead { max-width: 640px; }
.ks figure { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ks figure img { width: 100%; border-radius: 6px; }
.ks figcaption, .ks-note, .ks-source { font-size: 11.5px !important; color: #6b665e; line-height: 1.5 !important; }

.ks-split {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px;
  align-items: start;
}
.ks-split-wide { grid-template-columns: 1.6fr 1fr; }
.ks-text { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.ks-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ks-compare > div {
  background: var(--white);
  border-top: 3px solid #8fb3a3;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ks-compare > div:last-child { border-top-color: var(--red-line); }
.ks-compare h3, .ks-rule h3 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ks-case {
  background: var(--white);
  border-left: 3px solid var(--navy);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ks-rule {
  background: var(--tan);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 6px;
}
.ks-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.ks-pair img { aspect-ratio: 16 / 9; object-fit: cover; }

.ks-callout {
  border-left: 3px solid var(--red-line);
  padding: 4px 0 4px 18px;
  font-weight: 700;
  font-size: 17px !important;
  line-height: 1.45 !important;
  color: var(--ink);
}
.ks-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  padding-top: 4px;
}
.ks-foot a { text-decoration: none; color: #6b665e; }
.ks-foot a:hover { color: var(--orange); }
.ks-up::before { content: "↑ "; }
.ks-next { margin-left: auto; font-weight: 600; color: var(--ink) !important; }
.ks-next::after { content: " →"; }
.page-krisen .banner-cta { margin: 20px 0 40px; }

@media (max-width: 640px) {
  .toc ol { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  .toc a { font-size: 0; align-items: center; padding: 6px 2px; }
  .toc a span { font-size: 14px; }
  .ks-split, .ks-split-wide, .ks-compare, .ks-pair { grid-template-columns: 1fr; }
  .ks h2 { font-size: 21px; }
}

/* Freiheit: Abschnitts-Navigation */
.page-freiheit .chapter { scroll-margin-top: 60px; }
.page-freiheit .chapter:first-child { border-top: 0; }
.page-freiheit .toc + .container .chapter:first-child { padding-top: 22px; }

/* Würde */
.ks-intro { max-width: 640px; margin: 0 0 18px; font-size: 14px; line-height: 1.7; }
.ks-center { align-items: center; }
.ks-center img { max-width: 620px; }
.ks-split-img-first { grid-template-columns: 1fr 1.35fr; }
.page-wuerde .banner-cta { margin: 20px 0 40px; }
@media (max-width: 640px) {
  .ks-split-img-first { grid-template-columns: 1fr; }
}

/* Das kannst du tun */
.toc-3 ol { grid-template-columns: repeat(3, 1fr); }
.toc-3 a { font-size: 12px; }
.tun-intro { display: flex; flex-direction: column; gap: 12px; max-width: 640px; margin-bottom: 20px; }
.tun-intro p { margin: 0; font-size: 14px; line-height: 1.7; }
.tun-kicker { font-family: var(--serif); font-weight: 700; font-size: 20px !important; color: var(--ink); }
.effort {
  align-self: flex-start;
  margin-top: 6px !important;
  background: var(--icon-bg);
  color: #6b4a1e;
  font-size: 11px !important;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
}
.page-tun h3 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.demand { background: var(--navy); color: #fff; border-radius: 8px; padding: 20px 24px; }
.demand h3 { color: var(--orange); }
.demand ol, .howto ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; line-height: 1.65; }
.demand li::marker { color: var(--orange); font-weight: 700; }
.howto li::marker { color: var(--gold); font-weight: 700; }

.tun-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.howto, .questions { background: var(--white); border-radius: 8px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.questions ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.questions li { border-left: 2px solid var(--gold); padding: 2px 0 2px 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.questions q { font-size: 13px; line-height: 1.6; font-style: italic; }
.copy {
  font: 600 11px var(--sans);
  background: transparent;
  border: 1px solid var(--gold);
  color: #6b4a1e;
  border-radius: 999px;
  padding: 3px 12px;
  cursor: pointer;
}
.copy:hover { background: var(--icon-bg); }
.copy:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.tips { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tips > div { background: var(--tan); border-radius: 8px; padding: 16px 20px; }
.tips p { font-size: 13px !important; }

.links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
a.ext { font-weight: 600; font-size: 13.5px; color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--orange); }
a.ext::before { content: "→ "; color: var(--orange); }
a.ext:hover { color: var(--orange); }
.page-tun .banner-cta { margin: 20px 0 40px; }

@media (max-width: 640px) {
  .tun-grid, .tips { grid-template-columns: 1fr; }
  .toc-3 a { font-size: 11px; }
  .toc.toc-3 a, .toc.toc-3.is-stuck a { font-size: 0; }
}

/* Impressum & Datenschutz */
.legal { max-width: 680px; padding-block: 24px 48px; }
.legal h1 { font-size: 30px; font-weight: 700; margin-bottom: 8px; text-wrap: balance; }
.legal-jump { font-size: 13px; margin: 0 0 24px; }
.legal-jump a { color: var(--ink); text-decoration-color: var(--orange); text-underline-offset: 3px; }
.legal section { border-top: 2px solid var(--gold); padding-top: 18px; margin-bottom: 28px; scroll-margin-top: 20px; }
.legal h2 { font-size: 23px; font-weight: 700; margin-bottom: 4px; }
.legal h3 { font-family: var(--sans); font-size: 14px; font-weight: 700; margin: 22px 0 6px; color: var(--ink); }
.legal p, .legal li, .legal address { font-size: 14px; line-height: 1.7; margin: 0 0 10px; font-style: normal; }
.legal ul { margin: 0 0 10px; padding-left: 20px; }
.legal-date { color: #6b665e; font-size: 12px !important; }
.legal .todo { background: #fff1c2; outline: 1px dashed var(--orange); padding: 0 4px; }

/* Galerie */
.toc-4 ol { grid-template-columns: repeat(4, 1fr); }
.toc-4 a { font-size: 12px; }
.g-filter { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; background: var(--white); border-radius: 8px; padding: 14px 16px; }
.g-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.g-field label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #6b665e; }
.g-field input, .g-field select {
  font: 14px var(--sans); color: var(--ink); background: var(--cream);
  border: 1px solid #d9d1c3; border-radius: 6px; padding: 8px 10px; width: 100%;
}
.g-field input:focus-visible, .g-field select:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }
.g-count { font-size: 12px !important; color: #6b665e; }
.g-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.g-card { min-width: 0; }
.g-card-btn {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; width: 100%; height: 100%;
  background: var(--white); border-radius: 8px; overflow: hidden; transition: transform .15s, box-shadow .15s;
}
.g-card-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -12px rgba(0,0,0,.35); }
.g-card-btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.g-card-img { position: relative; aspect-ratio: 4 / 3; background: var(--tan); }
.g-card-img img { width: 100%; height: 100%; object-fit: cover; }
.g-sample { position: absolute; top: 8px; left: 8px; background: var(--ink); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; }
.g-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.g-card-kat, .g-d-kat { font-size: 10.5px !important; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.g-card-title { font-family: var(--serif); font-size: 17px; font-weight: 700; line-height: 1.25; }
.g-card-ort { font-size: 12.5px !important; color: #6b665e; }
.g-card-sach { font-size: 13px !important; line-height: 1.5 !important; margin-top: 4px !important; }
.g-card-meta { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.g-card-date { font-size: 11px; color: #6b665e; }
.g-badge { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.g-badge-geprueft { background: var(--blue-box); color: var(--navy); }
.g-badge-bestaetigt { background: #e2f0e4; color: #2f6b3a; }
.g-empty { background: var(--white); border-radius: 8px; padding: 18px; text-align: center; }
.g-mail { background: var(--icon-bg); border-radius: 6px; padding: 8px 12px; font-size: 13.5px !important; }
.g-template { margin: 0; white-space: pre-wrap; font: 12.5px/1.6 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; background: var(--cream); border-radius: 6px; padding: 12px; overflow-x: auto; }
.g-checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.g-checks > div { background: var(--white); border-top: 3px solid var(--gold); padding: 14px 16px; }
.g-checks p { font-size: 13px !important; }
.g-sub { margin-top: 6px; }
.g-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; line-height: 1.6; }
.g-legend .g-badge { margin-right: 8px; }
.page-galerie h3 { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px; }
.page-galerie .g-card-title { font-family: var(--serif); font-size: 17px; letter-spacing: 0; text-transform: none; margin: 0; }
.page-galerie .banner-cta { margin: 20px 0 40px; }

.g-dialog { border: 0; padding: 0; border-radius: 10px; max-width: min(760px, calc(100vw - 32px)); width: 100%; background: var(--white); color: var(--text); }
.g-dialog::backdrop { background: rgba(20, 20, 20, .6); }
.g-d-inner { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; }
.g-d-inner > img { width: 100%; height: 100%; max-height: 80vh; object-fit: cover; background: var(--tan); }
.g-d-body { padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.g-d-body h2 { font-size: 22px; font-weight: 700; }
.g-d-body p { margin: 0; font-size: 13.5px; line-height: 1.6; }
.g-d-sach { font-weight: 600; color: var(--ink); }
.g-d-list { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 6px 0; font-size: 13px; }
.g-d-list dt { color: #6b665e; }
.g-d-list dd { margin: 0; }
.g-d-close { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--white); font-size: 20px; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.2); z-index: 1; }
.g-d-close:focus-visible { outline: 2px solid var(--orange); }

@media (max-width: 760px) {
  .g-grid { grid-template-columns: 1fr 1fr; }
  .g-d-inner { grid-template-columns: 1fr; }
  .g-d-inner > img { max-height: 40vh; }
}
@media (max-width: 520px) {
  .g-filter, .g-grid, .g-checks { grid-template-columns: 1fr; }
  .toc-4 a { font-size: 0; }
}

/* Abschnitts-Navigation: Bezeichnungen immer sichtbar */
.toc ol { position: relative; }
.toc.is-stuck a {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 5px 8px;
  font-size: 10.5px;
  line-height: 1.2;
}
.toc.is-stuck a span { font-size: 13px; flex: none; }
.toc.toc-3.is-stuck a, .toc.toc-4.is-stuck a { font-size: 11.5px; }

@media (max-width: 640px) {
  /* Schmale Leiste zum Wischen, mit Nummer und Bezeichnung */
  .toc ol, .toc-3 ol, .toc-4 ol {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .toc ol::-webkit-scrollbar { display: none; }
  .toc li { flex: 0 0 auto; }
  .toc a, .toc.is-stuck a, .toc.toc-3 a, .toc.toc-3.is-stuck a, .toc-4 a, .toc.toc-4.is-stuck a {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-size: 12px;
    padding: 6px 10px;
  }
  .toc a span, .toc.is-stuck a span { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .toc ol { scroll-behavior: auto; } }

/* Galerie: Gruppen nach Bundesland */
.g-filter { grid-template-columns: 2fr 1fr; }
.g-groups { display: flex; flex-direction: column; gap: 26px; }
.g-group { display: flex; flex-direction: column; gap: 12px; }
.page-galerie .g-land {
  font-family: var(--serif); font-size: 19px; font-weight: 700; letter-spacing: 0; text-transform: none;
  color: var(--ink); margin: 0; padding-bottom: 6px; border-bottom: 1px solid #d9d1c3;
  display: flex; align-items: baseline; gap: 10px;
}
.g-land-n { font-family: var(--sans); font-size: 12px; font-weight: 500; color: #6b665e; }
@media (max-width: 760px) { .g-filter { grid-template-columns: 1fr 1fr; } .g-filter .g-field-wide { grid-column: 1 / -1; } }
@media (max-width: 520px) { .g-filter { grid-template-columns: 1fr; } }

/* Bilder: <picture> nimmt keinen Platz im Layout ein, das <img> verhält sich wie bisher */
picture { display: contents; }
picture > source { display: none; }

/* Kurzfassung unter dem Titelbild */
.summary { padding: 4px 0 26px; }
.summary .container > * { max-width: 640px; }
.summary h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 10px;
  padding-left: 14px;
  border-left: 3px solid var(--orange);
}
.summary ul { margin: 0; padding: 0 0 0 31px; }
.summary li { margin: 0 0 6px; font-size: 14px; }

/* Häufige Fragen (Startseite) */
.faq { margin: 40px 0 36px; }
.faq > h2 { font-size: 24px; font-weight: 700; margin: 0 0 16px; text-align: center; }
.faq details { background: var(--white); border-radius: 8px; margin: 0 0 10px; }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--orange); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq summary h3 { font-size: 16px; font-weight: 600; }
.faq details p { margin: 0; padding: 0 18px 16px; font-size: 14px; }
.faq details a { color: var(--orange); font-weight: 600; white-space: nowrap; }
.faq summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 8px; }

/* Mobil: Fließtext in Boxen und Karten gut lesbar halten */
@media (max-width: 640px) {
  .box p, .card p, .intro p, .intro-center p { font-size: 14px; }
}
