/* ==========================================================================
   SemaFinance — charte graphique commune
   Chargé en dernier sur toutes les pages du site (body.theme-site)
   et sur la page Kredit (body.theme-kredit).
   ========================================================================== */

/* Inter hébergée localement (sous-ensemble latin, pas d'appel à Google Fonts) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter/inter-600.woff2") format("woff2");
}

:root {
  --brand: #f7ca44;
  --brand-600: #e6b52a;
  --brand-100: #fdf4d6;
  --brand-text: #7a5a00; /* jaune foncé lisible sur fond clair (contraste 6:1) */
  --ink: #1c2230;
  --ink-2: #2a3245;
  --text: #4a5160;
  --muted: #6b7280;
  --line: #e6e8ec;
  --bg-soft: #f6f7f9;
  --white: #fff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: none;
  --shadow-lg: none;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Arial, sans-serif;
}

/* ---------- Base ---------- */
/* « clip » et non « hidden » : coupe les débordements horizontaux sans empêcher
   la barre de menu de rester collée en haut (position: sticky) */
html,
body {
  overflow-x: clip;
}

body {
  font-family: var(--font) !important;
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-4, .heading, .navbar-brand, .btn,
.footer .heading-section, .block-30 .heading {
  font-family: var(--font) !important;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  overflow-wrap: break-word;
}

/* Césure seulement sur mobile (mots allemands très longs) */
@media (max-width: 575.98px) {
  h1, h2, h3, .heading { -webkit-hyphens: auto; hyphens: auto; }
}

h2, .h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3, .h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }
.display-4 { font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 600; }
.lead { font-size: 1.08rem; font-weight: 400; color: var(--muted); }

/* Pas de gras dans les contenus : simple accent medium */
strong, b { font-weight: 500; }
.fw-bold, .font-weight-bold { font-weight: 600 !important; }

/* Liens : jaune foncé sur fond clair (le jaune pur n'est lisible que sur fond sombre) */
a { color: var(--brand-text); }
a:hover { color: var(--ink); }

/* Contraste : gris trop clairs du template (#999 / #b3b3b3) remplacés */
.text-muted { color: var(--muted) !important; }
.theme-site .post-entry p,
.theme-site .person-donate p,
.theme-site .person-donate .time,
.theme-site .fundraise-item .donation-time,
.theme-site .fund-raised,
.theme-site .block-6 .media-body p,
.theme-site .date { color: var(--muted); }
.theme-site .person-donate p,
.theme-site .block-6 .media-body p { color: var(--text); }

img { max-width: 100%; }

::selection { background: var(--brand); color: var(--ink); }

/* ---------- Boutons ---------- */
.btn {
  border-radius: var(--radius-sm) !important;
  border: 2px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0 !important;
  text-transform: none !important;
  line-height: 1.4;
  white-space: normal;
  box-shadow: none !important;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn.btn-primary,
.btn.btn-success,
.btn.btn-hero-cta,
.btn-warning {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: var(--ink) !important;
}
.btn.btn-primary:hover,
.btn.btn-success:hover,
.btn.btn-hero-cta:hover,
.btn-warning:hover {
  background: var(--brand-600) !important;
  border-color: var(--brand-600) !important;
  color: var(--ink) !important;
}

.btn.btn-white,
.btn.btn-light {
  background: var(--white) !important;
  border-color: var(--line) !important;
  color: var(--ink) !important;
}
.btn.btn-white:hover,
.btn.btn-light:hover {
  background: var(--ink) !important;
  border-color: var(--ink) !important;
  color: var(--white) !important;
}

.btn-outline-primary,
.btn-outline-light {
  background: transparent !important;
  border-color: var(--brand) !important;
  color: var(--ink) !important;
}
.btn-outline-light { color: var(--white) !important; border-color: rgba(255,255,255,.6) !important; }
.btn-outline-primary:hover,
.btn-outline-light:hover {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: var(--ink) !important;
}

.btn-lg { padding: 0.85rem 1.75rem !important; font-size: 1rem; }

/* ---------- Couleurs utilitaires harmonisées ---------- */
.text-primary { color: var(--brand-600) !important; }
.text-success { color: var(--brand-600) !important; }
.text-warning { color: var(--brand) !important; }
.bg-primary { background: var(--brand) !important; }
.bg-light { background: var(--bg-soft) !important; }
.progress-bar,
.progress-bar.bg-primary { background: var(--brand) !important; }

.alert-info {
  background: var(--brand-100);
  border: 1px solid #f3e2a6;
  color: var(--ink);
  border-radius: var(--radius-sm);
}

/* Loader : couleur de la marque */
#ftco-loader .circular .path { stroke: var(--brand); }

/* ==========================================================================
   SITE (Bootstrap 4, template)
   ========================================================================== */

/* ---------- Navigation ---------- */
:is(.theme-site, .theme-kredit) .navbar-brand {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  color: var(--white) !important;
}
.navbar-brand span { color: var(--brand); }

:is(.theme-site, .theme-kredit) .ftco-navbar-light .navbar-nav > .nav-item > .nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 255, 255, 0.9);
}
:is(.theme-site, .theme-kredit) .ftco-navbar-light .navbar-nav > .nav-item > .nav-link:hover {
  color: var(--brand);
}
@media (min-width: 992px) {
  :is(.theme-site, .theme-kredit) .ftco-navbar-light .navbar-nav > .nav-item > .nav-link {
    white-space: nowrap;
    font-size: 0.86rem;
    padding-left: 0.45rem !important;
    padding-right: 0.45rem !important;
  }
  /* Bouton « Kredit beantragen » centré verticalement avec les autres liens */
  :is(.theme-site, .theme-kredit) .ftco-navbar-light .navbar-nav { align-items: center; }
  :is(.theme-site, .theme-kredit) .ftco-navbar-light .navbar-nav > .nav-item.cta > a { margin-left: 0.5rem; }
  /* Barre sur une ligne : le sélecteur de langue reste dans la largeur du contenu */
  :is(.theme-site, .theme-kredit) .ftco-navbar-light > .container { flex-wrap: nowrap; }
  :is(.theme-site, .theme-kredit) .ftco-navbar-light .navbar-collapse { min-width: 0; }
  .lang-switch { margin-left: 0.5rem; }
  /* « Startseite » masqué sur bureau : le logo ramène déjà à l'accueil (reste dans le menu mobile) */
  :is(.theme-site, .theme-kredit) .ftco-navbar-light .navbar-nav > .nav-item:first-child { display: none; }
  /* le contenu du héros passe sous la barre de navigation */
  .theme-site .block-30 .row { padding: 130px 0 70px; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Écrans moyens : menu resserré pour laisser la place au sélecteur de langue
     (!important : passe devant les règles de base de la page Kredit, plus bas).
     Un libellé traduit trop long (ex. portugais) peut passer sur 2 lignes
     plutôt que de chevaucher ses voisins ; le bouton CTA reste sur une ligne. */
  :is(.theme-site, .theme-kredit) .ftco-navbar-light .navbar-nav > .nav-item > .nav-link {
    font-size: 0.78rem !important;
    padding-left: 0.3rem !important;
    padding-right: 0.3rem !important;
    white-space: normal;
    line-height: 1.25;
    text-align: center;
  }
  :is(.theme-site, .theme-kredit) .ftco-navbar-light .navbar-nav > .nav-item.cta > a { white-space: nowrap; }
  :is(.theme-site, .theme-kredit) .ftco-navbar-light .navbar-nav > .nav-item { min-width: 0; }
  :is(.theme-site, .theme-kredit) .ftco-navbar-light .navbar-nav > .nav-item.cta > a {
    padding: 0.5rem 0.7rem !important;
    margin-left: 0.4rem;
  }
  .lang-switch { margin-left: 0.4rem; }
  .lang-switch__btn { padding: 0.45rem 0.5rem; }
  :is(.theme-site, .theme-kredit) .navbar-brand { font-size: 1.2rem !important; }
}

/* Marges latérales du menu sur mobile (le logo ne colle plus au bord) */
@media (max-width: 991.98px) {
  :is(.theme-site, .theme-kredit) .ftco-navbar-light > .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}
:is(.theme-site, .theme-kredit) .ftco-navbar-light .navbar-nav > .nav-item.active > a {
  color: var(--brand) !important;
}
:is(.theme-site, .theme-kredit) .ftco-navbar-light .navbar-nav > .nav-item.active > a:before {
  background: var(--brand);
}

/* CTA unique du menu : « Kredit beantragen » */
:is(.theme-site, .theme-kredit) .ftco-navbar-light .navbar-nav > .nav-item.cta > a,
:is(.theme-site, .theme-kredit) .ftco-navbar-light.scrolled .navbar-nav > .nav-item.cta > a {
  background: var(--brand);
  color: var(--ink) !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  padding: 0.55rem 1rem !important;
  margin-left: 0.5rem;
}
:is(.theme-site, .theme-kredit) .ftco-navbar-light .navbar-nav > .nav-item.cta > a:hover {
  background: var(--brand-600);
  color: var(--ink) !important;
}
:is(.theme-site, .theme-kredit) .ftco-navbar-light .navbar-nav > .nav-item.cta > a span { color: inherit; }
:is(.theme-site, .theme-kredit) .ftco-navbar-light.scrolled {
  background: var(--ink) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}
:is(.theme-site, .theme-kredit) .ftco-navbar-light.scrolled .navbar-brand,
:is(.theme-site, .theme-kredit) .ftco-navbar-light.scrolled .nav-link {
  color: var(--white) !important;
}
:is(.theme-site, .theme-kredit) .ftco-navbar-light.scrolled .nav-item.active > a,
:is(.theme-site, .theme-kredit) .ftco-navbar-light.scrolled .nav-link:hover {
  color: var(--brand) !important;
}
:is(.theme-site, .theme-kredit) .ftco-navbar-light .navbar-toggler,
:is(.theme-site, .theme-kredit) .ftco-navbar-light.scrolled .navbar-toggler {
  color: var(--white) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.75rem;
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 991.98px) {
  :is(.theme-site, .theme-kredit) .ftco-navbar-light {
    background: var(--ink) !important;
    padding: 0.75rem 0;
  }
  :is(.theme-site, .theme-kredit) .ftco-navbar-light .navbar-nav {
    padding: 0.5rem 0 0.75rem;
  }
  :is(.theme-site, .theme-kredit) .ftco-navbar-light .navbar-nav > .nav-item > .nav-link {
    padding: 0.6rem 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  :is(.theme-site, .theme-kredit) .ftco-navbar-light .navbar-nav > .nav-item.active > a:before {
    display: none;
  }
  :is(.theme-site, .theme-kredit) .ftco-navbar-light .navbar-nav > .nav-item.cta > a {
    display: inline-block;
    margin: 0.75rem 0 0;
    border-bottom: 0;
  }
}

/* ---------- Héros ---------- */
.theme-site .block-30:before {
  background: linear-gradient(180deg, rgba(28,34,48,.72) 0%, rgba(28,34,48,.55) 60%, rgba(28,34,48,.8) 100%);
  opacity: 1;
}
.theme-site .block-30.no-overlay:before { display: none; }
.theme-site .block-30 .heading {
  color: var(--white);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 3.6rem) !important;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.theme-site .block-30 .lead,
.theme-site .block-30 p { color: rgba(255, 255, 255, 0.88) !important; }
.theme-site .block-30 .btn { background: var(--brand); color: var(--ink); }

/* Hauteur minimale plutôt que fixe : le contenu n'est jamais coupé */
.theme-site .block-30,
.theme-site .block-30 .row {
  height: auto;
  min-height: min(100vh, 760px);
}
.theme-site .block-30.block-30-sm,
.theme-site .block-30.block-30-sm .row {
  min-height: 480px;
}
@media (max-width: 991.98px) {
  .theme-site .block-30,
  .theme-site .block-30 .row {
    min-height: 0;
    height: auto;
  }
  .theme-site .block-30 .row { padding: 4.5rem 0 3.5rem; }
}

/* ---------- Sections ---------- */
.theme-site .site-section { padding: 5rem 0; }
@media (max-width: 767.98px) {
  .theme-site .site-section { padding: 3.25rem 0; }
}
.theme-site .border-top { border-top: 1px solid var(--line) !important; }

/* Bloc statistiques jaune (accueil) */
.theme-site .block-48 {
  background: var(--brand);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.theme-site .block-48 .block-48-text-1 { font-size: 1.35rem; font-weight: 500; }
.theme-site .block-48 .block-48-counter { font-size: clamp(3rem, 8vw, 4.5rem); font-weight: 600; }
.theme-site .block-48 .h3 { color: var(--ink); font-weight: 600; margin-bottom: 0.25rem; }
.theme-site .block-48 .d-flex {
  flex-wrap: wrap;
  gap: 1rem;
}
.theme-site .block-48 .d-flex > div {
  flex: 1 1 120px;
  font-size: 0.85rem;
  line-height: 1.4;
}
@media (max-width: 767.98px) {
  .theme-site .block-48 { padding: 1.75rem; margin-bottom: 2rem; }
  .theme-site .section-counter .col-md-6.pr-5 { padding-right: 15px !important; }
}

/* Icônes des avantages */
.theme-site .block-6 .icon {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-right: 1.25rem !important;
}
.theme-site .block-6 .icon span:before { color: var(--brand-600); }
.theme-site .block-6 .media-body .heading { font-size: 1.15rem; margin-bottom: 0.5rem; }
.theme-site .block-6 .media-body p { color: var(--text); }

/* Liens soulignés */
.link-underline {
  color: var(--ink) !important;
  font-weight: 600;
  text-decoration: none !important;
  border-bottom: 2px solid var(--brand);
  padding-bottom: 2px;
}
.link-underline:hover { color: var(--brand-600) !important; }

/* ---------- Cartes ---------- */
.theme-site .card,
.theme-site .fundraise-item,
.theme-site .post-entry,
.theme-site .person-donate {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.theme-site .person-donate { padding: 1.75rem 1.25rem; height: 100%; }
.theme-site .person-donate.bg-light { background: var(--white) !important; }
.theme-site .person-donate h2 { font-size: 1.15rem; margin: 0.75rem 0 0.25rem; }
.theme-site .person-donate .time { color: var(--muted); font-size: 0.85rem; }
.theme-site .person-donate p { color: var(--text); font-size: 0.95rem; }
.theme-site .person-donate img.rounded-circle {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 3px solid var(--brand-100);
}

.theme-site .post-entry { height: 100%; }
.theme-site .post-entry .img-wrap { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.theme-site .post-entry .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.theme-site .post-entry h3,
.theme-site .post-entry .date,
.theme-site .post-entry p { padding: 0 1.25rem; }
.theme-site .post-entry h3 { font-size: 1.1rem; margin-top: 0.5rem; }
.theme-site .post-entry h3 a { color: var(--ink); }
.theme-site .post-entry h3 a:hover { color: var(--brand-600); }
.theme-site .post-entry p:last-child { padding-bottom: 1.25rem; }

.theme-site .fundraise-item .card-img-top { aspect-ratio: 16 / 10; object-fit: cover; }
.theme-site .fundraise-item .card-title a { color: var(--ink); font-weight: 600; }
.theme-site .fundraise-item .donation-time { color: var(--muted); font-style: normal; font-size: 0.85rem; }
.theme-site .ribbon {
  background: var(--brand) !important;
  color: var(--ink) !important;
  font-weight: 600;
  font-size: 0.75rem;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
}
.theme-site .block-11 .owl-stage { padding-bottom: 1.5rem; }

/* Cartes "Unsere Lösungen" : en-têtes uniformes */
.theme-site .card .card-img-top.bg-primary,
.theme-site .card .card-img-top.bg-success,
.theme-site .card .card-img-top.bg-warning {
  background: var(--ink) !important;
}
.theme-site .card .card-img-top [class^="icon-"] { color: var(--brand) !important; }
.theme-site .card .card-body { padding: 1.5rem; }

/* Badges de témoignages : une seule couleur */
.testimonial-badge {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  background: var(--brand-100) !important;
  color: var(--ink) !important;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.2rem 0.85rem;
  margin-bottom: 1rem;
}

/* Listes à coches */
.list-check { padding-left: 0; list-style: none; }
.list-check li { position: relative; padding-left: 1.6rem; margin-bottom: 0.4rem; }
.list-check li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--brand);
}

/* ---------- Tableau comparatif ---------- */
.theme-site .table {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.theme-site .table thead th,
.theme-site .table .bg-primary th {
  background: var(--ink) !important;
  color: var(--white) !important;
  border-color: var(--ink) !important;
  font-weight: 600;
  white-space: nowrap;
}
.theme-site .table td { vertical-align: middle; }
.theme-site .table .btn { padding: 0.35rem 0.85rem; font-size: 0.85rem; }

/* ---------- Sections sombres (ex-overlay jaune) ---------- */
.theme-site .featured-section.overlay-color-2,
.theme-site .featured-section.overlay-color {
  background: var(--ink) !important;
  padding: 5rem 0;
}
.theme-site .featured-section.overlay-color-2:before,
.theme-site .featured-section.overlay-color:before {
  background: radial-gradient(circle at 85% 15%, rgba(247, 202, 68, 0.18), transparent 55%);
  opacity: 1;
}
.theme-site .featured-section .container { position: relative; z-index: 1; }
.theme-site .featured-section h2 { color: var(--white); }
.theme-site .featured-section .featured-text {
  color: var(--brand);
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
}
.theme-site .featured-section .fund-raised { color: var(--brand); font-weight: 600; }
.theme-site .featured-section .list-check li { color: rgba(255, 255, 255, 0.88); }
.theme-site .featured-section img { box-shadow: var(--shadow-lg); border-radius: var(--radius); }

/* Carte blanche dans une section sombre : texte lisible */
.theme-site .featured-section .bg-white { border-radius: var(--radius) !important; box-shadow: var(--shadow-lg); }
.theme-site .featured-section .bg-white,
.theme-site .featured-section .bg-white p,
.theme-site .featured-section .bg-white li { color: var(--text) !important; }
.theme-site .featured-section .bg-white h3,
.theme-site .featured-section .bg-white h4 { color: var(--ink) !important; }
.theme-site .featured-section .bg-white [class^="icon-"] { color: var(--brand-600); }
@media (max-width: 575.98px) {
  .theme-site .featured-section .p-5 { padding: 1.75rem !important; }
}

/* Chiffres clés (galerie) */
.counter-box { text-align: center; }
.counter-box .number {
  display: block;
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--brand);
  line-height: 1.1;
}
.counter-box .caption { display: block; color: rgba(255, 255, 255, 0.8); font-size: 0.9rem; margin-top: 0.4rem; }

/* ---------- Bedingungen (blog) ---------- */
.criteria-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.criteria-item h5 { margin-bottom: 0.15rem; font-size: 1.05rem; }
.criteria-item p { margin-bottom: 0; }
.criteria-icon,
.document-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  background: var(--brand) !important;
  color: var(--ink) !important;
}
.document-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  height: calc(100% - 1.5rem);
}
.document-card .document-icon { margin-bottom: 0.75rem; }
.document-card h5 { font-size: 1rem; }
.theme-site .bg-white.p-5 { border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius) !important; }
@media (max-width: 575.98px) {
  .theme-site .bg-white.p-5 { padding: 1.5rem !important; }
}
.theme-site .col-lg-4 > .bg-primary.text-white {
  background: var(--ink) !important;
  border-radius: var(--radius) !important;
}
.theme-site .col-lg-4 > .bg-primary.text-white h4 { color: var(--brand) !important; }
.theme-site .col-lg-4 > .bg-primary.text-white label { color: rgba(255, 255, 255, 0.85); font-size: 0.9rem; }
.calc-result {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(247, 202, 68, 0.12);
  border: 1px solid rgba(247, 202, 68, 0.4);
  color: var(--white);
  font-size: 0.92rem;
}
.calc-result strong { color: var(--brand); }

/* ---------- Accordéons (FAQ) ---------- */
.theme-site .accordion .card,
.theme-site .accordion-item {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-sm) !important;
  margin-bottom: 0.75rem;
  box-shadow: none;
  background: var(--white);
}
.theme-site .accordion .card-header,
.theme-site .accordion-item .card-header,
.theme-site .accordion-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.theme-site .accordion .btn-link,
.theme-site .accordion-item .btn,
.theme-site .accordion-button {
  display: block;
  width: 100%;
  text-align: left;
  white-space: normal !important;
  color: var(--ink) !important;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 1rem 1.25rem;
  background: transparent !important;
  border: 0 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transform: none !important;
}
.theme-site .accordion .btn-link:hover,
.theme-site .accordion-item .btn:hover { color: var(--brand-600) !important; }

/* ---------- Formulaires ---------- */
.theme-site .form-control {
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--line);
  font-size: 0.95rem;
  height: auto;
  padding: 0.7rem 0.95rem;
}
.theme-site select.form-control {
  height: calc(1.5em + 1.4rem + 2px);
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}
.theme-site .form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.2rem rgba(247, 202, 68, 0.25);
}

/* Contact */
.contact-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  height: 100%;
}
.contact-card h3 { font-size: 1.25rem; margin-bottom: 1.25rem; }
.contact-card li { display: flex; gap: 0.75rem; margin-bottom: 0.9rem; }
.contact-card [class^="icon-"] { color: var(--brand-600); margin-top: 0.3rem; }
.form-feedback { margin-top: 1rem; font-size: 0.92rem; }

/* ---------- Pied de page ---------- */
:is(.theme-site, .theme-kredit) .footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 4.5rem 0 2rem;
}
:is(.theme-site, .theme-kredit) .footer .heading-section {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--brand) !important;
  margin-bottom: 1.25rem;
}
:is(.theme-site, .theme-kredit) .footer .lead { color: rgba(255, 255, 255, 0.8); font-size: 1rem; }
:is(.theme-site, .theme-kredit) .footer a { color: rgba(255, 255, 255, 0.8); }
:is(.theme-site, .theme-kredit) .footer a:hover { color: var(--brand) !important; }
:is(.theme-site, .theme-kredit) .footer .list-unstyled li { margin-bottom: 0.4rem; }
:is(.theme-site, .theme-kredit) .footer .block-23 ul { padding: 0; }
:is(.theme-site, .theme-kredit) .footer .block-23 ul li,
:is(.theme-site, .theme-kredit) .footer .block-23 ul li > a {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
}
:is(.theme-site, .theme-kredit) .footer .block-23 ul li { margin-bottom: 0.75rem; }
:is(.theme-site, .theme-kredit) .footer .block-23 ul li .icon,
:is(.theme-site, .theme-kredit) .footer .block-23 ul li .text { display: block; }
:is(.theme-site, .theme-kredit) .footer .block-23 ul li .icon {
  flex: 0 0 18px;
  width: 18px;
  font-size: 16px;
  padding-top: 3px;
  color: var(--brand);
}
:is(.theme-site, .theme-kredit) .footer .row.pt-5 { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 2rem !important; }
:is(.theme-site, .theme-kredit) .footer .text-muted { color: rgba(255, 255, 255, 0.55) !important; }
@media (max-width: 767.98px) {
  :is(.theme-site, .theme-kredit) .footer .col-md-6 { margin-bottom: 2rem; }
  :is(.theme-site, .theme-kredit) .footer .row.mb-5 { margin-bottom: 1rem !important; }
}

/* Badges de confiance */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}
.trust-badges img {
  height: 30px;
  width: auto;
  object-fit: contain;
  background: var(--white);
  border-radius: 6px;
  padding: 3px;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--white);
}

/* Logos partenaires : jamais recadrés */
.theme-site .welcome-text img,
.theme-site img[alt="Trustpilot"] {
  object-fit: contain;
  max-width: 100%;
}

/* Icônes agrandies (Unsere Lösungen) */
.icon-2x { font-size: 2.2rem; line-height: 1; }

/* Équipe dirigeante (Über uns) : photos en pleine largeur, jamais recadrées */
.theme-site .block-38 {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1rem 1.5rem;
  height: calc(100% - 1.5rem);
  margin-bottom: 1.5rem;
}
/* Même cadre 16:9 pour les 4 photos (noms alignés), image entière jamais recadrée */
.theme-site .block-38 .block-38-header img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  margin-bottom: 1.1rem;
}
.theme-site .block-38 .block-38-header .block-38-heading {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}
.theme-site .block-38 .block-38-header .block-38-subheading {
  color: var(--brand-text);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.theme-site .block-38 .block-38-body p { color: var(--text); font-size: 0.93rem; }

/* Photo d'équipe (Über uns) */
.about-photo {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* Images d'étapes (Wie es funktioniert) */
.theme-site .step-img { max-height: 320px; width: auto; object-fit: contain; }

/* ---------- Sélecteur de langue (menu) ---------- */
/* Placé hors du menu hamburger : toujours visible dans la barre */
.lang-switch { position: relative; order: 2; margin-left: 0.6rem; }
:is(.theme-site, .theme-kredit) .ftco-navbar-light .navbar-collapse { order: 1; }
.lang-switch__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  font: 500 0.82rem/1.2 var(--font);
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  white-space: nowrap;
}
.lang-switch__btn::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  margin-left: 0.15rem;
}
.lang-switch__btn:hover,
.lang-switch__btn[aria-expanded="true"] { border-color: var(--brand); }
.lang-flag {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover; /* drapeaux au format 4:3, affichés en entier */
  flex: 0 0 20px;
}
.lang-switch__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 1050;
  min-width: 170px;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.lang-switch__menu[hidden] { display: none; }
/* Pont invisible entre le bouton et la liste : le survol ne se perd pas dans l'espace */
.lang-switch__menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.5rem;
  height: 0.5rem;
}
.lang-switch__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  color: var(--ink) !important;
  font: 400 0.9rem/1.2 var(--font);
  text-decoration: none !important;
}
.lang-switch__item:hover,
.lang-switch__item:focus-visible { background: var(--bg-soft); }
.lang-switch__item[aria-current="true"] { background: var(--brand-100); font-weight: 500; }

@media (max-width: 991.98px) {
  /* Mobile : logo | langue | Menü, le menu déroulant passe en dessous */
  .lang-switch { margin-left: auto; margin-right: 0.5rem; }
  :is(.theme-site, .theme-kredit) .ftco-navbar-light .navbar-toggler { order: 3; }
  :is(.theme-site, .theme-kredit) .ftco-navbar-light .navbar-collapse { order: 4; flex-basis: 100%; }
}
@media (max-width: 575.98px) {
  /* Mobile : bouton du menu réduit à l'icône ☰ (libellé gardé pour les lecteurs d'écran
     via aria-label) pour laisser la place au nom complet de la langue */
  .toggler-label { display: none; }
  :is(.theme-site, .theme-kredit) .ftco-navbar-light .navbar-toggler { padding: 0.4rem 0.6rem; }
  :is(.theme-site, .theme-kredit) .ftco-navbar-light .navbar-toggler .me-1 { margin-right: 0 !important; }
  :is(.theme-site, .theme-kredit) .navbar-brand { font-size: 1.3rem !important; }
  .lang-switch__btn { padding: 0.4rem 0.55rem; gap: 0.4rem; }
}
@media (max-width: 349.98px), (min-width: 992px) {
  /* Bureau : drapeau seul sur le bouton, car les libellés traduits du menu sont plus
     longs que l'allemand ; noms complets dans la liste au survol.
     Très petit mobile : même chose, faute de place. */
  .lang-switch__btn .lang-switch__name { display: none; }
}

/* ---------- Pages légales et 404 ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  padding: 9rem 0 3.5rem;
  position: relative;
}
.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 600;
  margin: 0;
}
@media (max-width: 991.98px) {
  .page-hero { padding: 3rem 0 2.5rem; }
}
/* Variante avec photo de couverture (AGB, Impressum) */
.page-hero--photo {
  background:
    linear-gradient(rgba(28, 34, 48, 0.78), rgba(28, 34, 48, 0.78)),
    url("../images/team-office.jpg") center / cover no-repeat;
  background-color: var(--ink);
  padding: 11rem 0 5rem;
}
@media (max-width: 991.98px) {
  .page-hero--photo { padding: 4.5rem 0 3.5rem; }
}
.legal-page h2 {
  font-size: 1.2rem;
  margin: 2.25rem 0 0.75rem;
}
.legal-page p { color: var(--text); }
.legal-notice {
  background: var(--brand-100);
  border: 1px solid #f3e2a6;
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  color: var(--ink);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}
.error-code {
  font-size: clamp(5rem, 15vw, 8rem);
  font-weight: 600;
  line-height: 1;
  color: var(--brand);
  margin-bottom: 1rem;
}

/* ---------- Bannière cookies ---------- */
/* Carte compacte en bas à droite (le sélecteur de langue occupe le coin gauche) */
.cookie-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 2000;
  width: calc(100% - 32px);
  max-width: 340px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-family: var(--font);
}
.cookie-banner[hidden] { display: none; }
@media (max-width: 575.98px) {
  .cookie-banner { bottom: 44px; } /* au-dessus du sélecteur de langue */
}
.cookie-banner__inner { padding: 0.9rem 1rem; }
.cookie-banner__text { margin: 0 0 0.75rem; font-size: 0.8rem; line-height: 1.5; }
.cookie-banner__text strong { color: var(--white); font-weight: 500; }
.cookie-banner__text a { color: var(--brand); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 0.5rem; }
.cookie-banner__actions .btn {
  flex: 1;
  padding: 0.45rem 0.6rem !important;
  font-size: 0.8rem;
  white-space: nowrap;
}

/* Bouton présenté comme un lien (Cookie-Einstellungen) */
.link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.link-button:hover { color: var(--brand); }

/* Champ piège anti-spam : hors écran, invisible pour les humains */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==========================================================================
   PAGE KREDIT (Bootstrap 5)
   ========================================================================== */
.theme-kredit { color: var(--text); }

/* Menu du site principal, repris à l'identique (la page Kredit ne charge pas le template) */
.theme-kredit .ftco-navbar-light {
  background: var(--ink) !important;
  position: sticky;
  top: 0;
  z-index: 1030;
  padding: 0.75rem 0;
}
.theme-kredit .ftco-navbar-light .navbar-brand {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white) !important;
  text-decoration: none;
}
.theme-kredit .ftco-navbar-light .navbar-nav > .nav-item > .nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  padding: 0.6rem 0.55rem;
  text-decoration: none;
}
.theme-kredit .ftco-navbar-light .navbar-nav > .nav-item > .nav-link:hover { color: var(--brand); }
.theme-kredit .ftco-navbar-light .navbar-toggler [class^="icon-"] { margin-right: 0.35rem; }
@media (max-width: 991.98px) {
  .theme-kredit .ftco-navbar-light .navbar-nav > .nav-item > .nav-link {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* Pied de page du site principal : liste à puces et marges du template */
.theme-kredit .footer .heading-section { text-transform: uppercase; }
.theme-kredit .footer .row.mb-5 { margin-bottom: 2rem !important; }
.theme-kredit .footer ul { list-style: none; padding-left: 0; }
.theme-kredit .footer a { text-decoration: none; }

/* Couverture : photo en fond, voile sombre plus dense côté texte pour la lisibilité */
.theme-kredit .hero-section {
  background:
    linear-gradient(90deg, rgba(28, 34, 48, 0.92) 0%, rgba(28, 34, 48, 0.78) 45%, rgba(28, 34, 48, 0.35) 100%),
    url("../images/bg_1.jpg") center / cover no-repeat;
  background-color: var(--ink);
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}
.theme-kredit .hero-section:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(247, 202, 68, 0.12), transparent 55%);
}
/* La photo remplace le pictogramme décoratif de droite */
.theme-kredit .hero-section .fa-money-check-alt { display: none; }
@media (max-width: 991.98px) {
  /* Mobile : le texte occupe toute la largeur, voile uniforme */
  .theme-kredit .hero-section {
    background:
      linear-gradient(rgba(28, 34, 48, 0.82), rgba(28, 34, 48, 0.82)),
      url("../images/bg_1.jpg") center / cover no-repeat;
    padding: 4rem 0;
  }
}
.theme-kredit .hero-section .container { position: relative; }
.theme-kredit .hero-section h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
}
.theme-kredit .hero-section .lead { color: rgba(255, 255, 255, 0.82); }
.theme-kredit .hero-section .fa-check-circle { color: var(--brand) !important; }
.theme-kredit .hero-section .fa-money-check-alt { color: var(--brand) !important; opacity: 0.9 !important; }


.theme-kredit .bg-light { background: var(--bg-soft) !important; }

.theme-kredit .benefit-card,
.theme-kredit .partner-card,
.theme-kredit .card {
  border: 1px solid var(--line);
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow);
  background: var(--white);
}
.theme-kredit .text-warning,
.theme-kredit .fa-star { color: var(--brand) !important; }
.theme-kredit .text-primary { color: var(--brand-600) !important; }

.theme-kredit .form-container {
  background: rgba(28, 34, 48, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 575.98px) {
  .theme-kredit .form-container { padding: 1.25rem; }
  .theme-kredit .form-section { padding: 3rem 0; }
}
.theme-kredit .form-control.bg-dark,
.theme-kredit .form-select.bg-dark {
  background-color: var(--ink-2) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  border-radius: var(--radius-sm);
}
.theme-kredit .form-control:focus,
.theme-kredit .form-select:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 0.2rem rgba(247, 202, 68, 0.25);
}
.theme-kredit .noUi-connect { background: var(--brand); }
.theme-kredit .noUi-handle { border-color: var(--brand); }
.theme-kredit .form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.theme-kredit .monthly-payment,
.theme-kredit .text-success { color: var(--brand) !important; }
.theme-kredit .was-validated .form-control:valid,
.theme-kredit .was-validated .form-select:valid { border-color: var(--brand) !important; }

.theme-kredit .partner-logo { max-height: 50px; width: auto; object-fit: contain; }
.theme-kredit .partners-block { background: var(--white); }

/* ==========================================================================
   Aucune ombre (charte) — le focus clavier reste visible avec un contour
   ========================================================================== */
.theme-site *, .theme-site *::before, .theme-site *::after,
.theme-kredit *, .theme-kredit *::before, .theme-kredit *::after {
  box-shadow: none !important;
  text-shadow: none !important;
}
.theme-site :focus-visible,
.theme-kredit :focus-visible {
  outline: 2px solid var(--brand-text);
  outline-offset: 2px;
}
.theme-site .form-control:focus,
.theme-kredit .form-control:focus,
.theme-kredit .form-select:focus {
  outline: 2px solid var(--brand);
  outline-offset: 0;
}
