/* Ausflugskiste – Homepage und Anleitung
   Farben wie in der App (../ausflugskiste/assets/app.css): Creme, Waldgrün, Holz, Bernstein. Systemschrift, kein JavaScript. */

:root {
  --hintergrund: #fbf7ef;
  --flaeche:     #ffffff;
  --flaeche-2:   #f4eee3;
  --text:        #1c1917;
  --text-2:      #57534e;
  --rand:        #e9e0d0;
  --dunkel:      #0b0d0c;
  --dunkel-text: #ffffff;
  --dunkel-text-2: #c4ccc8;
  --akzent:      #047857;
  --akzent-aktiv:#065f46;
  --akzent-text: #047857;
  --gruen-hell:  #dff3ea;
  --gruen-text:  #065f46;
  --holz:        #b45309;
  --stern:       #f59e0b;
  --fokus:       #047857;
  --telefon:     #0b0d0c;
  --schatten:    0 24px 60px rgba(28, 25, 23, 0.18);
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --hintergrund: #0b0d0c;
    --flaeche:     #141816;
    --flaeche-2:   #1c221f;
    --text:        #f1f5f3;
    --text-2:      #a3aea9;
    --rand:        #2a322e;
    --dunkel:      #060807;
    --akzent-text: #34d399;
    --gruen-hell:  #10291f;
    --gruen-text:  #6ee7b7;
    --holz:        #fbbf24;
    --stern:       #fbbf24;
    --fokus:       #34d399;
    --telefon:     #2f3833;
    --schatten:    0 24px 60px rgba(0, 0, 0, 0.55);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--hintergrund);
  color: var(--text);
  font: 1.0625rem/1.6 var(--schrift);
}
img { max-width: 100%; }
a { color: var(--akzent-text); text-underline-offset: 0.15em; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; border-radius: 4px; }
code { font-size: 0.92em; background: var(--flaeche-2); padding: 0.1em 0.35em; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.35rem; }
.nobr { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 10;
  background: var(--flaeche); color: var(--text); padding: 0.5rem 1rem; border-radius: 6px;
}
.skip-link:focus { top: 1rem; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }

/* Kopfzeile */
.topbar {
  position: sticky; top: 0; z-index: 5;
  background: var(--dunkel); color: var(--dunkel-text);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: inherit; text-decoration: none; font-weight: 800; font-size: 1.1rem; }
.brand img { border-radius: 7px; }
.topbar nav { display: flex; align-items: center; gap: 1.4rem; }
.topbar nav a { color: var(--dunkel-text-2); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.topbar nav a:hover { color: #fff; }
/* Anleitung: durch Trennstrich von den Sprungmarken abgesetzt, als umrandeter Knopf */
.topbar nav .nav-anleitung {
  position: relative; margin-left: 0.4rem;
  display: inline-flex; align-items: center; gap: 0.45rem;
  color: #fff; padding: 0.35rem 0.85rem; border: 1.5px solid rgba(255, 255, 255, 0.35); border-radius: 999px;
}
.topbar nav .nav-anleitung::before {
  content: ""; position: absolute; left: -1.15rem; top: 15%; bottom: 15%;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}
.topbar nav .nav-anleitung:hover { border-color: #fff; }
.topbar nav .nav-anleitung[aria-current="page"] { background: rgba(255, 255, 255, 0.14); border-color: #fff; }
/* Unterstützen: Herz, schmal nur als Symbol */
.topbar nav .nav-herz { display: inline-flex; align-items: center; gap: .4rem; }
.topbar nav .nav-herz svg { color: #fb7185; }
@media (max-width: 1080px) {
  .topbar nav .nav-herz span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.topbar nav .nav-cta {
  color: #fff; background: var(--akzent); padding: 0.4rem 0.9rem; border-radius: 999px;
}
.topbar nav .nav-cta:hover { background: var(--akzent-aktiv); }
@media (max-width: 760px) {
  .topbar nav { gap: 0.6rem; }
  .topbar nav .nav-sprung { display: none; }
  .topbar nav .nav-anleitung { margin-left: 0; }
  .topbar nav .nav-anleitung::before { display: none; }
}
@media (max-width: 420px) {
  .topbar-inner { gap: 0.5rem; }
  .brand { font-size: 1rem; gap: 0.45rem; }
  .brand img { width: 24px; height: 24px; }
  .topbar nav { gap: 0.45rem; }
  .topbar nav .nav-cta { padding: 0.35rem 0.7rem; font-size: 0.9rem; }
  .topbar nav .nav-anleitung { padding: 0.4rem 0.55rem; }
  .topbar nav .nav-anleitung span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

main:focus { outline: none; }

/* Hero */
.hero { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2.5rem, 6vw, 4.5rem); overflow: hidden; }
.hero-grid { display: grid; gap: 3rem; align-items: center; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.kicker {
  margin: 0 0 0.75rem; color: var(--akzent-text);
  font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
}
h1 { margin: 0; font-size: clamp(2.4rem, 6.5vw, 4.2rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.04; }
.lead { margin: 1.4rem 0 0; max-width: 34rem; font-size: 1.2rem; color: var(--text-2); }
.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 3rem; padding: 0.7rem 1.4rem; border-radius: 12px;
  font-weight: 700; text-decoration: none; border: 2px solid transparent;
}
.btn-primary { background: var(--akzent); color: #fff; }
.btn-primary:hover { background: var(--akzent-aktiv); }
.btn-ghost { border-color: var(--rand); color: var(--text); background: var(--flaeche); }
.btn-ghost:hover { border-color: var(--text-2); }
.meta { margin: 1.25rem 0 0; color: var(--text-2); font-size: 0.9rem; }

/* Wortmarke */
.brand > span { white-space: nowrap; }
.brand-kiste { color: #fbbf24; font-weight: 850; }
.brand img { background: none !important; }

/* Nachgebaute App */
.hero-visual { position: relative; display: flex; justify-content: center; padding-bottom: 2.5rem; }
.phone {
  width: min(100%, 330px);
  background: #fbf7ef; color: #1c1917;
  border: 10px solid var(--telefon); border-radius: 34px;
  box-shadow: var(--schatten); overflow: hidden;
  font-size: 0.82rem; line-height: 1.35;
  transform: rotate(-2deg);
}
.app-kopf { display: flex; align-items: center; gap: 0.45rem; padding: 0.75rem 0.9rem; border-bottom: 1px solid #e9e0d0; font-weight: 700; font-size: 0.95rem; }
.app-kopf b { color: #b45309; font-weight: 850; }
.app-body { padding: 0.8rem; }
.app-hallo { margin: 0; font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; color: #78716c; font-weight: 700; }
.app-titel { margin: 0.1rem 0 0.6rem; font-size: 1.2rem; font-weight: 800; }
.segmente { display: flex; gap: 0.35rem; margin-bottom: 0.7rem; }
.segmente span { padding: 0.2rem 0.55rem; border-radius: 999px; border: 1px solid #e9e0d0; background: #fff; font-weight: 600; font-size: 0.72rem; white-space: nowrap; }
.segmente span i { font-style: normal; color: #a8a29e; margin-left: 0.15rem; }
.segmente .aktiv { background: #1c1917; color: #fbf7ef; border-color: #1c1917; }
.segmente .aktiv i { color: inherit; opacity: 0.7; }
.karten { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; }
.karte { background: #fff; border: 1px solid #e9e0d0; border-radius: 14px; overflow: hidden; }
.cover { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.cover > span { color: rgba(255, 255, 255, 0.9); font-size: 1.6rem; font-weight: 800; }
.flag { position: absolute; top: 0.35rem; right: 0.35rem; width: 1.4rem; height: 1.4rem; display: grid; place-items: center;
  border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: #e11d48; font-style: normal; font-size: 0.75rem; font-weight: 800; }
.flag:nth-child(2) { color: #047857; }
.hue-1 { background: linear-gradient(135deg, #60a5fa, #3730a3); }
.hue-2 { background: linear-gradient(135deg, #fbbf24, #ea580c); }
.hue-4 { background: linear-gradient(135deg, #a3e635, #15803d); }
.hue-5 { background: linear-gradient(135deg, #22d3ee, #0369a1); }
.karte-text { padding: 0.45rem 0.55rem 0.55rem; display: grid; gap: 0.1rem; }
.karte-text b { font-size: 0.78rem; line-height: 1.2; }
.karte-text small { color: #78716c; font-size: 0.66rem; }
.sterne { color: #f59e0b; letter-spacing: 0.05em; font-size: 0.72rem; }
.sterne s { text-decoration: none; color: #e7e5e4; }
.wohin {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-62%) rotate(2deg);
  width: min(78%, 270px); padding: 0.8rem 1rem; border-radius: 16px;
  background: linear-gradient(135deg, #065f46, #047857); color: #fff; box-shadow: var(--schatten);
  display: grid; gap: 0.15rem; font-size: 0.85rem;
}
.wohin small { color: #c7f0de; font-size: 0.72rem; }
.wohin b { font-size: 1.05rem; }
.wohin .sterne s { color: rgba(255, 255, 255, 0.35); }

/* Abschnitte */
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section--alt { background: var(--flaeche-2); }
.section-lead { max-width: 44rem; margin: 0 0 2.25rem; color: var(--text-2); font-size: 1.1rem; }

.schritte {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
.schritte li { background: var(--flaeche); border: 1px solid var(--rand); border-radius: 16px; padding: 1.4rem; }
.nr {
  display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; margin-bottom: 0.9rem;
  border-radius: 50%; background: var(--holz); color: #fff; font-weight: 800; font-size: 1.1rem;
}
@media (prefers-color-scheme: dark) { .nr { color: #1c1917; } }
.schritte p, .features p { margin: 0; color: var(--text-2); }
.features { display: grid; margin-top: 2.25rem; gap: 2rem 1.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.features article { border-top: 3px solid var(--holz); padding-top: 1rem; }

/* Deine Daten */
.section--dunkel { background: var(--dunkel); color: var(--dunkel-text); }
.section--dunkel .kicker { color: #fbbf24; }
.section--dunkel .section-lead { color: var(--dunkel-text-2); margin-bottom: 0; }
.zweispaltig { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
@media (max-width: 860px) { .zweispaltig { grid-template-columns: 1fr; } }
.haken { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.haken li { position: relative; padding-left: 2rem; color: var(--dunkel-text-2); }
.haken li::before {
  content: "✓"; position: absolute; left: 0; top: 0.05rem;
  display: grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: #047857; color: #fff; font-size: 0.8rem; font-weight: 800;
}

/* Herunterladen */
.holen { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 860px) { .holen { grid-template-columns: 1fr; } }
.holen-karte { background: var(--flaeche); border: 1px solid var(--rand); border-radius: 16px; padding: 1.6rem; }
.holen-karte--haupt { border: 2px solid var(--akzent); }
.holen-karte p { color: var(--text-2); }
.liste { margin: 0 0 1.5rem; padding-left: 1.3rem; display: grid; gap: 0.6rem; }
.liste--punkte { margin-bottom: 1rem; }
.btn-download { font-size: 1.05rem; }
.btn-download .size { font-weight: 400; opacity: 0.85; white-space: nowrap; }
.klein { font-size: 0.9rem; margin: 1rem 0 0; }

/* Fußzeile */
.foot { border-top: 1px solid var(--rand); padding: 1.75rem 0 2.5rem; color: var(--text-2); font-size: 0.95rem; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; align-items: center; }
.foot p { margin: 0; }
.foot img { vertical-align: -3px; margin-right: 0.3rem; border-radius: 4px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }

/* Anleitung */
.doc { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 3rem; padding-top: 2.25rem; padding-bottom: 3rem; }
.doc-seite { position: sticky; top: 4.5rem; align-self: start; max-height: calc(100vh - 5.5rem); overflow-y: auto; }
.doc-seite h2, .doc-inhalt h2 {
  margin: 1.4rem 0 0.4rem; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2);
}
.doc-seite h2:first-child { margin-top: 0; }
.doc-seite ul, .doc-inhalt ul { list-style: none; margin: 0; padding: 0; }
.doc-seite a, .doc-inhalt a {
  display: block; padding: 0.3rem 0.65rem; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 0.95rem;
}
.doc-seite a:hover, .doc-inhalt a:hover { background: var(--flaeche-2); }
.doc-seite a[aria-current="page"], .doc-inhalt a[aria-current="page"] {
  background: var(--gruen-hell); color: var(--gruen-text); font-weight: 700;
}
.doc-inhalt { display: none; }
@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; gap: 1rem; padding-top: 1.25rem; }
  .doc-seite { display: none; }
  .doc-inhalt { display: block; background: var(--flaeche); border: 1px solid var(--rand); border-radius: 12px; }
  .doc-inhalt summary { cursor: pointer; padding: 0.75rem 1rem; font-weight: 700; }
  .doc-inhalt nav { padding: 0 0.6rem 0.8rem; }
}
.doc-text { min-width: 0; max-width: 46rem; }
.doc-text:focus { outline: none; }
.doc-text h1 { font-size: clamp(2rem, 5vw, 2.7rem); margin: 0 0 1.25rem; }
.doc-text h2 { font-size: 1.5rem; margin: 2.25rem 0 0.75rem; }
.doc-text h3 { font-size: 1.15rem; margin: 1.75rem 0 0.5rem; }
.doc-text h2, .doc-text h3 { scroll-margin-top: 4.5rem; }
.doc-text p, .doc-text li { color: var(--text); }
.doc-text ul, .doc-text ol { padding-left: 1.4rem; }
.doc-text li { margin: 0.3rem 0; }
.doc-text li > p { margin: 0.3rem 0; }
.crumb { margin: 0 0 0.5rem; font-size: 0.9rem; }
.crumb a { color: var(--text-2); }
.frage { margin: 1.25rem 0; }
.hinweis {
  margin: 1.25rem 0; padding: 0.8rem 1rem; border-left: 4px solid var(--akzent);
  background: var(--gruen-hell); color: var(--gruen-text); border-radius: 0 10px 10px 0;
}
.hinweis p { margin: 0; color: inherit; }
.tabelle { overflow-x: auto; margin: 1.25rem 0; border: 1px solid var(--rand); border-radius: 12px; background: var(--flaeche); }
.tabelle table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.tabelle th, .tabelle td { text-align: left; vertical-align: top; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--rand); }
.tabelle th { background: var(--flaeche-2); font-size: 0.85rem; }
.tabelle tr:last-child td { border-bottom: 0; }
.doc-text pre {
  overflow-x: auto; margin: 1rem 0; padding: 0.9rem 1rem; border-radius: 10px;
  background: var(--dunkel); color: #e5e7eb; font-size: 0.88rem; line-height: 1.5;
}
.doc-text pre code { background: none; padding: 0; color: inherit; }
.kapitel { list-style: none; padding: 0 !important; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.kapitel li { margin: 0; }
.kapitel a {
  display: flex; flex-direction: column; gap: 0.2rem; height: 100%;
  padding: 0.9rem 1rem; border: 1px solid var(--rand); border-radius: 12px; background: var(--flaeche);
  color: var(--text); text-decoration: none;
}
.kapitel a:hover { border-color: var(--akzent); }
.kapitel span { color: var(--text-2); font-size: 0.92rem; }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rand); }
.pager a {
  display: flex; flex-direction: column; padding: 0.7rem 1rem; border: 1px solid var(--rand); border-radius: 12px;
  background: var(--flaeche); color: var(--text); text-decoration: none; font-weight: 700; max-width: 48%;
}
.pager a:hover { border-color: var(--akzent); }
.pager small { color: var(--text-2); font-weight: 400; }
.pager .next { margin-left: auto; text-align: right; }
.stand { margin-top: 1.5rem; font-size: 0.85rem; color: var(--text-2) !important; }

/* Impressum */
.legal { max-width: 46rem; padding-top: 2.5rem; padding-bottom: 3rem; }
.legal h1 { font-size: clamp(1.9rem, 5vw, 2.5rem); }
.legal h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.legal h3 { margin-top: 1.75rem; }
.legal .lead { font-size: 1.05rem; }
.legal-date { margin-top: 2.5rem; color: var(--text-2); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone, .wohin { transform: none; }
  .wohin { left: auto; right: 0; }
}

/* Sehr schmale Handys: nur das Logo, Name bleibt für Screenreader */
@media (max-width: 370px) { .topbar .brand > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
