/* Geist und Geist Mono (Brandbook ao1.studio), selbst gehostet statt von
   fonts.googleapis.com geladen — verhindert, dass beim Seitenaufruf die
   IP-Adresse der Besucher an Google übertragen wird (ohne Einwilligung
   datenschutzrechtlich problematisch, siehe u. a. LG München I, Urteil vom
   20.01.2022, Az. 3 O 17493/20). Dateien liegen unter /fonts, unverändert
   von Google Fonts übernommen (variable Schnitte, nur Latin + Latin-Ext). */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/geist-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/geist-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Tokens nach Brandbook ao1.studio v2 (Claude Design, „Brandbook v2“).
   Weiß/Hellgrau als Oberfläche, Ink für Text und dunkle Flächen, Blau nur
   für Marke und die wichtigste Aktion. Statusfarben nur für Status.
   Kontraste: Weiß auf --color-primary 5,6:1, --color-body auf Weiß 7,6:1. */
:root {
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-ink: #0f172a;
  --color-ink-soft: #1e293b;
  --color-primary: #2f5bea;
  --color-primary-strong: #1f45c7;
  /* Fläche auf Blau/Ink, auf der weißer Text steht (Blau 700) */
  --color-primary-soft: #1f45c7;
  --color-primary-tint: #e8eefd;
  --color-primary-50: #f3f6fe;
  --color-primary-400: #7b9bf5;
  --color-accent: #e8eefd;
  --color-hover: #1f45c7;
  --color-text-on-primary: #ffffff;
  --color-text-on-primary-muted: #c5d4fa;
  --color-text-on-primary-soft: #e8eefd;
  --color-card-bg: #ffffff;
  --color-heading: #0f172a;
  --color-muted: #64748b;
  --color-body: #475569;
  --color-divider: #e2e8f0;
  --color-success: #1f7a45;
  --color-success-bg: #e6f4ec;
  --color-warning: #9a5b06;
  --color-warning-bg: #fdf1de;
  --color-error: #b3312a;
  --color-error-bg: #fbe7e5;
  --color-info: #6446c8;
  --color-info-bg: #f0ecfb;
  --radius-control: 8px;
  --radius-card: 14px;
  --radius-lg: 18px;
  --shadow-card: 0 1px 2px rgb(15 23 42 / 0.04), 0 12px 40px -12px rgb(15 23 42 / 0.14);
  --font-mono: "Geist Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

/* [hidden] muss gegen Komponenten mit eigenem display gewinnen (z. B. der
   per JS eingeblendete Konfigurations-Hinweis im Demo-Formular). */
[hidden] {
  display: none !important;
}

/* Sprungziele nicht unter dem fixierten Header verstecken */
[id] {
  scroll-margin-top: 88px;
}

/* Nur für Screenreader sichtbar (z. B. Label eines Suchfelds mit Icon) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  background: var(--color-bg);
  font-family: "Geist", system-ui, sans-serif;
  color: var(--color-body);
  -webkit-font-smoothing: antialiased;
}

/* Überschriften in Ink (Brandbook). Komponenten auf dunklem Grund
   (z. B. .hero__title) überschreiben das gezielt mit #fff. */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-heading);
}

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-hover);
}

::selection {
  background: var(--color-primary);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* Header (alle Seiten): weiß, klebt oben, wie die Navigation im Brandbook */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-divider);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 32px;
  padding: 14px 40px;
}

.brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  text-decoration: none;
}

/* App-Icon „ao1“ auf Ink (Brandbook: Kurzform für Favicon und Avatar).
   Rein dekorativ (aria-hidden im Markup), daher als Pseudo-Element. */
.brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--color-ink);
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.brand__mark::after {
  content: "ao1";
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
}

/* Wortmarke: „ao1“ Bold, Punkt in Blau, „studio“ Light. */
.brand__name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--color-ink);
  white-space: nowrap;
}

.brand__dot {
  color: var(--color-primary);
}

.brand__light {
  font-weight: 300;
}

.brand__claim {
  font-size: 14px;
  color: var(--color-body);
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  font-size: 15px;
  font-weight: 500;
  margin-left: auto;
}

.main-nav a {
  padding: 8px 12px;
  border-radius: var(--radius-control);
  color: var(--color-body);
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--color-ink);
  background: #f1f5f9;
}

.main-nav a[aria-current="page"] {
  color: var(--color-ink);
  background: #f1f5f9;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.link-btn {
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  color: var(--color-body);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.link-btn:hover {
  color: var(--color-ink);
}

/* Buttons: 8-px-Radius wie im Brandbook. Blau (.btn-primary) nur für die
   eine wichtigste Aktion pro Ansicht. Die Klassennamen .btn-pill* bleiben
   aus Kompatibilität mit den Unterseiten bestehen. */

.btn-pill,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: var(--radius-control);
  cursor: pointer;
  border: 1px solid transparent;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn-primary {
  color: #fff;
  background: var(--color-primary);
}

.btn-primary:hover {
  color: #fff;
  background: var(--color-primary-strong);
}

.btn-primary--sm {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 14px;
}

/* Weiß auf dunklen Flächen */
.btn-pill--light {
  color: var(--color-ink);
  background: #fff;
}

.btn-pill--light:hover {
  color: var(--color-ink);
  background: var(--color-primary-50);
}

/* Sekundär auf hellem Grund („Abbrechen“-Stil im Brandbook) */
.btn-pill--outline {
  color: var(--color-ink);
  background: #fff;
  border-color: var(--color-divider);
}

.btn-pill--outline:hover {
  color: var(--color-ink);
  background: var(--color-bg);
}

/* Sekundär auf dunklen Flächen */
.btn-pill--soft {
  color: #fff;
  background: rgb(255 255 255 / 0.08);
  border-color: rgb(255 255 255 / 0.18);
}

.btn-pill--soft:hover {
  color: #fff;
  background: rgb(255 255 255 / 0.14);
}

/* Ink-Button („Exportieren“-Stil im Brandbook) */
.btn-dark {
  color: #fff;
  background: var(--color-ink);
}

.btn-dark:hover {
  color: #fff;
  background: var(--color-ink-soft);
}

.btn-pill--lg,
.btn-primary--lg {
  min-height: 50px;
  padding: 12px 22px;
  font-size: 16px;
}

/* Diagonaler Übergang zwischen dunklem Hero und Inhalt (Unterseiten) */

.hero-divider {
  height: 96px;
  background: linear-gradient(
    to bottom right,
    var(--color-ink) 0 49.9%,
    var(--color-primary) 49.9% 50.15%,
    var(--color-bg) 50.15% 100%
  );
}

.content {
  position: relative;
  z-index: 1;
  background: var(--color-bg);
}

/* Einfaches Hero-Muster (Eyebrow + Titel + Lead + rechte Spalte) — von
   anbindungen.html, preise.html, demo.html und den Rechtsseiten geteilt.
   Dunkle Fläche in Ink (Brandbook: „Text, Logo, dunkle Flächen“). */

.hero {
  background: var(--color-ink);
  padding: 64px 0 40px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px 56px;
  align-items: end;
}

.hero__eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-on-primary-muted);
  margin: 0 0 20px;
}

/* Lange Einzelwörter wie „Datenschutzerklärung.“ dürfen auf dem Handy
   getrennt werden, statt die Seite seitlich zu verbreitern. */
.hero__inner > * {
  min-width: 0;
}

.hero__title {
  hyphens: auto;
  overflow-wrap: break-word;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.hero__lead {
  font-size: 18px;
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 540px;
  margin: 24px 0 0;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-card {
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: var(--radius-card);
  padding: 22px;
}

.stat-card__value {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
}

.stat-card__label {
  font-size: 14px;
  color: #cbd5e1;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero__title {
    font-size: 42px;
  }

  .hero__stats {
    grid-template-columns: 1fr;
  }
}

/* Section badge — kleine Pille über Abschnittsüberschriften */

.section-badge {
  display: inline-block;
  border: 1px solid var(--color-divider);
  background: #fff;
  color: var(--color-body);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
}

/* Status-Badges: jeder Bestellstatus hat genau eine Farbe (Brandbook) */

.status {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.status--neu { color: var(--color-primary-strong); background: var(--color-primary-tint); }
.status--arbeit { color: var(--color-warning); background: var(--color-warning-bg); }
.status--versendet { color: var(--color-success); background: var(--color-success-bg); }
.status--retoure { color: var(--color-info); background: var(--color-info-bg); }
.status--storniert { color: var(--color-error); background: var(--color-error-bg); }

/* Footer (alle Seiten) */

.site-footer {
  /* Nur vertikales Padding — .container liefert das horizontale Padding.
     Bewusst als Langform statt Shorthand, damit ein "0" hier nicht
     versehentlich das linke/rechte Padding von .container überschreibt. */
  padding-top: 80px;
  padding-bottom: 56px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand__name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--color-ink);
}

.footer-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-body);
  margin: 14px 0 0;
  max-width: 300px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-ink);
}

.footer-col a,
.footer-col .link-btn {
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  color: var(--color-body);
}

.footer-col a:hover,
.footer-col .link-btn:hover {
  color: var(--color-ink);
}

.footer-copyright {
  font-size: 14px;
  color: var(--color-muted);
  margin-top: 56px;
}

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

/* Menü-Button (nur schmale Bildschirme, nur mit JavaScript) */

.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-control);
  background: none;
  color: var(--color-ink);
  cursor: pointer;
}

.nav-toggle:hover {
  background: #f1f5f9;
}

.nav-toggle__icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.nav-toggle__close,
.site-header[data-menu="open"] .nav-toggle__open {
  display: none;
}

.site-header[data-menu="open"] .nav-toggle__close {
  display: inline;
}

/* Kompakter Header bis zur Desktop-Breite: Marke, Demo-Button und
   Menü-Button in einer Zeile; Navigation und „Anmelden“ klappen darunter
   auf. */
@media (max-width: 1100px) {
  .site-header__inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 0 8px;
  }

  .brand {
    min-width: 0;
  }

  /* Kinder von .header-actions werden eigene Grid-Zellen */
  .header-actions {
    display: contents;
  }

  .header-actions .btn-primary {
    grid-column: 2;
    grid-row: 1;
  }

  .site-header[data-menu] .nav-toggle {
    display: grid;
    grid-column: 3;
    grid-row: 1;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: column;
    gap: 2px;
    margin: 12px 0 0;
    padding-top: 10px;
    border-top: 1px solid var(--color-divider);
    font-size: 16px;
  }

  .main-nav a {
    padding: 12px 10px;
  }

  .header-actions .link-btn {
    grid-column: 1 / -1;
    grid-row: 3;
    padding: 12px 10px 14px;
    font-size: 16px;
  }

  .site-header[data-menu="closed"] .main-nav,
  .site-header[data-menu="closed"] .header-actions .link-btn {
    display: none;
  }
}

/* Unter 600 px steht der Claim klein unter der Wortmarke, das App-Icon
   läuft über beide Zeilen (Brandbook: Wortmarke immer mit Claim). */
@media (max-width: 600px) {
  .brand {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: start;
    align-items: center;
    gap: 0 10px;
  }

  .brand__mark {
    grid-row: 1 / span 2;
  }

  .brand__name {
    font-size: 18px;
    line-height: 1.1;
  }

  .brand__claim {
    font-size: 11px;
    line-height: 1.3;
  }
}

/* Unter 360 px reicht die Zeile nicht für Marke mit Claim und Button:
   „Demo anfragen“ wandert ans Ende des aufgeklappten Menüs. Ohne
   JavaScript (kein data-menu) bleibt er sichtbar. */
@media (max-width: 360px) {
  .site-header[data-menu] .header-actions .btn-primary {
    grid-column: 1 / -1;
    grid-row: 4;
    margin-bottom: 14px;
  }

  .site-header[data-menu="closed"] .header-actions .btn-primary {
    display: none;
  }
}

/* Responsive (shared) */

@media (max-width: 900px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 20px;
  }

  .site-header__inner {
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}
