/* =========================================================
   Aktiv-Betreuung – „Dein Weg. Gemeinsam.“
   Farben aus dem Logo: Tannengrün, Rosenholz, Sonne.
   ========================================================= */

@font-face {
  font-family: "Atkinson Next";
  src: url("../fonts/atkinson-next.woff2?v=2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Next";
  src: url("../fonts/atkinson-next-italic.woff2?v=2") format("woff2");
  font-weight: 200 800; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("../fonts/caveat.woff2") format("woff2");
  font-weight: 400 700; font-display: swap;
}

:root {
  --teal: #2a7571;
  --teal-deep: #1c5754;
  --teal-soft: #d6e9e5;
  --rose: #b8705f;
  --rose-deep: #9c5244;
  --rose-soft: #f3ddd5;
  --sun: #f2c98c;
  --sun-soft: #fbead0;
  --ink: #14302e;
  --ink-soft: #3f5b58;
  --paper: #fbfcfb;
  --mist: #edf4f2;
  --line: #cfe0dc;
  --board: #1f3f3c;
  --focus: #e0a13c;

  --f-body: "Atkinson Next", "Atkinson Hyperlegible", system-ui, sans-serif;
  --f-hand: "Caveat", "Segoe Print", cursive;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 14px;
  --shadow: 0 1px 2px rgb(20 48 46 / .08), 0 8px 24px -8px rgb(20 48 46 / .18);
  --ease: cubic-bezier(.22, .8, .24, 1);

  /* Himmel – wird je nach Tageszeit überschrieben */
  --sky-1: #cfe6e6; --sky-2: #e7f2ef; --sky-3: #f4f8f6;
  --m1: #b3d4ce; --m2: #6fa9a1; --m3: #d4a294; --m4: #2a7571;
  --path-1: #fff6e6; --path-2: #f2c98c;
  --hero-ink: var(--ink); --hero-a: var(--teal-deep); --hero-b: var(--rose-deep);
  --moon: 0;
}
html[data-daytime="morning"] { --sky-1: #f4d6c4; --sky-2: #f9e8d3; --sky-3: #eef4ef; }
html[data-daytime="evening"] {
  --sky-1: #d98f7b; --sky-2: #f0bf8c; --sky-3: #f8e2c8;
  --m1: #c99f94; --m2: #8f8a86; --m3: #b8705f; --m4: #24625f;
}
html[data-daytime="night"] {
  --sky-1: #0f2c31; --sky-2: #1c4549; --sky-3: #3a6664;
  --m1: #2e5d5d; --m2: #234b4b; --m3: #5e4747; --m4: #123634;
  --path-1: #9fc8c2; --path-2: #e9e2cc;
  --hero-ink: #eef3ee; --hero-a: #a8dcd4; --hero-b: #f2b9a8;
  --moon: 1;
}

/* Starker Kontrast */
html[data-contrast="1"] {
  --teal: #00403d; --teal-deep: #002f2d; --teal-soft: #fff;
  --rose: #6d2519; --rose-deep: #6d2519; --rose-soft: #fff;
  --sun-soft: #fff; --ink: #000; --ink-soft: #000; --paper: #fff; --mist: #fff; --line: #000;
  --sky-1: #fff; --sky-2: #fff; --sky-3: #fff;
  --hero-ink: #000; --hero-a: #002f2d; --hero-b: #6d2519;
}
html[data-contrast="1"] a { text-decoration-thickness: 2px; }
html[data-contrast="1"] .land .layer:not(:last-child), html[data-contrast="1"] .arc { opacity: .25; }

/* Schriftgröße (über die Hilfen umschaltbar) */
html { font-size: 118.75%; -webkit-text-size-adjust: 100%; }
html[data-fs="1"] { font-size: 137.5%; }
html[data-fs="2"] { font-size: 156.25%; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--rose-deep); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 750; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
.ico { width: 1.25em; height: 1.25em; fill: currentColor; stroke: currentColor; stroke-width: 0; flex: none; }
.ico [fill="none"] { stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico path[d^="M16.5"] { fill: none; stroke-width: 2; stroke-linecap: round; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 10px;
}
.skip:focus { top: 1rem; }
main:focus { outline: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.h-display { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); color: var(--teal-deep); }
.lead { font-size: 1.2rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 3rem; padding: .7rem 1.35rem;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-ink { background: var(--teal-deep); color: #fff; box-shadow: 0 6px 18px -8px var(--teal-deep); }
.btn-ink:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: rgb(255 255 255 / .55); border-color: currentColor; color: var(--hero-ink, var(--ink)); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #fff; color: var(--teal-deep); }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #fff; color: var(--ink); }
.btn-light { background: transparent; border-color: currentColor; color: inherit; }
.btn-light:hover { background: rgb(255 255 255 / .12); color: inherit; }
.btn-big { min-height: 3.5rem; font-size: 1.05rem; }
.btn-small { min-height: 2.6rem; padding: .45rem 1rem; font-size: .9rem; }
.link-arrow { font-weight: 700; }
.link-arrow::after { content: ""; display: inline-block; width: .5em; height: .5em; margin-left: .4em; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.link-arrow:hover::after { transform: rotate(45deg) translate(3px, -5px); }
.badge {
  display: inline-flex; gap: .85em; align-items: center;
  padding: .4rem .9rem; border-radius: 999px;
  background: var(--teal-soft); color: var(--teal-deep); font-weight: 700; font-size: .88rem;
}

/* ---------- Kopfzeile ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  transition: background-color .3s, box-shadow .3s;
}
.is-home .site-head { position: fixed; inset: 0 0 auto; }
.site-head.is-solid, .is-page .site-head { background: rgb(251 252 251 / .92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.6rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--hero-ink); }
.is-page .brand, .is-solid .brand { color: var(--ink); }
.logo-mark { width: 4.6rem; height: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; }
.brand-claim { font-family: var(--f-hand); font-size: 1.15rem; color: var(--rose-deep); }
html[data-daytime="night"] .is-home .site-head:not(.is-solid) .brand-claim { color: var(--hero-b); }
.brand-img { height: 3.2rem; width: auto; }

.nav-list { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-list > li > a, .nav-sub-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem .85rem; border-radius: 999px; border: 0; background: none; cursor: pointer;
  color: var(--hero-ink); font-weight: 650; font-size: .92rem; text-decoration: none;
}
.is-page .nav-list > li > a, .is-page .nav-sub-btn, .is-solid .nav-list > li > a, .is-solid .nav-sub-btn { color: var(--ink); }
.nav-list > li > a:hover, .nav-sub-btn:hover { background: rgb(255 255 255 / .6); }
.nav-list a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em; }
.nav-sub-btn .ico { transform: rotate(90deg); width: 1em; height: 1em; transition: transform .2s; }
.nav-sub-btn[aria-expanded="true"] .ico { transform: rotate(-90deg); }
.nav-list > li > a.nav-cta { background: var(--teal-deep); color: #fff; padding-inline: 1.1rem; }
.nav-list > li > a.nav-cta:hover { background: var(--ink); }
.has-sub { position: relative; }
.nav-sub {
  position: absolute; top: calc(100% + .5rem); left: 50%; translate: -50% 0; width: 22rem;
  list-style: none; margin: 0; padding: .5rem; border-radius: 18px; background: var(--paper);
  box-shadow: 0 20px 50px -20px rgb(20 48 46 / .45), 0 0 0 1px var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s var(--ease);
}
.has-sub.is-open .nav-sub { opacity: 1; visibility: visible; transform: none; }
.nav-sub a { display: flex; gap: .8rem; align-items: center; padding: .6rem .7rem; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; }
.nav-sub a:hover, .nav-sub a[aria-current="page"] { background: var(--mist); color: var(--teal-deep); }
.nav-emo { font-size: 1.4rem; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; background: var(--sun-soft); border-radius: 50%; }

.menu-btn {
  display: none; align-items: center; gap: .4rem; min-height: 3rem; padding: .5rem 1rem;
  border-radius: 999px; border: 2px solid currentColor; background: rgb(255 255 255 / .5); color: var(--hero-ink); font-weight: 700; cursor: pointer;
}
.is-page .menu-btn, .is-solid .menu-btn { color: var(--ink); }
.mobile-menu {
  position: fixed; inset: 4.6rem 0 0; z-index: 39; overflow: auto;
  background: var(--paper); padding: 1rem var(--gutter) 8rem;
}
.mobile-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.mobile-menu a {
  display: flex; gap: .9rem; align-items: center; padding: .9rem 1rem; border-radius: 14px;
  background: var(--mist); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.1rem;
}
.mobile-menu a span { font-size: 1.5rem; }
.mobile-menu a[aria-current="page"] { background: var(--teal-deep); color: #fff; }

@media (max-width: 62rem) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .menu-open .site-head { background: var(--paper); }
  .menu-open .brand, .menu-open .menu-btn { color: var(--ink); }
  .menu-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(100svh, 44rem);
  color: var(--hero-ink);
  display: flex; align-items: center;
  padding: 7rem 0 11rem;
}
.land { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.land .layer { transition: transform .8s var(--ease); will-change: transform; }
.land .m1 { fill: var(--m1); } .land .m2 { fill: var(--m2); } .land .m3 { fill: var(--m3); } .land .m4 { fill: var(--m4); }
.land .snow { fill: #fff; opacity: .75; }
.land .sun circle { fill: var(--sun); }
.land .rays { stroke: var(--sun); stroke-width: 10; opacity: calc(1 - var(--moon)); }
.land .stars { opacity: var(--moon); }
html[data-daytime="night"] .land .sun circle { fill: #f3ecd8; transform: scale(.62); transform-origin: 800px 430px; }
html[data-daytime="night"] .land .sun-glow { opacity: .25; }
.land .river, .land .arc { stroke-dasharray: 1; stroke-dashoffset: 0; }

.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 2rem; }
.hero-title { margin: 0 0 1.4rem; font-family: var(--f-hand); font-weight: 700; line-height: .86; letter-spacing: 0; font-size: clamp(4rem, 2rem + 8vw, 8.6rem); }
.hero-title span { display: block; }
.ht-a { color: var(--hero-a); }
.ht-b { color: var(--hero-b); margin-left: .6em; }
.hero-tag { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); font-weight: 750; max-width: 26ch; margin-bottom: .8rem; }
.hero-lead { font-size: 1.05rem; max-width: 40ch; color: var(--hero-ink); opacity: .9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* Wegweiser */
.signpost { position: relative; justify-self: center; padding: 1rem 0 0; width: min(100%, 22rem); }
.signpost-q {
  position: relative; z-index: 2; text-align: center;
  font-family: var(--f-hand); font-size: 2.1rem; font-weight: 700; line-height: 1; margin: 0 0 1rem;
  color: var(--hero-ink);
}
.signs { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; position: relative; z-index: 2; }
.pole {
  position: absolute; z-index: 1; left: 50%; top: 4.5rem; bottom: -40vh; width: 16px; translate: -50% 0;
  background: linear-gradient(90deg, #5a3d33, #8a5d4d 45%, #5a3d33); border-radius: 8px 8px 0 0;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .15);
}
.sign {
  --bg: var(--teal-deep); --fg: #fff;
  position: relative; display: flex; align-items: center; gap: .7rem;
  min-height: 3.6rem; padding: .55rem 2.4rem .55rem 1.1rem;
  background: var(--bg); color: var(--fg); text-decoration: none;
  font-weight: 750; font-size: 1.02rem; line-height: 1.15;
  clip-path: polygon(0 0, calc(100% - 1.5rem) 0, 100% 50%, calc(100% - 1.5rem) 100%, 0 100%);
  border-radius: 6px 0 0 6px;
  filter: drop-shadow(0 6px 10px rgb(20 48 46 / .25));
  transform-origin: 50% 50%;
  transition: transform .35s var(--ease), background-color .2s;
}
.sign::after { /* Maserung wie bei einem gestrichenen Holzschild */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgb(255 255 255 / .05) 0 2px, transparent 2px 7px);
}
.sign-l {
  padding: .55rem 1.1rem .55rem 2.4rem;
  clip-path: polygon(1.5rem 0, 100% 0, 100% 100%, 1.5rem 100%, 0 50%);
  border-radius: 0 6px 6px 0;
}
.signs .sign-r { margin-left: 1.6rem; margin-right: -1.4rem; transform: rotate(-2deg); }
.signs .sign-l { margin-left: -1.4rem; margin-right: 1.6rem; transform: rotate(2deg); }
.signs .sign-r:hover, .signs .sign-r:focus-visible { transform: rotate(0) translateX(8px); }
.signs .sign-l:hover, .signs .sign-l:focus-visible { transform: rotate(0) translateX(-8px); }
.sign:hover, .sign:focus-visible { color: var(--fg); }
.sign-rose { --bg: var(--rose-deep); }
.sign-sun { --bg: var(--sun); --fg: var(--ink); }
.sign-emo { font-size: 1.55rem; line-height: 1; filter: drop-shadow(0 1px 0 rgb(0 0 0 / .15)); }
.sign:focus-visible { outline: none; filter: drop-shadow(0 0 0 var(--focus)) drop-shadow(0 0 4px var(--focus)) drop-shadow(0 0 2px var(--focus)); }
.sign-small { min-height: 3rem; font-size: .92rem; }

@media (max-width: 62rem) {
  .hero { padding: 6.5rem 0 7rem; align-items: flex-start; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .ht-b { margin-left: .3em; }
  .signpost { justify-self: stretch; width: 100%; max-width: 30rem; margin-inline: auto; }
  .pole { bottom: -8rem; }
}
@media (max-width: 30rem) {
  .signs .sign-r { margin-left: .6rem; margin-right: -.2rem; }
  .signs .sign-l { margin-left: -.2rem; margin-right: .6rem; }
}

/* Ein einziger Auftritt beim Laden: Sonne geht auf, der Weg zeichnet sich, die Schilder schwingen ein */
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) .hero .sun { animation: sunrise 1.8s var(--ease) both; }
  html:not([data-motion="off"]) .hero .arc { animation: draw 2.2s .3s var(--ease) both; }
  html:not([data-motion="off"]) .hero .river { animation: draw 2s .6s var(--ease) both; }
  html:not([data-motion="off"]) .hero-title .ht-a { animation: rise .9s .2s var(--ease) both; }
  html:not([data-motion="off"]) .hero-title .ht-b { animation: rise .9s .45s var(--ease) both; }
  html:not([data-motion="off"]) .signs li { animation: swing 1s calc(1s + var(--n) * .12s) var(--ease) both; transform-origin: 50% 0; }
}
@keyframes sunrise { from { transform: translateY(160px); opacity: 0; } }
/* Unsichtbar bis zum Start – sonst zeigt die runde Linienkappe vorab einen einzelnen Punkt */
@keyframes draw { 0% { stroke-dashoffset: 1; opacity: 0; } 3% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }
@keyframes rise { from { transform: translateY(.4em); opacity: 0; } }
@keyframes swing { 0% { transform: rotate(-14deg) scale(.9); opacity: 0; } 60% { transform: rotate(4deg); opacity: 1; } 100% { transform: none; } }

/* ---------- Hallo ---------- */
.hello { padding: clamp(4rem, 8vw, 7rem) 0; background: var(--paper); }
.hello-grid { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 40rem); gap: clamp(2rem, 6vw, 5rem); align-items: center; justify-content: center; }
.hello-copy p { max-width: 60ch; }
@media (max-width: 48rem) { .hello-grid { grid-template-columns: 1fr; } .hello .polaroid-solo { max-width: 16rem; } }

/* ---------- Polaroids ---------- */
.polaroid {
  margin: 0; background: #fff; padding: .7rem .7rem 0; border-radius: 3px;
  box-shadow: 0 1px 1px rgb(0 0 0 / .06), 0 14px 28px -12px rgb(20 48 46 / .4);
}
.polaroid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--mist); }
.polaroid figcaption {
  font-family: var(--f-hand); font-size: 1.55rem; font-weight: 600; color: var(--ink);
  padding: .35rem .2rem .6rem; line-height: 1.15; min-height: 3.2rem;
}
.polaroid-solo { transform: rotate(-3deg); }
.photo-missing { aspect-ratio: 1; display: grid; place-items: center; background: linear-gradient(180deg, var(--sun-soft), var(--teal-soft)); }
.polaroid .photo-missing .logo-mark { width: 82%; aspect-ratio: auto; object-fit: contain; background: none; }

/* ---------- Wanderweg mit Angeboten ---------- */
.trail { padding: clamp(4rem, 8vw, 7rem) 0; background: var(--mist); position: relative; }
.trail-title { text-align: center; }
.trail-lead { text-align: center; max-width: 52ch; margin: 0 auto 3rem; font-size: 1.1rem; color: var(--ink-soft); }
.trail-body { position: relative; }
.trail-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.trail-line path { fill: none; stroke: var(--rose); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 12; }
.trail-line path.trail-ghost { stroke: var(--line); stroke-dasharray: 2 12; }
.stops { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1.5rem, 4vw, 3rem); position: relative; }
.stop { display: grid; grid-template-columns: 1fr 5.5rem 1fr; align-items: center; }
@media (min-width: 48.01rem) { .stops { gap: 0; } .stop + .stop { margin-top: -2.5rem; } }
.stop-dot {
  grid-column: 2; grid-row: 1; justify-self: center; z-index: 1;
  width: 4.6rem; height: 4.6rem; border-radius: 50%; display: grid; place-items: center;
  font-size: 2.1rem; background: var(--paper); box-shadow: 0 0 0 6px var(--mist), 0 0 0 9px var(--sun), var(--shadow);
}
.stop:nth-child(odd) .stop-dot { translate: -1.6rem 0; }
.stop:nth-child(even) .stop-dot { translate: 1.6rem 0; }
.stop-card {
  grid-row: 1; position: relative; padding: 1.4rem 1.6rem; border-radius: var(--radius);
  background: var(--paper); box-shadow: var(--shadow); border-top: 5px solid var(--teal);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.stop:nth-child(odd) .stop-card { grid-column: 1; }
.stop:nth-child(even) .stop-card { grid-column: 3; }
.stop-rose .stop-card { border-top-color: var(--rose); }
.stop-sun .stop-card { border-top-color: var(--sun); }
.stop-card h3 { font-size: 1.3rem; }
.stop-card h3 a, .stop-card h3 a:hover { color: var(--ink); text-decoration: none; }
.stop-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.stop-card:hover, .stop-card:focus-within { transform: translateY(-4px); box-shadow: 0 1px 2px rgb(20 48 46 / .1), 0 18px 36px -14px rgb(20 48 46 / .35); }
.stop-card p { color: var(--ink-soft); margin-bottom: .6rem; }
.stop-more { font-weight: 750; color: var(--teal-deep); }
.stop-more::after { content: ""; display: inline-block; width: .45em; height: .45em; margin-left: .45em; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg) translateY(-2px); }
@media (max-width: 48rem) {
  .stop { grid-template-columns: 4.2rem 1fr; gap: .9rem; }
  .stop-dot { grid-column: 1 !important; width: 3.8rem; height: 3.8rem; font-size: 1.7rem; translate: none !important; align-self: start; margin-top: .4rem; }
  .stop:nth-child(n) .stop-card { grid-column: 2; }
}

/* ---------- Zitat ---------- */
.quote-band { position: relative; color: #fff; }
.quote-ridge { display: block; width: 100%; height: clamp(50px, 8vw, 110px); margin-bottom: -1px; background: var(--mist); }
.quote-ridge .r1 { fill: var(--teal); } .quote-ridge .r2 { fill: var(--teal-deep); }
.quote-body { background: var(--teal-deep); padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); }
.quote-band blockquote { margin-inline: auto; text-align: center; }
.quote-band blockquote p { font-size: clamp(1.6rem, 1rem + 2.6vw, 3rem); font-weight: 750; line-height: 1.2; max-width: 26ch; margin: 0 auto 1rem; text-wrap: balance; }
.quote-band blockquote footer { font-family: var(--f-hand); font-size: 2rem; color: var(--sun); }

/* ---------- Fotoalben ---------- */
.moments { padding: clamp(4rem, 8vw, 7rem) 0; }
.albums { display: grid; gap: clamp(3rem, 6vw, 5rem); margin-top: 2.5rem; }
.album { display: grid; grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.album:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); }
.album:nth-child(even) .album-stack { order: 2; }
.album-stack { position: relative; aspect-ratio: 1 / 1.16; width: 100%; max-width: 26rem; margin-inline: auto; }
.album-stack .polaroid {
  position: absolute; inset: 0;
  transform: rotate(var(--tilt)) translate(calc(var(--pos, 0) * 6px), calc(var(--pos, 0) * 4px));
  transition: transform .5s var(--ease), opacity .4s;
  z-index: calc(20 - var(--pos, 0));
}
.album-stack .polaroid[data-hidden] { opacity: 0; }
.album-stack .polaroid.is-leaving { animation: leave .7s var(--ease); }
@keyframes leave {
  0% { transform: rotate(var(--tilt)); }
  45% { transform: translateX(-62%) rotate(-12deg); }
  100% { transform: rotate(var(--tilt)) translate(calc(var(--pos) * 6px), calc(var(--pos) * 4px)); }
}
.album-stack .polaroid.is-coming { animation: come .7s var(--ease); }
@keyframes come {
  0% { transform: rotate(var(--tilt)) translate(12px, 8px); }
  45% { transform: translateX(62%) rotate(12deg); }
  100% { transform: rotate(var(--tilt)); }
}
.polaroid-open { display: block; padding: 0; border: 0; background: none; width: 100%; cursor: zoom-in; }
.album-page { display: inline-block; font-weight: 700; margin-bottom: .6rem; text-decoration: none; background: var(--mist); padding: .3rem .8rem; border-radius: 999px; font-size: .9rem; }
.album-title { font-family: var(--f-hand); font-size: clamp(2.4rem, 1.6rem + 2.2vw, 3.4rem); font-weight: 700; color: var(--rose-deep); line-height: 1; margin-bottom: .3rem; letter-spacing: 0; }
.album-date { color: var(--ink-soft); font-weight: 650; }
.album-comment { font-size: 1.1rem; max-width: 46ch; }
.album-ctrl { display: flex; align-items: center; gap: .6rem; margin-top: 1.4rem; flex-wrap: wrap; }
.album-count { min-width: 5.5rem; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.round {
  width: 3.2rem; height: 3.2rem; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 2px solid var(--teal-deep); background: var(--paper); color: var(--teal-deep); transition: background-color .2s, color .2s;
}
.round:hover { background: var(--teal-deep); color: #fff; }
.round .ico + .ico, .round[aria-pressed="true"] .ico:first-child { display: none; }
.round[aria-pressed="true"] .ico + .ico { display: block; }
@media (max-width: 48rem) {
  .album, .album:nth-child(even) { grid-template-columns: 1fr; }
  .album:nth-child(even) .album-stack { order: 0; }
  .album-stack { max-width: 20rem; }
}

/* Großansicht */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgb(10 26 25 / .95); color: #fff;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; display: grid; gap: 1rem; justify-items: center; padding: 4.5rem 4.5rem 3.5rem; }
.lightbox img { max-height: calc(100dvh - 11rem); width: auto; max-width: 100%; border-radius: 4px; }
.lightbox figcaption { font-family: var(--f-hand); font-size: 2rem; text-align: center; }
.lb-btn {
  position: absolute; width: 3.4rem; height: 3.4rem; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid #fff; background: rgb(0 0 0 / .35); color: #fff; cursor: pointer;
}
.lb-btn:hover { background: #fff; color: var(--ink); }
.lb-prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lb-next { right: 1rem; top: 50%; translate: 0 -50%; }
.lb-close { right: 1rem; top: 1rem; }
.lb-count { position: absolute; left: 1.2rem; top: 1.4rem; margin: 0; font-weight: 700; }
@media (max-width: 40rem) {
  .lightbox figure { padding: 4.5rem .5rem 6rem; }
  .lb-prev, .lb-next { top: auto; bottom: 1rem; translate: none; }
}

/* ---------- Preistafel wie auf der Berghütte ---------- */
.prices-teaser { padding: clamp(4rem, 8vw, 7rem) 0; background: var(--sun-soft); }
.tafel {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 2rem 0 1.5rem;
  background: var(--board); color: #f4efe2; border-radius: 10px;
  border: 12px solid #8a5d4d; box-shadow: inset 0 0 0 2px rgb(0 0 0 / .25), inset 0 0 60px rgb(0 0 0 / .35), var(--shadow);
  background-image: radial-gradient(ellipse at 30% 20%, rgb(255 255 255 / .06), transparent 60%);
}
.tafel > div { padding: 1.6rem 1.4rem; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .2rem; }
.tafel > div + div { border-left: 2px dashed rgb(244 239 226 / .25); }
.tafel dt { font-size: .98rem; opacity: .88; }
.tafel dd { margin: 0; font-family: var(--f-hand); font-size: clamp(2.6rem, 1.8rem + 2vw, 3.6rem); font-weight: 700; line-height: 1; color: #fff; }
.tafel dd small { font-size: .45em; opacity: .8; font-family: var(--f-body); font-weight: 600; }
.tafel > div:nth-child(3) dd { color: var(--sun); }
.prices-note { max-width: 62ch; }
@media (max-width: 48rem) {
  .tafel { grid-template-columns: 1fr; }
  .tafel > div + div { border-left: 0; border-top: 2px dashed rgb(244 239 226 / .25); }
}

/* ---------- Aufruf zum Kontakt ---------- */
.cta { background: var(--rose-deep); color: #fff; padding: clamp(3.5rem, 7vw, 6rem) 0; }
.cta .h-display { color: #fff; }
.cta-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.cta p { max-width: 50ch; font-size: 1.1rem; }
.cta .cta-hand { font-family: var(--f-hand); font-size: 2.1rem; font-weight: 700; color: var(--sun); line-height: 1.1; }
.cta-actions { display: grid; gap: .8rem; }
.cta-actions .btn { justify-content: flex-start; }
@media (max-width: 48rem) { .cta-inner { grid-template-columns: 1fr; } }

/* ---------- Unterseiten ---------- */
.page-head { position: relative; background: var(--teal-soft); padding: clamp(2.5rem, 6vw, 4.5rem) 0 0; }
.tone-rose .page-head { background: var(--rose-soft); }
.tone-sun .page-head { background: var(--sun-soft); }
.tpl-legal .page-head { background: var(--mist); }
.page-head-inner { position: relative; z-index: 1; padding-bottom: 1rem; }
.crumbs { font-size: .9rem; font-weight: 650; color: var(--ink-soft); }
.page-emo {
  display: grid; place-items: center; width: 5rem; height: 5rem; border-radius: 50%; margin-bottom: 1rem;
  font-size: 2.6rem; background: var(--sun); box-shadow: 0 0 0 8px rgb(255 255 255 / .5);
}
.page-title { font-size: clamp(2.2rem, 1.3rem + 3.4vw, 3.9rem); color: var(--teal-deep); max-width: 20ch; text-wrap: balance; }
.page-intro { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); max-width: 44ch; font-weight: 600; }
.head-ridge { display: block; width: 100%; height: clamp(40px, 7vw, 90px); margin-top: 1rem; }
.head-ridge .r1 { fill: rgb(255 255 255 / .45); } .head-ridge .r2 { fill: var(--paper); }

.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: clamp(2rem, 5vw, 5rem); padding: 2rem 0 4rem; align-items: start; }
.page-grid.is-narrow { grid-template-columns: minmax(0, 46rem); }
@media (max-width: 62rem) { .page-grid { grid-template-columns: 1fr; } }

.prose { max-width: 44rem; font-size: 1.08rem; }
.prose > * + h2 { margin-top: 2.6rem; }
.prose h2 { font-size: clamp(1.45rem, 1.1rem + 1vw, 1.9rem); color: var(--teal-deep); }
.prose h3 { font-size: 1.35rem; margin-top: 2rem; }
.prose ul:not(.chips), .prose ol:not(.timeline) { padding-left: 1.3rem; }
.prose ul:not(.chips) li::marker { color: var(--rose); }
.prose li + li { margin-top: .35rem; }
.prose .gross {
  font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); font-weight: 750; line-height: 1.3; color: var(--teal-deep);
  padding: .2rem 0 .2rem 1.1rem; border-left: 5px solid var(--sun); margin: 1.6rem 0;
}
.prose .hinweis {
  background: var(--sun-soft); border-radius: var(--radius); padding: 1rem 1.2rem 1rem 3.2rem; position: relative;
}
.prose .hinweis::before {
  content: "i"; position: absolute; left: 1rem; top: 1rem; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--rose-deep); color: #fff; font-weight: 800; font-size: .9rem; line-height: 1;
}
.prose blockquote { margin: 1.5rem 0; padding-left: 1.2rem; border-left: 4px solid var(--rose); font-style: italic; }

/* Aufzählungen mit Emojis → Symbol-Kacheln (anklickbar, lesen sich selbst vor) */
.chips { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: .7rem; }
.chips li + li { margin-top: 0; }
.chip {
  width: 100%; height: 100%; display: flex; align-items: center; gap: .8rem; text-align: left;
  padding: .7rem .9rem; border-radius: var(--radius); cursor: pointer;
  background: var(--paper); border: 2px solid var(--line); font-weight: 650; line-height: 1.25;
  transition: border-color .2s, transform .2s var(--ease), background-color .2s;
}
.chip:hover { border-color: var(--teal); transform: translateY(-2px); }
.chip-i { flex: none; width: 2.8rem; height: 2.8rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; background: var(--sun-soft); }
.chip.is-speaking { border-color: var(--rose); background: var(--rose-soft); }
.chip.is-speaking .chip-i { animation: bob .6s var(--ease) 2; }
@keyframes bob { 50% { transform: translateY(-5px) scale(1.12); } }

/* Zeitleiste */
.timeline { list-style: none; padding: 0; margin: 1.5rem 0 2rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 2.6rem; top: .8rem; bottom: .8rem; width: 3px; background: repeating-linear-gradient(var(--rose) 0 6px, transparent 6px 14px); }
.timeline li { display: grid; grid-template-columns: 5.2rem 1fr; gap: 1rem; position: relative; }
.timeline li + li { margin-top: 1.4rem; }
.timeline .year {
  position: relative; z-index: 1; justify-self: center; align-self: start;
  font-family: var(--f-hand); font-weight: 700; font-size: 1.7rem; color: var(--rose-deep);
  background: var(--paper); padding: 0 .3rem; line-height: 1.3;
}
.tl-body { padding-top: .25rem; }

/* Seitenleiste */
.side { position: sticky; top: 6rem; display: grid; gap: 1.5rem; }
@media (max-width: 62rem) { .side { position: static; } }
.side-card { background: var(--mist); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: .6rem; justify-items: start; }
.side-card p { margin: 0; }
.side-hand { font-family: var(--f-hand); font-size: 1.9rem; font-weight: 700; line-height: 1.05; color: var(--rose-deep); }
.side-link { display: inline-flex; gap: .5rem; align-items: center; font-weight: 700; word-break: break-word; }
.side-signs ul { list-style: none; margin: .6rem 0 0; padding: 0 1.5rem 0 0; display: grid; gap: .5rem; }

.next-stop { padding: 1rem 0 4rem; }
.next-link {
  display: flex; flex-direction: column; gap: .2rem; padding: 1.6rem 4.5rem 1.6rem 1.8rem; position: relative;
  border-radius: var(--radius); background: var(--mist); text-decoration: none; color: var(--ink);
  border: 2px solid var(--line); transition: border-color .2s;
}
.next-link::after { content: ""; position: absolute; right: 2rem; top: 50%; width: 1rem; height: 1rem; border: solid var(--teal-deep); border-width: 3px 3px 0 0; transform: translateY(-50%) rotate(45deg); transition: right .2s; }
.next-link:hover { border-color: var(--teal); color: var(--ink); }
.btn:hover { text-decoration: none; }
.next-link:hover::after { right: 1.6rem; }
.next-label { font-family: var(--f-hand); font-size: 1.6rem; color: var(--rose-deep); line-height: 1; }
.next-title { font-size: 1.4rem; font-weight: 750; }
.moments-page { padding-top: 0; }

/* Kontaktformular */
.contact-box { margin-top: 2.5rem; background: var(--mist); border-radius: calc(var(--radius) * 1.4); padding: clamp(1.4rem, 4vw, 2.4rem); }
.form { display: grid; gap: 1.3rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 750; }
.field-help { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.opt { font-weight: 500; color: var(--ink-soft); }
.field input[type="text"], .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 2px solid #9fbdb7; border-radius: 12px; padding: .75rem .9rem; min-height: 3.2rem;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--teal-deep); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field-err { margin: 0; color: #b3261e; font-weight: 700; font-size: .95rem; }
.field-check { grid-template-columns: auto 1fr; align-items: start; gap: .8rem; }
.field-check input { width: 1.6rem; height: 1.6rem; margin: .15rem 0 0; accent-color: var(--teal-deep); }
.field-check label { font-weight: 500; }
.field-check .field-err { grid-column: 2; }
.form-errors { background: #fdecea; border-left: 5px solid #b3261e; padding: 1rem 1.2rem; border-radius: 8px; margin-bottom: 1.2rem; }
.form-errors p { font-weight: 750; margin-bottom: .3rem; }
.form-errors ul { margin: 0; padding-left: 1.2rem; }
.form-done .side-hand { font-size: 2.4rem; }
.form-extra { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Fußzeile ---------- */
.site-foot { color: #e6efec; margin-top: 0; }
.foot-ridge { display: block; width: 100%; height: clamp(50px, 8vw, 110px); margin-bottom: -1px; }
main:has(> .cta:last-child) + .site-foot .foot-ridge { background: var(--rose-deep); }
.foot-ridge .r1 { fill: var(--teal); } .foot-ridge .r2 { fill: var(--ink); }
.foot-body { background: var(--ink); padding: 2.5rem 0 7rem; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; }
.foot-mark { width: 10rem; padding: .7rem .9rem; background: var(--paper); border-radius: 16px; box-sizing: content-box; }
.foot-claim { font-family: var(--f-hand); font-size: 2.2rem; color: var(--sun); margin: .4rem 0 .4rem; line-height: 1; }
.site-foot h2 { font-size: 1.05rem; color: #fff; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-foot a:not(.btn) { color: #e6efec; }
.site-foot a:not(.btn):hover { color: var(--sun); }
.foot-contact li { display: flex; gap: .5rem; align-items: center; }
.foot-contact li a { display: inline-flex; gap: .5rem; align-items: center; }
.foot-contact .btn { margin-top: 1.2rem; }
.site-foot .badge { background: rgb(255 255 255 / .1); color: #fff; max-width: 19.6rem; text-wrap: balance; line-height: 1.35; border-radius: 18px; padding: .55rem 1rem; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid rgb(255 255 255 / .15); font-size: .9rem; }
.foot-legal p { margin: 0; }
.foot-legal ul { display: flex; flex-wrap: wrap; gap: 1.2rem; }
@media (max-width: 48rem) { .foot-grid { grid-template-columns: 1fr; } }
html[data-contrast="1"] .foot-body, html[data-contrast="1"] .quote-body, html[data-contrast="1"] .cta { background: #000; }

/* ---------- Hilfen-Leiste: Vorlesen, Schrift, Kontrast ---------- */
.dock { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; display: grid; gap: .6rem; justify-items: end; }
.dock-bar {
  display: flex; gap: .25rem; padding: .35rem; border-radius: 999px;
  background: var(--ink); box-shadow: 0 12px 30px -10px rgb(0 0 0 / .5);
}
.dbtn {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 3rem; padding: .45rem 1rem;
  border: 0; border-radius: 999px; background: transparent; color: #fff; font-weight: 750; font-size: .95rem; cursor: pointer;
}
.dbtn:hover { background: rgb(255 255 255 / .12); }
.dbtn-read { background: var(--sun); color: var(--ink); }
.dbtn-read:hover { background: #fff; }
.dbtn[aria-pressed="true"] { background: #fff; color: var(--ink); }
.dock-player {
  width: min(24rem, calc(100vw - 2rem)); background: var(--paper); color: var(--ink);
  border-radius: 20px; padding: 1rem 1.1rem; box-shadow: 0 20px 50px -15px rgb(0 0 0 / .45), 0 0 0 1px var(--line);
}
.player-now { margin: 0 0 .7rem; font-weight: 700; font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.player-btns { display: flex; gap: .4rem; align-items: center; }
.pbtn {
  width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 2px solid var(--line); background: #fff; color: var(--ink);
}
.pbtn:hover { border-color: var(--teal-deep); }
.pbtn-main { width: 3.6rem; height: 3.6rem; background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.pbtn-main:hover { background: var(--ink); }
.pbtn-main .ico + .ico { display: none; }
.is-paused .pbtn-main .ico { display: none; }
.is-paused .pbtn-main .ico + .ico { display: block; }
.pbtn-rate { width: auto; min-width: 3rem; padding: 0 .7rem; border-radius: 999px; font-weight: 800; margin-left: auto; }
.player-hint { margin: .7rem 0 0; font-size: .82rem; color: var(--ink-soft); }
.is-reading {
  background: linear-gradient(transparent 0, var(--sun-soft) 0) !important;
  box-shadow: 0 0 0 .4rem var(--sun-soft), 0 0 0 calc(.4rem + 3px) var(--sun);
  border-radius: 4px; transition: box-shadow .2s;
}
.tts-active main p, .tts-active main li, .tts-active main h1, .tts-active main h2, .tts-active main h3 { cursor: pointer; }
@media (max-width: 40rem) {
  .dock { left: .5rem; right: .5rem; bottom: .5rem; justify-items: stretch; }
  .dock-bar { justify-content: space-between; }
  .dbtn { flex: 1; justify-content: center; padding-inline: .5rem; }
  .dock-player { width: 100%; }
}
@media print { .dock, .site-head, .cta, .site-foot { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Gezeichnete Icons (ersetzen Emojis) ---------- */
.ic { display: inline-block; width: 1.2em; height: 1.2em; object-fit: contain; vertical-align: middle; }
.sign-emo {
  flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--paper); box-shadow: inset 0 0 0 2px rgb(255 255 255 / .6);
}
.sign-emo .ic { width: 1.85rem; height: 1.85rem; }
.sign-small .sign-emo { width: 2.2rem; height: 2.2rem; }
.sign-small .sign-emo .ic { width: 1.5rem; height: 1.5rem; }
.stop-dot .ic { width: 2.9rem; height: 2.9rem; }
.page-emo { background: var(--paper); box-shadow: 0 0 0 6px var(--sun), 0 0 0 12px rgb(255 255 255 / .5); }
.page-emo .ic { width: 3.3rem; height: 3.3rem; }
.chip-i { background: var(--mist); }
.chip-i .ic, .chip-i img { width: 2rem; height: 2rem; object-fit: contain; }
.nav-emo { background: var(--mist); }
.nav-emo .ic { width: 1.6rem; height: 1.6rem; }
.mm-ic { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: #fff; flex: none; }
.mobile-menu a[aria-current="page"] .mm-ic { background: var(--paper); }
.mm-ic .ic { width: 1.8rem; height: 1.8rem; }
.prose h2.has-ic, .prose h3.has-ic { display: flex; align-items: center; gap: .6rem; }
.ic-h { width: 2.4rem; height: 2.4rem; padding: .3rem; border-radius: 50%; background: var(--mist); flex: none; }
.next-ic { width: 1.6em; height: 1.6em; margin-right: .2em; }
.tiny-ic { width: 1.3em; height: 1.3em; }
.credit { opacity: .8; }

/* Lange Wörter in Symbol-Kacheln umbrechen statt überlaufen */
.chips { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.chip-t { min-width: 0; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 12 5 5; }
.chips-stack { grid-template-columns: minmax(0, 1fr); max-width: 34rem; }
.chips-stack .chip-t { overflow-wrap: break-word; }
.chips-stack .chip-t { hyphens: manual; -webkit-hyphens: manual; }

/* Die winkende Hand winkt beim Öffnen der Seite kurz */
@media (prefers-reduced-motion: no-preference) {
  .page-emo img[src*="/wave.svg"] { transform-origin: 70% 90%; animation: wink 1.4s .4s var(--ease) both; }
}
@keyframes wink { 0%, 100% { transform: rotate(0); } 20%, 60% { transform: rotate(14deg); } 40%, 80% { transform: rotate(-8deg); } }
.badge-ic { flex: none; display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--paper); }
.badge-ic img { width: 1.7rem; height: 1.7rem; }
.badge:has(.badge-ic) { padding-left: .4rem; }

/* ---------- Mobil-Korrekturen ---------- */
/* Sicherheitsnetz: die Seite darf nie seitlich verschiebbar sein (clip statt hidden, damit „sticky“ weiter funktioniert) */
html, body { overflow-x: clip; }
.trail, .moments, .hero { overflow-x: clip; }

/* Logo-Schrift: jede Zeile bleibt zusammen, auf kleinen Bildschirmen etwas kleiner */
.brand-name, .brand-claim { white-space: nowrap; }
@media (max-width: 40rem) {
  .head-inner { gap: .6rem; min-height: 4rem; }
  .brand { gap: .45rem; min-width: 0; }
  .logo-mark { width: 3.5rem; flex: none; }
  .brand-name { font-size: .88rem; }
  .brand-claim { font-size: .98rem; }
  .menu-btn { min-height: 2.75rem; padding: .35rem .85rem; font-size: .9rem; flex: none; }
  .mobile-menu { inset: 4rem 0 0; }
  /* Hilfen-Leiste: drei Knöpfe passen nebeneinander */
  .dock-bar { gap: .15rem; padding: .3rem; }
  .dbtn { font-size: .84rem; gap: .3rem; padding-inline: .35rem; min-width: 0; }
  .dbtn .ico { width: 1.1em; height: 1.1em; }
}
/* Bei sehr großer Schrift den Spruch im Kopf weglassen, damit nichts umbricht */
@media (max-width: 40rem) { html[data-fs="1"] .brand-claim, html[data-fs="2"] .brand-claim { display: none; } }
@media (max-width: 22rem) { .brand-claim { display: none; } }

/* Fotoalbum mobil: Pfeile direkt unter das Bild, danach Überschrift und Text */
@media (max-width: 48rem) {
  .album, .album:nth-child(even) { display: flex; flex-direction: column; gap: 0; align-items: stretch; }
  .album-stack { align-self: center; }
  .album-info { display: contents; }
  .album-stack { order: 0; width: 86%; }
  .album-ctrl { order: 1; justify-content: center; margin: 1.3rem 0 1.6rem; }
  .album-page, .album-title, .album-date, .album-comment { order: 2; }
  .album-page { align-self: flex-start; }
}

/* Lange Wörter dürfen Spalten nicht breiter als den Bildschirm machen */
@media (max-width: 48rem) {
  .stop { grid-template-columns: 3.6rem minmax(0, 1fr); gap: .7rem; }
  .stop-dot { width: 3.4rem; height: 3.4rem; }
  .stop-dot .ic { width: 2.3rem; height: 2.3rem; }
  .stop-card { padding: 1.1rem 1.15rem; }
  .stop-card h3 { font-size: 1.15rem; }
}
@media (max-width: 62rem) { .page-grid { grid-template-columns: minmax(0, 1fr); } }
.stop-card h3, .prose h2, .prose h3, .prose .gross, .page-title, .h-display, .album-title {
  overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 10 4 4;
}
@media (max-width: 22.5rem) {
  .hero-title { font-size: 3.4rem; }
  .tafel { border-width: 8px; }
  .tafel > div { padding: 1.2rem 1rem; }
}

/* „Über mich“: Foto von Max als Polaroid rechts im Kopfbereich */
.page-head-inner.has-photo { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; column-gap: 3rem; align-items: center; }
.page-head-inner.has-photo > :not(.head-photo) { grid-column: 1; }
.head-photo { grid-column: 2; grid-row: 1 / span 5; transform: rotate(3deg); margin: 0 0 1rem; }
@media (max-width: 48rem) {
  .page-head-inner.has-photo { grid-template-columns: 1fr; }
  .head-photo { grid-column: 1; grid-row: auto; order: -1; max-width: 13rem; margin: 0 0 1.5rem; }
}
.page-head-inner.has-photo > * { justify-self: start; }
