/* =======================================================================
   Bohlhof Theme "Alpine Aviation" - reine Optik, keine Funktionsaenderung.
   Wird NACH tailwind.css und bohlhof-nav.css geladen.
   Palette: Cockpit-Navy (slate-900), Himmelblau (sky-600), Signal-Orange (amber-600).
   ======================================================================= */

:root {
  --bh-navy: #0f172a;
  --bh-navy-2: #1e293b;
  --bh-sky: #0284c7;
  --bh-sky-dark: #0369a1;
  --bh-amber: #d97706;
  --bh-amber-dark: #b45309;
  --bh-line: rgba(203, 213, 225, 0.75);
  --bh-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 24px -14px rgba(15, 23, 42, 0.18);
  --bh-shadow-md: 0 2px 4px rgba(15, 23, 42, 0.06), 0 18px 40px -16px rgba(15, 23, 42, 0.28);
}

/* ---- Schrift (lokal, kein Google-Fonts-Request) ---------------------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin-wght-normal.woff2?v=1") format("woff2");
}
:root {
  --bohlhof-font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
html, body, button, input, select, textarea {
  font-family: var(--bohlhof-font-sans);
}
h1, h2, h3, .page-title, .hero-title {
  font-weight: 800;
  letter-spacing: -0.025em;
}
h1.page-title {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
}

html {
  -webkit-text-size-adjust: 100%;
}
body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:focus-visible {
  outline: 2px solid var(--bh-sky);
  outline-offset: 2px;
}

/* ---- Ueberschriften ------------------------------------------------- */
.page-title {
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.page-title::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 4px;
  margin-top: 0.85rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bh-sky), #38bdf8);
}

/* ---- Karten (Flotte, Ausbildung, Aktuelles, Piloten, Verein ...) ----- */
main article.rounded-xl,
main article.rounded-2xl,
main .bh-card {
  border: 1px solid var(--bh-line);
  box-shadow: var(--bh-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
main article.rounded-xl.ring-1,
main article.rounded-2xl.ring-1 {
  --tw-ring-color: transparent;
  --tw-ring-shadow: 0 0 #0000;
}
@media (hover: hover) {
  main article.rounded-xl:hover,
  main article.rounded-2xl:hover,
  main .bh-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--bh-shadow-md);
    border-color: rgba(2, 132, 199, 0.35);
  }
}
main article.overflow-hidden img,
main article > div.overflow-hidden img {
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (hover: hover) {
  main article.overflow-hidden:hover img,
  main article:hover > div.overflow-hidden img {
    transform: scale(1.035);
  }
}

/* ---- Buttons --------------------------------------------------------- */
.bh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.bh-btn:hover {
  transform: translateY(-1px);
}
.bh-btn--primary {
  background: var(--bh-sky);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(2, 132, 199, 0.8);
}
.bh-btn--primary:hover {
  background: var(--bh-sky-dark);
}
.bh-btn--glass {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.bh-btn--glass:hover {
  background: rgba(255, 255, 255, 0.26);
}
.bh-btn--amber {
  background: var(--bh-amber);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(217, 119, 6, 0.8);
}
.bh-btn--amber:hover {
  background: var(--bh-amber-dark);
}
.bh-btn--outline {
  background: #fff;
  color: var(--bh-navy);
  border-color: #cbd5e1;
}
.bh-btn--outline:hover {
  border-color: var(--bh-sky);
  color: var(--bh-sky-dark);
}

/* Startseiten-Hero: zwei Buttons nebeneinander */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.hero-actions .hero-cta {
  margin-top: 0 !important;
}

/* ---- Navigation: "Fuer Piloten" als Signal-Button -------------------- */
@media (min-width: 768px) {
  #siteHeader nav > .group > a[href="/piloten"] {
    background: var(--bh-amber);
    color: #fff !important;
    text-shadow: none !important;
    box-shadow: 0 8px 18px -10px rgba(217, 119, 6, 0.9);
    margin-left: 0.35rem;
  }
  #siteHeader nav > .group > a[href="/piloten"]:hover {
    background: var(--bh-amber-dark) !important;
  }
}

/* ---- Piloten-Schnellbriefing ---------------------------------------- */
.bh-briefing {
  position: relative;
  margin-top: 2rem;
  overflow: hidden;
  border-radius: 1.25rem;
  padding: 1.5rem;
  color: #e2e8f0;
  background:
    radial-gradient(900px 300px at 100% -10%, rgba(2, 132, 199, 0.35), transparent 60%),
    linear-gradient(135deg, var(--bh-navy) 0%, var(--bh-navy-2) 100%);
  box-shadow: var(--bh-shadow-md);
}
@media (min-width: 768px) {
  .bh-briefing {
    padding: 2rem 2.25rem;
  }
}
.bh-briefing__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fbbf24;
}
.bh-briefing__eyebrow::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.25);
}
.bh-briefing h2 {
  margin-top: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}
.bh-briefing__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}
@media (min-width: 768px) {
  .bh-briefing__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.bh-fact {
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.bh-fact dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}
.bh-fact dd {
  margin-top: 0.25rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}
.bh-fact dd small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #cbd5e1;
}
.bh-briefing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.bh-briefing__note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #94a3b8;
}

/* ---- Footer (dunkel) ------------------------------------------------- */
footer.bh-footer {
  background: var(--bh-navy);
  color: #cbd5e1;
  border-top: 0;
}
footer.bh-footer a {
  color: #e2e8f0;
}
footer.bh-footer a:hover {
  color: #7dd3fc;
}
footer.bh-footer .bh-footer__logo {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  background: #fff;
}
footer.bh-footer .bh-footer__logo img {
  width: 150px;
  max-width: 100%;
  height: auto;
}


/* ---- Organischer Uebergang unter dem Startseiten-Hero --------------- */
#heroSection + section {
  position: relative;
  z-index: 3;
  margin-top: -2rem;
  border-radius: 2rem 2rem 0 0;
  box-shadow: 0 -18px 40px -22px rgba(15, 23, 42, 0.45);
}

/* ---- Glas-Elemente --------------------------------------------------- */
.bh-glass {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 10px 30px -12px rgba(2, 6, 23, 0.5);
}
.bh-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
}

/* ---- Scroll-Reveal (nur wenn JS aktiv; ohne JS bleibt alles sichtbar) -- */
.bh-js .bh-reveal:not(.is-in) {
  opacity: 0;
}
.bh-reveal.is-in {
  opacity: 1;
  animation: bh-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  animation-delay: var(--bh-delay, 0ms);
}
@keyframes bh-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---- Galerie (Startseite) -------------------------------------------- */
.bh-gallery {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 768px) {
  .bh-gallery {
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 11rem;
  }
  .bh-gallery .bh-g-wide {
    grid-column: span 2;
  }
  .bh-gallery .bh-g-tall {
    grid-row: span 2;
  }
}
.bh-gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 1.1rem;
  min-height: 9rem;
  box-shadow: var(--bh-shadow-sm);
}
.bh-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (hover: hover) {
  .bh-gallery figure:hover img {
    transform: scale(1.05);
  }
}
.bh-gallery figcaption {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ---- Testimonial-Karte (Layout fertig, Inhalte nur mit Einwilligung) --- */
.bh-testimonial {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 1.25rem;
  background: #fff;
  border: 1px solid var(--bh-line);
  box-shadow: var(--bh-shadow-sm);
}
.bh-testimonial::before {
  content: "“";
  position: absolute;
  top: 0.4rem;
  left: 1.1rem;
  font-size: 4rem;
  line-height: 1;
  font-weight: 800;
  color: var(--bh-sky);
  opacity: 0.25;
}
.bh-testimonial blockquote {
  margin: 0;
  padding-top: 1.2rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #0f172a;
  font-weight: 600;
}
.bh-testimonial__who {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: #475569;
}
.bh-testimonial__avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  object-fit: cover;
  background: linear-gradient(135deg, #bae6fd, #e0f2fe);
}

/* ---- WhatsApp-Floating-Button mit Text ------------------------------- */
#site-wa-fab {
  width: auto !important;
  min-width: 3.5rem;
  gap: 0.6rem;
  padding: 0 1rem;
}
#site-wa-fab .bh-wa-label {
  display: none;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}
@media (min-width: 640px) {
  #site-wa-fab .bh-wa-label {
    display: inline;
    animation: bh-wa-in 0.6s ease 1.2s backwards;
  }
}
@keyframes bh-wa-in {
  from {
    opacity: 0;
    transform: translateX(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}


/* ---- Live-Badge ------------------------------------------------------- */
.bh-live {
  margin-bottom: 1rem;
}
.bh-live[hidden] {
  display: none;
}
.bh-live__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #94a3b8;
}
.bh-live.is-live .bh-live__dot {
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
  animation: bh-live-pulse 1.8s infinite;
}
@keyframes bh-live-pulse {
  70% { box-shadow: 0 0 0 9px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}


/* ---- Hero: Lesbarkeit & Wucht ---------------------------------------- */
#heroSection::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.68) 0%, rgba(2, 6, 23, 0.4) 45%, rgba(2, 6, 23, 0) 78%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.35) 0%, rgba(2, 6, 23, 0) 22%);
}
body #heroSection .hero-copy-stack > .hero-title {
  font-size: clamp(1.85rem, 7vw, 4.6rem);
  line-height: 1.06;
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-shadow: 0 2px 24px rgba(2, 6, 23, 0.55);
}
body #heroSection .hero-lead {
  color: #fff;
  font-weight: 500;
  text-shadow: 0 1px 14px rgba(2, 6, 23, 0.65);
}
@media (min-width: 768px) {
  body #heroSection .hero-lead {
    font-size: 1.25rem;
    max-width: 40rem;
  }
}
body #heroSection .hero-cta {
  min-height: 52px;
  box-shadow: 0 14px 30px -12px rgba(2, 6, 23, 0.7);
  transition: transform 0.18s ease, background-color 0.18s ease;
}
body #heroSection .hero-cta:hover {
  transform: translateY(-1px);
}
@media (min-width: 768px) {
  #siteHeader nav.md\:flex .header-link {
    font-size: 1rem;
  }
}
#siteHeader.over-hero:not(.header-light) .header-text {
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(2, 6, 23, 0.7);
}

/* ---- Einheitliche Buttons (Formulare, WhatsApp-Karte) ----------------- */
main form button[type="submit"]:not(.bh-btn) {
  border-radius: 999px;
  padding: 0.8rem 1.75rem;
  font-weight: 700;
  min-height: 48px;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
main form button[type="submit"]:not(.bh-btn):hover {
  transform: translateY(-1px);
}
.kontakt-whatsapp-link {
  border-radius: 999px !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

/* ---- PPR-Seite: zweispaltig ------------------------------------------ */
.bh-ppr-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .bh-ppr-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
    gap: 3.5rem;
    align-items: start;
  }
  .bh-ppr-aside {
    position: sticky;
    top: 7rem;
  }
}
.bh-factcard {
  margin-top: 1.75rem;
  padding: 1.25rem 1.4rem;
  border-radius: 1.1rem;
  color: #e2e8f0;
  background: linear-gradient(135deg, var(--bh-navy), var(--bh-navy-2));
  box-shadow: var(--bh-shadow-md);
}
.bh-factcard h2 {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}
.bh-factcard dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  margin-top: 0.75rem;
  font-size: 0.92rem;
}
.bh-factcard dt {
  color: #94a3b8;
}
.bh-factcard dd {
  margin: 0;
  font-weight: 700;
  color: #fff;
}
.bh-factcard a {
  color: #7dd3fc;
  text-decoration: underline;
}

.bh-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---- Bewegung reduzieren -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  main article:hover {
    transform: none !important;
  }
  .bh-js .bh-reveal:not(.is-in) {
    opacity: 1;
  }
  #site-wa-fab {
    animation: none !important;
  }
  .bh-live.is-live .bh-live__dot {
    animation: none;
  }
}
