@font-face { font-family: Archivo; src: url("fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  --tinte: #12181F; --tief: #0D1217; --weiss: #F1F3F4; --grau: #B9C1C8;
  --orange: #EE4B23; --gelb: #F6A81C;
  --rand: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 8px; background: var(--tinte); }
body {
  position: relative; background: var(--tinte); color: var(--weiss);
  font: 400 clamp(1rem, .9rem + .3vw, 1.35rem)/1.5 Archivo, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
.mitte { width: 100%; max-width: calc(max(1080px, 60vw) + 2 * var(--rand)); margin-inline: auto; padding-inline: var(--rand); }

/* Sterne: main.js setzt sie rund um die Inhalte, nie hinter Text */
.sterne { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sterne .f { animation: funkeln 5s ease-in-out infinite alternate; }
.sterne .f:nth-child(3n) { animation-duration: 7s; animation-delay: -3s; }
@keyframes funkeln { to { opacity: .25; } }
body > header, main, footer { position: relative; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--gelb); outline-offset: 4px; }
h1, h2, h3 { font-weight: 800; font-stretch: 122%; letter-spacing: -.02em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.2rem + 4.2vw, 7rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.5vw, 3.4rem); margin-bottom: .5em; }
h3 { font-size: 1.3em; margin-bottom: .5em; }
p { text-wrap: pretty; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--weiss); color: var(--tinte); padding: 10px 16px; z-index: 5; }
.skip:focus { left: 8px; }

.kopf { display: flex; flex-wrap: wrap; gap: 6px 32px; align-items: center; justify-content: space-between; padding-block: 20px; }
.marke img { width: 180px; }
.kopf nav { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.kopf nav a { text-decoration: none; padding: 8px 0; }
.kopf nav a:hover { text-decoration: underline; }

.hero { text-align: center; overflow-x: clip; padding-bottom: clamp(32px, 3vw, 64px); }
.system { display: block; width: max(100%, 1080px); max-width: 2000px; height: auto; position: relative; left: 50%; translate: -50%; overflow: visible; }
.bahnen { fill: none; stroke: #f1f3f4; stroke-opacity: .42; stroke-width: 1.5; }
.hero-text { padding-top: 8px; }
.hero p { font-size: 1.2em; margin: .9em 0 1.3em; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: center; }
.knopf { display: inline-block; background: var(--orange); color: var(--tinte); font-weight: 700; padding: .85em 1.4em; text-decoration: none; transition: background-color .2s; }
.knopf:hover { background: var(--gelb); }
.link { padding: .6em 0; }
.link:hover, .wege a:hover { color: var(--gelb); }

.block { padding-block: clamp(56px, 5.6vw, 115px); text-align: center; }
.lead { font-size: 1.12em; }
.drei p, .ablauf p { color: #DDE2E5; }

/* Drei Planeten auf einer gemeinsamen Bahn */
.drei { --planet: clamp(150px, 10.4vw, 220px); position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 56px); margin-top: clamp(40px, 3.6vw, 72px); }
.drei::before { content: ""; position: absolute; left: 50%; top: calc(var(--planet) / 2); width: 100vw; translate: -50%; border-top: 1.5px solid #f1f3f46b; }
.drei article { position: relative; }
.drei img { width: var(--planet); margin: 0 auto 20px; }

.ablauf { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px clamp(24px, 3vw, 64px); counter-reset: s; margin-top: clamp(36px, 3.2vw, 64px); }
.ablauf li { position: relative; padding-top: 24px; counter-increment: s; }
.ablauf li::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--orange); transform-origin: left; }
.ablauf h3 { font-size: 1.2em; }
.ablauf h3::before { content: counter(s) ". "; }

.ich { display: flex; justify-content: center; align-items: center; gap: clamp(32px, 5vw, 64px); text-align: left; }
.portrait { position: relative; flex: none; width: clamp(230px, 18.75vw, 380px); aspect-ratio: 1; }
.portrait img { position: absolute; inset: 12%; width: 76%; height: 76%; border-radius: 50%; }
.bahn { position: absolute; inset: 2%; border: 1.5px solid #f1f3f46b; border-radius: 50%; animation: kreis 60s linear infinite; rotate: 48deg; }
.bahn i { position: absolute; left: 50%; top: 0; width: 20px; height: 20px; border-radius: 50%; translate: -50% -50%; background: var(--gelb); }
@keyframes kreis { to { transform: rotate(360deg); } }
.ich-text { max-width: 31em; }
.ich-text p + p { margin-top: .8em; }

.kontakt { position: relative; overflow: hidden; padding-bottom: 0; }
.kontakt .knoepfe { margin: 32px 0 28px; }
.wege { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 32px; }
.wege a { display: inline-block; padding: 8px 0; }
.horizont { --d: clamp(900px, 78vw, 1500px); width: var(--d); max-width: none; height: auto; position: relative; left: 50%; translate: -50%; margin: clamp(48px, 4vw, 90px) 0 calc(var(--d) * -.8); }

footer { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; padding-block: 22px 28px; font-size: .88em; color: var(--grau); background: var(--tief); box-shadow: 0 0 0 100vmax var(--tief); clip-path: inset(0 -100vmax); }
footer a { margin-left: 20px; }

/* Einblenden beim Scrollen: main.js setzt .auf (wartet) und .da (sichtbar). Ohne JS ist alles sichtbar. */
.auf { opacity: 0; transform: translateY(26px); }
.auf.planet { transform: translateX(-130px); }
.auf.bild { transform: scale(.82); }
.auf.horizont { transform: translateY(7%); }
.auf, .ablauf .auf::before { transition: opacity .8s ease-out, transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--w, 0s); }
.ablauf .auf::before { transform: scaleX(0); }
.auf.da { opacity: 1; transform: none; }
.ablauf .auf.da::before { transform: none; }
.messen .auf { transform: none; transition: none; }

/* Rechtstexte und 404 */
.text { padding: 28px var(--rand) 80px; max-width: calc(46em + 2 * var(--rand)); margin-inline: auto; }
.text h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); margin-bottom: .8em; overflow-wrap: break-word; hyphens: auto; }
.text p + p { margin-top: .8em; }
.text h2 { font-size: 1.25em; margin: 1.8em 0 .5em; }

@media (max-width: 760px) {
  .system { width: 820px; }
  .auf.planet:not(.da) { transform: translateX(-60px); }
  .drei { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .drei::before { display: none; }
  .drei img { width: 110px; margin-bottom: 14px; }
  .drei p, .lead { max-width: 30em; margin-inline: auto; }
  .ablauf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ich { flex-direction: column; text-align: center; gap: 20px; }
  .horizont { --d: 560px; }
}
@media (max-width: 480px) {
  .kopf { justify-content: center; }
  .kopf nav { gap: 2px 20px; }
  .ablauf { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .wege { flex-direction: column; }
  footer { justify-content: center; text-align: center; }
  footer a { margin: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bahn, .sterne .f { animation: none; }
}
