/* Infoseiten: Was ist neu (neu.php) und Unter der Haube (methode.php).
   Atlas-Tokens aus interface.css, Handy zuerst. */

.info-seite {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem max(1rem, env(safe-area-inset-left)) 4rem max(1rem, env(safe-area-inset-right));
  min-width: 0;
}
.info-kopf { margin-bottom: 2.5rem; }
.info-kopf h1 {
  margin: 0 0 1rem;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
  color: var(--text);
}
.info-einleitung {
  margin: 0;
  color: var(--text-2);
  line-height: 1.7;
  text-wrap: pretty;
}
.info-seite a { color: var(--accent); }
.info-seite a:hover { color: var(--accent-hot); }

/* ------------------------------------------------------------ Was ist neu */

.neu-liste, .neu-eintraege { list-style: none; margin: 0; padding: 0; }
.neu-tag {
  display: grid;
  gap: .75rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.neu-datum {
  margin: 0;
  font-family: var(--f-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.neu-eintraege { display: grid; gap: 1.25rem; }
.neu-eintrag h3 {
  margin: 0 0 .35rem;
  font-family: var(--f-body);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}
.neu-eintrag p { margin: 0; color: var(--text-2); line-height: 1.7; text-wrap: pretty; }
.neu-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  font-size: .92rem;
}
.neu-marke {
  display: inline-block;
  margin-left: .35rem;
  padding: .05rem .5rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  vertical-align: .15em;
}

@media (min-width: 48rem) {
  .info-seite { padding: 3rem clamp(1.4rem, 3vw, 2.5rem) 5rem; }
  .neu-tag { grid-template-columns: 12rem minmax(0, 1fr); gap: 2rem; }
  .neu-datum { padding-top: .2rem; }
}

/* ---------------------------------------------------------- Fusszeile */

.fuss-links { margin-bottom: .6rem !important; font-size: .82rem; }
.fuss-links a { color: inherit; }

/* --------------------------------------------------------- Unter der Haube */

.haube-legende {
  display: grid;
  gap: .6rem;
  margin: 1.5rem 0 0;
}
.haube-legende div { display: flex; gap: .75rem; align-items: baseline; }
.haube-legende dt { flex: 0 0 6.5rem; }
.haube-legende dd { margin: 0; color: var(--text-2); line-height: 1.5; }

.haube-marke {
  display: inline-block;
  padding: .1rem .55rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: help;
}
.haube-marke-gerechnet  { color: var(--accent); }
.haube-marke-simuliert  { color: var(--focus); }
.haube-marke-geschaetzt { color: #C4B4EC; }
.haube-marke-gelernt    { color: #8FD3C8; }
.haube-marke-ki         { color: var(--mana-r); }

.haube-teil {
  padding: 2.5rem 0 0;
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.haube-teil-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: 1.25rem; }
.haube-teil-kopf h2 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  line-height: 1.15;
  color: var(--text);
}
.haube-marken { margin: 0; display: flex; gap: .4rem; }

.haube-teil-inhalt { display: grid; gap: 1.5rem; min-width: 0; }
.haube-bild {
  margin: 0;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}
.haube-svg { display: block; width: 100%; height: auto; max-width: 26rem; margin: 0 auto; }
.haube-bild figcaption { margin-top: .75rem; color: var(--text-3); font-size: .85rem; line-height: 1.5; text-wrap: pretty; }

.haube-text { min-width: 0; }
.haube-text h3 {
  margin: 1.25rem 0 .4rem;
  font-family: var(--f-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.haube-text h3:first-child { margin-top: 0; }
.haube-text p, .haube-liste li { margin: 0 0 .75rem; color: var(--text-2); line-height: 1.7; text-wrap: pretty; }
.haube-text em { font-style: normal; color: var(--text); font-weight: 600; }
.haube-text strong { color: var(--text); }
.haube-formel {
  padding: .75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-variant-numeric: tabular-nums;
  color: var(--text) !important;
  overflow-wrap: anywhere;
}

.haube-liste { margin: 0; padding-left: 1.2rem; }
.haube-tabelle-huelle { overflow-x: auto; }
.haube-tabelle { width: 100%; border-collapse: collapse; font-size: .92rem; }
.haube-tabelle th, .haube-tabelle td { padding: .7rem .75rem .7rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.5; }
.haube-tabelle th { color: var(--text-3); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.haube-tabelle td { color: var(--text-2); }
.haube-tabelle td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }

/* Diagramme: Farben nur aus den Atlas-Tokens */
.haube-svg text { font-family: var(--f-body), sans-serif; }
.s-text  { fill: var(--text-2); font-size: 13px; }
.s-fett  { fill: var(--text); font-weight: 700; }
.s-klein { fill: var(--text-3); font-size: 12px; }
.s-kasten { fill: var(--surface-2); stroke: var(--line-strong); stroke-width: 1; }
.s-start  { stroke: var(--accent); stroke-width: 1.5; }
.s-gut    { stroke: var(--mana-g); stroke-width: 1.5; }
.s-fehlt  { stroke: var(--text-3); stroke-dasharray: 5 4; fill: transparent; }
.s-pfeil  { stroke: var(--text-3); stroke-width: 1.5; fill: none; }
.s-spitze { fill: var(--text-3); }
.s-achse  { stroke: var(--line-strong); stroke-width: 1; }
.s-zelle  { fill: var(--surface-2); }
.s-fuell  { fill: var(--line-strong); }
.s-akzent { fill: var(--accent); }
.s-warn   { fill: var(--focus); }
.s-band   { fill: var(--accent); fill-opacity: .16; }
.s-gezogen { stroke: var(--text); stroke-width: 2; }

@media (min-width: 64rem) {
  .haube-teil-inhalt { grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
  .haube-legende { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 2rem; }
}

/* Quellentabelle am Handy: jede Quelle als eigener Block statt seitlichem Scrollen */
@media (max-width: 40rem) {
  .haube-tabelle thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .haube-tabelle tr { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .haube-tabelle td { display: block; padding: .1rem 0; border: 0; }
  .haube-tabelle td:first-child { white-space: normal; }
}

/* Punktdiagramm "1 Land mehr": leer = nicht geschafft, Ring = Unterschied */
.s-leer { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.s-ring { fill: none; stroke: var(--focus); stroke-width: 2; }
.haube-nachsatz { margin-top: 1.25rem; }
