/* =============================================================================
 * Ordessio
 *
 * Eine Schrift, viel Weiss, eine Farbe. Die Hierarchie tragen Groesse und
 * Gewicht, nicht Linien, Rahmen und Etiketten.
 *
 * Kein Dunkelmodus. Das ist keine Auslassung, sondern die Hausregel: die
 * Oberflaechen von Ordessio sind hell, und eine Webseite, die sich je nach
 * Geraet umfaerbt, waere eine zweite Farbwelt neben dem Produkt.
 * ========================================================================== */

:root {
  color-scheme: light;

  --weiss:      #ffffff;
  --grund:      #fbfbfc;
  --flaeche:    #f4f5f7;
  --flaeche-2:  #eceef1;

  --tinte:      #0b0d0f;
  --tinte-2:    #52565c;
  /* Gemessen: #83878d kam nur auf 3,5:1 und traegt die kleinsten Zeilen -
     Fusszeile und die (optional)-Vermerke. #6b6f76 liegt bei 4,9:1 auf dem
     Grund und 4,6:1 auf der hellen Flaeche, also ueberall ueber der Schwelle. */
  --tinte-3:    #6b6f76;
  --linie:      #e3e5e8;

  /* Dieselbe Marke wie die Konsole - oklch(0.48 0.11 185). Webseite und
     Produkt teilen eine Farbe statt zwei aehnlicher. 5,9:1 auf Weiss. */
  --marke:      #007166;
  --marke-tief: #00594f;
  --marke-flor: #eef5f4;

  --rand-radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--grund);
  color: var(--tinte);
  font-family: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
}

img, canvas { display: block; max-width: 100%; }

a { color: var(--marke); text-underline-offset: 3px; }
a:hover { color: var(--marke-tief); }

:focus-visible { outline: 2px solid var(--marke); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.bahn  { width: min(100% - 2.5rem, 66rem); margin-inline: auto; }
.eng   { width: min(100% - 2.5rem, 46rem); margin-inline: auto; }

/* ------------------------------------------------------------------ Kopf */
.kopf {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--grund) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.kopf.gescrollt { border-bottom-color: var(--linie); }
.kopf .bahn { display: flex; align-items: center; gap: 2rem; height: 52px; }

.marke-wort {
  font-size: 1.16rem; font-weight: 600; letter-spacing: -0.03em;
  color: var(--tinte); text-decoration: none;
}
.kopf nav { margin-left: auto; display: flex; align-items: center; gap: 1.75rem; }
/* padding-block hebt die Links auf 24 Pixel Hoehe. Darunter trifft am
   Telefon nur, wer zielt. */
.kopf nav a { font-size: .92rem; color: var(--tinte-2); text-decoration: none; padding-block: .3rem; }
.kopf nav a:hover { color: var(--tinte); }
.kopf nav a.rufknopf { color: var(--marke); font-weight: 500; }
@media (max-width: 44rem) { .kopf nav a.eng-weg { display: none; } }

/* ---------------------------------------------------------------- Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-size: 1rem; font-weight: 500;
  padding: .78rem 1.5rem; border-radius: 999px;
  border: 1px solid var(--marke); background: var(--marke); color: #fff;
  text-decoration: none; cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.knopf:hover { background: var(--marke-tief); border-color: var(--marke-tief); color: #fff; transform: translateY(-1px); }
.knopf.leise { background: transparent; color: var(--marke); border-color: color-mix(in srgb, var(--marke) 35%, transparent); }
.knopf.leise:hover { background: var(--marke-flor); color: var(--marke-tief); border-color: var(--marke); }

/* ------------------------------------------------------------- Aufmacher */
.aufmacher { text-align: center; padding: clamp(3.5rem, 9vw, 7rem) 0 0; }
.aufmacher h1 {
  font-size: clamp(2.7rem, 7.4vw, 5.25rem);
  max-width: 15ch; margin-inline: auto;
}
.aufmacher .unterzeile {
  margin: clamp(1.1rem, 2.5vw, 1.6rem) auto 0;
  max-width: 40ch;
  font-size: clamp(1.06rem, 1.9vw, 1.32rem);
  color: var(--tinte-2);
  letter-spacing: -0.012em;
}
.aufmacher .knopfreihe { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* Die Bühne für das Gerät. Feste Seitenverhältnisse, damit beim Laden nichts
   springt — der Aufbau der Szene dauert einen Moment. */
.buehne {
  position: relative;
  width: min(100% - 1.5rem, 60rem);
  margin: clamp(-1rem, -1vw, 0rem) auto 0;
  aspect-ratio: 16 / 11;
  max-height: 78vh;
}
@media (max-width: 40rem) { .buehne { aspect-ratio: 4 / 3.6; } }
.buehne canvas { width: 100% !important; height: 100% !important; }

/* Solange WebGL fehlt oder die Szene nicht lädt, bleibt hier eine ruhige
   Fläche statt eines Lochs in der Seite. */
.buehne .ersatz {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--tinte-3); font-size: .9rem;
}
.buehne.geladen .ersatz { display: none; }

/* ---------------------------------------------------------- Abschnitte */
section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.hell { background: var(--weiss); border-block: 1px solid var(--linie); }

.kopfzeile { max-width: 24ch; }
.kopfzeile h2 { font-size: clamp(1.9rem, 4.2vw, 3.05rem); }
.kopfzeile + .fliess { margin-top: 1.25rem; }
.fliess { max-width: 50ch; font-size: clamp(1.02rem, 1.6vw, 1.14rem); color: var(--tinte-2); }
.fliess + .fliess { margin-top: 1rem; }

/* ------------------------------------------------- Gegenüberstellung */
.gegenueber {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
}
.spalte {
  background: var(--grund);
  border: 1px solid var(--linie);
  border-radius: var(--rand-radius);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.hell .spalte { background: var(--flaeche); border-color: transparent; }
.spalte h3 { font-size: 1.16rem; letter-spacing: -0.02em; margin-bottom: 1.1rem; }
.spalte li {
  display: flex; align-items: baseline; gap: .7rem;
  padding-block: .48rem; font-size: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--linie) 70%, transparent);
}
.spalte li:first-of-type { border-top: none; }
.spalte li::before {
  content: ""; flex: 0 0 auto;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--marke); transform: translateY(-2px);
}
.spalte.ohne li::before {
  border-radius: 1px; height: 1.5px; width: 9px;
  background: var(--tinte-3); transform: translateY(-4px);
}
.spalte.ohne li { color: var(--tinte-2); }

/* ------------------------------------------------------------ Merkmale */
.merkmale {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
}
.merkmal h3 { font-size: 1.3rem; letter-spacing: -0.025em; margin-bottom: .6rem; }
.merkmal p { color: var(--tinte-2); font-size: 1rem; }

/* -------------------------------------------------------------- Kontakt */
.kontakt-gitter {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 48rem) { .kontakt-gitter { grid-template-columns: 1fr; } }

form { display: grid; gap: 1rem; }
.zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 34rem) { .zeile { grid-template-columns: 1fr; } }

.feld { display: grid; gap: .38rem; }
.feld label { font-size: .84rem; font-weight: 500; color: var(--tinte-2); }
.feld input, .feld select, .feld textarea {
  font: inherit; font-size: 1rem; color: var(--tinte);
  background: var(--weiss);
  border: 1px solid var(--linie); border-radius: 8px;
  padding: .72rem .85rem; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.hell .feld input, .hell .feld select, .hell .feld textarea { background: var(--grund); }
.feld textarea { min-height: 7.5rem; resize: vertical; line-height: 1.5; }
.feld input:focus, .feld select:focus, .feld textarea:focus {
  outline: none; border-color: var(--marke);
  box-shadow: 0 0 0 3px var(--marke-flor);
}
.feld input:user-invalid, .feld textarea:user-invalid { border-color: #b3261e; }

.nebenweg h3 { font-size: 1.06rem; margin-bottom: .5rem; }
.nebenweg p { color: var(--tinte-2); font-size: .98rem; }
.nebenweg .anschrift {
  display: inline-block; margin-top: .8rem;
  font-size: 1.06rem; font-weight: 500;
}

/* ----------------------------------------------------------------- Fuss */
.fuss { border-top: 1px solid var(--linie); padding-block: 2.25rem 3rem; font-size: .9rem; color: var(--tinte-3); }
.fuss .bahn { display: flex; flex-wrap: wrap; gap: .75rem 2rem; align-items: baseline; }
.fuss nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 1.5rem; }
.fuss a { color: var(--tinte-2); text-decoration: none; padding-block: .25rem; display: inline-block; }
.fuss a:hover { color: var(--tinte); }

/* ------------------------------------------------- Rechtliche Unterseiten */
.rechtsblatt { padding-block: clamp(2.5rem, 6vw, 4rem) 5rem; }
.rechtsblatt h1 { font-size: clamp(2rem, 5vw, 2.9rem); margin-bottom: 1.5rem; }
.rechtsblatt h2 { font-size: 1.28rem; margin-top: 2.5rem; margin-bottom: .7rem; }
.rechtsblatt p, .rechtsblatt li { color: var(--tinte-2); }
.rechtsblatt p + p { margin-top: .9rem; }
.rechtsblatt ul { list-style: disc; padding-left: 1.25rem; }
.rechtsblatt li { margin-block: .35rem; }
.luecke {
  background: var(--marke-flor); border-bottom: 2px solid var(--marke);
  padding: .05em .35em; color: var(--tinte); font-weight: 500;
}

/* --------------------------------------------- Einblenden beim Scrollen */
@media (prefers-reduced-motion: no-preference) {
  .steigt { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
  .steigt.da { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------- Weitere Bühnen
 * Die zweite und dritte Szene stehen nicht im Aufmacher, sondern mitten im
 * Text. Sie dürfen breiter sein als die Textspalte — sie sind das Bild zum
 * Absatz darüber, nicht sein Rahmen.
 * ------------------------------------------------------------------------ */
.buehne.breit {
  width: min(100% - 1.5rem, 76rem);
  margin-block: clamp(1.5rem, 4vw, 3rem);
  aspect-ratio: 16 / 7;
}
.buehne.hoch { aspect-ratio: 16 / 8.5; }
@media (max-width: 48rem) {
  .buehne.breit { aspect-ratio: 4 / 3.4; }
  .buehne.hoch  { aspect-ratio: 4 / 3.6; }
}

/* ------------------------------------------------------------ Ablauffolge */
.folge {
  margin-top: clamp(2rem, 4vw, 3rem);
  list-style: none; padding: 0; counter-reset: schritt;
}
.folge li {
  counter-increment: schritt;
  display: grid; grid-template-columns: 3rem 1fr; gap: 1.25rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--linie);
}
.folge li:last-child { border-bottom: 1px solid var(--linie); }
.folge li::before {
  content: counter(schritt);
  font-size: .95rem; font-weight: 600; color: var(--marke);
  font-variant-numeric: tabular-nums; padding-top: .2rem;
}
.folge h3 { font-size: 1.3rem; letter-spacing: -0.025em; margin-bottom: .45rem; }
.folge p { color: var(--tinte-2); }

/* ---------------------------------------------------------------- Fragen */
.fragenliste { margin-top: clamp(1.5rem, 3vw, 2.5rem); border-top: 1px solid var(--linie); }
.fragenliste details { border-bottom: 1px solid var(--linie); }
.fragenliste summary {
  cursor: pointer; list-style: none;
  padding: 1.25rem 2.5rem 1.25rem 0;
  font-size: 1.12rem; font-weight: 500; letter-spacing: -0.02em;
  position: relative;
}
.fragenliste summary::-webkit-details-marker { display: none; }
/* Das Zeichen dreht sich beim Öffnen — ein Pluszeichen, das zum Minus wird,
   sagt mehr als ein Pfeil, der irgendwohin zeigt. */
.fragenliste summary::after {
  content: ""; position: absolute; right: .35rem; top: 50%;
  width: 13px; height: 13px;
  background:
    linear-gradient(var(--marke), var(--marke)) center/13px 1.5px no-repeat,
    linear-gradient(var(--marke), var(--marke)) center/1.5px 13px no-repeat;
  transform: translateY(-50%) rotate(0deg);
  transition: transform .22s ease;
}
.fragenliste details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
  background: linear-gradient(var(--marke), var(--marke)) center/13px 1.5px no-repeat;
}
.fragenliste details p {
  padding: 0 2.5rem 1.5rem 0;
  color: var(--tinte-2); max-width: 62ch;
}
