/* My Survival Zone — Stylesheet
   Handgeschrieben, keine Frameworks, keine externen Requests. */

:root {
  --paper:      #f7f5f0;
  --paper-2:    #efece4;
  --ink:        #1d211e;
  --ink-soft:   #4a524c;
  --ink-faint:  #7b837c;
  --rule:       #ddd8cc;
  --ember:      #9a5b22;
  --ember-soft: #c98a46;
  --moss:       #35503f;
  --shadow:     0 1px 2px rgba(29, 33, 30, .06), 0 8px 24px rgba(29, 33, 30, .05);
  --wide:  72rem;
  --prose: 38rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:      #151816;
    --paper-2:    #1d211e;
    --ink:        #e8e6df;
    --ink-soft:   #b2b8b1;
    --ink-faint:  #848b84;
    --rule:       #2e332f;
    --ember:      #d9995c;
    --ember-soft: #b2763c;
    --moss:       #8fb79c;
    --shadow:     0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
  }
}

:root[data-theme="dark"] {
  --paper:      #151816;
  --paper-2:    #1d211e;
  --ink:        #e8e6df;
  --ink-soft:   #b2b8b1;
  --ink-faint:  #848b84;
  --rule:       #2e332f;
  --ember:      #d9995c;
  --ember-soft: #b2763c;
  --moss:       #8fb79c;
  --shadow:     0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.68 ui-sans-serif, system-ui, -apple-system, "Segoe UI",
        Roboto, "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "kern" 1;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .wordmark {
  font-family: ui-serif, Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.012em;
  color: var(--ink);
}

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

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

.shell { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: 16px; }
.prose { max-width: var(--prose); margin-inline: auto; }

/* ---------- Kopf ---------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky; top: 0; z-index: 20;
}
.masthead .shell {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 64px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: 1.0625rem; letter-spacing: .01em;
  color: var(--ink); text-decoration: none;
}
.wordmark .glyph { width: 22px; height: 22px; flex: none; color: var(--moss); }
.wordmark b { font-weight: 600; }
.wordmark span { color: var(--ink-faint); font-weight: 400; }

.nav { display: flex; gap: 1.35rem; font-size: .875rem; }
.nav a { color: var(--ink-soft); text-decoration: none; }
.nav a:hover { color: var(--ember); }
@media (max-width: 620px) { .nav { display: none; } }

/* ---------- Aufmacher ---------- */

.hero { padding: clamp(3rem, 9vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem); }
.kicker {
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint); margin: 0 0 1.1rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 6.2vw, 3.6rem);
  margin: 0 0 1.1rem; max-width: 20ch;
}
.hero .lede {
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  color: var(--ink-soft); max-width: 46ch; margin: 0;
}

/* ---------- Themenkacheln ---------- */

.band { padding: clamp(2.5rem, 6vw, 4rem) 0; border-top: 1px solid var(--rule); }
.band-head { margin: 0 0 1.75rem; }
.band-head h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); margin: 0 0 .5rem; }
.band-head p { color: var(--ink-soft); margin: 0; max-width: 52ch; }

.tiles {
  display: grid; gap: 1px; background: var(--rule);
  border: 1px solid var(--rule); border-radius: 10px; overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.tile {
  background: var(--paper); padding: 1.5rem 1.35rem;
  display: flex; flex-direction: column; gap: .5rem;
  text-decoration: none; color: inherit;
  transition: background .15s ease;
}
.tile:hover { background: var(--paper-2); }
.tile h3 { font-size: 1.0625rem; margin: 0; }
.tile p { font-size: .9375rem; color: var(--ink-soft); margin: 0; }
.tile .more { font-size: .8125rem; color: var(--ember); margin-top: auto; padding-top: .6rem; }

/* ---------- Langtext ---------- */

.article { padding: clamp(2.5rem, 6vw, 4rem) 0; border-top: 1px solid var(--rule); }
.article h1 { font-size: clamp(1.8rem, 4.4vw, 2.6rem); margin: 0 0 1.25rem; }
.article h2 {
  font-size: clamp(1.3rem, 2.8vw, 1.6rem);
  margin: 2.75rem 0 .85rem; padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.article h3 { font-size: 1.125rem; margin: 1.9rem 0 .6rem; }
.article p { margin: 0 0 1.1rem; }
.article ul, .article ol { margin: 0 0 1.25rem; padding-left: 1.3rem; }
.article li { margin-bottom: .5rem; }
.article li::marker { color: var(--ember-soft); }
.article strong { font-weight: 600; }

.standfirst {
  font-size: 1.1875rem; color: var(--ink-soft);
  border-left: 2px solid var(--ember-soft); padding-left: 1.1rem; margin: 0 0 2rem;
}

.note {
  background: var(--paper-2); border: 1px solid var(--rule);
  border-radius: 8px; padding: 1.1rem 1.25rem; margin: 1.75rem 0;
  font-size: .9375rem; color: var(--ink-soft);
}
.note b { color: var(--ink); }

/* ---------- Checkliste ---------- */

.cards {
  display: grid; gap: 1rem; margin: 1.5rem 0 0;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--paper-2); border: 1px solid var(--rule);
  border-radius: 10px; padding: 1.25rem 1.3rem;
}
.card h4 { font-size: .9375rem; margin: 0 0 .75rem; letter-spacing: .01em; }
.card ul { list-style: none; margin: 0; padding: 0; font-size: .9375rem; }
.card li { position: relative; padding-left: 1.4rem; margin-bottom: .55rem; color: var(--ink-soft); }
.card li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: .5rem; height: .5rem; border-radius: 2px;
  border: 1.5px solid var(--ember-soft);
}

/* ---------- Fragen ---------- */

.qa { border-top: 1px solid var(--rule); }
.qa details { border-bottom: 1px solid var(--rule); }
.qa summary {
  cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 1.0625rem; position: relative;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; position: absolute; right: .25rem; top: 50%;
  transform: translateY(-50%); color: var(--ember); font-size: 1.25rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
}
.qa details[open] summary::after { content: "–"; }
.qa details p { margin: 0 0 1.1rem; color: var(--ink-soft); font-size: .9688rem; }

/* ---------- Fuss ---------- */

.colophon {
  border-top: 1px solid var(--rule); background: var(--paper-2);
  padding: 2.5rem 0 3rem; margin-top: 3rem;
  font-size: .875rem; color: var(--ink-soft);
}
.colophon .rows { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.colophon h4 { font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 .7rem; font-family: inherit; font-weight: 600; }
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { margin-bottom: .45rem; }
.colophon a { color: var(--ink-soft); text-decoration: none; }
.colophon a:hover { color: var(--ember); text-decoration: underline; }
.smallprint {
  border-top: 1px solid var(--rule); margin-top: 2rem; padding-top: 1.5rem;
  font-size: .8125rem; color: var(--ink-faint);
}
.smallprint p { margin: 0 0 .6rem; max-width: 62ch; }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: 0 0 6px 0;
}
.skip:focus { left: 0; top: 0; z-index: 50; }

.colophon .blurb { margin: 0 0 1.1rem; max-width: 34ch; }
.colophon .operator {
  margin: 0; font-size: .8125rem; line-height: 1.75; color: var(--ink-faint);
}
.colophon .operator a { color: var(--ink-soft); }

/* Noch nicht eingetragene Betreiberangaben sichtbar lassen, nicht verstecken. */
.ph {
  color: var(--ember);
  border-bottom: 1px dashed var(--ember-soft);
}

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