/* HvO Assist, Website hvo-assist.de
   Nur Systemschriften, keine externen Dateien, kein JavaScript.
   Farben wie in der App (lib/app_theme.dart). */

:root {
  --rot: #E30613;
  --rot-text: #C4000F;        /* Rot für Text auf Weiß (Kontrast über 5:1) */
  --rot-hell: #FCE4E2;
  --rot-rand: #F5B8B5;
  --grund: #FFFFFF;
  --flaeche: #F6F6F8;
  --karte: #FFFFFF;
  --linie: #E4E5EA;
  --text: #141824;
  --text-2: #4A5160;
  --text-3: #5F6673;
  --schatten: 0 1px 2px rgba(20, 24, 36, .04), 0 8px 24px rgba(20, 24, 36, .06);
  --radius: 18px;
  --breite: 1080px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --rot-text: #FF6B74;
    --rot-hell: #3A1518;
    --rot-rand: #6A2327;
    --grund: #0F1218;
    --flaeche: #161A22;
    --karte: #1B2029;
    --linie: #2A303B;
    --text: #ECEEF3;
    --text-2: #B9BFCB;
    --text-3: #9AA1AE;
    --schatten: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

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

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

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--rot-text); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; overflow-wrap: break-word; hyphens: manual; -webkit-hyphens: manual; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { font-size: .9em; overflow-wrap: anywhere; word-break: break-word; }

.huelle { max-width: var(--breite); margin: 0 auto; padding: 0 20px; }

.sprung {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--karte); color: var(--text); padding: 10px 14px; border-radius: 10px;
}
.sprung:focus { top: 12px; }

/* Kopf */
.kopf {
  position: sticky; top: 0; z-index: 5;
  background: var(--grund);
  background: color-mix(in srgb, var(--grund) 86%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--linie);
}
.kopf .huelle { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.marke { display: flex; align-items: center; gap: 10px; white-space: nowrap; flex-shrink: 0; color: var(--text); text-decoration: none; font-weight: 750; font-size: 1.125rem; }
.marke img { width: 34px; height: 34px; }
.nav { margin-left: auto; display: flex; gap: 2px; justify-content: flex-end; }
.nav a { color: var(--text-2); text-decoration: none; font-size: .9375rem; white-space: nowrap; padding: 8px 8px; border-radius: 10px; }
.nav a:hover { color: var(--text); background: var(--flaeche); }
.nav .nur-breit { display: none; }
@media (min-width: 760px) { .nav .nur-breit { display: inline-block; } }
/* Schmale Handys: „Startseite“ weg, das Logo führt schon dorthin. */
@media (max-width: 399px) {
  .nav .nur-mittel { display: none; }
  .kopf .huelle { gap: 8px; }
  .nav a { padding: 8px 6px; }
}

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-weight: 650; font-size: 1rem; text-decoration: none;
  background: var(--rot); color: #fff; border: 1.5px solid var(--rot);
}
.knopf:hover { background: #C4000F; border-color: #C4000F; text-decoration: none; }
.knopf.zweit { background: transparent; color: var(--rot-text); border-color: var(--rot-rand); }
.knopf.zweit:hover { background: var(--rot-hell); }
.knopf[aria-disabled="true"] { background: var(--flaeche); color: var(--text-3); border-color: var(--linie); cursor: default; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Abschnitte */
section { padding: 64px 0; }
section.grau { background: var(--flaeche); }
.ueber { color: var(--rot-text); font-weight: 700; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.einleitung { color: var(--text-2); font-size: 1.125rem; max-width: 42rem; }
@media (min-width: 760px) { section { padding: 96px 0; } }

/* Start */
.start { padding: 48px 0 56px; overflow: hidden; }
.start .huelle { display: grid; gap: 40px; align-items: center; }
.start p.einleitung { font-size: 1.1875rem; }
.marken-zeile { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding: 0; list-style: none; }
.marken-zeile li { font-size: .875rem; color: var(--text-2); background: var(--flaeche); border: 1px solid var(--linie); padding: 4px 12px; border-radius: 999px; }
@media (min-width: 900px) {
  .start { padding: 88px 0 96px; }
  .start .huelle { grid-template-columns: 1.15fr .85fr; gap: 56px; }
}

/* Telefon (nur Bild, aus HTML und CSS) */
.telefon {
  justify-self: center; width: 280px; max-width: 100%;
  border-radius: 44px; padding: 12px; background: #141824;
  box-shadow: 0 30px 60px -20px rgba(227, 6, 19, .35), 0 12px 30px rgba(20, 24, 36, .25);
}
.bildschirm { border-radius: 33px; background: #F2F2F5; color: #141824; padding: 20px 16px 22px; font-size: .8125rem; line-height: 1.4; }
.bildschirm .zeile { display: flex; justify-content: space-between; align-items: center; color: #5F6673; font-size: .75rem; margin-bottom: 14px; }
.bildschirm .gross { font-size: 1.25rem; font-weight: 800; margin-bottom: 2px; }
.bildschirm .klein { color: #5F6673; margin-bottom: 14px; }
.bildschirm .rot-knopf { background: #E30613; color: #fff; font-weight: 750; text-align: center; border-radius: 18px; padding: 22px 8px; font-size: 1rem; margin-bottom: 12px; }
.bildschirm .karte { background: #fff; border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; display: flex; justify-content: space-between; gap: 8px; }
.bildschirm .karte b { font-weight: 650; }
.bildschirm .stand { font-size: .6875rem; padding: 2px 8px; border-radius: 999px; background: #E7F6EC; color: #1E7A3C; align-self: center; white-space: nowrap; }
.bildschirm .stand.entwurf { background: #FCE4E2; color: #B5000F; }

/* Karten */
.raster { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 620px) { .raster { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .raster.drei { grid-template-columns: repeat(3, 1fr); } }
.karte {
  background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--schatten);
}
.karte p:last-child, .karte ul:last-child { margin-bottom: 0; }
.karte p, .karte li { color: var(--text-2); }
.symbol {
  width: 44px; height: 44px; border-radius: 12px; background: var(--rot-hell); color: var(--rot-text);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.symbol svg { width: 24px; height: 24px; }

/* Datenschutz-Prinzip */
.prinzip { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .prinzip { grid-template-columns: .9fr 1.1fr; gap: 56px; } }
.haken { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.haken li { position: relative; padding-left: 36px; color: var(--text-2); }
.haken li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--rot-hell) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23E30613' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.haken li b { color: var(--text); }

/* Ablauf: Server der Organisation */
.ablauf { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; counter-reset: schritt; }
@media (min-width: 900px) { .ablauf { grid-template-columns: repeat(3, 1fr); } }
.ablauf li { counter-increment: schritt; position: relative; padding-top: 56px; }
.ablauf li::before {
  content: counter(schritt); position: absolute; left: 24px; top: 20px;
  width: 32px; height: 32px; border-radius: 50%; background: var(--rot); color: #fff;
  font-weight: 750; display: flex; align-items: center; justify-content: center;
}

.hinweis { font-size: .9375rem; color: var(--text-3); margin-top: 16px; }
.hinweis-kasten {
  border-left: 4px solid var(--rot); background: var(--flaeche); border-radius: 0 12px 12px 0;
  padding: 16px 20px; margin: 24px 0; color: var(--text-2);
}
.hinweis-kasten p:last-child { margin-bottom: 0; }
.hinweis-kasten h3 { margin-top: 0; color: var(--text); }

/* Kontakt */
.kontakt { text-align: center; }
.kontakt .einleitung { margin: 0 auto; }
.kontakt .knoepfe { justify-content: center; }

/* Fuß */
.fuss { border-top: 1px solid var(--linie); padding: 32px 0 40px; color: var(--text-3); font-size: .9375rem; }
.fuss .huelle { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.fuss nav { display: flex; gap: 20px; flex-wrap: wrap; }
.fuss a { color: var(--text-2); }
.fuss p { margin: 0; }

/* Rechtstexte */
.text { max-width: 46rem; margin: 0 auto; padding: 48px 20px 72px; }
.text h1 { font-size: clamp(1.875rem, 5vw, 2.5rem); margin-bottom: .25em; }
.text h2 { font-size: 1.375rem; margin-top: 2.2em; }
.text h3 { margin-top: 1.6em; }
.text p, .text li { color: var(--text-2); }
.text ul { padding-left: 1.25em; }
.text li { margin-bottom: .4em; }
.text .stand { color: var(--text-3); font-size: .9375rem; margin-bottom: 2em; }
.text .karte { margin: 20px 0; }
.text .karte h2 { margin-top: 0; }
.inhalt { background: var(--flaeche); border-radius: 14px; padding: 18px 22px; margin: 24px 0 8px; }
.inhalt ol { margin: 0; padding-left: 1.3em; columns: 1; }
@media (min-width: 620px) { .inhalt ol { columns: 2; column-gap: 32px; } }
.inhalt li { margin-bottom: .25em; }
.tabelle { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: .9375rem; }
.tabelle th, .tabelle td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--linie); color: var(--text-2); }
.tabelle th { color: var(--text); font-weight: 650; }
.tabelle-huelle { overflow-x: auto; }
address { font-style: normal; }

/* 404 */
.fehler-logo { width: 64px; height: 64px; margin: 24px auto 24px; }
