:root{
  --gfb-primary:#31597A;
  --gfb-secondary:#7A8C98;
  --gfb-accent:#B88A54;
  --gfb-bg:#F7F9FB;
  --gfb-text:#1F2937;

  --gfb-header-height-desktop:100px;
  --gfb-header-height-tablet:90px;
  --gfb-header-height-mobile:80px;

  --gfb-logo-height-desktop:64px;
  --gfb-logo-height-tablet:56px;
  --gfb-logo-height-mobile:48px;
  --gfb-logo-offset-y-desktop:0px;
  --gfb-logo-offset-y-tablet:0px;
  --gfb-logo-offset-y-mobile:0px;

  --gfb-d-order-logo:1; --gfb-d-order-menu:2; --gfb-d-order-cta:3;
  --gfb-t-order-logo:1; --gfb-t-order-menu:2; --gfb-t-order-cta:3;
  --gfb-m-order-logo:1; --gfb-m-order-menu:2; --gfb-m-order-cta:3;
  --gfb-d-align-logo:flex-start; --gfb-d-align-menu:center; --gfb-d-align-cta:flex-end;
  --gfb-t-align-logo:flex-start; --gfb-t-align-menu:center; --gfb-t-align-cta:flex-end;
  --gfb-m-align-logo:flex-start; --gfb-m-align-menu:center; --gfb-m-align-cta:flex-end;

  --gfb-footer-justify:flex-start;
  --gfb-container-max:1200px;

  --gfb-btn-bg: var(--gfb-primary);
  --gfb-btn-color: #ffffff;
  --gfb-btn-py-desktop: 8px; --gfb-btn-px-desktop: 14px; --gfb-btn-font-desktop: 15px;
  --gfb-btn-py-tablet: 8px;  --gfb-btn-px-tablet: 14px;  --gfb-btn-font-tablet: 15px;
  --gfb-btn-py-mobile: 8px;  --gfb-btn-px-mobile: 14px;  --gfb-btn-font-mobile: 15px;

  --gfb-sep-header-color: var(--gfb-btn-bg);
  --gfb-sep-footer-color: var(--gfb-btn-bg);
  --gfb-sep-header-w: 1px;
  --gfb-sep-footer-w: 1px;
}

/* Base */
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;color:var(--gfb-text);background:var(--gfb-bg);line-height:1.6}
a{color:var(--gfb-primary);text-decoration:none}
a:hover{text-decoration:underline}
.gfb-container{max-width:var(--gfb-container-max);margin:0 auto;padding:0 16px}

/* Header (sticky + shadow) */
#gfb-header{position:sticky;top:0;z-index:1000;background:#fff;border-bottom:var(--gfb-sep-header-w) solid var(--gfb-sep-header-color);box-shadow:0 0 0 rgba(0,0,0,0);transition:box-shadow .2s ease}
#gfb-header.is-stuck{box-shadow:0 8px 24px rgba(0,0,0,.08)}
#gfb-header .gfb-row{display:flex;align-items:center;justify-content:space-between}

/* Genau EIN Header je Breakpoint */
#gfb-header .gfb-row.gfb-desktop{display:flex}
#gfb-header .gfb-row.gfb-tablet{display:none}
#gfb-header .gfb-row.gfb-mobile{display:none}

#gfb-header .gfb-desktop{height:var(--gfb-header-height-desktop);min-height:var(--gfb-header-height-desktop)}
@media (max-width: 992px) and (min-width: 768px){
  #gfb-header .gfb-row.gfb-desktop{display:none !important}
  #gfb-header .gfb-row.gfb-tablet{
    display:grid !important;
    grid-template-columns:auto 1fr auto;
    align-items:center;
    height:var(--gfb-header-height-tablet);min-height:var(--gfb-header-height-tablet)
  }
  #gfb-header .gfb-row.gfb-mobile{display:none !important}
}
@media (max-width: 767px){
  #gfb-header .gfb-row.gfb-desktop{display:none !important}
  #gfb-header .gfb-row.gfb-tablet{display:none !important}
  #gfb-header .gfb-row.gfb-mobile{
    display:grid !important;
    grid-template-columns:auto 1fr auto;
    align-items:center;
    height:var(--gfb-header-height-mobile);min-height:var(--gfb-header-height-mobile)
  }
}

/* Spalten */
#gfb-header .gfb-col{display:flex;align-items:center;gap:16px;flex:0 0 auto}
#gfb-header .gfb-col.center{flex:1 1 auto}

/* Desktop Reihenfolge/Ausrichtung */
#gfb-header .gfb-desktop .left{order:var(--gfb-d-order-logo);justify-content:var(--gfb-d-align-logo)}
#gfb-header .gfb-desktop .center{order:var(--gfb-d-order-menu);justify-content:var(--gfb-d-align-menu)}
#gfb-header .gfb-desktop .right{order:var(--gfb-d-order-cta);justify-content:var(--gfb-d-align-cta)}

/* Tablet/Mobile: links Logo – Mitte CTA – rechts Burger */
@media (max-width: 992px) and (min-width: 768px){
  #gfb-header .gfb-tablet .left{grid-column:1;justify-content:flex-start !important}
  #gfb-header .gfb-tablet .center{grid-column:2;justify-content:center !important;text-align:center !important}
  #gfb-header .gfb-tablet .right{grid-column:3;justify-content:flex-end !important}
}
@media (max-width: 767px){
  #gfb-header .gfb-mobile .left{grid-column:1;justify-content:flex-start !important}
  #gfb-header .gfb-mobile .center{grid-column:2;justify-content:center !important;text-align:center !important}
  #gfb-header .gfb-mobile .right{grid-column:3;justify-content:flex-end !important}
}

/* Logo-Größen */
#gfb-header .custom-logo{display:block;height:auto;width:auto;object-fit:contain;max-height:var(--gfb-logo-height-desktop);transform:translateY(var(--gfb-logo-offset-y-desktop))}
@media (max-width: 992px) and (min-width: 768px){
  #gfb-header .custom-logo{max-height:var(--gfb-logo-height-tablet);transform:translateY(var(--gfb-logo-offset-y-tablet))}
}
@media (max-width: 767px){
  #gfb-header .custom-logo{max-height:var(--gfb-logo-height-mobile);transform:translateY(var(--gfb-logo-offset-y-mobile))}
}
#gfb-header .gfb-site-title{font-weight:800;letter-spacing:.2px;color:var(--gfb-text)}

/* Menü (nur Desktop inline) */
.gfb-nav ul{display:flex;gap:24px;list-style:none;margin:0;padding:0;flex-wrap:wrap}
.gfb-nav a{color:var(--gfb-text);font-weight:600}
.gfb-nav a:hover{color:var(--gfb-primary)}
@media (max-width: 992px){ .gfb-nav{display:none !important} }

/* Kontakt-Button (mit Breakpoints) */
.gfb-contact-btn{
  display:inline-flex;align-items:center;justify-content:center;border-radius:9999px;
  background:var(--gfb-btn-bg);color:var(--gfb-btn-color);font-weight:700;border:2px solid transparent;
  transition:transform .06s ease, background .2s ease;line-height:1;flex:0 0 auto;
  padding:var(--gfb-btn-py-desktop) var(--gfb-btn-px-desktop);font-size:var(--gfb-btn-font-desktop)
}
@media (max-width: 992px) and (min-width: 768px){
  .gfb-contact-btn{padding:var(--gfb-btn-py-tablet) var(--gfb-btn-px-tablet);font-size:var(--gfb-btn-font-tablet)}
}
@media (max-width: 767px){
  .gfb-contact-btn{padding:var(--gfb-btn-py-mobile) var(--gfb-btn-px-mobile);font-size:var(--gfb-btn-font-mobile)}
}
.gfb-contact-btn:hover{filter:brightness(.95);text-decoration:none}
.gfb-contact-btn:active{transform:translateY(1px)}

/* Burger-Icon */
.gfb-burger{background:none;border:0;display:flex;flex-direction:column;gap:4px;padding:8px;cursor:pointer}
.gfb-burger span{display:block;width:26px;height:3px;background:var(--gfb-text);border-radius:3px}
@media (max-width: 992px){
  #gfb-header .gfb-burger{display:flex !important;width:44px;height:44px;align-items:center;justify-content:center;border-radius:10px}
  #gfb-header .gfb-col.right{min-width:48px}
}

/* ============ Off-Canvas: Overlay + Panel (auto-Höhe, +20px unten) ============ */

/* Overlay (füllt den Screen, fängt Klicks außerhalb) */
#gfb-offcanvas{
  position: fixed;
  inset: 0;
  background: transparent;       /* optional: rgba(0,0,0,.15) */
  pointer-events: none;          /* nur klickbar, wenn .open */
  z-index: 1100;
}
/* geöffnet: Overlay aktiv */
#gfb-offcanvas.open{ pointer-events: auto; }

/* Panel rechts: Breite, auto-Höhe, unten 20px Abstand */
.gfb-offcanvas-panel{
  position: absolute;
  right: 0; top: 0;
  width: 80%; max-width: 360px;

  height: auto;
  max-height: calc(100vh - 20px);
  margin: 0 0 20px 0;

  padding: 56px 24px 24px;       /* Platz fürs X oben */
  background: #fff;
  box-shadow: -12px 0 24px rgba(0,0,0,.15);
  border-radius: 0 0 0 12px;
  overflow: auto;

  transform: translateX(100%);
  transition: transform .25s ease;
}
/* offen: Panel sichtbar */
#gfb-offcanvas.open .gfb-offcanvas-panel{ transform: translateX(0); }

/* Close-Button (X) im Markenstil */
.gfb-offcanvas-close{
  position: absolute;
  top: 10px; left: 10px;
  width: 40px; height: 40px;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:9999px;
  border:2px solid var(--gfb-primary);
  color:var(--gfb-primary); background:#fff;
  font-size:26px; line-height:1; cursor:pointer;
  z-index: 2; /* vor dem Inhalt klickbar */
}
.gfb-offcanvas-close:hover,
.gfb-offcanvas-close:focus{ background:var(--gfb-primary); color:#fff; outline:none }

/* Offcanvas-Menü-Stack */
.gfb-offcanvas-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.gfb-offcanvas-nav a{display:block;padding:10px 8px;border-radius:8px;color:var(--gfb-text);font-weight:600;text-decoration:none}
.gfb-offcanvas-nav a:hover{background:rgba(0,0,0,.05)}

/* Footer */
#gfb-footer{margin-top:48px;border-top:var(--gfb-sep-footer-w) solid var(--gfb-sep-footer-color);background:#fff}
.gfb-footer-top{padding:16px 0}
.gfb-footer-nav{display:flex;justify-content:var(--gfb-footer-justify)}
.gfb-footer-menu{display:flex;flex-wrap:wrap;gap:20px;list-style:none;margin:0;padding:0}
.gfb-footer-menu a{color:var(--gfb-text);font-weight:600}
.gfb-footer-menu a:hover{color:var(--gfb-primary)}
.gfb-footer-bottom{padding:12px 0;border-top:1px solid rgba(0,0,0,.08);font-size:.9rem;color:#6b7280}

/* Copyright-Zeile mittig (überstimmt alles) */
#gfb-footer .gfb-footer-bottom .gfb-container{
  display:flex !important;
  justify-content:center !important;
  align-items:center;
  text-align:center;
}
#gfb-footer .gfb-footer-bottom p{ margin:0 }

/* Content */
.gfb-content{padding:24px 0}
.gfb-entry-title{margin:0 0 16px}

/* A11y */
.sr-only{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}

/* ====== Startseite: Hero ====== */
.gfb-hero{
  position: relative;
  padding: clamp(48px, 6vw, 96px) 0;
  background: linear-gradient(180deg, rgba(49,89,122,.06), rgba(49,89,122,0));
}
.gfb-hero.has-bg{
  background-image: var(--gfb-hero-bg), linear-gradient(180deg, rgba(49,89,122,.06), rgba(49,89,122,0));
  background-size: cover, auto;
  background-position: center, center;
  background-repeat: no-repeat;
}
.gfb-hero::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.20));
  mix-blend-mode: multiply;
  pointer-events:none;
  opacity: var(--gfb-hero-overlay, 0.0);
}
.gfb-hero-inner{
  max-width: 900px;
  color: var(--gfb-text);
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  border-radius: 16px;
  padding: clamp(20px, 4vw, 36px);
}
.gfb-hero-title{
  margin: 0 0 12px;
  font-weight: 800;
  font-size: clamp(28px, 4.2vw, 40px);
  color: var(--gfb-primary);
}
.gfb-hero-text p{ margin: 0 0 8px; }

/* ====== Startseite: freier Textblock ====== */
.gfb-home-text{ padding: 40px 0 16px; }
.gfb-home-text .gfb-entry-title{
  font-size: clamp(26px, 3.4vw, 34px);
  color: var(--gfb-text);
}
.gfb-home-text .gfb-entry-content > *:first-child{ margin-top: 0; }

/* ====== Bestattungsplaner Sektion (kleiner Abstand) ====== */
.gfb-home-planner{ padding: 16px 0 24px; }

/* ====== FAQ Karussell ====== */

/* Volle Breite für die Startseiten-Vorlage */
.gfb-home-full .gfb-container{
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* Optional: Innenabstände pro Sektion selbst steuern */
.gfb-home-full .gfb-hero,
.gfb-home-full .gfb-home-text,
.gfb-home-full .gfb-home-planner,
.gfb-home-full .gfb-home-faq{
  padding-left: clamp(12px, 3vw, 32px);
  padding-right: clamp(12px, 3vw, 32px);
}

/* Wenn der Hero wirklich kantenlos sein soll (ohne Innenabstand): */
.gfb-home-full .gfb-hero{
  padding-left: 0;
  padding-right: 0;
}

/* Optional: Hero-Innenkarte auf volle Breite strecken oder dezenter machen */
.gfb-home-full .gfb-hero-inner{
  max-width: none;
  border-radius: 0;
  box-shadow: none;
  background: rgba(255,255,255,.78); /* anpassen oder entfernen */
}

/* Hero-Ausrichtung: Block-Position, Text bleibt linksbündig */
.gfb-hero-inner { max-width: 900px; }
.gfb-hero-text { text-align: left; }
.gfb-hero-align-left  .gfb-container .gfb-hero-inner{ margin-left:clamp(12px,3vw,32px); margin-right:auto; }
.gfb-hero-align-center .gfb-container .gfb-hero-inner{ margin-left:auto; margin-right:auto; }
.gfb-hero-align-right .gfb-container .gfb-hero-inner{ margin-left:auto; margin-right:clamp(12px,3vw,32px); }
.gfb-hero-align-full  .gfb-container .gfb-hero-inner{ max-width:none; width:calc(100% - 60px); margin:0 30px; }

/* Volle Breite mit 30px Rand */
.gfb-hero-align-full .gfb-container .gfb-hero-inner{
  max-width: none;
  width: calc(100% - 60px);
  margin-left: 30px;
  margin-right: 30px;
}

/* === HERO: Struktur ohne Lücken === */
.gfb-hero { position: relative; padding: clamp(36px, 6vw, 80px) 0; }
.gfb-hero.has-bg { background-image: var(--gfb-hero-bg); background-size: cover; background-position: center; }
.gfb-hero::after{ content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.15)); pointer-events:none; }

.gfb-hero-inner{
  width: 100%;
  background: rgba(255,255,255,.86); /* weiße Fläche */
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  border-radius: 0; /* bündig */
}

/* Innenabstand der Karte */
.gfb-hero-pad{ padding: 24px 30px; }
@media (max-width: 600px){
  .gfb-hero-pad{ padding-left: 10px; padding-right: 10px; }
}

/* Textblock-Positionierung (links/mitte/rechts), Text IMMER linksbündig */
.gfb-hero-row{
  display: flex;
  align-items: flex-start;
  justify-content: flex-start; /* default = left */
}
.gfb-hero-content{
  text-align: left;           /* Listen sauber untereinander */
  max-width: 900px;           /* angenehme Lesebreite */
  width: auto;
}

/* Varianten */
.gfb-hero-align-left  .gfb-hero-row{ justify-content: flex-start; }
.gfb-hero-align-center .gfb-hero-row{ justify-content: center; }
.gfb-hero-align-right .gfb-hero-row{ justify-content: flex-end; }

/* Volle Breite: Inhalt füllt Karte, bleibt mit Innen-Padding */
.gfb-hero-align-full .gfb-hero-content{
  max-width: none;
  width: 100%;
}

/* Typografie (Beispiele, falls nicht schon im Theme) */
.gfb-hero-title{ margin: 0 0 10px; font-weight: 800; font-size: clamp(28px, 4.2vw, 40px); color: var(--gfb-primary); }
.gfb-hero-text p{ margin: 0 0 8px; }

/* Falls der Titel aus dem Editor als <h1> kommt, normalisieren wir Abstände */
.gfb-hero-title-wrap h1 { margin: 0 0 10px; color: var(--gfb-primary); font-weight: 800; }
.gfb-hero-text p { margin: 0 0 8px; }

/* Hero: Design-Overrides aus der Metabox sollen immer greifen */
.gfb-hero-title-wrap,
.gfb-hero-title-wrap * {
  color: inherit !important;
  font-size: inherit !important;
  font-family: inherit !important;
}

/* Vollbreite-Blöcke: wirklich randlos */
.gfb-content .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Innenabstand für Cover-Inhalte (wie gewünscht: 30px Desktop, 10px mobil) */
.gfb-content .wp-block-cover.alignfull .wp-block-cover__inner-container {
  padding-left: 30px;
  padding-right: 30px;
}
@media (max-width: 767px) {
  .gfb-content .wp-block-cover.alignfull .wp-block-cover__inner-container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Sicherheit: Entferne ggf. Standard-Padding vom Hauptbereich */
.gfb-content { padding-left: 0; padding-right: 0; }

html{scroll-behavior:smooth}

/* Volle Breite wirklich randlos */
.gfb-content .gfb-hero-custom.alignfull,
.gfb-hero-custom {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Direkt unter der Header-Trennlinie, kein Freiraum */
.gfb-hero-custom { margin-top: 0 !important; }

/* Hintergrund & Overlay */
.gfb-hero-custom {
  position: relative;
  background: var(--gfb-bg, #F7F9FB);
  min-height: 360px; /* nach Wunsch */
  display: grid;
  place-items: center;
  color: var(--gfb-text, #1F2937);
}
.gfb-hero-custom.has-bg {
  background-image: var(--gfb-hero-bg);
  background-size: cover;
  background-position: center;
}
.gfb-hero-custom::before{
  content:"";
  position:absolute; inset:0;
  background: var(--gfb-hero-overlay, rgba(49,89,122,.85));
}

/* Box in der Mitte – zentriert, Inhalt aber linksbündig */
.gfb-hero-box{
  position: relative; z-index: 1;
  max-width: 1100px;
  width: 100%;
  padding: 40px 30px;
  text-align: left;  /* Aufzählungen linksbündig */
  margin-inline: auto; /* Box zentriert */
  background: rgba(255,255,255,0.0); /* kein extra Kasten */
}

/* H1 */
.gfb-hero-h1{
  margin: 0 0 14px 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
  color: var(--gfb-primary, #31597A);
  font-weight: 800;
}

/* Fließtext (Listen etc.) */
.gfb-hero-text{
  font-size: 18px;
  line-height: 1.6;
  margin: 10px 0 22px;
  color: var(--gfb-text, #1F2937);
}
.gfb-hero-text ul, .gfb-hero-text ol{ padding-left: 1.25em; }

/* Buttons */
.gfb-hero-cta{
  display:flex; gap:12px; justify-content:center; flex-wrap:wrap;
}
.gfb-btn{
  display:inline-block; text-decoration:none;
  padding: 10px 18px; border-radius:6px; font-weight:600;
  border:1px solid transparent;
}
.gfb-btn--primary{
  background: var(--gfb-primary, #31597A);
  color:#fff;
}
.gfb-btn--primary:hover{ filter:brightness(1.05); }
.gfb-btn--ghost{
  background: transparent;
  color:#fff; border-color:#fff;
}
.gfb-btn--ghost:hover{ background: rgba(255,255,255,.15); }

/* mobile Innenabstand */
@media (max-width: 767px){
  .gfb-hero-box{ padding: 24px 10px; }
  .gfb-hero-text{ font-size: 16px; }
}

/* Kein Abstand zwischen Header-Trennlinie und Hero */
.gfb-content{ margin-top:0; padding-top:0; }
.gfb-content > *:first-child{ margin-top:0; }

/* Falls ein Wrapper vor dem Hero steht – Sicherheit */
header + .gfb-content .gfb-hero-custom{ margin-top:0 !important; }

/* Text im Hero kontrastreicher und fett */
.gfb-hero-custom .gfb-hero-text,
.gfb-hero-custom .gfb-hero-text p,
.gfb-hero-custom .gfb-hero-text li{
  color:#00000;          /* auf Overlay gut lesbar */
  font-weight:600;     /* fett(er) */
}

@media (max-width: 600px){
  .gfb-hero-box{ padding-left:13px; padding-right:13px; } /* Text bleibt mit +3px */
  .gfb-hero-h1{ margin-left:-3px; margin-right:-3px; }     /* H1 bekommt die 3px „zurück“ */
}
/* Header: links/rechts exakt 5px Innenabstand (Desktop & Mobil) */
#gfb-header .gfb-container{
  padding-left: 10px !important;
  padding-right: 10px !important;
}

/* Startseite: Shortcode-Ausgabe mittig + begrenzen */
.template-home .wp-block-shortcode,
.template-home .shortcode,
.template-home .bp-package-selection,
.template-home .bp-planner,
.home .bp-package-selection,
.home .bp-planner {
  max-width: 920px;         /* gewünschte Breite, bei Bedarf anpassen */
  margin-left: auto;
  margin-right: auto;
  padding-left: 12px;       /* etwas Luft an den Rändern */
  padding-right: 12px;
  display: block;
  width: 100%;
}

/* Falls dein Grid/Section zentriert werden muss */
.template-home .gfb-planner-wrap,
.template-home .planner-section {
  display: block;
}

/* Mobil vollbreit lassen */
@media (max-width: 1024px) {
  .template-home .wp-block-shortcode,
  .template-home .shortcode,
  .template-home .bp-package-selection,
  .template-home .bp-planner,
  .home .bp-package-selection,
  .home .bp-planner {
    max-width: 100%;
  }
}

/* Wrapper zentrieren + maximale Breite */
.gfb-planner-wrap { display:block; }
.gfb-planner-center {
  max-width: 1120px;      /* ggf. 1040/1200 anpassen */
  margin: 0 auto;
  padding: 0 12px;
}

/* GRID für die Karten-Übersicht */
.gfb-planner-center .bp-packages-grid,
.gfb-planner-center .bp-packages,
.gfb-planner-center .bp-package-list,
.gfb-planner-center .bp-row {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* gleichmäßige Spalten */
  gap: 24px;
  align-items: start;
}

/* Karten konsistent machen */
.gfb-planner-center .bp-package,
.gfb-planner-center [class*="bp-"][class*="package"] {
  float: none !important;
  width: auto !important;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Bilder gleich hoch + sauber beschnitten */
.gfb-planner-center .bp-package img {
  width: 100%;
  height: 200px;          /* einheitliche Bildhöhe */
  object-fit: cover;
  display: block;
}

/* Button/Footbereich nicht springen lassen */
.gfb-planner-center .bp-package .bp-card-footer,
.gfb-planner-center .bp-package .bp-actions {
  margin-top: auto;       /* drückt Footer nach unten, gleiche Kartenhöhen */
}

/* Heading normal links – optional */
.gfb-planner-center h2 { margin-bottom: 16px; }

/* Mobil: einfach 1 Spalte */
@media (max-width: 640px) {
  .gfb-planner-center .bp-packages-grid,
  .gfb-planner-center .bp-packages,
  .gfb-planner-center .bp-package-list,
  .gfb-planner-center .bp-row {
    grid-template-columns: 1fr;
  }
}

/* Container zentriert lassen */
.gfb-planner-center {
  margin: 0 auto;
  padding: 0 12px;
}

/* GRID beibehalten, aber Desktop enger + feste Kachelbreite */
@media (min-width: 1025px) {
  .gfb-planner-center {
    max-width: 980px; /* engerer Bereich – gern 900–1120 anpassen */
  }

  .gfb-planner-center .bp-packages-grid,
  .gfb-planner-center .bp-packages,
  .gfb-planner-center .bp-package-list,
  .gfb-planner-center .bp-row {
    display: grid !important;
    grid-template-columns: repeat(2, 300px);  /* zwei kleine Karten nebeneinander */
    justify-content: center;                  /* Grid selbst zentrieren */
    gap: 20px;
  }

  /* Karten wirklich klein halten – falls Plugin irgendwo width:100% setzt */
  .gfb-planner-center .bp-package,
  .gfb-planner-center [class*="bp-"][class*="package"] {
    width: 300px !important;      /* gleich wie Spaltenbreite */
    max-width: 300px !important;
  }

  /* Bilder kleiner, damit die Karten kompakt wirken */
  .gfb-planner-center .bp-package img {
    height: 160px;                 /* vorher z. B. 200px */
    width: 100%;
    object-fit: cover;
    display: block;
  }

  /* Innenabstände/Typo minimal kompakter (optional) */
  .gfb-planner-center .bp-package h3,
  .gfb-planner-center .bp-package .bp-title { margin: 10px 0 8px; }
  .gfb-planner-center .bp-package .bp-price { margin: 10px 0; }
  .gfb-planner-center .bp-package .bp-actions button,
  .gfb-planner-center .bp-package .bp-actions a { padding: 10px 14px; }
}

/* Tablet/Mobil: automatisch 1 Spalte, schön breit */
@media (max-width: 1024px) {
  .gfb-planner-center .bp-packages-grid,
  .gfb-planner-center .bp-packages,
  .gfb-planner-center .bp-package-list,
  .gfb-planner-center .bp-row {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Karten auf volle Breite, keine feste Max-Breite mobil */
  .gfb-planner-center .bp-package,
  .gfb-planner-center [class*="bp-"][class*="package"] {
    width: 100% !important;
    max-width: none !important;
  }
}

  
.gfb-gap--planner{ height:40px; }          /* Abstand nach Wunsch (z.B. 32–56px) */
@media (max-width:1024px){ .gfb-gap--planner{ height:24px; } }


/* === FINAL FAQ DESKTOP FIX (force overrides) === */

/* 0) Weißer Kasten + Rahmen + Innenabstand */
#faq-section.gfb-faq .gfb-faq-carousel{
  background:#fff !important;
  border:1px solid rgba(0,0,0,.06) !important;
  border-radius:14px !important;
  padding:16px !important;
  position:relative;
}

/* 1) Container-Einrückung wie Textblock */
#faq-section .gfb-container{
  max-width: var(--gfb-container-max) !important;
  margin: 0 auto !important;
  margin-top: 45px !important; /* vorher 16px */
  padding-left:16px !important;
  padding-right:16px !important;
}

/* 2) Block-Ansicht: zentriert und begrenzt */
#faq-section.gfb-faq.gfb-faq--block .gfb-faq-carousel{
  max-width:1040px !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

/* 3) Slider-Basics: EXAKT 1 Slide sichtbar */
#faq-section.gfb-faq .gfb-faq-viewport{ overflow:hidden !important; }
#faq-section.gfb-faq .gfb-faq-track{
  display:flex !important;
  flex-wrap:nowrap !important;
  transition:transform .35s ease !important;
  will-change:transform;
}
#faq-section.gfb-faq .gfb-faq-slide{
  flex:0 0 100% !important;
  max-width:100% !important;
  width:100% !important;      /* falls irgendwo width:50% gesetzt war */
  float:none !important;       /* alte Floats sicher entfernen */
  box-sizing:border-box !important;
  text-align:center !important;
  padding:12px clamp(14px, 3vw, 40px) !important;
}

/* 4) Typo */
#faq-section .gfb-faq-title{
  margin:0 0 8px !important;
  font-weight:700 !important;
  color:#000 !important;
  font-size:clamp(22px,2.4vw,28px) !important;
  line-height:1.2 !important;
}
#faq-section .gfb-faq-intro{ margin:0 0 18px !important; color:var(--gfb-text) !important; }
#faq-section .gfb-faq-intro a{ color:var(--gfb-primary) !important; text-decoration:underline !important; text-underline-offset:2px !important; }
#faq-section .gfb-faq-q{ margin:0 0 8px !important; font-weight:800 !important; color:var(--gfb-text) !important; font-size:clamp(18px,2.5vw,22px) !important; }
#faq-section .gfb-faq-a{ margin:0 !important; color:var(--gfb-text) !important; overflow:visible !important; overflow-wrap:anywhere !important; }
#faq-section .gfb-faq-a p{ margin:0 0 8px !important; }

/* 5) Pfeile nach unten, NICHT absolut */
#faq-section .gfb-faq-bottom{
  display:grid !important;
  grid-template-columns:40px 1fr 40px !important;
  align-items:center !important;
  gap:8px !important;
  margin-top:12px !important;
}
#faq-section .gfb-faq-prev,
#faq-section .gfb-faq-next{
  all:unset !important;
  position:static !important;
  display:inline-flex !important;
  justify-content:center !important;
  align-items:center !important;
  width:36px !important; height:36px !important;
  cursor:pointer !important;
  background:transparent !important; border:0 !important; box-shadow:none !important;
}
#faq-section .gfb-faq-prev::after,
#faq-section .gfb-faq-next::after{
  content:"" !important; display:inline-block !important;
  width:10px !important; height:10px !important;
  border-top:2px solid var(--gfb-primary) !important;
  border-right:2px solid var(--gfb-primary) !important;
}
#faq-section .gfb-faq-prev::after{ transform:rotate(-135deg) !important; }
#faq-section .gfb-faq-next::after{ transform:rotate(45deg) !important; }

/* 6) Dots klar sichtbar (JS erstellt <button class="gfb-faq-dot">) */
#faq-section .gfb-faq-dots{
  display:flex !important; justify-content:center !important; align-items:center !important;
  min-height:36px !important;
}
#faq-section .gfb-faq-dots button,
#faq-section .gfb-faq-dots .gfb-faq-dot{
  all:unset !important;
  width:8px !important; height:8px !important;
  border-radius:50% !important;
  background:var(--gfb-secondary) !important;
  margin:0 5px !important; cursor:pointer !important;
}
#faq-section .gfb-faq-dots button.is-active,
#faq-section .gfb-faq-dots .gfb-faq-dot.is-active{
  background:var(--gfb-primary) !important;
  transform:scale(1.05) !important;
}

/* 7) Abstand zum Footer */
#faq-section.gfb-faq{ margin-bottom:20px !important; }


#faq-section.gfb-faq .gfb-faq-carousel{
  background:#fff !important;
  border:1px solid rgba(0,0,0,.06) !important;
  border-radius:14px !important;
  padding:16px !important;
  position:relative;
}
#faq-section .gfb-faq-viewport{ overflow:hidden !important; }
#faq-section .gfb-faq-dots{
  display:flex !important; justify-content:center !important; align-items:center !important;
  min-height:36px !important;
}
#faq-section .gfb-faq-dots .gfb-faq-dot{
  all:unset !important; width:8px !important; height:8px !important; border-radius:50% !important;
  background:var(--gfb-secondary) !important; margin:0 5px !important; cursor:pointer !important;
}
#faq-section .gfb-faq-dots .gfb-faq-dot.is-active{ background:var(--gfb-primary) !important; transform:scale(1.05) !important; }

/* === FAQ FINAL OVERRIDES (put at bottom) === */

/* Weißer Kasten + Rahmen + Innenabstand + Blockbreite */
#faq-section.gfb-faq .gfb-faq-carousel{
  background:#fff !important;
  border:1px solid rgba(0,0,0,.08) !important;
  border-radius:14px !important;
  padding:16px 20px !important;
  display:block !important;
  width:auto !important;
  max-width:1040px !important;     /* Desktop-Breite */
  margin:0 auto !important;        /* zentrieren */
}

/* 1 Slide sichtbar, Flex-Track sicherstellen */
#faq-section.gfb-faq .gfb-faq-viewport{ overflow:hidden !important; }
#faq-section.gfb-faq .gfb-faq-viewport > .gfb-faq-track{
  display:flex !important;
  flex-wrap:nowrap !important;
  transition:transform .35s ease !important;
}
#faq-section.gfb-faq .gfb-faq-viewport > .gfb-faq-track > .gfb-faq-slide{
  flex:0 0 100% !important;
  max-width:100% !important;
  width:100% !important;
  float:none !important;
  box-sizing:border-box !important;
  text-align:center !important;
  padding:12px clamp(14px, 3vw, 40px) !important;
}

/* Pfeile unten in die Leiste (keine Kreise, nicht absolut) */
#faq-section .gfb-faq-bottom{
  display:grid !important;
  grid-template-columns:40px 1fr 40px !important;
  align-items:center !important;
  gap:8px !important;
  margin-top:12px !important;
}
#faq-section .gfb-faq-prev,
#faq-section .gfb-faq-next{
  all:unset !important;
  position:static !important;
  display:inline-flex !important;
  justify-content:center !important;
  align-items:center !important;
  width:36px !important; height:36px !important;
  cursor:pointer !important;
  background:transparent !important; border:0 !important;
}
#faq-section .gfb-faq-prev::after,
#faq-section .gfb-faq-next::after{
  content:"" !important; display:inline-block !important;
  width:10px !important; height:10px !important;
  border-top:2px solid var(--gfb-primary) !important;
  border-right:2px solid var(--gfb-primary) !important;
}
#faq-section .gfb-faq-prev::after{ transform:rotate(-135deg) !important; }
#faq-section .gfb-faq-next::after{ transform:rotate(45deg) !important; }

/* Dots sichtbar (kein „Strich“ mehr) */
#faq-section .gfb-faq-dots{
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  min-height:36px !important;
}
#faq-section .gfb-faq-dots button,
#faq-section .gfb-faq-dots .gfb-faq-dot{
  all:unset !important;
  display:inline-block !important;     /* WICHTIG: sonst width/height wirkungslos */
  width:8px !important; height:8px !important;
  border-radius:50% !important;
  background:var(--gfb-secondary) !important;
  margin:0 5px !important;
  cursor:pointer !important;
}
#faq-section .gfb-faq-dots button.is-active,
#faq-section .gfb-faq-dots .gfb-faq-dot.is-active{
  background:var(--gfb-primary) !important;
  transform:scale(1.05) !important;
}

/* Abstand zum Footer */
#faq-section.gfb-faq{ margin-bottom:2px !important; }


/* Abstand nach unten zuverlässig (statt margin-bottom) */
#faq-section.gfb-faq{
  margin-bottom: 0 !important;   /* sicherheitshalber */
  padding-bottom: 10px !important;
  position: relative;             /* verhindert margin-collapsing */
}

/* und: Footer selbst nicht zusätzlich nach oben drücken */
#gfb-footer{ margin-top: 0 !important; }

/* ===== Seiten-Standard: 20px links/rechts ===== */
.gfb-page-20 {
  padding-left: 20px;
  padding-right: 20px;
}

/* Sicherheit: Full-Width-Blöcke bleiben weiterhin randlos */
.gfb-page-20 .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* ===== Konfigurator-Template: Container statt Full-Width ===== */
.page-template-template-konfigurator .gfb-konfigurator {
  padding-top: 0; /* keine Lücke unter dem Header */
}

/* Zentrierter Inhaltsbereich mit fixierter Max-Breite + 20px Seitenabstand */
.gfb-konfigurator-container {
  max-width: 1100px;         /* passe bei Bedarf an (z.B. 960/1200) */
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Ersten Block nicht zusätzlich nach unten drücken */
.gfb-konfigurator-container > *:first-child { margin-top: 0; }

/* WICHTIG: Alle Gutenberg-„Full“-Klassen im Template neutralisieren,
   damit NICHTS mehr über den Container hinausläuft */
.page-template-template-konfigurator .gfb-konfigurator-container .alignfull,
.page-template-template-konfigurator .gfb-konfigurator-container .wp-block-group.alignfull,
.page-template-template-konfigurator .gfb-konfigurator-container .wp-block-cover.alignfull,
.page-template-template-konfigurator .gfb-konfigurator-container .wp-block-image.alignfull,
.page-template-template-konfigurator .gfb-konfigurator-container .wp-block-columns.alignfull {
  width: auto !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Optional: „alignwide“ leicht breiter lassen – aber weiterhin im Container */
.page-template-template-konfigurator .gfb-konfigurator-container .alignwide {
  max-width: 100%;
}

/* Sticky-Header: Sprungziele (falls du #anker nutzt) exakt unter Header stoppen */
.page-template-template-konfigurator :target {
  scroll-margin-top: var(--gfb-header-height-desktop, 100px);
}
@media (max-width:1024px){
  .page-template-template-konfigurator :target {
    scroll-margin-top: var(--gfb-header-height-tablet, 90px);
  }
}
@media (max-width:768px){
  .page-template-template-konfigurator :target {
    scroll-margin-top: var(--gfb-header-height-mobile, 80px);
  }
}

/* Startseite: Anker #angebote 50px früher stoppen */
.home #angebote {
  scroll-margin-top: calc(var(--gfb-header-height-desktop, 100px) + 35px);
}

@media (max-width: 1024px) {
  .home #angebote {
    scroll-margin-top: calc(var(--gfb-header-height-tablet, 90px) + 35px);
  }
}
@media (max-width: 768px) {
  .home #angebote {
    scroll-margin-top: calc(var(--gfb-header-height-mobile, 80px) + 35px);
  }
}

/* Impressum: Inhalt auf 800px begrenzen */
.page-template-gfb-impressum .impressum-narrow{
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding-left: 12px;   /* optional: etwas Luft innen */
  padding-right: 12px;
}

/* Gutenberg-Seperator: volle Breite + schwarz auf der Impressum-Seite */
.page-template-gfb-impressum .wp-block-separator.alignfull{
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border: 0;                     /* Standardstil neutralisieren */
  border-top: 2px solid #000;    /* schwarze Linie */
  height: 0;                     /* sauber als Linie */
  opacity: 1;                    /* Gutenberg reduziert oft die Deckkraft */
  background: transparent;       /* sicherstellen: kein Hintergrund */
}

/* Falls du "Weit" statt "Volle Breite" verwendest, trotzdem schwarz: */
.page-template-gfb-impressum .wp-block-separator{
  border-top-color: #000;
  opacity: 1;
}

/* === AGB Hero: Desktop zentriert, Text links; mobil oben starten === */
.page-template-template-agb .gfb-hero-legal{
  display: grid;
  place-items: center;         /* Desktop: Box vertikal & horizontal mittig im Bild */
}

@media (max-width: 767px){
  .page-template-template-agb .gfb-hero-legal{
    place-items: start;        /* Mobil: Box nach oben */
  }
  .page-template-template-agb .gfb-hero-box{
    margin-top: 14px;
  }
}

/* Lesebreite der AGB-Box */
.page-template-template-agb .gfb-hero-box{
  max-width: 920px;            /* angenehme Desktop-Lesebreite */
  text-align: left;            /* explizit linksbündig */
}

/* Typo im AGB-Text */
.page-template-template-agb .gfb-legal-content h2{
  margin: 18px 0 8px;
  color: var(--gfb-primary);
  font-weight: 800;
}
.page-template-template-agb .gfb-legal-content p,
.page-template-template-agb .gfb-legal-content li{
  margin: 0 0 10px;
}

/* Impressum: Box auf Desktop mittig, Text linksbündig */
.impressum-narrow{
  text-align: left;     /* Schrift bleibt linksbündig */
}

@media (min-width: 1025px){
  .impressum-narrow{
    max-width: 800px;   /* gewünschte Breite (anpassbar) */
    margin-left: auto;  /* zentriert die Box */
    margin-right: auto; /* zentriert die Box */
    width: 100%;
  }
}

/* Optional: auf kleineren Screens volle Breite mit etwas Innenabstand */
@media (max-width: 1024px){
  .impressum-narrow{ padding-left: 12px; padding-right: 12px; }
}

/* Falls Gutenberg-Blöcke mal zentriert waren, hier hart auf links drehen */
.page-template-gfb-impressum .impressum-narrow .has-text-align-center,
.page-template-gfb-impressum .impressum-narrow .has-text-align-justify{
  text-align: left;
}

/* ===== FAQ Seite (Accordion Stil) ===== */
.gfb-faq-page .gfb-faq-item {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 8px;
  margin-bottom: 12px;
  background: #fff;
  overflow: hidden;
}

.gfb-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: var(--gfb-primary);
  color: #fff;
  font-weight: 600;
  padding: 14px 18px;
  cursor: pointer;
  border: none;
  outline: none;
  font-size: 1rem;
}

.gfb-faq-question::after {
  content: '+';
  font-weight: bold;
  transition: transform 0.25s;
}

.gfb-faq-item.open .gfb-faq-question::after {
  content: '–';
  transform: rotate(90deg);
}

.gfb-faq-answer {
  display: none;
  padding: 16px 18px;
  color: var(--gfb-text);
  background: #fafafa;
}

.gfb-faq-item.open .gfb-faq-answer {
  display: block;
}

.gfb-faq-sort {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* FAQ Accordion */
.gfb-faq-page .gfb-faq-item{
  border:1px solid rgba(0,0,0,.08);
  border-radius:8px;
  margin-bottom:12px;
  background:#fff; overflow:hidden;
}
.gfb-faq-question{
  width:100%; display:flex; justify-content:space-between; align-items:center;
  background:var(--gfb-primary); color:#fff; font-weight:600;
  padding:14px 18px; border:0; cursor:pointer; font-size:1rem;
}
.gfb-faq-question::after{ content:'+'; font-weight:700; transition:.25s; }
.gfb-faq-item.open .gfb-faq-question::after{ content:'–'; transform:rotate(90deg); }
.gfb-faq-answer{ display:none; padding:16px 18px; background:#fafafa; color:var(--gfb-text); }
.gfb-faq-item.open .gfb-faq-answer{ display:block; }

.gfb-faq-sort{ margin-bottom:20px; display:flex; align-items:center; gap:10px; }

/* ===== FAQ Kartenlayout ===== */
.gfb-faq-grid{
  display:grid;
  gap:16px;
  grid-template-columns: 1fr;        /* mobil: 1 Spalte */
}

@media (min-width: 768px){
  .gfb-faq-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));  /* Tablet: 2 */
  }
}
@media (min-width: 1100px){
  .gfb-faq-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));  /* Desktop: 3 */
  }
}

.gfb-faq-card{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:10px;
  padding:16px 18px;
  box-shadow:0 4px 14px rgba(0,0,0,.04);
}

.gfb-faq-q{
  margin:0 0 10px;
  font-weight:800;
  font-size:1.05rem;
  color:#fff;
  background:var(--gfb-primary);
  padding:10px 12px;
  border-radius:8px;
}

/* Antwort immer sichtbar (kein Akkordeon) */
.gfb-faq-a{ margin:10px 2px 0; color:var(--gfb-text); }

/* Entferne alte Akkordeon-Styles, falls noch aktiv */
.gfb-faq-question, .gfb-faq-item, .gfb-faq-answer{ all:unset; }

/* Startseite: FAQ-Überschriften kontrastreich (weiß auf blau) */
.home #faq-section .gfb-faq-q,
.template-home #faq-section .gfb-faq-q{
  background: var(--gfb-primary) !important;
  color: #fff !important;
}

/* (Optional) Antwort-Text in normalem Farbton lassen */
.home #faq-section .gfb-faq-a,
.template-home #faq-section .gfb-faq-a{
  color: var(--gfb-text);
}

/* Dots klar sichtbar */
#faq-section .gfb-faq-dots{ display:flex; justify-content:center; align-items:center; min-height:36px; }
#faq-section .gfb-faq-dots .gfb-faq-dot{
  display:inline-block; width:8px; height:8px; border-radius:50%;
  background: var(--gfb-secondary);
  margin: 0 5px; cursor:pointer; border:0;
}
#faq-section .gfb-faq-dots .gfb-faq-dot.is-active{ background: var(--gfb-primary); transform: scale(1.05); }

/* Pfeile */
#faq-section .gfb-faq-prev, #faq-section .gfb-faq-next{
  all:unset; display:inline-flex; justify-content:center; align-items:center;
  width:36px; height:36px; cursor:pointer;
}
#faq-section .gfb-faq-prev::after, #faq-section .gfb-faq-next::after{
  content:""; width:10px; height:10px; display:inline-block;
  border-top:2px solid var(--gfb-primary); border-right:2px solid var(--gfb-primary);
}
#faq-section .gfb-faq-prev::after{ transform: rotate(-135deg); }
#faq-section .gfb-faq-next::after{ transform: rotate(45deg); }

/* Titel lesbar (weiß auf blau) */
.home #faq-section .gfb-faq-q,
.template-home #faq-section .gfb-faq-q{ background: var(--gfb-primary) !important; color:#fff !important; }

/* ===== Kontakt – Stil wie Bestattungsplaner ===== */
:root{
  --gfbk-gap: 12px;
  --gfbk-radius: 12px;
  --gfbk-shadow: 0 6px 20px rgba(31,41,55,0.08);
}

/* Container/Card */
.gfbk-form.bp-card{
  background:#fff;
  border:1px solid rgba(0,0,0,0.06);
  border-radius: var(--gfbk-radius);
  box-shadow: var(--gfbk-shadow);
  padding: 18px;
}

/* Fieldset + Legend wie Planner */
.gfbk-fieldset{
  border:0; margin:0; padding:0;
}
.gfbk-legend{
  display:inline-flex; align-items:center; gap:.5rem;
  font-weight:700; color:var(--gfb-primary,#31597A);
  background:#fff; padding:.35rem .9rem;
  border:1px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  transform: translateY(-8px);
}
.gfbk-legend-icon{ font-size:1.05em }

/* Grid-Raster */
.gfbk-grid{ display:grid; gap: var(--gfbk-gap); margin-top: var(--gfbk-gap); }
.gfbk-grid-2{ grid-template-columns: 1fr 1fr; }
.gfbk-grid-3{ grid-template-columns: 160px 1fr 1fr; }

@media (max-width: 860px){
  .gfbk-grid-3{ grid-template-columns: 1fr; }
  .gfbk-grid-2{ grid-template-columns: 1fr; }
}

/* Felder (Mapping auf Planner-Stil) */
.bp-field .bp-label,
.gfbk-form .bp-label{
  display:block; margin: 2px 0 6px; font-weight:600; color: var(--gfb-text,#1F2937);
}

.bp-field .bp-input,
.gfbk-form .bp-input{
  width:100%;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:10px;
  padding: 10px 12px;
  font-size:16px; line-height:1.3;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.bp-textarea{ resize:vertical; min-height: 140px; }

.bp-field .bp-input:focus,
.gfbk-form .bp-input:focus{
  outline: none;
  border-color: var(--gfb-primary,#31597A);
  box-shadow: 0 0 0 3px rgba(49,89,122,.12);
}

/* Required/Invalid wie im Planner */
.gfbk-form .bp-input:required:invalid{
  border-color:#EF4444; /* rot */
}
.gfbk-form .bp-input:required:invalid:focus{
  box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}

/* Checkboxes in Planner-Optik */
.gfbk-options{
  display:flex; flex-direction:column; gap:10px; margin-top: 10px;
  padding: 12px; border-radius: 10px; background: #f7f9fb;
  border:1px solid #e5e7eb;
}
.bp-check{ display:flex; gap:10px; align-items:flex-start; }
.bp-check input[type="checkbox"]{
  width:18px; height:18px; margin-top: 2px;
}
.bp-check.required span::after{
  content:" *"; color:#EF4444; font-weight:700;
}

/* Aktionen */
.gfbk-actions{ margin-top: 14px; }
.bp-btn,
.gfb-contact-btn{
  display:inline-block;
  border:0; border-radius:12px;
  padding: 12px 18px;
  font-weight:700;
  background: var(--gfb-primary,#31597A);
  color:#fff; cursor:pointer;
  transition: transform .06s ease, box-shadow .15s ease, background .15s ease;
}
.bp-btn:hover,
.gfb-contact-btn:hover{ filter:brightness(0.96); }
.bp-btn:active,
.gfb-contact-btn:active{ transform: translateY(1px); }

/* Honeypot unsichtbar & zugänglich */
.hp-trap{
  position:absolute !important; left:-9999px !important; width:1px; height:1px; overflow:hidden;
}

/* Kleine Feinschliffe */
.gfbk-form select.bp-input{ appearance:none; background-image: linear-gradient(45deg, transparent 50%, #9aa4af 50%), linear-gradient(135deg, #9aa4af 50%, transparent 50%); background-position: calc(100% - 18px) calc(1em + 2px), calc(100% - 13px) calc(1em + 2px); background-size: 5px 5px, 5px 5px; background-repeat:no-repeat; padding-right: 36px; }
