/* ==========================================================================
   sapstern.com — Layout
   Ein Stylesheet, keine Frameworks, keine externen Requests.

   Schriften bewusst aus dem System: Google Fonts würde bei jedem Aufruf die
   IP des Besuchers an Google übertragen (LG München I, 3 O 17493/20) — das
   wäre in der Datenschutzerklärung anzugeben. Die Rollen Display / Body /
   Mono bleiben erhalten, nur eben lokal aufgelöst.
   ========================================================================== */

/* --- Tokens: hell --------------------------------------------------------- */
:root {
  --ground:      #F5F7F5;
  --surface:     #FFFFFF;
  --surface-2:   #EBEFEC;
  --ink:         #141C18;
  --ink-muted:   #4F5F57;
  --ink-faint:   #71837A;
  --rule:        #D6DED9;
  --rule-strong: #B9C5BE;
  --accent:      #12694B;
  --accent-ink:  #0C4E38;
  --accent-wash: #E2EFE8;
  --btn-ink:     #FFFFFF;

  --f-display: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --f-body:    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-mono:    ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --measure: 66ch;
  --s1: .35rem; --s2: .7rem;  --s3: 1.1rem; --s4: 1.7rem;
  --s5: 2.6rem; --s6: 4rem;
  --page: 62rem;
}

/* --- Tokens: dunkel ------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root {
    --ground:      #0E1412;
    --surface:     #151D19;
    --surface-2:   #1D2723;
    --ink:         #E4EBE6;
    --ink-muted:   #A8B9AF;
    --ink-faint:   #82948A;
    --rule:        #28332E;
    --rule-strong: #3A4842;
    --accent:      #4CBE8C;
    --accent-ink:  #7FD5AC;
    --accent-wash: #14271F;
    --btn-ink:     #08130E;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }

a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-ink); }

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

img { max-width: 100%; height: auto; display: block; }

code, kbd, samp { font-family: var(--f-mono); font-size: .9em; }

/* Der Stern aus sap* — das einzige wiederkehrende Zeichen im Layout. */
.ast { font-family: var(--f-mono); color: var(--accent); font-weight: 600; }

.skip-link {
  position: absolute; left: -9999px;
  background: var(--accent); color: var(--btn-ink);
  font-family: var(--f-mono); font-size: .8rem;
  padding: .5rem .8rem; z-index: 10;
}
.skip-link:focus { left: .5rem; top: .5rem; }

/* --- Kopf ----------------------------------------------------------------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--s4);
}

.header-bar {
  padding: var(--s3) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}

.brand {
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand .ast { font-size: 1.1em; }

.nav-toggle {
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .05em;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  padding: .4rem .7rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.nav-toggle .bars { display: inline-flex; flex-direction: column; gap: 3px; }
.nav-toggle .bars span { display: block; width: 13px; height: 1.5px; background: currentColor; }

.main-nav { padding-bottom: var(--s3); }
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.main-nav a {
  display: block;
  text-decoration: none;
  color: var(--ink-muted);
  font-size: .95rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--rule);
}
.main-nav li:last-child a { border-bottom: 0; }
.main-nav a:hover { color: var(--accent); }
.main-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.main-nav a[aria-current="page"]::before {
  content: "*";
  font-family: var(--f-mono);
  color: var(--accent);
  margin-right: .4rem;
}

/* Ohne JavaScript bleibt die Navigation sichtbar statt unerreichbar:
   versteckt wird sie erst, wenn nav.js die Klasse gesetzt hat. */
.js .main-nav[hidden] { display: none; }
.main-nav[hidden] { display: block; }

/* --- Inhalt --------------------------------------------------------------- */
.page {
  max-width: var(--page);
  margin: 0 auto;
  padding: var(--s5) var(--s4) var(--s6);
}

.prose { max-width: var(--measure); }

.prose > * + * { margin-top: var(--s3); }

.prose h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.6rem);
  letter-spacing: -.015em;
  max-width: 22ch;
}
.prose h1 + p { margin-top: var(--s4); }
.prose h2 {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  letter-spacing: -.01em;
  margin-top: var(--s5);
}
.prose h3 { font-size: 1.12rem; margin-top: var(--s4); }

.prose p { color: var(--ink-muted); }
.prose strong { color: var(--ink); }

.prose ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s1); }
.prose ul li {
  color: var(--ink-muted);
  padding-left: 1.25rem;
  position: relative;
}
.prose ul li::before {
  content: "*";
  position: absolute;
  left: 0;
  top: .15em;
  font-family: var(--f-mono);
  color: var(--accent);
}

.lead { font-size: 1.12rem; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: .75rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Reisebilder: Bild + Bildunterschrift statt <br><img><br>Text */
.prose figure { margin: var(--s5) 0; max-width: none; }
.prose figure img {
  border-radius: 6px;
  border: 1px solid var(--rule);
  width: 100%;
}
.prose figcaption {
  font-size: .9rem;
  color: var(--ink-faint);
  margin-top: var(--s2);
  font-style: italic;
}

/* Breiter als die Textspalte: Bilder, Karten, iframes */
.wide { max-width: none; }
.prose iframe { width: 100%; border: 1px solid var(--rule); border-radius: 6px; }

/* Kontaktdaten in Impressum und Datenschutzerklaerung.
   Schmale Displays: Label und Wert gehoeren eng zusammen, die Luft kommt
   zwischen die Paare - nicht gleichmaessig zwischen alles.
   Ab 40rem zweispaltig, an der Grundlinie ausgerichtet. */
.prose dl {
  margin: 0;
  padding: var(--s4);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
}
.prose dt {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.prose dd {
  margin: .2rem 0 0;
  color: var(--ink);
}
.prose dd + dt { margin-top: var(--s3); }

@media (min-width: 40rem) {
  .prose dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: var(--s3) var(--s4);
    align-items: baseline;
  }
  .prose dd,
  .prose dd + dt { margin: 0; }
}

.linklist { display: grid; gap: var(--s2); margin: 0; padding: 0; list-style: none; }
.linklist li { padding-left: 0; }
.linklist li::before { content: none; }

.btn {
  display: inline-block;
  font-size: .95rem;
  text-decoration: none;
  padding: .55rem 1rem;
  border-radius: 5px;
  background: var(--accent);
  color: var(--btn-ink);
  border: 1px solid var(--accent);
}
.btn:hover { color: var(--btn-ink); background: var(--accent-ink); border-color: var(--accent-ink); }

.note {
  border-left: 3px solid var(--accent);
  background: var(--accent-wash);
  padding: var(--s3) var(--s4);
  border-radius: 0 6px 6px 0;
}
.note p { color: var(--ink-muted); }

/* --- Fuß ------------------------------------------------------------------ */
.site-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--rule);
  margin-top: var(--s6);
}
.footer-inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: var(--s5) var(--s4) var(--s4);
  display: grid;
  gap: var(--s4);
}
.footer-col h2 {
  font-family: var(--f-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: var(--s2);
}
.footer-col p, .footer-col li { font-size: .92rem; color: var(--ink-muted); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s1); }
.footer-col img { display: inline-block; }

.footer-base {
  max-width: var(--page);
  margin: 0 auto;
  padding: var(--s3) var(--s4) var(--s5);
  border-top: 1px solid var(--rule);
  font-family: var(--f-mono);
  font-size: .74rem;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s2);
}

/* --- Breakpoints ---------------------------------------------------------- */
@media (min-width: 46rem) {
  .nav-toggle { display: none; }
  /* Ab hier ist die Navigation immer offen, egal was nav.js gesetzt hat. */
  .main-nav,
  .main-nav[hidden],
  .js .main-nav[hidden] { display: block; }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s4);
  }
  .header-bar { flex: 0 0 auto; }
  .main-nav { flex: 1 1 auto; padding-bottom: 0; }
  .main-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .1rem 1.15rem;
  }
  .main-nav a { border-bottom: 0; padding: .3rem 0; font-size: .9rem; }

  .footer-inner { grid-template-columns: repeat(3, 1fr); }
}

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