/**
 * Design-Overrides: Wird nach dem Layout-CSS geladen.
 * Änderungen hier überschreiben die Standard-Farben, ohne layout.tsx anpassen zu müssen.
 *
 * Registrieren-Buttons (Nav + Formular): Hover-Textfarbe
 * Standard: #7E8B9E (Grau). Andere Farbe z. B.:
 *   --pf-register-btn-hover-color: #333;
 *   --pf-register-btn-hover-color: #54D95C;
 */
:root {
  --pf-register-btn-hover-color: #7E8B9E;
}

/* ENTFERNT 2026-08-15 (Founder-Entscheid: "ja waitlist will ich entfernen.
   nur direkt kundenregistrierungen oeffnen"): hier standen zwei Regeln fuer
   .waitlist-block. Die Klasse kam im Markup schon vorher nicht mehr vor
   (gemessen in content/home.html: 0 Treffer, Positivkontrolle hide-until-loaded
   1 Treffer), und mit der geloeschten Warteliste kann sie nicht zurueckkehren. */

/* Oberer Wrapper: min-height reduzieren, damit kein großer Abstand nach unten entsteht */
#__next > div[style*="min-height: 100vh"] {
  min-height: auto !important;
}

/* Nav und Kundentyp-Switch auf Startseite sichtbar halten */
#__main nav.hide-until-loaded,
#__next nav.hide-until-loaded {
  opacity: 1 !important;
  visibility: visible !important;
}
#__main #customer-type-switch-root,
#__next #customer-type-switch-root {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Footer und Inhalt in #__main sichtbar, nichts abschneiden */
#__main {
  overflow: visible !important;
  min-height: 100% !important;
}

/* Trust-Badges (Vertrauen & Datenschutz): Icon + Text */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.trust-badge-icon {
  flex-shrink: 0;
}

/* Testimonials-Slider: nur Grün + Weiß, kein Blau */
.testimonials-wrapper .swiper-button-prev,
.testimonials-wrapper .swiper-button-next {
  width: 48px !important;
  height: 48px !important;
  background: #54D95C !important;
  background-color: #54D95C !important;
  background-image: none !important;
  border: none !important;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(84, 217, 92, 0.35);
  --swiper-navigation-color: #fff;
  transition: background 0.2s, background-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
/* Blaue Schicht/Overlay von Swiper entfernen */
.testimonials-wrapper .swiper-button-prev::before,
.testimonials-wrapper .swiper-button-next::before {
  display: none !important;
}
.testimonials-wrapper .swiper-button-prev:hover,
.testimonials-wrapper .swiper-button-next:hover {
  background: #45c04d !important;
  background-color: #45c04d !important;
  box-shadow: 0 4px 12px rgba(84, 217, 92, 0.45);
  transform: scale(1.05);
}
.testimonials-wrapper .swiper-button-prev::after,
.testimonials-wrapper .swiper-button-next::after {
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 700;
}
.testimonials-wrapper .swiper-button-prev {
  left: 0;
}
.testimonials-wrapper .swiper-button-next {
  right: 0;
}

/* Überschreibe Farbe für h3.heading-4.text-op-dark-grey */
h3.heading-4.text-op-dark-grey {
  color: rgba(80, 91, 109, 1) !important;
}

/* Überschreibe Farbe für h3.heading-5.text-op-dark-grey */
h3.heading-5.text-op-dark-grey {
  color: #505B6D !important;
}

/* Überschreibe Farbe für op-muted Element */
op-muted {
  color: #505B6D !important;
}

/* ---- Landing Hero ---- */
#landing-hero-slot {
  width: 100%;
  position: relative;
  overflow: hidden;
}
#landing-hero-slot .hero-screens {
  display: none;
}
/* Trust hover-cards (Navbar Logo + DSGVO/DE/SSL badges) */
.trust-hover-card {
  position: relative;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.trust-hover-card:hover {
  transform: translateY(-2px);
}
.trust-hover-card .trust-flyout {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  width: 260px;
  padding: 16px 18px;
  border-radius: 16px;
  background: white;
  border: 1px solid rgba(94, 164, 244, 0.25);
  box-shadow: 0 0 0 0 rgba(94, 164, 244, 0), 0 8px 32px rgba(0, 0, 0, 0.08);
  transition:
    opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s ease;
  z-index: 50;
}
.trust-hover-card .trust-flyout::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-bottom-color: white;
  filter: drop-shadow(0 -2px 2px rgba(0,0,0,0.04));
}
.trust-hover-card:hover .trust-flyout {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
  box-shadow:
    0 0 12px 3px rgba(94, 164, 244, 0.15),
    0 0 24px 6px rgba(94, 164, 244, 0.1),
    0 8px 32px rgba(0, 0, 0, 0.08);
  animation: trust-glow-pulse 2s ease-in-out infinite;
}
@keyframes trust-glow-pulse {
  0%, 100% { box-shadow: 0 0 8px 2px rgba(94, 164, 244, 0.12), 0 0 20px 4px rgba(94, 164, 244, 0.08); }
  50% { box-shadow: 0 0 14px 4px rgba(94, 164, 244, 0.22), 0 0 30px 8px rgba(94, 164, 244, 0.14); }
}
.trust-flyout-title {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
  background: linear-gradient(90deg, #3b82f6, #5ea4f4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.trust-flyout-text {
  font-size: 13px;
  line-height: 1.5;
  color: #4b5563;
}

/* Logo flyout: left-aligned instead of centered */
.trust-hover-card .logo-flyout {
  left: 0;
  transform: translateX(0) translateY(-8px) scale(0.95);
}
.trust-hover-card .logo-flyout::after {
  left: 30px;
  transform: none;
}
.trust-hover-card:hover .logo-flyout {
  transform: translateX(0) translateY(0) scale(1);
}
.hero-screens-inline {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  object-fit: contain;
  margin-top: 20px;
}
@media (max-width: 768px) {
  .hero-screens-inline { max-width: 360px; }
}
@media (max-width: 480px) {
  .hero-screens-inline { max-width: 100%; }
}
#landing-hero-slot .hero-content-layer {
  position: relative;
  z-index: 2;
}
#landing-hero-slot .hero-content-layer .space-y-2 {
  position: relative;
  z-index: 5;
}
/* Ghost cards (opacity-50 side cards) unter den Screens */
#hero-pricing-root .opacity-50 {
  z-index: 1 !important;
}
@media (max-width: 1024px) {
  #landing-hero-slot .hero-screens { height: 60%; max-width: 50%; }
}
@media (max-width: 768px) {
  #landing-hero-slot .hero-screens { height: 50%; max-width: 55%; opacity: 0.3; }
}
@media (max-width: 480px) {
  #landing-hero-slot .hero-screens { display: none; }
}

/* ---- Tablet Frame ---- */
.tablet-frame {
  position: relative;
  background: linear-gradient(180deg, #e8e8ed 0%, #d4d4da 40%, #c8c8ce 100%);
  border-radius: 22px;
  padding: 22px 30px;
  box-shadow:
    0 2px 0 rgba(255,255,255,0.5) inset,
    0 -1px 0 #aaa inset,
    0 10px 40px rgba(0, 0, 0, 0.15);
  aspect-ratio: 16 / 10;
  max-height: 400px;
}
/* Inner bezel highlight */
.tablet-frame::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.4);
  pointer-events: none;
  z-index: 1;
}
/* Diagonal light reflection - only on bezel, not screen */
.tablet-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(205deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.4) 18%, rgba(255,255,255,0) 20%, rgba(255,255,255,0) 100%);
  border-radius: 22px;
  pointer-events: none;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 0, 30px 22px, 30px calc(100% - 22px), calc(100% - 30px) calc(100% - 22px), calc(100% - 30px) 22px, 30px 22px);
  z-index: 2;
}
.tablet-camera {
  position: absolute;
  top: 50%;
  left: 7px;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #d0d0d5 40%, #c0c0c5 70%);
  border: 1px solid #ccc;
}
.tablet-screen {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}

/* ---- Hero-Video am Handy (Founder 2026-07-24) ----
   Die Video-Spalte ist seit 2026-07-24 auch unterhalb von lg sichtbar. Der
   Tablet-Rahmen funktioniert dort NICHT: 30px Seitenpolster je Seite fressen
   bei 360px Bildbreite rund ein Fuenftel des Videos, die Kamera-Attrappe und
   die Blend-Reflexion wirken auf einem Handy-Bildschirm wie ein Fehler. Also
   unterhalb von 1024px (Tailwind-lg) den Rahmen flachlegen und das Video als
   schlichte, abgerundete Karte zeigen.
   Der Block greift ausschliesslich unter 1024px - die Desktop-Ansicht ab lg
   bleibt unveraendert. */
@media (max-width: 1023.98px) {
  .tablet-frame {
    padding: 0;
    background: #000;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
    max-height: none;
  }
  .tablet-frame::before,
  .tablet-frame::after,
  .tablet-camera {
    display: none;
  }
  .tablet-screen {
    border-radius: 16px;
  }
  /* Der 40px-Innenabstand der Spalte ist fuer die Desktop-Zweispalter-Optik
     gedacht und kostet am Handy nur Platz.

     Founder 2026-07-28 (Nr. 34): "Es steht unter dem Text. Es gehoert ganz
     nach oben an die allererste Stelle." Der Zweispalter ist unterhalb von
     1024px ein Einspalter, in dem die Text-Karte als erstes Kind steht und
     die Video-Spalte als zweites. order:-1 dreht genau das um, ohne das
     Markup anzufassen - der Desktop-Zweispalter ab 1024px bleibt dadurch
     unberuehrt. */
  .pf-hero-video-col {
    padding-top: 12px !important;
    order: -1;
  }
}

/* Die frueheren Regeln .herov11-video-wrapper / .hero-v11-video /
   .hero-video-see-through standen hier bis 2026-07-24. Diese Klassen kommen im
   heutigen Markup (content/home.html) nicht mehr vor - es war toter Code, der
   nur noch die Suche nach der echten Video-Struktur erschwert hat. Das Video
   liegt im .tablet-frame > .tablet-screen (siehe oben). */
