/* Gemeinsame Grundlage aller Seiten im App-Design („Nachtkarte“, Barlow): Schriften, Farben, Grundtypografie,
   Kopfleiste, Fuß, Knöpfe. Schriften selbst gehostet (SIL OFL, Lizenzen in assets/fonts/), keine fremden Hosts.
   Darauf bauen auf: start.css (Startseite), site.css (Support, Beta, Reisetagebuch, Blog, Anleitungen),
   legal.css (Rechtstexte und von Hand gepflegte Seiten). */
@font-face { font-family: "Barlow"; src: url(/assets/fonts/barlow-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/assets/fonts/barlow-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/assets/fonts/barlow-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/assets/fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/assets/fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/assets/fonts/barlow-condensed-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(/assets/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: light;
  --night: #0d1c17;
  --app: #12261f;
  --surface: #1a3329;
  --border: #2b4b3d;
  --text: #f2ecdf;
  --text-2: #cbd6c6;
  --muted: #9db3a5;
  --accent: #e8b04b;
  --accent-text: #f0c978;
  --paper: #f6f1e6;
  --paper-2: #ece4d3;
  --ink: #24332c;
  --ink-muted: #5d6b63;
  --accent-ink: #8a5a0e;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1.15rem; line-height: 1.55; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: 0.005em; margin: 0 0 14px; }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h3 { font-size: 1.7rem; font-weight: 700; }
p { margin: 0 0 14px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 50; background: var(--accent); color: var(--app); padding: 12px 18px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* Kleine Überschrift: Mono, glimmt auf dunklem Grund wie eine Laterne */
.kicker { font-family: var(--mono); font-weight: 500; font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 12px; }
.foot .kicker { color: var(--accent-text); text-shadow: 0 0 12px rgba(232, 176, 75, 0.55); }

/* Kopfleiste */
.topbar { position: fixed; z-index: 40; top: 12px; left: 0; right: 0; padding: 0 12px; pointer-events: none; }
.topbar-in {
  pointer-events: auto; max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 18px;
  padding: 8px 8px 8px 14px; border-radius: 18px; color: var(--text);
  background: rgba(13, 28, 23, 0.45); border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background .3s, box-shadow .3s;
}
.topbar.scrolled .topbar-in { background: rgba(13, 28, 23, 0.9); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { display: block; height: 42px; width: auto; }
@media (max-width: 420px) { .brand img { height: 30px; } .topbar-in { gap: 6px; padding-left: 10px; } .topcta { padding: 0 12px; } .lang-sw { padding: 0 9px; } }
@media (max-width: 369px) { .lang-sw { display: none; } }
.topnav { display: flex; gap: 4px; margin-left: auto; }
.topnav a { text-decoration: none; font-weight: 600; padding: 10px 12px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; }
.topnav a:hover { background: rgba(255, 255, 255, 0.08); }
.topcta { white-space: nowrap; flex: none; text-decoration: none; font-weight: 700; background: var(--accent); color: var(--app); padding: 0 16px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 12px; box-shadow: 0 0 18px rgba(232, 176, 75, 0.45); }
/* Handy: von der Navigation bleibt nur „Blog“ sichtbar, alles andere steht im Fuß */
@media (max-width: 760px) {
  .topnav { gap: 0; }
  .topnav a:not(.nav-blog) { display: none; }
  .topnav a { padding: 10px 8px; }
}

/* Knöpfe */
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }
.store { display: inline-block; line-height: 0; padding: 4px; }
.store img { height: 52px; width: auto; }
.btn-glow {
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center; min-height: 60px; padding: 8px 22px;
  border-radius: 14px; background: var(--accent); color: var(--app); text-decoration: none; font-weight: 700; font-size: 1.1rem; line-height: 1.2;
  box-shadow: 0 0 26px rgba(232, 176, 75, 0.45);
}
.btn-glow small { font-weight: 500; font-size: 0.85rem; }
.btn-glow:hover { background: #f0c26a; }

/* Sprachumschalter in der Kopfleiste */
.lang-sw { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; text-decoration: none; border: 1px solid rgba(255, 255, 255, .25); font: 500 .85rem var(--mono); }
.lang-sw:hover { background: rgba(255, 255, 255, .08); }



/* Fuß */
.foot { background: var(--night); color: var(--text-2); padding: 56px 20px 40px; }
.foot-brand { max-width: 1100px; margin: 0 auto 36px; }
.foot-brand img { display: block; width: min(300px, 70vw); height: auto; }
.foot-in { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.foot a { display: block; text-decoration: none; padding: 6px 0; color: var(--text); }
.foot a:hover { color: var(--accent-text); }
.foot-small { max-width: 1100px; margin: 32px auto 0; font-size: .9rem; color: var(--muted); }
@media (max-width: 700px) { .foot-in { grid-template-columns: 1fr 1fr; } }

/* Statistik-Einstellungen im Fuß als Link */
.foot .linklike { appearance: none; background: none; border: 0; padding: 6px 0; font: inherit; color: var(--text); text-align: left; cursor: pointer; text-decoration: underline; }
.foot .linklike:hover { color: var(--accent-text); }

/* Listen, Fragen, Knöpfe im Fließtext */
ol.mini { padding-left: 1.3em; margin: 0; color: var(--ink-muted); }
ol.mini li { margin-bottom: 8px; }
ul.check { list-style: none; padding: 0; margin: 16px 0 22px; }
ul.check li { position: relative; padding-left: 32px; margin-bottom: 10px; }
ul.check li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 6px; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2312261f' stroke-width='3' d='M5 12l4 4 10-10'/%3E%3C/svg%3E") center / 13px no-repeat; }
.btn-line { display: inline-flex; align-items: center; min-height: 52px; padding: 0 22px; border-radius: 14px; border: 2px solid var(--app); color: var(--app) !important; text-decoration: none; font-weight: 700; }
.btn-line:hover { background: var(--app); color: var(--text) !important; }
details { border-bottom: 1px solid #ddd2bd; }
details:first-of-type { border-top: 1px solid #ddd2bd; }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding: 10px 0; font: 700 1.3rem var(--display); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 1.8rem var(--body); color: var(--accent-ink); flex: none; }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-muted); margin: 0 0 18px; }
.faq-more { margin-top: 24px; }


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

/* Kurze Seiten: Fuß bleibt unten, kein heller Streifen darunter */
body.sub, body.legal { min-height: 100vh; display: flex; flex-direction: column; }
body.sub > main, body.legal > .wrap { flex: 1 0 auto; width: 100%; }
/* Aktive Seite in der Kopfleiste */
.topnav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); border-radius: 10px 10px 4px 4px; }
@media (max-width: 369px) { .topbar .lang-sw { display: none; } }
/* Facebook-Gruppe und Instagram im Fuß: reine Links mit eigenem SVG, kein Meta-Skript */
.foot-brand { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.foot a.social-link { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 14px; border-radius: 99px; border: 1px solid var(--border); color: var(--text); font-weight: 600; }
.foot a.social-link:hover { border-color: var(--accent); color: var(--accent-text); }
.foot a.social-link svg { flex: none; }
