/* ==========================================================================
   Faszination Drohne – frisches Design mit Wiedererkennung zur alten Seite:
   heller Grund, Navy-Überschriften (#273272), Cyan-Akzent (#09aeec),
   dunkler Footer (#2e2e2e), Schrift Inter/System.
   ========================================================================== */

:root {
  --navy: #273272;
  --navy-dunkel: #0b2341;
  --akzent: #09aeec;
  --akzent-dunkel: #0787b8;
  --text: #444444;
  --text-hell: #6b7280;
  --grund: #ffffff;
  --grau-hell: #f5f7fa;
  --rand: #e4e8ee;
  --footer-grund: #2e2e2e;
  --max-breite: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--grund);
}

.wrap { max-width: var(--max-breite); margin: 0 auto; padding: 0 1.25rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff;
  padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Header & Navigation ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--rand);
  backdrop-filter: blur(6px);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }

.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand-icon { width: 30px; height: 30px; color: var(--akzent); }
.brand-text { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; color: var(--navy-dunkel); white-space: nowrap; }
.brand-text em { font-style: normal; color: var(--akzent); }

.nav-toggle { display: none; }

.nav-liste { list-style: none; display: flex; align-items: center; gap: .25rem; margin: 0; padding: 0; }
.nav-liste a {
  display: block; padding: .55rem .8rem; text-decoration: none; color: var(--navy-dunkel);
  font-weight: 600; font-size: .95rem; border-radius: 6px; white-space: nowrap;
}

/* Schmale Desktops: Navigation kompakter, damit nichts abgeschnitten wird */
@media (min-width: 1031px) and (max-width: 1260px) {
  .nav-liste { gap: 0; }
  .nav-liste a { padding: .5rem .45rem; font-size: .86rem; }
  .brand-text { font-size: 1.05rem; }
}

/* Suche auf dem Desktop nur als Icon (im Burger-Menü mit Beschriftung) */
@media (min-width: 1031px) {
  .suche-label { display: none; }
  .nav-suche svg { display: block; }
}
.nav-liste a:hover { color: var(--akzent); background: var(--grau-hell); }
.nav-liste a.aktiv { color: var(--akzent); box-shadow: inset 0 -2px 0 var(--akzent); border-radius: 6px 6px 0 0; }

.sub-toggle {
  border: 0; background: none; padding: 0 .3rem; cursor: pointer; color: inherit;
}
.sub-toggle::after {
  content: ""; display: inline-block; width: .5em; height: .5em;
  border-right: 2px solid var(--navy-dunkel); border-bottom: 2px solid var(--navy-dunkel);
  transform: rotate(45deg); margin-bottom: .15em;
}

/* Desktop-Dropdowns */
@media (min-width: 1031px) {
  .main-nav li { position: relative; }
  .main-nav li.hat-kinder { display: flex; align-items: center; }
  .submenu {
    list-style: none; margin: 0; padding: .4rem;
    position: absolute; top: 100%; left: 0; min-width: 230px;
    background: #fff; border: 1px solid var(--rand); border-radius: 10px;
    box-shadow: 0 10px 30px rgba(11, 35, 65, .12);
    display: none; z-index: 60;
  }
  .submenu .submenu { top: -0.4rem; left: 100%; }
  li.hat-kinder:hover > .submenu,
  li.hat-kinder:focus-within > .submenu,
  li.hat-kinder.offen > .submenu { display: block; }
  .submenu a { font-weight: 500; padding: .45rem .7rem; }
  .submenu a[aria-current] { color: var(--akzent); }
}

/* Mobile Navigation */
@media (max-width: 1030px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px;
    background: none; border: 0; padding: .6rem; cursor: pointer;
  }
  .nav-toggle-bar { width: 24px; height: 2.5px; background: var(--navy-dunkel); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .main-nav { display: flex; justify-content: flex-end; }
  .nav-liste {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--rand);
    max-height: calc(100vh - 64px); overflow-y: auto;
    box-shadow: 0 14px 30px rgba(11, 35, 65, .15);
    padding: .5rem 1rem 1rem;
  }
  .nav-liste.offen { display: flex; }
  .nav-liste > li { border-bottom: 1px solid var(--rand); }
  .nav-liste > li:last-child { border-bottom: 0; }
  .nav-liste a { padding: .8rem .4rem; }
  .nav-liste a.aktiv { box-shadow: none; }
  li.hat-kinder { position: relative; }
  .sub-toggle { position: absolute; top: .45rem; right: .2rem; padding: .55rem .9rem; }
  .sub-toggle[aria-expanded="true"]::after { transform: rotate(-135deg); }
  .submenu { list-style: none; display: none; margin: 0; padding: 0 0 .4rem .9rem; }
  .submenu.offen { display: block; }
  .submenu .sub-toggle { top: .1rem; }
  .submenu a { font-weight: 500; padding: .5rem .4rem; }
}

/* ---------- Inhalt ---------- */

main { padding: 2.2rem 1.25rem 3.5rem; }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 4vw, 2.4rem); margin: .4em 0 .6em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); margin-top: 2em; }
h3 { font-size: 1.2rem; margin-top: 1.6em; }

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

.artikel-inhalt img {
  max-width: 100%; height: auto; border-radius: 10px;
}

.artikel-inhalt table {
  border-collapse: collapse; width: 100%; display: block; overflow-x: auto;
}
.artikel-inhalt td, .artikel-inhalt th { border: 1px solid var(--rand); padding: .5rem .75rem; }

.artikel-inhalt hr { border: 0; border-top: 1px solid var(--rand); margin: 2rem 0; }

/* Hinweis-Box (z. B. "Artikel veraltet") */
.hinweis-box {
  border-left: 4px solid var(--akzent);
  background: var(--grau-hell);
  padding: .9rem 1.1rem;
  border-radius: 0 10px 10px 0;
  margin: 1.4rem 0;
}

/* Breadcrumbs */
.breadcrumbs { font-size: .85rem; margin-top: .25rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: .35rem; color: var(--text-hell); }
.breadcrumbs a { color: var(--text-hell); text-decoration: none; }
.breadcrumbs a:hover { color: var(--akzent); }
.breadcrumbs [aria-current] { color: var(--navy); font-weight: 600; }

/* Bereichs-Karten */
.unterseiten { margin-top: 3rem; }
.karten { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; }
.karte {
  display: flex; justify-content: space-between; align-items: center; gap: .6rem;
  padding: .95rem 1.1rem; border: 1px solid var(--rand); border-radius: 10px;
  text-decoration: none; color: var(--navy-dunkel); font-weight: 600; background: var(--grau-hell);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.karte:hover { border-color: var(--akzent); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(9, 174, 236, .12); color: var(--akzent-dunkel); }
.karte-pfeil { color: var(--akzent); }

/* YouTube-Zwei-Klick-Platzhalter */
.yt-video {
  position: relative; aspect-ratio: 16 / 9; max-width: 760px;
  background: linear-gradient(135deg, var(--navy-dunkel), var(--navy));
  border-radius: 12px; margin: 1.5rem 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .8rem;
  color: #fff; cursor: pointer; text-align: center; padding: 1rem;
}
.yt-video::before {
  content: ""; width: 68px; height: 48px; border-radius: 12px; background: var(--akzent);
  clip-path: none;
}
.yt-video::after {
  content: ""; position: absolute; width: 0; height: 0;
  border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff;
  transform: translateY(-1.6rem);
}
.yt-video .yt-hinweis { font-size: .85rem; max-width: 34em; opacity: .85; margin: 0; }
.yt-video .yt-titel { font-weight: 700; margin: 0; }
.yt-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Suche */
.suche-seite #pagefind-ui { margin-top: 1.5rem; }

/* Buttons & Consent-Banner */
.btn {
  font: inherit; font-weight: 600; padding: .55rem 1.3rem; border-radius: 8px;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primaer { background: var(--akzent); color: #fff; }
.btn-primaer:hover { background: var(--akzent-dunkel); }
.btn-sekundaer { background: #fff; color: var(--navy-dunkel); border-color: var(--rand); }
.btn-sekundaer:hover { border-color: var(--navy-dunkel); }

.consent-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90;
  max-width: 560px; margin: 0 auto;
  background: #fff; border: 1px solid var(--rand); border-radius: 14px;
  box-shadow: 0 16px 44px rgba(11, 35, 65, .25);
  padding: 1.1rem 1.3rem;
}
.consent-banner p { margin: 0 0 .8rem; font-size: .92rem; }
.consent-buttons { display: flex; gap: .6rem; justify-content: flex-end; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--footer-grund); color: rgba(255, 255, 255, .55);
  margin-top: 3rem; font-size: .9rem;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; padding-top: 1.4rem; padding-bottom: 1.4rem; }
.footer-inner p { margin: 0; }
.footer-nav { list-style: none; display: flex; gap: 1.2rem; margin: 0; padding: 0; }
.site-footer a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.site-footer a:hover { color: var(--akzent); }

@media print {
  .site-header, .site-footer, .consent-banner, .unterseiten { display: none; }
}
