/* ══════════════════════════════════════════════════════════════════════════
   Drohnen-Blick.de – gemeinsame Bausteine für alle Seiten
   Wird VOR dem seiteneigenen <style> eingebunden, damit jede Seite einzelne
   Werte überschreiben kann. Enthält nur seitenunabhängige Regeln:
   Fokus, Glas-Material, Barrierefreiheits-Einstellungen, mobile Anfrage-Leiste.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── 1. Tastaturfokus ────────────────────────────────────────────────────
   Sichtbarer Ring in Gold-Text-Farbe (4,98:1 auf hellem Grund).
   Nie Outline entfernen ohne Ersatz. Die Rundung hat Spezifität 0,
   damit eigene border-radius-Werte der Elemente erhalten bleiben. */
:focus-visible { outline: 3px solid #826410; outline-offset: 3px; }
:where(a, button, [tabindex]):focus-visible { border-radius: 4px; }
/* Auf dunklem Grund: helles Gold (7,68:1 auf #1C1C1E) */
/* 16.11.2026: auch die PhotoSwipe-Lightbox (Grund #0B0B0D) */
footer :focus-visible,
.on-dark :focus-visible,
.pswp :focus-visible { outline-color: #D4A843; }
/* 360°-Viewer (Photo Sphere Viewer, dunkle Leiste): Gold statt PSV-Blau (#007cff). Gleiche Selektoren wie PSV;
   ui.css wird nach dem PSV-Stylesheet geladen und gewinnt deshalb. */
.psv-button:not(.psv-button--disabled):focus-visible,
.psv-panel-menu-item:focus-visible { outline: 2px solid #D4A843; outline-offset: -2px; }

/* ── 2. Material: Glas NUR für die schwebende Funktionsebene ──────────────
   (Navigation, Menüs, schwebende Leisten, Medien-Bedienelemente).
   Inhaltskarten bekommen eine deckende Fläche, kein Glas. */
.material {
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .85);
}

/* ── 3. Mobile Anfrage-Leiste (bis 1100 px – genau solange die Navigation als Burger-Menü erscheint) ──────────────────────────
   Schwebende Kapsel unten, hält die Hauptaktion in Daumenreichweite.
   Sichtbarkeit steuert /assets/ui.js über .is-visible (plus aria-hidden + inert).
   z-index 80: unter Navigation (100), Mobil-Menü (90), Lightbox und Vollbild-Viewern. */
.cta-bar {
  position: fixed;
  left: 16px; right: 16px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 80;
  max-width: 420px;
  margin-inline: auto;
  display: flex; align-items: center; gap: 6px;
  padding: 6px;
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(28, 28, 30, .18), 0 2px 8px rgba(28, 28, 30, .08);
  opacity: 0;
  transform: translateY(16px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}
.cta-bar.is-visible {
  opacity: 1;
  transform: none;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .3s ease, transform .3s ease, visibility 0s;
}
.cta-bar__main {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: #1C1C1E;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px; font-weight: 600; line-height: 1;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
}
.cta-bar__call {
  flex: none;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(28, 28, 30, .06);
  color: #1C1C1E;
}
.cta-bar__call svg { width: 20px; height: 20px; display: block; }
.cta-bar :focus-visible { border-radius: 999px; }
@media (min-width: 1101px) { .cta-bar { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .cta-bar, .cta-bar.is-visible { transition: none; transform: none; }
}
/* Fußzeile mobil: Platz lassen, damit die Leiste nie die letzte Zeile verdeckt */
@media (max-width: 1100px) {
  body:has(.cta-bar) footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* ── 4. Touch: Mindestgröße 44 px für Fußzeilen-Links und Menü-Knopf ───── */
@media (pointer: coarse) {
  footer a { min-height: 44px; display: inline-flex; align-items: center; }
  footer ul { gap: 0; }
}
#burger { min-width: 44px; min-height: 44px; }

/* ── 5. „Transparenz reduzieren" (Systemeinstellung): alles deckend ────── */
@media (prefers-reduced-transparency: reduce) {
  * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .material, #nav, #mobile-menu, .cta-bar { background: #fff !important; }
  .psv-navbar { background: #1C1C1E !important; }
}

/* ── 6. „Kontrast erhöhen" (Systemeinstellung) ───────────────────────────
   Deckende Flächen, kräftigere Ränder, kein Text heller als #48484A auf Hell. */
@media (prefers-contrast: more) {
  html:root { --ink-3: #48484A; --text-tertiary: #48484A; }
  * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .material, #nav, #mobile-menu, .cta-bar, .glass, .btn-ghost { background: #fff !important; }
  .material, #nav, #mobile-menu, .cta-bar, .glass, .btn-ghost, .hero-chip { border-color: rgba(28, 28, 30, .4) !important; }
}
