/* HoMerSafety – Stylesheet
   Keine externen Schriften oder Skripte: alles wird lokal ausgeliefert. */

:root {
  color-scheme: light;
  --ink: #101828;
  --text: #3a4557;
  --muted: #667085;
  --brand: #2b5c98;
  --brand-dark: #1d4170;
  --brand-soft: #eaf1f9;
  --bg: #ffffff;
  --surface: #f4f6f9;
  --line: #e2e7ee;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 10px 28px -10px rgba(16, 24, 40, .16);
  --container: 1120px;
  --gutter: 24px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }

:focus-visible { outline: 3px solid rgba(43, 92, 152, .45); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); font-weight: 750; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 16px;
  color: var(--brand);
  font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow svg { width: 18px; height: 18px; flex: none; }

/* ---------- Kopfbereich ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: block; flex: none; }
.brand img { height: 52px; width: auto; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: block; padding: 9px 14px; border-radius: 999px;
  color: var(--text); font-size: .9688rem; font-weight: 550; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.site-nav a:hover { background: var(--surface); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-dark); }
.site-nav a.nav-cta { background: var(--brand); color: #fff; margin-left: 8px; padding-inline: 18px; }
.site-nav a.nav-cta:hover, .site-nav a.nav-cta[aria-current="page"] { background: var(--brand-dark); color: #fff; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.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); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 10px var(--gutter) 18px;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { padding: 13px 14px; border-radius: 10px; font-size: 1.0625rem; }
  .site-nav a.nav-cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  background: var(--brand); color: #fff;
  font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); }

/* ---------- Startseite ---------- */

.hero {
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(43, 92, 152, .13), transparent 65%),
    linear-gradient(180deg, var(--surface), #fff);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(48px, 7vw, 96px);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero .lead { font-size: 1.1875rem; color: var(--ink); font-weight: 500; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 32px; }
.hero-cta strong { color: var(--ink); font-size: 1.0625rem; }
.hero-figure {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(14px, 2vw, 24px); box-shadow: var(--shadow);
}
.hero-figure img { width: 100%; border-radius: 8px; }

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

.section { padding-block: clamp(48px, 6vw, 88px); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }

.teasers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.teaser {
  display: flex; flex-direction: column; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; text-decoration: none; color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.teaser:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c9d6e6; color: var(--text); }
.teaser .label { color: var(--brand); font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.teaser .title { color: var(--ink); font-size: 1.125rem; font-weight: 650; line-height: 1.35; letter-spacing: -.01em; flex: 1; margin: 0; text-wrap: wrap; }
.teaser .arrow { color: var(--brand); display: inline-flex; }
.teaser .arrow svg { width: 20px; height: 20px; transition: transform .18s; }
.teaser:hover .arrow svg { transform: translateX(4px); }

@media (max-width: 1000px) { .teasers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .teasers { grid-template-columns: 1fr; } }

/* ---------- Unterseiten ---------- */

.page-hero {
  background:
    radial-gradient(700px 300px at 92% -30%, rgba(43, 92, 152, .13), transparent 65%),
    var(--surface);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(40px, 5.5vw, 76px);
}
.page-hero h1 { max-width: 22ch; }
.page-hero h1 a { color: inherit; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 6px; }

.prose { max-width: 68ch; }
.prose h2 { margin: 1.6em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 0 0 1.1em; padding-left: 1.3em; }
.prose li { margin-bottom: .3em; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(28px, 5vw, 64px); align-items: start; }
.split-figure {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.split-figure img { width: 100%; border-radius: 6px; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split-figure { max-width: 320px; }
}

.media { margin: 0 0 clamp(28px, 4vw, 44px); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); max-width: 580px; }
.media img { width: 100%; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.checklist li {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 20px 20px 60px; box-shadow: var(--shadow-sm); color: var(--ink); line-height: 1.5;
}
.checklist li::before {
  content: ""; position: absolute; left: 18px; top: 19px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat;
}
@media (max-width: 720px) { .checklist { grid-template-columns: 1fr; } }

.callout {
  background: var(--brand-soft); border: 1px solid #d3e0f0; border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm); padding: 22px 26px; color: var(--ink); max-width: 68ch;
}
.callout h2, .callout h3 { font-size: 1.1875rem; font-weight: 700; letter-spacing: -.01em; }
.stack > * + * { margin-top: clamp(28px, 4vw, 44px); }

.download-hint {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; box-shadow: var(--shadow-sm); max-width: 68ch;
}
.download-hint svg { width: 24px; height: 24px; color: var(--brand); flex: none; }
.download-hint p { margin: 0; flex: 1; min-width: 220px; }

/* ---------- Netzwerk ---------- */

.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.person {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.person img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; object-position: top; background: var(--surface); }
.person-body { padding: 20px 22px 24px; min-width: 0; hyphens: auto; overflow-wrap: break-word; }
.person h2, .person h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 8px; }
.person p { color: var(--text); font-size: 1rem; line-height: 1.55; }
@media (max-width: 860px) {
  .people { grid-template-columns: 1fr; }
  .person { flex-direction: row; align-items: stretch; }
  .person img { width: 132px; flex: none; aspect-ratio: auto; height: auto; }
  .person-body { align-self: center; }
}

/* ---------- Kundenstimmen ---------- */

.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.quote {
  margin: 0; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 56px 28px 28px; box-shadow: var(--shadow-sm);
}
.quote::before {
  content: "„"; position: absolute; left: 24px; top: -44px; pointer-events: none;
  font-family: Georgia, "Times New Roman", serif; font-size: 5.5rem; line-height: 1; color: var(--brand);
}
.quote blockquote { margin: 0; color: var(--ink); }
.quote figcaption {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .9688rem; font-weight: 550;
}
@media (max-width: 820px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- Kontakt ---------- */

.contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.info-list { display: grid; gap: 16px; margin-top: 28px; }
.info {
  display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow-sm);
}
.info-icon {
  flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center;
}
.info-icon svg { width: 21px; height: 21px; }
.info h2 { font-size: 1rem; letter-spacing: 0; margin-bottom: 4px; }
.info p { margin: 0; line-height: 1.55; overflow-wrap: anywhere; }

.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(22px, 3.5vw, 36px); box-shadow: var(--shadow);
}
.form-card h2 { margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field label, .field legend { display: block; margin-bottom: 7px; padding: 0; color: var(--ink); font-size: .9375rem; font-weight: 600; }
fieldset.field { border: 0; padding: 0; margin-inline: 0; min-width: 0; }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cdd5df; border-radius: 10px; background: #fff;
  color: var(--ink); font: inherit; font-size: 1rem;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 190px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(43, 92, 152, .16); }
.radios { display: flex; gap: 10px; flex-wrap: wrap; }
.radio {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px;
  border: 1px solid #cdd5df; border-radius: 999px; cursor: pointer; color: var(--ink); font-weight: 500;
}
.radio input { accent-color: var(--brand); width: 17px; height: 17px; margin: 0; }
.radio:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.form-actions a { font-size: .9375rem; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Downloads ---------- */

.downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; max-width: 800px; }
.download {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.download:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c9d6e6; color: var(--ink); }
.download img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; background: var(--surface); border-bottom: 1px solid var(--line); }
.download-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 15px 18px; flex: 1; }
.download-name { font-weight: 650; line-height: 1.35; min-width: 0; hyphens: auto; overflow-wrap: break-word; }
.download-meta { flex: none; display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-size: .8125rem; font-weight: 700; letter-spacing: .08em; }
.download-meta svg { width: 17px; height: 17px; }

/* ---------- Rechtstexte ---------- */

.legal { max-width: 76ch; font-size: 1rem; }
.legal h2 { font-size: 1.375rem; margin: 2.2em 0 .7em; padding-top: 1.4em; border-top: 1px solid var(--line); }
.legal h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 { margin: 2em 0 .6em; }
.legal h2.legal-sub { font-size: 1.125rem; letter-spacing: -.01em; margin: 2em 0 .6em; padding-top: 0; border-top: 0; }
.legal > h3:first-child { margin-top: 0; }
.legal strong { color: var(--ink); }
.legal ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.legal li { margin-bottom: .4em; }
.legal a { overflow-wrap: anywhere; }
.legal small { color: var(--muted); }

/* ---------- Fußbereich ---------- */

.site-footer { background: var(--ink); color: #c5ccd8; padding-block: 44px 28px; font-size: .9688rem; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 28px 48px; flex-wrap: wrap; }
.footer-brand .wordmark { color: #fff; font-size: 1.375rem; font-weight: 750; letter-spacing: -.02em; }
.footer-brand .claim { margin: 6px 0 0; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #8fb4e3; }
.footer-contact { margin: 0; line-height: 1.6; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  margin-top: 32px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px 24px; flex-wrap: wrap; }

@media (max-width: 560px) {
  :root { --gutter: 18px; }
  body { font-size: 1rem; }
  .brand img { height: 44px; }
  .header-inner { min-height: 66px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media print {
  .site-header, .site-footer, .nav-toggle { display: none; }
  .hero, .page-hero { background: none; border: 0; padding-block: 0 16px; }
}

/* ---------- Illustrationen & Markenzeichen ---------- */

.split-figure:has(img[src$=".svg"]) { padding: 12px; border-radius: 24px; }
.split-figure img[src$=".svg"] { border-radius: 16px; }

/* Häkchen aus dem Logo als dezentes Wasserzeichen im Seitenkopf */
.page-hero { position: relative; overflow: hidden; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero::after {
  content: ""; position: absolute; right: max(24px, calc(50% - 560px)); top: 50%;
  width: clamp(200px, 26vw, 320px); aspect-ratio: 1; transform: translateY(-50%) rotate(-8deg);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b5c98' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10.5'/%3E%3Cpath d='M7 12.500l3.500 3.500 6.500-8'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: .09; pointer-events: none;
}
@media (max-width: 820px) { .page-hero::after { right: -60px; opacity: .06; } }
