/* ==========================================================================
   Schlaganfall-Selbsthilfegruppe Leipzig
   Gestaltung: ruhig, warm, gut lesbar – für Menschen mit erworbenen Hirnschäden
   ========================================================================== */

/* Schrift: Atkinson Hyperlegible (für Leseschwäche/Sehschwäche entwickelt).
   Dateien lokal in assets/fonts/ ablegen – siehe assets/fonts/LIESMICH.txt.
   Fehlen sie, wird automatisch die Systemschrift verwendet. */
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-hyperlegible-v12-latin-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-hyperlegible-v12-latin-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --bg: #f5f8fa;
  --surface: #ffffff;
  --surface-2: #eaf1f6;
  --ink: #16283a;
  --muted: #45586a;
  --line: #d8e2ea;
  --primary: #0b62a3;
  --primary-dark: #084a7c;
  --primary-soft: #e2eef8;
  --accent: #3f7d1c;
  --accent-soft: #e9f4de;
  --leaf: #3f7d1c;
  --leaf-soft: #eef7e6;
  --sun: #8cc63f;
  --sky-1: #dcebf7;
  --sky-2: #f1f7fb;
  --hill-1: #cde6b8;
  --hill-2: #e3f0d6;
  --stone: #b3c2cc;
  --danger: #a3261d;
  --danger-soft: #fbe5e2;
  --focus: #f2a33a;

  --radius: 1.1rem;
  --radius-lg: 1.75rem;
  --shadow: 0 1px 2px rgba(22, 40, 58, .06), 0 8px 24px -12px rgba(22, 40, 58, .18);
  --shadow-lg: 0 2px 4px rgba(22, 40, 58, .05), 0 24px 48px -24px rgba(22, 40, 58, .28);

  --font: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: var(--font);

  font-size: 112.5%; /* 18px Grundschrift */
}

html[data-size="gross"] { font-size: 128%; }
html[data-size="sehr-gross"] { font-size: 145%; }

/* Hoher Kontrast */
html[data-contrast="hoch"] {
  --bg: #ffffff; --surface: #ffffff; --surface-2: #ffffff;
  --ink: #000000; --muted: #1a1a1a; --line: #000000;
  --primary: #003845; --primary-dark: #001f27; --primary-soft: #ffffff;
  --accent: #8a3200; --accent-soft: #ffffff; --leaf: #1f4d27; --leaf-soft: #ffffff;
  --sky-1: #ffffff; --sky-2: #ffffff; --hill-1: #dddddd; --hill-2: #eeeeee; --stone: #555;
  --shadow: none; --shadow-lg: none;
}
html[data-contrast="hoch"] .card,
html[data-contrast="hoch"] .event,
html[data-contrast="hoch"] .gb-entry,
html[data-contrast="hoch"] .form-card,
html[data-contrast="hoch"] .info-box,
html[data-contrast="hoch"] .contact-card,
html[data-contrast="hoch"] .month-note,
html[data-contrast="hoch"] .kurz { border: 2px solid #000; }
html[data-contrast="hoch"] a { text-decoration-thickness: 2px; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.65;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.25em; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); margin: .2em 0 .45em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); margin: 1.6em 0 .6em; }
h3 { font-size: 1.25rem; margin: 0 0 .4em; }
p { margin: 0 0 1em; }

a { color: var(--primary); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--primary-dark); text-decoration-thickness: .14em; }

:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

mark.todo {
  background: #fff3a8; color: #5a4a00; padding: .05em .35em; border-radius: .3em;
  font-weight: 700; font-size: .9em;
}

.wrap { width: min(72rem, 100% - 2.5rem); margin-inline: auto; }
@media (max-width: 40rem) { .wrap { width: calc(100% - 2rem); } }

.skip-link {
  position: absolute; left: 1rem; top: -10rem; z-index: 100;
  background: var(--ink); color: #fff; padding: .8rem 1.2rem; border-radius: .7rem; font-weight: 700;
}
.skip-link:focus { top: 1rem; color: #fff; }

.small { font-size: .9rem; color: var(--muted); }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { display: flex; gap: .6rem; align-items: center; margin-bottom: .45rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font); font-size: .9rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--primary); margin: 0 0 .5rem;
}

/* ---------- Notfall-Leiste ---------- */
.emergency { background: var(--ink); color: #fff; font-size: .92rem; }
.emergency__inner { display: flex; align-items: center; gap: .7rem; padding-block: .55rem; }
.emergency p { margin: 0; }
.emergency a { color: #fff; }
.emergency__icon { color: var(--sun); display: flex; }
.emergency__call {
  display: inline-block; background: #c8372b; color: #fff !important; font-weight: 700;
  padding: .1rem .6rem; border-radius: 99px; text-decoration: none; margin-inline: .15rem;
}
.emergency__more { margin-left: .4rem; opacity: .92; }
@media (max-width: 40rem) { .emergency__more { display: none; } }

/* ---------- Kopf ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem 2rem; padding-block: 1.1rem;
}
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.logo-mark { width: 3.6rem; height: 3.6rem; flex: none; }
.logo-mark--sm { width: 2.4rem; height: 2.4rem; }
.logo-mark--xs { width: 1.5rem; height: 1.5rem; vertical-align: middle; }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; line-height: 1.15; }
.brand__sub { color: var(--muted); font-size: .88rem; line-height: 1.35; }

.a11y-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.a11y-tools__group {
  display: flex; align-items: center; gap: .25rem; background: var(--surface-2);
  padding: .25rem .3rem .25rem .7rem; border-radius: 99px;
}
.a11y-tools__label { font-size: .85rem; font-weight: 700; color: var(--muted); margin-right: .25rem; display: inline-flex; gap: .3rem; align-items: center; }
.tool-btn {
  font: inherit; font-weight: 700; color: var(--ink); background: transparent; cursor: pointer;
  min-width: 2.75rem; min-height: 2.75rem; border: 2px solid transparent; border-radius: 99px;
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font-size: .9rem;
}
.tool-btn--l { font-size: 1.05rem; }
.tool-btn--xl { font-size: 1.2rem; }
.tool-btn[aria-pressed="true"] { background: var(--primary); color: #fff; }
.tool-btn--wide { background: var(--surface-2); padding-inline: .95rem; }
.tool-btn:hover { border-color: var(--primary); }
.tool-btn--read[aria-pressed="true"] { background: var(--accent); color: #fff; }

/* ---------- Navigation ---------- */
.main-nav { border-top: 1px solid var(--line); }
.main-nav__list {
  list-style: none; margin: 0; padding: .55rem 0; display: flex; flex-wrap: wrap; gap: .35rem;
}
.main-nav__list a {
  display: flex; align-items: center; gap: .5rem; min-height: 3rem;
  padding: .45rem 1rem; border-radius: 99px; font-weight: 700; color: var(--ink); text-decoration: none;
}
.main-nav__list a .icon { color: var(--primary); }
.main-nav__list a:hover { background: var(--primary-soft); }
.main-nav__list a[aria-current="page"] { background: var(--primary); color: #fff; }
.main-nav__list a[aria-current="page"] .icon { color: #fff; }

.menu-toggle {
  display: none; font: inherit; font-weight: 700; width: 100%;
  align-items: center; justify-content: center; gap: .5rem; min-height: 3.2rem;
  margin: .6rem 0; border: 2px solid var(--primary); color: var(--primary); background: var(--surface);
  border-radius: 99px; cursor: pointer;
}
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: inline-flex; gap: .5rem; align-items: center; }
.menu-toggle__open { display: inline-flex; gap: .5rem; align-items: center; }

@media (max-width: 52rem) {
  .js .menu-toggle { display: flex; }
  .js .main-nav__list { display: none; flex-direction: column; padding-top: 0; }
  .js .main-nav__list.is-open { display: flex; }
  .main-nav__list a { font-size: 1.1rem; min-height: 3.4rem; border-radius: .9rem; }
  .a11y-tools { width: 100%; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  min-height: 3rem; padding: .7rem 1.3rem; border-radius: 99px; border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn--lg { min-height: 3.5rem; padding: .85rem 1.6rem; font-size: 1.05rem; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px -8px rgba(29, 92, 104, .7); }
.btn--primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn--light { background: var(--surface); color: var(--primary); border-color: var(--primary); }
.btn--light:hover { background: var(--primary-soft); color: var(--primary-dark); }
.btn--ghost { background: var(--primary-soft); color: var(--primary-dark); }
.btn--ghost:hover { background: var(--primary); color: #fff; }
.btn[aria-pressed="true"] { background: var(--accent); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 0; }
.link-btn {
  font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-decoration: underline;
  text-underline-offset: .18em; display: inline-flex; gap: .4rem; align-items: center; padding: .4rem;
}

/* ---------- Hero ---------- */
.hero { padding: clamp(2rem, 5vw, 4rem) 0 1rem; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.5rem); }
.hero .hl { color: var(--primary); }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 38em; }
.hero__note { display: flex; gap: .5rem; align-items: center; margin-top: 1.4rem; font-weight: 700; color: var(--leaf); }
.path-art { width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 40px rgba(30, 43, 50, .12)); }
.path-art .figures { transform-origin: 200px 300px; animation: sway 6s ease-in-out infinite; }
@keyframes sway { 50% { transform: translateY(-4px); } }
@media (max-width: 52rem) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 24rem; margin-inline: auto; order: -1; }
}

/* ---------- Abschnitte ---------- */
.section { padding: clamp(2rem, 4vw, 3.5rem) 0; }
.section--tight { padding-top: .5rem; }
.section--soft { background: var(--surface-2); }
.section__title { margin-top: 0; }
.content { padding: 1rem 0 4rem; }
.content > section + section { margin-top: 3rem; }

.page-head {
  background:
    radial-gradient(60rem 18rem at 85% -20%, var(--accent-soft), transparent 70%),
    radial-gradient(40rem 16rem at 0% 120%, var(--primary-soft), transparent 70%),
    var(--bg);
  padding: clamp(2rem, 5vw, 3.5rem) 0 2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}
.page-head--small { padding-bottom: 1rem; }
.page-head h1 { margin-bottom: .3em; }

.prose { max-width: 44rem; }
.prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }

/* ---------- Karten ---------- */
.cards { display: grid; gap: 1.2rem; }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.card {
  background: var(--surface); border-radius: var(--radius-lg); padding: 1.6rem;
  box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column;
}
.card p { color: var(--muted); }
.card--link { text-decoration: none; color: var(--ink); transition: transform .18s ease, box-shadow .18s ease; }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.card__icon {
  width: 3.2rem; height: 3.2rem; border-radius: 1rem; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); margin-bottom: 1rem;
}
.card__icon .icon { width: 1.7rem; height: 1.7rem; }
.card__icon--accent { background: var(--accent-soft); color: #a2501f; }
.card__icon--leaf { background: var(--leaf-soft); color: var(--leaf); }
.card__more { margin-top: auto; font-weight: 700; color: var(--primary); display: inline-flex; gap: .4rem; align-items: center; }

/* ---------- Termine ---------- */
.event {
  display: grid; grid-template-columns: auto 1fr; gap: 1.6rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.6rem; box-shadow: var(--shadow);
}
.event + .event { margin-top: 1.2rem; }
.event--featured {
  border: 0; padding: 2rem;
  background: linear-gradient(135deg, var(--surface) 55%, var(--primary-soft));
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.event--featured::after {
  content: ""; position: absolute; width: 14rem; height: 14rem; right: -4rem; top: -5rem;
  background: var(--sun); opacity: .18; border-radius: 50%;
}
.event--past { opacity: .72; }
.event__date {
  width: 6.5rem; border-radius: 1.2rem; overflow: hidden; text-align: center; align-self: start;
  background: var(--surface); border: 2px solid var(--primary); display: flex; flex-direction: column;
}
.event__wd { background: var(--primary); color: #fff; font-weight: 700; font-size: .85rem; padding: .3rem .2rem; }
.event__day { font-family: var(--font-head); font-size: 2.8rem; font-weight: 700; line-height: 1.05; padding-top: .35rem; color: var(--primary-dark); }
.event__month { font-weight: 700; font-size: .9rem; padding-bottom: .5rem; color: var(--muted); }
.event--featured .event__date { width: 7.5rem; }
.event--featured .event__day { font-size: 3.4rem; }
.event__title { font-size: 1.45rem; margin-bottom: .6rem; }
.event--featured .event__title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.event__meta { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.event__meta li { display: flex; gap: .45rem; align-items: center; font-weight: 700; }
.event__meta .icon { color: var(--primary); }
.event__text { color: var(--muted); max-width: 42em; }
.event__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .4rem; position: relative; z-index: 1; }
.badge { display: inline-block; font-size: .8rem; font-weight: 700; padding: .2rem .7rem; border-radius: 99px; margin-bottom: .6rem; }
.badge--muted { background: var(--surface-2); color: var(--muted); }
@media (max-width: 34rem) {
  .event { grid-template-columns: 1fr; gap: 1rem; }
  .event__date { flex-direction: row; width: auto; align-items: center; }
  .event__date > span { padding: .5rem .8rem; }
  .event__day { font-size: 1.6rem; padding-top: .5rem; }
  .event--featured .event__date { width: auto; }
  .event--featured .event__day { font-size: 1.8rem; }
}

.month + .month { margin-top: 3rem; }
.month__title {
  display: flex; align-items: center; gap: .8rem; margin-top: 0;
}
.month__title::after { content: ""; flex: 1; height: 2px; background: var(--line); border-radius: 2px; }

.month-note {
  background: var(--accent-soft); border-radius: var(--radius-lg); padding: 1.5rem 1.7rem;
  margin: 1.4rem 0; position: relative; border-left: 6px solid var(--accent);
}
.month-note__title { font-size: 1.2rem; margin: 0 0 .6rem; display: flex; gap: .5rem; align-items: center; }
.month-note p:last-child { margin-bottom: 0; }

.empty-card {
  background: var(--surface); border: 2px dashed var(--line); border-radius: var(--radius-lg); padding: 1.5rem 1.7rem;
}
.empty-card p:last-child { margin: 0; }

.archive { margin-top: 3rem; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.archive summary { cursor: pointer; padding: 1rem 1.4rem; font-weight: 700; min-height: 3rem; }
.archive ul { margin: 0; padding: 0 1.4rem 1.2rem; list-style: none; }
.archive li { padding: .4rem 0; border-top: 1px solid var(--line); }
.archive li span { display: inline-block; min-width: 7rem; color: var(--muted); }

/* ---------- Info-Kästen ---------- */
.info-box {
  display: flex; gap: 1.2rem; background: var(--primary-soft); border-radius: var(--radius-lg);
  padding: 1.5rem 1.7rem; margin-top: 2.5rem;
}
.info-box h2 { margin: 0 0 .4rem; font-size: 1.3rem; }
.info-box p:last-child { margin-bottom: 0; }
.info-box__icon {
  width: 3rem; height: 3rem; border-radius: 50%; background: var(--surface); color: var(--primary);
  display: grid; place-items: center; flex: none;
}
.info-box--alert { background: var(--danger-soft); }
.info-box--alert .info-box__icon { color: var(--danger); }

.kurz {
  background: var(--leaf-soft); border-radius: var(--radius-lg); padding: 1.3rem 1.6rem; margin: 0 0 2.5rem;
  max-width: 44rem;
}
.kurz__title { display: flex; gap: .5rem; align-items: center; font-weight: 700; color: var(--leaf); margin: 0 0 .5rem;
  text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; }
.kurz ul { margin: 0; padding-left: 1.2rem; font-size: 1.1rem; }
.kurz li { margin-bottom: .3rem; }

.tags { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li { background: var(--primary-soft); color: var(--primary-dark); font-weight: 700; padding: .35rem .9rem; border-radius: 99px; margin: 0; }

.checklist { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .8rem; font-size: 1.08rem; }
.checklist .icon { color: #fff; background: var(--leaf); border-radius: 50%; padding: .2rem; width: 1.6rem; height: 1.6rem; margin-top: .1rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 52rem) { .split { grid-template-columns: 1fr; } }

.quote {
  margin: 0; background: var(--surface); border-radius: var(--radius-lg); padding: 3rem 2rem 1.6rem;
  box-shadow: var(--shadow-lg); position: relative;
}
.quote::before {
  content: "„"; position: absolute; top: -3.5rem; left: 1.3rem; font-family: var(--font-head);
  font-size: 6rem; line-height: 1; color: var(--accent);
}
.quote blockquote { margin: 0; font-family: var(--font-head); font-size: 1.35rem; line-height: 1.5; }
.quote figcaption { margin-top: 1rem; color: var(--muted); font-weight: 700; }

.cta-band {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem;
  background: var(--primary); color: #fff; border-radius: var(--radius-lg); padding: 2rem 2.2rem;
}
.cta-band h2 { color: #fff; margin: 0 0 .3rem; }
.cta-band p { margin: 0; opacity: .92; }
.cta-band .btn-row { margin: 0; }
.cta-band .btn--primary { background: #fff; color: var(--primary-dark); }
.cta-band .btn--light { background: transparent; color: #fff; border-color: #fff; }

/* ---------- FAST ---------- */
.fast {
  background: var(--surface); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-lg);
  border-top: 8px solid #c8372b; margin-bottom: 2.5rem;
}
.fast__head h2 { margin-top: 0; }
.fast__steps { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; }
.fast__steps li { background: var(--surface-2); border-radius: var(--radius); padding: 1.3rem; }
.fast__steps p { margin: 0; }
.fast__letter {
  display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%;
  background: var(--primary); color: #fff; font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; margin-bottom: .7rem;
}
.fast__time { background: #c8372b !important; color: #fff; }
.fast__time h3, .fast__time a { color: #fff; }
.fast__time .fast__letter { background: #fff; color: #c8372b; }
.fast__note { color: var(--muted); margin: 0; }

.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.link-list a {
  display: grid; gap: .15rem; text-decoration: none; background: var(--surface); padding: 1.1rem 1.4rem;
  border-radius: var(--radius); border: 1px solid var(--line); color: var(--ink);
}
.link-list a:hover { border-color: var(--primary); box-shadow: var(--shadow); color: var(--ink); }
.link-list__name { font-weight: 700; color: var(--primary); display: flex; gap: .5rem; align-items: center; font-size: 1.1rem; }
.link-list__text { color: var(--muted); }
.link-list__url { font-size: .85rem; color: var(--muted); }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.2rem; }
.contact-card {
  background: var(--surface); border-radius: var(--radius-lg); padding: 1.7rem; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.contact-card h2 { font-size: 1rem; font-family: var(--font); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: .2rem 0 .4rem; }
.contact-card__big { font-family: var(--font-head); font-size: 1.45rem; font-weight: 700; margin-bottom: .5rem; }
.contact-card__mail { font-size: 1.1rem; word-break: break-word; }
.contact-card__icon { width: 3.2rem; height: 3.2rem; border-radius: 1rem; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.contact-card__icon--accent { background: var(--accent-soft); color: #a2501f; }
.contact-card__icon--leaf { background: var(--leaf-soft); color: var(--leaf); }

/* ---------- Gästebuch ---------- */
.gb-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; }
.gb-entry { background: var(--surface); border-radius: var(--radius-lg); padding: 1.6rem 1.8rem; box-shadow: var(--shadow); border: 1px solid var(--line); }
.gb-entry__head { display: flex; gap: 1rem; align-items: center; margin-bottom: .9rem; }
.gb-entry__avatar {
  width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--accent-soft); color: #a2501f; font-family: var(--font-head); font-weight: 700; font-size: 1.4rem;
}
.gb-entry:nth-child(3n+2) .gb-entry__avatar { background: var(--primary-soft); color: var(--primary); }
.gb-entry:nth-child(3n+3) .gb-entry__avatar { background: var(--leaf-soft); color: var(--leaf); }
.gb-entry__name { margin: 0; font-weight: 700; font-size: 1.1rem; }
.gb-entry__name span { font-weight: 400; color: var(--muted); }
.gb-entry__date { margin: 0; color: var(--muted); font-size: .9rem; }
.gb-entry__text { font-size: 1.08rem; }
.gb-entry__text p:last-child { margin-bottom: 0; }
.gb-entry__reply { margin-top: 1.1rem; background: var(--primary-soft); border-radius: var(--radius); padding: 1rem 1.2rem; }
.gb-entry__reply-title { font-weight: 700; color: var(--primary-dark); display: flex; gap: .5rem; align-items: center; margin-bottom: .4rem; }
.gb-entry__reply p:last-child { margin: 0; }
.pager { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: center; margin-top: 2rem; }

/* ---------- Formulare ---------- */
.form-card { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: var(--shadow-lg); max-width: 46rem; }
.form-card h2 { margin-top: 0; display: flex; gap: .6rem; align-items: center; }
.field { margin-bottom: 1.4rem; }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; font-size: 1.05rem; }
.hint { color: var(--muted); font-size: .92rem; margin: -.15rem 0 .4rem; }
.field .hint:last-child { margin: .4rem 0 0; }
.req { color: var(--danger); }
.optional { font-weight: 400; color: var(--muted); }
input[type="text"], input:not([type]), textarea {
  width: 100%; font: inherit; font-size: 1.08rem; color: var(--ink); background: #fff;
  border: 2px solid #b7aa98; border-radius: .9rem; padding: .8rem 1rem; min-height: 3.3rem;
}
textarea { resize: vertical; line-height: 1.55; }
input:focus, textarea:focus { border-color: var(--primary); outline: 4px solid var(--focus); outline-offset: 1px; }
.field--check { display: flex; gap: .9rem; align-items: flex-start; }
.field--check input { width: 1.7rem; height: 1.7rem; margin-top: .15rem; flex: none; accent-color: var(--primary); }
.field--check label { font-weight: 400; font-size: 1rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem 1.3rem; border-radius: var(--radius); margin-bottom: 1.5rem; }
.notice .icon { width: 1.6rem; height: 1.6rem; margin-top: .1rem; }
.notice ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.notice--ok { background: var(--leaf-soft); color: #1f4d27; }
.notice--error { background: var(--danger-soft); color: var(--danger); }

/* ---------- Fuß ---------- */
.site-footer { background: var(--ink); color: #e9eef0; margin-top: 2rem; }
.site-footer a { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding: 3rem 0 2rem; }
.site-footer__brand { display: flex; gap: .7rem; align-items: center; margin-bottom: .8rem; font-family: var(--font-head); font-size: 1.15rem; }
.site-footer__title { font-family: var(--font); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; color: #b9c7cd; margin: 0 0 .9rem; }
.site-footer .icon { color: var(--sun); }
.plain--links li { margin-bottom: .3rem; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(255, 255, 255, .15); padding: 1.2rem 0 1.6rem; font-size: .92rem;
}
.site-footer__bottom p { margin: 0; }
.site-footer mark.todo { font-size: .85em; }
@media (max-width: 52rem) { .site-footer__grid { grid-template-columns: 1fr; gap: 1.8rem; } }

/* Gerade vorgelesener Bereich */
.is-reading { outline: 4px dashed var(--accent); outline-offset: 6px; border-radius: var(--radius); }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
html { scroll-behavior: smooth; }

/* ---------- Druck ---------- */
@media print {
  .emergency, .a11y-tools, .main-nav, .site-footer, .btn, .event__actions, .skip-link, .hero__art { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .card, .event, .gb-entry { box-shadow: none; border: 1px solid #999; break-inside: avoid; }
  a { color: #000; }
}
html[data-contrast="hoch"] .tool-btn,
html[data-contrast="hoch"] .a11y-tools__group,
html[data-contrast="hoch"] .btn--ghost { border: 2px solid #000; }

/* ---------- Ergänzungen: Unterseiten ---------- */
.h3 { font-size: 1.25rem; margin: 0 0 .4em; }
.logo-img { object-fit: contain; border-radius: 14px; background: #fff; }

.subnav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.6rem 0 0; }
.subnav a {
  display: inline-flex; align-items: center; min-height: 2.9rem; padding: .45rem 1.1rem; border-radius: 99px;
  background: var(--surface); border: 2px solid var(--line); color: var(--ink); font-weight: 700; text-decoration: none;
}
.subnav a:hover { border-color: var(--primary); }
.subnav a[aria-current="page"] { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); }

.hint-line { display: flex; gap: .6rem; align-items: flex-start; color: var(--muted); margin-bottom: 2rem; max-width: 46rem; }
.hint-line .icon { color: var(--primary); margin-top: .2rem; }

.info-box--leaf { background: var(--leaf-soft); }
.info-box--leaf .info-box__icon { color: var(--leaf); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; margin: 0 0 3rem; }
.fact { background: var(--surface); border-radius: var(--radius-lg); padding: 1.3rem 1.5rem; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.fact__num { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: var(--primary); line-height: 1.1; }
.fact span:last-child { color: var(--muted); font-weight: 700; }

.card--feature { border-width: 2px; }
.feature-links { margin-bottom: 2.5rem; }

/* Zeitleiste */
.timeline { list-style: none; padding: 0; margin: 0 0 3rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7.4rem; top: .6rem; bottom: .6rem; width: 3px; background: var(--line); border-radius: 3px; }
.timeline__item { display: grid; grid-template-columns: 6.6rem 1fr; gap: 2rem; margin-bottom: 1.4rem; position: relative; }
.timeline__item::before {
  content: ""; position: absolute; left: calc(7.4rem - .55rem); top: 1.3rem; width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--sun); border: 4px solid var(--bg); box-shadow: 0 0 0 2px var(--accent);
}
.timeline__when { font-family: var(--font-head); font-weight: 700; color: var(--primary); font-size: 1.15rem; text-align: right; padding-top: 1rem; line-height: 1.3; }
.timeline__card { background: var(--surface); border-radius: var(--radius-lg); padding: 1.2rem 1.5rem; border: 1px solid var(--line); box-shadow: var(--shadow); margin-left: .6rem; }
.timeline__card h2 { font-size: 1.25rem; margin: 0 0 .3rem; }
.timeline__card p { margin: 0; color: var(--muted); }
@media (max-width: 40rem) {
  .timeline::before { left: .6rem; }
  .timeline__item { grid-template-columns: 1fr; gap: .3rem; padding-left: 2.2rem; }
  .timeline__item::before { left: 0; top: .25rem; }
  .timeline__when { text-align: left; padding-top: 0; }
  .timeline__card { margin-left: 0; }
}
.checklist--small li { font-size: 1rem; }
.checklist--small .icon { width: 1.35rem; height: 1.35rem; }
.memorial { display: flex; gap: .8rem; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-style: italic; margin-top: 3rem; }
.memorial .icon { color: var(--leaf); }
.memorial p { margin: 0; }

/* Reiseberichte */
.story { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 2rem; background: var(--surface);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); margin-bottom: 2rem; }
.story:not(:has(.story__image)) { grid-template-columns: 1fr; }
.story__image { margin: 0; position: relative; min-height: 16rem; }
.story__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story__image figcaption { position: absolute; left: .7rem; bottom: .7rem; background: rgba(0, 0, 0, .55); color: #fff; font-size: .78rem; padding: .15rem .55rem; border-radius: 99px; }
.story__body { padding: 2rem 2rem 2rem 0; max-width: 44rem; }
.story:not(:has(.story__image)) .story__body { padding: 2rem; }
.story__body h2 { margin: .1rem 0 .4rem; }
.story__meta { display: flex; gap: .45rem; align-items: center; font-weight: 700; color: var(--muted); }
.story__text { font-size: 1.08rem; }
.story__author { font-family: var(--font-head); font-style: italic; color: var(--primary-dark); }
@media (max-width: 52rem) { .story { grid-template-columns: 1fr; } .story__body { padding: 1.5rem; } }

.wide-figure { margin: 0 0 2.5rem; }
.wide-figure img { width: 100%; max-height: 28rem; object-fit: cover; border-radius: var(--radius-lg); display: block; }

/* Eigenes Headerbild (assets/img/header.jpg) */
.hero__photo { position: relative; }
.hero__photo img {
  width: 100%; aspect-ratio: 4 / 3.6; object-fit: cover; display: block;
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; box-shadow: var(--shadow-lg);
}
.hero__photo::before {
  content: ""; position: absolute; inset: auto -1rem -1rem auto; width: 45%; height: 45%;
  background: var(--sun); opacity: .35; border-radius: 50%; z-index: -1;
}
.hero__badge {
  position: absolute; left: -.5rem; bottom: 1.5rem; background: var(--surface); border-radius: 1.2rem; padding: .7rem 1.1rem;
  box-shadow: var(--shadow-lg); font-weight: 700; line-height: 1.25; color: var(--muted);
}
.hero__badge strong { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--primary); }
@media (max-width: 52rem) { .hero__photo { max-width: 26rem; margin-inline: auto; order: -1; } }
/* Feinschliff */
.brand__sub { max-width: 27rem; }
.timeline::before { left: 7.8rem; }
.timeline__item { grid-template-columns: 6.6rem 1fr; gap: 2.6rem; }
.timeline__item::before { left: calc(7.8rem - .7rem); }
.timeline__card { margin-left: 0; }
@media (max-width: 40rem) {
  .timeline::before { left: .6rem; }
  .timeline__item { grid-template-columns: 1fr; gap: .3rem; }
  .timeline__item::before { left: 0; }
}

/* ---------- Fotos ---------- */
.group-photo { margin: 0; position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.group-photo img { width: 100%; display: block; aspect-ratio: 16 / 8; object-fit: cover; object-position: center 35%; }
.group-photo figcaption {
  position: absolute; left: 1.2rem; bottom: 1.2rem; max-width: 26rem; background: var(--surface);
  border-radius: var(--radius); padding: 1rem 1.3rem; box-shadow: var(--shadow-lg); color: var(--muted);
}
.group-photo__title { display: block; font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--primary); }
.group-photo--plain { margin-bottom: 3rem; }
.group-photo--plain img { aspect-ratio: 16 / 9; }
@media (max-width: 40rem) {
  .group-photo figcaption { position: static; border-radius: 0; box-shadow: none; max-width: none; }
  .group-photo img { aspect-ratio: 4 / 3; }
}

.split--media { align-items: start; margin-bottom: 2.5rem; }
.split--media .kurz { margin-bottom: 0; }
.portrait-figure { margin: 0; justify-self: center; max-width: 24rem; }
.portrait-figure img { width: 100%; display: block; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 3 / 4; object-fit: cover; object-position: center 30%; }
.portrait-figure figcaption { font-size: .88rem; color: var(--muted); margin-top: .5rem; text-align: center; }

.contact-card__photo { width: 5.5rem; height: 5.5rem; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 4px solid var(--primary-soft); display: block; }

.cta-band--photo {
  background: linear-gradient(90deg, rgba(21, 70, 81, .95) 0%, rgba(21, 70, 81, .85) 50%, rgba(21, 70, 81, .55) 100%), var(--cta-img) center / cover;
  padding-block: 2.6rem;
}
html[data-contrast="hoch"] .cta-band--photo { background: var(--primary); }
.contact-card__photo { width: 7rem; height: 7rem; object-position: 30% 22%; margin-bottom: .4rem; }

/* ---------- Kontaktformular ---------- */
.form-card--wide { max-width: none; margin-top: 2.5rem; }
.form--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.4rem; }
.form--grid .field--full { grid-column: 1 / -1; }
.form--grid > .hint { display: flex; gap: .5rem; align-items: center; margin: -.4rem 0 1.2rem; }
@media (max-width: 44rem) { .form--grid { grid-template-columns: 1fr; } }
input[type="email"], input[type="tel"], select {
  width: 100%; font: inherit; font-size: 1.08rem; color: var(--ink); background: #fff;
  border: 2px solid #b7aa98; border-radius: .9rem; padding: .8rem 1rem; min-height: 3.3rem;
}
select { appearance: none; padding-right: 2.8rem; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d5c68' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .9rem center / 1.3rem; }
select:focus { border-color: var(--primary); outline: 4px solid var(--focus); outline-offset: 1px; }

/* ---------- Fußbereich (gruppiert) ---------- */
.site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem 3rem; padding: 3.2rem 0 2.4rem; }
.site-footer__about p { color: #c9d4d8; max-width: 30rem; }
.site-footer__contact { margin-top: 1.2rem; }
.site-footer__contact a { word-break: break-word; }
.site-footer__title { color: var(--sun); border-bottom: 1px solid rgba(255, 255, 255, .15); padding-bottom: .55rem; }
.site-footer__links li { margin-bottom: .2rem; }
.site-footer__links a {
  display: inline-block; padding: .35rem 0; color: #e9eef0; text-decoration: none; border-bottom: 2px solid transparent;
}
.site-footer__links a:hover, .site-footer__links a:focus-visible { color: #fff; border-bottom-color: var(--sun); }
.site-footer__bottom p { color: #b9c7cd; }
.site-footer__legal { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.4rem; margin: 0; padding: 0; color: #b9c7cd; }
.site-footer__legal .link-btn { padding: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 62rem) { .site-footer__grid { grid-template-columns: 1fr 1fr 1fr; } .site-footer__about { grid-column: 1 / -1; } }
@media (max-width: 40rem) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Eigenes Logo ---------- */
.site-header .logo-img { width: 4.6rem; height: 4.6rem; background: none; border-radius: 0; }
.site-footer .logo-img { width: 3.2rem; height: 3.2rem; border-radius: 50%; padding: .2rem; background: #fff; }
.gb-entry__reply .logo-img { background: none; }
@media (max-width: 40rem) { .site-header .logo-img { width: 3.6rem; height: 3.6rem; } }


/* ---------- Farben passend zum Logo (Blau & Grün) ---------- */
.card__icon--accent, .contact-card__icon--accent { background: var(--accent-soft); color: var(--accent); }
.gb-entry__avatar { background: var(--accent-soft); color: var(--accent); }
.btn--primary { box-shadow: 0 6px 16px -8px rgba(11, 98, 163, .7); }
input[type="text"], input:not([type]), textarea, input[type="email"], input[type="tel"], select { border-color: #a7b8c6; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b62a3' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.cta-band--photo { background: linear-gradient(90deg, rgba(8, 74, 124, .95) 0%, rgba(8, 74, 124, .86) 50%, rgba(8, 74, 124, .55) 100%), var(--cta-img) center / cover; }
.month-note { border-left-color: var(--sun); }
.quote::before { color: var(--sun); }
.event--featured::after, .hero__photo::before { background: var(--sun); opacity: .22; }
.site-footer { background: var(--ink); }
.site-footer__about p, .site-footer__bottom p, .site-footer__legal { color: #c3d1dc; }
.timeline__item::before { box-shadow: 0 0 0 2px var(--leaf); }
.page-head {
  background:
    radial-gradient(60rem 18rem at 85% -20%, var(--accent-soft), transparent 70%),
    radial-gradient(40rem 16rem at 0% 120%, var(--primary-soft), transparent 70%),
    var(--bg);
}

/* ---------- Überschriften in Atkinson Hyperlegible ---------- */
h1, h2, h3, .brand__name, .event__day, .fact__num, .contact-card__big, .group-photo__title,
.timeline__when, .hero__badge strong, .fast__letter { font-weight: 700; letter-spacing: -.015em; }
h1 { letter-spacing: -.025em; line-height: 1.12; }
.quote blockquote { font-style: italic; }
.story__author { font-style: normal; font-weight: 700; }
.memorial { font-style: normal; }
