/* 
 * Landingpage App Styles
 * 
 * Alle Styles strikt unter .site-lp scopen
 */

/* CSS Custom Properties (Variablen) */
.site-lp {
  --lp-color-primary: #0CC0DF;
  --lp-color-secondary: #001373;
  --lp-color-accent: #CADCEC;
  --lp-font-heading: Helvetica, Arial, sans-serif;
  --lp-font-body: Verdana, Geneva, sans-serif;
}

/* Body & Base Typography */
.site-lp body,
.site-lp .wp-site-blocks {
  font-family: var(--lp-font-body);
}

/* Container */
.site-lp .lp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

/* Eyebrow (Überschrift-Zusatz) */
.site-lp .lp-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  color: var(--lp-color-secondary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Headings */
.site-lp h1,
.site-lp h2,
.site-lp h3,
.site-lp h4,
.site-lp h5,
.site-lp h6 {
  font-family: var(--lp-font-heading);
}

/* Hero Section */
.site-lp .lp-hero {
  padding: clamp(48px, 8vw, 96px) 24px;
  text-align: center;
}

/* CTA Buttons */
.site-lp .lp-cta .wp-block-button__link {
  background-color: var(--lp-color-primary);
  color: #ffffff;
  /* border-radius wird von WordPress-Einstellungen übernommen (10px) */
  padding: 12px 32px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.site-lp .lp-cta .wp-block-button__link:hover {
  background-color: var(--lp-color-secondary);
}


/* Container-Fallback */
.site-lp .lp-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero Text - Anpassung für hellen Hintergrund */
.site-lp-hero .wp-block-cover .has-base-color {
  color: var(--lp-color-secondary, #001373) !important;
}

/* Hero H1 - Dunkelblau für hellen Hintergrund */
.site-lp-hero .wp-block-cover h1 {
  color: var(--lp-color-secondary, #001373) !important;
  line-height: 1.25 !important;
}

/* Hero Eyebrow - Türkis */
.site-lp .wp-block-cover .has-small-font-size[style*="color:#0CC0DF"] {
  color: #0CC0DF !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
}

/* Hero Trust-Zeile - Hellblau */
.site-lp .wp-block-cover .has-small-font-size[style*="color:#CADCEC"] {
  color: #CADCEC !important;
  font-style: italic !important;
}

/* Tertiär-Button (Textlink) - Dunkelblau für besseren Kontrast */
.site-lp .wp-block-button.is-style-link .wp-block-button__link {
  color: var(--lp-color-secondary, #001373) !important;
  text-decoration: none !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
}

.site-lp .wp-block-button.is-style-link .wp-block-button__link:hover {
  color: var(--lp-color-primary, #0CC0DF) !important;
  text-decoration: underline !important;
}

/* === HERO – Einheitliche, robuste Regeln === */

/* A) Overlay des Cover-Blocks IMMER aus (egal welche dim-Klasse) */
/* Funktioniert mit UND ohne site-lp-hero Klasse */
.wp-block-cover.site-lp-hero > .wp-block-cover__background,
.site-lp-hero .wp-block-cover > .wp-block-cover__background,
.site-lp .wp-block-cover:first-of-type > .wp-block-cover__background {
  display: none !important;
  opacity: 0 !important;
  background: transparent !important;
}

/* B) Unser Look: weißer Hintergrund direkt auf dem Cover-Block */
/* Funktioniert mit UND ohne site-lp-hero Klasse */
.site-lp-hero,
.site-lp .wp-block-cover:first-of-type {
  position: relative;
  padding: 96px 0;
  background: #fff !important;
}

/* WordPress Core schwarzen Hintergrund überschreiben */
.site-lp .wp-block-cover:first-of-type.has-background-dim,
.site-lp .wp-block-cover:first-of-type.has-background-dim:not([class*=-background-color]) {
  background: #fff !important;
}

/* Container, falls benötigt */
.dv-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Editor-spezifisch: Hero-Overlay im Editor sicher aus */
.editor-styles-wrapper .wp-block-cover.site-lp-hero > .wp-block-cover__background,
.editor-styles-wrapper .site-lp-hero .wp-block-cover > .wp-block-cover__background,
.editor-styles-wrapper .wp-block-cover:first-of-type > .wp-block-cover__background {
  display: none !important;
  opacity: 0 !important;
  background: transparent !important;
}

/* Editor: weißer Hintergrund auch im Editor */
.editor-styles-wrapper .wp-block-cover:first-of-type,
.editor-styles-wrapper .wp-block-cover:first-of-type.has-background-dim {
  background: #fff !important;
}

/* ============================================
   PHASE 1: Hero-Verfeinerung & Animationen
   ============================================ */

/* === 1. Typografie-Verfeinerung === */

/* H1: Sanfter Fade-in + Verfeinerung */
.site-lp .wp-block-cover:first-of-type h1 {
  letter-spacing: 0.02em;
  line-height: 1.2 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Subline/Paragraph: Sanfter Fade-in mit Delay */
.site-lp .wp-block-cover:first-of-type .wp-block-paragraph:not(.has-small-font-size) {
  font-weight: 400;
  opacity: 0.9;
}

/* Trust-Zeile: Sanfter Fade-in */
.site-lp .wp-block-cover:first-of-type .wp-block-paragraph.has-small-font-size {
  /* Bereits vorhandene Styles bleiben erhalten */
}

/* === 2. Button-Hover-Effekte === */

/* Buttons: WordPress-Einstellung für border-radius respektieren (10px) */
.site-lp .wp-block-cover:first-of-type .wp-block-button .wp-block-button__link {
  border-radius: 10px !important;
}

/* Primär-Button: Hover + Fade-in */
.site-lp .wp-block-cover:first-of-type .wp-block-button:not(.is-style-outline):not(.is-style-link) .wp-block-button__link {
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out, background-color 0.3s ease-out;
  will-change: transform;
}

.site-lp .wp-block-cover:first-of-type .wp-block-button:not(.is-style-outline):not(.is-style-link) .wp-block-button__link:hover {
  transform: translate3d(0, 0, 0) scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 19, 115, 0.2);
}

/* Sekundär-Button (Outline): Hover + Fade-in */
.site-lp .wp-block-cover:first-of-type .wp-block-button.is-style-outline .wp-block-button__link {
  transition: border-color 0.3s ease-out, background-color 0.3s ease-out, transform 0.3s ease-out, box-shadow 0.3s ease-out;
  will-change: transform;
}

.site-lp .wp-block-cover:first-of-type .wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: #001373;
  background-color: rgba(0, 19, 115, 0.05);
  transform: translate3d(0, 0, 0) scale(1.02);
  box-shadow: 0 2px 8px rgba(0, 19, 115, 0.15);
}

/* === 3. Fade-in-Animationen beim Laden === */

/* Keyframes für Fade-in-Animationen */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translate3d(20px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* H1: Sanfter Fade-in */
.site-lp .wp-block-cover:first-of-type h1 {
  animation: fadeInUp 0.6s ease-out;
}

/* Subline: Sanfter Fade-in mit 0.2s Delay */
.site-lp .wp-block-cover:first-of-type .wp-block-paragraph:not(.has-small-font-size) {
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* Trust-Zeile: Sanfter Fade-in mit 0.4s Delay */
.site-lp .wp-block-cover:first-of-type .wp-block-paragraph.has-small-font-size {
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

/* Primär-Button: Fade-in mit 0.8s Delay */
.site-lp .wp-block-cover:first-of-type .wp-block-button:not(.is-style-outline):not(.is-style-link) .wp-block-button__link {
  animation: fadeInUp 0.6s ease-out 0.8s both;
}

/* Sekundär-Button: Fade-in mit 1.0s Delay */
.site-lp .wp-block-cover:first-of-type .wp-block-button.is-style-outline .wp-block-button__link {
  animation: fadeInUp 0.6s ease-out 1.0s both;
}

/* === 4. Video-Container-Verfeinerung === */

/* Video-Container: Fade-in + Slide-in von rechts */
.site-lp .wp-block-cover:first-of-type .wp-block-video {
  animation: fadeInRight 0.8s ease-out 0.5s both;
  /* border-radius wird von WordPress-Einstellungen übernommen */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
  will-change: transform;
  overflow: visible;
  position: relative;
  /* Padding für größeren visuellen Raum */
  padding: 24px;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  margin: 0 auto;
  max-width: 100%;
}

/* Sanfte Animation beim Hover über Video */
.site-lp .wp-block-cover:first-of-type .wp-block-video:hover {
  transform: translate3d(0, -8px, 0) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* Video-Element selbst - sanfte Animation */
.site-lp .wp-block-cover:first-of-type .wp-block-video video {
  /* border-radius wird von WordPress-Einstellungen übernommen */
  transition: transform 0.4s ease-out, filter 0.4s ease-out;
  will-change: transform;
  width: 100%;
  height: auto;
  display: block;
}

/* Video wird leicht vergrößert und hebt sich beim Hover */
.site-lp .wp-block-cover:first-of-type .wp-block-video:hover video {
  transform: scale(1.02);
  filter: brightness(1.05);
}

/* Video-Poster/Thumbnail - sanfte Animation */
.site-lp .wp-block-cover:first-of-type .wp-block-video img,
.site-lp .wp-block-cover:first-of-type .wp-block-video .wp-block-video__placeholder {
  transition: transform 0.4s ease-out, filter 0.4s ease-out;
  will-change: transform;
}

.site-lp .wp-block-cover:first-of-type .wp-block-video:hover img,
.site-lp .wp-block-cover:first-of-type .wp-block-video:hover .wp-block-video__placeholder {
  transform: scale(1.02);
  filter: brightness(1.05);
}

/* === Accessibility: prefers-reduced-motion respektieren === */

@media (prefers-reduced-motion: reduce) {
  .site-lp .wp-block-cover:first-of-type h1,
  .site-lp .wp-block-cover:first-of-type .wp-block-paragraph,
  .site-lp .wp-block-cover:first-of-type .wp-block-button .wp-block-button__link,
  .site-lp .wp-block-cover:first-of-type .wp-block-video,
  .site-lp .wp-block-cover:first-of-type .wp-block-video video,
  .site-lp .wp-block-cover:first-of-type .wp-block-video img {
    animation: none !important;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
  }
  
  .site-lp .wp-block-cover:first-of-type .wp-block-button .wp-block-button__link:hover,
  .site-lp .wp-block-cover:first-of-type .wp-block-video:hover,
  .site-lp .wp-block-cover:first-of-type .wp-block-video:hover video,
  .site-lp .wp-block-cover:first-of-type .wp-block-video:hover img {
    transform: none !important;
    filter: none !important;
  }
  
  /* Hintergrund-Akzente entfernt - keine Animationen mehr nötig */
}

/* ============================================
   PHASE 2: Erweiterte Animationen & Akzente
   ============================================ */

/* === 1. Stagger-Animation verfeinert === */

/* Buttons-Container: Stagger für einzelne Buttons */
.site-lp .wp-block-cover:first-of-type .wp-block-buttons .wp-block-button:nth-child(1) .wp-block-button__link {
  animation-delay: 0.8s;
}

.site-lp .wp-block-cover:first-of-type .wp-block-buttons .wp-block-button:nth-child(2) .wp-block-button__link {
  animation-delay: 0.9s;
}

.site-lp .wp-block-cover:first-of-type .wp-block-buttons .wp-block-button:nth-child(3) .wp-block-button__link {
  animation-delay: 1.0s;
}

/* === 2. Subtile Hintergrund-Akzente === */

/* Hintergrund-Akzente entfernt - komplett weißer Hintergrund */

/* Sicherstellen, dass Content über Hintergrund-Akzenten liegt */
.site-lp .wp-block-cover:first-of-type > .wp-block-cover__inner-container {
  position: relative;
  z-index: 1;
}

/* === 3. Parallax-Light (sehr subtil) === */

/* Parallax-Effekt für Hintergrund beim Scrollen */
.site-lp .wp-block-cover:first-of-type {
  will-change: transform;
  transform-style: preserve-3d;
}

/* Parallax wird via JavaScript aktiviert (optional) */
/* Hintergrund-Akzente entfernt - Parallax optional */

/* === 4. Erweiterte Hover-Effekte für Interaktivität === */

/* Hintergrund-Hover-Effekte entfernt (keine Hintergrund-Akzente mehr) */

/* === 5. Performance-Optimierung === */

/* Performance-Optimierung für Hintergrund-Akzente entfernt (keine Akzente mehr) */
/* Keyframes für entfernte Hintergrund-Akzente ebenfalls entfernt */

/* ============================================
   LISTE: Hover-Effekte für Checkmark-Liste
   ============================================ */

/* Checkmark-Liste im Hero-Bereich - Basis-Styling */
.site-lp .wp-block-cover:first-of-type .is-style-checkmark-list li {
  position: relative;
  transition: transform 0.3s ease-out, color 0.3s ease-out, background-color 0.3s ease-out;
  cursor: pointer;
  padding: 0.25em 0.5em;
  margin-left: -0.5em;
  margin-right: -0.5em;
  /* border-radius wird von WordPress-Einstellungen übernommen */
  list-style-type: none;
  padding-left: 1.8em;
}

/* Checkmark über ::before für bessere Kontrolle */
.site-lp .wp-block-cover:first-of-type .is-style-checkmark-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: currentColor;
  font-weight: bold;
  transition: color 0.3s ease-out;
}

/* Sanfte Bewegung nach rechts beim Hover */
.site-lp .wp-block-cover:first-of-type .is-style-checkmark-list li:hover {
  transform: translateX(8px);
  color: var(--lp-color-secondary, #001373);
  background-color: rgba(0, 19, 115, 0.05);
}

/* Checkmark wird dunkelblau beim Hover */
.site-lp .wp-block-cover:first-of-type .is-style-checkmark-list li:hover::before {
  color: var(--lp-color-secondary, #001373);
}

/* ============================================
   BUSINESS TARIF: Professionelle Animationen
   ============================================ */

/* Basis: Group-Block mit Border (Business Tarif Box) */
/* Selektiert Group-Blöcke mit Border und spezifischen Klassen */
.site-lp .wp-block-group.has-border-color {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Hover: Dezente Erhebung + intensiverer Schatten */
.site-lp .wp-block-group.has-border-color:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 19, 115, 0.12) !important;
}

/* Scroll-Animation: Fade-in + Slide-up beim Erscheinen */
@keyframes fadeInUpBusiness {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Business Tarif Box: Initial versteckt, wird via JS sichtbar gemacht */
.site-lp .wp-block-group.has-border-color[data-animate="business-tarif"] {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
}

/* Sichtbar nach Scroll-Trigger */
.site-lp .wp-block-group.has-border-color[data-animate="business-tarif"].is-visible {
  animation: fadeInUpBusiness 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Titel "Business Tarif": Dezenter Fade-in mit Delay */
.site-lp .wp-block-group.has-border-color h2 {
  transition: opacity 0.6s ease-out 0.2s;
}

/* Preis: Dezente Pulse-Animation (sehr subtil) */
@keyframes subtlePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

.site-lp .wp-block-group.has-border-color .has-x-large-font-size {
  display: inline-block;
  animation: subtlePulse 3s ease-in-out infinite;
  animation-delay: 1s;
}

/* Feature-Liste: Staggered Fade-in */
.site-lp .wp-block-group.has-border-color .wp-block-list li {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* Sichtbar nach Scroll-Trigger (via JS) */
.site-lp .wp-block-group.has-border-color[data-animate="business-tarif"].is-visible .wp-block-list li {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered Delay für List-Items */
.site-lp .wp-block-group.has-border-color[data-animate="business-tarif"].is-visible .wp-block-list li:nth-child(1) {
  transition-delay: 0.3s;
}
.site-lp .wp-block-group.has-border-color[data-animate="business-tarif"].is-visible .wp-block-list li:nth-child(2) {
  transition-delay: 0.4s;
}
.site-lp .wp-block-group.has-border-color[data-animate="business-tarif"].is-visible .wp-block-list li:nth-child(3) {
  transition-delay: 0.5s;
}
.site-lp .wp-block-group.has-border-color[data-animate="business-tarif"].is-visible .wp-block-list li:nth-child(4) {
  transition-delay: 0.6s;
}

/* Button: Verfeinerte Hover-Animation */
.site-lp .wp-block-group.has-border-color .wp-block-button__link {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              background-color 0.3s ease;
  will-change: transform;
}

.site-lp .wp-block-group.has-border-color .wp-block-button__link:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 16px rgba(12, 192, 223, 0.3);
}

/* Disclaimer-Text: Dezenter Fade-in */
.site-lp .wp-block-group.has-border-color .has-small-font-size {
  opacity: 0;
  transition: opacity 0.6s ease-out 0.7s;
}

.site-lp .wp-block-group.has-border-color[data-animate="business-tarif"].is-visible .has-small-font-size {
  opacity: 0.8;
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .site-lp .wp-block-group.has-border-color,
  .site-lp .wp-block-group.has-border-color .has-x-large-font-size,
  .site-lp .wp-block-group.has-border-color .wp-block-list li,
  .site-lp .wp-block-group.has-border-color .has-small-font-size {
    animation: none !important;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
  }
  
  .site-lp .wp-block-group.has-border-color:hover,
  .site-lp .wp-block-group.has-border-color .wp-block-button__link:hover {
    transform: none !important;
  }
}

/* ============================================
   DEMO-FORMULAR: Verbessertes Design
   ============================================ */

/* Formular-Container (Card-Design) */
.site-lp .site-lp-demo-form {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Fehler-Meldung */
.site-lp .site-lp-demo-form .demo-error {
  background: #fee2e2;
  border: 1px solid #dc2626;
  color: #991b1b;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.site-lp .site-lp-demo-form .demo-error ul {
  margin: 0;
  padding-left: 1.5rem;
}

/* Formular-Blöcke */
.site-lp .site-lp-demo-form .demo-form-block {
  margin-bottom: 1.5rem;
  padding-bottom: 0;
  border-bottom: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Minimal-Block (reduzierte Abstände) */
.site-lp .site-lp-demo-form .demo-form-block-minimal {
  margin-bottom: 1rem;
}

/* Block-Überschriften (nicht mehr benötigt, da keine Überschriften mehr) */
.site-lp .site-lp-demo-form .demo-block-title {
  font-family: var(--lp-font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--lp-color-secondary);
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.site-lp .site-lp-demo-form .demo-block-hint {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* Optional-Hinweis */
.site-lp .site-lp-demo-form .demo-optional {
  font-weight: normal;
  color: #6b7280;
  font-size: 0.9em;
}

/* Formular-Zeilen (2 Spalten auf Desktop) */
.site-lp .site-lp-demo-form .demo-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 100%;
}

/* Sicherstellen, dass Grid-Container nicht breiter wird als einzelne Felder */
.site-lp .site-lp-demo-form .demo-form-row .demo-form-group {
  min-width: 0; /* Verhindert Grid-Overflow */
}

@media (max-width: 768px) {
  .site-lp .site-lp-demo-form .demo-form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Formular-Gruppen */
.site-lp .site-lp-demo-form .demo-form-group {
  margin-bottom: 0.75rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.site-lp .site-lp-demo-form .demo-form-group:last-child {
  margin-bottom: 0;
}

/* Labels */
.site-lp .site-lp-demo-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--lp-color-secondary);
  font-size: 0.95rem;
}

.site-lp .site-lp-demo-form .demo-radio-group label {
  font-weight: normal;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

/* Pflichtfeld-Markierung */
.site-lp .site-lp-demo-form .required {
  color: #dc2626;
  font-weight: 600;
}

/* Input-Felder */
.site-lp .site-lp-demo-form input[type="text"],
.site-lp .site-lp-demo-form input[type="email"],
.site-lp .site-lp-demo-form input[type="tel"],
.site-lp .site-lp-demo-form select,
.site-lp .site-lp-demo-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  font-family: var(--lp-font-body);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #ffffff;
  box-sizing: border-box; /* Wichtig für korrekte Breitenberechnung */
}

.site-lp .site-lp-demo-form input[type="text"]:focus,
.site-lp .site-lp-demo-form input[type="email"]:focus,
.site-lp .site-lp-demo-form input[type="tel"]:focus,
.site-lp .site-lp-demo-form select:focus,
.site-lp .site-lp-demo-form textarea:focus {
  outline: none;
  border-color: var(--lp-color-primary);
  box-shadow: 0 0 0 3px rgba(12, 192, 223, 0.1);
}

.site-lp .site-lp-demo-form textarea {
  resize: vertical;
  min-height: 60px;
}

/* Radio-Buttons */
.site-lp .site-lp-demo-form .demo-radio-group {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.site-lp .site-lp-demo-form .demo-radio-group input[type="radio"] {
  width: auto;
  margin: 0;
  cursor: pointer;
}

/* Telefonfeld-Gruppe (mit Animation) */
.site-lp .site-lp-demo-form .demo-telefon-group {
  margin-top: 1rem;
  transition: opacity 0.2s ease;
  opacity: 1;
}

/* Einklappbarer Bereich */
.site-lp .site-lp-demo-form .demo-form-expandable {
  margin: 1rem 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.site-lp .site-lp-demo-form .demo-expand-toggle {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--lp-color-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  text-align: left;
  font-family: var(--lp-font-body);
}

.site-lp .site-lp-demo-form .demo-expand-toggle:hover {
  background: #f9fafb;
  border-color: var(--lp-color-primary);
}

/* Expand-Icon: Dunkelblau für besseren Kontrast */
.site-lp .site-lp-demo-form .demo-expand-icon {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--lp-color-secondary, #001373);
  line-height: 1;
  width: 1.2rem;
  text-align: center;
}

.site-lp .site-lp-demo-form .demo-expand-text {
  flex: 1;
}

.site-lp .site-lp-demo-form .demo-expand-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  margin-top: 0.75rem;
  padding: 0 1rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.site-lp .site-lp-demo-form .demo-expand-content[aria-hidden="false"] {
  padding: 1rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  border-top: none;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* Actions-Bereich (Datenschutz + Button) */
.site-lp .site-lp-demo-form .demo-form-actions {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.site-lp .site-lp-demo-form .demo-privacy-group {
  margin-bottom: 1rem;
}

.site-lp .site-lp-demo-form .demo-privacy-group label {
  font-weight: normal;
  font-size: 0.9rem;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.site-lp .site-lp-demo-form .demo-privacy-group input[type="checkbox"] {
  width: auto;
  margin: 0;
  margin-top: 0.2rem;
  cursor: pointer;
  flex-shrink: 0;
}

/* Datenschutz-Links: Dunkelblau für besseren Kontrast */
.site-lp .site-lp-demo-form .demo-privacy-group a {
  color: var(--lp-color-secondary, #001373);
  text-decoration: underline;
}

.site-lp .site-lp-demo-form .demo-privacy-group a:hover {
  color: var(--lp-color-primary, #0CC0DF);
}

/* Submit-Button: Dunkelblau für ausreichenden Kontrast */
.site-lp .site-lp-demo-form .demo-submit-button {
  background: var(--lp-color-secondary, #001373);
  color: #ffffff;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  font-family: var(--lp-font-heading);
}

.site-lp .site-lp-demo-form .demo-submit-button:hover {
  background: #000a5c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 19, 115, 0.2);
}

.site-lp .site-lp-demo-form .demo-submit-button:active {
  transform: translateY(0);
}

/* Submit-Hinweis */
.site-lp .site-lp-demo-form .demo-submit-hint {
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 1rem;
  margin-bottom: 0;
}

/* Responsive: Padding reduzieren auf Mobile */
@media (max-width: 768px) {
  .site-lp .site-lp-demo-form {
    padding: 1rem;
  }
  
  .site-lp .site-lp-demo-form .demo-form-block {
    margin-bottom: 1rem;
  }
  
  .site-lp .site-lp-demo-form .demo-form-actions {
    margin-top: 1rem;
    padding-top: 1rem;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .site-lp .site-lp-demo-form .demo-telefon-group,
  .site-lp .site-lp-demo-form .demo-submit-button {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
  }
  
  .site-lp .site-lp-demo-form .demo-submit-button:hover {
    transform: none !important;
  }
}

/* ============================================
   LEGAL MODALS: AGB & Datenschutz
   ============================================ */

/* Modal Overlay */
.lp-legal-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-legal-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}

/* Modal Container */
.lp-legal-modal-container {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 900px;
  max-height: 90vh;
  width: 90%;
  display: flex;
  flex-direction: column;
  z-index: 1;
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Modal Header */
.lp-legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.lp-legal-modal-title {
  font-family: var(--lp-font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--lp-color-secondary);
  margin: 0;
}

.lp-legal-modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lp-legal-modal-close:hover,
.lp-legal-modal-close:focus {
  background: #f3f4f6;
  color: var(--lp-color-secondary);
  outline: none;
}

/* Modal Content */
.lp-legal-modal-content {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  min-height: 200px;
}

.lp-legal-modal-loading {
  text-align: center;
  padding: 2rem;
  color: #6b7280;
}

.lp-legal-modal-body {
  font-family: var(--lp-font-body);
  line-height: 1.6;
  color: #374151;
}

.lp-legal-modal-body h1,
.lp-legal-modal-body h2,
.lp-legal-modal-body h3 {
  font-family: var(--lp-font-heading);
  color: var(--lp-color-secondary);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.lp-legal-modal-body h1:first-child,
.lp-legal-modal-body h2:first-child,
.lp-legal-modal-body h3:first-child {
  margin-top: 0;
}

.lp-legal-modal-body p {
  margin-bottom: 1rem;
}

.lp-legal-modal-body ul,
.lp-legal-modal-body ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

/* Legal-Modal-Links: Dunkelblau für besseren Kontrast */
.lp-legal-modal-body a {
  color: var(--lp-color-secondary, #001373);
  text-decoration: underline;
}

.lp-legal-modal-body a:hover {
  color: var(--lp-color-primary, #0CC0DF);
}

/* Modal Footer */
.lp-legal-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid #e5e7eb;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.lp-legal-modal-pdf,
.lp-legal-modal-print,
.lp-legal-modal-close-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--lp-font-body);
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: var(--lp-color-secondary);
  text-decoration: none;
  display: inline-block;
}

.lp-legal-modal-pdf:hover,
.lp-legal-modal-print:hover {
  background: var(--lp-color-primary);
  color: #ffffff;
  border-color: var(--lp-color-primary);
}

.lp-legal-modal-close-btn {
  background: var(--lp-color-secondary);
  color: #ffffff;
  border-color: var(--lp-color-secondary);
}

.lp-legal-modal-close-btn:hover {
  background: #000a5c;
  border-color: #000a5c;
}

/* Responsive */
@media (max-width: 768px) {
  .lp-legal-modal-container {
    width: 95%;
    max-height: 95vh;
  }
  
  .lp-legal-modal-header {
    padding: 1rem 1.5rem;
  }
  
  .lp-legal-modal-title {
    font-size: 1.25rem;
  }
  
  .lp-legal-modal-content {
    padding: 1.5rem;
  }
  
  .lp-legal-modal-footer {
    padding: 1rem 1.5rem;
    flex-direction: column;
  }
  
  .lp-legal-modal-pdf,
  .lp-legal-modal-print,
  .lp-legal-modal-close-btn {
    width: 100%;
    text-align: center;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .lp-legal-modal-container {
    animation: none;
  }
  
  .lp-legal-modal-pdf,
  .lp-legal-modal-print,
  .lp-legal-modal-close-btn {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  }
}

/* ============================================
   STICKY HEADER & NAVIGATION
   ============================================ */

/* Sticky Header: Direkt auf header Element */
/* Einfachster Ansatz - keine Klassen, kein JavaScript */
.site-lp header {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Navigation: Ruhiges Design, keine Animationen */
.site-lp .wp-block-navigation {
  font-family: var(--lp-font-heading);
}

.site-lp .wp-block-navigation a {
  color: var(--lp-color-secondary, #001373);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  padding: 0.5rem 0.75rem;
}

.site-lp .wp-block-navigation a:hover {
  color: var(--lp-color-primary, #0CC0DF);
}

/* Scroll-Margin für Sprungmarken: Überschriften werden nicht unter Header versteckt */
.site-lp h1[id],
.site-lp h2[id],
.site-lp h3[id],
.site-lp h4[id],
.site-lp h5[id],
.site-lp h6[id],
.site-lp [id] {
  scroll-margin-top: 80px;
}

/* Spezifische IDs für Navigation (falls vorhanden) */
.site-lp #start,
.site-lp #funktionsweise,
.site-lp #funktionen,
.site-lp #preise,
.site-lp #demo,
.site-lp #faq {
  scroll-margin-top: 80px;
}

