/* CSS anpassbar */

/* --- Reset für Haupt-Wrapper: kein helles BG --- */
main, .main, .content, .content-wrapper, .with-right-rail,
.container, .container-fluid, .row, section, article {
  background: transparent !important;
}

/* Seite dunkel lassen */
html, body {
  background: #121826 !important;
  color: #e8ecf3;
}

/* Panels/Boxen bewusst dunkel (wie vorgesehen) */
.card,
.startbox,
.startbox-hero {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.12);
}


/* Sidebar-Boxen dürfen hell bleiben */
.sidebar-ads .ad-placeholder {
  background: #f3f5f7 !important;
}

/* Hero-Text bitte nicht zu blass */
.startbox-hero .box_text p,
.startbox-hero .box_lists li {
  color: #e8ecf3;       /* statt sehr hellem #cfe2ff */
}




h1, h2, h3 {
  font-weight: 600;
  color: #fff;
}

.navbar-dark .navbar-brand, .navbar-dark .nav-link { color: #e9edf3; }
.navbar-dark .nav-link.active { color: #5da9ff; }
a { color: #5da9ff; }
.card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); }
.form-control, .form-select { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: #e9edf3; }
.form-control:focus { background: rgba(255,255,255,0.08); color: #f5f7fa; }
.cookie-banner { position: fixed; left: 0; right: 0; bottom: -200px; background: rgba(0,0,0,0.85); color: #f5f7fa; transition: bottom .35s ease; z-index: 1080; }
.cookie-banner.show { bottom: 0; }

/* Layout mit rechter Sidebar (sichtbar ab LG) */
@media (min-width: 992px) {
  .with-right-rail { display: grid; grid-template-columns: 1fr 220px; gap: 1.5rem; }
}

/* Sidebar-Container: keine Rahmen, kein Radius, padding/margins wie gewünscht */
.sidebar-ads {
  padding: 10px;
  margin-top: -20px;
  margin-bottom: 10px;
}



/* Wenn echte Banner in verschiedenen Größen genutzt werden */
.ad-item { margin-bottom: 10px; } /* für <img> oder <iframe> in variabler Größe */
.ad-item img, .ad-item iframe { max-width: 100%; height: auto; display: block; }


/*Musti ergänzt*/
/* === Boxen allgemein === */
.startbox {
  position: relative;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 8px 9px 10px;
  color: #d9e2ef;
}


.startbox .box_title {
  position: relative;
  padding-right: 80px; /* Platz rechts für Kreis */
  margin-bottom: 10px;
}

.startbox .box_title h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
    display: flex;
  align-items: center;
  gap: 8px;
}
.startbox .box_title h2 {font-size:1.25rem;font-weight:700;margin:0;display:flex;align-items:center;gap:8px;}.box_title .title-icon{height:30px;}





.startbox .infoCircle {
  position: absolute;
  top: 0;
  right: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #0d6efd;
  color: #f5f7fa;
  font-size: 12px;
  line-height: 1.2;
  display: flex;
  flex-direction: column;   /* ✅ Text untereinander anordnen */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4px;             /* etwas Luft für den Text */
  white-space: normal;      /* <br> aktivieren */
}
.startbox .infoCircle b {
  font-size: 14px;
  line-height: 1.1;
}



.startbox .box_text { margin-bottom: 10px; }
.startbox .box_text2 { margin-bottom: 1px; }
.startbox .box_bulletpoints span {
  display: inline-block;
  margin-bottom: 6px;
  color: #cfe2ff;
}

.startbox a.btn { font-weight: 600; }

/* Mobile */
@media (max-width: 575.98px) {
  .startbox .infoCircle { width: 64px; height: 64px; font-size: 11px; }
  .startbox .box_title { padding-right: 68px; }
}

/* === Equal-Height nur im Bereich .home-boxes === */
.home-boxes .row.g-3 { display: flex; flex-wrap: wrap; }
.home-boxes .row.g-3 > [class*="col-"] { display: flex; }
.home-boxes .startbox {
  flex: 1 1 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.home-boxes .startbox .box_text,
.home-boxes .startbox .box_text2,
.home-boxes .startbox .box_bulletpoints { flex-grow: 1; }

/* === Hero-Startbox oben === */
.startbox-hero {
  /* KEINE max-width hier, da Hero in der linken Spalte steht! */
  position: relative;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 15px;
  color: #e9edf3;

}



.startbox-hero .box_title {
  position: relative;
  padding-right: 84px;
  margin-bottom: 12px;
}

.startbox-hero .box_title h2 {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.startbox-hero .infoCircle {
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #0d6efd;
  color: #f5f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  text-align: center;
}
.startbox-hero .infoCircle b { font-size: 15px; }

.startbox-hero .box_text p { margin-bottom: 12px; color: #d9e2ef; }
.startbox-hero .box_text2 p { margin-bottom: 1px; color: #d9e2ef; }

.startbox-hero .box_lists li { color: #cfe2ff; margin: 2px 0; }
.startbox-hero .btn.btn-lg { font-weight: 700; }

@media (max-width: 575.98px) {
  .startbox-hero .infoCircle { width: 64px; height: 64px; font-size: 11px; }
  .startbox-hero .box_title { padding-right: 68px; }
}

/* Logo minimal höher setzen und sauber ausrichten */
.navbar .brand-logo{
  display:block;          /* verhindert Baseline-Gap */
  height:48px;            /* bei Bedarf 38–42px justieren */
  margin-top:-4px;        /* Logo optisch etwas nach oben */
}

/* Tagline-Feintuning */



/* Slogan nie ausblenden */
.navbar .brand-tagline-xs{ 
  display:block !important;
  margin-top:2px;
  margin-bottom:-3px;
  font-family: Verdana, sans-serif;
  font-size:8px;
  line-height:1;
  font-weight:700;
  letter-spacing:.3px;
  color:#9ec1ff;
  white-space:nowrap;
}

/* Optional: etwas kompakterer Brand-Bereich */
.navbar .navbar-brand {
  padding-top: .1rem;
  padding-bottom: .1rem;
}

/* Mobil etwas kleiner/kompakter */
@media (max-width:480px){
  .navbar .brand-logo{ height:47px; }
  .navbar .brand-tagline-xs{ font-size:10px; letter-spacing:.2px; }
}



.ad-placeholder {
  width: 180px;  /*220*/
  background: #f3f5f7;
  border: none;
  border-radius: 6px;
  color: #121826;
  font-size: 13px;
  font-weight: 600;
  margin: 10px auto;
  /* vertikale Ausrichtung */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  font-family: Verdana, sans-serif;
  
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.ad-header {
  width: 100%;
  background-color: #2a4eff; /* kräftiges Blau */
  color: #f5f7fa;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  padding: 8px 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px; /* leichte Weite – wirkt moderner */
}

/* Inhalt */
.hotline-text {
  padding: 12px 14px; /* etwas mehr Luft */
  font-size: 0.9em;
  text-align: center;
  color: #222;
  line-height: 1.5; /* etwas besser lesbar */
}

.hotline-text strong {
  color: #000;
}

.hotline-company {
  font-size: 0.82em;
  display: block;
  color: #333;
  font-weight: 700;
  margin-top: 10px; /* etwas mehr Abstand nach oben */
  margin-bottom: 4px;
}

.hotline-company + .hotline-company {
  font-weight: 500;
  color: #555;
  margin-top: 0; /* kein doppelter Abstand zwischen den beiden */
}

/* Telefonnummer */
.hotline-number {
  font-size: 1.25em;
  color: #00a85a; /* kräftiges Grün */
  font-weight: 700;
  text-decoration: none;
}

.hotline-number:hover {
  text-decoration: underline; /* bessere Usability */
}

/* Öffnungszeiten */
.hotline-hours {
  font-size: 0.8em;
  color: #555;
  display: block;
  margin-top: 6px;
  letter-spacing: 0.2px;
}

/* Telefon-Icon leicht justieren */
#phone_image {
  position: relative;
  top: -2px;
  margin-right: 4px;
}


/* Bilder nebeneinander und mittig */
.image-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;        /* Abstand zwischen den Bildern */
  flex-wrap: wrap;  /* falls zu schmal, umbrechen */
}

.image-row img {
  border-radius: 6px;
  transition: transform 0.2s ease;
}

.image-row img:hover {
  transform: scale(1.05);
}


/* Bannerbereich (Bild mittig und responsiv) */
.image-banner {

  justify-content: center;
  align-items: center;
  padding:10px;
   text-align: center;
}

.image-banner img {
  border-radius: 8px;
  border: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-banner img:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* E-Book Linkbereich */
.ebook-link {
  text-decoration: none;
  color: #111;
  display: inline-block;
  transition: transform 0.2s ease;
}

.ebook-link:hover {
  transform: scale(1.03);
}

/* E-Book-Bild */
.ebook-link img {
  border-radius: 6px;
  border: none;
  margin-bottom: 8px;
}

/* Titel unter dem Bild */
.ebook-title {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
  color: #111;
}

/* Untertext */
.ebook-subtext {
  font-size: 0.8rem;
  color: #00a85a;
  font-weight: 600;
}


section, .ad-placeholder, .card {
  margin-bottom: 25px;
}

p {
  line-height: 1.7;
}

.card {
  padding: 20px;
  border-radius: 10px;
}


/* Verbesserter Stil für den Haupt-Call-to-Action */
.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #1c3fa8, #2a4eff);
  box-shadow: 0 8px 18px rgba(42, 78, 255, 0.45);
  color: #fff;
  transform: none; /* keine Bewegung */
}




/* Auf kleineren Geräten (z. B. Smartphones) */
@media (max-width: 767.98px) {
  .hero-img {
    margin-bottom: 10px;
  }
}


.startbox-hero .hero-img {
  display: block;
  margin: 0 auto; /* <-- zentriert horizontal */
  max-width: 70%;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}


/* Weniger Abstand zwischen Button und Box-Rand */
.startbox-hero .mt-3 {
  margin-top: 15px !important;
}



/* Falls die Box zu hoch wirkt: */
.startbox-hero p.small {
  margin-top: 10px !important;
  margin-bottom: 0 !important;
  opacity: 0.8;
  font-size: 0.8rem;
}


.rotated {
  transform: rotate(-90deg);
  transform-origin: center;
  display: inline-block;
}

.text-center {
  text-align: center;
}

.powered-by-header {
  background: linear-gradient(90deg, #1e2230, #2b3044);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px 3px 0 0;
  color: #e9edf3;
  padding: 2px;               /* ✅ Schreibfehler korrigiert */
  margin: 0 auto;
  max-width: 420px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: system-ui, sans-serif;
  font-size: 12px;                 /* Standardgröße */
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

@media (max-width: 600px) {
  .powered-by-header {
    font-size: 10px;               /* ✅ Kleiner auf mobilen Geräten */
    padding: 1px;          /* optional: etwas kompakter */
  }
}

  
  
.branding {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.site-name {
  font-weight: 400;
  color: #00c896;
}

.powered {
  font-weight: 400;
  opacity: 0.8;
  margin: 0 0.25rem;
}

.verivox-logo {
  width: 15px;
  height: 15px;
  vertical-align: middle;
}

.verivox-name {
  font-weight: 400;
  color: #f49c1a;
}


/* --- Scoped Styles nur für diesen Block --- */
.fk24-email-embed { 
  font-family: Arial, sans-serif; 
  color: #102A43; 
  background-color: #F0F4F8;  /* hellgrau außen */
  padding: 0;
  width: 100%;
    position: relative;
  overflow: hidden; /* schneidet alles außerhalb ab */
}

.fk24-email-embed .wrap {

  width: 100%;
  margin: 0 auto;
  background-color: #fff;      /* Weißer Hintergrund sichtbar */
  border-radius: 0px;
  overflow: hidden;            /* Rundungen wirken richtig */
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.fk24-email-embed .card {
  padding: 10px 15px;
}

/* Kein Scrollen + ausreichend Höhe */
.fk24-email-embed iframe {
  width: 100%;
  height: 6000px;          /* <— Höhe erhöhen! 2000–2500px meist ausreichend */
}




/* Bilder sauber responsiv */
.fk24-email-embed img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  border: 0;
  box-sizing: border-box;
  background-color: #fff;      /* Falls Bild transparent ist */
}

.fk24-email-embed .centered-img img {
  width: 50% !important;   /* halb so breit */
  max-width: 300px;        /* optional: obere Begrenzung */
  height: auto !important;
  margin: 0 auto;
}


/* Button */
.fk24-email-embed .btn {
  display: inline-block;
  padding: 10px 20px;
  background: #9EB71D;
  color: #FFFFFF;
  border: 1px solid #9EB71D;
  border-radius: 4px;
  text-decoration: none;
  line-height: 22px;
  font-size: 15px;
}

.fk24-email-embed .sp-10 { height: 10px; }
.fk24-email-embed .sp-15 { height: 15px; }
.fk24-email-embed .sp-20 { height: 20px; }
.fk24-email-embed .sp-40 { height: 40px; }

.fk24-email-embed .small {
  font-size: 10px;
  line-height: 12px;
  color: #555;
}

@media (max-width: 600px) {
  .fk24-email-embed { padding: 0px; }
  .fk24-email-embed .card { padding: 3px; }
  .startbox-hero { padding: 3px; }
}


/* Baufinanzierung steps */
/* --- Baufinanzierung Steps --- */
.bf-steps {
  --card-bg: #f6f8fb;
  --card-border: #e5ebf3;
  --card-radius: 14px;
  --title: #0a2a44;       /* an euer Farbschema anpassen */
  --text: #16324a;
  --shadow: 0 1px 2px rgba(16,24,40,.06), 0 8px 24px rgba(16,24,40,.06);
  margin-block: 2rem;
}

/* Überschrift */
.bf-steps__title {
  font-size: clamp(1.125rem, 1.2rem + 0.6vw, 1.5rem);
  color: var(--title);
  margin: 0 0 1rem 0;
  text-align: left;
}

/* --- Grid Layout --- */
.bf-steps__grid {
  list-style: none;
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 0;
  grid-template-columns: 1fr; /* Mobil: eine Spalte */
}

/* Tablet: 2 Spalten */
@media (min-width: 600px) {
  .bf-steps__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mittelgroße Bildschirme: 3 Spalten */
@media (min-width: 900px) {
  .bf-steps__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop: exakt 5 gleich breite Spalten */
@media (min-width: 1200px) {
  .bf-steps__grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* --- Step-Karten --- */
/* --- Baufinanzierung Steps --- */
.bf-steps {
  --card-bg: #f6f8fb;
  --card-border: #e5ebf3;
  --card-radius: 14px;
  --title: #0a2a44;
  --text: #16324a;
  --shadow: 0 1px 2px rgba(16,24,40,.06), 0 8px 24px rgba(16,24,40,.06);
  margin-block: 2rem;
}

/* Reset/Safety for equal sizing */
.bf-steps, .bf-steps * { box-sizing: border-box; }
.bf-steps img { max-width: 100%; height: auto; }
.bf-steps p { overflow-wrap: anywhere; word-break: break-word; }

/* Überschrift */
.bf-steps__title {
  font-size: clamp(1.125rem, 1.2rem + 0.6vw, 1.5rem);
  color: var(--title);
  margin: 0 0 1rem 0;
  text-align: left;
}

/* --- Grid Layout (mit minmax(0,1fr) für exakt gleiche Breiten) --- */
.bf-steps__grid {
  list-style: none;
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 0;
  grid-template-columns: repeat(1, minmax(0, 1fr)); /* Mobil */
}

/* Tablet: 2 Spalten */
@media (min-width: 600px) {
  .bf-steps__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mittelgroß: 3 Spalten */
@media (min-width: 900px) {
  .bf-steps__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Desktop: exakt 5 gleich breite Spalten */
@media (min-width: 1200px) {
  .bf-steps__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* --- Step-Karten --- */
/* --- Baufinanzierung Steps --- */
.bf-steps {
  --card-bg: #f6f8fb;
  --card-border: #e5ebf3;
  --card-radius: 14px;
  --title: #0a2a44;
  --text: #16324a;
  --shadow: 0 1px 2px rgba(16,24,40,.06), 0 6px 18px rgba(16,24,40,.05);
  margin-block: 1.5rem; /* etwas kompakter */
}

.bf-steps, .bf-steps * {
  box-sizing: border-box;
}
.bf-steps img {
  max-width: 100%;
  height: auto;
}
.bf-steps p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Überschrift */
.bf-steps__title {
  font-size: clamp(1.125rem, 1.2rem + 0.6vw, 1.5rem);
  color: var(--title);
  margin: 0 0 0.75rem 0;
  text-align: left;
}

/* --- Grid Layout --- */
.bf-steps__grid {
  list-style: none;
  display: grid;
  gap: 0.75rem; /* engeres Grid */
  padding: 0;
  margin: 0;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 600px) {
  .bf-steps__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .bf-steps__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .bf-steps__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* --- Step-Karten --- */
.bf-step {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;

  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: clamp(0.875rem, 0.9rem + 0.4vw, 1.1rem);
  box-shadow: var(--shadow);
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out; /* sanfter Hover */
}

.bf-step:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 4px rgba(16,24,40,.08), 0 6px 16px rgba(16,24,40,.09);
}

/* Inhalte */
.bf-step__badge {
  width: 56px;
  margin-bottom: 0.25rem;
}
.bf-step__heading {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.125rem);
  color: var(--title);
  line-height: 1.2;
}
.bf-step__image {
  width: 110px;
  object-fit: contain;
  margin: 0.4rem 0;
}
.bf-step__text {
  margin-top: auto;
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.bf-steps__source {
  display: block;
  margin-top: 0.5rem;
  color: #667085;
  text-align: left;
  font-size: 0.875rem;
}

/* --- Baufinanzierung Steps Ende --- */