/* ---------------------------------------------------------------
   Rücksicht e.V. — Ghost-Theme „ruecksicht" v0.1
   Portiert aus dem PoC-Prototyp (mockup-prototyp.html).
   Self-contained: keine externen Fonts, kein CDN, keine Tracker.
   Mobil-first, responsive, barrierearm (WCAG AA angestrebt).
--------------------------------------------------------------- */

/* -------------------- CI-Schriften (self-hosted, kein CDN) -------------------- */
/* Source Sans 3 (Fließtext/UI-Branding, Entscheidung Thomas 04.08.2026) —
   SIL OFL 1.1, via @fontsource/source-sans-3 v5.3.0 */
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2");
}
/* TeX Gyre Pagella (Überschriften-Branding, ENDGÜLTIG — Thomas 04.08.2026) —
   GUST Font License, freier Palatino-Klon; OTF von CTAN, Latin-Subset als woff2.
   Der Bold-Schnitt ist als Gewicht 600 registriert (Pagella hat kein Semibold;
   alle Überschriften im Theme nutzen 600). */
@font-face {
  font-family: "TeX Gyre Pagella";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/tex-gyre-pagella-regular.woff2") format("woff2");
}
@font-face {
  font-family: "TeX Gyre Pagella";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/tex-gyre-pagella-bold.woff2") format("woff2");
}

:root {
  /* Die CI-Schriften sind gesetzt (Thomas, 04.08.2026). --gh-font-heading/--gh-font-body
     werden von Ghost nur gefüllt, wenn im Admin ausdrücklich eine Schrift gewählt wird;
     solange dort „Theme default" steht, greifen die CI-Stacks dahinter. */
  --font-serif:    var(--gh-font-heading, "TeX Gyre Pagella", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif);
  --font-sans:     var(--gh-font-body, "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                   "Helvetica Neue", Arial, "Noto Sans", sans-serif);
  --bg:            #f2ede5;
  --surface:       #fbf8f3;
  --surface-alt:   #ece4d8;
  --ink:           #2b2723;
  --ink-soft:      #5f564d;
  --muted:         #766c62;
  --line:          #ddd3c6;

  /* CI-Marken-Akzente — NUR grafisch, NICHT für Text auf Hell */
  --brand-green:   #abc837;
  --brand-yellow:  #ffdd55;

  /* Aus dem CI-Grün abgeleitete DUNKLE Töne für Text/Links/Buttons (WCAG AA) */
  --green:         #3d5417;
  --green-hover:   #4c6820;
  --green-deep:    #2e3d13;

  --focus:         #234b6e;
  --note-ink:      #8c5a3d;
  --placeholder-bd:#b98a52;
  --placeholder-bg:#f6ead6;
  --radius:        16px;
  --shadow:        0 1px 2px rgba(43,39,35,.05), 0 8px 24px rgba(43,39,35,.06);
  --maxw:          1080px;
  font-size: 17px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .1px;
  margin: 0;
  color: var(--green-deep);
}

a { color: var(--green); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

/* Skip-Link */
.skip {
  position: absolute;
  left: 8px; top: -48px;
  background: var(--green);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 8px;
  z-index: 100;
  transition: top .15s ease;
  text-decoration: none;
}
.skip:focus { top: 8px; }

/* Testinstanz-Banner */
.poc-banner {
  background: var(--placeholder-bg);
  border-bottom: 1px dashed var(--placeholder-bd);
  color: var(--note-ink);
  font-size: .78rem;
  text-align: center;
  padding: .4rem 1rem;
  letter-spacing: .02em;
  margin: 0;
}
.poc-banner strong { font-weight: 700; }

/* -------------------- Kopf / Navigation -------------------- */
header.site {
  background: var(--surface);
  border-top: 3px solid var(--brand-green);
  border-bottom: 1px solid var(--line);
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .85rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--ink);
}
.signet { width: 46px; height: 46px; flex: none; display: block; }
.brand .name { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; text-align: left; }
.brand .name small {
  display: block;
  font-family: inherit;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

nav.main ul {
  list-style: none;
  display: flex;
  gap: .25rem;
  margin: 0; padding: 0;
  flex-wrap: wrap;
  align-items: center;
}
nav.main a.navlink {
  text-decoration: none;
  color: var(--ink-soft);
  padding: .5rem .8rem;
  border-radius: 999px;
  font-size: .96rem;
  display: inline-block;
}
nav.main a.navlink:hover { background: var(--surface-alt); color: var(--ink); }
nav.main a.navlink[aria-current="page"] {
  background: var(--surface-alt);
  color: var(--green-deep);
  font-weight: 600;
}
nav.main a.cta {
  background: var(--green);
  color: #fff;
  font-weight: 600;
}
nav.main a.cta:hover { background: var(--green-hover); color: #fff; }
nav.main a.cta[aria-current="page"] { background: var(--green-hover); color: #fff; }

main { flex: 1 0 auto; }

/* Zurück-Zeile */
.backrow { padding-top: clamp(1rem, 3vw, 1.4rem); }
.backlink {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--green);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  padding: .3rem 0;
}
.backlink::before { content: "\2190"; }
.backlink:hover { color: var(--green-hover); text-decoration: underline; }

/* -------------------- Hero (kompakt) -------------------- */
.hero {
  padding-block: clamp(1.6rem, 4vw, 2.4rem) clamp(1rem, 2vw, 1.2rem);
  text-align: center;
}
.hero .eyebrow, .content .eyebrow {
  font-size: .8rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 .6rem;
}
.hero h1 {
  font-size: clamp(1.7rem, 5.5vw, 2.7rem);
  max-width: 18ch;
  margin-inline: auto;
  color: var(--green-deep);
}
.hero p.lead {
  color: var(--ink-soft);
  font-size: clamp(1rem, 2.4vw, 1.12rem);
  max-width: 52ch;
  margin: .8rem auto 0;
}
.claim-note {
  display: inline-block;
  margin-top: .7rem;
  font-size: .72rem;
  color: var(--note-ink);
  background: var(--placeholder-bg);
  border: 1px dashed var(--placeholder-bd);
  border-radius: 8px;
  padding: .3rem .55rem;
}

/* -------------------- Bereichsauswahl -------------------- */
.hub { padding-block: clamp(.5rem, 2vw, 1rem) clamp(1.4rem, 4vw, 2rem); }
.hub h2 {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .02em;
  margin-bottom: 1.1rem;
}
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 860px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 560px) and (max-width: 859px) {
  .cards { grid-template-columns: 1fr 1fr; }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 1.8rem);
  text-align: left;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  min-height: 200px;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(43,39,35,.07), 0 16px 40px rgba(43,39,35,.10);
  border-color: var(--brand-green);
}
.card:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--surface-alt);
  display: grid; place-items: center;
  font-size: 1.4rem;
}
.card h3 { font-size: clamp(1.2rem, 3vw, 1.45rem); }
.card p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.card .go {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  color: var(--green);
  font-size: .96rem;
}
.card .go::after { content: "\2192"; transition: transform .18s ease; }
.card:hover .go::after { transform: translateX(4px); }

.badge {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--surface-alt);
  color: var(--muted);
  border: 1px solid var(--line);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: .25rem .6rem;
  border-radius: 999px;
}
.card.wip { background: #f7f3ec; }
.card.wip .go { color: var(--muted); }

/* -------------------- Inhaltsansichten -------------------- */
.content { padding-block: clamp(1rem, 3vw, 1.6rem) clamp(1.8rem, 5vw, 2.6rem); }
.content h2 {
  font-size: clamp(1.6rem, 4.5vw, 2.2rem);
  max-width: 22ch;
  margin-bottom: .3rem;
}
.content .prose {
  max-width: 60ch;
  margin-top: 1rem;
}
.content .prose.gh-content { margin-inline: auto; }
.content .prose p {
  color: var(--ink-soft);
  font-size: 1.03rem;
  margin: 0 0 1rem;
}
.content .prose p:first-child { color: var(--ink); }
.gh-content h3 { font-size: 1.25rem; margin: 1.4rem 0 .5rem; }
.gh-content img { max-width: 100%; height: auto; border-radius: 12px; }
.gh-content blockquote {
  margin: 1rem 0; padding: .5rem 1rem;
  border-left: 4px solid var(--brand-green);
  background: var(--surface);
  border-radius: 0 8px 8px 0;
  color: var(--ink-soft);
}
.feature-img { max-width: 100%; height: auto; border-radius: var(--radius); margin-top: 1rem; }

.info-box {
  max-width: 60ch;
  margin-top: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-green);
  border-radius: 12px;
  padding: 1rem 1.2rem;
}
.info-box h3 { font-size: 1.02rem; color: var(--ink); margin-bottom: .35rem; }
.info-box p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

.crisis-box {
  max-width: 60ch;
  margin-top: 1.2rem;
  background: #eef3e6;
  border: 1px solid #c8d6a8;
  border-left: 4px solid var(--green);
  border-radius: 12px;
  padding: 1rem 1.2rem;
}
.crisis-box h3 { font-size: 1rem; color: var(--green-deep); margin-bottom: .35rem; }
.crisis-box p { margin: .2rem 0 0; color: var(--ink-soft); font-size: .95rem; }
.crisis-box strong { color: var(--ink); }

/* -------------------- Spenden -------------------- */
.donate-hero { background: var(--green-deep); color: #f4efe7; }
.donate-hero .inner { padding-block: clamp(1.6rem, 4vw, 2.2rem); }
.donate-hero .eyebrow { color: var(--brand-yellow); letter-spacing:.24em; text-transform:uppercase; font-size:.8rem; margin:0 0 .5rem; }
.donate-hero h2 { color: #fff; font-size: clamp(1.5rem, 4vw, 2.1rem); }
.donate-hero p { margin: .5rem 0 0; color: #d8e0d6; max-width: 52ch; font-size: 1rem; }

.donate-form-wrap { padding-block: clamp(1.4rem, 4vw, 2.2rem) clamp(1.8rem, 5vw, 2.6rem); }
.donate-form {
  max-width: 620px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 4vw, 2rem);
  box-shadow: var(--shadow);
}
fieldset.group { border: 0; margin: 0 0 1.4rem; padding: 0; }
fieldset.group legend {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--green-deep);
  font-size: 1.05rem;
  padding: 0;
  margin-bottom: .7rem;
}

.segmented { display: inline-flex; background: var(--surface-alt); border-radius: 999px; padding: .25rem; gap: .25rem; }
.segmented button {
  border: 0;
  background: none;
  font: inherit;
  font-size: .95rem;
  padding: .5rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-soft);
}
.segmented button[aria-pressed="true"] {
  background: var(--green);
  color: #fff;
  font-weight: 600;
}

.amounts { display: flex; flex-wrap: wrap; gap: .6rem; }
.amount-btn {
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  padding: .7rem 1.3rem;
  border-radius: 12px;
  cursor: pointer;
  min-width: 84px;
  transition: border-color .15s ease, background .15s ease;
}
.amount-btn:hover { border-color: var(--brand-green); }
.amount-btn[aria-pressed="true"] {
  border-color: var(--green);
  background: #eef3e6;
  color: var(--green-deep);
}
.custom-amount { margin-top: .8rem; }
.custom-amount label { display:block; font-size:.9rem; color: var(--ink-soft); margin-bottom:.3rem; }
.custom-amount .field { display: inline-flex; align-items: center; gap:.4rem; }
.custom-amount input {
  font: inherit;
  font-size: 1.05rem;
  padding: .6rem .7rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  width: 140px;
  background: #fff;
  color: var(--ink);
}
.custom-amount .euro { font-size: 1.1rem; color: var(--ink-soft); }

.paymethods { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
@media (min-width: 520px) { .paymethods { grid-template-columns: repeat(3, 1fr); } }
.paymethod {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: .92rem;
  font-weight: 600;
  padding: .75rem .6rem;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
}
.paymethod:hover { border-color: var(--brand-green); }
.paymethod[aria-pressed="true"] { border-color: var(--green); background:#eef3e6; color: var(--green-deep); }

.donate-cta {
  margin-top: 1.4rem;
  width: 100%;
  background: var(--brand-yellow);
  color: var(--green-deep);
  border: 0;
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}
.donate-cta:hover { background: #f2cf3f; }

.donate-summary {
  margin-top: 1rem;
  font-size: .95rem;
  color: var(--ink-soft);
  text-align: center;
  min-height: 1.4em;
}
.donate-hint { margin-top: 1rem; font-size:.85rem; color: var(--muted); }

/* -------------------- Kontaktformular -------------------- */
.contact-form { margin-top: 1.6rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 1rem;
}
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-field { margin-bottom: 1.1rem; }
.form-field label {
  display: block;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .35rem;
}
.form-field .req { color: var(--green); }
.form-field input,
.form-field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: .65rem .75rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.form-field input:hover,
.form-field textarea:hover { border-color: var(--brand-green); }
.form-field textarea { resize: vertical; min-height: 130px; }
.form-privacy {
  font-size: .82rem;
  color: var(--muted);
  margin: .4rem 0 0;
}
.form-status {
  margin: .9rem 0 0;
  font-size: .95rem;
  color: var(--green-deep);
  text-align: center;
  min-height: 1.4em;
}
/* Honeypot: visuell komplett raus, für Bots ein normales Feld */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* -------------------- Aktuelles -------------------- */
.news-list { max-width: 640px; margin-top: 1.4rem; }
.news-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin-bottom: .9rem;
}
.news-item .meta { font-size: .78rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin: 0 0 .35rem; }
.news-item h4 { font-family: var(--font-serif); font-size: 1.05rem; margin: 0 0 .35rem; font-weight:600; }
.news-item h4 a { color: var(--green-deep); text-decoration: none; }
.news-item h4 a:hover { text-decoration: underline; }
.news-item p { margin: 0; font-size: .93rem; color: var(--ink-soft); }

nav.pagination {
  display: flex; justify-content: space-between; max-width: 640px;
  font-size: .9rem; color: var(--muted); padding-block: .5rem 1rem;
}
nav.pagination a { color: var(--green); }

/* -------------------- Impressum -------------------- */
.imprint dl { max-width: 60ch; margin: 1rem 0 0; }
.imprint dt { font-weight: 600; color: var(--ink); margin-top: 1rem; }
.imprint dd { margin: .2rem 0 0; color: var(--ink-soft); }

/* Platzhalter-Markierung */
.ph {
  background: var(--placeholder-bg);
  border-bottom: 2px dotted var(--placeholder-bd);
  padding: 0 .15em;
  border-radius: 3px;
}
.ph-note {
  display: inline-block;
  margin-top: .5rem;
  font-size: .74rem;
  line-height: 1.35;
  color: var(--note-ink);
  background: var(--placeholder-bg);
  border: 1px dashed var(--placeholder-bd);
  border-radius: 8px;
  padding: .35rem .55rem;
}

/* -------------------- Video (Start, Zwei-Klick-Einbindung) -------------------- */
.video-band { padding-block: clamp(.6rem, 2vw, 1.2rem) clamp(1.4rem, 4vw, 2rem); }
.video-band h2 {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .02em;
  margin-bottom: 1rem;
}
.video-frame {
  position: relative;
  max-width: 720px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  background: var(--green-deep);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-consent {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  background:
    radial-gradient(ellipse at center, rgba(171,200,55,.18), transparent 70%),
    var(--green-deep);
  border: 0;
  cursor: pointer;
  color: #f4efe7;
  font: inherit;
  padding: 1rem;
  text-align: center;
}
.video-consent:hover .play-badge { transform: scale(1.08); background: #f2cf3f; }
.play-badge {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--brand-yellow);
  color: var(--green-deep);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  padding-left: 4px;
  transition: transform .18s ease, background .18s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.video-consent .video-title {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  font-weight: 600;
  max-width: 34ch;
  line-height: 1.35;
}
.video-consent .video-cta {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand-yellow);
}
.video-note {
  max-width: 720px;
  margin: .6rem auto 0;
  font-size: .78rem;
  color: var(--muted);
  text-align: center;
}
.video-note a { color: var(--green); }

/* -------------------- Spenden-Band (Start) -------------------- */
.donate-band { background: var(--green-deep); color: #f4efe7; }
.donate-band .inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.2rem; padding-block: clamp(1.4rem, 3.5vw, 2rem); flex-wrap: wrap;
}
.donate-band h2 { color: #fff; font-size: clamp(1.2rem, 3vw, 1.5rem); }
.donate-band p { margin: .35rem 0 0; color: #d8e0d6; max-width: 46ch; font-size: .97rem; }
.btn-donate {
  flex: none;
  background: var(--brand-yellow);
  color: var(--green-deep);
  border: 0;
  font: inherit;
  text-decoration: none;
  font-weight: 700;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-size: 1.02rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  transition: background .18s ease, transform .18s ease;
  display: inline-block;
}
.btn-donate:hover { background: #f2cf3f; transform: translateY(-2px); }

/* -------------------- Footer -------------------- */
footer.site {
  background: var(--surface);
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  padding-block: clamp(1.6rem, 4vw, 2.4rem);
}
@media (min-width: 640px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
footer h3 { font-size: 1rem; margin-bottom: .6rem; color: var(--ink); }
footer p, footer address, footer ul { color: var(--ink-soft); font-size: .93rem; font-style: normal; margin: 0; }
footer ul { list-style: none; padding: 0; }
footer ul li { margin-bottom: .4rem; }
footer a { color: var(--green); }
.foot-bottom {
  border-top: 1px solid var(--line);
  padding-block: 1rem;
  font-size: .82rem;
  color: var(--muted);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}

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

/* -------------------- Chat (Platzhalter/Demo) -------------------- */
.chat-launcher {
  position: fixed;
  right: clamp(.8rem, 3vw, 1.5rem);
  bottom: clamp(.8rem, 3vw, 1.5rem);
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: .75rem 1.1rem;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(43,39,35,.22);
  font-family: inherit;
}
.chat-launcher:hover { background: var(--green-hover); }
.chat-launcher .dot {
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; color: var(--green);
  display: grid; place-items: center; font-size: .85rem; font-weight: 700;
}
.chat-launcher .demo-tag, .chat-head .demo-tag {
  font-size: .62rem; letter-spacing: .05em; text-transform: uppercase;
  background: var(--brand-yellow); color: var(--green-deep);
  border-radius: 4px; padding: .05rem .3rem; font-weight: 700;
}

.chat-panel {
  position: fixed;
  right: clamp(.8rem, 3vw, 1.5rem);
  bottom: clamp(3.9rem, 8vw, 4.8rem);
  z-index: 51;
  width: min(340px, calc(100vw - 1.6rem));
  max-height: min(70vh, 520px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(43,39,35,.28);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.chat-panel.is-open { display: flex; }
.chat-head {
  display: flex; align-items: center; gap: .6rem;
  padding: .8rem 1rem;
  background: var(--green-deep);
  color: #fff;
}
.chat-head .signet-mini { width: 26px; height: 26px; flex:none; }
.chat-head .t { font-family: var(--font-serif); font-weight: 600; font-size: 1rem; line-height:1.1; }
.chat-head .t small { display:block; font-family: inherit; font-size:.62rem; letter-spacing:.06em; text-transform:uppercase; color:#c7d3bd; font-weight:400; }
.chat-head .demo-tag { margin-left:auto; margin-right:.3rem; }
.chat-close {
  background: none; border: 0; color: #fff; cursor: pointer;
  font-size: 1.3rem; line-height: 1; padding: .1rem .3rem; border-radius: 6px;
}
.chat-close:hover { background: rgba(255,255,255,.15); }
.chat-log {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.msg { max-width: 85%; padding: .6rem .8rem; border-radius: 14px; font-size: .92rem; line-height: 1.45; }
.msg.bot { background: var(--surface-alt); color: var(--ink); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.user { background: var(--green); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg.bot strong { color: var(--green-deep); }
.msg.bot a { color: var(--green); }
.chat-options {
  padding: .7rem 1rem 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.chat-options button {
  background: var(--surface);
  border: 1.5px solid var(--line);
  color: var(--green-deep);
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  text-align: left;
  padding: .6rem .8rem;
  border-radius: 10px;
  cursor: pointer;
}
.chat-options button:hover { border-color: var(--brand-green); background: #f4f6ee; }
.chat-demo-hint { font-size: .72rem; color: var(--muted); text-align: center; padding: .1rem 1rem .3rem; margin: 0; }

/* ---------------------------------------------------------------
   Kompakt-Layout: Desktop-Fenster mit begrenzter Höhe (z. B. 1080p
   mit Browser-Leisten ≈ 945 px Viewport). Ziel: Startseite komplett
   ohne Scrollen — Kopf, Hero, drei Karten, Spenden-Band, Footer.
   Greift NUR bei niedrigen Fenstern: 4K/hochauflösende Displays mit
   mehr CSS-Höhe behalten das großzügige Layout.
--------------------------------------------------------------- */
@media (min-width: 1100px) and (max-height: 1080px) {
  .topbar { padding-block: .55rem; }
  .signet { width: 40px; height: 40px; }

  .hero { padding-block: 1.1rem .5rem; }
  .hero h1 { font-size: 2.2rem; max-width: none; }
  .hero p.lead { margin-top: .45rem; font-size: 1.02rem; max-width: 64ch; }
  .claim-note { margin-top: .45rem; }

  .hub { padding-block: .35rem .9rem; }
  .hub h2 { margin-bottom: .75rem; }
  .cards { gap: .9rem; }
  .card { min-height: 150px; padding: 1.05rem 1.25rem; gap: .4rem; }
  .card .icon { width: 36px; height: 36px; font-size: 1.1rem; border-radius: 10px; }
  .card h3 { font-size: 1.22rem; }
  .card p { font-size: .92rem; }
  .card .go { font-size: .92rem; margin-top: .35rem; }
  .badge { top: .7rem; right: .7rem; }

  .video-band { padding-block: .3rem .8rem; }
  .video-band h2 { margin-bottom: .55rem; }
  .video-frame { max-width: 560px; }
  .play-badge { width: 48px; height: 48px; font-size: 1.15rem; }

  .donate-band .inner { padding-block: .9rem; }
  .donate-band h2 { font-size: 1.2rem; }
  .donate-band p { font-size: .92rem; margin-top: .2rem; }
  .btn-donate { padding: .7rem 1.4rem; font-size: .98rem; }

  .foot-grid { padding-block: .9rem; gap: 1rem; }
  footer h3 { margin-bottom: .35rem; font-size: .95rem; }
  footer p, footer address, footer ul { font-size: .88rem; }
  footer ul li { margin-bottom: .25rem; }
  .foot-bottom { padding-block: .5rem; font-size: .78rem; }

  .chat-launcher { padding: .6rem .95rem; font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}


/* -------------------- Koenig-Editor-Karten (Ghost-Redaktionsinhalte) --------------------
   Pflicht laut Ghost-Theme-Prüfung: .kg-width-wide und .kg-width-full müssen im Theme
   gestaltet sein, sonst erscheinen breite und randlose Bilder unformatiert.
   Das Innenleben der übrigen Karten (Galerie, Lesezeichen, Umschalter, Datei, Audio)
   liefert Ghost über card_assets — hier stehen nur Breiten, Abstände und Typografie.
-------------------------------------------------------------------------------------- */
.gh-content .kg-card,
.gh-content figure {
  margin: 1.6rem 0;
}
.gh-content figure img,
.gh-content .kg-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Breiter als die Lesespalte — bleibt innerhalb der Seitenbreite */
.gh-content .kg-width-wide {
  width: min(92vw, 62rem);
  margin-inline: calc(50% - min(46vw, 31rem));
}
/* Randlos über die volle Fensterbreite */
.gh-content .kg-width-full {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
}
.gh-content .kg-width-full img,
.gh-content .kg-width-full.kg-card img {
  border-radius: 0;
}
@media (max-width: 720px) {
  .gh-content .kg-width-wide,
  .gh-content .kg-width-full {
    width: 100%;
    margin-inline: 0;
  }
  .gh-content .kg-width-full img { border-radius: 12px; }
}

/* Bildunterschriften */
.gh-content figcaption,
.gh-content .kg-card figcaption {
  margin-top: .5rem;
  font-size: .85rem;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}
.gh-content figcaption a { color: var(--green); }

/* Galerie: nur die Zeilenverteilung, Feinheiten kommen aus card_assets */
.gh-content .kg-gallery-container { display: flex; flex-direction: column; gap: .6rem; }
.gh-content .kg-gallery-row { display: flex; gap: .6rem; }
.gh-content .kg-gallery-image img { border-radius: 10px; }

/* Hinweiskarte („Callout") im Ton der Info-Boxen des Themes */
.gh-content .kg-callout-card {
  display: flex;
  gap: .8rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-green);
  border-radius: 0 12px 12px 0;
}
.gh-content .kg-callout-card-accent { border-left-color: var(--green); }
.gh-content .kg-callout-emoji { font-size: 1.15rem; line-height: 1.4; }
.gh-content .kg-callout-text { color: var(--ink-soft); }

/* Schaltflächen-Karte in der Theme-Optik */
.gh-content .kg-button-card { display: flex; justify-content: center; }
.gh-content .kg-btn {
  display: inline-block;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.gh-content .kg-btn:hover { background: var(--green-hover); }

/* Trenner und Code bleiben schlicht */
.gh-content hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.gh-content pre {
  overflow-x: auto;
  padding: .9rem 1rem;
  background: var(--surface-alt);
  border-radius: 10px;
  font-size: .9rem;
}
