/* Saira (SIL Open Font License 1.1, siehe fonts/OFL-Saira.txt) – lokal gehostet, variabel 100–900 */
@font-face {
  font-family: "Saira";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/saira-latin-wght-normal.woff2") format("woff2-variations"),
       url("fonts/saira-latin-wght-normal.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 {
  --navy-900: #07182b;
  --navy-800: #0c2440;
  --navy-700: #123356;
  --blue: #1f6fb2;
  --accent: #f08a1c;
  --accent-dark: #d4730a;
  --ink: #16212e;
  --muted: #4a5868; /* Kontrast 7:1 auf Weiß (WCAG AAA) */
  --line: #dde4ea;
  --bg: #ffffff;
  --bg-alt: #f3f6f9;
  --radius: 14px;
  --wrap: 1180px;
  --header-h: 72px;
  /* Schrift lokal gehostet (keine Google-Fonts-Einbindung wegen DSGVO) */
  --font: "Saira", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Saira", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  overflow-wrap: break-word;
  -webkit-tap-highlight-color: rgba(240, 138, 28, .2);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.eyebrow {
  font-family: var(--display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85em 1.5em;
  border-radius: 999px;
  background: var(--accent);
  color: var(--navy-900); /* dunkle Schrift auf Orange: Kontrast 7:1 (weiß wäre nur 2,5:1) */
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--accent);
  transition: background .2s, transform .2s, border-color .2s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: var(--accent); }
.btn-small { padding: .5em 1.1em; font-size: .9rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 24, 43, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #fff;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; }
.logo-img { display: block; height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a { color: #d6e1ec; text-decoration: none; font-size: .95rem; font-weight: 500; white-space: nowrap; }
.nav a:not(.btn):hover { color: #fff; }
.nav .btn { color: var(--navy-900); }
.nav .lang { font-size: .8rem; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; padding: .2em .5em; }
/* Schmale Desktop-Breiten: Menü mit Sprachumschalter enger setzen, damit es nicht an das Logo stößt */
@media (min-width: 1101px) and (max-width: 1260px) { .nav { gap: 1.2rem; } }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: transform .25s, opacity .25s; }

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--navy-900);
    padding: .5rem 16px 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn):not(.lang) { padding: .8rem 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav .btn { margin-top: 1rem; }
  .nav .lang { margin-top: 1rem; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse at 85% 60%, rgba(240,138,28,.28), transparent 55%),
    radial-gradient(ellipse at 10% 0%, rgba(31,111,178,.45), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900));
  margin-top: calc(-1 * var(--header-h));
  padding-top: var(--header-h);
}
#net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .7; }
.hero-inner { position: relative; padding: clamp(5rem, 12vw, 9rem) 24px clamp(4rem, 9vw, 7rem); }
.hero .hl { color: var(--accent); }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 620px; color: #c9d6e3; margin: 1.2rem 0 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.badges { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 3rem 0 0; }
.badges li {
  font-family: var(--display); font-weight: 600; font-size: .85rem; letter-spacing: .08em;
  padding: .45em 1em; border: 1px solid rgba(255,255,255,.22); border-radius: 8px;
  background: rgba(255,255,255,.04);
}

/* Intro */
.intro { padding: clamp(4rem, 8vw, 6rem) 0 0; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.intro-grid h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.intro-grid p { color: var(--muted); }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin-top: 3.5rem;
  padding: 0; width: calc(100% - 48px); max-width: calc(var(--wrap) - 48px);
}
@media (max-width: 600px) { .stats { width: calc(100% - 32px); } }
.stats div { background: #fff; padding: 1.8rem; }
.stats strong { display: block; font-family: var(--display); font-size: 2.2rem; color: var(--blue); line-height: 1.1; }
.stats span { color: var(--muted); font-size: .95rem; }

/* Sections */
.section { padding: clamp(4.5rem, 9vw, 7rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy-900); color: #e3ebf3; }
.section-dark p { color: #b5c4d3; }
.section-head { max-width: 760px; margin-bottom: 3rem; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }
.section-dark .section-head p:not(.eyebrow) { color: #b5c4d3; }
.sub { margin-bottom: 1.2rem; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: #b9cde0; box-shadow: 0 12px 30px -18px rgba(12,36,64,.35); transform: translateY(-2px); }
.card p { color: var(--muted); font-size: .97rem; }
.card-icon { font-family: var(--display); font-weight: 700; color: var(--accent); font-size: .95rem; margin-bottom: 1.2rem; }
.card-large { padding: 2.4rem; }
.card-large h3 { font-size: 1.5rem; }

.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; margin-top: 4rem; align-items: start; }
.split-wide { margin-top: 0; grid-template-columns: 1.3fr 1fr; }
.split p { color: var(--muted); }
.section-dark .split p { color: #b5c4d3; }

.tags { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.tags li { padding: .55em 1em; background: var(--bg-alt); border-radius: 999px; font-size: .92rem; font-weight: 500; }

.protection { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (min-width: 1001px) { .protection .prot-key { grid-column: span 2; } }
.prot {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 1.5rem 1.2rem;
  background: rgba(255,255,255,.03);
}
.prot span { display: block; font-family: var(--display); font-weight: 700; font-size: 1.7rem; color: #fff; margin-bottom: .4rem; }
.prot p { margin: 0; font-size: .92rem; }
.prot-key { border-color: var(--accent); background: linear-gradient(160deg, rgba(240,138,28,.2), rgba(240,138,28,.04)); }
.prot-key span { color: var(--accent); }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; }
.steps li {
  counter-increment: s; position: relative;
  padding: 0 0 1.4rem 3.2rem; color: #b5c4d3;
}
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -.1rem;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--accent); color: var(--accent);
  font-family: var(--display); font-weight: 600; font-size: .9rem;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 1.05rem; top: 2.2rem; bottom: .2rem;
  width: 1px; background: rgba(255,255,255,.15);
}
.steps strong { display: block; color: #fff; font-family: var(--display); }

.phon { display: block; font-family: var(--font); font-size: 1rem; font-weight: 400; color: var(--muted); margin-top: .4rem; }
.values { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.values li { background: #fff; border-radius: var(--radius); padding: 1.3rem 1.5rem; border-left: 3px solid var(--accent); color: var(--muted); font-size: .95rem; }
.values strong { display: block; color: var(--ink); font-family: var(--display); font-size: 1.1rem; }

/* Zertifizierung */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.cert {
  border-radius: var(--radius);
  padding: 1.8rem;
  background: var(--bg-alt);
  border-top: 3px solid var(--blue);
}
.cert h3 { font-size: 1.4rem; margin-bottom: .2rem; }
.cert-region { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.cert p:not(.cert-region) { color: var(--muted); font-size: .97rem; margin: 0; }
.section:not(.section-dark) .steps li { color: var(--muted); }
.section:not(.section-dark) .steps strong { color: var(--ink); }
.section:not(.section-dark) .steps li:not(:last-child)::after { background: var(--line); }

/* Legal pages */
.legal { padding: clamp(3rem, 7vw, 5rem) 0; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.2rem; }
.legal .todo { background: #fff3cd; color: #7a5600; padding: 0 .3em; border-radius: 4px; }
.legal .stand { font-size: .9rem; margin-top: 3rem; }
.site-header.solid { position: sticky; }

/* Contact */
.contact { background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); color: #fff; }
.contact p:not(.eyebrow) { color: #c9d6e3; font-size: 1.1rem; margin-bottom: 2rem; }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.contact-card {
  font-style: normal;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 2rem;
  color: #c9d6e3;
  line-height: 1.8;
}
.contact-card strong { display: block; color: #fff; font-family: var(--display); font-size: 1.1rem; margin-bottom: .5rem; }
.contact-card a { color: var(--accent); text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

/* Footer */
.site-footer { background: #040e1a; color: #8193a6; font-size: .9rem; padding: 1.8rem 0; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer a { color: #b5c4d3; text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Fokus sichtbar (Tastatur & Screenreader) */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--navy-900); padding: .6em 1em; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Responsive */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .protection { grid-template-columns: repeat(3, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .intro-grid, .split, .split-wide, .contact-grid, .cards-2 { grid-template-columns: 1fr; gap: 2rem; }
  .stats { grid-template-columns: 1fr; }
  .cards, .cert-grid { grid-template-columns: 1fr; }
  .protection { grid-template-columns: repeat(2, 1fr); }
  .split { margin-top: 3rem; }
}

/* ---------- Mobile-Optimierung ---------- */
@media (max-width: 1100px) {
  /* Menü: volle Höhe, große Tippflächen, Safe-Area */
  .nav {
    top: var(--header-h);
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  }
  .nav a:not(.btn):not(.lang) { font-size: 1.15rem; padding: 1rem 0; min-height: 48px; }
  .nav .btn { width: 100%; min-height: 52px; font-size: 1.05rem; }
  .nav-toggle { min-width: 48px; min-height: 48px; margin-right: -8px; }
  body.menu-open { overflow: hidden; }
}

@media (max-width: 600px) {
  body { font-size: 17px; line-height: 1.7; }
  html { scroll-padding-top: 72px; }

  :root { --header-h: 64px; }
  .logo-img { height: 36px; }

  /* Wrap mit Safe-Area (iPhone-Notch im Querformat) */
  .wrap {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  /* Überschriften: lesbare Größen, deutsche Silbentrennung */
  h1 { font-size: clamp(2rem, 9vw, 2.6rem); line-height: 1.12; }
  h2 { font-size: clamp(1.55rem, 7vw, 1.9rem); line-height: 1.2; }
  h3 { font-size: 1.2rem; }
  h1, h2, h3, p, li { hyphens: auto; -webkit-hyphens: auto; }
  .eyebrow { font-size: .82rem; letter-spacing: .08em; line-height: 1.5; }
  .cert-region { font-size: .85rem; }
  .logo { min-height: 48px; }
  .legal p a { display: inline-block; padding: .4rem 0; }

  .hero-inner { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .hero .lead { font-size: 1.1rem; color: #dbe5ef; }
  #net { opacity: .45; }

  /* Buttons: volle Breite, mind. 52 px hoch */
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; min-height: 52px; font-size: 1.05rem; }
  .badges { margin-top: 2rem; }

  .section { padding: 3.5rem 0; }
  .section-head { margin-bottom: 2rem; }
  .section-head p:not(.eyebrow) { font-size: 1.05rem; }
  .intro { padding-top: 3rem; }
  .intro-grid { gap: 1rem; }

  /* Karten: Fließtext nicht verkleinern */
  .card, .card-large, .cert { padding: 1.4rem; }
  .card p, .cert p:not(.cert-region), .prot p, .values li, .tags li { font-size: 1rem; }
  .card-icon { margin-bottom: .6rem; }
  .cards, .cert-grid { gap: 1rem; }

  .stats div { padding: 1.3rem 1.4rem; }
  .stats strong { font-size: 1.9rem; }

  /* Zündschutzarten: einspaltig als Liste, besser lesbar */
  .protection { grid-template-columns: 1fr; gap: .7rem; }
  .prot { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; }
  .prot span { min-width: 5.4rem; margin: 0; font-size: 1.4rem; white-space: nowrap; }
  .prot p { color: #d3dee9; }

  .tags li { padding: .6em 1em; }
  .steps li { padding-left: 3rem; }

  .contact-card { padding: 1.5rem; font-size: 1.05rem; }
  .contact-card a { display: inline-block; padding: .35rem 0; }

  /* Footer: gestapelt, große Links */
  .footer-inner { flex-direction: column; gap: .8rem; padding-bottom: env(safe-area-inset-bottom); }
  .site-footer nav { gap: 1.5rem; }
  .site-footer a { display: inline-block; padding: .5rem 0; font-size: 1rem; }

  /* Rechtstexte */
  .legal { padding: 2.5rem 0 3rem; }
  .legal h2 { font-size: 1.2rem; margin-top: 1.8rem; }
  .legal a { word-break: break-word; }
}

@media (max-width: 360px) {
  body { font-size: 16px; }
  .logo-img { height: 32px; }
  .badges li { font-size: .78rem; padding: .4em .8em; }
}

/* Querformat auf Smartphones: Hero nicht zu hoch */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-inner { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .badges { margin-top: 1.5rem; }
}

/* Badges innerhalb von Abschnitten (z. B. QAR-Audits) */
.badges-inline { margin-top: 1.5rem; }
.section-dark .badges-inline li { color: #fff; }
.hero .badges li:last-child { border-style: dashed; }
