/* Acquimo · acquimo.de
   Farben, Schriften, Abstände aus outputs/acquimo-branding/tokens.json (Thema „Hell“).
   Schriften liegen lokal (assets/fonts), es gibt keine Verbindung zu Google Fonts. */

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/sora-600.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: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-variabel.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;
}

:root {
  --surface: #f5f4f8;
  --surface-raised: #ffffff;
  --tint: #e8e4f7;
  --line: #dcd9e6;
  --line-strong: #7d7a93;
  --ink: #1c1a30;
  --ink-muted: #5a5770;
  --violett: #6b58e8;
  --violett-dunkel: #5a47d6;
  --on-violett: #ffffff;
  --violett-soft: #c9c1fa;
  --amber: #ffc94a;
  --on-amber: #1c1a30;
  --success: #1e7f5c;
  --warning: #8a5a00;
  --danger: #b3261e;

  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(28, 26, 48, .06), 0 6px 20px rgba(28, 26, 48, .06);
  --shadow-glow: 0 8px 24px rgba(107, 88, 232, .35);

  --breite: 1120px;
  --rand: clamp(16px, 4vw, 32px);
  color-scheme: light;
}

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

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

body {
  min-height: 100vh;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  font-size-adjust: from-font;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Erlaubter Verlauf: weich von surface nach tint am rechten Rand (wie im Seitenkopf). */
.seite {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: linear-gradient(90deg, var(--surface) 55%, var(--tint) 140%);
}
.seite > main { flex: 1; }

img, svg { display: block; max-width: 100%; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
}
p, li, dd { text-wrap: pretty; }

a { color: var(--violett); text-underline-offset: .18em; }
a:hover { color: var(--violett-dunkel); }

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

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.huelle {
  width: min(var(--breite), 100% - 2 * var(--rand));
  margin-inline: auto;
}

.sprung {
  position: absolute;
  left: var(--rand);
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--violett);
  color: var(--on-violett);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
}
.sprung:focus { top: 12px; color: var(--on-violett); }

/* ---------- Typo-Stufen ---------- */
.label {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.display {
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.08;
  letter-spacing: -.02em;
}
.h1 {
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.17;
  letter-spacing: -.015em;
}
.h2 {
  font-size: 24px;
  line-height: 30px;
  letter-spacing: -.01em;
}
.h3 { font-size: 18px; line-height: 24px; }
.lead {
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.55;
  color: var(--ink-muted);
}
.klein { font-size: 14px; line-height: 20px; color: var(--ink-muted); }

/* ---------- Kopf ---------- */
.kopf {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 244, 248, .88);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
}
.kopf__innen {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}
.kopf__logo { display: inline-flex; flex: none; padding-block: 10px; }
.kopf__logo img { width: 148px; height: auto; }
.kopf__nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.kopf__nav a {
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  color: var(--ink-muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.kopf__nav a:hover { color: var(--ink); background: var(--surface-raised); }
.kopf .knopf { margin-left: 8px; }
@media (max-width: 820px) {
  .kopf__nav { display: none; }
  .kopf .knopf { margin-left: auto; }
}
@media (max-width: 400px) {
  .kopf__logo img { width: 120px; }
  .kopf .knopf { padding: 10px 16px; font-size: 15px; }
}

/* ---------- Schaltflächen ---------- */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.knopf--haupt {
  background: var(--violett);
  color: var(--on-violett);
}
.knopf--haupt:hover { background: var(--violett-dunkel); color: var(--on-violett); }
/* Nur die eine Hauptschaltfläche bekommt den Glanz. */
.knopf--glanz { box-shadow: var(--shadow-glow); }
.knopf--zweit {
  background: var(--surface-raised);
  color: var(--ink);
  border-color: var(--line-strong);
}
.knopf--zweit:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Abschnitte ---------- */
.abschnitt { padding-block: clamp(56px, 9vw, 104px); }
.abschnitt--hell { background: var(--surface-raised); border-block: 1px solid var(--line); }
.abschnitt__kopf { max-width: 680px; margin-bottom: clamp(32px, 5vw, 48px); }
.abschnitt__kopf .label { margin-bottom: 12px; }
.abschnitt__kopf .lead { margin-top: 16px; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 96px); }
.hero__raster {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero .label { margin-bottom: 16px; }
.hero .lead { margin-top: 20px; max-width: 34em; }
.hero__aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero__hinweis { margin-top: 20px; }
.hero__bild { justify-self: center; width: min(100%, 420px); }
@media (max-width: 860px) {
  .hero__raster { grid-template-columns: 1fr; }
  .hero__bild { width: min(100%, 320px); order: -1; justify-self: start; }
}
@media (max-width: 520px) {
  .hero__bild { display: none; }
  .hero__aktionen .knopf { flex: 1 1 100%; }
}

/* Giebel-Motiv: nur auf der Website, nie in der App-Oberfläche. */
.giebel { color: var(--violett-soft); }
.giebel .giebel__eins { color: var(--violett); }

/* ---------- Problem ---------- */
.problem__raster {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.problem__punkt {
  padding-top: 20px;
  border-top: 2px solid var(--line);
}
.problem__punkt h3 { margin-bottom: 8px; }
.problem__punkt p { color: var(--ink-muted); }
.zitat {
  margin-top: clamp(32px, 5vw, 48px);
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  background: var(--tint);
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.55;
}
.zitat strong { font-weight: 600; }
@media (max-width: 760px) {
  .problem__raster { grid-template-columns: 1fr; }
}

/* ---------- Lösung / Einblick ---------- */
.einblick {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  align-items: end;
}
@media (max-width: 760px) {
  .einblick { grid-template-columns: 1fr; }
  .einblick .screen--handy { max-width: 240px; justify-self: center; }
}
.screen {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.screen img { width: 100%; height: auto; }
.screen--desktop { aspect-ratio: 16 / 10; }
.screen--handy { aspect-ratio: 9 / 19; border-radius: 28px; }
/* Platzhalter, bis echte Screenshots aus der App vorliegen (siehe README). */
.screen--platzhalter {
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(201, 193, 250, .25) 14px 15px),
    var(--tint);
  border: 1.5px dashed var(--line-strong);
  box-shadow: none;
  text-align: center;
}
.screen--platzhalter figcaption { max-width: 26em; }
.screen--platzhalter strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
}

/* ---------- Funktionen ---------- */
.funktionen {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  padding: 0;
}
/* Die siebte Karte geht über die ganze Breite, damit keine Lücke bleibt. */
.karte--breit {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 24px;
  align-items: start;
}
.karte--breit p + p { margin-top: 0; }
@media (max-width: 980px) {
  .funktionen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .funktionen { grid-template-columns: 1fr; }
  .karte--breit { grid-template-columns: 1fr; }
  .karte--breit p + p { margin-top: 10px; }
}
.karte {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
}
.abschnitt--hell .karte { background: var(--surface); }
.karte__symbol {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  background: var(--tint);
  color: var(--violett);
}
.karte__symbol svg { width: 24px; height: 24px; }
.karte h3 { margin-bottom: 8px; }
.karte p { color: var(--ink-muted); }
.karte p + p { margin-top: 10px; }
.beispiel {
  display: block;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--violett);
  background: var(--tint);
  color: var(--ink);
  font-size: 14px;
  line-height: 20px;
}

/* ---------- Ablauf ---------- */
.ablauf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  padding: 0;
  counter-reset: schritt;
}
.ablauf li {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface-raised);
  counter-increment: schritt;
}
.ablauf li::before {
  content: counter(schritt);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: var(--radius-pill);
  background: var(--violett);
  color: var(--on-violett);
  font-family: var(--font-display);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ablauf h3 { margin-bottom: 8px; }
.ablauf p { color: var(--ink-muted); }
@media (max-width: 760px) {
  .ablauf { grid-template-columns: 1fr; }
}

/* ---------- Preise ---------- */
.preise {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.preis {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.preis__betrag {
  margin-block: 12px 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  line-height: 36px;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.preis__liste {
  margin-top: 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.preis__liste li {
  position: relative;
  padding-left: 26px;
}
.preis__liste li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .45em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--success);
  border-bottom: 2px solid var(--success);
  transform: rotate(-45deg);
}
.preis__fuss { margin-top: 20px; }
.preise__zusatz {
  margin-top: 24px;
  display: grid;
  gap: 8px;
}
@media (max-width: 760px) {
  .preise { grid-template-columns: 1fr; }
}
/* Sichtbarer Platzhalter für Werte, die noch fehlen (Preise, Fristen). */
.fehlt {
  padding: 0 .3em;
  border-radius: 4px;
  background: rgba(255, 201, 74, .35);
  outline: 1px dashed var(--warning);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: .8em;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

/* ---------- Formular ---------- */
.anfrage {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.anfrage__text .label { margin-bottom: 12px; }
.anfrage__text .lead { margin-top: 16px; }
.anfrage__punkte {
  margin-top: 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.anfrage__punkte li { display: flex; gap: 12px; align-items: baseline; }
.anfrage__punkte li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violett);
  transform: translateY(-2px);
}
.formular {
  padding: clamp(20px, 4vw, 32px);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 20px;
}
.feld { display: grid; gap: 6px; }
.feld label { font-weight: 600; font-size: 15px; }
.feld .optional { font-weight: 400; color: var(--ink-muted); }
.feld .hinweis { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.feld input,
.feld textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* verhindert Zoom auf iOS */
}
.feld textarea { min-height: 120px; resize: vertical; }
.feld input:focus-visible,
.feld textarea:focus-visible {
  outline: 2px solid var(--violett);
  outline-offset: 1px;
  border-color: var(--violett);
}
.feld .fehler {
  display: none;
  color: var(--danger);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}
.feld :is(input, textarea):is(:user-invalid, .user-invalid-fallback) {
  border-color: var(--danger);
  background: #fdf1f0;
}
.feld :is(input, textarea):is(:user-invalid, .user-invalid-fallback) + .fehler { display: block; }
.formular__datenschutz { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.formular .knopf { justify-self: start; }
.formular .honig { display: none; }
@media (max-width: 860px) {
  .anfrage { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .formular .knopf { justify-self: stretch; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 800px; }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin: 6px 4px 0 0;
  border-right: 2px solid var(--violett);
  border-bottom: 2px solid var(--violett);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 10px; }
.faq details > div { padding: 0 0 20px; color: var(--ink-muted); max-width: 680px; }
.faq details > div p + p { margin-top: 10px; }
@media (prefers-reduced-motion: reduce) {
  .faq summary::after { transition: none; }
}

/* ---------- Fuß ---------- */
.fuss {
  padding-block: 48px 40px;
  border-top: 1px solid var(--line);
  background: var(--surface-raised);
}
.fuss__innen {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  justify-content: space-between;
  align-items: flex-start;
}
.fuss__marke img { width: 132px; height: auto; }
.fuss__marke p { margin-top: 12px; max-width: 26em; }
.fuss nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 0;
  list-style: none;
}
.fuss nav a { color: var(--ink-muted); text-decoration: none; font-size: 15px; }
.fuss nav a:hover { color: var(--ink); text-decoration: underline; }
.fuss__zeile { margin-top: 32px; }

/* ---------- Textseiten (Impressum, Datenschutz, AGB, AVV, Danke) ---------- */
.textseite { padding-block: clamp(40px, 7vw, 80px); }
.textseite__inhalt { max-width: 760px; }
.textseite h1 { margin-bottom: 16px; }
.textseite h2 { margin-top: 40px; margin-bottom: 12px; }
.textseite h3 { margin-top: 24px; margin-bottom: 8px; }
.textseite p, .textseite ul, .textseite ol { margin-bottom: 12px; }
.textseite ul, .textseite ol { padding-left: 1.3em; }
.textseite li + li { margin-top: 6px; }
.hinweisbox {
  margin-block: 24px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: var(--tint);
}
.hinweisbox p:last-child { margin-bottom: 0; }
.zurueck { margin-top: 32px; }
.textseite ol li::marker { font-variant-numeric: tabular-nums; color: var(--ink-muted); }
.textseite a { overflow-wrap: anywhere; }

/* Tabellen in Datenschutz und AVV: auf schmalen Bildschirmen seitlich scrollbar. */
.tabelle {
  margin-block: 16px 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
}
.tabelle table {
  width: 100%;

  border-collapse: collapse;
  font-size: 14px;
  line-height: 20px;
}
.tabelle th,
.tabelle td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.tabelle th {
  background: var(--tint);
  font-weight: 600;
}
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle--breit table { min-width: 620px; }
