/* Schriften: Barlow und Barlow Condensed (SIL Open Font License, siehe fonts/OFL-Barlow.txt) */
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/barlow-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/barlow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #f6f4ee;
  --surface: #ffffff;
  --ink: #1f2933;
  --muted: #5b6770;
  --line: #ded9cc;
  --brand: #15803d;
  --brand-dark: #166534;
  --warn-bg: #fef3c7;
  --warn-ink: #78350f;
  --fail: #b91c1c;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.5;
}
a { color: var(--brand-dark); }
h1 { font-size: 1.6rem; line-height: 1.2; margin: 0 0 .6rem; }
h2 { font-size: 1.15rem; margin: 1.6rem 0 .5rem; }
main { max-width: 960px; margin: 0 auto; padding: 20px 16px 48px; }

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; background: var(--brand); color: #fff;
}
.topbar a { color: #fff; text-decoration: none; }
.brand { font-weight: 700; font-size: 1.2rem; letter-spacing: .02em; }
.topbar nav {
  display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center;
  gap: 4px 16px; font-size: .95rem; min-width: 0;
}
.topbar form { margin: 0; }
.linklike {
  background: none; border: 0; padding: 0; color: #fff; font: inherit;
  cursor: pointer; text-decoration: underline;
}
.testbanner {
  margin: 0; padding: 6px 16px; background: var(--warn-bg); color: var(--warn-ink);
  font-size: .85rem; text-align: center;
}

.flash {
  background: #dcfce7; border: 1px solid #86efac; color: #14532d;
  padding: 10px 14px; border-radius: 10px; margin: 0 0 16px;
}
.error {
  background: #fee2e2; border: 1px solid #fca5a5; color: #7f1d1d;
  padding: 10px 14px; border-radius: 10px; margin: 0 0 12px;
}

.button {
  display: inline-block; background: var(--brand); color: #fff; border: 0;
  border-radius: 999px; padding: 12px 22px; font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer; margin: 4px 6px 4px 0;
}
.button:hover { background: var(--brand-dark); }
.button.secondary {
  background: transparent; color: var(--brand-dark);
  box-shadow: inset 0 0 0 2px var(--brand);
}
.button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid #f59e0b; outline-offset: 2px;
}

.hero {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px 20px;
}
.hero p { max-width: 40em; color: var(--muted); }
.steps { padding-left: 1.3em; }
.steps li { margin-bottom: .5rem; }
.testbox {
  margin-top: 24px; padding: 16px 20px; border-radius: 12px;
  background: var(--warn-bg); color: var(--warn-ink);
}
.testbox h2 { margin-top: 0; }
.testbox a { color: var(--warn-ink); }

.formbox {
  max-width: 440px; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px; padding: 24px 20px;
}
label { display: block; font-weight: 600; margin: 14px 0 4px; }
input[type="text"], input[type="email"], input[type="password"], input:not([type]) {
  width: 100%; padding: 11px 12px; font: inherit;
  border: 1px solid #9aa5ad; border-radius: 10px; background: #fff;
}
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
label.check input { width: 20px; height: 20px; margin-top: 3px; }
.formbox .button { margin-top: 18px; }

.stats { display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0 24px; }
.stats div {
  flex: 1 1 110px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 14px;
}
.stats dt { font-size: .85rem; color: var(--muted); }
.stats dd { margin: 0; font-size: 1.6rem; font-weight: 700; }

.cardgrid {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.cardgrid a { display: block; text-decoration: none; border-radius: 14px; }
.status { margin: 6px 0 0; font-size: .9rem; color: var(--muted); text-align: center; }
.status.visited { color: var(--brand-dark); font-weight: 600; }
.empty {
  background: var(--surface); border: 1px dashed #9aa5ad; border-radius: 12px;
  padding: 20px;
}

.cardpage { display: grid; gap: 24px; grid-template-columns: 1fr; }
.cardholder { width: 100%; max-width: 300px; margin: 0 auto; }
@media (min-width: 720px) {
  .cardpage { grid-template-columns: 300px 1fr; align-items: start; }
  .cardholder { margin: 0; }
}
.visitbox {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; margin: 16px 0;
}
.visitbox.done { background: #dcfce7; border-color: #86efac; }
.visitbox p { margin: 0 0 10px; }
.visitbox p:last-child { margin-bottom: 0; }
.result { min-height: 1.5em; font-weight: 600; }
.result.ok { color: var(--brand-dark); }
.result.fail { color: var(--fail); }
.map { height: 300px; border-radius: 12px; border: 1px solid var(--line); }
.coords { font-size: .9rem; color: var(--muted); }

.status.mastered { color: #92400e; font-weight: 700; }
.stats dt a { color: inherit; }

.quizbox {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; margin: 16px 0;
}
.quizbox.done { background: #fef3c7; border-color: #fcd34d; }
.quizbox h2 { margin-top: 0; }
.quizbox fieldset { border: 0; margin: 0 0 12px; padding: 0; }
.question { font-weight: 600; padding: 0; margin: 0 0 10px; }
label.answer {
  display: flex; align-items: center; gap: 10px; font-weight: 400;
  margin: 8px 0; padding: 10px 12px; border: 1px solid #9aa5ad;
  border-radius: 10px; background: #fff; cursor: pointer;
}
label.answer input { width: 20px; height: 20px; flex: none; }
label.answer:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.hint { font-size: .9rem; color: var(--muted); margin: 8px 0 0; }

.badgegrid {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.badge {
  display: flex; gap: 12px; align-items: flex-start; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
.badge p { margin: 2px 0 6px; font-size: .92rem; color: var(--muted); }
.badge.earned { background: #fef3c7; border-color: #fcd34d; }
.medal {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 700; background: #e5e7eb; color: #6b7280;
}
.badge.earned .medal { background: #f59e0b; color: #fff; }
.badge progress { width: 100%; height: 8px; accent-color: var(--brand); }
.progresslabel { font-size: .85rem; color: var(--muted); }

.history { padding-left: 1.3em; font-size: .95rem; }
.history li { margin-bottom: .3rem; }
.transferbox {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; margin: 16px 0;
}
.transferbox h2 { margin-top: 0; }

/* Redaktion */
.meta { font-size: .88rem; color: var(--muted); font-weight: 400; }
.placelist { list-style: none; margin: 0; padding: 0; }
.placelist > li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 10px;
}
.placehead { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.placelist p { margin: 4px 0 0; }
.windowlist { list-style: none; margin: 8px 0 0; padding: 0; }
.windowlist li { display: flex; gap: 12px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.windowlist img { width: 84px; height: 56px; object-fit: cover; border-radius: 6px; background: #e5e7eb; }
.windowlist .meta { display: block; }

.editor section {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; margin-bottom: 16px;
}
.editor h2 { margin-top: 0; }
.editor h3 { font-size: 1rem; margin: 1.4rem 0 .2rem; }
.editor select, .editor textarea, .editor input[type="number"], .editor input[type="url"] {
  width: 100%; padding: 11px 12px; font: inherit;
  border: 1px solid #9aa5ad; border-radius: 10px; background: #fff;
}
.editor input[type="file"] { display: block; margin-top: 4px; font: inherit; }
.editor input[type="range"] { width: 100%; }
.editor .row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .editor .row { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
fieldset.choices { border: 0; margin: 14px 0 0; padding: 0; }
fieldset.choices legend { font-weight: 600; padding: 0; margin-bottom: 4px; }
label.choice { display: flex; gap: 8px; align-items: center; font-weight: 400; margin: 6px 0; }
label.choice input { width: 18px; height: 18px; flex: none; }
fieldset.choices.inline { display: flex; flex-wrap: wrap; gap: 4px 18px; }
fieldset.choices.inline legend { width: 100%; }
.preview { display: block; max-width: 100%; max-height: 320px; border-radius: 8px; margin: 6px 0; }
.map.tall { height: 420px; }
.dangerzone { margin-top: 8px; }
.button.danger { background: var(--fail); }
.button.danger:hover { background: #7f1d1d; }

/* Zeitfenster */
.lead { font-size: 1.05rem; color: var(--muted); margin-top: 0; }
.previewnote {
  background: var(--warn-bg); color: var(--warn-ink); padding: 8px 12px;
  border-radius: 10px; font-size: .9rem;
}
.viewer { background: #111827; border-radius: 12px; overflow: hidden; }
/* Die Bühne hat das Seitenverhältnis des Fotos (mit Vergleichsbild 16:9)
   und wird nie höher als 78 % des Bildschirms. */
.viewer .stage {
  --ratio: 1.3333; --maxh: 78vh;
  position: relative; width: min(100%, calc(var(--maxh) * var(--ratio)));
  aspect-ratio: var(--ratio); margin: 0 auto; overflow: hidden;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.viewer .layer {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  object-fit: cover; -webkit-user-drag: none;
}
.viewer .stage:not(.compare) .layer.old { object-fit: contain; }
.viewer .stage.compare { cursor: ew-resize; }
.viewer[data-mode="onsite"] .stage { cursor: default; }
.viewer .divider {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px;
  background: #fff; box-shadow: 0 0 6px rgba(0,0,0,.6); pointer-events: none;
}
.viewer .divider .handle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #111827;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; letter-spacing: -.1em; line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.45);
}
.viewer .tag {
  position: absolute; top: 10px; padding: 3px 9px; border-radius: 999px;
  background: rgba(17,24,39,.72); color: #fff; font-size: .8rem; line-height: 1.4;
  pointer-events: none;
}
.viewer .tag-old { left: 10px; }
.viewer .tag-today { right: 10px; }
.viewer[data-mode="onsite"] .divider, .viewer[data-mode="onsite"] .tag { display: none; }
.viewerbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 12px;
  color: #e5e7eb; font-size: .9rem;
}
.viewerbar .barpart { display: flex; align-items: center; gap: 10px; flex: 1 1 220px; }
.viewerbar .barbuttons { display: flex; gap: 8px; margin-left: auto; }
.viewerbar label { margin: 0; font-weight: 400; }
.viewerbar input[type="range"] { flex: 1 1 auto; min-width: 80px; accent-color: #f59e0b; }
.viewerbar .button { margin: 0; }
.button.small { padding: 6px 14px; font-size: .9rem; }
.viewer .button.secondary { color: #fff; box-shadow: inset 0 0 0 2px #9ca3af; }
.viewer:fullscreen { display: flex; flex-direction: column; justify-content: center; }
.viewer:fullscreen .stage { --maxh: calc(100vh - 64px); }
.onsitenote {
  background: #ecfdf5; color: #065f46; padding: 8px 12px;
  border-radius: 10px; font-size: .9rem; margin: 10px 0 0;
}
.rotatehint {
  background: var(--warn-bg); color: var(--warn-ink); padding: 8px 12px;
  border-radius: 10px; font-size: .9rem; margin: 10px 0 0;
}
.credit { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.bodytext p { margin: 0 0 .8rem; max-width: 42em; }
.clip { display: block; width: 100%; max-height: 70vh; border-radius: 12px; background: #000; }
audio { width: 100%; }
.audioitem { margin: 0 0 14px; }
.audioitem p { margin: 0 0 4px; }

/* Bildergalerie */
.gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px;
}
.gallerythumb {
  padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: zoom-in;
  aspect-ratio: 1; background: #e5e7eb;
}
.gallerythumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lightbox { position: fixed; inset: 0; z-index: 1000; background: #000; }
.lbtrack {
  display: flex; height: 100%; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; overscroll-behavior: contain; scrollbar-width: none;
}
.lbtrack::-webkit-scrollbar { display: none; }
.lbslide {
  position: relative; flex: 0 0 100%; height: 100%; margin: 0;
  scroll-snap-align: center; scroll-snap-stop: always;
  display: flex; align-items: center; justify-content: center;
}
/* Bild und Beschreibung bilden einen Rahmen; die Beschreibung liegt auf dem Bild. */
.lbframe { position: relative; margin: 0; max-width: 100%; max-height: 100%; }
.lbframe img {
  display: block; max-width: 100vw; max-height: 100vh; max-height: 100dvh;
  width: auto; height: auto; object-fit: contain;
}
.lbframe figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 36px 16px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,0));
  color: #fff; font-size: 1rem; line-height: 1.4;
}
.lbauthor { display: block; font-size: .8rem; color: #d1d5db; margin-top: 2px; }
.lbcount {
  position: absolute; top: calc(14px + env(safe-area-inset-top)); left: 16px;
  color: #fff; font-size: .9rem; background: rgba(0,0,0,.5); padding: 2px 10px; border-radius: 999px;
}
.lbclose, .lbnav {
  position: absolute; border: 0; background: rgba(0,0,0,.5); color: #fff; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.8rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.lbclose { top: calc(8px + env(safe-area-inset-top)); right: 10px; }
.lbnav { top: 50%; transform: translateY(-50%); }
.lbprev { left: 8px; }
.lbnext { right: 8px; }
@media (hover: none) { .lbnav { display: none; } }
body.noscroll { overflow: hidden; }

/* YouTube mit Vorschau; lädt erst nach dem Tippen */
.ytvideo { margin: 0 0 16px; }
.ytframe {
  position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #111827;
}
.ytframe iframe, .ytplay { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ytplay { padding: 0; background: #111827; cursor: pointer; }
.ytplay img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ytbutton {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 68px; height: 48px; border-radius: 12px; background: #dc2626; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.ytinfo { margin: 6px 0 0; font-size: .9rem; }

/* Redaktion: Medienlisten */
.mediaitem {
  display: flex; gap: 12px; align-items: flex-start; padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.mediaitem .thumb { width: 120px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; flex: none; }
.mediaitem .thumbempty {
  display: flex; align-items: center; justify-content: center; background: #e5e7eb;
  color: var(--muted); font-size: .8rem;
}
.mediafields { flex: 1 1 auto; min-width: 0; }
.mediafields .narrow { flex: 0 0 110px; }
.newvideo { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 12px; margin: 10px 0; }
@media (max-width: 560px) {
  .mediaitem { flex-direction: column; }
  .mediaitem .thumb { width: 100%; }
}

.windowbox {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; margin: 16px 0;
}
.windowbox h2 { margin-top: 0; }
.windowpicks { list-style: none; margin: 0; padding: 0; }
.windowpicks a {
  display: flex; gap: 12px; align-items: center; padding: 8px 0;
  border-top: 1px solid var(--line); text-decoration: none; color: inherit;
}
.windowpicks img { width: 96px; height: 64px; object-fit: cover; border-radius: 8px; background: #e5e7eb; flex: none; }
.windowpicks .meta { display: block; }
.newtag {
  display: inline-block; background: #f59e0b; color: #fff; font-size: .75rem;
  font-weight: 700; padding: 1px 8px; border-radius: 999px; margin-top: 2px;
}

.placeactions { display: flex; gap: 14px; white-space: nowrap; }
.setno {
  display: inline-block; min-width: 2em; text-align: center; margin-right: 6px;
  background: #e5e7eb; border-radius: 999px; font-size: .85rem; font-weight: 700;
}

.answerrow { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.answerrow input[type="radio"] { width: 20px; height: 20px; flex: none; }
.answerrow input:not([type="radio"]) { flex: 1 1 auto; }
.noquiz { color: #b45309; }

/* Geführte Tour */
.tourbox {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; margin: 16px 0;
}
.tourbox h2 { margin: 0 0 4px; }
.bigdistance { font-size: 1.6rem; font-weight: 700; margin: 4px 0 10px; }
.stoplist { padding-left: 1.4em; }
.stoplist li { margin-bottom: .35rem; }
.stoplist .currentstop { font-weight: 700; }
.stoplist .donestop a { color: var(--muted); text-decoration: line-through; }

.button:disabled, .button[disabled] {
  opacity: .45; cursor: not-allowed; background: #6b7280;
}

.medalimg { flex: none; width: 56px; height: 56px; object-fit: contain; }
.badge:not(.earned) .medalimg { filter: grayscale(1); opacity: .4; }

/* Überschriften, Marke und große Zahlen in Barlow Condensed */
h1, h2, h3, .brand, .stats dd, .bigdistance, .setno, .gc-name {
  font-family: "Barlow Condensed", "Barlow", system-ui, sans-serif;
}
h1 { font-weight: 700; font-size: 1.9rem; letter-spacing: .01em; }
h2 { font-weight: 600; font-size: 1.35rem; }
.brand { font-size: 1.45rem; letter-spacing: .03em; }
.stats dd, .bigdistance { font-size: 1.9rem; }

.testhelp {
  margin-top: 28px; padding: 14px 16px; border-radius: 12px;
  background: var(--warn-bg); color: var(--warn-ink);
}
.testhelp h2 { margin-top: 0; }
.testhelp form { margin: 10px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.testhelp .meta { color: var(--warn-ink); }
/* Peiler: Live-Entfernung und Richtung zum Check-in-Punkt */
.checkinhint { font-weight: 600; }
.peiler {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; margin: 10px 0;
}
.peiler.near { background: #dcfce7; border-color: #86efac; }
.peil-dial {
  flex: none; width: 64px; height: 64px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--line);
  display: grid; place-items: center; position: relative;
}
.peil-dial::before {
  content: "N"; position: absolute; top: 1px; left: 50%; transform: translateX(-50%);
  font-size: .6rem; font-weight: 700; color: var(--muted);
}
.peiler.compass .peil-dial::before { content: none; }
.peil-arrow { width: 40px; height: 40px; transition: transform .4s ease-out; color: var(--brand); }
.peiler.near .peil-arrow { visibility: hidden; }
.peil-text { min-width: 0; }
.peil-distance { font-size: 1.5rem; font-weight: 700; line-height: 1.1; margin: 0; }
.peil-direction { font-weight: 600; margin: 2px 0 0; }
.peil-note { color: var(--muted); font-size: .85rem; margin: 4px 0 0; }
.peiler .peil-compass { margin-top: 6px; padding: 4px 10px; font-size: .85rem; }

/* ---- Geschichte, Infos und Medien ---- */
.infobutton {
  display: flex; align-items: center; gap: 14px; margin: 16px 0;
  padding: 14px 16px; border-radius: 14px; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, #7c2d12, #b45309);
  box-shadow: 0 6px 18px rgba(124,45,18,.28);
}
.infobutton:hover, .infobutton:focus-visible { filter: brightness(1.08); }
.infobutton-icon { font-size: 2rem; line-height: 1; flex: none; }
.infobutton-text { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; }
.infobutton-text strong { font-size: 1.15rem; }
.infobutton-chips { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.infobutton-chips span {
  background: rgba(255,255,255,.18); border-radius: 999px; padding: 1px 9px; font-size: .82rem;
}
.infobutton-note { font-size: .85rem; color: #fde68a; }
.infobutton-arrow { font-size: 2rem; line-height: 1; flex: none; }

.infohead { margin-bottom: 8px; }
.infohead h1 { margin: 0; }
.eyebrow {
  margin: 0; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem;
  color: #b45309; font-weight: 700;
}
.zfsection {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px 6px; margin: 16px 0 24px;
}
.zfsection > h2 { margin-top: 0; }
.zfchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.zfchips a {
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px;
  text-decoration: none; font-size: .9rem; color: var(--ink); background: var(--bg);
}
.zfblock { margin: 0 0 22px; }
.zfblock + .zfblock, .zflocked + .zfblock, .zfblock + .zflocked { border-top: 1px solid var(--line); padding-top: 16px; }
.zftitle { margin: 0 0 4px; }
.zflocked { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; }
.zflocked h3 { margin: 0 0 4px; }
.zflocked p { margin: 0 0 6px; }
.zflock { font-size: 1.8rem; line-height: 1; }
.summarybox {
  border-left: 4px solid #b45309; background: #fffbeb; border-radius: 0 12px 12px 0;
  padding: 10px 16px; margin: 0 0 20px;
}
.summarybox h2 { margin: 0 0 4px; font-size: 1.1rem; }
.summarybox p { margin: 0; font-size: 1.05rem; line-height: 1.5; }
.richtext h2 { margin: 1.4rem 0 .5rem; }
.richtext h3 { margin: 1.1rem 0 .4rem; }
.richtext a { color: var(--brand-dark); }
.richtext a[target="_blank"]::after { content: " ↗"; font-size: .85em; }
.mediablock { margin: 0 0 18px; }
.getthere { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 8px; }
.nearby { list-style: none; padding: 0; margin: 0; }
.nearby li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.nearby .meta { display: block; font-size: .85rem; }

/* Führung zum Standpunkt und Ausrichten */
.zfguide {
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; margin: 14px 0;
}
.zfguide h3 { margin: 0 0 6px; }
.zfguidebuttons { display: flex; flex-wrap: wrap; gap: 8px; }
.zfguidebuttons .button { margin: 0; }
.zfalign {
  display: flex; gap: 14px; align-items: center; margin: 10px 0;
  padding: 12px; border-radius: 12px; background: #eff6ff; border: 1px solid #bfdbfe;
}
.zfalign.aligned { background: #dcfce7; border-color: #86efac; }
.aligndial {
  position: relative; flex: none; width: 76px; height: 76px; border-radius: 50%;
  background: #fff; border: 2px solid #93c5fd; display: flex; align-items: center; justify-content: center;
}
.zfalign.aligned .aligndial { border-color: #22c55e; }
.alignmark {
  position: absolute; top: 3px; left: 50%; width: 2px; height: 10px; margin-left: -1px; background: #1d4ed8;
}
.zfalign:not(.compass) .alignmark::after {
  content: "N"; position: absolute; top: 9px; left: -4px; font-size: .7rem; font-weight: 700; color: #1d4ed8;
}
.alignarrow { width: 46px; height: 46px; color: #1d4ed8; transition: transform .35s ease-out; }
.zfalign.aligned .alignarrow { color: #16a34a; }
.aligntext { font-weight: 700; font-size: 1.1rem; margin: 0 0 2px; }
.zfalign .button { margin: 6px 6px 0 0; }
.zfguide .map { margin-top: 10px; }

/* Texteditor der Redaktion */
.rte { margin-bottom: 12px; }
.rtebar {
  display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border: 1px solid #9ca3af;
  border-bottom: 0; border-radius: 10px 10px 0 0; background: #f3f4f6;
}
.rtebar button {
  border: 1px solid #d1d5db; background: #fff; border-radius: 6px; padding: 4px 10px;
  font: inherit; font-size: .9rem; cursor: pointer; min-width: 36px;
}
.rtebar button:hover { background: #e5e7eb; }
.rtesep { width: 1px; background: #d1d5db; margin: 2px 4px; }
.rtearea {
  min-height: 180px; padding: 10px 12px; border: 1px solid #9ca3af; border-radius: 0 0 10px 10px;
  background: #fff; line-height: 1.5; overflow-wrap: anywhere;
}
.rtearea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.rtearea h2 { font-size: 1.35rem; margin: .6rem 0 .3rem; }
.rtearea h3 { font-size: 1.1rem; margin: .5rem 0 .3rem; }
.rtearea p { margin: 0 0 .6rem; }
.rtearea a { color: var(--brand-dark); }
