/* WERAVO – Basis-Styles nach Brand Book 1.2 */

/* Noto Sans lokal (WOFF2, SIL OFL, siehe fonts/OFL.txt) – keine Verbindung zu Google Fonts */
@font-face {
  font-family: "Noto Sans";
  src: url("/fonts/noto-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  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: "Noto Sans";
  src: url("/fonts/noto-sans-latin-ext-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Noto Sans";
  src: url("/fonts/noto-sans-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
  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: "Noto Sans";
  src: url("/fonts/noto-sans-latin-ext-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --nachtblau: #081A35;
  --petrol: #006B67;
  --petrol-dunkel: #00524F;
  --mint: #54E5AE;          /* nur optionaler Akzent, nie Textfarbe */
  --nebel: #F3F8F7;
  --weiss: #FFFFFF;
  --text-leise: #3E4C61;    /* Nachtblau abgeschwächt, Kontrast > 8:1 auf Weiß */
  --linie: #D9E5E3;
  --radius: 10px;
  --max: 1080px;
  --font: "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--weiss);
  color: var(--nachtblau);
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  /* Footer bleibt auch auf kurzen Seiten unten */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }

a { color: var(--petrol); text-underline-offset: 3px; }
a:hover { color: var(--petrol-dunkel); }

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--petrol); color: var(--weiss); padding: 8px 14px; z-index: 10;
}
.skip:focus { left: 16px; top: 16px; }

/* Header */
.site-header {
  /* Weiß, weil die Logo-Rasterreferenz einen weißen Hintergrund hat (kein transparenter Master) */
  background: var(--weiss);
  border-bottom: 1px solid var(--linie);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  flex-wrap: wrap;
}
.logo { display: inline-block; padding: 10px 0; line-height: 0; }
.logo img { width: 160px; height: auto; display: block; }
@media (min-width: 720px) { .logo img { width: 180px; } }

.nav { display: flex; gap: 4px 22px; flex-wrap: wrap; font-size: 14px; line-height: 20px; }
.nav a { color: var(--nachtblau); text-decoration: none; padding: 6px 0; letter-spacing: .02em; }
.nav a:hover { color: var(--petrol); text-decoration: underline; }

/* Typo */
h1, h2, h3 { margin: 0; font-weight: 700; color: var(--nachtblau); }
h1 { font-size: 32px; line-height: 40px; }
h2 { font-size: 24px; line-height: 32px; }
h3 { font-size: 18px; line-height: 26px; }
@media (min-width: 720px) {
  h1 { font-size: 40px; line-height: 48px; }
  h2 { font-size: 26px; line-height: 34px; }
}

.eyebrow {
  display: block;
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--petrol);
  margin-bottom: 8px;
}

.lead { font-size: 18px; line-height: 28px; color: var(--text-leise); max-width: 40em; }

/* Hero */
.hero { padding: 56px 0 48px; }
@media (min-width: 720px) { .hero { padding: 88px 0 72px; } }
.hero .bar { width: 56px; height: 4px; background: var(--petrol); border-radius: 2px; margin-bottom: 28px; }
.hero h1 { max-width: 14em; }
.hero .lead { margin: 20px 0 32px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  border-radius: 8px; border: 2px solid var(--petrol);
  font-weight: 700; font-size: 15px; line-height: 20px;
  text-decoration: none;
}
.btn-primary { background: var(--petrol); color: var(--weiss); }
.btn-primary:hover { background: var(--petrol-dunkel); border-color: var(--petrol-dunkel); color: var(--weiss); }
.btn-secondary { background: var(--weiss); color: var(--petrol); }
.btn-secondary:hover { background: var(--nebel); }

/* Sections */
.section { padding: 56px 0; border-top: 1px solid var(--linie); }
.section.tint { background: var(--nebel); border-top: none; }
.section h2 { margin-bottom: 12px; }
.section > .wrap > p { max-width: 42em; }

.grid { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.card {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; color: var(--text-leise); }

.icon { width: 24px; height: 24px; stroke: var(--petrol); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 12px; }

/* Ausblick */
.outlook { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 720px) { .outlook { grid-template-columns: 1fr 1fr; gap: 20px; } }

.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; line-height: 18px; font-weight: 700;
  color: var(--nachtblau);
  background: var(--nebel);
  border: 1px solid var(--linie);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}
.status::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--petrol);
}

/* Kontakt */
.contact {
  display: grid; gap: 24px; align-items: start;
}
@media (min-width: 720px) { .contact { grid-template-columns: 1.3fr 1fr; gap: 40px; } }
.contact ul { margin: 12px 0 0; padding-left: 20px; color: var(--text-leise); }
.contact li { margin-bottom: 6px; }
.contact-box {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-left: 4px solid var(--petrol);
  border-radius: var(--radius);
  padding: 22px;
}
.contact-box p { margin: 0 0 16px; color: var(--text-leise); }
.contact-box .mail { font-weight: 700; font-size: 17px; word-break: break-all; }

/* Rechtstexte */
.legal { padding: 48px 0 64px; }
.legal h1 { margin-bottom: 24px; }
.legal h2 { font-size: 20px; line-height: 28px; margin: 32px 0 8px; }
.legal p, .legal li { max-width: 46em; }
.legal address { font-style: normal; }
.todo {
  background: #FFF6D6; color: var(--nachtblau);
  padding: 0 4px; border-radius: 3px;
}
.hint {
  background: var(--nebel); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 14px 18px; font-size: 14px; line-height: 21px; color: var(--text-leise);
  max-width: 46em;
}

/* Footer */
.site-footer {
  background: var(--nachtblau);
  color: #C9D3E0;
  font-size: 14px; line-height: 20px;
  padding: 28px 0;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--weiss); }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* Kontaktformular */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--nachtblau); }
.field .opt { font-weight: 400; color: var(--text-leise); }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--nachtblau);
  background: var(--weiss);
  border: 1px solid #9AABB0;   /* Rahmen >= 3:1 Kontrast auf Weiß */
  border-radius: 8px;
  padding: 11px 12px;
  min-height: 48px;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--petrol); outline-offset: 1px; border-color: var(--petrol); }
.form .note { font-size: 14px; line-height: 21px; color: var(--text-leise); margin: 0; }
.form .btn { justify-self: start; cursor: pointer; font-family: inherit; }
/* Honeypot: für Menschen unsichtbar, Bots füllen es aus */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alt-mail { margin: 4px 0 0; font-size: 14px; color: var(--text-leise); }

/* Navigation: aktive Seite */
.nav a[aria-current="page"] { color: var(--petrol); font-weight: 700; }

/* Akzentzeile in Headlines (Brand-Book-Beispiel „Lösungen schaffen.“) */
.accent { color: var(--petrol); }

/* Text + Bild nebeneinander */
.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1.1fr; gap: 48px; } }
.split-text .lead { margin-top: 16px; }

.figure { margin: 0; }
.figure img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius);
  background: var(--nebel);
}
.figure figcaption {
  margin-top: 8px;
  font-size: 13px; line-height: 18px;
  color: var(--text-leise);
}

/* Fließtext-Abschnitte */
.prose { max-width: 44em; }
.prose p { margin: 0 0 16px; }
.prose h2 { margin-bottom: 4px; }
.prose .sub { color: var(--text-leise); margin: 0 0 20px; font-size: 17px; }
.prose ul { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }

.questions { list-style: none; padding: 0 !important; display: grid; gap: 8px; }
.questions li {
  background: var(--weiss); border: 1px solid var(--linie); border-left: 4px solid var(--petrol);
  border-radius: 8px; padding: 10px 14px; margin: 0 !important;
}

.statement {
  font-size: 20px; line-height: 30px; font-weight: 700;
  color: var(--nachtblau);
  border-left: 4px solid var(--petrol);
  padding: 4px 0 4px 18px;
  margin: 24px 0 0;
  max-width: 36em;
}

/* Dunkle Fläche (Nachtblau) für den Arbeitsansatz */
.section.dark { background: var(--nachtblau); color: #DDE5EE; border-top: none; }
.section.dark h2, .section.dark h3 { color: var(--weiss); }
.section.dark .eyebrow { color: var(--mint); }        /* Mint auf Nachtblau: 10,9 : 1 */
.section.dark .accent-mint { color: var(--mint); }
.section.dark p { color: #DDE5EE; }
.banner { margin: 28px 0 0; }
.banner img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.banner figcaption { margin-top: 8px; font-size: 13px; line-height: 18px; color: #AFC0D1; }

.steps {
  list-style: none; margin: 24px 0 0; padding: 0;
  display: grid; gap: 12px; counter-reset: step;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.steps li {
  counter-increment: step;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  padding: 14px;
}
.steps li::before {
  content: "0" counter(step);
  display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--mint);
  margin-bottom: 4px;
}
.steps strong { display: block; color: var(--weiss); font-size: 16px; margin-bottom: 4px; }
.steps span { font-size: 14px; line-height: 20px; color: #C9D3E0; }

/* Zwei Wege */
.paths { display: grid; gap: 16px; margin: 20px 0; }
@media (min-width: 720px) { .paths { grid-template-columns: 1fr 1fr; } }

/* Unterschrift */
.signature { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--linie); max-width: 44em; }
.signature strong { display: block; font-size: 18px; }
.signature span { color: var(--text-leise); font-size: 14px; }
.closing {
  margin-top: 32px; padding: 24px; border-radius: var(--radius);
  background: var(--nebel); border: 1px solid var(--linie);
  display: grid; gap: 16px; max-width: 44em;
}
.closing p { margin: 0; font-size: 18px; line-height: 28px; font-weight: 700; color: var(--nachtblau); }

/* Startseiten-Teaser „Über WERAVO“ */
.teaser .btn { margin-top: 8px; }
