/* ------------------------------------------------------------------
   bp-eventmarketing – Ergaenzungen
   Korrekturen: Hoehe der Navigation, Responsivitaet, Bedienbarkeit,
   Formular-Zustaende. Farben, Typografie und Inhalte bleiben gleich.
   ------------------------------------------------------------------ */

:root {
  /* Die Leiste war 120 px hoch mit einem 105 px hohen Logo. Das war
     deutlich zu wuchtig und liess der Linkleiste zu wenig Platz. */
  --bp-nav-h: 84px;
}

.bp-nav {
  height: var(--bp-nav-h) !important;
}

.bp-nav-logo img {
  height: calc(var(--bp-nav-h) - 20px) !important;
  width: auto !important;
}

/* Ankersprünge landen nicht mehr unter der fixierten Navigation. */
section[id],
div[id] {
  scroll-margin-top: calc(var(--bp-nav-h) + 16px);
}

html {
  scroll-behavior: smooth;
}

/* Hero: 100vh springt auf Mobilgeräten beim Ein-/Ausblenden der
   Browserleiste. svh verhindert das. */
@supports (height: 100svh) {
  .bp-hero {
    height: 100svh;
  }
}

/* Auf niedrigen Displays erzwang min-height:700px unnoetiges Scrollen. */
@media (max-height: 720px) {
  .bp-hero {
    min-height: 0 !important;
  }
}

/* ---------- Navigation ------------------------------------------ */

.bp-burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: rgba(11, 15, 26, 0.04);
  flex: 0 0 auto;
}

.bp-burger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #0b0f1a;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.bp-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.bp-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.bp-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Die Links brachen zwischen 1024 und 1280 px in eine zweite Zeile um
   und liefen damit aus der Leiste heraus. */
@media (min-width: 1024px) {
  .bp-nav-menu {
    flex-wrap: nowrap !important;
    white-space: nowrap;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  :root {
    --bp-nav-h: 76px;
  }

  .bp-nav-menu {
    gap: 1.5rem !important;
  }
}

@media (max-width: 1023px) {
  :root {
    --bp-nav-h: 64px;
  }

  .bp-burger {
    display: flex;
  }

  /* Aus der umbrechenden Linkleiste wird ein Aufklappmenü. */
  .bp-nav-menu {
    position: fixed;
    top: var(--bp-nav-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    background: linear-gradient(135deg, rgb(238, 238, 255) 0%, rgb(232, 248, 255) 100%);
    box-shadow: 0 18px 30px -18px rgba(11, 15, 26, 0.45);
    max-height: calc(100vh - var(--bp-nav-h));
    overflow-y: auto;
  }

  .bp-nav-menu.bp-open {
    display: flex;
  }

  .bp-nav-menu > * {
    width: 100%;
    text-align: left;
    padding: 14px 4px;
    border-bottom: 1px solid rgba(11, 15, 26, 0.08);
    font-size: 1rem;
  }

  .bp-nav-menu > *:last-child {
    border-bottom: none;
    text-align: center;
    margin-top: 14px;
    padding: 14px 24px;
  }
}

/* Rechtstexte: der Inhalt startete unter der fixierten Navigation. */
.bp-legal {
  padding-top: calc(var(--bp-nav-h) + 2.5rem) !important;
}

/* ---------- Slider ----------------------------------------------- */

/* Die Pfeile waren an :hover gebunden und damit auf Touchgeräten
   unerreichbar. */
@media (hover: none), (pointer: coarse) {
  .relative.group > button.absolute.left-4,
  .relative.group > button.absolute.right-4 {
    opacity: 1 !important;
    width: 40px;
    height: 40px;
  }
}

.relative.group > .overflow-hidden {
  touch-action: pan-y;
}

/* ---------- Sehr schmale Displays --------------------------------- */

@media (max-width: 400px) {
  .bp-hero h1 {
    font-size: 2rem;
    line-height: 1.1;
  }
}

@media (max-width: 340px) {
  .bp-hero h1 {
    font-size: 1.7rem;
  }
}

/* Referenz-Galerie im Overlay */
@media (max-width: 380px) {
  .bp-ref-modal-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ---------- Kontaktformular --------------------------------------- */

.bp-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.bp-hinweis {
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.bp-hinweis-ok {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.bp-hinweis-fehler {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.bp-feldfehler {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #dc2626;
}

.bp-input-fehler {
  border-color: #f87171 !important;
  background: #fff5f5 !important;
}

.bp-datenschutz-hinweis {
  font-size: 0.75rem;
  line-height: 1.5;
  color: #9ca3af;
}

.bp-datenschutz-hinweis a {
  text-decoration: underline;
  color: #5b5fff;
}

form.bp-sending button[type="submit"] {
  opacity: 0.6;
  pointer-events: none;
}

/* ---------- Bedienbarkeit ----------------------------------------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #5b5fff;
  outline-offset: 2px;
  border-radius: 4px;
}

.bp-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: #0b0f1a;
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
  font-size: 0.9rem;
}

.bp-skip-link:focus {
  left: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .bp-nav,
  .bp-burger,
  .bp-nav-menu {
    display: none !important;
  }
}

/* ---------- Cookie-Hinweis ---------------------------------------- */

.bp-cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid rgba(11, 15, 26, 0.08);
  background: #fff;
  box-shadow: 0 20px 40px -18px rgba(11, 15, 26, 0.45);
  font-size: 0.85rem;
  line-height: 1.5;
  color: #4b5563;
}

.bp-cookie[hidden] {
  display: none;
}

.bp-cookie p {
  margin: 0;
}

.bp-cookie p + p {
  margin-top: 4px;
}

.bp-cookie strong {
  color: #0b0f1a;
}

.bp-cookie a {
  color: #5b5fff;
  text-decoration: underline;
}

.bp-cookie-ok {
  flex: 0 0 auto;
  padding: 12px 36px;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, #5b5fff, #00d4ff);
}

@media (max-width: 640px) {
  .bp-cookie {
    flex-direction: column;
    align-items: stretch;
    bottom: 12px;
    left: 12px;
    right: 12px;
  }

  .bp-cookie-ok {
    width: 100%;
  }
}

/* ---------- Videos: Zwei-Klick-Loesung ---------------------------- */

.bp-video {
  width: 100%;
  height: 100%;
}

.bp-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.bp-video-platzhalter {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #0b0f1a 0%, #1b2340 100%);
}

.bp-video-icon {
  color: #00d4ff;
  opacity: 0.9;
}

.bp-video-titel {
  max-width: 34ch;
  font-size: 1rem;
  font-weight: 600;
}

.bp-video-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
}

.bp-video-btn {
  padding: 10px 26px;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, #5b5fff, #00d4ff);
}

.bp-video-klein {
  max-width: 44ch;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}

.bp-video-klein a {
  color: #00d4ff;
  text-decoration: underline;
}

@media (max-width: 480px) {
  .bp-video-platzhalter {
    gap: 8px;
    padding: 16px;
  }

  .bp-video-icon {
    display: none;
  }

  .bp-video-klein {
    display: none;
  }
}

/* Schaltflaeche zum Widerruf in der Datenschutzerklaerung */
.bp-widerruf {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: #0b0f1a;
}

.bp-widerruf[disabled] {
  opacity: 0.5;
}
