/* Landingpage 3D-Koepler – ohne Skripte und ohne Anfragen an Dritte; Schrift lokal (schrift.css). */
:root {
  --bg: #f6f8f8;
  --flaeche: #ffffff;
  --flaeche-2: #eaf0f0;
  --text: #1c2327;
  --gedimmt: #4f5d63;
  --linie: #d5dfe0;
  --akzent: #0f5c63;
  --akzent-hell: #f97316;
  --akzent-weich: #e3f1f2;
  --gruen: #137a3a;
  --tuerkis: #b4500b;
  --rot: #b4232a;
  --rot-weich: #fde8ea;
  --gelb-weich: #fff3d6;
  --gelb-text: #7a4b00;
  --radius: 16px;
  --schatten: 0 10px 30px rgb(29 29 40 / 0.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1415;
    --flaeche: #162022;
    --flaeche-2: #1e2b2e;
    --text: #eef3f3;
    --gedimmt: #a9b9bc;
    --linie: #2c3d40;
    --akzent: #5cc4cc;
    --akzent-hell: #fb923c;
    --akzent-weich: #14302f;
    --gruen: #5fd08a;
    --tuerkis: #fdba74;
    --rot: #ff8a90;
    --rot-weich: #3a1c20;
    --gelb-weich: #3a2f12;
    --gelb-text: #ffd27a;
    --schatten: 0 10px 30px rgb(0 0 0 / 0.4);
  }
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2rem, 4.5vw + 1rem, 3.4rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.6rem, 2vw + 1rem, 2.2rem);
  font-weight: 750;
}
h3 {
  font-size: 1.2rem;
}
p {
  margin: 0 0 1em;
}
a {
  color: var(--akzent);
}
:focus-visible {
  outline: 3px solid var(--akzent-hell);
  outline-offset: 3px;
  border-radius: 6px;
}

.breite {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}
.schmal {
  max-width: 760px;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--flaeche);
  padding: 0.5rem 1rem;
  z-index: 10;
}

/* Kopf */
.kopf {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linie);
}
.kopf-zeile {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 0.6rem;
}
.marke {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 750;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}
.kopf-nav {
  display: none;
  gap: 1.4rem;
}
.kopf-nav a {
  color: var(--gedimmt);
  text-decoration: none;
  font-size: 0.95rem;
}
.kopf-nav a:hover {
  color: var(--text);
}
@media (min-width: 860px) {
  .kopf-nav {
    display: flex;
  }
}

/* Knöpfe */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.6rem 1.3rem;
  border-radius: 12px;
  background: var(--akzent);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s;
}
@media (prefers-color-scheme: dark) {
  .knopf {
    color: #06201f;
  }
}
.knopf:hover {
  transform: translateY(-1px);
  box-shadow: var(--schatten);
}
.knopf-klein {
  min-height: 40px;
  padding: 0.35rem 0.9rem;
  font-size: 0.95rem;
}
.knopf-zweit {
  background: transparent;
  color: var(--akzent);
  border-color: var(--akzent);
}
.knopf-hell {
  background: #fff;
  color: #0b474d;
}
.knopf-rand {
  background: transparent;
  color: #fff;
  border-color: rgb(255 255 255 / 0.7);
}
.knopf-reihe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0.75rem;
}
.knopf-reihe.mittig {
  justify-content: center;
}

/* Einstieg */
.einstieg {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  background: radial-gradient(900px 400px at 85% -10%, var(--akzent-weich), transparent 70%);
}
.einstieg-raster {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 960px) {
  .einstieg-raster {
    grid-template-columns: 1.1fr 0.9fr;
  }
}
.marke-zeile {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--tuerkis);
  background: color-mix(in srgb, var(--tuerkis) 12%, transparent);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}
.gross {
  font-size: 1.2rem;
  color: var(--gedimmt);
  max-width: 38em;
}
.klein {
  font-size: 0.9rem;
  color: var(--gedimmt);
}

/* Skizze der Oberfläche */
.skizze {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 20px;
  box-shadow: var(--schatten);
  overflow: hidden;
}
.skizze-kopf {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: var(--flaeche-2);
}
.skizze-kopf span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--linie);
}
.skizze-inhalt {
  padding: 1rem;
  display: grid;
  gap: 0.6rem;
}
.skizze-titel {
  font-weight: 700;
  margin: 0;
}
.skizze-zeile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
  border: 1px solid var(--linie);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  font-size: 0.92rem;
}
.skizze-zeile.rot {
  background: var(--rot-weich);
  border-color: color-mix(in srgb, var(--rot) 30%, transparent);
}
.skizze-zeile div {
  min-width: 0;
}
.skizze-zeile strong,
.skizze-zeile small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.skizze-zeile small {
  color: var(--gedimmt);
}
.chip {
  flex: none;
  font-size: 0.8rem;
  font-weight: 650;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
}
.chip-rot {
  background: var(--rot);
  color: #fff;
}
@media (prefers-color-scheme: dark) {
  .chip-rot {
    color: #2a0b0e;
  }
}
.chip-gelb {
  background: var(--gelb-weich);
  color: var(--gelb-text);
}
.balken {
  flex: none;
  width: 84px;
  height: 8px;
  border-radius: 999px;
  background: var(--flaeche-2);
  overflow: hidden;
}
.balken i {
  display: block;
  height: 100%;
  background: var(--akzent);
}
.skizze-knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.3rem;
}
.mini {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--linie);
}
.mini-voll {
  background: var(--akzent);
  border-color: var(--akzent);
  color: #fff;
}
@media (prefers-color-scheme: dark) {
  .mini-voll {
    color: #06201f;
  }
}

/* Abschnitte */
.abschnitt {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.abschnitt-hell {
  background: var(--flaeche);
  border-block: 1px solid var(--linie);
}
.abschnitt-farbe {
  background: linear-gradient(135deg, #0b474d, #0f5c63 60%, #13737b);
  color: #fff;
  text-align: center;
}
.abschnitt-farbe p {
  font-size: 1.1rem;
  opacity: 0.95;
}
.einleitung {
  color: var(--gedimmt);
  max-width: 46em;
  margin-bottom: 1.75rem;
}
.zwei,
.drei {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 820px) {
  .zwei {
    grid-template-columns: 1fr 1fr;
  }
  .zwei.mitte {
    align-items: center;
    gap: 2.5rem;
  }
  .drei {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}
.drei article p {
  color: var(--gedimmt);
  margin: 0;
}
.karte {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--schatten);
}
.karte-marke {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--tuerkis);
  margin: 0 0 0.3rem;
}
.ehrlich {
  background: var(--flaeche-2);
  box-shadow: none;
}
ul.haken,
ul.striche {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
ul.haken li,
ul.striche li {
  position: relative;
  padding-left: 1.7rem;
}
ul.haken li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.45em;
  width: 0.9rem;
  height: 0.5rem;
  border-left: 3px solid var(--gruen);
  border-bottom: 3px solid var(--gruen);
  transform: rotate(-45deg);
}
ul.striche li::before {
  content: '';
  position: absolute;
  left: 0.2rem;
  top: 0.8em;
  width: 0.8rem;
  height: 2px;
  background: var(--gedimmt);
}

/* Fragen */
details {
  border-bottom: 1px solid var(--linie);
  padding: 0.9rem 0;
}
summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 1.05rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--akzent);
  flex: none;
}
details[open] summary::after {
  content: '–';
}
details p {
  color: var(--gedimmt);
  margin: 0.4rem 0 0.2rem;
}

/* Fuß und Textseiten */
.fuss {
  border-top: 1px solid var(--linie);
  padding: 1.5rem 0 2.5rem;
  font-size: 0.92rem;
  color: var(--gedimmt);
}
.fuss-zeile {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}
.fuss nav {
  display: flex;
  gap: 1.25rem;
}
.fuss p {
  margin: 0;
}
.textseite {
  padding: 3rem 0 4rem;
}
.textseite h1 {
  font-size: 2rem;
}
.textseite h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
}
.offen {
  background: var(--gelb-weich);
  color: var(--gelb-text);
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  font-weight: 650;
}

/* ---- 3D-Koepler ---- */
.marke span {
  display: grid;
  line-height: 1.15;
}
.marke small {
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--gedimmt);
}
@media (max-width: 520px) {
  .marke small {
    display: none;
  }
}
.kurz {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  font-size: 0.95rem;
  color: var(--gedimmt);
}
.kurz li::before {
  content: '';
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--akzent-hell);
  vertical-align: 0.08em;
}
.bild {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 20px;
  box-shadow: var(--schatten);
  padding: 1rem;
}
.bild svg {
  display: block;
  width: 100%;
  height: auto;
}
.notiz {
  margin: 1rem 0 0;
  padding: 0.7rem 0.9rem;
  border-left: 4px solid var(--akzent-hell);
  background: var(--flaeche-2);
  border-radius: 0 10px 10px 0;
  font-size: 0.95rem;
  color: var(--gedimmt);
}
.schritte {
  list-style: none;
  counter-reset: schritt;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
@media (min-width: 900px) {
  .schritte {
    grid-template-columns: repeat(5, 1fr);
  }
}
.schritte li {
  counter-increment: schritt;
  background: var(--bg);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem 1.2rem;
}
.schritte li::before {
  content: counter(schritt);
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--akzent);
  color: #fff;
  font-weight: 750;
  margin-bottom: 0.7rem;
}
@media (prefers-color-scheme: dark) {
  .schritte li::before {
    color: #06201f;
  }
}
.schritte h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3em;
}
.schritte p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--gedimmt);
}
.daten {
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0;
}
.daten div {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--linie);
}
@media (max-width: 480px) {
  .daten div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
}
.daten dt {
  font-weight: 650;
}
.daten dd {
  margin: 0;
  color: var(--gedimmt);
}
.ruhig {
  box-shadow: none;
  background: var(--flaeche-2);
}
.klein-hell {
  font-size: 0.92rem;
  opacity: 0.85;
  margin: 0.5rem 0 0;
}
.fuss p a {
  color: inherit;
}

/* Band mit Verweis auf den Kalkulator */
.abschnitt-band {
  padding-block: clamp(1.5rem, 4vw, 2.5rem);
}
.band {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  background: var(--akzent-weich);
  border: 1px solid var(--linie);
  border-radius: 20px;
  padding: clamp(1.25rem, 3vw, 2rem);
}
.band h2 {
  font-size: clamp(1.3rem, 1.5vw + 1rem, 1.7rem);
}
.band p {
  margin: 0 0 0.5em;
  max-width: 44em;
}
@media (min-width: 820px) {
  .band {
    grid-template-columns: 1fr auto;
    gap: 2rem;
  }
}

/* ---- Phase 1: Bewegung nur mit CSS, einmalig; bei „Bewegung reduzieren“ alles aus ---- */

/* Typenschild wird „gelasert“: Abdeckungen in Metallfarbe geben die Zeilen nacheinander frei, der Laserpunkt fährt mit. */
.gravur {
  transform-box: fill-box;
  transform-origin: right center;
  transform: scaleX(0);
}
.gravur-code,
.strahl {
  opacity: 1;
}
.laserpunkt {
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .gravur-1 {
    animation: freilegen 1.1s 0.4s linear both;
  }
  .gravur-2 {
    animation: freilegen 0.8s 1.6s linear both;
  }
  .gravur-3 {
    animation: freilegen 0.8s 2.5s linear both;
  }
  .gravur-code {
    animation: aufleuchten 0.5s 3.4s ease-out both;
  }
  .strahl {
    animation: aufleuchten 0.6s 3.6s ease-out both;
  }
  .laserpunkt {
    animation: laserweg 3.3s 0.4s linear both;
  }
}
@keyframes freilegen {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}
@keyframes aufleuchten {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* Weg des Laserpunkts in Koordinaten der Zeichnung (Zeile 1: y 66, Zeile 2: y 100, Zeile 3: y 120) */
@keyframes laserweg {
  0% {
    opacity: 1;
    transform: translate(58px, 66px);
  }
  33% {
    transform: translate(246px, 66px);
  }
  36% {
    transform: translate(58px, 100px);
  }
  60% {
    transform: translate(194px, 100px);
  }
  63% {
    transform: translate(58px, 120px);
  }
  88% {
    opacity: 1;
    transform: translate(194px, 120px);
  }
  100% {
    opacity: 0;
    transform: translate(194px, 120px);
  }
}

/* Dezentes Einblenden beim Scrollen – nur wo der Browser scroll-gesteuerte Animationen kann; sonst sofort sichtbar */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .einblenden {
      animation: einblenden linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 25%;
    }
  }
}
@keyframes einblenden {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Zahlenband */
.zahlenband {
  background: var(--flaeche);
  border-block: 1px solid var(--linie);
  padding-block: 1.4rem;
}
.zahlen {
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) {
  .zahlen {
    grid-template-columns: repeat(3, 1fr);
  }
}
.zahl {
  margin: 0;
  display: grid;
  gap: 0.15rem;
  text-align: center;
}
.zahl strong {
  font-size: clamp(1.7rem, 2.5vw + 1rem, 2.4rem);
  line-height: 1.1;
  color: var(--akzent);
}
.zahl span {
  color: var(--gedimmt);
  font-size: 0.95rem;
}

/* Ablauf als Zeitleiste: Verbindungsstrich im Abstand zwischen den Karten – senkrecht am Handy, waagerecht ab 900 px */
.zeitleiste li {
  position: relative;
}
.zeitleiste li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: calc(2.2rem - 1px);
  top: calc(100% + 1px);
  width: 2px;
  height: calc(1rem - 2px);
  background: var(--akzent);
}
@media (min-width: 900px) {
  .zeitleiste li:not(:last-child)::after {
    left: calc(100% + 1px);
    top: calc(2.2rem - 1px);
    width: calc(1rem - 2px);
    height: 2px;
  }
}

/* Bewegung reduzieren: keine Animationen und Übergänge */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
