/*
Theme Name: Vergleicho
Theme URI: https://vergleicho.ch
Author: Dev Mizan
Author URI: https://devmizan.com
Description: Vergleicho insurance comparison homepage theme. German content, Inter font, panda loading overlay.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vergleicho
*/

/* ==========================================================================
   CSS Variables (color palette)
   ========================================================================== */
:root {
  --vergleicho-primary: #54C9A3;
  --vergleicho-secondary: #c84869;
  --vergleicho-font: #000000;
  --vergleicho-dark-grey: #DEDEDE;
  --vergleicho-light-grey: #F7F7F7;
  --vergleicho-dark-blue: #152044;
  --vergleicho-footer-bar: #0a58e6;
  --vergleicho-white: #ffffff;
  --vergleicho-btn: #c84668;
  --vergleicho-btn-hover: #a83a54;
}

/* ==========================================================================
   Reset / Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--vergleicho-font);
  background: var(--vergleicho-white);
  margin: 0;
  line-height: 1.6;
  font-size: 16px;
}

p {
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* ==========================================================================
   Scroll animations
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .vergleicho-animate,
  .vergleicho-animate-in,
  .vergleicho-hero-animate {
    opacity: 1 !important;
    transform: none !important;
  }

  .vergleicho-hero-section.vergleicho-hero-ready .vergleicho-hero-animate {
    opacity: 1;
  }
}

/* .vergleicho-animate {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.vergleicho-animate-in {
  opacity: 1;
  transform: translateY(0);
} */

/* Stagger delays for grid/card items */
.vergleicho-section-versicherungen .vergleicho-service-col:nth-child(1) .vergleicho-iconbox-block { transition-delay: 0s; }
.vergleicho-section-versicherungen .vergleicho-service-col:nth-child(2) .vergleicho-iconbox-block { transition-delay: 0.08s; }
.vergleicho-section-versicherungen .vergleicho-service-col:nth-child(3) .vergleicho-iconbox-block { transition-delay: 0.16s; }
.vergleicho-section-versicherungen .vergleicho-service-col:nth-child(4) .vergleicho-iconbox-block { transition-delay: 0.24s; }
.vergleicho-section-versicherungen .vergleicho-service-col:nth-child(5) .vergleicho-iconbox-block { transition-delay: 0.32s; }
.vergleicho-section-versicherungen .vergleicho-service-col:nth-child(6) .vergleicho-iconbox-block { transition-delay: 0.4s; }

.vergleicho-section-how .vergleicho-step:nth-child(1) { transition-delay: 0s; }
.vergleicho-section-how .vergleicho-step:nth-child(2) { transition-delay: 0.1s; }
.vergleicho-section-how .vergleicho-step:nth-child(3) { transition-delay: 0.2s; }

.vergleicho-section-testimonials .vergleicho-testimonial-card:nth-child(1) { transition-delay: 0s; }
.vergleicho-section-testimonials .vergleicho-testimonial-card:nth-child(2) { transition-delay: 0.08s; }
.vergleicho-section-testimonials .vergleicho-testimonial-card:nth-child(3) { transition-delay: 0.16s; }
.vergleicho-section-testimonials .vergleicho-testimonial-card:nth-child(4) { transition-delay: 0.24s; }

.vergleicho-posts-grid .vergleicho-post-card:nth-child(1) { transition-delay: 0s; }
.vergleicho-posts-grid .vergleicho-post-card:nth-child(2) { transition-delay: 0.1s; }

/* Hero section – page-load animations (0.5s delay, staggered) */
.vergleicho-hero-animate {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.vergleicho-hero-section.vergleicho-hero-ready .vergleicho-hero-animate {
  opacity: 1;
  transform: translateY(0);
}

.vergleicho-hero-section .vergleicho-hero-title { transition-delay: 0s; }
.vergleicho-hero-section .vergleicho-hero-desc { transition-delay: 0.1s; }
.vergleicho-hero-section .vergleicho-hero-btn { transition-delay: 0.2s; }
.vergleicho-hero-section .vergleicho-hero-reviews { transition-delay: 0.3s; }
.vergleicho-hero-section .vergleicho-hero-image { transition-delay: 0.15s; }
.vergleicho-hero-section .vergleicho-hero-funfact-1 { transition-delay: 0.35s; }
.vergleicho-hero-section .vergleicho-hero-funfact-2 { transition-delay: 0.45s; }
.vergleicho-hero-section .vergleicho-hero-funfact-3 { transition-delay: 0.55s; }
.vergleicho-hero-section .vergleicho-hero-decoration { transition-delay: 0.25s; }

/* ==========================================================================
   Header & Top bar
   ========================================================================== */
.vergleicho-header {
  position: relative;
  z-index: 100;
}

.vergleicho-header:not(:has(.vergleicho-hero-section)) {
  min-height: 72px;
}

.vergleicho-topbar {
  background: var(--vergleicho-light-grey);
  padding: 0.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.vergleicho-topbar-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.vergleicho-topbar-links a:hover {
  color: var(--vergleicho-primary);
}

.vergleicho-topbar-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Main nav – transparent by default, background on scroll */
.vergleicho-nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  padding: 1.25rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  justify-items: center;
  gap: 1rem;
  z-index: 100;
  transition: background 0.25s ease;
}

.vergleicho-nav-wrap.is-scrolled {
  background: linear-gradient(180deg,#061f4a,#0a2a63);
}

.vergleicho-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: background 0.2s;
}

.vergleicho-nav-toggle:hover {
  background: var(--vergleicho-white);
}

.vergleicho-nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--vergleicho-dark-blue);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.vergleicho-nav-wrap.is-menu-open .vergleicho-nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.vergleicho-nav-wrap.is-menu-open .vergleicho-nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.vergleicho-nav-wrap.is-menu-open .vergleicho-nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Desktop: nav-menu uses display:contents so logo, nav, CTA become grid children */
@media (min-width: 993px) {
  .vergleicho-nav-menu {
    display: contents;
  }

  .vergleicho-nav-wrap .vergleicho-logo-link {
    justify-self: start;
    grid-column: 1;
  }

  .vergleicho-nav-wrap .vergleicho-nav-container {
    justify-self: center;
    grid-column: 2;
  }

  .vergleicho-nav-wrap .vergleicho-nav-right {
    justify-self: end;
    grid-column: 3;
  }
}

.vergleicho-logo {
  height: 40px;
  width: auto;
  display: block;
}

.vergleicho-nav-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 9999px;
  padding: 0.5rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.vergleicho-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.vergleicho-nav a,
.menu-main-menu a {
  color: var(--vergleicho-dark-blue);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: capitalize;
}

.vergleicho-nav a:hover {
  color: var(--vergleicho-primary);
}

.vergleicho-nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Frontend buttons – unified size, radius, font; normal #c84668, hover darker */
.vergleicho-btn,
.vergleicho-btn--header-cta,
.vergleicho-btn--primary,
.vergleicho-btn--dark,
.vergleicho-hero-btn,
.vergleicho-btn-pill,
.vergleicho-btn--continue,
.vergleicho-form .vergleicho-btn,
.vergleicho-form input[type="submit"],
.vergleicho-form button[type="submit"],
.vergleicho-footer-newsletter-submit {
  padding: 0.75rem 1.5rem !important;
  border-radius: 8px !important;
  font-size: 1rem !important;
  font-family: inherit !important;
  font-weight: 600 !important;
  min-height: 48px;
  box-sizing: border-box;
}

/* Header CTA */
.vergleicho-btn--header-cta {
  background: var(--vergleicho-btn);
  color: var(--vergleicho-white);
  letter-spacing: 0.03em;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.vergleicho-btn--header-cta:hover {
  background: var(--vergleicho-btn-hover);
  opacity: 1;
}

.vergleicho-btn--header-cta svg {
  flex-shrink: 0;
}

.vergleicho-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.vergleicho-btn:hover {
  opacity: 1;
}

.vergleicho-btn--primary {
  background: var(--vergleicho-btn);
  color: var(--vergleicho-white);
}

.vergleicho-btn--primary:hover {
  background: var(--vergleicho-btn-hover);
}

.vergleicho-btn--dark {
  background: var(--vergleicho-btn);
  color: var(--vergleicho-white);
}

.vergleicho-btn--dark:hover {
  background: var(--vergleicho-btn-hover);
}

/* ==========================================================================
   Hero Section (business consulting style)
   ========================================================================== */
.vergleicho-hero-section {
  background: linear-gradient(180deg,#061f4a,#0a2a63);
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

.vergleicho-hero-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.vergleicho-hero-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
  justify-content: space-between;
}

.vergleicho-hero-col {
  padding: 0 15px;
}

.vergleicho-hero-col-content {
  width: 46%;
  display: flex;
  align-content: center;
  justify-content: center;
}

.vergleicho-hero-col-image {
  width: 50%;
}

.vergleicho-hero-content-inner {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vergleicho-hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #fff;
}

.vergleicho-hero-title mark {
  background-color: transparent;
  color: var(--vergleicho-btn);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.vergleicho-hero-desc {
  font-size: 18px;
  color: #fff;
  margin-bottom: 35px;
  line-height: 1.6;
}

/* Hero CTA – same width as other buttons (do not stretch) */
.vergleicho-hero-section .vergleicho-btn-pill,
.vergleicho-hero-content-inner .vergleicho-btn-pill {
  align-self: flex-start;
  width: auto;
}

/* Hero CTA button – same button color #c84668 as rest of site */
.vergleicho-hero-btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  background-color: var(--vergleicho-btn);
  color: var(--vergleicho-white);
  text-decoration: none;
  padding: 0;
  overflow: hidden;
  margin-bottom: 40px;
  transition: background 0.2s, transform 0.3s, box-shadow 0.3s;
  border: none;
  cursor: pointer;
}

.vergleicho-hero-btn:hover {
  background: var(--vergleicho-btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(200, 70, 104, 0.3);
}

.vergleicho-hero-btn-label {
  font-weight: 600;
  font-size: 1rem;
}

.vergleicho-hero-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  position: relative;
}

.vergleicho-hero-btn-icon svg {
  position: absolute;
  width: 16px;
  height: 16px;
}

.vergleicho-hero-btn-icon svg:first-child {
  opacity: 1;
  transition: all 0.3s;
}

.vergleicho-hero-btn-icon .vergleicho-hero-btn-icon-hover,
.vergleicho-hero-btn-icon svg:last-child {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
}

.vergleicho-hero-btn:hover .vergleicho-hero-btn-icon svg:first-child {
  opacity: 0;
  transform: translateY(-10px);
}

.vergleicho-hero-btn:hover .vergleicho-hero-btn-icon .vergleicho-hero-btn-icon-hover,
.vergleicho-hero-btn:hover .vergleicho-hero-btn-icon svg:last-child {
  opacity: 1;
  transform: translateY(0);
}

/* Google reviews block */
.vergleicho-hero-reviews {
  display: flex;
  align-items: center;
  gap: 15px;
}

.vergleicho-hero-reviews-logo img,
.vergleicho-hero-reviews-logo svg {
  width: 122px;
  height: 41px;
}

.vergleicho-hero-reviews-info {
  display: flex;
  flex-direction: column;
}

.vergleicho-hero-rating {
  display: flex;
  list-style: none;
  gap: 2px;
  margin: 0 0 5px;
  padding: 0;
}

.vergleicho-hero-rating .vergleicho-star {
  color: #FFB800;
  font-size: 16px;
}

.vergleicho-hero-review-counter {
  font-size: 14px;
  color: #fff;
}

.vergleicho-hero-review-counter b {
  color: #fff;
}

/* Hero image + funfact cards */
.vergleicho-hero-image-wrap {
  position: relative;
  margin-top: 30px;
}

.vergleicho-hero-image-wrap .vergleicho-play-btn-wrap {
  z-index: 3;
}

.vergleicho-hero-image {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Hero video modal */
.vergleicho-hero-video-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.vergleicho-hero-video-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.vergleicho-hero-video-modal[hidden] {
  display: none !important;
}
.vergleicho-hero-video-modal:not([hidden]).is-open {
  display: flex !important;
}
.vergleicho-hero-video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  cursor: pointer;
}
.vergleicho-hero-video-modal-inner {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.vergleicho-hero-video-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s ease;
  z-index: 2;
}
.vergleicho-hero-video-modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
}
.vergleicho-hero-video-modal-content {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.vergleicho-hero-video-modal-content iframe,
.vergleicho-hero-video-modal-content video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.vergleicho-hero-funfact {
  position: absolute;
  background: #fff;
  border-radius: 999px;
  padding: 12px 20px 12px 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 265px;
}

.vergleicho-hero-funfact-1 {
  bottom: 40px;
  left: -30px;
}

.vergleicho-hero-funfact-2 {
  top: 40px;
  left: -30px;
}

.vergleicho-hero-funfact-3 {
  top: 50%;
  transform: translateY(-50%);
  right: -30px;
}

.vergleicho-hero-funfact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vergleicho-hero-funfact-1 .vergleicho-hero-funfact-icon {
  background-color: #38B44A;
}

.vergleicho-hero-funfact-2 .vergleicho-hero-funfact-icon {
  background-color: #FFD600;
}

.vergleicho-hero-funfact-3 .vergleicho-hero-funfact-icon {
  background-color: var(--vergleicho-primary);
}

.vergleicho-hero-funfact-icon svg {
  width: 24px;
  height: 24px;
  color: #333;
  stroke: #333;
}

.vergleicho-hero-funfact-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.vergleicho-hero-funfact-title {
  font-size: 13px;
  font-weight: 500;
  color: #6C757D;
  margin: 0;
  line-height: 1.2;
  order: 1;
}

.vergleicho-hero-funfact-value {
  display: flex;
  align-items: baseline;
  font-size: 28px;
  font-weight: 700;
  color: #000;
  line-height: 1.1;
  order: 2;
}



/* Decorative image */
.vergleicho-hero-decoration {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40%;
  z-index: 1;
  pointer-events: none;
}

.vergleicho-hero-decoration img {
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Sections (common)
   ========================================================================== */
.vergleicho-section {
  padding: 4rem 2rem;
  max-width: 1360px;
  margin: 0 auto;
}

.vergleicho-section-title {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 0.5rem;
}

.vergleicho-section-subtitle {
  text-align: center;
  margin: 0 0 2rem;
  color: var(--vergleicho-font);
  opacity: 0.85;
}

/* Partners – logo marquee (auto-scroll), contained width */
.vergleicho-section-partners {
  background: var(--vergleicho-white);
  max-width: 1360px;
  margin: 0 auto;
  padding: 4rem 20px;
}

.vergleicho-partners-heading {
  max-width: 1360px;
  margin: 0 auto 2rem;
  padding: 0 20px;
  text-align: center;
}

.vergleicho-partners-marquee {
  overflow: hidden;
  width: 100%;
  user-select: none;
}

.vergleicho-partners-marquee-wrap {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  animation: vergleicho-marquee-left 24s linear infinite;
}

.vergleicho-partners-marquee-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 3rem;
  padding: 0 2rem;
  flex-shrink: 0;
}

.vergleicho-partner-logo-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vergleicho-partner-logo-img {
  height: 50px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  opacity: 0.75;
  filter: grayscale(30%);
  transition: opacity 0.2s;
}

.vergleicho-partner-logo-item:hover .vergleicho-partner-logo-img {
  opacity: 1;
  filter: grayscale(0);
}

@keyframes vergleicho-marquee-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .vergleicho-partners-marquee-wrap {
    animation-duration: 80s;
  }
}

/* Wie funktionierts */
.vergleicho-section-how {
  background: var(--vergleicho-light-grey);
  max-width: none;
  width: 100%;
  padding: 4rem 20px;
}

.vergleicho-section-how-inner {
  max-width: 1360px;
  margin: 0 auto;
}

.vergleicho-section-how .vergleicho-section-title {
  color: #000;
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
}

.vergleicho-how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-top: 2rem;
}

.vergleicho-how-video {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--vergleicho-dark-grey);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.vergleicho-how-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vergleicho-play-btn-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vergleicho-play-btn-ring {
  position: absolute;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid rgba(10, 43, 109, 0.35);
  animation: vergleicho-play-pulse 2s ease-out infinite;
  pointer-events: none;
}

.vergleicho-play-btn-wrap:hover .vergleicho-play-btn-ring {
  border-color: rgba(10, 43, 109, 0.5);
  animation-duration: 1.2s;
}

@keyframes vergleicho-play-pulse {
  0% {
    transform: scale(0.85);
    opacity: 1;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.vergleicho-play-btn {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--vergleicho-dark-blue);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(10, 43, 109, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.vergleicho-play-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 28px rgba(10, 43, 109, 0.45);
}

.vergleicho-play-btn svg {
  margin-left: 4px;
}

/* Hero play button: stay centered, slide in after 2s */
.vergleicho-hero-section .vergleicho-play-btn-wrap {
  opacity: 0;
  transform: translate(-50%, -50%) translateY(16px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.vergleicho-hero-section.vergleicho-hero-ready .vergleicho-play-btn-wrap {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
  transition-delay: 1s;
}

/* Video popup modal */
.vergleicho-video-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.vergleicho-video-popup.is-open {
  opacity: 1;
  visibility: visible;
}

.vergleicho-video-popup[hidden] {
  display: none !important;
}

.vergleicho-video-popup:not([hidden]).is-open {
  display: flex !important;
}

.vergleicho-video-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  cursor: pointer;
}

.vergleicho-video-popup-inner {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.vergleicho-video-popup-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 36px;
  height: 36px;
  border: none;
  background: #fff;
  color: #333;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  padding: 0;
  transition: background 0.2s, color 0.2s;
}

.vergleicho-video-popup-close:hover {
  background: #f0f0f0;
  color: #000;
}

.vergleicho-video-popup-iframe-wrap {
  position: absolute;
  inset: 0;
}

.vergleicho-video-popup-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.vergleicho-video-popup-iframe-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

.vergleicho-steps-wrap {
  position: relative;
}

.vergleicho-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

/* Dotted line connecting icons – runs through icon centers so shadow borders touch */
.vergleicho-steps-wrap::before {
  content: '';
  position: absolute;
  left: 35px;
  top: 48px;
  bottom: 48px;
  width: 0;
  border-left: 2px dotted #c5d0dc;
  z-index: 0;
}

.vergleicho-step {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 3.25rem;
  position: relative;
  z-index: 1;
}

.vergleicho-step:last-child {
  margin-bottom: 0;
}

.vergleicho-step-icon-wrap {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: 12px;
  background-color: #c84668;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vergleicho-step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.vergleicho-step-content {
  flex: 1;
}

.vergleicho-step h3 {
  font-size: 24px;
  line-height: 32px;
  margin: 0 0 8px;
  font-weight: 700;
  color: #000;
}

.vergleicho-step p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #6C757D;
}

/* Versicherungen – insurance services (reference style) */
.vergleicho-section-versicherungen {
  background: linear-gradient(180deg,#061f4a,#0a2a63);
  padding: 80px 0;
  position: relative;
  max-width: none;
  width: 100%;
}

.vergleicho-versicherungen-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 20px;
}

.vergleicho-heading-block {
  text-align: center;
  margin-bottom: 60px;
}

.vergleicho-heading-text {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
  margin: 0 0 15px;
}

.vergleicho-section-versicherungen .vergleicho-heading-text {
  color: #fff;
}

.vergleicho-heading-description {
  font-size: 18px;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.5;
}

.vergleicho-section-versicherungen .vergleicho-heading-description {
  color: #fff;
}

.vergleicho-business-services {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.vergleicho-service-col {
  width: 33.3333%;
  padding: 0 15px;
  margin-bottom: 30px;
}

.vergleicho-iconbox-block {
  background-color: #fff;
  border-radius: 12px;
  padding: 30px;
  height: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vergleicho-iconbox-block:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.vergleicho-iconbox-icon {
  width: 70px;
  height: 70px;
  background-color: #f0f7ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.vergleicho-iconbox-icon svg {
  width: 40px;
  height: 40px;
}

.vergleicho-iconbox-content h3,
.vergleicho-iconbox-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  text-transform: capitalize;
  margin: 0 0 15px;
}

.vergleicho-iconbox-content h3 a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.3s;
}

.vergleicho-iconbox-content h3 a:hover {
  color: var(--vergleicho-primary);
}

/* Homepage insurance cards - full card links to lead form */
.vergleicho-home-insurance-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.vergleicho-home-insurance-link:hover {
  color: inherit;
}

.vergleicho-iconbox-content p {
  color: #666;
  line-height: 1.6;
  font-size: 16px;
  margin: 0;
}
.vergleicho-iconbox-cta {
  display: inline-block;
  margin-top: 12px;
  color: var(--vergleicho-btn);
  text-decoration: underline;
  font-weight: 600;
}

.vergleicho-mb-0 {
  margin-bottom: 0;
}

/* Insurance icon tints (vergleicho- with o in section modifiers) */
.vergleicho-insurance-icon-1 .vergleicho-iconbox-icon,
.vergleicho-insurance-icon-4 .vergleicho-iconbox-icon,
.vergleicho-insurance-icon-2 .vergleicho-iconbox-icon,
.vergleicho-insurance-icon-5 .vergleicho-iconbox-icon,
.vergleicho-insurance-icon-3 .vergleicho-iconbox-icon,
.vergleicho-insurance-icon-6 .vergleicho-iconbox-icon {
  background-color: #c84668;
}

/* Versicherungen CTA – pill button */
.vergleicho-versicherungen-cta {
  text-align: center;
  margin-top: 40px;
}

.vergleicho-btn-pill {
  display: inline-flex;
  align-items: center;
  background-color: var(--vergleicho-btn);
  color: var(--vergleicho-white);
  text-decoration: none;
  overflow: hidden;
  transition: background 0.2s, transform 0.3s, box-shadow 0.3s;
  border: none;
}

.vergleicho-btn-pill:hover {
  background: var(--vergleicho-btn-hover);
  color: var(--vergleicho-white);
}

.vergleicho-btn-pill .vergleicho-btn-label {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  font-weight: 600;
}

.vergleicho-btn-pill .vergleicho-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.15);
}

.vergleicho-btn-icon svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
}



/* Testimonials */
.vergleicho-section-testimonials {
  background: linear-gradient(180deg,#061f4a,#0a2a63);
  padding: 4rem;
  margin-top: 100px;
  border-radius: 50px;
  margin-bottom: 100px;
}

.vergleicho-section-testimonials .vergleicho-section-title {
  color: var(--vergleicho-white);
}

.vergleicho-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1360px;
  margin: 2rem auto 0;
}

.vergleicho-testimonial-card {
  background: var(--vergleicho-white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.vergleicho-testimonial-stars {
  color: #f5a623;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.vergleicho-testimonial-text {
  font-size: 16px;
  margin-bottom: 1rem;
  font-style: italic;
  font-weight: 600;
}

.vergleicho-testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.vergleicho-testimonial-author > div {
  display: flex;
  flex-direction: column;
}

.vergleicho-testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--vergleicho-dark-grey);
  object-fit: cover;
}

.vergleicho-testimonial-name {
  font-weight: 600;
  font-size: 18px;
}

.vergleicho-testimonial-role {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Krankenkassenprämien - styled like "Why Partner with Us" */
.vergleicho-section-premium {
  background: #ffffff;
  padding: 5rem 2rem;
  margin-top: 100px;
  margin-bottom: 100px;
  border-radius: 24px;
}

.vergleicho-premium-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1360px;
  margin: 0 auto;
}

.vergleicho-premium-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: #0F1C3F;
  margin: 0 0 1.5rem;
}

.vergleicho-premium-content p {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  margin: 0 0 1.25rem;
}

.vergleicho-premium-visual {
  position: relative;
}

.vergleicho-premium-visual img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.vergleicho-premium-badge {
  position: absolute;
  bottom: 1.5rem;
  left: -9.5rem;
  background: #fff;
  border-radius: 999px;
  padding: 12px 20px 12px 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 280px;
}

.vergleicho-premium-badge span[aria-hidden="true"] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  background-color: #FFD600;
}

.vergleicho-premium-badge span[aria-hidden="true"] svg {
  width: 24px;
  height: 24px;
  color: #333;
  stroke: #333;
}

.vergleicho-premium-badge-text {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.2;
}

.vergleicho-premium-badge-text > span {
  font-size: 13px;
  font-weight: 500;
  color: #6C757D;
  margin: 0;
  line-height: 1.2;
}

.vergleicho-premium-badge-highlight {
  display: flex;
  align-items: baseline;
  font-size: 28px;
  font-weight: 700;
  color: #000;
  line-height: 1.1;
}

/* Aktuelles – Explore Our Latest Perspectives design */
.vergleicho-section-aktuelles {
  position: relative;
  background: linear-gradient(180deg,#061f4a,#0a2a63);
  padding: 5rem 2rem;
  margin-top: 100px;
  margin-bottom: 100px;
  border-radius: 24px;
  overflow: hidden;
}

.vergleicho-aktuelles-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.vergleicho-aktuelles-title {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 0.75rem;
}

.vergleicho-aktuelles-subtitle {
  color: #fff;
  font-size: 1.125rem;
  text-align: center;
  margin: 0 0 3rem;
}

.vergleicho-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.vergleicho-post-card {
  position: relative;
  min-height: 320px;
  border-radius: 28px;
  overflow: visible;
  transition: transform 0.3s, box-shadow 0.3s;
}

.vergleicho-post-card:hover {
  transform: translateY(-4px);
}

.vergleicho-post-card-link {
  display: flex;
  align-items: center;
  min-height: 320px;
  text-decoration: none;
  color: inherit;
}

.vergleicho-post-card-body {
  flex: 0 0 42%;
  height: 200px;
  background: #ffffff;
  padding: 2rem 2.25rem;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  z-index: 2;
  margin: 1.25rem;
  margin-right: -1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.vergleicho-post-card-image-wrap {
  flex: 1;
  min-width: 0;
  min-height: 320px;
  border-radius: 24px;
  overflow: hidden;
  margin: 1.25rem;
  margin-left: -1.5rem;
  z-index: 1;
}

.vergleicho-post-card img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

.vergleicho-post-card-placeholder {
  width: 100%;
  height: 100%;
  min-height: 320px;
  background: linear-gradient(135deg, #e8f4f8 0%, #d4e8f0 100%);
}

.vergleicho-post-category {
  font-size: 0.875rem;
  color: #0F1C3F;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.vergleicho-post-card h3 {
  margin: 0 0 0.75rem;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: #0F1C3F;
}

.vergleicho-post-card:hover h3 {
  color: var(--vergleicho-primary);
}

.vergleicho-post-meta {
  font-size: 1rem;
  color: #555555;
  margin: 0;
}

/* Contact form */
.vergleicho-section-contact {
  position: relative;
  padding: 0;
  max-width: none;
  overflow: hidden;
}

.vergleicho-contact-parallax-bg {
  position: absolute;
  inset: 0;
  background: url('https://wp.xpressbuddy.com/techco/wp-content/uploads/2024/06/bg_image_5-2-scaled.webp') center center / cover no-repeat fixed;
  z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
  .vergleicho-contact-parallax-bg {
    background-attachment: scroll;
  }
}

.vergleicho-contact-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 4rem 2rem;
}

.vergleicho-contact-form-wrap {
  background: linear-gradient(180deg,#061f4a,#0a2a63);
  padding: 3.5rem;
  max-width: 720px;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vergleicho-contact-form-wrap h2 {
  color: var(--vergleicho-white);
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.vergleicho-contact-form-wrap > p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1.5rem;
  font-size: 1.125rem;
}

.vergleicho-form-message {
  padding: 0.875rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.vergleicho-form-message--success {
  background: rgba(255, 255, 255, 0.95);
  color: #0a6e4a;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.vergleicho-form-message--error {
  background: rgba(220, 53, 69, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.vergleicho-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
  margin-bottom: 1rem;
}

.vergleicho-form-field {
  display: flex;
  flex-direction: column;
}

.vergleicho-form-field input,
.vergleicho-form-field select {
  margin-bottom: 0;
}

.vergleicho-form label {
  display: block;
  color: var(--vergleicho-white);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  text-transform: capitalize;
}

.vergleicho-form input,
.vergleicho-form select,
.vergleicho-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9375rem;
  background: var(--vergleicho-white);
  color: var(--vergleicho-font);
}

.vergleicho-form textarea {
  min-height: 120px;
  resize: vertical;
}

.vergleicho-form .vergleicho-btn,
.vergleicho-form input[type="submit"],
.vergleicho-form button[type="submit"] {
  margin-top: 0.5rem;
  background: var(--vergleicho-btn);
  color: var(--vergleicho-white);
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.vergleicho-form .vergleicho-btn:hover,
.vergleicho-form input[type="submit"]:hover,
.vergleicho-form button[type="submit"]:hover {
  background: var(--vergleicho-btn-hover);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.vergleicho-footer {
  background: linear-gradient(180deg,#061f4a,#0a2a63);
  color: var(--vergleicho-white);
}

/* Top: Engagement CTA + Follow Us */
.vergleicho-footer-engagement {
  padding: 4rem 2rem 0rem;
  max-width: 1360px;
  margin: 0 auto;
}

.vergleicho-footer-engagement-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.vergleicho-footer-cta {
  flex: 1;
  min-width: 280px;
}

.vergleicho-footer-cta-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--vergleicho-white);
}

.vergleicho-footer-cta-sub {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.7);
}

.vergleicho-footer-follow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.vergleicho-footer-follow-label {
  font-size: 1rem;
  color: var(--vergleicho-white);
}

.vergleicho-footer-follow-dash {
  color: rgba(255, 255, 255, 0.6);
}

.vergleicho-footer-social {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.vergleicho-footer-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--vergleicho-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: background 0.2s, border-color 0.2s;
}

.vergleicho-footer-social a:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--vergleicho-white);
}

.vergleicho-footer-social a svg {
  display: block;
  flex-shrink: 0;
}

/* Middle: 4 columns */
.vergleicho-footer-columns {
  padding: 3.5rem 2rem 4rem;
  max-width: 1360px;
  margin: 0 auto;
}

.vergleicho-footer-columns-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
}

.vergleicho-footer-contact-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.vergleicho-footer-col h4 {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--vergleicho-white);
}

.vergleicho-footer-col-content {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.vergleicho-footer-col-content a {
  color: inherit;
}

.vergleicho-footer-col-content a:hover {
  color: var(--vergleicho-white);
}

.vergleicho-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vergleicho-footer-col ul li {
  margin-bottom: 0.75rem;
}

.vergleicho-footer-col ul li:last-child {
  margin-bottom: 0;
}

.vergleicho-footer-col ul a {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.vergleicho-footer-col ul a:hover {
  color: var(--vergleicho-white);
}

.vergleicho-footer-col{
  text-transform: capitalize;
}

.vergleicho-footer-logo-link {
  display: inline-block;
  margin-bottom: 1rem;
}

.vergleicho-footer-logo {
  height: 36px;
  width: auto;
}

.vergleicho-footer-col--about .vergleicho-footer-col-content {
  margin: 0;
}

.vergleicho-footer-col--about .vergleicho-footer-social {
  margin-top: 1.25rem;
}

.vergleicho-footer-col--about .vergleicho-footer-lang-block {
  margin-top: 1.5rem;
}

.vergleicho-footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vergleicho-footer-nav li {
  margin-bottom: 0.75rem;
}

.vergleicho-footer-nav li:last-child {
  margin-bottom: 0;
}

.vergleicho-footer-nav a {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.vergleicho-footer-nav a:hover {
  color: var(--vergleicho-white);
}

/* Contact column: design guide colors (no white background) */
.vergleicho-footer-col--contact .vergleicho-footer-col-content {
  margin: 0;
}

.vergleicho-footer-contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.vergleicho-footer-contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.vergleicho-footer-contact-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.vergleicho-footer-contact-badge {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  background: var(--vergleicho-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vergleicho-footer-contact-badge svg {
  width: 22px;
  height: 22px;
  color: var(--vergleicho-white);
  stroke: currentColor;
  fill: none;
}

.vergleicho-footer-contact-text {
  flex: 1;
  min-width: 0;
}

.vergleicho-footer-contact-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.25rem;
}

.vergleicho-footer-contact-detail {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--vergleicho-white);
  font-weight: 500;
  line-height: 1.4;
}

.vergleicho-footer-contact-detail a {
  color: var(--vergleicho-white);
  text-decoration: none;
}

.vergleicho-footer-contact-detail a:hover {
  color: var(--vergleicho-primary);
}


/* Footer column: Newsletter + Language dropdown */
.vergleicho-footer-col--newsletter-lang {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.vergleicho-footer-newsletter-block h4,
.vergleicho-footer-lang-block h4 {
  margin: 0 0 1rem;
}

.vergleicho-footer-newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 320px;
}

.vergleicho-footer-newsletter-input {
  flex: 1;
  min-width: 180px;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  outline: none;
}

.vergleicho-footer-newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.vergleicho-footer-newsletter-input:hover,
.vergleicho-footer-newsletter-input:focus {
  border-color: rgba(255, 255, 255, 0.7);
}

.vergleicho-footer-newsletter-submit {
  color: #fff;
  background: var(--vergleicho-btn);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.vergleicho-footer-newsletter-submit:hover {
  background: var(--vergleicho-btn-hover);
}

.vergleicho-footer-lang-block .vergleicho-lang-select {
  width: 100%;
  max-width: 180px;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

.vergleicho-footer-lang-block .vergleicho-lang-select:hover,
.vergleicho-footer-lang-block .vergleicho-lang-select:focus {
  border-color: rgba(255, 255, 255, 0.7);
  outline: none;
}

.vergleicho-footer-lang-block .vergleicho-lang-select option {
  color: var(--vergleicho-dark-blue);
  background: var(--vergleicho-white);
}

.vergleicho-footer-newsletter-link {
  color: rgba(255, 255, 255, 0.9);
}

.vergleicho-footer-newsletter-link:hover {
  color: var(--vergleicho-white);
}

/* Bottom: Copyright bar */
.vergleicho-footer-bar {
  background: var(--vergleicho-btn);
  padding: 1.25rem 2rem;
}

.vergleicho-footer-bar-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--vergleicho-white);
}

.vergleicho-footer-copy,
.vergleicho-footer-credit {
  margin: 0;
}

.vergleicho-footer-credit a {
  color: var(--vergleicho-white);
  text-decoration: underline;
}

.vergleicho-footer-credit a:hover {
  opacity: 0.9;
}

/* ==========================================================================
   Loading overlay
   ========================================================================== */
.vergleicho-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(21, 32, 68, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.vergleicho-loading-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.vergleicho-loading-overlay img {
  max-width: 200px;
  max-height: 200px;
  margin-bottom: 1rem;
}

.vergleicho-loading-overlay p {
  color: var(--vergleicho-white);
  font-size: 0.9375rem;
  margin: 0;
}

/* SweetAlert2 OTP popup – above lead modal (modal is 100000) */
.swal2-container {
  z-index: 100002 !important;
}

.swal2-popup {
  max-width: 28em;
}

.swal2-title {
  font-size: 1.4rem;
  line-height: 1.4;
  padding: 0.6em 1em 0;
}

.swal2-html-container {
  margin: 0.5em 1em 1em;
  padding: 0 0 0.5em;
}

.swal2-actions {
  margin: 1em 0 0;
  gap: 0.5em;
  flex-wrap: wrap;
}

.swal2-actions .swal2-styled {
  margin: 0.25em;
  padding: 0.5em 1.2em;
  font-size: 1rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
  .vergleicho-nav-wrap {
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
  }

  .vergleicho-nav-toggle {
    display: flex;
    grid-column: 2;
  }

  .vergleicho-nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 1.5rem;
    background: var(--vergleicho-white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 0 0 16px 16px;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    grid-column: 1 / -1;
  }

  .vergleicho-nav-wrap.is-menu-open .vergleicho-nav-menu {
    display: flex;
  }

  .vergleicho-nav-menu .vergleicho-nav-container {
    margin: 0;
    background: transparent;
    box-shadow: none;
    padding: 0.5rem 0;
    border-radius: 0;
  }

  .vergleicho-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .vergleicho-nav li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .vergleicho-nav a {
    display: block;
    padding: 1rem 0;
    font-size: 1rem;
  }

  .vergleicho-nav-menu .vergleicho-nav-right {
    padding-top: 1rem;
  }

  .vergleicho-nav-menu .vergleicho-nav-right .vergleicho-btn--header-cta {
    width: 100%;
    justify-content: center;
  }

  .vergleicho-hero-col-content,
  .vergleicho-hero-col-image {
    width: 100%;
  }

  .vergleicho-hero-content-inner {
    text-align: center;
    align-items: center;
  }

  .vergleicho-hero-btn,
  .vergleicho-hero-section .vergleicho-btn-pill,
  .vergleicho-hero-content-inner .vergleicho-btn-pill {
    align-self: center;
  }

  .vergleicho-hero-title {
    font-size: 42px;
  }

  .vergleicho-hero-decoration {
    display: none;
  }

  .vergleicho-hero-image-wrap {
    margin-top: 50px;
  }

  .vergleicho-how-grid,
  .vergleicho-premium-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .vergleicho-section-premium {
    padding: 3rem 1.5rem;
    margin-top: 60px;
    margin-bottom: 60px;
  }

  .vergleicho-premium-content h2 {
    font-size: 2rem;
  }

  .vergleicho-posts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .vergleicho-post-card-link {
    flex-direction: column;
  }

  .vergleicho-post-card-body {
    flex: none;
    margin: 1rem;
    margin-right: 1rem;
    margin-bottom: -0.5rem;
  }

  .vergleicho-post-card-image-wrap {
    margin: 1rem;
    margin-left: 1rem;
    margin-top: -0.5rem;
  }

  .vergleicho-post-card h3 {
    font-size: 1.5rem;
  }

  .vergleicho-section-aktuelles {
    padding: 3rem 1.5rem;
    margin-top: 60px;
    margin-bottom: 60px;
  }

  .vergleicho-aktuelles-title {
    font-size: 2rem;
  }

  .vergleicho-aktuelles-subtitle {
    margin-bottom: 2rem;
  }

  .vergleicho-service-col {
    width: 50%;
  }

  .vergleicho-heading-text {
    font-size: 34px;
  }

  .vergleicho-testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vergleicho-contact-parallax-bg {
    background-attachment: scroll;
  }

  .vergleicho-section-title {
    font-size: 2rem;
  }

  .vergleicho-section-how {
    padding: 3rem 1.5rem;
  }

  .vergleicho-section-how .vergleicho-section-title {
    font-size: 1.75rem;
  }

  .vergleicho-section-partners,
  .vergleicho-partners-heading {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .vergleicho-partners-heading {
    margin-bottom: 1.5rem;
  }

  .vergleicho-versicherungen-inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .vergleicho-heading-block {
    margin-bottom: 40px;
  }

  .vergleicho-section-testimonials {
    padding: 3rem 1.5rem;
    margin-top: 60px;
    margin-bottom: 60px;
    border-radius: 24px;
  }

  .vergleicho-contact-wrap {
    padding: 2rem 1rem;
    min-height: 400px;
  }

  .vergleicho-contact-form-wrap {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .vergleicho-hero-section {
    padding: 80px 1rem 60px;
  }

  .vergleicho-hero-container {
    padding: 0 1rem;
  }

  .vergleicho-hero-title {
    font-size: 36px;
    margin-bottom: 1rem;
  }

  .vergleicho-hero-desc {
    font-size: 16px;
    margin-bottom: 1.5rem;
  }

  .vergleicho-hero-btn-label {
    padding: 14px 20px;
    font-size: 14px;
  }

  .vergleicho-hero-btn-icon {
    width: 48px;
    height: 48px;
  }

  .vergleicho-hero-funfact {
    padding: 8px 14px 8px 8px;
    gap: 10px;
    max-width: 100%;
  }

  .vergleicho-hero-funfact-icon {
    width: 36px;
    height: 36px;
  }

  .vergleicho-hero-funfact-icon svg {
    width: 18px;
    height: 18px;
  }

  .vergleicho-hero-funfact-title {
    font-size: 12px;
  }

  .vergleicho-hero-funfact-value {
    font-size: 1.25rem;
  }



  .vergleicho-hero-reviews {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .vergleicho-hero-reviews-logo img,
  .vergleicho-hero-reviews-logo svg {
    width: 100px;
    height: 34px;
  }

  .vergleicho-section-versicherungen {
    padding: 50px 1rem;
  }

  .vergleicho-heading-text {
    font-size: 28px;
  }

  .vergleicho-heading-description {
    font-size: 16px;
  }

  .vergleicho-service-col {
    width: 100%;
  }

  .vergleicho-iconbox-block {
    padding: 25px;
  }

  .vergleicho-iconbox-content h3 {
    font-size: 20px;
  }

  .vergleicho-icon-card.icon-card {
    padding: 25px;
  }

  .vergleicho-icon-card h3 {
    font-size: 16px !important;
  }

  .vergleicho-how-grid {
    gap: 2rem;
    margin-top: 1.5rem;
  }

  .vergleicho-section-how {
    padding: 3rem 1rem;
  }

  .vergleicho-steps-wrap::before {
    left: 32px;
    top: 32px;
    bottom: 32px;
  }

  .vergleicho-step-icon-wrap {
    width: 64px;
    height: 64px;
  }

  .vergleicho-step-icon svg {
    width: 28px;
    height: 28px;
  }

  .vergleicho-step {
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .vergleicho-step h3 {
    font-size: 18px;
  }

  .vergleicho-step p {
    font-size: 16px;
  }

  .vergleicho-premium-badge {
    position: absolute;
    bottom: 0;
    left: 25%;
    transform: translate(-50%, -50%);
    margin-top: 0;
    width: max-content;
    max-width: 90%;
    padding: 8px 14px 8px 8px;
    gap: 10px;
  }

  .vergleicho-premium-badge span[aria-hidden="true"] {
    width: 36px;
    height: 36px;
  }

  .vergleicho-premium-badge span[aria-hidden="true"] svg {
    width: 18px;
    height: 18px;
  }

  .vergleicho-premium-badge-text {
    gap: 2px;
  }

  .vergleicho-premium-badge-text > span {
    font-size: 12px;
  }

  .vergleicho-premium-badge-highlight {
    font-size: 1.25rem;
  }

  .vergleicho-premium-content h2 {
    font-size: 1.75rem;
  }

  .vergleicho-premium-content p {
    font-size: 1rem;
  }

  .vergleicho-post-card,
  .vergleicho-post-card-link {
    min-height: auto;
  }

  .vergleicho-post-card-body {
    height: auto;
    min-height: 0;
    padding: 1.5rem 1.25rem;
  }

  .vergleicho-post-card-image-wrap,
  .vergleicho-post-card img,
  .vergleicho-post-card-placeholder {
    min-height: 200px;
  }

  .vergleicho-section-testimonials {
    padding: 2.5rem 1rem;
    margin-top: 40px;
    margin-bottom: 40px;
    border-radius: 16px;
  }

  .vergleicho-testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .vergleicho-testimonial-text {
    font-size: 15px;
  }

  .vergleicho-contact-wrap {
    padding: 2rem 1rem;
    min-height: 350px;
  }

  .vergleicho-contact-form-wrap {
    padding: 1.75rem 1.25rem;
  }

  .vergleicho-footer-engagement {
    padding: 3rem 1.5rem 3.5rem;
  }

  .vergleicho-footer-engagement-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .vergleicho-footer-cta {
    text-align: center;
  }

  .vergleicho-footer-follow {
    flex-direction: column;
    justify-content: center;
  }

  .vergleicho-footer-social {
    justify-content: center;
  }

  .vergleicho-footer-columns {
    padding: 2.5rem 1.5rem 3rem;
  }

  .vergleicho-footer-columns-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: left;
  }

  .vergleicho-footer-col h4 {
    margin-bottom: 0.75rem;
  }

  .vergleicho-footer-bar {
    padding: 1rem 1.5rem;
  }

  .vergleicho-footer-bar-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .vergleicho-hero-section {
    padding: 70px 0.75rem 50px;
  }

  .vergleicho-hero-title {
    font-size: 36px;
  }

  .vergleicho-hero-desc {
    font-size: 15px;
  }

  .vergleicho-section-title {
    font-size: 1.5rem;
  }

  .vergleicho-section-how .vergleicho-section-title {
    font-size: 1.5rem;
  }

  .vergleicho-heading-text {
    font-size: 24px;
  }

  .vergleicho-heading-description {
    font-size: 15px;
  }

  .vergleicho-how-grid {
    gap: 1.5rem;
  }

  .vergleicho-steps-wrap::before {
    left: 24px;
    top: 24px;
    bottom: 24px;
  }

  .vergleicho-step-icon-wrap {
    width: 48px;
    height: 48px;
  }

  .vergleicho-step-icon svg {
    width: 22px;
    height: 22px;
  }

  .vergleicho-step {
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .vergleicho-step h3 {
    font-size: 16px;
  }

  .vergleicho-step p {
    font-size: 14px;
  }

  .vergleicho-aktuelles-title {
    font-size: 1.5rem;
  }

  .vergleicho-aktuelles-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .vergleicho-form-grid {
    grid-template-columns: 1fr;
  }

  .vergleicho-contact-form-wrap {
    padding: 2rem;
  }

  .vergleicho-contact-form-wrap h2 {
    font-size: 1.25rem;
  }

  /* Footer Mobile */
  .vergleicho-footer-engagement {
    padding: 2.5rem 1rem 2rem;
  }

  .vergleicho-footer-cta-title {
    font-size: 1.75rem;
  }

  .vergleicho-footer-columns {
    padding: 2rem 1rem;
  }

  .vergleicho-footer-contact-group {
    display: contents;
  }

  .vergleicho-footer-columns-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    text-align: left;
  }
  
  .vergleicho-footer-col--about {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
    order: 1;
  }

  .vergleicho-footer-col--nav {
    grid-column: 1;
    order: 2;
  }

  .vergleicho-footer-col--lang {
    grid-column: 2;
    order: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .vergleicho-footer-col--contact {
    grid-column: 1 / -1;
    order: 4;
  }
  
  .vergleicho-footer-col--newsletter-lang {
    grid-column: 1 / -1;
    order: 5;
  }

  .vergleicho-footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .vergleicho-footer-contact-item {
    justify-content: flex-start;
    text-align: left;
  }

  .vergleicho-footer-newsletter-form {
    width: 100%;
    max-width: 100%;
  }
  
  .vergleicho-footer-bar-inner {
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .vergleicho-hero-title {
    font-size: 36px;
  }

  .vergleicho-hero-funfact-2 {
    top: -30px;
    left: -20px;
  }
  .vergleicho-hero-funfact-1 {
    bottom: -30px;
    left: -20px;
}
.vergleicho-hero-funfact-3 {
  top: 30%;
  right: -20px;
}
  .vergleicho-hero-btn-label {
    padding: 1px 16px;
    font-size: 13px;
    height: auto;
  }

  .vergleicho-partner-logo-img {
    height: 40px;
  }

  .vergleicho-iconbox-block {
    padding: 20px;
  }

  .vergleicho-iconbox-icon {
    width: 56px;
    height: 56px;
  }

  .vergleicho-iconbox-icon svg {
    width: 32px;
    height: 32px;
  }

  .vergleicho-icon-card.icon-card {
    padding: 15px  !important;
  }

  .vergleicho-icon-card .vergleicho-iconbox-icon {
    width: 48px !important;
    height: 48px !important;
    margin-bottom: 12px !important;
  }

  .vergleicho-icon-card .vergleicho-iconbox-icon img {
    width: 28px !important;
    height: 28px !important;
  }

  .vergleicho-icon-card h3 {
    font-size: 15px !important;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    text-align: center;
  }

  .vergleicho-section-testimonials {
    border-radius: 12px;
    padding: 2rem 0.75rem;
  }

  .vergleicho-insurance-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
  }
  
  .vergleicho-modal-content {
    padding: 1rem;
    width: 100%;
  }
}

/* ==========================================================================
   Lead Modal (vergleicho-modal-lead)
   ========================================================================== */
.modal-vergleicho.d-none,
.vergleicho-modal-lead.d-none {
  display: none !important;
}

.modal-vergleicho:not(.d-none),
.vergleicho-modal-lead:not(.d-none) {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100vh;
  height: 100dvh;
  background: linear-gradient(180deg,#061f4a,#0a2a63);
  overflow: hidden;
  overscroll-behavior: contain;
}

.vergleicho-modal-header {
  flex-shrink: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1rem 2rem;
}

.vergleicho-modal-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vergleicho-modal-logo img {
  height: 32px;
  width: auto;
}

.vergleicho-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
}

.vergleicho-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.vergleicho-modal-content {
  max-width: 1260px;
  margin: 0 auto;
  padding: 2rem;
}

.vergleicho-modal-page {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background: transparent;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

/* flex + justify-content:center breaks overflow scrolling when content is taller than viewport */
.vergleicho-modal-page[data-page="calltoaction-3"] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: clamp(2rem, 10vh, 5rem);
}

/* White text on dark modal background */
.vergleicho-modal-page .vergleicho-modal-content {
  color: #fff;
}
.vergleicho-modal-page .vergleicho-modal-heading,
.vergleicho-modal-page .vergleicho-modal-content > h2,
.vergleicho-modal-page .vergleicho-text,
.vergleicho-modal-page .vergleicho-modal-content > p {
  color: #fff;
}
.vergleicho-modal-page .vergleicho-icon-card h3 {
  color: #1a1a1a;
}
.vergleicho-modal-page .vergleicho-personal-heading,
.vergleicho-modal-page .vergleicho-form-col .d-label {
  color: #fff;
  text-transform: capitalize;
}
.vergleicho-modal-page .vergleicho-form-col .note-dsg {
  color: rgba(255, 255, 255, 0.85);
}

.vergleicho-modal-page[data-page="calltoaction-3"] .vergleicho-modal-content {
  max-width: 800px;
  text-align: center;
}

.vergleicho-modal-page[data-page="calltoaction-3"].d-none {
  display: none !important;
}

/* Step 2: long DSG/legal block must clear the fixed footer on all viewports (JS margin also targets visible step) */
.vergleicho-modal-lead .vergleicho-modal-page[data-page="calltoaction-2"] .vergleicho-modal-content {
  padding-bottom: max(
    2.5rem,
    calc(5.75rem + env(safe-area-inset-bottom, 0px))
  );
}

.vergleicho-modal-heading {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.vergleicho-insurance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 2rem 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 380px) {
  .vergleicho-insurance-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .vergleicho-insurance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 768px) {
  .vergleicho-insurance-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

.vergleicho-insurance-card {
  cursor: pointer;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 0;
}
/* 
.vergleicho-insurance-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
} */

/* Modal icon cards - match vergleicho-iconbox-block styling */
.vergleicho-icon-card.icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
  background-color: #fff;
  border-radius: 12px;
  height: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* .vergleicho-icon-card.icon-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
} */

.vergleicho-icon-card .vergleicho-iconbox-icon {
  width: 70px;
  height: 70px;
  background-color: #c84668;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.vergleicho-icon-card .vergleicho-iconbox-icon img {
  width: 40px;
  height: 40px;
}

.vergleicho-icon-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  text-align: center;
  text-transform: capitalize;
}

/* Fixed bar sits above the scroll layer — without pointer-events pass-through, wheel/touch
   over this strip never reaches .vergleicho-modal-page, so scrolling feels "stuck". */
.vergleicho-modal-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 2rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 100500;
  pointer-events: none;
}

.vergleicho-modal-actions > * {
  pointer-events: auto;
}

/* Mobile: ensure full modal content is visible above fixed action bar */
@media (max-width: 768px) {
  .vergleicho-modal-lead .vergleicho-modal-page {
    padding-bottom: 0;
  }
  .vergleicho-modal-lead .vergleicho-modal-page .vergleicho-modal-content {
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  }
  .vergleicho-modal-lead .vergleicho-modal-page[data-page="calltoaction-2"] .vergleicho-modal-content {
    padding-bottom: calc(128px + env(safe-area-inset-bottom, 0px));
  }
}
.vergleicho-btn--continue {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  font-family: inherit;
}

.vergleicho-btn--return {
  background: transparent;
  border: 2px solid var(--vergleicho-btn);
  color: var(--vergleicho-btn);
}

.vergleicho-btn--return:hover {
  background: rgba(200, 70, 104, 0.08);
  border-color: var(--vergleicho-btn-hover);
  color: var(--vergleicho-btn-hover);
}

.vergleicho-btn--continue {
  background: var(--vergleicho-btn);
  border: none;
  color: var(--vergleicho-white);
}

.vergleicho-btn--continue:hover {
  background: var(--vergleicho-btn-hover);
}

.canton-select-container {
  position: relative;
  margin: 1rem 0;
}

.canton-select-trigger {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0;
  min-height: 52px;
  border: 2px solid var(--vergleicho-dark-grey);
  border-radius: 12px;
  cursor: pointer;
  background: var(--vergleicho-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.canton-select-trigger:hover {
  border-color: rgba(84, 201, 163, 0.5);
}

.canton-select-trigger.active {
  border-color: var(--vergleicho-primary);
  box-shadow: 0 0 0 4px rgba(84, 201, 163, 0.15);
}

.canton-select-trigger .placeholder {
  flex: 1;
  padding: 0 1rem;
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.5;
}

.canton-select-trigger .arrow-down {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 1rem;
  color: var(--vergleicho-dark-blue);
  transition: transform 0.2s ease;
}

.canton-select-trigger.active .arrow-down {
  transform: rotate(180deg);
}

/* Canton search input - polished styling */
.canton-select-trigger .canton-search {
  display: none;
}

.canton-select-trigger.active .canton-search {
  display: block;
}

.canton-search {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 0.875rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--vergleicho-dark-blue);
  background: transparent;
  border: none;
  border-radius: 0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.canton-search::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.canton-search:focus {
  outline: none;
}

.canton-search::-webkit-search-cancel-button,
.canton-search::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

/* Canton dropdown list */
.canton-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin-top: 0;
  max-height: 260px;
  overflow-y: auto;
  background: var(--vergleicho-white);
  border: 2px solid var(--vergleicho-dark-grey);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(21, 32, 68, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
  z-index: 1001;
  display: none;
}

.canton-dropdown.active {
  display: block;
}

.canton-option {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--vergleicho-dark-blue);
  cursor: pointer;
  transition: background 0.15s ease;
}

.canton-option:first-child {
  border-radius: 10px 10px 0 0;
}

.canton-option:last-child {
  border-radius: 0 0 10px 10px;
}

.canton-option:hover {
  background: var(--vergleicho-light-grey);
}

.canton-option.selected {
  background: rgba(84, 201, 163, 0.12);
  color: var(--vergleicho-dark-blue);
}

.canton-select-trigger.error {
  border-color: var(--vergleicho-secondary);
}

/* Card + Form side-by-side layout (50/50 split) */
.vergleicho-card-form-row {
  display: flex;
  gap: 4rem;
  align-items: stretch;
  margin: 1.5rem 0;
  max-width: 100%;
  min-width: 0;
}

.vergleicho-card-col {
  flex: 0 0 calc(50% - 2rem);
  width: calc(50% - 2rem);
  min-width: 0;
}

.vergleicho-form-col {
  flex: 0 0 calc(50% - 2rem);
  width: calc(50% - 2rem);
  min-width: 0;
}

@media (max-width: 900px) {
  .vergleicho-card-form-row {
    flex-direction: column;
  }
  .vergleicho-card-col,
  .vergleicho-form-col {
    flex: 0 0 auto;
    width: 100%;
  }
}

/* Result card - insurance offer (form_comparing_options) */
.modal-cta-container {
  margin: 0;
}

.modal-cta-card {
  background: var(--vergleicho-white);
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(21, 32, 68, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  min-height: 250px;
}

.modal-cta-card-header {
  padding: 1.75rem 1.75rem;
  background: #fff;
}

.modal-cta-card-header .modal-cta-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--vergleicho-dark-blue);
  margin: 0 0 0.35rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.modal-cta-card-header .modal-cta-badge {
  font-size: 1rem;
  font-weight: 500;
  color: #6b7280;
}

.modal-cta-card-body {
  position: relative;
  padding: 2.5rem 2rem 2.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 200px;
}

.modal-cta-card-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #4d8a84 0%, #56928C 50%, #5a9b95 100%);
  clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 100%);
  z-index: 0;
}

.modal-cta-card-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.modal-cta-icon-badge {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.modal-cta-icon-badge .modal-cta-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.modal-cta-card-body .modal-cta-rating {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.98);
}

.modal-cta-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  position: relative;
  z-index: 1;
}

.modal-cta-save-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.35rem;
}

.modal-cta-card-body .modal-cta-deal {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--vergleicho-white);
  margin: 0;
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  letter-spacing: -0.02em;
}

.modal-cta-currency {
  font-size: 1.1rem;
  font-weight: 600;
  opacity: 0.95;
}

.modal-cta-amount {
  position: relative;
  padding-bottom: 3px;
  border-bottom: 4px solid #5AF59F;
}

.result-count {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.75rem;
}

/* ==========================================================================
   Persönliche Angaben – Form Fields (Lead Modal)
   ========================================================================== */
.modal-vergleicho p.vergleicho-personal-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--vergleicho-dark-blue);
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.vergleicho-form-col .vergleicho-personal-heading {
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
}

/* Form fields container – compact height */
.modal-vergleicho .form-fields-container {
  margin-top: 0;
}

.modal-vergleicho .vergleicho-form-col .form-fields-container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Each form field wrapper – reduced spacing */
.modal-vergleicho .vergleicho-form-col .spectacledcoder-input-secondary {
  margin-bottom: 0;
}

.modal-vergleicho .vergleicho-form-col .spectacledcoder-input-secondary:last-child {
  margin-bottom: 0;
}

/* Labels – compact */
.modal-vergleicho .vergleicho-form-col .d-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--vergleicho-dark-blue);
  margin-bottom: 0.35rem;
  text-transform: capitalize;
}

/* Dark modal background: force white text for heading and all form labels */
.modal-vergleicho .vergleicho-modal-page p.vergleicho-personal-heading,
.modal-vergleicho .vergleicho-modal-page .vergleicho-personal-heading,
.modal-vergleicho .vergleicho-modal-page .vergleicho-form-col .d-label,
.modal-vergleicho .vergleicho-modal-page .vergleicho-form-col label,
.modal-vergleicho .vergleicho-modal-page .vergleicho-form-col .note-dsg,
.modal-vergleicho .vergleicho-modal-page .vergleicho-form-col .note-dsg a {
  color: #fff !important;
}
.modal-vergleicho .vergleicho-form-col label {
  text-transform: capitalize;
}
.modal-vergleicho .vergleicho-modal-page .vergleicho-form-col .note-dsg a:hover {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Text inputs – reduced height */
.modal-vergleicho .vergleicho-form-col input[type="text"],
.modal-vergleicho .vergleicho-form-col input[type="email"],
.modal-vergleicho .vergleicho-form-col input[type="tel"] {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.875rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--vergleicho-dark-blue);
  background: var(--vergleicho-white);
  border: 2px solid var(--vergleicho-dark-grey);
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-vergleicho .form-fields-container input[type="text"]:focus,
.modal-vergleicho .form-fields-container input[type="email"]:focus,
.modal-vergleicho .form-fields-container input[type="tel"]:focus {
  outline: none;
  border-color: var(--vergleicho-primary);
  box-shadow: 0 0 0 4px rgba(84, 201, 163, 0.15);
}

.modal-vergleicho .form-fields-container input[type="text"]::placeholder,
.modal-vergleicho .form-fields-container input[type="email"]::placeholder,
.modal-vergleicho .form-fields-container input[type="tel"]::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

/* Age field – full width */
.modal-vergleicho .vergleicho-form-col #cta-age {
  max-width: none;
}

/* Mobile input wrapper – label on top, then country code + number side by side */
.modal-vergleicho .mobile-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.modal-vergleicho .mobile-input-wrapper .d-label {
  margin-bottom: 0.35rem;
  text-transform: capitalize;
}

.modal-vergleicho .mobile-input-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

.modal-vergleicho .spectacledcoder-input-secondary:has(.country-code-dropdown-wrapper) {
  overflow: visible;
}

.modal-vergleicho .mobile-input-wrapper .country-code-dropdown-wrapper {
  flex-shrink: 0;
  position: relative;
  z-index: 100600;
}

.modal-vergleicho .mobile-input-wrapper .country-code-dropdown {
  z-index: 100600 !important;
}

.modal-vergleicho .mobile-input-wrapper .country-code-dropdown.active {
  z-index: 100600 !important;
}

/* When dropdown is open, ensure phone field stacks above privacy note */
body.country-dropdown-open .modal-vergleicho .spectacledcoder-input-secondary:has(.country-code-dropdown-wrapper) {
  position: relative;
  z-index: 100600;
}

body.country-dropdown-open .modal-vergleicho .note-dsg {
  position: relative;
  z-index: 1;
}

body.country-dropdown-open .modal-vergleicho .form-fields-container,
body.country-dropdown-open .modal-vergleicho .vergleicho-form-col {
  overflow: visible;
}

.modal-vergleicho .mobile-input-row .country-code-dropdown-wrapper {
  flex-shrink: 0;
}

.modal-vergleicho .mobile-input-row .mobile-input-field {
  flex: 1;
  min-width: 0;
}

/* Country code trigger – align with compact form inputs */
.modal-vergleicho .vergleicho-form-col .country-code-trigger {
  min-height: 44px;
  border-width: 2px;
  border-color: var(--vergleicho-dark-grey) !important;
  border-radius: 10px !important;
  background: var(--vergleicho-white) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.modal-vergleicho .country-code-trigger:hover {
  border-color: rgba(84, 201, 163, 0.5) !important;
}

.modal-vergleicho .country-code-trigger:focus,
.modal-vergleicho .country-code-trigger[aria-expanded="true"] {
  border-color: var(--vergleicho-primary) !important;
  box-shadow: 0 0 0 4px rgba(84, 201, 163, 0.15) !important;
}

/* Privacy note – compact */
.modal-vergleicho .vergleicho-form-col .note-dsg {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #4b5563;
  margin-top: 0.5rem;
}

.modal-vergleicho .note-dsg p {
  margin: 0;
}

.modal-vergleicho .note-dsg a {
  color: var(--vergleicho-primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.modal-vergleicho .note-dsg a:hover {
  color: var(--vergleicho-dark-blue);
}

/* Input error state */
.modal-vergleicho input.input-error {
  border-color: var(--vergleicho-secondary) !important;
  box-shadow: 0 0 0 2px rgba(200, 72, 105, 0.15);
}

/* Field appearance animation */
@keyframes vergleicho-field-appear {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-vergleicho .spectacledcoder-input-secondary.vergleicho-field-animate {
  animation: vergleicho-field-appear 0.45s ease-out both;
}

.modal-vergleicho p.vergleicho-personal-heading.vergleicho-field-animate {
  animation: vergleicho-field-appear 0.45s ease-out both;
}

.modal-vergleicho .note-dsg.vergleicho-field-animate {
  animation: vergleicho-field-appear 0.45s ease-out both;
}

/* Responsive – stack mobile inputs on small screens */
@media (max-width: 480px) {
  .modal-vergleicho .mobile-input-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
  .modal-vergleicho .mobile-input-wrapper .country-code-dropdown-wrapper {
    max-width: none;
  }
  .modal-vergleicho .country-code-trigger {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .modal-cta-card {
    min-height: 250px;
  }
  .modal-cta-card-body {
    flex-direction: column;
    align-items: flex-start;
    min-height: 200px;
    padding: 1.25rem 1.25rem 1.5rem;
  }
  .modal-cta-card-right {
    align-items: flex-start;
    text-align: left;
  }
  .modal-cta-card-body .modal-cta-deal {
    font-size: 1.65rem;
  }
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.d-none {
  display: none !important;
}

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }

/* Language switcher */
.vergleicho-lang-switcher {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.vergleicho-lang-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	padding: 0 0.5rem;
	font-size: 0.8rem;
	font-weight: 600;
	border: 1px solid var(--vergleicho-dark-grey);
	background: transparent;
	border-radius: 6px;
	color: var(--vergleicho-dark-blue);
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
}

.vergleicho-lang-btn:hover {
	background: var(--vergleicho-light-grey);
	border-color: var(--vergleicho-primary);
}

.vergleicho-lang-btn.is-active {
	background: var(--vergleicho-primary);
	border-color: var(--vergleicho-primary);
	color: var(--vergleicho-dark-blue);
}

.vergleicho-nav-right .vergleicho-lang-switcher {
	margin-right: 1rem;
}

.vergleicho-footer-follow .vergleicho-lang-switcher {
	margin-bottom: 0.75rem;
}

/* ==========================================================================
   Legacy Loading Section (from previous theme)
   ========================================================================== */
.loading-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.loading-animation {
  width: 200px;
  height: 200px;
}

/* ==========================================================================
   Fixed CTA (from previous theme)
   ========================================================================== */
.cta-fixed-wrap {
  display: flex;
  align-items: center;
  position: fixed;
  bottom: 15px;
  right: 0;
  z-index: 900;
}

.lottie-container {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

.cta-text {
  background-color: var(--vergleicho-secondary);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 10px;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.cta-text.show {
  opacity: 1;
  transform: translateX(20px) translateY(0);
}

/* ==========================================================================
   Fixed navigation bar for modal actions
   ========================================================================== */
.navigation-buttons-container.navigation-fixed {
  position: fixed !important;
  bottom: 0 !important;
  left: 0;
  right: 0;
  z-index: 100500;
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 2rem;
  background: #092960;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.navigation-buttons-container.navigation-fixed > * {
  pointer-events: auto;
}

/* Google Translate widget – capitalize labels (e.g. "navigation") */
.VIpgJd-yAWNEb-VIpgJd-fmcmS-sn54Q {
  text-transform: capitalize;
}

/* ==========================================================================
   Thank You page (template-thank-you.php)
   ========================================================================== */
.vergleicho-thank-you-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(85vh, calc(100dvh - 120px));
  margin-top: -100px;
  padding: 100px;
  background: linear-gradient(180deg, #061f4a, #0a2a63);
  color: #fff;
}

.vergleicho-thank-you-inner {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.vergleicho-thank-you-icon {
  color: #54c9a3;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.vergleicho-thank-you-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 1.25rem;
  color: #fff;
}

.vergleicho-thank-you-text {
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 2rem;
  color: rgba(255, 255, 255, 0.92);
}

.vergleicho-thank-you-actions {
  margin: 0;
}

.vergleicho-thank-you-page .vergleicho-thank-you-btn {
  background: var(--vergleicho-btn);
  border: none;
  color: var(--vergleicho-white);
}

.vergleicho-thank-you-page .vergleicho-thank-you-btn:hover {
  background: var(--vergleicho-btn-hover);
  color: var(--vergleicho-white);
}
