/* Himmellabor · Gestaltung "Weiter Himmel"
   Eigene Bildsprache aus den Markenbildern (siehe MARKENFARBEN.md auf dem Stick):
   das Blau ist Tiefe und Rand, die Wolkentöne sind die grosse Fläche,
   das Orange ist ein einzelner, seltener Akzent. Verlauf statt Farbfläche. */

:root {
  /* Markenfarben, gemessen aus den Bildern */
  --orange: #FB8806;
  --schriftblau: #0676A2;
  --himmel-tief: #027AA6;
  --himmel-hell: #0486AF;
  --wolke-1: #6DAAB4;
  --wolke-2: #79AFB5;
  --wolke-3: #A5C1BB;
  --wolke-4: #B5D0CE;
  --wolke-5: #CED4C8;

  /* Abgeleitete Flächen und Schrift */
  --nebel: #F2F6F5;
  --dunst: #E4EEEC;
  --weiss: #FFFFFF;
  --tinte: #17394A;
  --tinte-weich: #47626D;
  --linie: #C9DAD8;
  --nacht: #0A4A63;

  --schrift-titel: "Hanken Grotesk", "Inter", system-ui, sans-serif;
  --schrift-text: "Inter", system-ui, sans-serif;

  --breite: 72rem;
  --lesebreite: 42rem;
  --rand: clamp(1rem, 4vw, 2.5rem);
  --radius: 14px;
  --schatten: 0 1px 2px rgba(10, 74, 99, 0.06), 0 12px 32px -12px rgba(10, 74, 99, 0.18);
}

/* ---- Grundlagen ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--nebel);
  color: var(--tinte);
  font-family: var(--schrift-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--schriftblau); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--himmel-tief); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--schrift-titel); line-height: 1.15; letter-spacing: -0.015em; margin: 0; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--breite); margin-inline: auto; padding-inline: var(--rand); }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--weiss); padding: 0.5rem 1rem; }

/* ---- Wortmarke ---- */
.wortmarke {
  font-family: var(--schrift-titel);
  font-weight: 500;
  color: var(--orange);
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1;
}
.wortmarke:hover { color: var(--orange); }

/* ---- Kopf, liegt über dem Himmel ---- */
.kopf { position: absolute; inset: 0 0 auto 0; z-index: 5; }
.kopf__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem 2rem; flex-wrap: wrap;
  padding-block: 1.25rem;
}
.kopf .wortmarke { font-size: 1.6rem; }
.home .kopf .wortmarke { visibility: hidden; }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; font-size: 0.95rem; font-weight: 500; }
@media (max-width: 26rem) { .nav { gap: 0.25rem 1rem; } }
.nav a { color: var(--tinte); text-decoration: none; padding-block: 0.25rem; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--himmel-tief); border-bottom-color: var(--orange); }

/* ---- Himmel: das Bild mit seinen Verläufen ---- */
.himmel { position: relative; isolation: isolate; overflow: hidden; }
.himmel__bild { position: absolute; inset: 0; z-index: -2; }
.himmel__bild img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 20%; }
.himmel::before {
  /* Dunst von links für die Lesbarkeit, Blau oben als Rand, unten Übergang in den Nebel */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(2, 122, 166, 0.28) 0%, rgba(2, 122, 166, 0) 28%),
    linear-gradient(90deg, rgba(242, 246, 245, 0.92) 0%, rgba(242, 246, 245, 0.72) 42%, rgba(242, 246, 245, 0.08) 78%),
    linear-gradient(180deg, rgba(242, 246, 245, 0) 62%, var(--nebel) 100%);
}

/* Startseite */
.himmel--start { min-height: min(94vh, 56rem); display: flex; align-items: center; }
.himmel--start .himmel__inhalt { padding-block: 8rem 7rem; max-width: 40rem; }
.start__marke { font-size: clamp(3rem, 9vw, 5.75rem); display: inline-block; margin-bottom: 0.15em; }
.start__zeile {
  font-family: var(--schrift-titel); font-weight: 500;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem); color: var(--schriftblau);
  margin-bottom: 2.25rem;
}
.start__titel { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 700; color: var(--tinte); margin-bottom: 1rem; }
.start__lead { font-size: 1.15rem; color: var(--tinte-weich); max-width: 34rem; }

/* Unterseiten */
.himmel--seite { min-height: 22rem; display: flex; align-items: flex-end; }
.himmel--seite .himmel__inhalt { padding-block: 7.5rem 3rem; max-width: 46rem; }
.himmel--seite .himmel__bild img { object-position: 60% 35%; }
.seite__kicker {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--schriftblau); margin-bottom: 0.75rem;
}
.seite__titel { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; color: var(--tinte); margin-bottom: 0.75rem; }
.seite__lead { font-size: 1.15rem; color: var(--tinte-weich); margin: 0; }

/* ---- Knöpfe ---- */
.knoepfe { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.knopf {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.4rem; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; text-decoration: none;
  background: var(--himmel-tief); color: var(--weiss);
  border: 1.5px solid var(--himmel-tief);
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.knopf:hover { background: var(--nacht); border-color: var(--nacht); color: var(--weiss); text-decoration: none; }
.knopf--leise { background: rgba(255, 255, 255, 0.55); color: var(--himmel-tief); }
.knopf--leise:hover { background: var(--weiss); color: var(--nacht); border-color: var(--nacht); }
.knopf--hell { background: var(--weiss); color: var(--himmel-tief); border-color: var(--weiss); }
.knopf--hell:hover { background: var(--nebel); color: var(--nacht); border-color: var(--nebel); }

/* ---- Abschnitte der Startseite ---- */
.abschnitt { padding-block: clamp(3.5rem, 8vw, 6rem); }
.abschnitt--weiss { background: var(--weiss); }
.kicker {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--schriftblau); margin-bottom: 0.9rem;
}
.h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 700; color: var(--tinte); margin-bottom: 1.25rem; }
.zweispaltig { display: grid; gap: 1.5rem 4rem; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .zweispaltig { grid-template-columns: 5fr 7fr; } }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--tinte); }
.leise { color: var(--tinte-weich); }

/* ---- Die Treppe: vier Stufen, die zum Himmel steigen ---- */
.treppe {
  list-style: none; margin: 3rem 0 0; padding: 0;
  display: grid; gap: 1.25rem; grid-template-columns: 1fr;
  counter-reset: stufe;
}
@media (min-width: 40rem) { .treppe { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) {
  .treppe { grid-template-columns: repeat(4, 1fr); }
  .treppe > li:nth-child(1) { margin-top: 4.5rem; }
  .treppe > li:nth-child(2) { margin-top: 3rem; }
  .treppe > li:nth-child(3) { margin-top: 1.5rem; }
}
.stufe {
  position: relative; height: 100%;
  display: flex; flex-direction: column;
  background: var(--weiss); border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.4rem; box-shadow: var(--schatten);
  text-decoration: none; color: var(--tinte);
  border-top: 4px solid var(--wolke-2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.treppe > li:nth-child(2) .stufe { border-top-color: var(--wolke-1); }
.treppe > li:nth-child(3) .stufe { border-top-color: var(--himmel-hell); }
.treppe > li:nth-child(4) .stufe { border-top-color: var(--himmel-tief); }
.stufe:hover { transform: translateY(-4px); color: var(--tinte); box-shadow: 0 2px 4px rgba(10,74,99,.08), 0 20px 40px -14px rgba(10,74,99,.28); }
.stufe__nr { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--schriftblau); margin-bottom: 0.6rem; }
.stufe__titel { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.6rem; }
.stufe__text { font-size: 0.97rem; color: var(--tinte-weich); flex: 1; }
.stufe__mehr { font-weight: 600; font-size: 0.93rem; color: var(--himmel-tief); }
.stufe:hover .stufe__mehr { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .stufe, .stufe:hover { transition: none; transform: none; } }

/* ---- Grundsätze in Kürze ---- */
.saetze { display: grid; gap: 2rem 3rem; grid-template-columns: 1fr; margin-top: 2.5rem; }
@media (min-width: 44rem) { .saetze { grid-template-columns: 1fr 1fr; } }
.satz { border-top: 1px solid var(--linie); padding-top: 1.25rem; }
.satz h3 { font-size: 1.15rem; font-weight: 700; color: var(--schriftblau); margin-bottom: 0.5rem; }
.satz p { color: var(--tinte-weich); margin: 0; }

/* ---- Einladung mit Wolkenfeld ---- */
.einladung { position: relative; isolation: isolate; overflow: hidden; color: var(--weiss); }
.einladung__bild { position: absolute; inset: 0; z-index: -2; }
.einladung__bild img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.einladung::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(10, 74, 99, 0.94) 0%, rgba(2, 122, 166, 0.86) 45%, rgba(4, 134, 175, 0.42) 100%);
}
.einladung .wrap { padding-block: clamp(4rem, 9vw, 6.5rem); }
.einladung__inhalt { max-width: 38rem; }
.einladung .kicker { color: var(--wolke-4); }
.einladung h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 700; margin-bottom: 1rem; }
.einladung p { color: rgba(255, 255, 255, 0.92); font-size: 1.1rem; }

/* ---- Lesebereich der Unterseiten ---- */
.blatt { background: var(--weiss); }
.blatt__inner { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem); }
.prose { max-width: var(--lesebreite); }
.prose > * { margin-block: 0; }
.prose > * + * { margin-top: 1em; }
.prose > :first-child { margin-top: 0; }
.prose > h2 { font-size: 1.55rem; font-weight: 700; color: var(--tinte); margin-top: 2.5rem; }
.prose > h2:first-child { margin-top: 0; }
.prose h2 a, .prose h3 a { color: inherit; text-decoration: none; }
.prose > h3 { font-size: 1.2rem; font-weight: 700; color: var(--schriftblau); margin-top: 1.75rem; }
.prose > h2 + h3 { margin-top: 1rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.4rem; }
.prose li::marker { color: var(--wolke-1); }
.prose ol li::marker { color: var(--schriftblau); font-weight: 700; }
.prose strong { color: var(--tinte); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.75rem 0.9rem 0.75rem 0; border-bottom: 1px solid var(--linie); }
.prose th { font-family: var(--schrift-titel); color: var(--schriftblau); font-weight: 700; border-bottom-width: 2px; }
.prose td:last-child { white-space: nowrap; color: var(--tinte-weich); }
.prose blockquote {
  margin: 1.5rem 0; padding: 1.1rem 1.4rem; border-radius: var(--radius);
  background: linear-gradient(120deg, var(--dunst), var(--nebel)); border-left: 4px solid var(--wolke-1);
  color: var(--tinte);
}
.prose blockquote p { margin: 0; }

/* Hinweis "entsteht im Auftrag" */
.hinweis {
  max-width: var(--lesebreite); margin-bottom: 2rem;
  padding: 1rem 1.25rem; border-radius: var(--radius);
  background: linear-gradient(120deg, var(--dunst), var(--nebel));
  border-left: 4px solid var(--orange); font-size: 0.97rem; color: var(--tinte);
}

/* ---- Stufen-Wegweiser auf den Stufenseiten ---- */
.wegweiser { border-bottom: 1px solid var(--linie); background: var(--weiss); }
.wegweiser ol {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.wegweiser a {
  display: block; padding: 1rem 0.75rem 0.9rem 0; text-decoration: none;
  color: var(--tinte-weich); font-size: 0.88rem; line-height: 1.3;
  border-top: 3px solid transparent;
}
.wegweiser a span { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wolke-1); }
.wegweiser a:hover { color: var(--himmel-tief); }
.wegweiser a[aria-current="page"] { color: var(--tinte); font-weight: 600; border-top-color: var(--orange); }
.wegweiser a[aria-current="page"] span { color: var(--schriftblau); }
@media (max-width: 40rem) { .wegweiser a b { display: none; } }

.weiter {
  max-width: var(--lesebreite); margin-top: 3.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--linie);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
}
.weiter a { text-decoration: none; font-weight: 600; }
.weiter a span { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tinte-weich); }
.weiter a:hover { text-decoration: underline; }
.weiter__next { text-align: right; margin-left: auto; }

/* ---- Fuss: der Himmel wird tief ---- */
.fuss {
  background: linear-gradient(180deg, var(--himmel-tief) 0%, var(--nacht) 100%);
  color: rgba(255, 255, 255, 0.88); font-size: 0.95rem;
}
.fuss__inner { padding-block: 3rem 2.5rem; display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .fuss__inner { grid-template-columns: 1.2fr 1fr 1fr; } }
.fuss .wortmarke { font-size: 1.8rem; display: inline-block; margin-bottom: 0.5rem; }
.fuss__zeile { color: var(--wolke-4); margin: 0; }
.fuss h2 { font-family: var(--schrift-text); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wolke-4); margin-bottom: 0.75rem; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li + li { margin-top: 0.35rem; }
.fuss a { color: var(--weiss); text-decoration: none; }
.fuss a:hover { color: var(--weiss); text-decoration: underline; }
.fuss__unten { border-top: 1px solid rgba(255, 255, 255, 0.16); padding-block: 1.25rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); }
.fuss__unten p { margin: 0; }

/* ---- 404 ---- */
.fehler { padding-block: 9rem 6rem; max-width: 36rem; }

.lead--breit { max-width: 44rem; }
.knopf--rand { background: transparent; border-color: rgba(255, 255, 255, 0.6); }
.knopf--rand:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--weiss); }
.fragen__schluss { margin-top: 2.5rem !important; padding-top: 1.5rem; border-top: 1px solid var(--linie); color: var(--tinte-weich); }

/* Handy: Navigation umbrechen lassen, Himmel darunter mehr Luft geben */
@media (max-width: 40rem) {
  .home .kopf .wortmarke { display: none; }
  .nav { font-size: 0.9rem; gap: 0.15rem 1.1rem; }
  .himmel--start .himmel__inhalt { padding-top: 7.5rem; }
  .himmel--seite .himmel__inhalt { padding-top: 9rem; }
}
