/* Wachdienst24 – Stil (Blau/Weiß), ohne Framework, ohne Build */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-950: #061428;
  --navy-900: #0b1f3a;
  --navy-800: #12305a;
  --blau: #1d5fd1;
  --blau-dunkel: #174fb0;
  --hellblau: #8db8f0;
  --blau-hell: #e8f0fd;
  --blau-rand: #c9d9f6;
  --grau-text: #46566e;
  --weiss: #ffffff;
  --flaeche: #f5f8fd;
  --gelb: #ffe45c;
  --radius: 14px;
  --breite: 72rem;
  --rand: clamp(1rem, 4vw, 2.5rem);
  --abstand: clamp(3.5rem, 8vw, 6.5rem);
  --kopf-hoehe: 5rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--kopf-hoehe) + 1rem); }
body {
  margin: 0; background: var(--weiss); color: var(--navy-900);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem); line-height: 1.6;
  text-rendering: optimizeLegibility; overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4rem); font-weight: 700; line-height: 1.08; }
h2 { font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--blau); text-underline-offset: 0.18em; }
a:hover { color: var(--blau-dunkel); }
:focus-visible { outline: 3px solid var(--blau); outline-offset: 3px; border-radius: 4px; }
.container { width: min(100% - 2 * var(--rand), var(--breite)); margin-inline: auto; }
.sr-hinweis { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.sprunglink {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--weiss); color: var(--navy-900); padding: 0.75rem 1rem; border-radius: 8px; font-weight: 600;
  box-shadow: 0 4px 16px rgb(6 20 40 / 0.2);
}
.sprunglink:focus { top: 0.75rem; }

/* Knöpfe: Pillenform */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0 1.5rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; text-decoration: none; line-height: 1.2; text-align: center;
}
.knopf--kopf { background: var(--blau); color: var(--weiss); }
.knopf--kopf:hover { background: var(--blau-dunkel); color: var(--weiss); }
.knopf--haupt { background: var(--weiss); color: var(--navy-900); }
.knopf--haupt:hover { background: var(--blau-hell); color: var(--navy-900); }
.knopf--neben { border-color: var(--weiss); color: var(--weiss); }
.knopf--neben:hover { background: rgb(255 255 255 / 0.12); color: var(--weiss); }
.knopf--rahmen { border-color: var(--blau); color: var(--blau); }
.knopf--rahmen:hover { background: var(--blau); color: var(--weiss); }

/* Kopf: weiß, fest oben */
.kopf { position: sticky; top: 0; z-index: 50; background: var(--weiss); border-bottom: 1px solid var(--blau-rand); }
.kopf__innen { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--kopf-hoehe); }
.marke { display: inline-flex; align-items: center; text-decoration: none; color: var(--navy-900); padding: 0.25rem 0; }
.marke:hover { color: var(--navy-900); }
.marke__zeichen { width: clamp(2.1rem, 1.8rem + 1vw, 2.5rem); height: clamp(2.1rem, 1.8rem + 1vw, 2.5rem); flex: none; }
.marke__wort { font-size: clamp(1.2rem, 1rem + 1vw, 1.5rem); font-weight: 750; letter-spacing: -0.02em; line-height: 1; }
.marke__24 { color: var(--blau); }
.marke__kreis {
  display: inline-grid; place-items: center; flex: none;
  width: clamp(2.1rem, 1.8rem + 1vw, 2.5rem); height: clamp(2.1rem, 1.8rem + 1vw, 2.5rem);
  border-radius: 50%; background: var(--blau); color: var(--weiss);
  font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.1rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1;
}
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.25rem; }
.nav a:not(.knopf) {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 0.9rem;
  color: var(--navy-900); text-decoration: none; font-weight: 600; font-size: 1rem; border-radius: 999px;
}
.nav a:not(.knopf):hover { background: var(--blau-hell); color: var(--navy-900); }
.nav__knopf { margin-left: 0.75rem; }
.menueknopf {
  display: none; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0;
  border: 1px solid var(--blau-rand); border-radius: 50%; background: var(--weiss); color: var(--navy-900);
  cursor: pointer;
}
.menueknopf:hover { background: var(--blau-hell); }
.menueknopf svg { width: 24px; height: 24px; }
.menueknopf__zu, .menueknopf[aria-expanded="true"] .menueknopf__auf { display: none; }
.menueknopf[aria-expanded="true"] .menueknopf__zu { display: block; }

@media (max-width: 63.99rem) {
  :root { --kopf-hoehe: 4.25rem; }
  .js .menueknopf { display: inline-flex; }
  .js .nav { display: none; }
  .js .nav.offen {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    height: calc(100dvh - var(--kopf-hoehe)); overflow-y: auto;
    background: var(--weiss); border-top: 1px solid var(--blau-rand); padding: 1rem var(--rand) 2rem;
  }
  .js .nav ul { flex-direction: column; align-items: stretch; gap: 0.25rem; }
  .js .nav a:not(.knopf) { width: 100%; font-size: 1.125rem; padding: 0 1rem; border-radius: 10px; }
  .js .nav__knopf { margin: 1rem 0 0; }
  .js .nav__knopf .knopf { width: 100%; }
  .js .kopf__innen { flex-wrap: nowrap; }
  html:not(.js) .kopf__innen { flex-wrap: wrap; padding-block: 0.5rem; }
  html:not(.js) .nav ul { flex-wrap: wrap; }
}

/* Hero: groß, Foto mit Verlauf von links */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(600px, min(84svh, 56rem));
  display: grid; align-items: center; background: var(--navy-950); color: var(--weiss);
}
.hero__bild, .hero__bild img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__bild { z-index: -2; }
.hero__bild img { object-fit: cover; object-position: 70% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  /* Textspalte (max. 40rem + Rand) liegt in jeder Breite auf mindestens 88 % deckendem Nachtblau */
  background: linear-gradient(90deg, rgb(6 20 40 / 0.92) 0%, rgb(6 20 40 / 0.88) max(45%, 44rem), rgb(6 20 40 / 0.3) max(75%, 60rem), rgb(6 20 40 / 0) 100%);
}
.hero__inhalt { padding-block: clamp(3.5rem, 9vh, 6rem); }
.hero__text { max-width: 40rem; }
.hero__zeile { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #b3cff6; margin-bottom: 1rem; }
.hero h1 { color: var(--weiss); }
.hero__unter { font-size: clamp(1.05rem, 1rem + 0.45vw, 1.3rem); color: #e6eefb; max-width: 34rem; margin-bottom: 2rem; }
.hero__knoepfe { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero :focus-visible { outline-color: var(--weiss); }
/* KI-Kennzeichnung der Bilder (Mini 25.11.) */
.hero__ki { position: absolute; right: clamp(0.75rem, 2vw, 1.5rem); bottom: 0.75rem; margin: 0; font-size: 0.75rem; line-height: 1.3; color: var(--weiss); background: rgb(5 12 30 / 0.7); padding: 0.2rem 0.6rem; border-radius: 999px; }
/* KI-Hinweis direkt an jedem Foto (Art. 50 KI-VO: beim ersten Ansehen erkennbar) */
.karte { position: relative; }
.karriere__figur { position: relative; margin: 0; }
.ki-marke { position: absolute; top: 0.6rem; right: 0.6rem; font-size: 0.75rem; line-height: 1.3; color: var(--weiss); background: rgb(5 12 30 / 0.7); padding: 0.15rem 0.55rem; border-radius: 999px; pointer-events: none; }
@media (max-width: 47.99rem) {
  .hero { min-height: auto; align-items: end; }
  .hero__bild img { object-position: 72% 50%; }
  .hero::before { background: linear-gradient(180deg, rgb(6 20 40 / 0.35) 0%, rgb(6 20 40 / 0.86) 34%, rgb(6 20 40 / 0.93) 100%); }
  .hero__inhalt { padding-block: 9rem 3rem; }
  .hero__knoepfe { flex-direction: column; }
  .hero__knoepfe .knopf { width: 100%; }
}
/* Handy quer und niedrige Fenster: H1 und Hauptknopf im ersten Bildschirm */
@media (max-height: 500px) and (min-width: 48rem) {
  :root { --kopf-hoehe: 3.5rem; }
  .hero { min-height: auto; }
  .hero__inhalt { padding-block: 1.25rem 1.5rem; }
  .hero__zeile { margin-bottom: 0.4rem; font-size: 0.8rem; }
  .hero h1 { font-size: clamp(1.75rem, 1rem + 2.4vw, 2.5rem); margin-bottom: 0.35em; }
  .hero__unter { font-size: 1rem; margin-bottom: 1rem; line-height: 1.5; }
  .knopf { min-height: 44px; }
}

/* Werte-Streifen */
.werte { background: var(--blau); color: var(--weiss); }
.werte__liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.wert {
  display: grid; grid-template-columns: auto 1fr; column-gap: 0.9rem; align-items: start;
  padding: 1.75rem 1.25rem; color: var(--weiss); text-decoration: none; height: 100%;
}
.werte__liste li + li .wert { border-left: 1px solid rgb(255 255 255 / 0.25); }
.wert svg { width: 32px; height: 32px; grid-row: span 2; }
.wert__titel { font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.wert__text { font-size: 0.95rem; color: #eef4fe; }
.wert:hover, .wert:focus-visible { background: var(--blau-dunkel); color: var(--weiss); }
.werte :focus-visible { outline-color: var(--weiss); outline-offset: -4px; }
@media (max-width: 63.99rem) {
  .werte__liste { grid-template-columns: repeat(2, 1fr); }
  .werte__liste li + li .wert { border-left: 0; }
  .werte__liste li:nth-child(even) .wert { border-left: 1px solid rgb(255 255 255 / 0.25); }
  .werte__liste li:nth-child(n+3) .wert { border-top: 1px solid rgb(255 255 255 / 0.25); }
  .wert { padding: 1.25rem 0.75rem; grid-template-columns: 1fr; row-gap: 0.4rem; }
  .wert svg { grid-row: auto; width: 28px; height: 28px; }
}

/* Abschnitte */
.abschnitt { padding-block: var(--abstand); }
.abschnitt--flaeche { background: var(--flaeche); }
.abschnitt__kopf { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.ueberzeile { display: block; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blau); margin-bottom: 0.75rem; }
.abschnitt h2::after { content: ""; display: block; width: 48px; height: 4px; border-radius: 2px; background: var(--hellblau); margin-top: 1rem; }
.einleitung { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); color: var(--grau-text); }

/* Leistungen als Fotokarten */
.karten { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 68.74rem) { .karten { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 39.99rem) { .karten { grid-template-columns: 1fr; gap: 1rem; } }
.karte {
  display: flex; flex-direction: column; background: var(--weiss);
  border: 1px solid var(--blau-rand); border-radius: var(--radius); overflow: hidden;
}
.karte img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.karte__text { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.25rem 1rem; }
.karte h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.karte p { color: var(--grau-text); font-size: 0.975rem; margin-bottom: 0.75rem; }
.karte__link { margin-top: auto; display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; font-weight: 600; text-decoration: none; }
.karte__link:hover { text-decoration: underline; }
.karte:target { border-color: var(--blau); box-shadow: 0 0 0 2px var(--blau); }

/* Über uns */
.zweispaltig { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); align-items: start; }
.zweispaltig--mitte { align-items: center; }
.faktenkasten { background: var(--weiss); border: 1px solid var(--blau-rand); border-radius: var(--radius); padding: 0.5rem 1.5rem; }
.fakten { margin: 0; }
.fakten div { display: grid; grid-template-columns: minmax(7.5rem, 10rem) 1fr; gap: 1rem; padding: 0.9rem 0; }
.fakten div + div { border-top: 1px solid #e1e9f6; }
.fakten dt { font-weight: 600; }
.fakten dd { margin: 0; color: var(--grau-text); }
@media (max-width: 30rem) { .fakten div { grid-template-columns: 1fr; gap: 0.1rem; } }

/* Karriere */
.karriere__foto { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }

/* Kontakt: dunkler Block mit weißen Karten */
.kontakt { background: var(--navy-900); color: var(--weiss); }
.kontakt h2 { color: var(--weiss); }
.kontakt .ueberzeile { color: var(--hellblau); }
.kontakt .einleitung { color: #d5e1f5; }
.kontakt__raster { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: start; }
@media (max-width: 63.99rem) { .kontakt__raster { grid-template-columns: 1fr; } }
.kontaktkarten { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.kontaktkarte:first-child { grid-row: span 3; }
.kontaktkarte { background: var(--weiss); color: var(--navy-900); border-radius: var(--radius); padding: 1.5rem; }
.kontaktkarte h3 { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--blau); }
.kontaktkarte address, .kontaktkarte p { font-style: normal; margin: 0 0 0.75rem; }
.kartenlink { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* Lücken: gelb hinterlegt, damit sie sofort auffallen */
mark.luecke {
  background: var(--gelb); color: #1b1b1b; padding: 0.05em 0.35em; border-radius: 4px; font-weight: 600;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* Fuß: vier Spalten */
.fuss { background: var(--navy-950); color: #c9d6ea; font-size: 0.975rem; padding-top: clamp(3rem, 6vw, 4.5rem); }
.fuss__spalten { display: grid; gap: 2rem; grid-template-columns: 1.3fr 1fr 1.2fr 1fr; }
@media (max-width: 63.99rem) { .fuss__spalten { grid-template-columns: 1fr 1fr; } }
@media (max-width: 39.99rem) { .fuss__spalten { grid-template-columns: 1fr; } }
.fuss__titel { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hellblau); margin: 0 0 0.75rem; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss a { color: var(--weiss); display: inline-flex; min-height: 44px; align-items: center; }
.fuss a:hover { color: #cfe0ff; }
.fuss address { font-style: normal; margin-bottom: 0.75rem; }
.fuss :focus-visible { outline-color: var(--weiss); }
.marke--hell, .marke--hell:hover { color: var(--weiss); }
.marke--hell .marke__24 { color: var(--hellblau); }
.fuss__marke p { margin-top: 0.75rem; }
.fuss__zeile { border-top: 1px solid rgb(255 255 255 / 0.14); margin-top: 2.5rem; padding-block: 1.25rem; }
.fuss__zeile p { margin: 0; font-size: 0.9rem; }

/* Rechtstexte (Impressum & Datenschutz auf einer Seite) */
.rechtstext { padding-block: clamp(2.5rem, 6vw, 5rem) var(--abstand); }
.rechtstext .container { max-width: 46rem; }
.rechtstext h1 { font-size: clamp(1.75rem, 1.4rem + 2vw, 3rem); hyphens: auto; }
.rechtstext p, .rechtstext li { color: #2c3b52; }
.rechtstext ul { padding-left: 1.25rem; }
.rechtstext section { padding-top: 1rem; }
.rechtstext section > h2 { font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem); margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #e1e9f6; }
.rechtstext h3 { font-size: clamp(1.1rem, 1.05rem + 0.3vw, 1.25rem); margin-top: 1.75rem; }
.entwurf { background: var(--blau-hell); border: 1px solid var(--blau-rand); border-radius: 10px; padding: 1rem 1.25rem; color: var(--navy-900); margin-bottom: 2rem; }
.inhaltsverzeichnis ul { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.inhaltsverzeichnis a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.zurueck { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* Logo-Varianten (Entwurf): ohne Skript gilt F (Mini 25.11.) */
.logo { display: none; align-items: center; gap: 0.55rem; }
.logo--c { gap: 0.3rem; }
.logo--f, [data-logo="g"] .logo--g, [data-logo="a"] .logo--a, [data-logo="b"] .logo--b, [data-logo="c"] .logo--c { display: inline-flex; }
[data-logo="g"] .logo--f, [data-logo="a"] .logo--f, [data-logo="b"] .logo--f, [data-logo="c"] .logo--f { display: none; }
/* F: Schriftzug mit .com wie G */
.logo--f .marke__com { color: var(--blau); font-weight: 600; }
.marke--hell .logo--f .marke__com { color: var(--hellblau); }
/* G: Schloss-Schild (Vorlage von Mini, 24.11.) – gleiche Höhe wie die anderen Zeichen, schmaler */
.logo--g { gap: 0.45rem; }
.logo--g .marke__zeichen { width: auto; aspect-ratio: 65 / 108; }
.logo--g .marke__wort { color: #121a5e; }
.logo--g .marke__24, .logo--g .marke__com { color: #46529e; }
.logo--g .marke__com { font-weight: 600; }
.marke--hell .logo--g .marke__wort { color: var(--weiss); }
.marke--hell .logo--g .marke__24, .marke--hell .logo--g .marke__com { color: #b4bdf3; }
.marke--hell .logo--g .g-rand { stroke: #8d99de; }


/* Dezente Bewegung nur, wenn erwünscht */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .knopf, .nav a, .karte, .wert { transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
  .karte:hover { transform: translateY(-2px); border-color: var(--blau); }
  .hero__text { animation: hereinschweben 0.7s ease-out both; }
  @keyframes hereinschweben { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

/* Telefon- und E-Mail-Links: ausreichend große Klickfläche */
.kontaktkarte a[href^="tel:"], .kontaktkarte a[href^="mailto:"] { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.rechtstext a[href^="tel:"], .rechtstext a[href^="mailto:"] { display: inline-block; padding-block: 0.15em; }
