/*
  Miradot – Seitenstile
  Stand: 10.11.2026

  Farben und Schriftnamen kommen ausschliesslich aus tokens.css.
  Hier stehen nur Rollen, Abstaende, Typografie und Bausteine.
  Keine Hex-Werte und keine Schriftnamen direkt in dieser Datei.
*/

/* ------------------------------------------------------------------
   1 Schriften – selbst gehostet, keine externe Anfrage
   ------------------------------------------------------------------ */

/* Originalfassung von Instrument (nicht der Google-Fonts-Build) – nur diese
   enthaelt die sechs Stylistic Sets. Auf Latin reduziert, Breiten-Achse
   festgesetzt. Herkunft und Aufbereitung: ../../../brand/fonts/instrument-sans/README.md

   Kursiv ist hier bewusst nicht eingebunden: Die Seite verwendet keinen
   kursiven Text. Die Datei liegt in brand/ bereit, falls sie spaeter
   gebraucht wird. */
@font-face {
  font-family: "Instrument Sans Variable";
  src: url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------------
   2 Rollen und Masse
   ------------------------------------------------------------------ */

:root {
  /* Flaechen */
  --surface-light: var(--brand-chalk);
  --surface-light-alt: var(--neutral-50);
  --surface-dark: var(--brand-graphite);
  --surface-dark-deep: var(--neutral-950);

  /* Text – Paarungen am 10.11.2026 nach WCAG berechnet, Werte im Kommentar */
  --text-on-light: var(--brand-graphite);        /* 14,22:1 */
  --text-muted-on-light: var(--neutral-600);     /*  4,83:1 */
  --text-on-dark: var(--brand-chalk);            /* 14,22:1 */
  --text-muted-on-dark: var(--brand-stone);      /*  7,26:1 */

  /* Akzente – nur in der jeweils geprueften Richtung verwenden */
  --accent-warm-on-light: var(--ember-600);      /*  5,18:1 */
  --accent-cool-on-light: var(--iris-600);       /*  5,19:1 */
  --accent-cool-on-dark: var(--iris-300);        /*  7,38:1 */

  /* Linien */
  --line-light: var(--neutral-200);
  --line-dark: var(--neutral-800);

  /* Abstaende */
  --space-2xs: 0.375rem;
  --space-xs: 0.625rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Masse */
  --wrap: 69rem;
  --measure: 38rem;
  --radius: 12px;
  --radius-s: 8px;
  --header-h: 4.25rem;

  /* Typografie – flexibel zwischen Handy und Desktop */
  --step--1: 0.875rem;
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --step-2: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.125rem, 1.5rem + 3vw, 3.5rem);
}

/* ------------------------------------------------------------------
   3 Grundlagen
   ------------------------------------------------------------------ */

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

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

body {
  margin: 0;
  background-color: var(--surface-light);
  color: var(--text-on-light);

  font-family: var(--font-brand);
  font-weight: 400;
  font-size: var(--step-0);
  line-height: 1.65;

  /* Alle sechs Stylistic Sets der Marke – runde Punkte, einstoeckiges a usw. */
  font-feature-settings: var(--font-feature-brand);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
  font-weight: 700;
}

h2 {
  font-size: var(--step-3);
  font-weight: 700;
}

h3 {
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.3;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

strong {
  font-weight: 600;
}

/* Tastaturbedienung sichtbar machen */
:focus-visible {
  outline: 3px solid var(--accent-cool-on-dark);
  outline-offset: 3px;
  border-radius: var(--radius-s);
}

/* Sprunglink für Tastatur- und Screenreader-Nutzung */
.skip-link {
  position: absolute;
  left: var(--space-s);
  top: var(--space-s);
  z-index: 100;
  padding: var(--space-xs) var(--space-s);
  background-color: var(--accent-cool-on-dark);
  color: var(--surface-dark);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-s);
  transform: translateY(-200%);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* ------------------------------------------------------------------
   4 Wortmarke – Regeln aus brand/BRAND.md, Abschnitt 5
   Dreifarbig ausschliesslich auf dunklem Markenfeld.
   ------------------------------------------------------------------ */

.wordmark {
  display: inline-block;
  font-weight: 500;
  font-feature-settings: var(--font-feature-brand);
  letter-spacing: -0.015em;
  white-space: nowrap;
  text-decoration: none;
}

.wordmark--on-dark .wordmark__mira {
  color: var(--brand-chalk);
}

.wordmark--on-dark .wordmark__dot {
  color: var(--brand-iris);
}

/* Ember Red hat auf Deep Graphite nur 2,74:1 – deshalb ausschliesslich
   als dekorativer Schlusspunkt, niemals fuer Text. */
.wordmark--on-dark .wordmark__period {
  color: var(--brand-ember);
}

/* Einfarbig dunkel, fuer helle Flaechen ohne Markenfeld */
.wordmark--mono-dark {
  color: var(--brand-graphite);
}

/* ------------------------------------------------------------------
   5 Kopfzeile – dunkles Markenfeld, damit die Wortmarke regelkonform
   bleibt, auch wenn darunter helle Abschnitte vorbeiscrollen.
   ------------------------------------------------------------------ */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--surface-dark);
  border-bottom: 1px solid var(--line-dark);
}

.header__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  min-height: var(--header-h);
  padding: var(--space-xs) var(--space-m);
  display: flex;
  align-items: center;
  gap: var(--space-m);
}

.header .wordmark {
  font-size: var(--step-2);
  margin-right: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-m);
}

.nav__link {
  color: var(--text-muted-on-dark);
  font-size: var(--step--1);
  font-weight: 500;
  text-decoration: none;
  padding-block: var(--space-2xs);
  transition: color 0.18s ease;
}

.nav__link:hover {
  color: var(--text-on-dark);
}

/* Unter 54rem entfallen die Ankerlinks. Auf einem One-Pager ist jeder
   Abschnitt durch Scrollen erreichbar; ein Klappmenue braeuchte
   JavaScript, das hier bewusst nicht eingesetzt wird. */
@media (max-width: 54rem) {
  .nav__links {
    display: none;
  }
}

/* ------------------------------------------------------------------
   6 Abschnitte und Rhythmus
   ------------------------------------------------------------------ */

.section {
  padding-block: var(--space-2xl);
  scroll-margin-top: var(--header-h);
}

.section__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--space-m);
}

.section--light {
  background-color: var(--surface-light);
}

.section--light-alt {
  background-color: var(--surface-light-alt);
  border-block: 1px solid var(--line-light);
}

.section--dark {
  background-color: var(--surface-dark);
  color: var(--text-on-dark);
}

.section--dark-deep {
  background-color: var(--surface-dark-deep);
  color: var(--text-on-dark);
}

/* Kleine Zeile ueber der Ueberschrift */
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-s);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted-on-light);
}

.section--dark .eyebrow,
.section--dark-deep .eyebrow {
  color: var(--text-muted-on-dark);
}

/* Einleitung unter einer Ueberschrift */
.lead {
  max-width: var(--measure);
  margin-top: var(--space-m);
  font-size: var(--step-1);
  color: var(--text-muted-on-light);
}

.section--dark .lead,
.section--dark-deep .lead {
  color: var(--text-muted-on-dark);
}

/* Abschliessender Satz eines Abschnitts */
.closing {
  margin-top: var(--space-l);
  padding-top: var(--space-m);
  border-top: 1px solid var(--line-light);
  max-width: var(--measure);
  font-weight: 500;
}

.section--dark .closing,
.section--dark-deep .closing {
  border-top-color: var(--line-dark);
}

/* ------------------------------------------------------------------
   7 Hero
   ------------------------------------------------------------------ */

.hero {
  background-color: var(--surface-dark);
  color: var(--text-on-dark);
  padding-block: clamp(var(--space-xl), 10vw, 8rem);
}

.hero__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--space-m);
}

.hero__eyebrow {
  display: inline-block;
  margin-bottom: var(--space-m);
  padding: var(--space-2xs) var(--space-s);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-cool-on-dark);
}

.hero__title {
  max-width: 34rem;
}

.hero__text {
  max-width: var(--measure);
  margin-top: var(--space-m);
  font-size: var(--step-1);
  color: var(--text-muted-on-dark);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  margin-top: var(--space-l);
}

/* ------------------------------------------------------------------
   8 Schaltflaechen
   ------------------------------------------------------------------ */

.button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: 0.8rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  font: inherit;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease,
    color 0.18s ease, transform 0.18s ease;
}

/* Auf dunklem Grund: Iris 300 mit dunkler Schrift – 7,38:1 */
.button--primary {
  background-color: var(--accent-cool-on-dark);
  color: var(--surface-dark);
}

.button--primary:hover {
  background-color: var(--iris-200);
  transform: translateY(-1px);
}

/* Auf hellem Grund: Ember Red mit heller Schrift – 5,18:1 */
.button--primary-light {
  background-color: var(--accent-warm-on-light);
  color: var(--brand-chalk);
}

.button--primary-light:hover {
  background-color: var(--ember-700);
  transform: translateY(-1px);
}

/* Ember Red auf dunklem Grund – Beschriftung 5,18:1.
   Der Rand hebt die Buttonflaeche von der dunklen Kopfzeile ab: Ember allein
   kaeme dort nur auf 2,74:1, mit Rand (ember-400) auf 5,11:1. */
.button--ember {
  background-color: var(--accent-warm-on-light);
  border-color: var(--ember-400);
  color: var(--brand-chalk);
}

.button--ember:hover {
  background-color: var(--ember-700);
  border-color: var(--ember-300);
  transform: translateY(-1px);
}

.button--ghost {
  background-color: transparent;
  border-color: var(--line-dark);
  color: var(--text-on-dark);
}

.button--ghost:hover {
  border-color: var(--accent-cool-on-dark);
  color: var(--accent-cool-on-dark);
}

.button--compact {
  padding: 0.55rem 1rem;
  font-size: var(--step--1);
}

/* Auf Touch-Geraeten mindestens 44 px Antippflaeche. Am Desktop bleibt die
   Kopfzeile dadurch schlank, auf dem Handy ist der Button sicher treffbar. */
@media (pointer: coarse) {
  .button {
    min-height: 44px;
  }
}

/* ------------------------------------------------------------------
   9 Karten
   ------------------------------------------------------------------ */

.cards {
  display: grid;
  gap: var(--space-s);
  margin-top: var(--space-l);
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.card {
  padding: var(--space-m);
  background-color: var(--surface-light);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  transition: border-color 0.18s ease;
}

.section--light .card {
  background-color: var(--surface-light-alt);
}

.card:hover {
  border-color: var(--brand-stone);
}

.card__title {
  margin-bottom: var(--space-2xs);
}

.card__text {
  color: var(--text-muted-on-light);
}

/* Schmaler Akzentstrich als einziges dekoratives Element der Karte.
   Durchgehend Ember Red – Entscheidung 10.11.2026. */
.card__rule {
  width: 1.75rem;
  height: 2px;
  margin-bottom: var(--space-s);
  border-radius: 2px;
  background-color: var(--accent-warm-on-light);
}

/* ------------------------------------------------------------------
   10 Loesungsabschnitt – Text plus hervorgehobener Hinweis
   ------------------------------------------------------------------ */

.prose {
  display: grid;
  gap: var(--space-m);
  max-width: var(--measure);
  margin-top: var(--space-m);
  color: var(--text-muted-on-light);
}

.callout {
  margin-top: var(--space-l);
  padding: var(--space-m) var(--space-m) var(--space-m) var(--space-l);
  background-color: var(--surface-light);
  border: 1px solid var(--line-light);
  border-left: 3px solid var(--accent-cool-on-light);
  border-radius: var(--radius-s);
  max-width: var(--measure);
}

.callout__title {
  margin-bottom: var(--space-2xs);
}

.callout__text {
  color: var(--text-muted-on-light);
}

/* ------------------------------------------------------------------
   11 Ablauf in drei Schritten
   ------------------------------------------------------------------ */

.steps {
  display: grid;
  gap: var(--space-m);
  margin-top: var(--space-l);
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  counter-reset: step;
}

.step {
  padding-top: var(--space-m);
  border-top: 2px solid var(--line-dark);
}

.step__title {
  margin-bottom: var(--space-xs);
  font-variant-numeric: tabular-nums;
  color: var(--accent-cool-on-dark);
}

.step__text {
  color: var(--text-muted-on-dark);
}

/* ------------------------------------------------------------------
   12 Kontaktabschluss
   ------------------------------------------------------------------ */

.contact__title {
  max-width: 32rem;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-m);
  margin-top: var(--space-l);
}

/* ------------------------------------------------------------------
   13 Fusszeile
   ------------------------------------------------------------------ */

.footer {
  background-color: var(--surface-dark-deep);
  color: var(--text-on-dark);
  padding-block: var(--space-xl) var(--space-l);
  border-top: 1px solid var(--line-dark);
}

.footer__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--space-m);
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-l);
}

.footer .wordmark {
  font-size: var(--step-2);
}

.footer__slogan {
  margin-top: var(--space-2xs);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-cool-on-dark);
}

.footer__description {
  max-width: 22rem;
  margin-top: var(--space-s);
  color: var(--text-muted-on-dark);
}

.footer__heading {
  margin-bottom: var(--space-xs);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted-on-dark);
}

.footer__heading--spaced {
  margin-top: var(--space-m);
}

.footer__list {
  display: grid;
  gap: var(--space-2xs);
}

.footer__list a {
  color: var(--text-on-dark);
  text-decoration: none;
  text-underline-offset: 3px;
}

.footer__list a:hover {
  text-decoration: underline;
  color: var(--accent-cool-on-dark);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-s);
  margin-top: var(--space-xl);
  padding-top: var(--space-m);
  border-top: 1px solid var(--line-dark);
  font-size: var(--step--1);
  color: var(--text-muted-on-dark);
}

/* ------------------------------------------------------------------
   14 Rechtsseiten (Impressum, Datenschutz)
   ------------------------------------------------------------------ */

.legal {
  padding-block: var(--space-xl) var(--space-2xl);
}

.legal__inner {
  max-width: 44rem;
  margin-inline: auto;
  padding-inline: var(--space-m);
}

.legal__back {
  display: inline-block;
  margin-bottom: var(--space-l);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--accent-cool-on-light);
  text-decoration: none;
}

.legal__back:hover {
  text-decoration: underline;
}

.legal h2 {
  margin-top: var(--space-xl);
  font-size: var(--step-2);
}

.legal h3 {
  margin-top: var(--space-l);
}

.legal p,
.legal ul {
  margin-top: var(--space-s);
  color: var(--text-muted-on-light);
}

.legal li {
  margin-top: var(--space-2xs);
  padding-left: var(--space-s);
  position: relative;
}

.legal li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--brand-stone);
}

.legal dl {
  margin: var(--space-s) 0 0;
  display: grid;
  grid-template-columns: minmax(10rem, auto) 1fr;
  gap: var(--space-2xs) var(--space-m);
}

.legal dt {
  font-weight: 600;
}

.legal dd {
  margin: 0;
  color: var(--text-muted-on-light);
}

@media (max-width: 34rem) {
  .legal dl {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .legal dd {
    margin-bottom: var(--space-s);
  }
}

/* Deutlich sichtbarer Hinweis auf noch fehlende oder ungepruefte Angaben */
.notice {
  margin-top: var(--space-m);
  padding: var(--space-s) var(--space-m);
  background-color: var(--ember-50);
  border: 1px solid var(--ember-200);
  border-left: 3px solid var(--accent-warm-on-light);
  border-radius: var(--radius-s);
  font-size: var(--step--1);
  color: var(--text-on-light);
}

/* ------------------------------------------------------------------
   15 Bewegung nur, wenn erwuenscht
   ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
