/* ============================================================
   AmBuLi – ambulanter Pflegedienst
   Stylesheet · Version 4.0
   Farben : Navy #04305C  |  Rot #C00000
   Fonts  : Caviar Dreams (Text) · Consola Mono (Akzente)
   ============================================================ */

/* ── Schrift-Variablen ──
   Eine einheitliche, lokal gehostete Schrift (wie in der Erstversion).
   Fallback = systemeigene UI-Schriften (kein externes Laden). */
:root {
  --font-text:   'AmBuLi Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-accent: 'AmBuLi Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --navy: #04305C;
  --red:  #C00000;
}

/* ── Barrierefreiheit: Sprunglink zum Inhalt ── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
}

/* ── Barrierefreiheit: deutlich sichtbarer Tastatur-Fokus ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.nav-toggle:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #FFB300;
  outline-offset: 2px;
  border-radius: 3px;
}

/* ── Reset & Basis ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-text);
  font-size: 16px;
  color: #222;
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

a   { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── Utility ── */
.label {
  font-family: var(--font-accent);
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}

.btn-primary {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 14px 40px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  font-family: var(--font-accent);
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: #a00000; transform: translateY(-1px); }

/* Fade-In */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in.delay-1 { transition-delay: 0.1s; }
.fade-in.delay-2 { transition-delay: 0.2s; }
.fade-in.delay-3 { transition-delay: 0.3s; }
.fade-in.delay-4 { transition-delay: 0.4s; }

/* ============================================================
   NAVIGATION  (fix + scrollt mit + mobil)
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--navy);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-logo-link { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo-box {
  background: #fff;
  border-radius: 8px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.nav-logo-img { height: 36px; width: auto; display: block; }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 3px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.25s;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: #fff; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  width: 34px;
  height: 34px;
  z-index: 1100;
}
.nav-toggle span {
  width: 28px; height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: transform 0.3s, opacity 0.3s;
}
/* Hamburger -> X */
.nav-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
#home {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  padding-top: 68px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.45);
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 40px;
}
.hero-eyebrow {
  font-family: var(--font-accent);
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  letter-spacing: 4px;
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero-content h1 {
  color: #fff;
  font-size: 68px;
  font-weight: 700;
  line-height: 1.07;
  margin-bottom: 22px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}
.hero-claim {
  color: #fff;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 12px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
.hero-sub {
  color: rgba(255,255,255,0.82);
  font-size: 17px;
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero-sub strong { color: #fff; }

.hero-infos {
  position: absolute;
  bottom: 36px; left: 0; right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 60px;
}
.hero-info-item {
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}
.hero-info-item strong {
  font-family: var(--font-accent);
  display: block;
  color: #fff;
  font-size: 14px;
  margin-bottom: 3px;
}

/* ============================================================
   ABOUT
   ============================================================ */
#about { display: grid; grid-template-columns: 1fr 1fr; }
.about-image { overflow: hidden; max-height: 520px; }
.about-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.about-image:hover img { transform: scale(1.03); }
.about-text {
  background: #f0f2f5;
  padding: 80px 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-text h2 {
  font-size: 40px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.12;
  margin-bottom: 22px;
}
.about-text p {
  color: #555;
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 14px;
}
.motto-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.motto-tag {
  font-family: var(--font-accent);
  background: var(--navy);
  color: #fff;
  padding: 9px 22px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: background 0.2s;
}
.motto-tag:hover { background: var(--red); }

/* ============================================================
   TEAM
   ============================================================ */
#portfolio { padding: 90px 60px; background: #fff; text-align: center; }
#portfolio h2 { font-size: 42px; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
#portfolio .sub {
  color: #666; font-size: 15px; line-height: 1.8;
  max-width: 720px; margin: 0 auto 54px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 420px);
  gap: 36px;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}
.team-card {
  background: #f0f2f5;
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  transition: box-shadow 0.3s, transform 0.3s;
}
.team-card:hover { box-shadow: 0 16px 48px rgba(4,48,92,0.15); transform: translateY(-4px); }
.team-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.team-card .card-info { padding: 22px 24px 26px; border-top: 3px solid var(--red); }
.team-card .card-info h4 { font-size: 19px; font-weight: 700; color: var(--navy); margin-bottom: 5px; }
.team-card .card-info .role {
  font-family: var(--font-accent);
  font-size: 11px; color: var(--red); font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 10px;
}
.team-card .card-info p { font-size: 14px; color: #666; line-height: 1.65; font-style: italic; }

/* ============================================================
   LANDSCAPE DIVIDER
   ============================================================ */
.divider { position: relative; height: 440px; overflow: hidden; }
.divider img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center center;
  filter: brightness(0.48);
}
.divider-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(4,48,92,0.55), rgba(4,48,92,0.15));
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 0 40px;
}
.divider-overlay h3 {
  color: #fff; font-size: 44px; font-weight: 700;
  text-align: center; margin-bottom: 14px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.divider-overlay p {
  color: rgba(255,255,255,0.85); font-size: 17px;
  text-align: center; max-width: 520px; line-height: 1.7;
}

/* ============================================================
   SERVICES
   ============================================================ */
#services { padding: 90px 60px; background: #f0f2f5; text-align: center; }
#services h2 { font-size: 42px; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
#services .sub {
  color: #666; font-size: 15px; line-height: 1.8;
  max-width: 720px; margin: 0 auto 54px;
}
.services-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 20px; max-width: 1240px; margin: 0 auto;
}
.srv-card {
  background: var(--navy);
  border-radius: 12px;
  padding: 32px 20px 26px;
  text-align: left;
  color: #fff;
  transition: transform 0.25s, box-shadow 0.25s;
}
.srv-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(4,48,92,0.25); }
.srv-icon-wrap {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; flex-shrink: 0;
}
.srv-icon-wrap svg { width: 28px; height: 28px; fill: #fff; }
.srv-card:nth-child(1) .srv-icon-wrap { background: #1565C0; }
.srv-card:nth-child(2) .srv-icon-wrap { background: #2E7D32; }
.srv-card:nth-child(3) .srv-icon-wrap { background: #E65100; }
.srv-card:nth-child(4) .srv-icon-wrap { background: #6A1B9A; }
.srv-card:nth-child(5) .srv-icon-wrap { background: #B71C1C; }
.srv-card h4 { font-size: 14px; font-weight: 700; line-height: 1.35; margin-bottom: 10px; color: #fff; }
.srv-card p { font-size: 12px; color: rgba(255,255,255,0.65); line-height: 1.65; margin-bottom: 16px; }
.srv-tag {
  font-family: var(--font-accent);
  display: inline-block;
  background: rgba(192,0,0,0.25);
  color: #ff9090;
  font-size: 11px; font-weight: 700;
  padding: 3px 12px; border-radius: 20px;
  letter-spacing: 0.5px;
}

/* ============================================================
   IMAGE STRIP
   ============================================================ */
.image-strip { display: grid; grid-template-columns: repeat(3, 1fr); height: 280px; overflow: hidden; }
.image-strip img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s;
  filter: brightness(0.92);
}
.image-strip img:hover { transform: scale(1.05); filter: brightness(1); }

/* ============================================================
   CONTACT
   ============================================================ */
#contact {
  padding: 90px 60px;
  background: #fff;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 70px;
  align-items: start;
}
.contact-left h2 { font-size: 40px; font-weight: 700; color: var(--navy); line-height: 1.15; margin-bottom: 16px; }
.contact-left > p { color: #555; font-size: 15px; line-height: 1.8; margin-bottom: 36px; }

.contact-item { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 24px; }
.contact-icon {
  width: 46px; height: 46px;
  background: var(--navy);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0; color: #fff;
}
.contact-detail h5 {
  font-family: var(--font-accent);
  font-size: 11px; font-weight: 700; color: var(--red);
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 4px;
}
.contact-detail a, .contact-detail p { font-size: 14px; color: #333; display: block; line-height: 1.6; }
.contact-detail address { font-style: normal; font-size: 14px; color: #333; line-height: 1.6; }
.contact-detail a:hover { color: var(--red); }

/* Route-Planen Button (DSGVO: öffnet erst auf Klick) */
.route-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  font-family: var(--font-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--navy) !important;
  border: 1.5px solid var(--navy);
  padding: 6px 14px;
  border-radius: 5px;
  transition: background 0.2s, color 0.2s;
}
.route-link:hover { background: var(--navy); color: #fff !important; }
.route-hint { font-size: 11px; color: #999; margin-top: 6px; font-style: italic; }

/* Social Buttons */
.social-row { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.social-btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--navy); color: #fff;
  padding: 11px 22px; border-radius: 6px;
  font-size: 14px; font-weight: 700;
  font-family: var(--font-accent);
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.social-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.social-btn:hover { background: #062f57; transform: translateY(-2px); }
.social-btn--fb { background: #1877F2; }
.social-btn--fb:hover { background: #1464ce; }

/* Formular */
.contact-form { background: #f0f2f5; border-radius: 14px; padding: 40px; }
.contact-form h3 { font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; margin-bottom: 16px; }
.form-group label {
  font-family: var(--font-accent);
  font-size: 11px; font-weight: 700; color: var(--navy);
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 6px;
}
.form-group input, .form-group textarea {
  background: #fff;
  border: 1.5px solid #dce0e8;
  border-radius: 7px;
  padding: 11px 15px;
  font-size: 14px; color: #333;
  font-family: var(--font-text);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--navy); }
.form-group textarea { height: 110px; resize: vertical; }

/* Checkbox-Zeile sauber ausrichten */
.form-check { flex-direction: row; align-items: flex-start; gap: 9px; }
.form-check input { width: auto; margin-top: 3px; flex-shrink: 0; }
.form-check label {
  font-family: var(--font-text);
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 400;
  color: #555;
  line-height: 1.5;
}
.form-check a { color: var(--navy); text-decoration: underline; }

.form-submit {
  width: 100%;
  background: var(--red);
  color: #fff;
  border: none;
  padding: 14px;
  font-size: 14px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  font-family: var(--font-accent);
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 6px;
}
.form-submit:hover { background: #a00000; transform: translateY(-1px); }

#form-success { display: none; text-align: center; padding: 40px 20px; }
#form-success h4 { font-size: 24px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
#form-success p { color: #555; font-size: 15px; }
#form-success .check { font-size: 52px; margin-bottom: 16px; display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--navy); padding: 50px 60px 24px; }
.footer-top {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo-box {
  background: #fff;
  border-radius: 8px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
}
.footer-logo-img { height: 54px; width: auto; display: block; }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 13px; line-height: 1.75; max-width: 300px; }

.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.75);
  transition: background 0.2s, color 0.2s;
}
.footer-social a:hover { background: rgba(255,255,255,0.2); color: #fff; }

.footer-col h5 {
  font-family: var(--font-accent);
  color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 18px;
}
.footer-col a { display: block; color: rgba(255,255,255,0.55); font-size: 13px; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 12px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  #contact { grid-template-columns: 1fr; gap: 50px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  #navbar { padding: 0 30px; }
}

/* ── Tablet / Mobil – Navigation einklappen ── */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: fixed;
    top: 68px;
    right: 0;
    width: 280px;
    max-width: 82vw;
    height: calc(100vh - 68px);
    background: var(--navy);
    padding: 24px 28px;
    box-shadow: -8px 0 30px rgba(0,0,0,0.35);
    transform: translateX(100%);
    transition: transform 0.32s ease;
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }

  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 15px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links a::after { display: none; }
  .nav-links a.active { color: var(--red); }

  /* Hintergrund-Overlay wenn Menü offen */
  body.nav-open::before {
    content: '';
    position: fixed;
    inset: 68px 0 0 0;
    background: rgba(0,0,0,0.45);
    z-index: 999;
  }
}

/* ── Mobil ── */
@media (max-width: 768px) {
  #navbar { padding: 0 20px; }
  .nav-logo-box { height: 44px; padding: 5px 12px; }
  .nav-logo-img { height: 32px; }

  .hero-content h1 { font-size: 40px; }
  .hero-claim { font-size: 18px; }
  .hero-sub { font-size: 15px; }
  .hero-sub br { display: none; }
  .hero-infos { flex-direction: column; gap: 12px; padding: 0 24px; bottom: 22px; }

  #about { grid-template-columns: 1fr; }
  .about-image { max-height: 300px; }
  .about-text { padding: 50px 28px; }
  .about-text h2 { font-size: 32px; }
  .about-text h2 br { display: none; }

  #portfolio { padding: 60px 24px; }
  #portfolio h2 { font-size: 30px; }
  .team-grid { grid-template-columns: 1fr; max-width: 380px; gap: 26px; }

  .divider { height: 300px; }
  .divider-overlay h3 { font-size: 28px; }
  .divider-overlay p { font-size: 15px; }

  #services { padding: 60px 24px; }
  #services h2 { font-size: 30px; }
  .services-grid { grid-template-columns: 1fr 1fr; gap: 14px; }

  .image-strip { grid-template-columns: 1fr; height: auto; }
  .image-strip img { height: 220px; }

  /* ── Kontakt voll responsiv ── */
  #contact { padding: 60px 24px; gap: 40px; }
  .contact-left h2 { font-size: 30px; }
  .contact-left h2 br { display: none; }   /* Zeilenumbruch raus auf Mobil */
  .contact-form { padding: 26px 22px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }  /* Felder stapeln */
  .social-row { gap: 10px; }
  .social-btn { flex: 1; justify-content: center; padding: 12px 16px; }

  footer { padding: 40px 24px 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── Sehr kleine Geräte ── */
@media (max-width: 420px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 34px; }
  .social-row { flex-direction: column; }
  .social-btn { width: 100%; }
}

/* ============================================================
   KI-HINWEIS-BADGES (Transparenz: KI-generierte Bilder)
   Winzig, dezent, unten rechts in der jeweiligen Bildecke.
   ============================================================ */
.img-wrap { position: relative; display: block; line-height: 0; }

.ai-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 3;
  background: rgba(0, 0, 0, 0.42);
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 4px;
  backdrop-filter: blur(2px);
  pointer-events: none;
  text-transform: uppercase;
  user-select: none;
}
/* Etwas heller auf den hellen Bilderstreifen */
.image-strip .ai-badge { background: rgba(0,0,0,0.5); }
/* Auf großen, dunkel abgedunkelten Bildern (Hero/Divider) oben rechts */
.hero .ai-badge,
.divider .ai-badge { top: 78px; bottom: auto; }
@media (max-width: 768px) {
  .ai-badge { font-size: 8px; padding: 2px 5px; }
  .hero .ai-badge, .divider .ai-badge { top: 80px; }
}

/* ============================================================
   COOKIE-/CONSENT-BANNER  (selbst gehostet, kein Drittanbieter)
   ============================================================ */
#cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 3000;
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #d7dde6;
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.28);
  padding: 26px 28px;
  display: none;
}
#cookie-banner.show { display: block; }

#cookie-banner h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
#cookie-banner p {
  font-size: 13.5px;
  color: #555;
  line-height: 1.65;
  margin-bottom: 8px;
}
#cookie-banner a { color: var(--navy); text-decoration: underline; }

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.cookie-actions button {
  flex: 1;
  min-width: 150px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 7px;
  cursor: pointer;
  border: none;
  font-family: var(--font-accent);
  transition: background 0.2s, transform 0.15s, border-color 0.2s;
}
.btn-accept { background: var(--navy); color: #fff; }
.btn-accept:hover { background: #062f57; transform: translateY(-1px); }
.btn-essential {
  background: #fff;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-essential:hover { background: #eef2f7; }
.btn-settings {
  background: #fff;
  color: #666;
  border: 1.5px solid #cfd6e0;
}
.btn-settings:hover { border-color: #04305C; color: #04305C; }

/* Detail-Einstellungen */
.cookie-details {
  margin-top: 16px;
  border-top: 1px solid #e6eaf0;
  padding-top: 16px;
  display: none;
}
.cookie-details.show { display: block; }
.cookie-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.cookie-option input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; }
.cookie-option label { font-size: 13px; color: #333; line-height: 1.5; }
.cookie-option label strong { color: var(--navy); display: block; margin-bottom: 2px; }
.cookie-option input:disabled { accent-color: #9aa6b5; }

/* Kleiner Button, um Einstellungen später erneut zu öffnen */
#cookie-reopen {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 2500;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  display: none;
  align-items: center;
  justify-content: center;
}
#cookie-reopen.show { display: flex; }

/* Consent-Platzhalter für die Karte (statt Auto-Google-Maps) */
.map-consent {
  margin-top: 14px;
  background: #eef2f7;
  border: 1.5px dashed #b9c4d2;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}
.map-consent p { font-size: 13px; color: #555; line-height: 1.6; margin-bottom: 12px; }
.map-consent button {
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}
.map-consent button:hover { background: #062f57; }

@media (max-width: 600px) {
  #cookie-banner { padding: 20px 18px; }
  .cookie-actions button { min-width: 100%; }
}

/* ============================================================
   Legal-Seiten (Impressum / Datenschutz / Barrierefreiheit)
   ============================================================ */
.legal-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 120px 28px 80px;
}
.legal-page h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.legal-page .legal-intro {
  color: #777;
  font-size: 14px;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 2px solid #eef2f7;
}
.legal-page h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 34px 0 12px;
}
.legal-page h3 {
  font-size: 16px;
  font-weight: 700;
  color: #04305C;
  margin: 22px 0 8px;
}
.legal-page p,
.legal-page li {
  font-size: 14.5px;
  color: #444;
  line-height: 1.8;
  margin-bottom: 12px;
}
.legal-page ul { padding-left: 22px; margin-bottom: 14px; }
.legal-page a { color: var(--navy); text-decoration: underline; }
.legal-page strong { color: #222; }

/* Hinweis-Box für auszufüllende Felder */
.fill-note {
  background: #FFF8E1;
  border-left: 4px solid #FFB300;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  font-size: 13.5px;
  color: #7a5b00;
  margin: 10px 0 18px;
}
.fill-note strong { color: #5a4300; }

.legal-back {
  display: inline-block;
  margin-top: 30px;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 13px;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none !important;
}
.legal-back:hover { background: var(--navy); color: #fff; }

/* Tabelle (z. B. Cookie-/Datenübersicht) */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 22px;
  font-size: 13px;
}
.legal-table th, .legal-table td {
  border: 1px solid #dde3ec;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.legal-table th { background: #eef2f7; color: var(--navy); font-weight: 700; }
.legal-table tr:nth-child(even) td { background: #f8fafc; }
@media (max-width: 600px) {
  .legal-table, .legal-table thead, .legal-table tbody,
  .legal-table th, .legal-table td, .legal-table tr { display: block; }
  .legal-table th { display: none; }
  .legal-table td { border: none; border-bottom: 1px solid #eef2f7; padding: 8px 0; }
  .legal-table td::before { content: attr(data-label); font-weight: 700; color: var(--navy); display: block; }
}

/* ============================================================
   Honeypot-Feld (Spam-Schutz) – für Menschen unsichtbar
   ============================================================ */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
