/* starnberger-see.info – Startseite mit Kachel-Player.
   Farb- und Maßwerte stammen aus dem Design-Entwurf,
   Inhalte und Regeln aus dem Core-Dokument v2. */

/* Schriften lokal ausliefern – keine Google Fonts vom Google-Server
   (Kapitel 27, DSGVO). Dateien einmalig holen: scripts/fonts-holen.sh
   Solange sie fehlen, greift der Fallback-Stack in --serif / --sans. */
@font-face {
  font-family: 'Newsreader';
  src: url('../fonts/newsreader-variable.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('../fonts/schibsted-grotesk-variable.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #FAF7F2;
  --ink: #22302B;
  --deep: #17323D;
  --teal: #2E5A6B;
  --mist: #9FC0CC;
  --pale: #C8D2D2;
  --cream: #F5EFE4;
  --sand: #EFE8DB;
  --line: #EDE5D7;
  --line-strong: #DED4C0;
  --line-soft: #E0D8C8;
  --muted: #5B6963;
  --muted-2: #8A948E;
  --brass: #B97D34;
  --brass-light: #D9A967;
  --brass-dark: #A06A28;
  --mint: #EEF2F1;
  --mint-line: #E2E9E7;
  --recipe: #FBF3E6;
  --recipe-line: #F0E2C8;
  --footer: #F3EEE5;

  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Schibsted Grotesk', system-ui, sans-serif;
  --wrap: 1240px;
  --pad: 18px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: rgba(46, 90, 107, 0.15); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

a { color: var(--teal); }
a:hover { color: var(--deep); }

img { max-width: 100%; }

::-webkit-scrollbar { height: 6px; width: 6px; }
::-webkit-scrollbar-thumb { background: #D8CDB8; border-radius: 99px; }

@keyframes sheetIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%);
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ------------------------------------------------------------------ Header */

.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 247, 242, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header__bar {
  max-width: var(--wrap); margin: 0 auto; padding: 10px var(--pad);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}

.logo {
  font-family: var(--serif);
  font-size: clamp(17px, 4.2vw, 21px);
  font-weight: 600; color: var(--deep);
  text-decoration: none; white-space: nowrap; margin-right: auto;
}
.logo__dash { color: var(--brass); }
.logo__tld { color: var(--muted-2); font-weight: 400; }

.btn-fewo {
  background: var(--brass); color: #fff;
  padding: 9px 16px; border-radius: 99px;
  font-size: 13.5px; font-weight: 500; text-decoration: none;
  white-space: nowrap; min-height: 44px; display: flex; align-items: center;
}
.btn-fewo:hover { background: var(--brass-dark); color: #fff; }

.filters {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad) 10px;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin;
}

.chip {
  flex: none;
  border: 1px solid var(--line-strong); border-radius: 99px;
  padding: 0 16px; min-height: 44px;
  font: inherit; font-size: 13.5px; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  display: flex; align-items: center; gap: 7px;
}
.chip__count { font-size: 11.5px; opacity: 0.65; }

/* -------------------------------------------------------------------- Hero */

.hero {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(24px, 5vw, 48px) var(--pad) clamp(20px, 4vw, 36px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
}

.hero__text { display: flex; flex-direction: column; gap: 16px; }

.hero__title {
  margin: 0; font-family: var(--serif);
  font-size: clamp(34px, 7.5vw, 56px);
  font-weight: 600; line-height: 1.06; color: var(--deep);
  text-wrap: pretty;
}

.hero__lead {
  margin: 0; font-size: clamp(16px, 4vw, 18px);
  line-height: 1.55; color: var(--muted); max-width: 44ch;
}

.search { display: flex; gap: 8px; flex-wrap: wrap; }

.search__input {
  flex: 1; min-width: 200px;
  border: 1px solid var(--line-soft); background: #fff; border-radius: 99px;
  padding: 0 20px; min-height: 48px;
  font: inherit; font-size: 16px; color: var(--ink);
}

.search__submit {
  background: var(--deep); color: #fff; border: none; border-radius: 99px;
  padding: 0 26px; min-height: 48px;
  font: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
}
.search__submit:hover { background: var(--teal); }

.hero__figure {
  margin: 0; position: relative;
  height: clamp(220px, 42vw, 420px);
  border-radius: 16px; overflow: hidden; background: var(--sand);
}
.hero__figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 22px 14px 8px;
  background: linear-gradient(to top, rgba(15, 32, 40, 0.6), rgba(15, 32, 40, 0));
  font-size: 11px; color: rgba(245, 239, 228, 0.9);
}

/* ---------------------------------------------------------------- Mixleiste */

.mixbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.mixbar__label { margin: 0; font-size: 13px; color: var(--muted); }

.btn-mix {
  background: none; border: 1px solid var(--deep); color: var(--deep);
  border-radius: 99px; padding: 0 16px; min-height: 40px;
  font: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
}
.btn-mix:hover { background: var(--deep); color: #fff; }

/* -------------------------------------------------------------- Kachelwand */

.grid {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(18px, 3vw, 30px) var(--pad) 0;
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 18px);
  align-items: stretch;
}

.tile {
  border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s;
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(23, 50, 61, 0.10); }

.tile__btn {
  all: unset;
  cursor: pointer; display: flex; height: 100%; width: 100%;
  box-sizing: border-box; font: inherit; color: inherit;
}
.tile__btn:focus-visible { outline: 2px solid var(--teal); outline-offset: -3px; }

.tile__btn--overlay {
  position: relative; flex-direction: column; justify-content: flex-end;
  background: var(--sand);
}

.tile__frame { position: relative; background: var(--sand); overflow: hidden; }
.tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile__img--full { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.tile__scrim {
  position: relative;
  background: linear-gradient(to top, rgba(15, 32, 40, 0.94) 0%, rgba(15, 32, 40, 0.72) 65%, rgba(15, 32, 40, 0) 100%);
  padding: 34px clamp(16px, 2vw, 22px) clamp(14px, 2vw, 18px);
  display: flex; flex-direction: column; gap: 5px;
}

.tile__body { flex: 1; display: flex; flex-direction: column; justify-content: center; }

.tile__kicker {
  font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700;
}
.tile__kicker--onDark { font-size: 11px; letter-spacing: 0.09em; color: var(--mist); }

.tile__title {
  margin: 0; font-family: var(--serif); font-weight: 600;
  line-height: 1.12; text-wrap: pretty;
}
.tile__title--onDark { color: var(--cream); }

.tile__teaser { line-height: 1.55; }
.tile__teaser--onDark { font-size: 14px; line-height: 1.5; color: var(--pale); }

.tile__excerpt { font-size: 14.5px; line-height: 1.68; column-gap: 26px; }

.tile__meta { font-size: 12.5px; color: var(--muted-2); }

.tile__more { font-size: 13px; font-weight: 500; margin-top: 2px; }

.empty {
  max-width: var(--wrap); margin: 24px auto; padding: 0 var(--pad);
  font-size: 15px; color: var(--muted);
}
.empty button {
  background: none; border: none; padding: 0;
  font: inherit; color: var(--teal); text-decoration: underline; cursor: pointer;
}

/* ----------------------------------------------------------- Ferienwohnung */

.fewo {
  max-width: var(--wrap); margin: clamp(36px, 6vw, 60px) auto 0;
  padding: 0 var(--pad); scroll-margin-top: 120px;
}

.fewo__box {
  background: var(--deep); border-radius: 16px; overflow: hidden;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

/* Bildplatz des Gastgebers: bis ein echtes Foto vorliegt, eine ruhige Fläche
   statt eines Fremdbildes. Foto einsetzen: <img> in .fewo__slot legen. */
.fewo__slot {
  position: relative; min-height: 260px;
  background-color: var(--sand);
  background-image: repeating-linear-gradient(45deg, rgba(122, 110, 90, 0.07) 0 12px, transparent 12px 24px);
  display: flex; align-items: center; justify-content: center;
}
.fewo__slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fewo__slotText {
  font-family: ui-monospace, monospace; font-size: 12px; color: #8A8172;
  padding: 0 16px; text-align: center;
}

.fewo__text {
  padding: clamp(24px, 4vw, 42px);
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
}
.fewo__flag {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brass-light); font-weight: 700;
}
.fewo__title {
  margin: 0; font-family: var(--serif);
  font-size: clamp(26px, 5.5vw, 34px); font-weight: 600; line-height: 1.1;
  color: var(--cream); text-wrap: pretty;
}
.fewo__lead {
  margin: 0; font-size: clamp(15px, 3.6vw, 15.5px); line-height: 1.6;
  color: var(--pale); max-width: 52ch;
}
.fewo__facts {
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  font-size: 13.5px; color: var(--mist);
}
.fewo__actions { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 10px; }

.fewo__cta,
.fewo__ghost {
  display: flex; align-items: center; min-height: 48px;
  border-radius: 99px; font-size: 15px; font-weight: 500; text-decoration: none;
}
.fewo__cta { background: var(--brass); color: #fff; padding: 0 24px; }
.fewo__cta:hover { background: var(--brass-light); color: var(--deep); }
.fewo__ghost { border: 1px solid #6E8894; color: var(--cream); padding: 0 22px; }
.fewo__ghost:hover { border-color: var(--cream); color: #fff; }

/* --------------------------------------------------------------- Über uns */

.about { max-width: var(--wrap); margin: clamp(36px, 6vw, 56px) auto 0; padding: 0 var(--pad); }

.about__box {
  background: var(--mint); border: 1px solid var(--mint-line); border-radius: 14px;
  padding: clamp(22px, 4vw, 34px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(18px, 3vw, 34px);
}
.about__col { display: flex; flex-direction: column; gap: 10px; }
.about__col h2 {
  margin: 0; font-family: var(--serif);
  font-size: clamp(22px, 4.5vw, 27px); font-weight: 600; line-height: 1.18;
  color: var(--deep); text-wrap: pretty;
}
.about__col h3 {
  margin: 0; font-family: var(--serif);
  font-size: clamp(20px, 4vw, 23px); font-weight: 600; line-height: 1.2; color: var(--deep);
}
.about__col p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--muted); }

/* ------------------------------------------------------------------ Footer */

.footer {
  margin-top: clamp(44px, 7vw, 72px);
  background: var(--footer); border-top: 1px solid var(--line);
}
.footer__inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(28px, 5vw, 44px) var(--pad) clamp(36px, 6vw, 56px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: clamp(20px, 4vw, 36px);
  font-size: 14px;
}
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col--brand { gap: 10px; }
.footer__brand { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--deep); }
.footer__blurb { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); max-width: 40ch; }
.footer__head {
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 700; color: var(--muted-2);
}
.footer__link {
  all: unset; cursor: pointer; font: inherit; font-size: 14px;
  color: var(--ink); text-align: left; min-height: 34px;
  display: flex; align-items: center;
}
.footer__link:hover { color: var(--teal); }
.footer__link:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.footer a {
  color: var(--ink); text-decoration: none;
  min-height: 34px; display: flex; align-items: center;
}
.footer a:hover { color: var(--teal); }
.footer__note { margin: 6px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted-2); }
.footer__note + .footer__note { margin-top: 0; }

/* ------------------------------------------------------------------- Sheet */

.sheet {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn 0.16s ease-out;
}

.sheet__backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 32, 40, 0.55); backdrop-filter: blur(3px);
  border: none; padding: 0;
}

.sheet__panel {
  position: relative; width: min(760px, 100%); max-height: 92vh; overflow-y: auto;
  background: var(--bg); border-radius: 18px 18px 0 0;
  animation: sheetIn 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 -8px 40px rgba(15, 32, 40, 0.3);
  -webkit-overflow-scrolling: touch;
}

.sheet__bar {
  position: sticky; top: 0; z-index: 3;
  display: flex; justify-content: flex-end; align-items: center; gap: 8px;
  padding: 12px 12px 0;
}

.sheet__share {
  display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px;
  border-radius: 99px; border: 1px solid var(--line-strong);
  background: rgba(250, 247, 242, 0.94); backdrop-filter: blur(6px);
  color: var(--deep); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
}
.sheet__share:hover { background: var(--deep); color: #fff; border-color: var(--deep); }
.sheet__shareIcon { font-size: 16px; line-height: 1; }

.sheet__close {
  width: 44px; height: 44px; border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: rgba(250, 247, 242, 0.94); backdrop-filter: blur(6px);
  color: var(--deep); font: inherit; font-size: 18px; line-height: 1; cursor: pointer;
}
.sheet__close:hover { background: var(--deep); color: #fff; }

.sheet__figure {
  margin: -56px 0 0; position: relative;
  height: clamp(170px, 34vw, 260px);
  background-color: var(--sand); background-size: cover; background-position: center;
  overflow: hidden;
}

.sheet__content {
  padding: clamp(20px, 4vw, 32px);
  display: flex; flex-direction: column; gap: 14px;
}

.sheet__credit { font-size: 11.5px; color: var(--muted-2); text-decoration: none; }
.sheet__credit:hover { color: var(--teal); text-decoration: underline; }

.sheet__kicker {
  font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal); font-weight: 700;
}

.sheet__title {
  margin: 0; font-family: var(--serif);
  font-size: clamp(26px, 6vw, 36px); font-weight: 600; line-height: 1.1;
  color: var(--deep); text-wrap: pretty;
}

.sheet__teaser {
  margin: 0; font-size: clamp(16px, 4vw, 18px); line-height: 1.55; color: var(--muted);
}

.sheet__body { display: flex; flex-direction: column; gap: 12px; }
.sheet__body p { margin: 0; font-size: 15.5px; line-height: 1.72; color: var(--ink); }

.facts {
  list-style: none; margin: 4px 0 0; padding: 14px 18px;
  background: var(--mint); border-radius: 10px;
  display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px;
}
.facts strong { color: var(--deep); }
.facts span { color: var(--muted); }

.hours {
  border: 1px solid var(--line-soft); border-radius: 10px; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.hours__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.hours__head h3 {
  margin: 0; font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--deep);
}
.hours__checked { font-size: 11.5px; letter-spacing: 0.04em; color: var(--muted-2); }
.hours__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 4px;
  font-size: 14.5px; line-height: 1.5; color: var(--ink);
}
.hours__note { margin: 0; font-size: 12px; line-height: 1.55; color: var(--muted-2); }

.ingredients {
  background: var(--recipe); border-radius: 12px; padding: 18px 22px;
  display: flex; flex-direction: column; gap: 8px;
}
.ingredients h3 {
  margin: 0; font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--deep);
}
.ingredients ul {
  margin: 0; padding-left: 20px;
  display: flex; flex-direction: column; gap: 5px;
  font-size: 15px; line-height: 1.5; color: var(--ink);
}

.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions__btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 48px; border-radius: 99px; padding: 0 22px;
  font-size: 14.5px; font-weight: 500; text-decoration: none;
  border: 1px solid transparent;
}
.actions__btn:hover { background: var(--teal) !important; color: #fff !important; border-color: var(--teal) !important; }

.related {
  border-top: 1px solid var(--line); padding-top: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.related__label {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 700;
}
.related__item {
  all: unset; cursor: pointer; font: inherit;
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 10px 0; border-bottom: 1px solid #F0EAE0; min-height: 44px;
}
.related__item:hover { color: var(--teal); }
.related__item:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.related__title { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--deep); }
.related__kicker { font-size: 12px; color: var(--muted-2); white-space: nowrap; }

/* ------------------------------------------- Absender, Claim, Bildplätze */

.hero__claim {
  margin: 0; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brass); font-weight: 700;
}

.hero__absender { margin: 0; font-size: 13.5px; color: var(--muted-2); }
.hero__absender a { color: var(--teal); }

/* Kapitel 21: Wo noch kein eigenes Foto vorliegt, bleibt die Fläche leer
   statt mit einem Fremdbild gefüllt. Der Text nennt das Motiv aus der
   Shotlist. Betrifft seit dem Livegang nur noch die Ferienwohnungsseite —
   die Startseite hat ihr Hero-Motiv (SSI_CONFIG.HERO). */
.hero__slot,
.fewo__slotText {
  font-family: ui-monospace, monospace; font-size: 12px; line-height: 1.5;
  color: #8A8172; padding: 0 18px; text-align: center;
}
.fewo__slot {
  display: flex; align-items: center; justify-content: center;
  background-color: var(--sand);
  background-image: repeating-linear-gradient(45deg, rgba(122, 110, 90, 0.07) 0 12px, transparent 12px 24px);
}
.hero__slot { position: static; background: none; padding: 24px; }

.tile { position: relative; }
.tile__draft {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: var(--brass); color: #fff;
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700;
  padding: 4px 9px; border-radius: 99px;
}

.sheet__nofoto {
  margin: 0; padding: 48px 24px 24px;
  background-color: var(--sand);
  background-image: repeating-linear-gradient(45deg, rgba(122, 110, 90, 0.07) 0 12px, transparent 12px 24px);
  font-family: ui-monospace, monospace; font-size: 12px; line-height: 1.6;
  color: #8A8172; text-align: center;
}

/* -------------------------------------------- Autorenzeile und Prüfdatum */

/* Kapitel 3: Autorenzeile und sichtbares Prüfdatum auf jeder Detailseite. */
.sheet__autor {
  margin: -4px 0 0; font-size: 12.5px; color: var(--muted-2);
  display: flex; flex-wrap: wrap; gap: 6px;
}
.sheet__geprueft { color: var(--muted-2); }

/* ------------------------------------------------- ÖPNV-Block und Flags */

/* Kapitel 6: ÖPNV steht immer vor dem Parkplatz. */
.anreise {
  border: 1px solid var(--mint-line); background: var(--mint);
  border-radius: 10px; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.anreise h3 {
  margin: 0; font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--deep);
}
.anreise__oepnv {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 14.5px; line-height: 1.55; color: var(--ink);
}
.anreise__oepnv li { padding-left: 16px; position: relative; }
.anreise__oepnv li::before {
  content: '→'; position: absolute; left: 0; color: var(--teal);
}
.anreise__parken { margin: 4px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }

.hinweis {
  margin: 0; padding: 12px 16px; border-radius: 10px;
  font-size: 13.5px; line-height: 1.55;
  border-left: 3px solid var(--brass); background: var(--recipe); color: var(--ink);
}
.hinweis--nsg { border-left-color: #4C7A5A; background: #EEF3EE; }
.hinweis--parkdruck { border-left-color: var(--brass); }
.hinweis--ruhe { border-left-color: var(--teal); background: var(--mint); }

/* Nur im Redaktionsmodus sichtbar: offene Punkte des Qualitätsgates. */
.redaktion {
  border: 1px dashed var(--brass); border-radius: 10px; padding: 12px 16px;
  font-size: 13px; line-height: 1.55; color: var(--ink); background: #FDF7EE;
}
.redaktion ul { margin: 6px 0 0; padding-left: 18px; }

.steps h3, .faq h3 {
  margin: 0 0 8px; font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--deep);
}
.steps ol {
  margin: 0; padding-left: 20px;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 15px; line-height: 1.6; color: var(--ink);
}

.faq details {
  border-bottom: 1px solid var(--line); padding: 10px 0;
}
.faq summary {
  cursor: pointer; font-weight: 500; font-size: 15px; color: var(--deep);
  min-height: 32px; display: flex; align-items: center;
}
.faq p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.65; color: var(--muted); }

/* Kapitel 27: Haftungshinweis auf allen Seiten mit externen Fakten. */
.haftung {
  margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--muted-2);
  border-top: 1px solid var(--line); padding-top: 12px;
}

.fewo__hinweis {
  margin: 6px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--mist);
}

/* --------------------------------------------------------- Inhaltsseiten */

.page {
  max-width: 760px; margin: 0 auto;
  padding: clamp(24px, 5vw, 48px) var(--pad) clamp(40px, 7vw, 72px);
}
.page h1 {
  margin: 0 0 12px; font-family: var(--serif);
  font-size: clamp(30px, 6vw, 44px); font-weight: 600; line-height: 1.1;
  color: var(--deep); text-wrap: pretty;
}
.page h2 {
  margin: 32px 0 10px; font-family: var(--serif);
  font-size: clamp(21px, 4vw, 26px); font-weight: 600; line-height: 1.2; color: var(--deep);
}
.page p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.72; color: var(--ink); }
.page__lead { font-size: clamp(16px, 4vw, 18px) !important; color: var(--muted) !important; }
.page__list, .page ul { margin: 0 0 12px; padding-left: 20px; }
.page__list li, .page ul li { font-size: 15.5px; line-height: 1.7; margin-bottom: 8px; color: var(--ink); }

.breadcrumb {
  font-size: 13px; color: var(--muted-2); margin-bottom: 20px;
}
.breadcrumb a { color: var(--teal); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Offene Punkte, die vor dem Launch ausgefüllt werden müssen. */
.todo {
  border: 1px dashed var(--brass); border-radius: 10px;
  padding: 14px 18px; margin: 0 0 24px; background: #FDF7EE;
  font-size: 14px; line-height: 1.6; color: var(--ink);
}
.todo ul { margin: 8px 0 0; padding-left: 18px; }
.todo li { font-size: 14px; margin-bottom: 6px; }
.todo--inline { display: block; }
.todo code {
  font-family: ui-monospace, monospace; font-size: 13px;
  background: #F3EADB; padding: 1px 5px; border-radius: 4px;
}

.platzhalter {
  font-family: ui-monospace, monospace; font-size: 14px !important;
  color: var(--muted) !important; background: var(--mint);
  border-radius: 8px; padding: 12px 16px;
}

/* ------------------------------------ Statische Detail- und Listenseiten */

/* Kategorienavigation auf den generierten Seiten – echte Links, damit der
   Linkgraph unabhängig von JavaScript besteht (Kapitel 26). */
.filters--static { padding-bottom: 10px; }
.filters--static .chip { text-decoration: none; color: var(--ink); background: #fff; }
.filters--static .chip:hover { background: var(--deep); color: #fff; border-color: var(--deep); }

.detail__kicker {
  margin: 0 0 6px; font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--teal); font-weight: 700;
}
.detail__autor {
  margin: 0 0 20px !important; font-size: 12.5px !important; color: var(--muted-2) !important;
}
.detail__body p { margin: 0 0 14px; font-size: 15.5px; line-height: 1.72; color: var(--ink); }

.page .facts, .page .anreise, .page .hinweis,
.page .ingredients, .page .steps, .page .faq, .page .actions {
  margin: 20px 0;
}
.page .anreise h2, .page .ingredients h2, .page .steps h2, .page .faq h2 {
  margin: 0 0 8px; font-size: 19px;
}
.page .haftung { margin-top: 28px; }

.liste { list-style: none; margin: 24px 0 0; padding: 0; }
.liste__eintrag { border-bottom: 1px solid var(--line); }
.liste__eintrag a {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 0; text-decoration: none; color: inherit;
}
.liste__eintrag a:hover { background: #F5F0E6; }
.liste__kicker {
  font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal); font-weight: 700;
}
.liste__titel {
  font-family: var(--serif); font-size: clamp(20px, 3.5vw, 24px);
  font-weight: 600; line-height: 1.2; color: var(--deep);
}
.liste__teaser { font-size: 15px; line-height: 1.55; color: var(--muted); }
.liste__meta { font-size: 12.5px; color: var(--muted-2); }

.page .related { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 16px; }
.page .related__item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid #F0EAE0; text-decoration: none; color: inherit;
}

/* ------------------------------------------------- Rubriken und Avatare */

/* Kleine runde Avatare neben der Autorenzeile. Bewusst klein gehalten —
   sie ordnen die Rubrik zu und treten nicht als Personenfoto auf. */
.autor__avatar {
  width: 32px; height: 32px; border-radius: 50%;
  object-fit: cover; flex: none;
  border: 1px solid var(--line);
}
.sheet__autor, .detail__autor {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}

.rubriken { display: flex; flex-direction: column; gap: 20px; margin: 20px 0 0; }
.rubrik { display: flex; gap: 16px; align-items: flex-start; }
.rubrik__avatar {
  width: 64px; height: 64px; border-radius: 50%;
  object-fit: cover; flex: none; border: 1px solid var(--line);
}
.rubrik__text { display: flex; flex-direction: column; gap: 4px; }
.rubrik__name {
  margin: 0 !important; font-family: var(--serif);
  font-size: 20px !important; font-weight: 600; color: var(--deep);
}
.rubrik__rolle {
  margin: 0 !important; font-size: 12px !important;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--teal) !important; font-weight: 700;
}
.rubrik__kurz { margin: 0 !important; font-size: 14.5px !important; line-height: 1.6; color: var(--muted) !important; }

@media (max-width: 480px) {
  .rubrik { gap: 12px; }
  .rubrik__avatar { width: 48px; height: 48px; }
}

/* ------------------------------------------------------ Saison-Auswahl */

.mixbar__tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.saison {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted);
}
.saison__label { white-space: nowrap; }
.saison__select {
  font: inherit; font-size: 13px; color: var(--deep);
  background: #fff; border: 1px solid var(--line-strong); border-radius: 99px;
  padding: 0 12px; min-height: 40px; cursor: pointer;
  max-width: 62vw;
}
.saison__select:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ------------------------------------------------------------- Mobile */

/* Der Mobilanteil liegt laut Kapitel 24 über 70 % — die Seite wird deshalb
   vom kleinen Bildschirm aus gedacht, nicht nach unten verkleinert. */
@media (max-width: 780px) {
  :root { --pad: 14px; }

  .header__bar { padding: 8px var(--pad); gap: 10px; }

  /* Filterchips als Snap-Leiste: greifbar, ohne dass ein Chip halb abgeschnitten stehen bleibt. */
  .filters {
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    /* Weiche Kante rechts als Hinweis, dass es weitergeht */
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 24px), transparent 100%);
  }
  .chip { scroll-snap-align: start; }

  .hero { padding-top: 20px; gap: 18px; }
  .hero__figure { height: clamp(180px, 46vw, 260px); order: -1; }
  .hero__title { font-size: clamp(30px, 8.5vw, 40px); }
  .search { gap: 8px; }
  .search__input { min-width: 0; flex: 1 1 100%; }
  .search__submit { flex: 1 1 100%; }

  .mixbar__inner { gap: 10px; }
  .mixbar__tools { width: 100%; justify-content: space-between; }

  /* Kacheln: mehr Luft zwischen Bild und Text, damit auf 1–2 Spalten
     nichts gequetscht wirkt. */
  .tile__body { justify-content: flex-start; }
  .tile__excerpt { column-count: 1 !important; }

  /* Detailansicht als echtes Bottom-Sheet über die volle Höhe. */
  .sheet__panel { max-height: 94vh; border-radius: 16px 16px 0 0; }
  .sheet__content { padding: 18px var(--pad) 32px; }
  .sheet__figure { height: clamp(150px, 40vw, 200px); }
  .facts { gap: 6px 16px; }
  .actions { flex-direction: column; }
  .actions__btn { width: 100%; }

  .footer__inner { gap: 22px; }
  .page { padding-top: 20px; }
}

/* Sehr schmale Geräte: nichts darf horizontal schieben. */
@media (max-width: 400px) {
  .fewo__actions { flex-direction: column; align-items: stretch; }
  .fewo__cta, .fewo__ghost { justify-content: center; }
  .saison { width: 100%; justify-content: space-between; }
  .saison__select { max-width: none; flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, .sheet, .sheet__panel { animation: none !important; transition: none !important; }
  .tile:hover { transform: none; }
}

/* Hauptbild auf den generierten Detailseiten. Ohne Bild bringt
   max-image-preview:large nichts und Discover fällt aus (Kapitel 21, 25). */
.detail__bild { margin: 0 0 24px; }
.detail__bild img {
  width: 100%; height: auto; display: block;
  border-radius: 14px; background: var(--sand);
}
.detail__bild figcaption {
  margin-top: 8px; font-size: 12.5px; line-height: 1.5; color: var(--muted-2);
}

/* Bildnachweis bei Fremdbildern. CC BY und CC BY-SA verlangen Urheber,
   Lizenzbezeichnung, Lizenzlink und Hinweis auf Änderungen — sichtbar
   am Bild, nicht nur auf einer Sammelseite. */
.bildnachweis {
  display: block; margin-top: 4px;
  font-size: 11.5px; line-height: 1.5; color: var(--muted-2);
}
.bildnachweis a { color: var(--muted-2); text-decoration: underline; }
.bildnachweis a:hover { color: var(--teal); }

.nachweise { list-style: none; margin: 24px 0 0; padding: 0; }
.nachweis {
  border-bottom: 1px solid var(--line); padding: 16px 0;
  display: flex; flex-direction: column; gap: 3px;
}
.nachweis__beitrag {
  font-family: var(--serif); font-size: 19px; font-weight: 600;
  color: var(--deep); text-decoration: none;
}
.nachweis__beitrag:hover { text-decoration: underline; }
.nachweis__zeile { font-size: 13.5px; line-height: 1.55; color: var(--muted); }

/* Benannte Betriebe und Sehenswürdigkeiten (o.listen in content.js).
   Kapitel 17: Name, Ort und Charakterisierung — keine Zeiten, keine Preise.
   Der offizielle Link am Namen ist die verbindliche Quelle. */
.liste dl {
  margin: 0; display: flex; flex-direction: column; gap: 14px;
}
.liste dt {
  font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--deep);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px;
}
.liste dt a { color: inherit; text-decoration-color: var(--muted-2); text-underline-offset: 3px; }
.liste__ort {
  font-family: inherit; font-size: 13px; font-weight: 400; color: var(--muted);
}
.liste dd {
  margin: 3px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink);
}
.page .liste { margin: 20px 0; }
.page .liste h2 { margin: 0 0 10px; font-size: 19px; }
