/* Gemeinsames Blatt fuer die Unterseiten (/familienkalender-app-vergleich/ usw.).
 *
 * WARUM eine eigene Datei und nicht der <style>-Block aus index.html:
 * Die Startseite ist eine Buehne mit Animationen, die Unterseiten sind Text
 * zum Lesen. Beide teilen die Welt (Papier, Tinte, Marker, Klebeband), nicht
 * das Layout. Ein gemeinsames Blatt haelt die Farben an EINER Stelle; index.html
 * bleibt bewusst unangetastet, damit eine Aenderung hier die Startseite nie
 * kaputtmacht.
 */

:root {
  --papier: #F6EEDD; --blatt: #FFFDF8; --linierung: rgba(41, 37, 36, 0.07);
  --tinte: #292524; --leise: #57534E; --rotstift: #DC2626;
  --marker: rgba(251, 191, 36, 0.5); --gold: #F59E0B; --gold-tief: #D97706; --gold-text: #451A03;
  --blau: #2563EB; --gruen: #16A34A;
  --gut: #15803D; --schlecht: #B91C1C;
  --schatten: 0 10px 30px rgba(41, 37, 36, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  color: var(--tinte);
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
  line-height: 1.62; overflow-x: hidden;
  background:
    radial-gradient(circle, rgba(41, 37, 36, 0.13) 1.6px, transparent 1.9px),
    var(--papier);
  background-size: 26px 26px;
}

h1, h2, h3, .wortmarke, .knopf { font-family: "Baloo 2", "Manrope", sans-serif; }
h1, h2 { text-wrap: balance; }
a { color: var(--gold-tief); }
a:hover { color: var(--tinte); }

.huelle { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.markiert {
  background: linear-gradient(104deg, transparent 2%, var(--marker) 4%, var(--marker) 96%, transparent 98%);
  padding: 0 4px; border-radius: 3px;
}

/* ── Kopfleiste ── */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 238, 221, 0.88); backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(41, 37, 36, 0.12);
}
.kopf { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.wortmarke { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; color: var(--tinte); text-decoration: none; }
.wortmarke .punkt { color: var(--gold); }
.kopf-nav { display: flex; align-items: center; gap: 16px; }
.kopf-link {
  font-family: "Baloo 2", "Manrope", sans-serif; font-weight: 800; font-size: 15px;
  color: var(--tinte); text-decoration: none; white-space: nowrap;
}
.kopf-link:hover { color: var(--gold-tief); }
@media (max-width: 480px) {
  .nur-breit { display: none; }
  .kopf-nav { gap: 12px; }
  .wortmarke { font-size: 22px; }
  .kopf-link { font-size: 14px; }
  .knopf { font-size: 14px; padding: 8px 14px; }
}
.knopf {
  display: inline-block;
  background: linear-gradient(135deg, #FBBF24, var(--gold)); color: var(--gold-text); text-decoration: none;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.3);
  font-weight: 800; font-size: 15px; padding: 9px 18px; border-radius: 999px;
  border: none; cursor: pointer;
}
.knopf:hover { color: var(--gold-text); }

/* ── Textkoerper ── */
main { padding: 28px 0 8px; }
.brotkrume { font-size: 13px; color: var(--leise); margin-bottom: 14px; }
.brotkrume a { color: var(--leise); }

h1 { font-size: clamp(28px, 5vw, 42px); font-weight: 800; line-height: 1.14; letter-spacing: -1px; }
.vorspann { font-size: clamp(17px, 2.2vw, 19px); color: var(--leise); margin-top: 16px; }
.stand { font-size: 13px; color: var(--leise); margin-top: 10px; }

h2 { font-size: clamp(21px, 3.2vw, 27px); font-weight: 800; margin-top: 44px; letter-spacing: -0.4px; }
h3 { font-size: 18px; font-weight: 700; margin-top: 26px; }
p, ul, ol { margin-top: 14px; }
ul, ol { padding-left: 22px; }
li { margin-top: 6px; }
li::marker { color: var(--gold-tief); }
small { color: var(--leise); }

blockquote {
  margin-top: 16px; padding: 12px 16px;
  background: var(--blatt); border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0; box-shadow: var(--schatten);
  font-style: italic; color: var(--leise);
}
blockquote cite { display: block; font-style: normal; font-size: 13px; margin-top: 8px; }

/* ── Zettel (Hinweiskasten) ── */
.zettel {
  position: relative; margin-top: 28px; padding: 20px 22px;
  background: var(--blatt); border-radius: 4px 4px 14px 14px; box-shadow: var(--schatten);
}
.zettel::before {
  content: ""; position: absolute; top: -10px; left: 26px; width: 76px; height: 20px;
  transform: rotate(-2deg);
  background: linear-gradient(rgba(255, 244, 189, 0.9), rgba(255, 238, 158, 0.8));
  box-shadow: 0 1px 4px rgba(41, 37, 36, 0.12);
}
.zettel h3 { margin-top: 0; }

/* ── Tabellen: muessen auf dem Handy waagerecht rollen, nie den Koerper ── */
.rollt { overflow-x: auto; margin-top: 20px; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 560px; background: var(--blatt); font-size: 14.5px; }
caption { caption-side: bottom; font-size: 13px; color: var(--leise); text-align: left; padding-top: 8px; }
th, td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--linierung); vertical-align: top; }
thead th { background: rgba(245, 158, 11, 0.14); font-weight: 800; border-bottom: 2px solid rgba(217, 119, 6, 0.35); }
tbody tr:last-child td { border-bottom: none; }
.ja { color: var(--gut); font-weight: 700; }
.nein { color: var(--schlecht); font-weight: 700; }
.teils { color: var(--gold-tief); font-weight: 700; }
/* Handy: sechs Spalten passen nicht nebeneinander, und seitliches Rollen in
   einem Kasten findet niemand. Jede Zeile wird eine Karte: Name oben, darunter
   je Spalte eine Zeile "Ueberschrift: Wert". Die Ueberschrift kommt aus
   data-label der Zelle — dieselbe Quelle wie der Tabellenkopf. */
@media (max-width: 640px) {
  table { min-width: 0; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  caption { display: block; }
  tbody tr { display: block; padding: 12px 14px 14px; border-bottom: 1px solid var(--linierung); }
  tbody tr:last-child { border-bottom: none; }
  td { display: block; padding: 0; border: 0; }
  td:first-child { font-size: 17px; font-family: "Baloo 2", "Manrope", sans-serif; margin-bottom: 6px; }
  td:first-child small { font-family: "Manrope", sans-serif; font-weight: 500; margin-left: 6px; }
  td[data-label] { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; border-top: 1px dashed var(--linierung); }
  td[data-label]::before {
    content: attr(data-label); flex: 0 0 104px;
    font-family: "Baloo 2", "Manrope", sans-serif; font-size: 12px; font-weight: 800;
    letter-spacing: 0.6px; text-transform: uppercase; color: var(--leise);
  }
}

/* ── Handlungsaufforderung ── */
.aufruf {
  margin-top: 46px; padding: 26px 24px; text-align: center;
  background: linear-gradient(135deg, #FBBF24, var(--gold)); color: var(--gold-text);
  border-radius: 18px; box-shadow: 0 14px 34px rgba(217, 119, 6, 0.32);
}
.aufruf h2 { margin-top: 0; color: var(--gold-text); }
.aufruf p { color: rgba(69, 26, 3, 0.85); }
.aufruf .knopf { margin-top: 16px; background: var(--tinte); color: #FFF8EC; box-shadow: none; }
.aufruf .knopf:hover { color: #FFF8EC; }

/* ── Weiterlesen ── */
.weiter { margin-top: 46px; }
.weiter ul { list-style: none; padding-left: 0; }
.weiter li {
  margin-top: 10px; background: var(--blatt); border-radius: 12px; box-shadow: var(--schatten);
}
.weiter a { display: block; padding: 14px 16px; text-decoration: none; color: var(--tinte); font-weight: 700; }
.weiter a span { display: block; font-weight: 500; font-size: 14px; color: var(--leise); margin-top: 2px; }

/* ── Quellen ── */
.quellen { margin-top: 40px; font-size: 13.5px; color: var(--leise); }
.quellen ol { padding-left: 20px; }
.quellen a { word-break: break-word; }

footer {
  margin-top: 48px; padding: 30px 0 44px; text-align: center;
  color: var(--leise); font-size: 13px; border-top: 2px solid rgba(41, 37, 36, 0.12);
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
