/* =========================================================================
   OWNALOOK — Website
   Die Gestaltung ist an die App gebunden, nicht neu erfunden. Farben, Maße
   und Schriftstufen stammen aus src/theme/ der App-Codebase (farben.ts,
   mass.ts, schrift.ts). Wer hier eine Farbe ändert, prüft vorher dort.

   Richtung seit dem 2026-09-09 (Bedienvision V1): weißer Grund, schwarze
   Handlungsflächen, Orange NUR als Akzent — nie als Knopffarbe.

   Kein JavaScript auf dieser Seite. Deshalb steht in der .htaccess
   script-src 'none'.
   ========================================================================= */

/* ---------- Schriften, selbst gehostet ---------- */

@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('../assets/fonts/instrument-serif.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('../assets/fonts/instrument-serif-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- Merkmale ---------- */

:root {
  /* Farbe — 1:1 aus src/theme/farben.ts */
  --grund: #FFFFFF;
  --flaeche-hoch: #F2F2F4;
  --linie: #E6E6EA;
  --linie-stark: #D4D4DA;
  --text: #18181B;
  --text-leise: #6B6B75;
  --text-schwach: #A1A1AB;
  --akzent: #FF6A1A;
  --akzent-gedrueckt: #E15A0E;
  --akzent-weich: #FFF1E8;
  --flaeche-dunkel: #18181B;
  --flaeche-dunkel-gedrueckt: #2E2E33;
  --auf-dunkel: #FFFFFF;
  --gut: #118A4E;
  --warnung: #B26E12;

  /* Maß — aus src/theme/mass.ts, für die Website nach oben verlängert */
  --winzig: 4px;
  --klein: 8px;
  --eng: 12px;
  --normal: 16px;
  --weit: 24px;
  --sehr-weit: 32px;
  --riesig: 48px;
  --abschnitt: 96px;

  --radius-klein: 8px;
  --radius-normal: 12px;
  --radius-gross: 16px;
  --radius-karte: 20px;
  --radius-blatt: 28px;
  --radius-rund: 999px;

  /* Schrift */
  --anzeige: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --text-familie: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --breite: 1140px;
  --breite-eng: 720px;
}

/* ---------- Grundlage ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--text-familie);
  font-size: 17px;
  line-height: 1.62;
  font-feature-settings: 'cv05' 1, 'cv08' 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 400;
  font-family: var(--anzeige);
  letter-spacing: -0.015em;
  line-height: 1.06;
  text-wrap: balance;
}

p { margin: 0 0 var(--normal); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 var(--normal); padding-left: 1.35em; }
li { margin-bottom: var(--klein); }
li:last-child { margin-bottom: 0; }

strong { font-weight: 600; }

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

::selection { background: var(--akzent-weich); color: var(--text); }

/* ---------- Aufbau ---------- */

.wrap {
  width: 100%;
  max-width: var(--breite);
  margin-inline: auto;
  padding-inline: var(--weit);
}

.wrap--eng { max-width: var(--breite-eng); }

.abschnitt { padding-block: var(--abschnitt); }
.abschnitt--knapp { padding-block: var(--riesig); }

.springen {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--flaeche-dunkel);
  color: var(--auf-dunkel);
  padding: var(--eng) var(--normal);
  border-radius: 0 0 var(--radius-normal) 0;
  z-index: 100;
}
.springen:focus { left: 0; }

/* ---------- Kopfzeile ---------- */

.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--linie);
}

.kopf__innen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--weit);
  min-height: 68px;
}

.wortmarke {
  font-family: var(--text-familie);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.07em;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.wortmarke:hover { color: var(--text); }

.kopf__nav {
  display: flex;
  align-items: center;
  gap: var(--weit);
  font-size: 15px;
  font-weight: 500;
}

.kopf__nav a {
  color: var(--text-leise);
  text-decoration: none;
  padding-block: var(--klein);
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.kopf__nav a:hover,
.kopf__nav a[aria-current='page'] {
  color: var(--text);
  border-bottom-color: var(--text);
}

/* ---------- Knöpfe ---------- */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--klein);
  min-height: 52px;
  padding: var(--eng) var(--sehr-weit);
  border: 1px solid transparent;
  border-radius: var(--radius-rund);
  font-family: var(--text-familie);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
              background-color 0.15s ease, border-color 0.15s ease;
}

/* Eine Handlung, ein gefüllter Knopf. Auf der Startseite genau einer. */
.knopf--voll {
  background: var(--flaeche-dunkel);
  color: var(--auf-dunkel);
}

/* Kein Farbwechsel beim Überfahren: der Kontrast bleibt bei 16,9:1.
   Rückmeldung kommt über Schatten und Position. */
.knopf--voll:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(24, 24, 27, 0.24);
}

.knopf--voll:active {
  background: var(--flaeche-dunkel-gedrueckt);
  transform: translateY(0);
  box-shadow: none;
}

.knopf--rand {
  background: var(--grund);
  color: var(--text);
  border-color: var(--linie-stark);
}

.knopf--rand:hover {
  background: var(--flaeche-hoch);
  border-color: var(--text);
}

.knopf--rand:active { background: var(--linie); }

/* ---------- Verweise im Fließtext ---------- */

.verweis,
.prosa a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--linie-stark);
  transition: text-decoration-color 0.15s ease;
}

.verweis:hover,
.prosa a:hover {
  color: var(--text);
  text-decoration-color: var(--akzent);
  text-decoration-thickness: 2px;
}

/* ---------- Marken und Zustände ---------- */

.marke {
  display: inline-flex;
  align-items: center;
  gap: var(--klein);
  padding: 7px var(--eng) 7px var(--klein);
  border-radius: var(--radius-rund);
  background: var(--akzent-weich);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.marke__punkt {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-rund);
  background: var(--akzent);
  flex: none;
}

.marke--still {
  background: var(--flaeche-hoch);
  color: var(--text-leise);
}

.marke--still .marke__punkt { background: var(--text-schwach); }

/* ---------- Bühne ---------- */

.buehne { padding-block: var(--abschnitt) var(--riesig); }

.buehne__raster {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: var(--abschnitt);
  align-items: center;
}

.buehne__titel {
  font-size: clamp(3rem, 6.4vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-block: var(--weit) var(--weit);
}

.buehne__titel em {
  font-style: italic;
  /* Der eine gestalterische Ausschlag der Seite: ein kursives Wort. */
}

.buehne__vorspann {
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  line-height: 1.55;
  color: var(--text-leise);
  max-width: 33em;
}

.buehne__fuss {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--normal) var(--weit);
  margin-top: var(--sehr-weit);
  padding-top: var(--weit);
  border-top: 1px solid var(--linie);
  font-size: 15px;
  color: var(--text-leise);
}

/* ---------- Gerät ---------- */

.geraet {
  width: min(320px, 100%);
  margin-inline: auto;
  padding: 9px;
  background: var(--flaeche-dunkel);
  border-radius: 46px;
  box-shadow:
    0 2px 3px rgba(24, 24, 27, 0.5),
    0 28px 60px -18px rgba(24, 24, 27, 0.45);
}

.geraet img,
.geraet svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 38px;
  aspect-ratio: 640 / 1391;
}

.geraet--klein { width: min(272px, 100%); }

.geraet__bild-fuss {
  margin-top: var(--normal);
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-leise);
  text-align: center;
  /* Gleicht die Zeilen aus, damit kein einzelnes Wort unten allein steht. */
  text-wrap: balance;
}

.geraet__bild-fuss strong { color: var(--text); font-weight: 600; }

/* ---------- Abschnittskopf ---------- */

.kopfzeile { max-width: 44rem; margin-bottom: var(--riesig); }

.kopfzeile__ueber {
  font-family: var(--text-familie);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-leise);
  margin-bottom: var(--normal);
}

.kopfzeile__titel {
  font-size: clamp(2.125rem, 3.8vw, 3.125rem);
  margin-bottom: var(--normal);
}

.kopfzeile__text {
  font-size: 1.0625rem;
  color: var(--text-leise);
  margin: 0;
}

/* ---------- Schritte ---------- */

.schritte {
  display: grid;
  list-style: none;
  margin: 0;
  padding-left: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--riesig);
  border-top: 1px solid var(--linie);
  padding-top: var(--riesig);
}

.schritte > li { margin: 0; }

.schritt__zahl {
  font-family: var(--anzeige);
  font-size: 3.25rem;
  line-height: 1;
  color: var(--linie-stark);
  margin-bottom: var(--normal);
}

.schritt__titel {
  font-family: var(--text-familie);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  margin-bottom: var(--klein);
}

.schritt__text {
  font-size: 15px;
  color: var(--text-leise);
  margin: 0;
}

/* ---------- Funktionen ---------- */

.funktionen__raster {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--abschnitt);
  align-items: center;
}

.liste { list-style: none; margin: 0; padding: 0; }

.liste__punkt {
  padding: var(--weit) 0;
  border-bottom: 1px solid var(--linie);
  margin: 0;
}

.liste__punkt:first-child { padding-top: 0; }

.liste__kopf {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--normal);
  margin-bottom: var(--klein);
}

.liste__titel {
  font-family: var(--text-familie);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.liste__text {
  font-size: 15px;
  color: var(--text-leise);
  margin: 0;
  max-width: 40em;
}

.liste__zeit {
  flex: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-schwach);
}

/* ---------- Dunkler Abschnitt ---------- */

.dunkel {
  background: var(--flaeche-dunkel);
  color: var(--auf-dunkel);
}

.dunkel .kopfzeile__ueber { color: var(--akzent); }
.dunkel .kopfzeile__text { color: rgba(255, 255, 255, 0.72); }

.stand {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--riesig);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: var(--riesig);
}

.stand__titel {
  font-family: var(--text-familie);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  margin-bottom: var(--klein);
}

.stand__text {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

/* ---------- Schluss ---------- */

.schluss { text-align: center; }

.schluss__titel {
  font-size: clamp(2.125rem, 4vw, 3.25rem);
  margin-bottom: var(--normal);
}

.schluss__text {
  font-size: 1.0625rem;
  color: var(--text-leise);
  max-width: 34em;
  margin-inline: auto;
  margin-bottom: var(--sehr-weit);
}

/* ---------- Fußzeile ---------- */

.fuss {
  border-top: 1px solid var(--linie);
  padding-block: var(--riesig);
  font-size: 15px;
}

.fuss__innen {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sehr-weit);
}

.fuss__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--normal) var(--weit);
}

.fuss__nav a {
  color: var(--text-leise);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.fuss__nav a:hover {
  color: var(--text);
  border-bottom-color: var(--akzent);
}

.fuss__recht {
  color: var(--text-leise);
  font-size: 14px;
  margin: 0;
  max-width: 30em;
}

/* ---------- Innenseiten ---------- */

.seitenkopf {
  padding-block: var(--abschnitt) var(--riesig);
  border-bottom: 1px solid var(--linie);
}

.seitenkopf__titel {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  margin-bottom: var(--normal);
}

.seitenkopf__text {
  font-size: 1.0625rem;
  color: var(--text-leise);
  max-width: 38em;
  margin: 0;
}

.prosa { padding-block: var(--riesig) var(--abschnitt); }

.prosa h2 {
  font-family: var(--text-familie);
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-top: var(--riesig);
  margin-bottom: var(--eng);
  padding-top: var(--weit);
  border-top: 1px solid var(--linie);
}

.prosa h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.prosa h3 {
  font-family: var(--text-familie);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  margin-top: var(--weit);
  margin-bottom: var(--klein);
}

.prosa p,
.prosa li { color: var(--text-leise); }

.prosa dl { margin: 0 0 var(--normal); }
.prosa dt { font-weight: 600; color: var(--text); margin-top: var(--eng); }
.prosa dd { margin: 0 0 var(--klein); color: var(--text-leise); }

/* Offene Stelle: hier kommt der Text des Anwalts hin. Bewusst deutlich
   sichtbar — eine unauffällige Lücke wird übersehen und geht live. */
.offen {
  border: 1px dashed var(--linie-stark);
  border-left: 3px solid var(--warnung);
  border-radius: var(--radius-normal);
  background: var(--flaeche-hoch);
  padding: var(--weit);
  margin-block: var(--weit);
}

.offen__marke {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--warnung);
  margin-bottom: var(--klein);
}

.offen p,
.offen li { color: var(--text); font-size: 15px; }
.offen p:last-child, .offen ul:last-child { margin-bottom: 0; }

/* ---------- Formular ---------- */

.formular { max-width: 34rem; }

.feld { margin-bottom: var(--weit); }

.feld > label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: var(--klein);
}

.feld__hilfe {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-leise);
  margin-top: 2px;
}

.feld input[type='email'],
.feld input[type='text'],
.feld textarea,
.feld select {
  width: 100%;
  min-height: 52px;
  padding: var(--eng) var(--normal);
  font-family: var(--text-familie);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--grund);
  border: 1px solid var(--linie-stark);
  border-radius: var(--radius-normal);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.feld textarea { min-height: 136px; resize: vertical; }

.feld input:hover,
.feld textarea:hover,
.feld select:hover { border-color: var(--text-leise); }

.feld input:focus,
.feld textarea:focus,
.feld select:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px var(--akzent-weich);
}

.feld input:focus-visible,
.feld textarea:focus-visible,
.feld select:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }

.feld input::placeholder,
.feld textarea::placeholder { color: var(--text-schwach); }

.haken {
  display: flex;
  align-items: flex-start;
  gap: var(--eng);
  font-size: 15px;
  color: var(--text-leise);
}

.haken input[type='checkbox'] {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--flaeche-dunkel);
}

/* Honigtopf: für Menschen unsichtbar, für einfache Bots verlockend. */
.honigtopf {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Hilfsklassen ---------- */

/* Statt style=""-Attributen: die CSP setzt style-src 'self' und würde
   Inline-Stile im Browser verwerfen. */
.figur { margin: 0; }
.buehne__bild { margin: 0; }
.abstand-oben { margin-top: var(--weit); }
.wortmarke--fuss { margin: 0 0 var(--eng); }
.kopfzeile--knapp { margin-bottom: var(--sehr-weit); }

.fussnote {
  margin-top: var(--weit);
  font-size: 15px;
  color: var(--text-leise);
}


.karte {
  border: 1px solid var(--linie);
  border-radius: var(--radius-karte);
  padding: var(--sehr-weit);
  background: var(--grund);
}

.karte--stumpf { background: var(--flaeche-hoch); border-color: transparent; }

.gedrungen { max-width: 40rem; }

/* ---------- Schmale Fenster ---------- */

@media (max-width: 900px) {
  :root { --abschnitt: 64px; --riesig: 40px; }

  .buehne__raster,
  .funktionen__raster {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--riesig);
  }

  .buehne__raster > .buehne__bild { order: -1; }

  .schritte,
  .stand {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sehr-weit);
  }

  .schritt__zahl { font-size: 2.5rem; margin-bottom: var(--klein); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding-inline: var(--normal); }
  .kopf__nav { gap: var(--normal); font-size: 14px; }
  .knopf { width: 100%; }
  .karte { padding: var(--weit); }
  .geraet { width: min(268px, 100%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
