/* Atlas: shared tokens and the analysis workspace. Charts keep their own geometry. */
:root {
  --ground: #101e24; --ground-deep: #0b161b; --surface: #172a31; --surface-2: #20373f;
  --line: #304850; --line-strong: #526a70; --text: #f1efe4; --text-2: #c7d6d6; --text-3: #9fb7bb;
  --accent: #d8bb78; --accent-hot: #efcf8a; --gold: #d8bb78; --radius: 12px; --focus: #84d9dc;
}
html { scrollbar-color: var(--line-strong) var(--ground-deep); scroll-padding-top: var(--sprung-abstand, 8rem); }
body.werkzeug { background: var(--ground); color: var(--text); }
::selection { color: var(--ground-deep); background: var(--accent); }
input, textarea { caret-color: var(--accent); }
a { text-underline-offset: .2em; }
button, input, select, textarea { max-width: 100%; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 100; padding: .8rem 1rem; color: var(--ground); background: var(--text); }
.skip-link:focus { top: 1rem; }
.kopfbereich, .kopfbereich.klebt { background: var(--ground-deep); border-bottom: 1px solid var(--line); box-shadow: none; backdrop-filter: none; }
.werkzeug .kopf { max-width: 1440px; margin-inline: auto; padding: 1rem clamp(1rem, 3vw, 2.5rem); }
.werkzeug .cta { color: #182221; background: var(--accent); border-radius: var(--radius); box-shadow: none; text-shadow: none; font-family: var(--f-body); font-weight: 700; font-size: .94rem; letter-spacing: 0; text-transform: none; min-height: 46px; }
.werkzeug .cta:hover { color: #182221; background: var(--accent-hot); box-shadow: none; transform: none; }
.werkzeug .cta:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.knopf-schlicht { border-radius: var(--radius); min-height: 44px; background: var(--surface-2); color: var(--text); }
button:disabled { opacity: .55; cursor: default; }
.atlas .deck-seite { max-width: 1440px; padding: 2.5rem clamp(1rem, 3vw, 2.5rem) 4rem; min-width: 0; }
.import-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(2rem, 5vw, 5rem); }
.atlas .einstieg { padding: 1rem 0 0; max-width: none; }
.atlas .einstieg h1 { font-size: clamp(2.15rem, 3.8vw, 3.65rem); line-height: 1.12; max-width: 18ch; margin-bottom: 1rem; color: var(--text); }
.atlas .einstieg-text { color: var(--text-2); line-height: 1.7; max-width: 52ch; margin: 0 0 2rem; }
.atlas .importwege { margin-top: 0; }
.atlas .reiter { gap: 0; border-bottom: 1px solid var(--line-strong); margin-bottom: 1.25rem; }
.atlas .reiter label { border: 0; border-radius: 0; background: transparent; color: var(--text-3); justify-content: flex-start; padding: .7rem 1.1rem .8rem; font-weight: 600; }
.atlas #weg-text:checked ~ .reiter label[for="weg-text"], .atlas #weg-datei:checked ~ .reiter label[for="weg-datei"], .atlas #weg-link:checked ~ .reiter label[for="weg-link"] { color: var(--gold); background: transparent; box-shadow: inset 0 -2px var(--gold); }
#weg-text:focus-visible ~ .reiter label[for="weg-text"], #weg-datei:focus-visible ~ .reiter label[for="weg-datei"], #weg-link:focus-visible ~ .reiter label[for="weg-link"], .dl-ansicht input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: -3px; }
.feld-label { font-size: .85rem; font-weight: 600; margin-bottom: .5rem; }
.atlas .deck-form textarea { border-radius: var(--radius); background: var(--ground-deep); border-color: var(--line-strong); min-height: 12rem; line-height: 1.6; padding: 1rem 1.15rem; }
.atlas .deck-form textarea:focus { border-color: var(--focus); outline: 2px solid var(--focus); outline-offset: 2px; }
.atlas .deck-form textarea::placeholder, .atlas .deck-form input::placeholder { color: var(--text-3); }
.atlas .deck-form .cta { justify-content: space-between; margin-top: .25rem; }
.atlas .deck-form .cta span { font-size: 1.4rem; font-weight: 400; }
.atlas .feld-hilfe { line-height: 1.6; font-size: .8rem; margin: .6rem 0 1rem; }
.atlas .deck-form input[type="url"] { border-radius: var(--radius); min-height: 52px; background: var(--ground-deep); border: 1px solid var(--line-strong); padding: .9rem; font-size: 16px; }
.atlas .deck-form input[type="file"] { padding: .6rem 0; font-size: .85rem; }
input::file-selector-button { border: 1px solid var(--line-strong); border-radius: 6px; padding: .6rem; color: var(--text); background: var(--surface-2); margin-right: .7rem; cursor: pointer; }
.atlas .ablage { border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--ground-deep); }
.atlas .einstieg-klein { max-width: 65ch; font-size: .75rem; line-height: 1.65; margin-top: 1.2rem; color: var(--text-3); }
.atlas .beispiel-zeile { border-top: 1px solid var(--line); margin-top: 1.35rem; padding-top: 1rem; display: flex; flex-wrap: wrap; gap: .4rem .7rem; align-items: center; font-size: .83rem; }
.atlas .beispiel-knopf { min-height: 40px; text-decoration: underline; text-underline-offset: .2em; color: var(--gold); }
.atlas-einstieg { position: relative; padding: 0; min-width: 0; }
.atlas-bild { display: block; width: 100%; height: auto; aspect-ratio: 1.22; object-fit: cover; object-position: 65% center; border-radius: 12px; }
.atlas-bildtext { padding: 1.5rem .5rem 0; }
.atlas-bildtext h2 { font-family: var(--f-display); font-size: clamp(1.5rem, 2vw, 2rem); font-weight: 400; margin: 0 0 1rem; }
.atlas-nutzen { margin: 0; }
.atlas-nutzen > div { display: grid; grid-template-columns: 12rem 1fr; padding: .75rem 0; border-bottom: 1px solid var(--line); gap: 1rem; font-size: .82rem; }
.atlas-nutzen dt { color: var(--text); font-weight: 600; }
.atlas-nutzen dd { margin: 0; color: var(--text-2); line-height: 1.6; }
.atlas-bildtext > p { font-size: .75rem; color: var(--text-3); margin: 1rem 0; }
.atlas .fehler, .daten-hinweis { border: 1px solid #8c6b3c; border-radius: var(--radius); padding: 1rem 1.15rem; color: #f0d3a1; background: #302b22; line-height: 1.6; }
.daten-hinweis p { margin: .35rem 0 0; }
.atlas .ergebnis { padding-top: 0; gap: 1.5rem; }
.atlas .deckkopf { margin: 0; padding: .25rem 0 1.5rem; border-bottom: 1px solid var(--line-strong); }
.atlas .deckkopf-zurueck { font-size: .8rem; margin-bottom: 1.25rem; }
.atlas .deckkopf-zurueck::before { content: none; }
.atlas .deckkopf-zeile { display: block; }
.atlas .deckkopf-name { font-size: clamp(1.9rem, 3vw, 3rem); overflow-wrap: anywhere; max-width: 30ch; margin-bottom: 1.4rem; }
.atlas .deckkopf-tat { margin-bottom: 1.4rem; gap: .6rem; }
.atlas .deckkopf-tat .cta { width: auto; margin: 0; padding: .7rem 1rem; font-size: .85rem; }
.atlas .deckkopf-tat .knopf-schlicht { display: inline-flex; align-items: center; font-size: .83rem; }
.atlas .deckkopf-fakten { gap: .7rem 1rem; }
.atlas .deckkopf-fakten > li + li::before { content: none; }
.atlas .deckkopf-fakten .ist-format { flex-wrap: wrap; }
.atlas .deckkopf-fakten select { min-height: 40px; border-radius: 6px; }
.atlas .sprungleiste { background: var(--ground-deep); border-color: var(--line); box-shadow: none; }
.atlas .sprungleiste a { font-size: .82rem; color: var(--text-2); min-height: 44px; display: flex; align-items: center; }
.atlas .sprungleiste a.aktiv { color: var(--gold); background: var(--surface-2); }
.atlas.hat-ergebnis main [id], .atlas.hat-ergebnis main .anker { scroll-margin-top: 1rem; }
.atlas .gruppe { display: flex; flex-direction: column; gap: 1.5rem; }
.atlas .gruppe-marke { font-family: var(--f-display); font-weight: 400; font-size: 1.8rem; letter-spacing: 0; text-transform: none; color: var(--text); margin: 2rem 0 0; padding: 0; border: 0; }
.atlas .gruppe-marke::before, .atlas .gruppe-marke::after { display: none; }
.atlas .block { background: var(--surface); border: 0; border-radius: var(--radius); padding: clamp(1.15rem, 2.4vw, 2rem); box-shadow: none; }
.atlas .block .block { padding: 0; background: transparent; border-radius: 0; }
.atlas .klein-label { font-family: var(--f-body); font-size: 1.05rem; line-height: 1.45; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--text); margin-bottom: .75rem; }
.atlas .block-text { max-width: 75ch; line-height: 1.7; color: var(--text-2); }
.atlas .tipps { padding: 0; background: transparent; border: 0; border-radius: 0; }
.atlas .tippliste { gap: 0; }
.atlas .tippliste > li { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 1rem 0; }
.atlas .t-stufe { text-transform: none; letter-spacing: 0; font-size: .75rem; }
.atlas .mza-legalitaet { border: 0; }
.atlas .mza-legalitaet-regel { border-color: var(--line); }
.atlas .mza-legalitaet-regel { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding-inline: 0; }
.regeln-details > summary { cursor: pointer; padding: .8rem 0; color: var(--gold); font-size: .88rem; }
.atlas .deck-seite .block h2.klein-label, .atlas .deck-seite .tipps > h2.klein-label { font-family: var(--f-body); font-size: 1.1rem; font-weight: 600; margin-bottom: .75rem; }
.atlas .saeule { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1.3rem minmax(0, 1fr) 1.3rem; justify-content: stretch; gap: .25rem; text-align: center; }
.atlas .saeule-plot { height: 100%; width: 100%; display: flex; align-items: flex-end; }
.atlas .saeule-balken { display: block; background: var(--gold); min-height: 0; box-shadow: none; }
.atlas .mza-legalitaet-fuss { line-height: 1.7; }
.atlas .kachel, .atlas .bracket { border-radius: var(--radius); background: var(--surface); }
.atlas .teilen-fallback { width: 100%; min-height: 44px; padding: .7rem; }
.atlas .werkzeug-fuss { max-width: 1440px; margin: 0 auto; padding: 2rem clamp(1rem, 3vw, 2.5rem); line-height: 1.7; border-top: 1px solid var(--line); }
.laden-schritt { color: var(--text-2); font-size: .85rem; line-height: 1.65; }
.atlas .dl-ansicht label { min-height: 40px; display: inline-flex; align-items: center; }
.atlas .h-knoepfe { flex-wrap: wrap; }
.atlas .h-knoepfe .cta { width: auto; }
@media (min-width: 1100px) {
  .atlas.hat-ergebnis { display: grid; grid-template-columns: minmax(12rem, 1fr) minmax(0, 65rem) minmax(1.5rem, 1fr); align-items: start; }
  .hat-ergebnis .kopfbereich { grid-column: 1 / -1; position: sticky; top: 0; z-index: 30; }
  .hat-ergebnis .sprungleiste { grid-column: 1; position: sticky; top: calc(var(--kopf-hoehe, 90px) + 1.75rem); margin: 2.5rem 1.2rem 0 auto; width: 11rem; padding: 0; border: 0; background: transparent; max-height: calc(100vh - 130px); overflow-y: auto; }
  .hat-ergebnis .sprungleiste ul { display: flex; flex-direction: column; gap: .25rem; overflow: visible; padding: 0; }
  .hat-ergebnis .sprungleiste a { border-radius: 6px; padding: .65rem 1rem; border: 0; white-space: normal; }
  .hat-ergebnis .deck-seite { grid-column: 2; width: 100%; padding: 2.5rem 1.25rem 5rem; }
  .hat-ergebnis .werkzeug-fuss { grid-column: 2; width: 100%; }
}
@media (max-width: 1099px) {
  .atlas-nutzen > div { grid-template-columns: 1fr; gap: .3rem; }
  .atlas .sprungleiste { position: sticky; top: 0; z-index: 25; }
  .atlas .sprungleiste { width: 100%; max-width: 100vw; overflow: hidden; }
  .atlas .sprungleiste ul { max-width: 100%; overflow-x: auto; }
}
@media (max-width: 400px) { .werkzeug .kopf { padding-inline: .65rem; gap: .35rem; } .werkzeug .haupt-nav a { padding-inline: .5rem; } }
@media (max-width: 760px) {
  .atlas .deck-seite { padding-top: 1.4rem; }
  .import-layout { display: flex; flex-direction: column; gap: 2.5rem; }
  .atlas .einstieg { width: 100%; padding: 0; }
  .atlas .einstieg h1 { font-size: clamp(2rem, 7.7vw, 3rem); }
  .atlas .einstieg-text { font-size: .94rem; margin-bottom: 1.4rem; }
  .atlas .deck-form textarea { min-height: 11rem; }
  .atlas .reiter label { justify-content: center; padding-inline: .5rem; }
  .atlas-einstieg { width: 100%; }
  .atlas-bild { aspect-ratio: 1.7; object-position: center 40%; }
  .atlas-bildtext { padding: 1.3rem 0 0; }
  .atlas-nutzen > div { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .75rem; }
  .atlas .deckkopf-name { margin-bottom: 1rem; }
  .atlas .deckkopf-tat { gap: .4rem; }
  .atlas .deckkopf-tat .knopf-schlicht { padding: .6rem .75rem; }
  .atlas .block { padding: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
.atlas .farbwahl-form { margin-block: 1.5rem; }
.atlas .farbwahl-form h2 { font-size: 1.1rem; }
.atlas .farbwahl-form p { color: var(--text-2); margin-block: .5rem 1rem; }
.atlas .farbwahl-felder { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; }
.atlas .farbwahl-felder label { display: grid; gap: .5rem; flex: 1 1 14rem; min-width: 0; overflow-wrap: anywhere; }
.atlas .farbwahl-felder select { width: 100%; min-height: 46px; font-size: 16px; padding: .6rem; color: var(--text); background: var(--ground-deep); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.atlas .farbwahl-felder .cta { white-space: normal; }
