/* ============= Basis ============= */

:root{
  --ink: #111111;
  --muted: #555555;
  --line: #e2e2e2;
  --apple-blue:#0071e3;
  --apple-blue-hover:#147ce5;

  --bg-page: #f5f7fb;
  --bg-card: #ffffff;
}

*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

html{
  scroll-behavior:auto; /* keine Smooth-Spielereien */
}

body{
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:var(--ink);
  background:var(--bg-page);
  line-height:1.5;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch; /* iPhone: sauberes Scrollen */
}

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

p{
  line-height:1.7;
  color:var(--muted);
  margin-bottom:1rem;
}

h1,h2,h3{
  margin-bottom:.6rem;
  font-weight:600;

  /* Umbruch erlaubt, aber keine Wort-Trennung */
  white-space:normal;
  overflow-wrap:normal;
  word-wrap:normal;
  word-break:keep-all;
  hyphens:none;
}

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

/* ============= Layout ============= */

.container{
  max-width:1180px;
  margin:0 auto;
  padding:0 16px;
}

section{
  padding:80px 0;
  scroll-margin-top:80px;
}

/* ============= Scroll-Reveal (smooth von unten einblenden) ============= */
.reveal-on-scroll.reveal-init{
  opacity:0;
  transform:translateY(24px);
  transition:opacity 600ms ease, transform 600ms ease;
  will-change:opacity, transform;
}

/* Für Bild-Container: abhängig von Seitenposition horizontal einfahren */
.reveal-on-scroll.reveal-init.reveal-from-left{
  transform:translateX(-42px);
}

.reveal-on-scroll.reveal-init.reveal-from-right{
  transform:translateX(42px);
}

.reveal-on-scroll.reveal-init:not(.reveal-from-left):not(.reveal-from-right).reveal-exit-up{
  transform:translateY(-24px);
}

.reveal-on-scroll.reveal-init:not(.reveal-from-left):not(.reveal-from-right).reveal-exit-down{
  transform:translateY(24px);
}

.reveal-on-scroll.reveal-init.reveal-visible{
  opacity:1;
  transform:translateY(0);
}

/* Optional: Wenn User reduzierte Animationen bevorzugt */
@media (prefers-reduced-motion: reduce){
  .reveal-on-scroll.reveal-init{
    transition:none;
    transform:none;
    opacity:1;
  }
}

/* ============= (1) Stagger-Reveal: Inhalte nacheinander ============= */
.reveal-stagger.reveal-init > *{
  opacity:0;
  transform:translateY(12px);
  transition:opacity 500ms ease, transform 500ms ease;
  will-change:opacity, transform;
}

.reveal-stagger.reveal-init.reveal-visible > *{
  opacity:1;
  transform:translateY(0);
}

/* Delays: stufenweise (bei Bedarf erweitern) */
.reveal-stagger.reveal-init.reveal-visible > *:nth-child(1){ transition-delay: 0ms; }
.reveal-stagger.reveal-init.reveal-visible > *:nth-child(2){ transition-delay: 70ms; }
.reveal-stagger.reveal-init.reveal-visible > *:nth-child(3){ transition-delay: 140ms; }
.reveal-stagger.reveal-init.reveal-visible > *:nth-child(4){ transition-delay: 210ms; }
.reveal-stagger.reveal-init.reveal-visible > *:nth-child(5){ transition-delay: 280ms; }
.reveal-stagger.reveal-init.reveal-visible > *:nth-child(6){ transition-delay: 350ms; }
.reveal-stagger.reveal-init.reveal-visible > *:nth-child(7){ transition-delay: 420ms; }
.reveal-stagger.reveal-init.reveal-visible > *:nth-child(8){ transition-delay: 490ms; }
.reveal-stagger.reveal-init.reveal-visible > *:nth-child(9){ transition-delay: 560ms; }
.reveal-stagger.reveal-init.reveal-visible > *:nth-child(10){ transition-delay: 630ms; }
.reveal-stagger.reveal-init.reveal-visible > *:nth-child(11){ transition-delay: 700ms; }
.reveal-stagger.reveal-init.reveal-visible > *:nth-child(12){ transition-delay: 770ms; }

/* Reduced motion: keine Stagger-Animation */
@media (prefers-reduced-motion: reduce){
  .reveal-stagger.reveal-init > *{
    opacity:1;
    transform:none;
    transition:none;
  }
}

/* ============= (3) Title Underline Draw ============= */
.title-underline{
  position:relative;
  display:inline-block;
}

.title-underline::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-8px;
  height:3px;
  width:100%;
  background:currentColor;
  opacity:0.18;
  transform:scaleX(0);
  transform-origin:left;
  transition:transform 500ms ease;
}

/* Linie zeichnet sich, sobald der umgebende Reveal sichtbar ist */
.reveal-visible .title-underline::after{
  transform:scaleX(1);
}

@media (prefers-reduced-motion: reduce){
  .title-underline::after{
    transform:scaleX(1);
    transition:none;
  }
}

/* ============= (9) Modal-Animationen (Calendly + Vergleichsrechner) ============= */
/* Overlay: weicheres Fading */
.calendly-overlay.modal-overlay-anim,
.comparison-overlay.modal-overlay-anim{
  transition:opacity 220ms ease;
}

/* Dialog: leichtes Pop-in */
.calendly-modal.modal-dialog-anim,
.comparison-modal.modal-dialog-anim{
  transition:opacity 220ms ease;
}

.calendly-modal.modal-dialog-anim .calendly-card,
.comparison-modal.modal-dialog-anim .comparison-card{
  transform:translateY(14px) scale(0.98);
  opacity:0;
  transition:transform 220ms ease, opacity 220ms ease;
  will-change:transform, opacity;
}

.calendly-modal.is-visible.modal-dialog-anim .calendly-card,
.comparison-modal.is-visible.modal-dialog-anim .comparison-card{
  transform:translateY(0) scale(1);
  opacity:1;
}

@media (prefers-reduced-motion: reduce){
  .calendly-overlay.modal-overlay-anim,
  .comparison-overlay.modal-overlay-anim,
  .calendly-modal.modal-dialog-anim,
  .comparison-modal.modal-dialog-anim,
  .calendly-modal.modal-dialog-anim .calendly-card,
  .comparison-modal.modal-dialog-anim .comparison-card{
    transition:none;
    transform:none;
    opacity:1;
  }
}

.eyebrow{
  font-size:.8rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted);
  margin-bottom:.3rem;
}

.divider{
  height:1px;
  background:var(--line);
  margin:22px 0;
}

/* ============= Navigation (Glas-Design) ============= */

.nav{
  position:fixed;
  top:16px;
  left:0;
  right:0;
  z-index:90;
}

.nav-inner{
  pointer-events:auto;
  display:flex;
  align-items:center;             /* Inhalte vertikal zentriert */
  justify-content:space-between;
  margin:0 auto;
  max-width:1180px;
  padding:10px 18px;              /* vertikale Höhe der Nav */
  border-radius:24px;
  border:1px solid rgba(255,255,255,.75);
  background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(255,255,255,.62));
  backdrop-filter:blur(18px) saturate(180%);
  -webkit-backdrop-filter:blur(18px) saturate(180%);
  box-shadow:0 18px 40px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.05);
}

.brand{
  display:flex;
  align-items:center;
}

.brand img{
  height:44px;
  width:auto;
}

.menu{
  display:flex;
  gap:18px;
  align-items:center;
}

.menu a,
.nav-link{
  display:inline-flex;
  align-items:center;
  padding:10px 12px;
  border-radius:12px;
  font-size:.95rem;
  font-weight:600;
  color:var(--ink);
  opacity:.85;
  transition:background .2s, opacity .2s;
}

.menu a:hover,
.nav-link:hover{
  background:rgba(0,0,0,.04);
  opacity:1;
}

/* ============= Dropdowns ============= */

.nav-item{
  position:relative;
  display:flex;
  align-items:center;
  height:100%;                    /* Unterkante = Unterkante Nav-Leiste */
}
.nav-item::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:100%;
  height:12px;                    /* überbrückt den Abstand */
}

/* Dropdown-Karte */
.dropdown-menu{
  position:absolute;
  top:calc(100% + 12px);                       /* direkt an der Unterkante des nav-item/Nav */
  left:0;
  width:240px;
  /* WICHTIG: alles untereinander */
  display:flex;
  flex-direction:column;
  align-items:stretch;

  border-radius:0 0 20px 20px;
  padding:8px 0;
  opacity:0;
  pointer-events:none;
  transition:opacity .20s ease;
  background:#ffffff;
  border:1px solid #e5e5e5;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;

  box-shadow:0 18px 40px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.05);
}

/* anzeigen, wenn der Punkt gehovert wird */
.nav-item:hover > .dropdown-menu,
.dropdown-menu:hover{
  opacity:1;
  pointer-events:auto;
}

/* Einträge im Dropdown – volle Breite, untereinander */
.drop-item{
  display:block;
  width:100%;
  padding:10px 20px;
  font-size:.95rem;
  color:var(--ink);
  border-radius:0;                /* optional: keine Pillen im Dropdown */
}
.drop-item:hover{
  background:rgba(0,0,0,.04);
}

/* Aktionen rechts */
.actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.icon-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  width:46px;
  height:46px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.06);
  background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(255,255,255,.82));
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  box-shadow:0 10px 25px rgba(0,0,0,.08), inset 0 0 0 1px rgba(255,255,255,.85);
  cursor:pointer;
  transition:transform .15s, background .2s, box-shadow .2s;
}
.icon-btn:hover{
  transform:translateY(-1px);
  background:rgba(245,245,245,0.98);
  box-shadow:0 14px 32px rgba(0,0,0,.12), inset 0 0 0 1px rgba(255,255,255,.9);
}
.icon-btn:active{
  transform:scale(.97);
}
.nav-icon-img{
  width:20px;
  height:20px;
  opacity:.9;
  transition:opacity .2s;
}
.icon-btn:hover .nav-icon-img{
  opacity:1;
}

/* Burger */
.burger{
  display:none;
  width:46px;
  height:46px;
  border:none;
  border-radius:14px;
  background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(255,255,255,.82));
  box-shadow:0 10px 25px rgba(0,0,0,.08), inset 0 0 0 1px rgba(255,255,255,.85);
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  cursor:pointer;
}
.burger span{
  width:22px;
  height:2px;
  background:var(--ink);
  border-radius:2px;
  transition:transform .2s, opacity .2s;
}
.nav-open .burger span:nth-child(1){
  transform:rotate(45deg) translate(4px,4px);
}
.nav-open .burger span:nth-child(2){
  opacity:0;
}
.nav-open .burger span:nth-child(3){
  transform:rotate(-45deg) translate(4px,-4px);
}

/* Mobile-Menü */
.mobile-menu{
  display:none;
  position:fixed;
  left:0;
  right:0;
  top:88px;
  bottom:0;
  z-index:100;
  padding:20px 0 40px;
  background:rgba(255,255,255,.86);
  backdrop-filter:blur(20px) saturate(160%);
  -webkit-backdrop-filter:blur(20px) saturate(160%);
  flex-direction:column;
  align-items:center;
  gap:14px;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
}
body.nav-open #mobileMenu{
  display:flex;
}

.mobile-menu .mobile-label{
  font-size:1.1rem;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  opacity:.8;
  margin-top:6px;
}
.mobile-menu > a{
  font-size:1.05rem;
  font-weight:600;
}
.mobile-menu .mobile-sub{
  font-size:1rem;
  font-weight:500;
  opacity:.9;
  margin-top:2px;
}

/* Breakpoint */
@media (max-width:960px){
  /* Menü-Toggle */
  .menu{
    display:none;
  }
  .burger{
    display:flex;
  }

  /* NAV: mobil als normale Leiste ganz oben */
  .nav{
    top:0;                          /* kein Abstand mehr nach oben */
  }
  .nav-inner{
    max-width:100%;                 /* volle Breite */
    margin:0;                       /* keine zentrierte Box */
    border-radius:0;                /* keine runden Ecken */
    border-left:none;
    border-right:none;
    min-height:64px;
    padding:8px 14px;
    position:relative;
    justify-content:center;
  }

  /* Mobile-Layout: Burger links, Logo mittig, CTAs rechts */
  .nav .brand{
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    z-index:2;
  }
  .nav .brand img{
    height:36px;
  }

  .nav .actions{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:8px;
  }

  .nav .actions .burger{
    order:-1;
    margin-right:auto;
  }

  .nav .actions .icon-btn,
  .nav .actions .burger{
    width:42px;
    height:42px;
    border-radius:12px;
  }

  /* Mobile-Menü direkt unter der Nav-Leiste starten lassen */
  .mobile-menu{
    top:64px;                       /* Höhe der Nav-Leiste (ca. 64px) */
  }

  /* Optional: etwas weniger Top-Padding im Hero auf Handy */
  .hero{
    padding-top:100px;              /* statt 140px o.ä. */
  }
}

/* ============= Hero & Sektionen ============= */

.hero{
  padding:140px 0 60px;
  background:#ffffff;
  border-bottom:1px solid #e5e5e5;
}

.grid-hero{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:40px;
  align-items:center;
}

.hero-img{
  border-radius:16px;
  box-shadow:0 8px 20px rgba(0,0,0,.10); /* leichter Schlagschatten */
}

.lead{
  font-size:1.05rem;
}

.section-2col{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:40px;
  align-items:center;
}

.section-2col.reverse{
  grid-template-columns:.9fr 1.1fr;
}

/* Bild-Wrapper ohne eigene Karte, nur Bild selbst hat Schatten/Rundung */
.img-card{
  background:transparent;
  border:none;
  box-shadow:none;
  padding:0;
  border-radius:16px;
}

/* >>> Einheitliche Bildbreite überall <<< */
.img-card img{
  border-radius:16px;
  box-shadow:0 8px 20px rgba(0,0,0,.10);
  width:100%;
  max-width:420px;   /* sorgt für Konsistenz */
  margin:0 auto;     /* immer zentriert in der Spalte */
}

/* Allfinanz-Kreisgrafik: komplett RAW (kein Shadow, kein Rahmen) */
.allfinanz-raw{
  display:block;
  margin:32px auto 0;
  width:100%;
  max-width:875px; /* vorher 700px → jetzt ca. 25 % größer */
  border:none !important;
  border-radius:0 !important;
  box-shadow:none !important;
}

/* ============= Buttons ============= */

.btn-primary{
  background:var(--apple-blue);
  color:#fff;
  border:none;
  border-radius:999px;
  padding:10px 20px;
  font-weight:600;
  font-size:.95rem;
  cursor:pointer;
  transition:background .15s ease;
}
.btn-primary:hover{
  background:var(--apple-blue-hover);
}

.btn-secondary,
.btn-secondary-whatsapp,
.btn-secondary-outline{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#ffffff;
  color:var(--apple-blue);
  border-radius:999px;
  border:1px solid rgba(48,58,71,.78);
  padding:10px 20px;
  font-weight:600;
  font-size:.95rem;
  line-height:1;
  text-decoration:none;
  cursor:pointer;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.88),
    0 1px 2px rgba(15,23,42,.06);
  transition:
    background .2s ease,
    color .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

@media (hover:hover){
  .btn-secondary:hover,
  .btn-secondary-whatsapp:hover,
  .btn-secondary-outline:hover,
  .btn-secondary:focus-visible,
  .btn-secondary-whatsapp:focus-visible,
  .btn-secondary-outline:focus-visible{
    background:linear-gradient(180deg,#eef3f8 0%,#e4eaf2 100%);
    border-color:rgba(44,53,65,.86);
    color:#3d434c;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.48),
      0 3px 10px rgba(15,23,42,.10);
  }
}

.btn-secondary:active,
.btn-secondary-whatsapp:active,
.btn-secondary-outline:active{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    0 1px 3px rgba(15,23,42,.08);
}

@media (prefers-reduced-motion: reduce){
  .btn-secondary,
  .btn-secondary-whatsapp,
  .btn-secondary-outline{
    transition:none;
  }
}

/* Premium-Hover für Link-Buttons: dunkle Füllung von links nach rechts */
a.btn-premium-link{
  position:relative;
  overflow:hidden;
  isolation:isolate;
  background-image:linear-gradient(120deg,#3a3f46 0%, #2a2f36 100%);
  background-repeat:no-repeat;
  background-size:0% 100%;
  background-position:left center;
  transition:
    background-size 340ms cubic-bezier(.22,1,.36,1),
    color 220ms ease,
    border-color 220ms ease,
    transform 220ms ease,
    box-shadow 260ms ease;
  will-change:background-size, transform;
}

@media (hover:hover){
  a.btn-premium-link:not(.btn-secondary):not(.btn-secondary-whatsapp):not(.btn-secondary-outline):hover,
  a.btn-premium-link:not(.btn-secondary):not(.btn-secondary-whatsapp):not(.btn-secondary-outline):focus-visible,
  a.btn-premium-link:not(.btn-secondary):not(.btn-secondary-whatsapp):not(.btn-secondary-outline).is-leaving{
    background-size:100% 100%;
    color:#fff !important;
    border-color:#2a2f36 !important;
    transform:translateY(-1px);
    box-shadow:0 12px 28px rgba(18,22,28,.24);
  }
}

a.btn-premium-link:active{
  transform:translateY(0);
}

@media (prefers-reduced-motion: reduce){
  a.btn-premium-link{
    transition:none;
  }
}

/* ============= Cookie-Consent (DSGVO) ============= */

body.cookie-settings-open{
  overflow:hidden;
}

.cookie-consent{
  position:fixed;
  left:16px;
  right:16px;
  bottom:16px;
  z-index:170;
  padding:16px 18px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,0.85);
  background:linear-gradient(180deg,rgba(255,255,255,0.96),rgba(255,255,255,0.84));
  backdrop-filter:blur(16px) saturate(170%);
  -webkit-backdrop-filter:blur(16px) saturate(170%);
  box-shadow:0 18px 32px rgba(0,0,0,0.16), 0 3px 10px rgba(0,0,0,0.08);
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:flex-end;
  gap:12px 18px;
}

.cookie-consent-text{
  margin:0;
  max-width:820px;
  color:var(--muted);
  font-size:.88rem;
  line-height:1.5;
}

.cookie-consent-text a{
  color:var(--apple-blue);
  text-decoration:underline;
}

.cookie-consent-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
}

.cookie-btn{
  border:none;
  border-radius:999px;
  padding:9px 15px;
  font-weight:600;
  font-size:.82rem;
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.cookie-btn:active{
  transform:translateY(0);
}

.cookie-btn-primary{
  color:#fff;
  background:var(--apple-blue);
  box-shadow:0 8px 18px rgba(0,113,227,0.28);
}

.cookie-btn-primary:hover{
  background:var(--apple-blue-hover);
  transform:translateY(-1px);
}

.cookie-btn-outline{
  background:#fff;
  color:var(--ink);
  border:1px solid rgba(17,17,17,0.18);
}

.cookie-btn-outline:hover{
  border-color:#1f1f1f;
  transform:translateY(-1px);
}

.cookie-btn-ghost{
  background:rgba(17,17,17,0.06);
  color:var(--ink);
}

.cookie-btn-ghost:hover{
  background:rgba(17,17,17,0.12);
  transform:translateY(-1px);
}

.cookie-settings-backdrop{
  position:fixed;
  inset:0;
  background:rgba(3,10,18,0.54);
  backdrop-filter:blur(1px);
  -webkit-backdrop-filter:blur(1px);
  z-index:171;
  opacity:0;
  pointer-events:none;
  transition:opacity .22s ease;
}

.cookie-settings-modal{
  position:fixed;
  inset:0;
  z-index:172;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  opacity:0;
  pointer-events:none;
  transition:opacity .22s ease;
}

.cookie-settings-backdrop.is-visible,
.cookie-settings-modal.is-visible{
  opacity:1;
  pointer-events:auto;
}

.cookie-settings-card{
  width:min(100%,680px);
  max-height:min(92vh,760px);
  overflow:auto;
  border-radius:22px;
  border:1px solid rgba(255,255,255,0.84);
  background:linear-gradient(180deg,rgba(255,255,255,0.97),rgba(255,255,255,0.88));
  box-shadow:0 24px 44px rgba(0,0,0,0.2), 0 4px 14px rgba(0,0,0,0.09);
  padding:22px 22px 20px;
}

.cookie-settings-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.cookie-settings-header h3{
  margin:0;
  color:var(--ink);
  font-size:1.12rem;
}

.cookie-settings-close{
  border:none;
  background:rgba(17,17,17,0.07);
  color:var(--ink);
  width:34px;
  height:34px;
  border-radius:999px;
  font-size:1.15rem;
  line-height:1;
  cursor:pointer;
}

.cookie-settings-intro{
  margin:12px 0 14px;
  color:var(--muted);
  font-size:.9rem;
}

.cookie-settings-option{
  border:1px solid rgba(17,17,17,0.1);
  border-radius:14px;
  padding:12px 13px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-top:10px;
  cursor:pointer;
}

.cookie-settings-option strong{
  display:block;
  color:var(--ink);
  font-size:.9rem;
  margin-bottom:2px;
}

.cookie-settings-option p{
  margin:0;
  color:var(--muted);
  font-size:.83rem;
  line-height:1.45;
}

.cookie-settings-option input[type="checkbox"]{
  margin-top:2px;
  width:18px;
  height:18px;
  accent-color:var(--apple-blue);
  flex:0 0 auto;
}

.cookie-settings-option-fixed{
  cursor:default;
}

.cookie-option-state{
  border-radius:999px;
  background:rgba(0,113,227,0.12);
  color:#0f4f92;
  padding:6px 10px;
  font-size:.75rem;
  font-weight:600;
  white-space:nowrap;
}

.cookie-settings-actions{
  margin-top:16px;
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
}

/* Wenn das Menü offen ist, Banner ausblenden (Mobile) */
body.nav-open .cookie-consent{
  display:none !important;
}

body.cookie-settings-open .cookie-consent{
  display:none !important;
}

@media (max-width:720px){
  .cookie-consent{
    left:10px;
    right:10px;
    bottom:10px;
    padding:13px 12px;
    border-radius:14px;
  }

  .cookie-consent-actions{
    width:100%;
    justify-content:flex-start;
  }

  .cookie-settings-modal{
    padding:10px;
  }

  .cookie-settings-card{
    border-radius:16px;
    padding:16px 14px;
  }

  .cookie-settings-actions{
    justify-content:flex-start;
  }
}

/* ============= Footer ============= */

.site-footer{
  padding:48px 0 66px;
  color:var(--muted);
}

.site-footer-wrap{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.site-footer-main{
  display:grid;
  grid-template-columns:1.15fr 1.7fr 1.15fr;
  gap:16px;
}

.site-footer-card{
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.72));
  border:1px solid rgba(255,255,255,0.82);
  border-radius:24px;
  box-shadow:0 16px 34px rgba(0,0,0,0.09), 0 2px 7px rgba(0,0,0,0.04);
  backdrop-filter:blur(18px) saturate(170%);
  -webkit-backdrop-filter:blur(18px) saturate(170%);
  padding:22px 22px 20px;
}

.site-footer-card h2,
.site-footer-card h3,
.site-footer-card h4{
  color:var(--ink);
  margin:0 0 12px;
}

.site-footer-card h2{
  font-size:1.22rem;
  line-height:1.3;
}

.site-footer-card h3{
  font-size:1rem;
  letter-spacing:0.02em;
}

.site-footer-card h4{
  font-size:.83rem;
  letter-spacing:0.09em;
  text-transform:uppercase;
  margin-bottom:10px;
}

.site-footer-card p{
  margin:0 0 12px;
  font-size:.92rem;
}

.site-footer-eyebrow{
  margin:0 0 9px;
  font-size:.72rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--muted);
  opacity:.86;
}

.site-footer-contact-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.site-footer-contact-list li{
  display:flex;
  justify-content:space-between;
  gap:14px;
  border-top:1px solid rgba(0,0,0,0.06);
  padding-top:8px;
  font-size:.89rem;
}

.site-footer-contact-list li:first-child{
  border-top:none;
  padding-top:0;
}

.site-footer-contact-list span{
  color:var(--muted);
}

.site-footer-contact-list a{
  color:var(--ink);
  font-weight:600;
  transition:color .2s ease, opacity .2s ease;
}

.site-footer-contact-list a:hover{
  color:var(--apple-blue);
}

.site-footer-link-groups{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px 16px;
}

.site-footer-link-group{
  min-width:0;
}

.site-footer-link-group ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.site-footer-link-group a{
  color:var(--muted);
  font-size:.9rem;
  line-height:1.4;
  transition:color .2s ease, transform .2s ease;
  display:inline-block;
  overflow-wrap:anywhere;
}

.site-footer-link-group a:hover{
  color:var(--ink);
  transform:translateX(2px);
}

.site-footer-location address{
  margin:0 0 12px;
  font-style:normal;
  line-height:1.62;
  color:var(--muted);
  font-size:.91rem;
}

.site-footer-map-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(17,17,17,0.13);
  border-radius:999px;
  padding:8px 13px;
  color:var(--ink);
  font-weight:600;
  font-size:.83rem;
  transition:background .2s ease, color .2s ease, border-color .2s ease;
}

.site-footer-map-link:hover{
  background:#232323;
  color:#fff;
  border-color:#232323;
}

.site-footer-map{
  position:relative;
  margin-top:12px;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,0.08);
  box-shadow:0 8px 20px rgba(0,0,0,0.08);
  background:#e8edf5;
}

.site-footer-map-placeholder{
  padding:14px 14px 16px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
}

.site-footer-map-placeholder p{
  margin:0;
  color:var(--muted);
  font-size:.84rem;
  line-height:1.45;
}

.site-footer-map-consent-btn{
  border:none;
  border-radius:999px;
  padding:8px 12px;
  font-size:.8rem;
  font-weight:600;
  background:#1f1f1f;
  color:#fff;
  cursor:pointer;
}

.site-footer-map-consent-btn:hover{
  background:#111;
}

.site-footer-map iframe{
  width:100%;
  height:190px;
  border:0;
  display:none;
}

.site-footer-map.is-active iframe{
  display:block;
}

.site-footer-map.is-active .site-footer-map-placeholder{
  display:none;
}

.site-footer-bottom{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:8px 16px;
  padding:8px 4px 0;
  font-size:.84rem;
}

.site-footer-bottom p{
  margin:0;
}

.site-footer-legal a,
.site-footer-credit a{
  color:var(--ink);
  font-weight:600;
}

.site-footer-cookie-settings{
  border:none;
  background:transparent;
  padding:0;
  margin:0;
  color:var(--ink);
  font:inherit;
  font-weight:600;
  cursor:pointer;
}

.site-footer-cookie-settings:hover{
  color:var(--apple-blue);
}

.site-footer-legal a:hover,
.site-footer-credit a:hover{
  color:var(--apple-blue);
}

.allfinanz-page .site-footer{
  color:rgba(236,236,236,0.75);
}

.allfinanz-page .site-footer-card{
  background:linear-gradient(180deg, rgba(26,26,26,0.96), rgba(12,12,12,0.9));
  border:1px solid rgba(255,255,255,0.11);
  box-shadow:0 20px 36px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(255,255,255,0.03);
}

.allfinanz-page .site-footer-card h2,
.allfinanz-page .site-footer-card h3,
.allfinanz-page .site-footer-card h4,
.allfinanz-page .site-footer-contact-list a,
.allfinanz-page .site-footer-map-link,
.allfinanz-page .site-footer-legal a,
.allfinanz-page .site-footer-credit a{
  color:#f4f4f4;
}

.allfinanz-page .site-footer-contact-list span,
.allfinanz-page .site-footer-link-group a,
.allfinanz-page .site-footer-location address,
.allfinanz-page .site-footer-map-placeholder p{
  color:rgba(230,230,230,0.76);
}

.allfinanz-page .site-footer-map-link{
  border-color:rgba(255,255,255,0.22);
}

.allfinanz-page .site-footer-map-link:hover{
  background:#f4f4f4;
  color:#111;
  border-color:#f4f4f4;
}

.allfinanz-page .site-footer-map{
  border-color:rgba(255,255,255,0.14);
  background:#171717;
}

.allfinanz-page .site-footer-map-consent-btn{
  background:#f4f4f4;
  color:#111;
}

.allfinanz-page .site-footer-map-consent-btn:hover{
  background:#fff;
}

.allfinanz-page .site-footer-cookie-settings{
  color:#f4f4f4;
}

.allfinanz-page .site-footer-cookie-settings:hover{
  color:#fff;
}

@media (max-width:1180px){
  .site-footer-main{
    grid-template-columns:1fr;
  }

  .site-footer-link-groups{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:720px){
  .site-footer-card{
    border-radius:20px;
    padding:18px 16px;
  }

  .site-footer-link-groups{
    grid-template-columns:1fr;
  }

  .site-footer-bottom{
    flex-direction:column;
    align-items:flex-start;
  }
}

/* ============= Calendly Modal ============= */

.calendly-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease;
  z-index:150;
  display:none;          /* Wichtig: standardmäßig GAR NICHT im Layout */
}

.calendly-modal{
  position:fixed;
  inset:0;
  display:none;          /* Wichtig: standardmäßig GAR NICCHT im Layout */
  align-items:center;
  justify-content:center;
  opacity:0;
  pointer-events:none;
  z-index:151;
}

.calendly-card{
  width:min(100%,900px);
  max-height:90vh;
  border-radius:12px;
  background:#ffffff;
  border:1px solid #e5e5e5;
  box-shadow:0 10px 30px rgba(0,0,0,.18);
  display:flex;
  flex-direction:column;
}

.calendly-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 14px;
  border-bottom:1px solid #eee;
}
.calendly-header h3{
  margin:0;
  font-size:1rem;
}
.calendly-close{
  border:none;
  background:transparent;
  font-size:1.2rem;
  cursor:pointer;
}
.calendly-body{
  padding:10px;
  overflow:hidden;
}

/* sichtbarer Zustand */
.calendly-overlay.is-visible{
  display:block;       /* Wenn sichtbar: im Layout und klickbar */
  opacity:1;
  pointer-events:auto;
}

.calendly-modal.is-visible{
  display:flex;        /* Wenn sichtbar: zentriert */
  opacity:1;
  pointer-events:auto;
}

/* ============= Vergleichsrechner Modal ============= */

.comparison-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease;
  z-index:150;
  display:none;
}

.comparison-modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  opacity:0;
  pointer-events:none;
  z-index:151;
}

.comparison-card{
  width:min(100%,1060px);
  max-height:92vh;
  border-radius:14px;
  background:#ffffff;
  border:1px solid #dbe4f1;
  box-shadow:0 16px 38px rgba(0,0,0,.2);
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

.comparison-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:10px 14px;
  border-bottom:1px solid #e6edf7;
  background:linear-gradient(180deg,#f8fbff 0%, #ffffff 100%);
}

.comparison-header h3{
  margin:0;
  font-size:1rem;
}

.comparison-close{
  border:none;
  background:transparent;
  font-size:1.2rem;
  cursor:pointer;
}

.comparison-switches{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:10px 14px;
  border-bottom:1px solid #e6edf7;
  background:#f8fbff;
}

.comparison-switch{
  border:1px solid #c9d8ee;
  background:#ffffff;
  color:var(--ink);
  padding:7px 12px;
  border-radius:999px;
  font-size:.78rem;
  font-weight:600;
  cursor:pointer;
  transition:background .2s ease, color .2s ease, border-color .2s ease;
}

.comparison-switch.is-active{
  background:var(--apple-blue);
  border-color:var(--apple-blue);
  color:#fff;
}

.comparison-body{
  flex:1;
  min-height:0;
  padding:10px;
  background:#f4f8ff;
}

.comparison-iframe{
  width:100%;
  height:100%;
  min-height:74vh;
  border:1px solid #d8e4f6;
  border-radius:12px;
  background:#fff;
}

.comparison-overlay.is-visible{
  display:block;
  opacity:1;
  pointer-events:auto;
}

.comparison-modal.is-visible{
  display:flex;
  opacity:1;
  pointer-events:auto;
}

/* ============= Responsive ============= */

@media (max-width:960px){
  .menu{
    display:none;
  }
  .burger{
    display:flex;
  }

  .grid-hero{
    grid-template-columns:1fr;
    text-align:center;
  }
  .section-2col,
  .section-2col.reverse{
    grid-template-columns:1fr;
    text-align:center;
  }

  /* Reihenfolge: immer erst Text (inkl. Button), dann Bild/Animation */
  .grid-hero > .section-text,
  .section-2col > .section-text,
  .section-2col.reverse > .section-text{
    order:1;
  }

  .grid-hero > .img-card,
  .section-2col > .img-card,
  .section-2col.reverse > .img-card{
    order:2;
  }

  /* Bilder-Wrapper auf Mobile ohne Extra-Karte;
     Bildgröße & Shadow kommen aus .img-card img oben */
  .img-card{
    margin-top:20px;
    background:transparent;
    border:none;
    padding:0;
    box-shadow:none;
  }

  /* Allfinanz-Grafik auf Mobile etwas schmaler, weiterhin RAW */
  .allfinanz-raw{
    width:80%;
    max-width:none;
  }

  .comparison-card{
    width:min(100%,96vw);
    max-height:94vh;
    border-radius:12px;
  }

  .comparison-header{
    padding:10px 12px;
  }

  .comparison-switches{
    padding:8px 12px;
  }

  .comparison-body{
    padding:8px;
  }

  .comparison-iframe{
    min-height:76vh;
    border-radius:10px;
  }
}

/* ===================== ALLFINANZ: DUNKLE, GEBLURTE NAV ===================== */

.allfinanz-page .nav {
  top: 16px;
}

/* Schwarze Glas-Pill */
.allfinanz-page .nav-inner{
  max-width:1180px;
  margin:0 auto;
  padding:10px 24px;
  border-radius:24px;

  background:linear-gradient(
    180deg,
    rgba(10,10,10,0.92),
    rgba(18,18,18,0.88)
  );
  border:1px solid rgba(255,255,255,0.08);
  backdrop-filter:blur(20px) saturate(180%);
  -webkit-backdrop-filter:blur(20px) saturate(180%);
  box-shadow:
    0 22px 50px rgba(0,0,0,0.85),
    0 0 0 1px rgba(255,255,255,0.02);
}

/* Logo etwas heller wirken lassen */
.allfinanz-page .brand img{
  height:40px;
  filter:drop-shadow(0 0 4px rgba(0,0,0,0.6));
}

/* Menülinks: hell auf dunkel */
.allfinanz-page .menu a,
.allfinanz-page .nav-link{
  color:#f5f5f5;
  opacity:.85;
}
.allfinanz-page .menu a:hover,
.allfinanz-page .nav-link:hover{
  background:rgba(255,255,255,0.06);
  opacity:1;
}

/* Dropdown-Karten dunkel-transparent */
.allfinanz-page .dropdown-menu{
  background:linear-gradient(
    180deg,
    rgba(20,20,20,0.98),
    rgba(15,15,15,0.96)
  );
  border:1px solid rgba(255,255,255,0.08);
  box-shadow:0 18px 40px rgba(0,0,0,0.85);
}
.allfinanz-page .drop-item{
  color:#f5f5f5;
}
.allfinanz-page .drop-item:hover{
  background:rgba(255,255,255,0.06);
}

/* Icon-Buttons rechts ebenfalls dark glass */
.allfinanz-page .icon-btn{
  background:linear-gradient(
    180deg,
    rgba(35,35,35,0.98),
    rgba(18,18,18,0.95)
  );
  border:1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 12px 28px rgba(0,0,0,0.8),
    inset 0 0 0 1px rgba(255,255,255,0.05);
}
.allfinanz-page .icon-btn:hover{
  background:rgba(60,60,60,0.98);
  box-shadow:
    0 16px 34px rgba(0,0,0,0.9),
    inset 0 0 0 1px rgba(255,255,255,0.08);
}
.allfinanz-page .nav-icon-img{
  opacity:0.9;
}
.allfinanz-page .icon-btn:hover .nav-icon-img{
  opacity:1;
}

/* Burger im Dark-Mode */
.allfinanz-page .burger{
  background:linear-gradient(
    180deg,
    rgba(35,35,35,0.98),
    rgba(18,18,18,0.95)
  );
  border:1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 10px 25px rgba(0,0,0,0.8),
    inset 0 0 0 1px rgba(255,255,255,0.05);
}
.allfinanz-page .burger span{
  background:#f5f5f5;
}

/* Mobile: bleibt dunkel, vollbreit */
@media (max-width:960px){
  .allfinanz-page .nav{
    top:0;
  }
  .allfinanz-page .nav-inner{
    max-width:100%;
    border-radius:0;
    border-left:none;
    border-right:none;
  }
  .allfinanz-page .brand img{
    height:36px;
  }
  .allfinanz-page .mobile-menu{
    background:rgba(10,10,10,0.98);
    backdrop-filter:blur(20px) saturate(160%);
    -webkit-backdrop-filter:blur(20px) saturate(160%);
  }
  .allfinanz-page .mobile-menu .mobile-label,
  .allfinanz-page .mobile-menu a{
    color:#f5f5f5;
  }
}

.mobile-cta {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 22px;
  border-radius: 999px;
  border: none;

  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;

  color: #1e1305;
  background: linear-gradient(135deg, #f7d78a 0%, #e5b85a 50%, #c99633 100%);

  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  transition:
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    filter 0.18s ease;
}

/* Hover: leicht heller + etwas mehr Lift */
.mobile-cta-link:hover,
.mobile-cta-link:focus {
  background: linear-gradient(135deg, #fbe29b 0%, #edc568 50%, #d09e39 100%);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
  filter: brightness(1.02);
}

/* Active: minimal eingedrückt */
.mobile-cta-link:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

/* Kunden-App: Buttons mobil zentriert – speziell im Hero */
@media (max-width: 960px){
  /* Text im Hero mittig */
  .kundenapp-page .hero .section-text{
    text-align: center;
  }

  /* Hero-Button wirklich zentrieren */
  .kundenapp-page .hero .btn-primary{
    display: inline-block;
    margin: 0 auto;
  }
}

/* ===================== Wohngebäude-Seite – Feintuning ===================== */

/* Hero etwas luftiger und auf Handy optisch perfekt zentriert */
.wohngebaeude-page .hero {
  background:#ffffff;         /* wie jetzt auch – nur explizit */
}

/* Mobile-Feintuning nur für diese Seite */
@media (max-width: 960px){

  /* Hero: etwas mehr Abstand nach unten, wirkt weniger "gequetscht" */
  .wohngebaeude-page .hero{
    padding-top:100px;        /* Nav-Höhe + Luft */
    padding-bottom:50px;
  }

  /* Text + Button im Hero mittig */
  .wohngebaeude-page .hero .section-text{
    text-align:center;
  }

  /* Hero-Bild immer sauber mittig */
  .wohngebaeude-page .hero .img-card img{
    margin:20px auto 0;
  }

  /* Sections darunter: alles mittig, Bild schön eingerückt */
  .wohngebaeude-page .section-2col,
  .wohngebaeude-page .section-2col.reverse{
    grid-template-columns:1fr;
    text-align:center;
  }

  .wohngebaeude-page .section-2col .img-card,
  .wohngebaeude-page .section-2col.reverse .img-card{
    margin-top:20px;
  }
}
