/* ===================================================================
   Praxis-Check IT-Sicherheitsrichtlinie · security.lennartpafel.info
   Statisch, ohne JavaScript, ohne Drittanbieter.
   Keine Inline-Styles im HTML (CSP: style-src 'self').
   =================================================================== */

/* ---------- Schriften (selbst gehostet, OFL-lizenziert) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-var.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin-var.woff2") format("woff2");
}

/* ---------- Farben & Maße ----------
   Alle Text/Hintergrund-Paare erreichen mindestens WCAG 2.1 AA (4,5:1).
   Limette (#C8FF3D) nur als kleines Markendetail auf Dunkelblau, nie als Text auf hellem Grund. */
:root {
  color-scheme: light dark;

  --bg:          #FAFAF7;
  --surface:     #FFFFFF;
  --tint:        #EEF3F7;
  --line:        #D5DCE3;
  --ink:         #1B2430;
  --ink-soft:    #4A5563;
  --heading:     #1F3A5F;
  --link:        #1F3A5F;
  --accent:      #0F5E5A;   /* Petrol: Buttons und Hervorhebungen */
  --accent-hover:#0B4A47;
  --accent-ink:  #FFFFFF;
  --accent-soft: #E3F0EE;
  --focus:       #0F5E5A;
  --brand:       #1F3A5F;
  --lime:        #C8FF3D;
  --footer-bg:   #1F3A5F;
  --footer-ink:  #FFFFFF;
  --footer-soft: #D3DDE8;
  --shadow:      0 1px 2px rgb(27 36 48 / .05), 0 8px 24px rgb(27 36 48 / .06);

  --maxw: 1100px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(3.5rem, 8vw, 6rem);
  --radius: 12px;

  --f-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #0E141B;
    --surface:     #17212C;
    --tint:        #121B25;
    --line:        #2A3644;
    --ink:         #E7ECF2;
    --ink-soft:    #A9B4C1;
    --heading:     #C9DBF0;
    --link:        #9CC9F2;
    --accent:      #5CC2B8;
    --accent-hover:#7FD3CA;
    --accent-ink:  #06211F;
    --accent-soft: #15302F;
    --focus:       #5CC2B8;
    --footer-bg:   #0A0F15;
    --footer-ink:  #E7ECF2;
    --footer-soft: #A9B4C1;
    --shadow:      0 1px 2px rgb(0 0 0 / .3);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;          /* 17 px */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  /* Footer bleibt auch auf kurzen Seiten unten */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
@media (min-width: 48rem) {
  body { font-size: 1.125rem; }  /* 18 px */
}

img, svg { display: block; max-width: 100%; }
figure { margin: 0; }
img { height: auto; }

h1, h2, h3 {
  font-family: var(--f-display);
  color: var(--heading);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 0 0 .75rem;
  text-wrap: balance;
  hyphens: manual;
}
h1 { font-size: clamp(1.9rem, 1.4rem + 2.6vw, 2.9rem); letter-spacing: -.02em; line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.25rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--link); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

ul, ol { padding-left: 1.25rem; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.prose { max-width: 68ch; }
.lead { font-size: 1.15em; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.small { font-size: .9em; }

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

.skip-link {
  position: absolute; left: .5rem; top: -4rem; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: .75rem 1rem; border-radius: 8px; font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: .5rem; }

.icon {
  width: 1.5rem; height: 1.5rem; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon--sm { width: 1.15rem; height: 1.15rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3rem;
  padding: .75rem 1.4rem;
  border-radius: 10px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; line-height: 1.25;
  text-align: center; text-decoration: none;
  border: 2px solid transparent;
  transition: background-color .2s ease;
}
.btn:hover { background: var(--accent-hover); }
.btn .icon { width: 1.2rem; height: 1.2rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 2.75rem;
  font-weight: 600;
}
.link-arrow .icon { width: 1.1rem; height: 1.1rem; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: 1.75rem; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 3.5rem;
}

.brand {
  display: none;
  align-items: center; gap: .6rem;
  min-height: 2.75rem;
  color: var(--heading); text-decoration: none;
  font-family: var(--f-display); font-weight: 600; font-size: 1.05rem;
}
.brand__mark {
  display: inline-grid; place-items: center;
  width: 2rem; height: 2rem; border-radius: 7px;
  background: var(--brand); color: var(--lime);
  font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; line-height: 1;
}
.brand__sub { color: var(--ink-soft); font-weight: 500; }

.nav ul {
  display: flex; justify-content: space-between;
  list-style: none; margin: 0; padding: 0;
}
.nav { flex: 1; }
.nav a {
  display: flex; align-items: center;
  min-height: 2.75rem; padding: 0 .4rem;
  color: var(--ink); text-decoration: none;
  font-size: .95rem; font-weight: 500;
}
.nav a:hover { color: var(--link); text-decoration: underline; }

@media (min-width: 46rem) {
  .site-header__inner { min-height: 4rem; }
  .brand { display: inline-flex; }
  .nav { flex: none; }
  .nav ul { gap: .5rem; }
  .nav a { padding: 0 .65rem; }
}
@media (max-width: 54rem) {
  .brand__sub { display: none; }
}
/* Unterseiten: nur Marke + Link zur Startseite */
.site-header--simple .brand { display: inline-flex; }

/* ---------- Abschnitte ---------- */
.section { padding-block: var(--section); }
.section--surface { background: var(--surface); }
.section--tint { background: var(--tint); }
.section + .section { border-top: 1px solid var(--line); }

.section__head { max-width: 68ch; margin-bottom: 2.25rem; }
.eyebrow {
  display: inline-block;
  margin: 0 0 .75rem;
  color: var(--accent);
  font-family: var(--f-display); font-weight: 600; font-size: .9rem;
  letter-spacing: .06em; text-transform: uppercase;
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 8vw, 6rem); }
.hero__grid { display: grid; gap: 2.75rem; align-items: center; }

/* Raster dürfen nie breiter als der Bildschirm werden (lange deutsche Komposita) */
.hero__grid, .split, .about, .price, .contact { grid-template-columns: minmax(0, 1fr); }
.hero__grid > *, .split > *, .about > *, .price > *, .contact > *, .pillars li > *, .privacy-list li > * { min-width: 0; }

@media (min-width: 60rem) {
  .hero__grid { grid-template-columns: 1.25fr 1fr; gap: 4rem; }
}
.hero__lead { font-size: 1.2em; color: var(--ink-soft); max-width: 36em; }

.facts {
  list-style: none; padding: 0; margin: 2rem 0 0;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  color: var(--ink-soft); font-size: .95em;
}
.facts li { display: flex; align-items: center; gap: .45rem; }
.facts .icon { color: var(--accent); }

/* Beispiel-Nachweisordner (rein illustrativ, HTML statt Bild) */
.folder {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.folder__head {
  display: flex; align-items: center; gap: .65rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-display); font-weight: 600; color: var(--heading);
}
.folder__head .icon { color: var(--accent); }
.folder__tag {
  margin-left: auto;
  font-family: var(--f-body); font-size: .8rem; font-weight: 500;
  color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: .1rem .6rem;
}
.folder ul { list-style: none; margin: 0; padding: .35rem 0; }
.folder li {
  display: grid; grid-template-columns: 1fr auto; gap: .15rem 1rem; align-items: center;
  padding: .8rem 1.25rem;
}
.folder li + li { border-top: 1px dashed var(--line); }
.folder__req { font-weight: 600; font-size: .95rem; }
.folder__proof { grid-column: 1; font-size: .85rem; color: var(--ink-soft); }
.folder__status {
  grid-column: 2; grid-row: 1 / span 2;
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .8rem; font-weight: 600; white-space: nowrap;
  padding: .2rem .6rem; border-radius: 999px;
}
.status--ok { color: var(--accent); background: var(--accent-soft); }
.status--todo { color: var(--ink-soft); border: 1px solid var(--line); }
.folder__foot { padding: .85rem 1.25rem; border-top: 1px solid var(--line); background: var(--tint); font-size: .85rem; color: var(--ink-soft); }

/* ---------- Problem ---------- */
.split { display: grid; gap: 2.5rem; }
@media (min-width: 60rem) {
  .split { grid-template-columns: 1.3fr 1fr; gap: 4rem; align-items: start; }
}
.asker {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.asker h3 { margin-bottom: 1rem; }
.asker ul { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: 1rem; }
.asker li { display: flex; gap: .75rem; }
.asker li .icon { color: var(--accent); margin-top: .15rem; }
.asker__note { padding-top: 1rem; border-top: 1px solid var(--line); font-weight: 600; color: var(--heading); }

/* ---------- Karten (Leistung) ---------- */
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}
.card__icon {
  display: inline-grid; place-items: center; flex: none;
  width: 3rem; height: 3rem; margin-bottom: 1.1rem;
  border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
}
.card ul { margin: .75rem 0 0; padding-left: 1.1rem; }
.card li + li { margin-top: .35rem; }

.note {
  display: flex; gap: .75rem; align-items: flex-start;
  margin-top: 2rem; max-width: 68ch;
  color: var(--ink-soft);
}
.note .icon { color: var(--accent); margin-top: .15rem; }

/* ---------- Ablauf ---------- */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1.25rem;
  counter-reset: step;
}
.step {
  counter-increment: step;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.step::before {
  content: counter(step);
  display: grid; place-items: center;
  margin-bottom: .85rem;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--f-display); font-weight: 700;
}
.step h3 { margin-bottom: .4rem; }
@media (min-width: 48rem) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step { padding-left: 4.75rem; }
  .step::before { position: absolute; left: 1.5rem; top: 1.35rem; margin: 0; }
}
.step__meta { display: block; color: var(--accent); font-family: var(--f-body); font-size: .9rem; font-weight: 600; margin-top: .2rem; }
.timeline { margin-top: 2rem; display: flex; gap: .75rem; align-items: flex-start; max-width: 68ch; }
.timeline .icon { color: var(--accent); margin-top: .15rem; }

/* ---------- Unabhängig ---------- */
.pillars { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .pillars { grid-template-columns: 1fr 1fr; } }
.pillars li { display: flex; gap: 1rem; }
.pillars .card__icon { margin: 0; }
.pillars h3 { margin-bottom: .3rem; }
.aside-box {
  margin-top: 2rem; max-width: 68ch;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ---------- Preis ---------- */
.price {
  display: grid; gap: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
@media (min-width: 52rem) { .price { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.price__badge {
  display: inline-block;
  margin-bottom: 1rem; padding: .25rem .75rem;
  border-radius: 8px;
  background: var(--accent-soft); color: var(--accent);
  font-size: .9rem; font-weight: 600;
}
.price h3 { margin-bottom: 1rem; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.checklist li { display: flex; gap: .65rem; align-items: flex-start; }
.checklist .icon { color: var(--accent); margin-top: .2rem; }
.price__cta { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }

/* ---------- Datenschutz ---------- */
.privacy-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .privacy-list { grid-template-columns: 1fr 1fr; } }
.privacy-list li { display: flex; gap: 1rem; }
.privacy-list .card__icon { margin: 0; }

.callout {
  display: flex; gap: .85rem; align-items: flex-start;
  margin-top: 2rem; max-width: 68ch;
  padding: 1.1rem 1.25rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
  font-weight: 600;
}
.callout .icon { color: var(--accent); margin-top: .1rem; }

/* ---------- Über mich ---------- */
.about { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 44rem) { .about { grid-template-columns: 15rem 1fr; gap: 3rem; } }
.about__photo {
  width: 100%; max-width: 15rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* ---------- FAQ ---------- */
.faq { max-width: 50rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 3.5rem; padding: .85rem 0;
  cursor: pointer; list-style: none;
  font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; color: var(--heading);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none; width: .65rem; height: .65rem; margin-right: .35rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-25%);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-25%); }
.faq summary:hover { color: var(--link); }
.faq .faq__answer { padding: 0 0 1.25rem; max-width: 68ch; }

/* ---------- Kontakt ---------- */
.contact {
  display: grid; gap: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 2.75rem);
}
@media (min-width: 52rem) { .contact { grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; } }
.contact__ways { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.contact__ways li { display: flex; gap: .85rem; align-items: flex-start; }
.contact__ways .icon { color: var(--accent); margin-top: .2rem; }
.contact__label { display: block; font-size: .85rem; color: var(--ink-soft); }
.contact__ways a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg); color: var(--footer-ink);
  padding-block: 2.5rem;
  font-size: .95rem;
}
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.site-footer .brand { display: inline-flex; color: var(--footer-ink); }
.site-footer .brand__mark { background: transparent; border: 1px solid var(--footer-soft); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 .5rem; }
.site-footer a { color: var(--footer-ink); display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .4rem; }
.site-footer__copy { color: var(--footer-soft); margin: 0; }

/* ---------- Rechtstexte (Impressum, Datenschutz, 404) ---------- */
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--section); }
.legal .wrap > * { max-width: 70ch; }
.legal h1 { font-size: clamp(2rem, 1.6rem + 2vw, 2.75rem); margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.4rem; margin-top: 2.75rem; padding-top: .5rem; }
.legal h3 { font-size: 1.1rem; margin-top: 1.75rem; margin-bottom: .5rem; }
.legal ul { margin: 0 0 1rem; }
.legal li + li { margin-top: .35rem; }
.legal address { font-style: normal; margin-bottom: 1rem; }
.legal dl { margin: 0 0 1rem; display: grid; gap: .25rem 1.5rem; }
@media (min-width: 40rem) { .legal dl { grid-template-columns: max-content 1fr; } }
.legal dt { font-weight: 600; }
.legal dd { margin: 0 0 .5rem; }
@media (min-width: 40rem) { .legal dd { margin: 0; } }
.legal .toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.legal .toc h2 { margin-top: 0; padding-top: 0; font-size: 1.1rem; }
.legal .toc ol { margin: 0; }
.legal .toc a { display: inline-block; padding: .2rem 0; }

.objection {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent-soft);
}
.objection h3 { margin-top: 0; color: var(--heading); }

.back-link { margin-top: 3rem; }

/* ---------- Druck ---------- */
@media print {
  .site-header, .skip-link, .site-footer, .actions, .price__cta { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section { padding-block: 1.5rem; }
  a { color: #000; }
}

/* Abstand für Hinweiszeilen unter Kästen */
.contact + p, .callout + p { margin-top: 1.25rem; }

/* Fokus im dunkelblauen Footer: Limette statt Petrol, damit der Rahmen sichtbar bleibt */
.site-footer :focus-visible { outline-color: var(--lime); }
