/* ============================================
   DeKU GmbH – Stylesheet (U67 – Neugestaltung 09/2026)
   Farben stammen aus dem Logo: Dunkelblau + Orange.
   Schriften werden selbst gehostet (Ordner /fonts, SIL Open Font License) –
   kein Abruf bei Google, DSGVO-konform.
   ============================================ */

@font-face { font-family: "Sora"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/sora-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/sora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/sora-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }

:root {
  /* Logo-Farben */
  --blau-dunkel: #072548;
  --blau: #0f3a6e;
  --blau-hell: #eef2f7;
  --akzent: #f3630b;          /* Orange aus dem Logo (vorher Gelb) */
  --akzent-dunkel: #d9540a;
  --akzent-hell: #fff1e8;
  --akzent-rand: #ffd9c2;
  --text: #1c2430;
  --text-weich: #3d4956;
  --grau: #5b6673;
  --rand: #e3e8ee;
  --weiss: #ffffff;
  --grund: #f7f8fa;
  --radius: 12px;
  --radius-klein: 8px;
  --schatten: 0 2px 12px rgba(7, 37, 72, 0.08);
  --schrift: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --schrift-kopf: "Sora", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--schrift);
  color: var(--text);
  background: var(--grund);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--schrift-kopf);
  color: var(--blau-dunkel);
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-wrap: balance;
}

a { color: var(--akzent-dunkel); }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Kopfleiste (Telefon/E-Mail) ---------- */
.topbar {
  background: var(--blau-dunkel);
  color: #c9d6e6;
  font-size: 0.85rem;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 38px;
}

.topbar span, .topbar a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #c9d6e6;
  text-decoration: none;
}

.topbar a:hover { color: var(--weiss); }

.topbar svg { width: 15px; height: 15px; stroke: var(--akzent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.topbar-links, .topbar-rechts { display: flex; gap: 24px; flex-wrap: wrap; }

/* ---------- Header / Navigation ---------- */
header {
  background: var(--weiss);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--rand);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 24px;
  min-height: 80px;
  max-width: 1180px;
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  color: var(--blau-dunkel);
  text-decoration: none;
  font-family: var(--schrift-kopf);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
}

.logo img { height: 42px; width: auto; display: block; }

.logo span { color: var(--akzent); }

.logo small {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--grau);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: var(--schrift);
}

nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: var(--radius-klein);
  font-size: 0.98rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}

nav a:hover { background: var(--blau-hell); color: var(--blau-dunkel); }

nav a.aktiv { color: var(--akzent-dunkel); }

nav a.nav-cta {
  background: var(--akzent);
  color: var(--weiss);
  margin-left: 10px;
  font-family: var(--schrift-kopf);
  font-size: 0.92rem;
  padding: 11px 18px;
}

nav a.nav-cta:hover { background: var(--akzent-dunkel); color: var(--weiss); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rand);
  border-radius: var(--radius-klein);
  width: 44px;
  height: 44px;
  color: var(--blau-dunkel);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--weiss);
  color: var(--text);
  padding: 80px 0 88px;
  text-align: left;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  align-items: center;
}

.hero-text { display: flex; flex-direction: column; gap: 24px; }

.eyebrow {
  font-family: var(--schrift-kopf);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--akzent);
}

.hero h1 {
  font-size: 3.4rem;
  line-height: 1.08;
  font-weight: 700;
}

.hero h1 span { color: var(--akzent); }

.hero p {
  font-size: 1.22rem;
  line-height: 1.5;
  color: var(--text-weich);
  max-width: 540px;
}

.hero-aktionen { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.hero-fakten {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--rand);
}

.hero-fakten div { display: flex; flex-direction: column; gap: 2px; }

.hero-fakten strong {
  font-family: var(--schrift-kopf);
  font-weight: 700;
  font-size: 1.55rem;
  color: var(--blau-dunkel);
  line-height: 1.1;
}

.hero-fakten small { color: var(--grau); font-size: 0.9rem; }

/* Routen-Grafik */
.hero-karte {
  position: relative;
  min-height: 540px;
  border-radius: 16px;
  background: var(--blau-dunkel);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-karte > svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-karte .live {
  position: relative;
  margin: 0 22px 22px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--weiss);
  display: flex;
  align-items: center;
  gap: 14px;
  backdrop-filter: blur(6px);
}

.hero-karte .live .live-icon {
  width: 40px; height: 40px; flex: 0 0 40px;
  border-radius: 8px;
  background: var(--akzent);
  display: flex; align-items: center; justify-content: center;
}

.hero-karte .live .live-icon svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.hero-karte .live strong { display: block; font-family: var(--schrift-kopf); font-weight: 600; font-size: 0.95rem; }

.hero-karte .live span { font-size: 0.88rem; color: #c9d6e6; }

@keyframes route-fahren { to { stroke-dashoffset: -40; } }
.hero-karte .route-offen { animation: route-fahren 2.4s linear infinite; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--akzent);
  color: var(--weiss);
  font-family: var(--schrift-kopf);
  font-weight: 600;
  text-decoration: none;
  min-height: 50px;
  padding: 0 24px;
  border-radius: var(--radius-klein);
  border: none;
  font-size: 0.98rem;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  white-space: nowrap;
}

.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.btn:hover { background: var(--akzent-dunkel); color: var(--weiss); transform: translateY(-1px); }

.btn.sekundaer {
  background: var(--weiss);
  color: var(--blau-dunkel);
  border: 1.5px solid #cfd7e1;
  margin-left: 0;
}

.btn.sekundaer:hover { background: var(--weiss); border-color: var(--blau-dunkel); color: var(--blau-dunkel); }

.btn.dunkel { background: var(--blau-dunkel); }
.btn.dunkel:hover { background: var(--blau); }

.btn.mini { min-height: 34px; padding: 0 12px; font-size: 0.84rem; }

/* ---------- Abschnitte ---------- */
section { padding: 88px 0; }

section.hell { background: var(--blau-hell); }

section.dunkel { background: var(--blau-dunkel); color: var(--weiss); }
section.dunkel h2, section.dunkel h3 { color: var(--weiss); }
section.dunkel p { color: #c9d6e6; }

section.kompakt { padding: 56px 0; }

.abschnitt-kopf {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 40px;
}

.abschnitt-kopf > div { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }

.abschnitt-kopf p { max-width: 400px; margin: 0; }

h2 {
  font-size: 2.3rem;
  line-height: 1.15;
  font-weight: 700;
  color: var(--blau-dunkel);
  margin-bottom: 12px;
}

.abschnitt-kopf h2 { margin-bottom: 0; }

h3 { font-size: 1.2rem; font-weight: 600; }

.untertitel {
  color: var(--grau);
  margin-bottom: 40px;
  max-width: 640px;
}

.karten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.karten.vier { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.karte {
  background: var(--weiss);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: none;
}

.karte .icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--akzent-hell);
  color: var(--akzent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.karte .icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.karte h3 {
  color: var(--blau-dunkel);
  margin-bottom: 0;
  font-size: 1.15rem;
}

.karte p { color: var(--grau); font-size: 0.95rem; }

/* Karten auf dunklem Grund */
section.dunkel .karte {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}
section.dunkel .karte h3 { color: var(--weiss); }
section.dunkel .karte p { color: #c9d6e6; }

.zweispaltig {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 80px;
  align-items: center;
}

.zweispaltig .text { display: flex; flex-direction: column; gap: 20px; }
.zweispaltig .text h2 { margin-bottom: 0; }
.zweispaltig .text .btn { align-self: flex-start; }

.warum-karten { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

/* Ablauf in drei Schritten */
.ablauf {
  background: var(--weiss);
  border: 1px solid var(--rand);
  border-radius: 16px;
  padding: 52px 56px;
  display: grid;
  grid-template-columns: 280px repeat(3, minmax(0, 1fr));
  gap: 44px;
  align-items: start;
}

.ablauf .kopf { display: flex; flex-direction: column; gap: 10px; }
.ablauf .kopf h2 { font-size: 1.9rem; margin-bottom: 0; }
.ablauf .schritt { display: flex; flex-direction: column; gap: 8px; }
.ablauf .schritt b { font-family: var(--schrift-kopf); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--akzent); }
.ablauf .schritt h3 { font-size: 1.1rem; }
.ablauf .schritt p { color: var(--grau); font-size: 0.95rem; }

/* Hinweis-Kacheln (Schlüssel gefunden / Fahrer gesucht) */
.hinweis-kacheln {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.hinweis-kachel {
  background: var(--weiss);
  border: 1px solid var(--rand);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hinweis-kachel.orange { background: var(--akzent-hell); border-color: var(--akzent-rand); }
.hinweis-kachel h2 { font-size: 1.65rem; margin-bottom: 0; }
.hinweis-kachel p { color: var(--grau); }
.hinweis-kachel .btn { align-self: flex-start; margin-top: 6px; }
.hinweis-kachel .icon.voll { background: var(--akzent); color: var(--weiss); }

/* ---------- Formulare ---------- */
.formular-box {
  background: var(--weiss);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: none;
  max-width: 720px;
}

.feld { margin-bottom: 20px; }

.feld-reihe {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: var(--text-weich);
}

label .pflicht { color: #c62828; }

input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"],
input[type="date"], input[type="time"], input[type="file"], select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #cfd7e1;
  border-radius: var(--radius-klein);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--weiss);
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--akzent);
  outline-offset: 1px;
  border-color: var(--akzent);
}

textarea { min-height: 140px; resize: vertical; }

.checkbox-feld {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--grau);
}

.checkbox-feld input { margin-top: 4px; accent-color: var(--akzent); }

.hinweis {
  font-size: 0.85rem;
  color: var(--grau);
  margin-top: 6px;
}

/* Honeypot-Feld unsichtbar */
.hp-feld {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- Kontakt-Layout ---------- */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.kontakt-info p { margin-bottom: 10px; }

.kontakt-info strong { color: var(--blau-dunkel); }

.kontakt-karte {
  background: var(--weiss);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.kontakt-karte h3 { font-size: 1.05rem; }

.kontakt-zeile { display: flex; gap: 14px; align-items: flex-start; }
.kontakt-zeile svg { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 3px; stroke: var(--akzent); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.kontakt-zeile a { color: var(--text); text-decoration: none; }
.kontakt-zeile a:hover { color: var(--akzent-dunkel); }

/* ---------- Google Maps (2-Klick-Lösung) ---------- */
.map-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--rand);
  min-height: 340px;
  background: var(--blau-hell);
  margin-top: 28px;
}

.map-wrapper iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}

.map-consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  background: var(--blau-hell);
}

.map-consent p {
  max-width: 460px;
  color: var(--grau);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

/* ---------- Meldungen ---------- */
.meldung {
  padding: 16px 20px;
  border-radius: var(--radius-klein);
  margin-bottom: 26px;
  font-weight: 500;
}

.meldung.ok { background: #e6f4ea; color: #1e6b34; border: 1px solid #b7dfc2; }
.meldung.fehler { background: #fdecea; color: #b3261e; border: 1px solid #f5c6c2; }
.meldung.info { background: var(--akzent-hell); color: #8a3a05; border: 1px solid var(--akzent-rand); }

/* ---------- Footer ---------- */
footer {
  background: var(--blau-dunkel);
  color: #b9c6d6;
  padding: 60px 0 30px;
  margin-top: 0;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-logo { height: 38px; width: auto; display: block; margin-bottom: 14px; }

footer h4 { color: var(--weiss); margin-bottom: 12px; font-size: 0.95rem; font-weight: 600; }

footer p { max-width: 320px; }

footer a { color: #b9c6d6; text-decoration: none; }
footer a:hover { color: var(--weiss); }

footer ul { list-style: none; }
footer li { margin-bottom: 8px; }

.footer-unten {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #8fa3bb;
}

.footer-unten a { margin-left: 18px; }

/* ---------- Textseiten (Impressum etc.) ---------- */
.textseite { max-width: 820px; }
.textseite h2 { margin-top: 34px; font-size: 1.35rem; }
.textseite h2:first-of-type { margin-top: 0; }
.textseite h3 { margin-top: 22px; margin-bottom: 8px; font-size: 1.05rem; }
.textseite p, .textseite ul { margin-bottom: 14px; }
.textseite ul { padding-left: 22px; }

.seitenkopf {
  background: var(--weiss);
  border-bottom: 1px solid var(--rand);
  padding: 52px 0 44px;
}

.seitenkopf h1 { font-size: 2.4rem; margin-bottom: 10px; }
.seitenkopf p { color: var(--grau); max-width: 640px; font-size: 1.1rem; }
.seitenkopf .eyebrow { display: block; margin-bottom: 12px; }

.platzhalter {
  background: #fff3cd;
  border: 1px dashed #d4a72c;
  padding: 2px 6px;
  border-radius: 4px;
  font-style: italic;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .karten.vier { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ablauf { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 40px; }
  .ablauf .kopf { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.8rem; }
}

@media (max-width: 900px) {
  .hero-grid, .zweispaltig, .hinweis-kacheln { grid-template-columns: 1fr; gap: 40px; }
  .hero-karte { min-height: 420px; }
  .hero-karte .hk-abholung { display: none; }
  .abschnitt-kopf { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 30px; }
  section { padding: 64px 0; }
}

@media (max-width: 820px) {
  .topbar-rechts { display: none; }
  .topbar-links span:nth-child(2) { display: none; }

  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--weiss);
    padding: 10px 16px 18px;
    border-bottom: 1px solid var(--rand);
    box-shadow: var(--schatten);
  }

  nav.offen { display: block; }

  nav ul { flex-direction: column; align-items: stretch; gap: 2px; }

  nav a { display: flex; padding: 13px 14px; }

  nav a.nav-cta { margin: 8px 0 0; justify-content: center; }

  .hero { padding: 48px 0 56px; }
  .hero h1 { font-size: 2.3rem; }
  .hero p { font-size: 1.08rem; }
  .hero-fakten { gap: 22px; }

  .karten.vier, .ablauf, .warum-karten { grid-template-columns: 1fr; }

  .kontakt-grid, .feld-reihe { grid-template-columns: 1fr; }

  .formular-box { padding: 24px 20px; }

  .hinweis-kachel { padding: 28px 24px; }

  .btn.sekundaer { margin-left: 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 26px; }

  h2 { font-size: 1.8rem; }

  .seitenkopf h1 { font-size: 1.9rem; }
}

/* ---------- WhatsApp-Schaltfläche ---------- */
.wa-button {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  transition: transform 0.15s;
}
.wa-button:hover { transform: scale(1.06); }
.wa-button svg { width: 30px; height: 30px; fill: #fff; }
