/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/
/* =========================================================
   FONTS
   ========================================================= */
/* barlow-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/barlow-v12-latin-regular.woff2') format('woff2');
}
/* barlow-italic - latin */
@font-face {
  font-display: swap;
  font-family: 'Barlow';
  font-style: italic;
  font-weight: 400;
  src: url('fonts/barlow-v12-latin-italic.woff2') format('woff2');
}
/* barlow-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/barlow-v12-latin-700.woff2') format('woff2');
}
/* barlow-800 - latin */
@font-face {
  font-display: swap;
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 800;
  src: url('fonts/barlow-v12-latin-800.woff2') format('woff2');
}
/* =========================================================
   TYPOGRAPHY
   ========================================================= */
body {
  font-family: 'Barlow';
  font-size: 17px;
}
h1, h2, h3, h4, p {
  font-family: 'Barlow';
}
h1 {
  font-size: clamp(34px, 3.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0 0 .35em;
  font-weight: 800;
}
h2 {
  font-size: clamp(24px, 2.1vw, 34px);
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0 0 10px; /* fester Wert statt em, damit der Abstand nicht mit der Schriftgröße mitskaliert und überall gleich aussieht */
}
h3 {
  font-size: clamp(20px, 1.35vw, 25px);
  line-height: 1.25;
  letter-spacing: -.01em;
  margin: 0 0 10px;
}
h4 {
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.3;
  letter-spacing: -.005em;
  margin: 0 0 .4em;
}
/* =========================================================
   LAYOUT & CONTAINERS
   ========================================================= */
.container-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.inside-header,
.footer-widgets {
  max-width: 1440px;
  margin: 0 auto;
}
.section {
  padding: 60px 0; /* Desktop */
}
@media (max-width: 1024px) {
  .section {
    padding: 44px 0; /* Tablet */
  }
}
@media (max-width: 720px) {
  .section {
    padding: 32px 0; /* Mobile */
  }
}
/* =========================================================
   HEADER & LOGO
   ========================================================= */
.site-header .inside-header,
.site-header {
  overflow: visible;
}
.site-logo {
  position: relative;
  z-index: 20;
  margin-top: -9px;
  margin-bottom: -20px; /* moderater Überstand */
}
.site-logo .header-image {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
/* Mobile Header: eigenes Logo-Element (.mobile-header-logo), GP macht es standardmäßig
   recht klein. Neu & sauber aufgesetzt:
   - Kein box-shadow mehr: die Logo-Grafik hat oben/unten etwas Weißraum um das Wappen.
     Ein Schlagschatten zeichnet genau diesen Weißraum als sichtbaren rechteckigen Rand
     nach - das war die Ursache für den "weißen Rand im Logo".
   - Kein margin-top/-bottom-Gebastel mehr: das Bild darf einfach höher sein als die
     Kopfzeile (#mobile-header hat overflow: visible) und ragt dadurch von selbst etwas
     über den Rand hinaus, ohne dass wir raten müssen, wie viel Weißraum im Bild steckt. */
#mobile-header,
#mobile-header .inside-navigation {
  overflow: visible;
}
/* Beim Hochscrollen erscheint der Header wieder (fixed), hatte aber keinen expliziten
   Hintergrund gesetzt - dadurch komplett durchsichtig und liegt lesbar über dem Inhalt.
   Hintergrund + leichter Schatten fürs Abheben vom Inhalt fest erzwingen. */
#mobile-header,
#mobile-header.stuckElement {
  background: #fff !important;
}
#mobile-header.stuckElement {
  box-shadow: 0 2px 12px rgba(17, 24, 39, .1);
}
/* GeneratePress setzt selbst height:50px auf genau dieses Element (per Media-Query aus
   dem Customizer, gleiche Klassenkombi .site-logo.mobile-header-logo) und die generische
   .site-logo-Regel oben vererbt zusätzlich ihre Desktop-margins (-9px/-20px) mit rein.
   Beides hier für mobil explizit zurücksetzen/überschreiben (!important nötig, da GPs
   eigene Regel exakt gleich spezifisch ist und je nach Ladereihenfolge sonst gewinnt).
   Wichtig: #mobile-header trägt bei euch die Klasse "stuckElement" bereits im ersten
   Render (nicht erst nach dem Scrollen) - der mobile Header ist quasi dauerhaft im
   "gestickten" Zustand. Deshalb EINE einzige Höhe für beide Fälle, kein größer/kleiner
   Wechsel mehr - das war der eigentliche Grund für den sichtbaren Sprung. */
.site-logo.mobile-header-logo,
#mobile-header.stuckElement .site-logo.mobile-header-logo {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  height: 72px !important;
}
.site-logo.mobile-header-logo img.is-logo-image,
#mobile-header.stuckElement .site-logo.mobile-header-logo img.is-logo-image {
  height: 72px !important;
  width: auto;
  max-width: none;
}
/* =========================================================
   NAVIGATION
   ========================================================= */
.main-navigation .main-nav ul li a,
.menu-toggle,
.main-navigation .menu-bar-item > a {
  padding-left: 24px;
  padding-right: 24px;
}
/* Hauptmenü Hover-Effekt: einfacher Farbwechsel, keine Pill */
#primary-menu a {
  transition: color 0.3s ease;
}
.main-navigation .main-nav > ul > li:not(.wochenkarte) > a:hover,
.main-navigation .main-nav > ul > li:not(.wochenkarte).current-menu-item > a,
.main-navigation .main-nav > ul > li:not(.wochenkarte).current-menu-ancestor > a,
.main-navigation .main-nav > ul > li:not(.wochenkarte).current-menu-parent > a {
  color: var(--accent);
}
/* Untermenü (z.B. "Unser Handwerk"): nicht umbrechen, abgerundete Ecken, mehr Padding,
   Pill beim Hover */
.main-navigation .sub-menu {
  width: max-content;
  border-radius: 12px;
  overflow: hidden;
}
.main-navigation .sub-menu li a {
  display: block;
  white-space: nowrap;
  border-radius: 9999px;
  padding: 10px 28px;
  line-height: 32px;
  transition: background-color 0.3s ease;
}
.main-navigation .sub-menu li a:hover,
.main-navigation .sub-menu li.current-menu-item a {
  background: #f0f0f0;
}
/* Mobiles Slide-out-Menü: weißer Hintergrund statt Theme-Dunkel, normale Textfarbe.
   Das Untermenü (.sub-menu) und die grauen current-item/expanded-Boxen hatten eigene,
   vom Theme vorgegebene dunkle Hintergründe - vorher unsichtbar, weil das ganze Menü
   ohnehin dunkel war. Jetzt explizit auf Weiß/Standardfarbe zurücksetzen. */
#generate-slideout-menu,
#generate-slideout-menu .inside-navigation,
#generate-slideout-menu .sub-menu,
#generate-slideout-menu li,
#generate-slideout-menu li a,
#generate-slideout-menu li.sfHover,
#generate-slideout-menu li:hover,
#generate-slideout-menu li:focus {
  background: #fff !important;
}
#generate-slideout-menu .main-nav a,
#generate-slideout-menu .slideout-exit,
#generate-slideout-menu .sub-menu a {
  color: #111827 !important;
}
#generate-slideout-menu .main-nav > ul > li.current-menu-item > a,
#generate-slideout-menu .main-nav > ul > li.current-menu-ancestor > a,
#generate-slideout-menu .main-nav > ul > li.current-menu-parent > a {
  color: var(--accent) !important;
}
/* Trennstrich vor dem Auf/Zu-Pfeil (Theme-Standard) entfernen */
#generate-slideout-menu .dropdown-menu-toggle {
  border-left: none !important;
}
/* Untermenü optisch klar als Unterebene erkennbar: kleiner, grau, eingerückt */
#generate-slideout-menu .sub-menu a {
  font-size: 0.85em;
  color: #6b7280 !important;
  padding-left: 40px;
}
#generate-slideout-menu .sub-menu li.current-menu-item > a {
  color: var(--accent) !important;
}
/* Tageskarte im Slide-out-Menü: soll wie auf Desktop die blaue Pille bleiben, nicht vom
   generischen Weiß/Standardfarbe-Reset oben überschrieben werden. margin-left ist fürs
   Desktop-Menü gedacht (Abstand zu den anderen Punkten in einer Zeile) und sorgt im
   mobilen Menü nur für eine unsymmetrische, nicht mittige Position - hier entfernen. */
#generate-slideout-menu li.wochenkarte {
  margin-left: 0;
  text-align: center;
}
#generate-slideout-menu li.wochenkarte a {
  background: #0067b6 !important;
  color: #fff !important;
  display: inline-flex;
  align-items: center;
}
/* =========================================================
   FOOTER
   Vorher: kaum Struktur, wirkte lieblos. Weder Farbfläche noch Trennlinie sollen den
   Übergang markieren - Struktur kommt nur über Grid-Abstand, blaue Titel und mehr
   Luft nach oben.
   ========================================================= */
#footer-widgets {
  background: #fff;
  padding: 64px 0 40px;
}
.inside-footer-widgets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (max-width: 1024px) {
  .inside-footer-widgets {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 36px;
  }
}
@media (max-width: 600px) {
  .inside-footer-widgets {
    grid-template-columns: 1fr;
  }
}
#footer-widgets .widget-title {
  color: #0067b6;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0 0 20px;
}
#footer-widgets .textwidget {
  color: #444;
  font-size: 15px;
  line-height: 1.7;
}
#footer-widgets .textwidget p {
  margin: 0 0 14px;
}
#footer-widgets .textwidget p:last-child {
  margin-bottom: 0;
}
#footer-widgets .textwidget a {
  color: #111827;
  text-decoration: none;
  transition: color .18s ease;
}
#footer-widgets .textwidget a:hover {
  color: #0067b6;
}
#footer-widgets .textwidget img {
  border-radius: 8px;
  margin-bottom: 12px;
}
/* Hintergrund fürs Copyright-Balken - ist beim Footer-Umbau versehentlich verloren
   gegangen, dadurch stand der helle Text auf hellem Grund (Body-Hintergrund) und war
   kaum lesbar. */
.site-info {
  background: #101a25;
}
.site-info .copyright-bar {
  padding: 18px 20px;
  text-align: center;
  color: rgba(255, 255, 255, .55);
  font-size: 13px;
}
.site-info .copyright-bar a {
  color: rgba(255, 255, 255, .8);
  text-decoration: none;
  transition: color .18s ease;
}
.site-info .copyright-bar a:hover {
  color: #fff;
}
/* =========================================================
   BUTTONS & FORMS
   ========================================================= */
.button,
.wp-block-button .wp-block-button__link {
  padding: 14px 28px;
}
#gform_3 {
  padding-left: 24px;
  padding-right: 24px;
}
.gform_button {
  padding: 14px 28px !important;
  border-radius: 9999px;
}
/* Formularfelder (Gravity Forms) ans restliche Design angleichen - Browser-/Plugin-
   Standard wirkt sonst fremd neben den restlichen, weich abgerundeten Elementen */
.gform_wrapper input[type=text],
.gform_wrapper input[type=email],
.gform_wrapper input[type=tel],
.gform_wrapper input[type=number],
.gform_wrapper input[type=url],
.gform_wrapper select,
.gform_wrapper textarea {
  border: 1px solid rgba(17, 24, 39, .15);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: 'Barlow';
  font-size: 16px;
  background: #f7f7f4;
  width: 100%;
  box-sizing: border-box;
  transition: border-color .2s ease, background .2s ease;
}
.gform_wrapper input[type=text]:focus,
.gform_wrapper input[type=email]:focus,
.gform_wrapper input[type=tel]:focus,
.gform_wrapper input[type=number]:focus,
.gform_wrapper input[type=url]:focus,
.gform_wrapper select:focus,
.gform_wrapper textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}
.gform_wrapper .gfield_label,
.gform_wrapper .gform-field-label {
  font-weight: 700;
  color: #111827;
}
.gform_wrapper .gform-field-label--type-sub {
  font-weight: 400;
  color: #666;
}
.gform_wrapper input[type=checkbox] {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
  vertical-align: middle;
}
/* Wochenkarte-Pill in der Navigation */
li.wochenkarte {
  margin-left: 20px;
}
li.wochenkarte a {
  background: #0067b6;
  border-radius: 9999px;
  padding: 5px 18px;
  line-height: 32px !important;
  color: #fff !important;
  display: inline-flex;
  align-items: center;
}
/* Icon vor dem Text: Löffel und Gabel nebeneinander (nicht gekreuzt), damit es nicht
   wie eine Ziffer aussieht */
li.wochenkarte a::before {
  content: "";
  display: inline-block;
  width: 15px;
  height: 23px;
  margin-right: 9px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2015.4%2024%22%3E%3Crect%20x%3D%220.3%22%20y%3D%222%22%20width%3D%221.3%22%20height%3D%228%22%20rx%3D%220.65%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%222.6%22%20y%3D%222%22%20width%3D%221.3%22%20height%3D%228%22%20rx%3D%220.65%22%20fill%3D%22%23fff%22/%3E%3Crect%20x%3D%224.9%22%20y%3D%222%22%20width%3D%221.3%22%20height%3D%228%22%20rx%3D%220.65%22%20fill%3D%22%23fff%22/%3E%3Cpath%20d%3D%22M0%2010%20C0%2012%201%2013%202.55%2013.4%20L2.55%2022%20L3.85%2022%20L3.85%2013.4%20C5.4%2013%206.2%2012%206.2%2010%20Z%22%20fill%3D%22%23fff%22/%3E%3Cpath%20d%3D%22M11.6%202%20C9.9%202%209.1%205.8%209.9%209%20C10.2%2010.2%2010.8%2011.1%2011.6%2011.6%20L11.6%2022%20L12.9%2022%20L12.9%2011.6%20C13.7%2011.1%2014.3%2010.2%2014.6%209%20C15.4%205.8%2014.6%202%2012.9%202%20Z%22%20fill%3D%22%23fff%22/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
/* Card-Buttons (Filialen / Cards) */
.section-cards .gb-button,
.single-card .gb-button {
  margin: 0 24px 24px 24px;
  padding: 6px 12px;
  border-radius: 99999px;
  background-color: var(--base);
  color: var(--accent);
  font-size: 14px;
  flex: 0 0 auto !important;
  width: auto !important;
}
.section-cards .gb-button:hover,
.single-card .gb-button:hover {
  background-color: var(--accent);
  color: #fff;
}
/* Filialen-Card: GB Button nicht full width */
.section-cards .gb-container .gb-button {
  display: inline-flex !important;
  width: auto !important;
  max-width: fit-content;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto !important;
}
/* =========================================================
   LISTEN (image-list, centered, hinweise, pills, check)
   ========================================================= */
ul.image-list {
  list-style: none;
  display: flex;
  gap: 10px;
  padding: 6px 24px;
  margin: 0 0 10px;
  text-align: center;
}
ul.image-list li {
  display: inline-block;
  padding: 0;
  margin: 0;
}
ul.image-list li img {
  max-width: 42px;
}
ul.centered {
  list-style: none;
  padding: 0;
  margin: 14px 0;
  text-align: center;
}
ul.centered li {
  display: inline-block;
  padding: 12px 24px;
  margin: 0;
}
ul.hinweise {
  list-style-type: none;
  margin: 0;
  padding: 0 24px !important;
}
ul.hinweise li {
  margin-bottom: 12px;
}
ul.liste-check {
  list-style: none;
  padding-left: 0;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  text-align: center;
}
ul.liste-check li {
  position: relative;
  padding-left: 1.4em;
  margin: 0;
  white-space: nowrap;
}
ul.liste-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}
/* Pills Navigation */
ul.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 20px 0 32px;
  list-style: none;
  justify-content: flex-start;
}
ul.pills li {
  display: inline-flex;
  margin: 0;
  padding: 0;
}
ul.pills a {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid rgba(17, 24, 39, .12);
  transition:
    background .2s ease,
    color .2s ease,
    box-shadow .2s ease,
    transform .15s ease;
}
ul.pills a:hover {
  background: #e10600;
  color: #fff;
  border-color: #e10600;
  box-shadow: 0 6px 18px rgba(225, 6, 0, .25);
  transform: translateY(-1px);
}
ul.pills a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(225, 6, 0, .35);
}
@media (max-width: 720px) {
  ul.pills {
    justify-content: flex-start;
  }
}
/* =========================================================
   GRID / RASTER UTILITIES
   ========================================================= */
@media (max-width: 720px) {
  .wp-block-group.is-layout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px;
  }
}
@media (max-width: 520px) {
  .wp-block-group.is-layout-grid {
    grid-template-columns: 1fr !important;
  }
}
/* Kontakt: nur der Grid-Block mit Klasse grid-70-30 */
.wp-block-group.is-layout-grid.grid-70-30 {
  grid-template-columns: 70% 30% !important;
}
/* Kontakt: nur der Grid-Block mit Klasse grid-30-70 */
.wp-block-group.is-layout-grid.grid-30-70 {
  grid-template-columns: 30% 70% !important;
}
/* Mobile: ab 720px immer 1 Spalte */
@media (max-width: 720px) {
  .wp-block-group.is-layout-grid.grid-70-30,
  .wp-block-group.is-layout-grid.grid-30-70 {
    grid-template-columns: 1fr !important;
  }
}
/* Cards sollen sich nach ihrem eigenen Inhalt richten, nicht auf die Höhe der
   Nachbar-Card gestreckt werden (CSS-Grid-Standard ist align-items: stretch) */
.section-kotakt .wp-block-group.is-layout-grid {
  align-items: start;
}
/* =========================================================
   SECTION CARDS (Filialen / Produkte Grid)
   ========================================================= */
.section-cards .container-inner {
  margin: 0 auto;
}
/* Nur Überschriften/Absätze INNERHALB einer Grid-Card padden. ".gb-container" reicht als
   Scope nicht aus - das ist GenerateBlocks' generische Basisklasse für JEDEN Container-Block,
   die trägt z.B. auch der lose container-inner um den Einleitungstext. Deshalb hier gezielt
   auf "ist ein direktes Grid-Item" eingrenzen, wie schon beim Card-Look weiter unten. */
.section-cards .wp-block-group.is-layout-grid > .gb-container h2,
.section-cards .wp-block-group.is-layout-grid > .gb-container h3,
.section-cards .wp-block-group.is-layout-grid > .gb-container p,
.section-cards .gb-grid-column > .gb-container h2,
.section-cards .gb-grid-column > .gb-container h3,
.section-cards .gb-grid-column > .gb-container p {
  padding: 6px 24px !important;
}
.section-cards .wp-block-group.is-layout-grid,
.section-cards .gb-grid-wrapper {
  gap: 1.5em;
}
.section-cards .block-highlights img {
  width: 100%;
  object-fit: cover;
  display: block;
}
.section-cards .block-highlights figure {
  margin: 0 0 12px;
}
/* Card-Look + Flex-Column (Button bleibt unten) */
.section-cards .wp-block-group.is-layout-grid > .gb-container,
.section-cards .gb-grid-column > .gb-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(17, 24, 39, .08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  padding: 0;
}
.section-cards .wp-block-group.is-layout-grid > .gb-container:hover,
.section-cards .gb-grid-column > .gb-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(17, 24, 39, .12);
  border-color: rgba(17, 24, 39, .16);
}
.section-cards .wp-block-group.is-layout-grid > .gb-container figure,
.section-cards .gb-grid-column > .gb-container figure {
  margin: 0 0 12px;
}
/* Abstand nach unten + Button nach unten schieben */
.section-cards .wp-block-group.is-layout-grid > .gb-container .wp-block-buttons,
.section-cards .gb-grid-column > .gb-container .wp-block-buttons {
  margin-top: auto;
  padding: 14px;
  margin-bottom: 14px;
}
.section-cards .is-layout-grid h2,
.section-cards .is-layout-grid h3 {
  margin: 24px 0 0;
  padding: 0 24px;
}
.section-cards .is-layout-grid p {
  padding: 0 24px;
}
.section.section-cards figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}
.section.section-cards .is-wide figure img {
  aspect-ratio: 4 / 3;
}
.section-cards .block-highlights.is-wide figure img,
.section-cards .block-highlights .is-wide figure img {
  aspect-ratio: 4 / 3;
}
/* Filialen-Cards ("Alle Standorte der Bäckerei Scharold"): der Grid-Block hat die
   Klasse "is-wide", die oben pauschal auf 4:3 setzt - hier stattdessen wieder 1:1,
   über die GB-Container-ID der Filialen-Sektion gescoped. */
.gb-container-b3954a66.block-produkte .is-wide figure img {
  aspect-ratio: 1 / 1 !important;
}
/* Öffnungszeiten */
.section.section-cards p em {
  display: inline-block;
  width: 150px;
  font-style: normal;
}
/* Filialen - Grid Verkaufsauto */
ul.image-list {
  margin-bottom: 10px;
}
/* =========================================================
   SINGLE CARD (Filialen Einzelkarte)
   ========================================================= */
.single-card-wow {
  padding: 24px !important;
}
/* "Wussten Sie, dass wir ..." – Checkmark-Icons statt reiner Textwand */
/* "Wussten Sie, dass wir ..." – über .section-promo .single-card statt der optionalen
   Modifier-Klasse .single-card-wow gescoped, damit es unabhängig davon greift, ob die
   Zusatzklasse gerade gesetzt ist oder nicht */
.section-promo .single-card .hinweise li {
  position: relative;
  padding-left: 34px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(17, 24, 39, .07);
}
.section-promo .single-card .hinweise li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.section-promo .single-card .hinweise li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0067b6;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.section-promo .single-card .hinweise li strong {
  color: #0067b6;
}
.single-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(17, 24, 39, .08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  padding: 0;
}
.single-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(17, 24, 39, .12);
  border-color: rgba(17, 24, 39, .16);
}
.single-card h2,
.single-card h3 {
  margin: 24px 0 24px;
  padding: 0 24px;
}
.single-card p, .single-card figure.wp-block-gallery {
  padding: 0 24px;
}
.single-card .is-layout-grid ul {
  list-style: none;
  padding: 6px 24px;
  text-align: center;
}
.single-card .is-layout-grid ul li {
  display: inline-block;
  padding: 0;
  margin: 0;
}
.single-card ul li img {
  max-width: 48px;
}
/* Öffnungszeiten */
.single-card p em {
  display: inline-block;
  width: 150px;
  font-style: normal;
}
.single-card .wp-block-buttons {
  margin: 0 24px 24px 24px;
}
/* =========================================================
   CARD (generische, wiederverwendbare Karte - z.B. Kontakt-/Info-Boxen
   neben Formularen)
   ========================================================= */
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(17, 24, 39, .08);
  padding: 28px;
}
.card h3 {
  margin-top: 0;
}
.card p:last-child {
  margin-bottom: 0;
}
.card figure.wp-block-image {
  margin: 16px 0;
}
.card figure.wp-block-image img {
  display: block;
}
/* Listen (z.B. "So läuft deine Bewerbung ab") - Browser-Standardeinzug ist zu breit */
.card ol,
.card ul {
  margin: 0;
  padding-left: 20px;
}
.card ol li,
.card ul li {
  margin-bottom: 8px;
}
.card ol li:last-child,
.card ul li:last-child {
  margin-bottom: 0;
}
/* =========================================================
   SECTION BEWERBUNG (Formular 2/3 + Karten 1/3, per Klasse
   "grid-70-30" am Grid-Block im Editor gesteuert)
   ========================================================= */
.section-bewerbung .wp-block-group.is-layout-grid {
  gap: 24px;
}
/* Die zweite Grid-Spalte enthält zwei .card-Elemente lose übereinander - ohne diese
   Regel liegen sie ohne Abstand aneinander */
.section-bewerbung .wp-block-group.is-layout-grid > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
/* Formular-Card: kein Hover-Effekt (das "Abheben" passt bei einer statischen
   Formular-Card nicht, das ist für klickbare Filialen-/Produkt-Cards gedacht) */
.section-bewerbung .single-card:hover {
  transform: none;
  box-shadow: 0 10px 28px rgba(17, 24, 39, .08);
  border-color: transparent;
}
/* =========================================================
   FILIALEN / SECTION-HIGHLIGHT
   Desktop: Card schwebt rechts unten über dem Slider
   Mobile: Card steht sauber UNTER dem Slider
   ========================================================= */
.section-highlight .container-inner.block-produkte {
  position: relative;
}
.section-highlight .gb-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 24px; /* wie die anderen Cards im Theme */
  --ctrl-size: 42px;
  --ctrl-gap: 12px;
}
/* Card als Overlay (Desktop) */
.section-highlight .single-card {
  position: absolute;
  right: 48px;
  bottom: 40px;
  width: min(420px, 42%);
  max-width: 440px;
  z-index: 5;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, .10);
  box-shadow: 0 18px 50px rgba(17, 24, 39, .18);
}
.section-highlight .gb-carousel-items img {
  display: block;
  width: 100%;
  height: auto;
}
/* Pfeile & Pagination über allem (damit sie NICHT hinter der Card verschwinden) */
.section-highlight .gb-element-273c5862 {
  position: absolute;
  inset: 0;
  pointer-events: none; /* Container klickt nicht */
  z-index: 6;
}
.section-highlight .gb-element-273c5862 .gb-carousel-control,
.section-highlight .gb-element-273c5862 .gb-carousel-pagination {
  pointer-events: auto; /* Buttons/Pagination klickbar */
}
/* Pfeil-Positionen Desktop */
.section-highlight .gb-carousel-control--previous {
  left: 24px !important;
}
.section-highlight .gb-carousel-control--next {
  right: 24px !important;
}
.section-highlight .gb-carousel .gb-carousel-control {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 30;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(17, 24, 39, .12);
  box-shadow: 0 10px 26px rgba(17, 24, 39, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}
.section-highlight .gb-carousel .gb-carousel-control--next {
  left: 14px;
  transform: translateX(calc(var(--ctrl-size) + var(--ctrl-gap)));
}
@media (hover: hover) {
  .section-highlight .gb-carousel .gb-carousel-control:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(17, 24, 39, .16);
  }
  .section-highlight .gb-carousel .gb-carousel-control--next:hover {
    transform: translateX(calc(var(--ctrl-size) + var(--ctrl-gap))) translateY(-1px);
  }
}
.section-highlight .gb-carousel .gb-carousel-control.is-disabled {
  opacity: .45;
  box-shadow: none;
}
.gb-carousel-control-icon svg {
  fill: var(--accent) !important;
}
/* Filialen-Slider: Desktop niedriger (16:9), darunter wieder höher (4:3) */
.section-highlight .gb-carousel-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16 / 9;    /* Desktop: weniger hoch */
  object-position: center; /* ggf. anpassen: center 35% */
}
/* Tablet: etwas höher */
@media (max-width: 1024px) {
  .section-highlight .gb-carousel-item img {
    aspect-ratio: 4 / 3;
  }
}
/* Mobil: noch kompakter */
@media (max-width: 720px) {
  .section-highlight .gb-carousel-item img {
    aspect-ratio: 4 / 3;
  }
}
/* ---- Mobile: Galerie + Info-Card als EINE durchgehende Card ---- */
@media (max-width: 720px) {
  /* Galerie: nur oben abgerundet, gemeinsamer Schatten wie bei den anderen Cards */
  .section-highlight .gb-carousel {
    border-radius: 16px 16px 0 0;
    box-shadow: 0 14px 34px rgba(17, 24, 39, .14);
  }
  /* Leerer Absatz zwischen Galerie und Info-Card entfernen, sonst bleibt eine Lücke.
     Ohne ">" (descendant statt direktes Kind), da der Absatz tatsächlich eine Ebene
     tiefer im Carousel-Wrapper steckt, nicht direkt in .block-produkte. */
  .section-highlight .container-inner.block-produkte p.wp-block-paragraph:empty {
    display: none;
  }
  /* Card NICHT mehr overlay, sondern direkt unter der Galerie im Flow, ohne Abstand */
  .section-highlight .single-card {
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 14px 34px rgba(17, 24, 39, .14);
  }
  /* Controls: an den Bildrändern halten statt als Button-Paar unten links zu clustern */
  .section-highlight .gb-carousel-control--previous {
    left: 10px !important;
    right: auto !important;
    transform: none !important;
  }
  .section-highlight .gb-carousel-control--next {
    left: auto !important;
    right: 10px !important;
    transform: none !important;
  }
  .section-highlight .gb-carousel-control--next:hover {
    transform: translateY(-1px) !important;
  }
  /* Pagination unten mittig etwas höher (falls doch mal eingeblendet) */
  .section-highlight .gb-carousel-pagination {
    bottom: 10px !important;
  }
}
/* =========================================================
   SECTION HERO
   ========================================================= */
.section-hero {
  position: relative;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  min-height: 420px;
  display: flex;
  align-items: center;  /* vertikal zentriert */
  padding: 60px 0 40px; /* falls wenig Inhalt */
}
@media (max-width: 1024px) {
  .section-hero {
    min-height: 380px;
    padding: 48px 0;
  }
  /* Der Verlauf ist für Desktop gebaut (dunkel links, wo der Text sitzt / heller rechts,
     wo das Bild frei bleibt). Auf Mobil/Tablet nimmt der Text die volle Breite ein und
     würde sonst über dem helleren Bereich liegen - deshalb hier einheitlich dunkler statt
     Verlauf. Zusätzlich Bild an den rechten Rand andocken, damit das Motiv (statt der
     leeren Bildmitte) sichtbar bleibt. */
  .section-hero::after {
    background: rgba(0, 0, 0, .78);
  }
  /* .section-hero doppelt geschrieben = künstlich höhere Spezifität. GenerateBlocks
     generiert pro Bild eine eigene ::before-Regel ebenfalls mit !important und exakt
     gleicher Spezifität (Klasse + Pseudo-Element) - bei Gleichstand gewinnt sonst GB,
     weil dessen CSS später im <head> geladen wird. Nur simples !important reichte
     deshalb nicht. */
  .section-hero.section-hero::before {
    background-position: right center !important;
  }
}
.section-hero .container-inner {
  width: 100%;
  position: relative;
  z-index: 2;
}
/* Hintergrundbild – sanfter Zoom. Kein eigenes background hier setzen: GenerateBlocks'
   Hintergrundbild-Feature schreibt das Bild direkt auf dieses ::before (pro Block
   individuell im Editor gesetzt). Falls doch mal kein Bild darüber kommt, dient
   --inline-bg-image als Fallback. */
.section-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--inline-bg-image);
  background-size: cover;
  background-position: center;
  z-index: 0;
  animation: heroZoom 18s ease-in-out infinite alternate;
}
/* Dunkler Verlauf obendrüber - bewusst auf ::after statt ::before, damit wir
   GenerateBlocks' Hintergrundbild auf ::before nicht überschreiben. */
.section-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .95) 100%);
  z-index: 1;
  pointer-events: none;
}
/* Startseiten-Hero (Schwarz-Weiß-Foto): der Standard-Verlauf addiert sich zur ohnehin
   dunklen Bildstimmung zu stark, hier deutlich abgeschwächt */
.gb-container-4ca25155.section-hero::after {
  background: linear-gradient(to left, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .65) 100%);
}
.section-hero > * {
  position: relative;
  z-index: 2;
}
.section-hero :is(h1, p) {
  max-width: 800px;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
/* Überschrift */
.section-hero h1 {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp .9s ease-out forwards;
  animation-delay: .2s;
}
/* Text */
.section-hero p {
  color: rgba(255, 255, 255, .85);
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp .9s ease-out forwards;
  animation-delay: .5s;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* =========================================================
   SECTION PROMO
   ========================================================= */
.section-promo {
  position: relative;
}
.section-promo .wp-block-group.is-layout-grid {
  grid-template-columns: 1fr 2fr !important;
}
/* Grid-Verhältnis-Varianten: Zusatzklasse im Editor neben "section-promo" setzen.
   Ohne Zusatzklasse bleibt es beim Standard 1fr 2fr (~33/66). */
.section-promo.section-promo-50 .wp-block-group.is-layout-grid {
  grid-template-columns: 1fr 1fr !important; /* 50/50 */
}
.section-promo.section-promo-33 .wp-block-group.is-layout-grid {
  grid-template-columns: 1fr 2fr !important; /* 33/66, entspricht dem Standard - falls man's mal explizit markieren will */
}
/* Mobile: volle Breite statt zweispaltig – ist spezifischer als die generische
   .wp-block-group.is-layout-grid Mobile-Regel, deshalb eigener Override nötig */
@media (max-width: 720px) {
  .section-promo .wp-block-group.is-layout-grid,
  .section-promo.section-promo-50 .wp-block-group.is-layout-grid,
  .section-promo.section-promo-33 .wp-block-group.is-layout-grid {
    grid-template-columns: 1fr !important;
  }
}
.section-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .95) 100%);
  z-index: 1;
  pointer-events: none;
}
/* Hellere Verlauf-Variante, wenn das Hintergrundbild mehr zur Geltung kommen soll.
   Zusatzklasse "section-promo-light" im Editor neben "section-promo" setzen. */
.section-promo.section-promo-light::before {
  background: linear-gradient(to right, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .45) 100%);
}
.section-promo > * {
  position: relative;
  z-index: 2;
}
/* Tour Verkaufsauto: Wochentage als zweispaltige Tabelle (Tag | Route) */
.card-verkaufsauto > p:first-of-type {
  color: #444;
}
.card-verkaufsauto p:has(strong) {
  display: grid;
  grid-template-columns: 130px 1fr; /* feste Spaltenbreite, damit alle Zeilen exakt untereinander stehen */
  column-gap: 12px;
  align-items: baseline;
  padding: 10px 24px;
  margin: 0;
  border-bottom: 1px solid rgba(17, 24, 39, .08);
  line-height: 1.6;
}
.card-verkaufsauto p:has(strong):last-of-type {
  border-bottom: none;
}
/* Mobile: Pill oben, Text darunter in voller Breite statt gequetschter zweiter Spalte */
@media (max-width: 720px) {
  .card-verkaufsauto p:has(strong) {
    grid-template-columns: 1fr;
    row-gap: 6px;
  }
}
.card-verkaufsauto p strong {
  display: inline-block;
  justify-self: start; /* Badge bleibt kompakt, statt die Spalte zu stretchen */
  padding: 3px 12px;
  border-radius: 999px;
  background: #0067b6; /* Blau statt Rot, damit es nicht wie ein Button/CTA aussieht */
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.card-verkaufsauto p em {
  display: block;
  width: auto; /* überschreibt die feste width:150px aus der Öffnungszeiten-Regel */
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(225, 6, 0, .06);
  border-left: 3px solid #e10600;
  border-radius: 4px;
  font-style: normal;
  font-size: 13px;
  color: #555;
}
/* Mehr Innenabstand für ALLE Content-Boxen in Section-Promo (Tour Verkaufsauto,
   Wussten Sie ...), auf Desktop deutlich mehr als auf Mobile. Nur die Längsformen
   (padding-left/-right) statt des Shorthands, damit die eigenen vertikalen Abstände
   der einzelnen Regeln (z. B. die 10px der Wochentag-Zeilen) erhalten bleiben. */
.section-promo .single-card h2,
.section-promo .single-card h3 {
  padding-left: 40px;
  padding-right: 40px;
}
.section-promo .single-card h2 {
  margin-top: 36px;
}
.section-promo .single-card > p {
  padding-left: 40px !important;
  padding-right: 40px !important;
}
.section-promo .single-card .hinweise {
  padding-left: 40px !important;
  padding-right: 40px !important;
}
.section-promo .single-card > *:last-child {
  margin-bottom: 36px;
}
@media (max-width: 720px) {
  .section-promo .single-card h2,
  .section-promo .single-card h3 {
    padding-left: 24px;
    padding-right: 24px;
  }
  .section-promo .single-card h2 {
    margin-top: 24px;
  }
  .section-promo .single-card > p {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  .section-promo .single-card .hinweise {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  .section-promo .single-card > *:last-child {
    margin-bottom: 24px;
  }
}
/* =========================================================
   BLOCK PRODUKTE (Highlights-Cards Startseite)
   ========================================================= */
.block-produkte .block-highlights.is-layout-grid {
  gap: 1.5em; /* wie überall sonst bei den Card-Grids */
}
.block-produkte .block-highlights.is-layout-grid > .gb-container {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(17, 24, 39, .08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.block-produkte .block-highlights.is-layout-grid > .gb-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(17, 24, 39, .12);
  border-color: rgba(17, 24, 39, .16);
}
.block-produkte .block-highlights.is-layout-grid > .gb-container h3 {
  margin: 0 0 8px;
}
.block-produkte .block-highlights.is-layout-grid > .gb-container p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}
/* Unser-Handwerk-Hub: 4 Cards (Geschichte/Partner/Menschen/Jobs) in einer Reihe statt 2x2.
   Scoped über die block-eigene GB-Container-ID (gb-container-6ecdd4f4, = .block-produkte
   auf dieser Seite). NICHT über "wp-container-core-group-is-layout-*" scopen – diesen Hash
   generiert WordPress core aus den Grid-Einstellungen und nutzt ihn seitenübergreifend für
   JEDES Grid-Block mit denselben Einstellungen wieder (kein Instanz-Hash!). */
.gb-container-6ecdd4f4.block-produkte > .is-layout-grid {
  grid-template-columns: repeat(4, 1fr) !important;
}
@media (max-width: 1024px) {
  .gb-container-6ecdd4f4.block-produkte > .is-layout-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 720px) {
  .gb-container-6ecdd4f4.block-produkte > .is-layout-grid {
    grid-template-columns: 1fr !important;
  }
}
/* =========================================================
   RASTER-START ("Unser Handwerk – Wussten Sie, dass wir …")
   ========================================================= */
.raster-start h2 {
  letter-spacing: .02em; /* margin kommt jetzt von der globalen h2-Regel */
}
.raster-start h3 {
  margin: 0 !important;
}
.raster-start p {
  padding-top: 0 !important;
  font-size: 15px;
}
/* =========================================================
   SECTION PANEL (Bild + Text Wechsel-Layout)
   ========================================================= */
.section-panel .wp-block-group.is-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: #fff;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(17, 24, 39, .08);
}
.section-panel .wp-block-group.is-layout-grid > div:first-child {
  height: 100%;
}
.section-panel figure {
  margin: 0;
  height: 100%;
}
.section-panel figure img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 1 / 1; /* Team-Fotos sind quadratisch (1080x1080) hochgeladen */
}
/* Text vertikal zentrieren + mehr Padding */
.section-panel .wp-block-group.is-layout-grid > div:last-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 3vw, 40px);
}
.section-panel .wp-block-group.is-layout-grid p {
  margin: 0 0 12px;
}
.section-panel .wp-block-group.is-layout-grid p:last-child {
  margin-bottom: 0;
}
/* Jedes 2. Panel swappen (Bild rechts). Zweite Selektor-Variante zusätzlich, weil manche
   Seiten (z. B. "Menschen bei Scharold") die Panels nicht als direkte Kinder von
   .section-panel haben, sondern eine .container-inner-Ebene dazwischen liegt. */
.section-panel > *:nth-of-type(even) .wp-block-group.is-layout-grid > div:first-child,
.section-panel .container-inner > *:nth-of-type(even) .wp-block-group.is-layout-grid > div:first-child {
  order: 2;
}
.section-panel > *:nth-of-type(even) .wp-block-group.is-layout-grid > div:last-child,
.section-panel .container-inner > *:nth-of-type(even) .wp-block-group.is-layout-grid > div:last-child {
  order: 1;
}
/* Mobile: immer Bild oben, Text unten (auch bei geswappt) */
@media (max-width: 720px) {
  .section-panel .wp-block-group.is-layout-grid {
    grid-template-columns: 1fr;
  }
  .section-panel > *:nth-of-type(even) .wp-block-group.is-layout-grid > div:first-child,
  .section-panel > *:nth-of-type(even) .wp-block-group.is-layout-grid > div:last-child,
  .section-panel .container-inner > *:nth-of-type(even) .wp-block-group.is-layout-grid > div:first-child,
  .section-panel .container-inner > *:nth-of-type(even) .wp-block-group.is-layout-grid > div:last-child {
    order: unset;
  }
  .section-panel figure img {
    aspect-ratio: 1 / 1;
  }
}
/* =========================================================
   SECTION CTA (Seitenende, ohne Bild)
   ========================================================= */
.section-cta {
  background: #f7f7f4; /* warmes off-white */
  border-top: 1px solid rgba(17, 24, 39, .08);
  padding: clamp(36px, 5vw, 64px) 0;
}
.section-cta .container-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 28px);
  text-align: center;
}
.section-cta h2 {
  letter-spacing: .02em; /* margin kommt jetzt von der globalen h2-Regel */
}
.section-cta p {
  margin: 0 auto 18px;
  max-width: 60ch;
  opacity: .9;
}
.section-cta .wp-block-buttons {
  justify-content: center;
  margin-top: 10px;
}
/* =========================================================
   SECTION FAQ (Accordion)
   ========================================================= */
.section-faq .container-inner {
  max-width: 900px;
  margin: 0 auto;
}
.section-faq .gb-accordion__item {
  border: none !important;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(17, 24, 39, .07);
  margin-bottom: 16px;
  overflow: hidden;
  transition: box-shadow .18s ease;
}
.section-faq .gb-accordion__item:hover {
  box-shadow: 0 10px 28px rgba(17, 24, 39, .12);
}
.section-faq .gb-accordion__item:last-child {
  margin-bottom: 0;
}
.section-faq .gb-accordion__toggle {
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1.05em;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  transition: background-color .18s ease;
}
.section-faq .gb-accordion__toggle:hover .gb-text {
  color: var(--accent);
}
/* Geöffneter Zustand: nur die Überschrift eingefärbt, kein Hintergrund - reicht als
   Signal und wirkt cleaner */
.section-faq .gb-accordion__toggle[aria-expanded="true"] .gb-text {
  color: var(--accent);
}
.section-faq .gb-accordion__toggle-icon {
  color: var(--accent);
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform .2s ease;
}
.section-faq .gb-accordion__toggle[aria-expanded="true"] .gb-accordion__toggle-icon {
  transform: rotate(180deg);
}
/* Padding sitzt auf dem inneren Wrapper, nicht auf .gb-accordion__content selbst:
   Das Akkordeon klappt über max-height auf .gb-accordion__content ein - läge das
   Padding direkt dort, bliebe der untere Abstand auch im geschlossenen Zustand
   sichtbar (Ursache für die leere Fläche unter geschlossenen Fragen). */
.section-faq .gb-accordion__content {
  padding: 0;
}
.section-faq .gb-accordion__content > div {
  padding: 0 24px 22px;
}
.section-faq .gb-accordion__content > * {
  margin-top: 16px;
}
.section-faq .gb-accordion__content > *:first-child {
  margin-top: 0;
}
.section-faq .gb-accordion__content p,
.section-faq .gb-accordion__content li {
  color: #444;
  margin: 0 0 8px;
}
.section-faq .gb-accordion__content ul {
  margin: 8px 0 0;
  padding-left: 20px;
}
.section-faq .gb-accordion__content p:last-child,
.section-faq .gb-accordion__content ul:last-child {
  margin-bottom: 0;
}
/* =========================================================
   JOB-CARDS (Unser Handwerk / Jobs & Stellenangebote)
   ========================================================= */
.section-cards-job h3 {
  margin-bottom: 14px;
}
.section-cards-job ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
  padding: 10px 20px 0;
  list-style: none;
}
.section-cards-job li {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  background: #f1f2f4;
  font-size: 14px;
  line-height: 1.3;
  color: #2f363d;
}
.section-cards-job li strong {
  margin-right: 4px;
  font-weight: 800;
  color: #202428;
}
.section-cards-job p {
  margin-bottom: 22px;
  line-height: 1.6;
}
.section-cards-job p strong {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.3;
  color: #202428;
}
.section-cards-job p strong::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: #e30613;
  vertical-align: middle;
}
.section-cards-job .wp-block-buttons {
  margin-top: 24px;
}
.section-cards-job .wp-block-button__link {
  padding: 13px 22px;
  border-radius: 999px;
  background: #e30613;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, transform 0.2s ease;
}
.section-cards-job .wp-block-button__link:hover {
  background: #c9000b;
  color: #ffffff;
  transform: translateY(-1px);
}
@media (max-width: 767px) {
  .section-cards-job ul {
    gap: 7px;
    margin-bottom: 22px;
  }
  .section-cards-job li {
    padding: 6px 10px;
    font-size: 13px;
  }
  .section-cards-job p {
    margin-bottom: 20px;
    line-height: 1.55;
  }
  .section-cards-job .wp-block-buttons {
    margin-top: 20px;
  }
  .section-cards-job .wp-block-button__link {
    width: 100%;
    justify-content: center;
    padding: 14px 18px;
    text-align: center;
  }
}
/* =========================================================
   BLOG-ARTIKEL ALS CARDS
   Scope: body.blog
   ========================================================= */
body.blog .one-container.archive .post:not(:last-child):not(.is-loop-template-item),
.one-container.blog .post:not(:last-child):not(.is-loop-template-item) {
  padding-bottom: 20px;
}
body.blog .generate-columns-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 0;
}
/* Eigene Regel für den seitlichen Abstand, mit #main als ID-Anker deutlich spezifischer
   als GPs eigene Regeln. GeneratePress setzt auf .generate-columns-container selbst
   vermutlich einen NEGATIVEN margin (klassisches Row/Gutter-Muster: der Container
   bekommt margin: 0 -Xpx, die einzelnen .grid-33-Spalten dafür padding: 0 Xpx, damit die
   äußeren Spalten optisch bündig sind). Unser padding kam oben drauf, wurde aber vom
   negativen margin wieder aufgehoben - im DevTools-Boxmodell war das padding korrekt zu
   sehen, visuell lief der Beitrag trotzdem über den Rand. Deshalb hier zusätzlich den
   margin explizit auf 0 zurücksetzen. */
#main .generate-columns-container {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}
body.blog .generate-columns-container > article.post {
  flex: 1 1 calc(50% - 0.75rem);
  max-width: calc(50% - 0.75rem);
  box-sizing: border-box;
}
@media (max-width: 720px) {
  body.blog .generate-columns-container > article.post {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
/* Card-Look */
body.blog article.post {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(17, 24, 39, .10), 0 2px 8px rgba(17, 24, 39, .06);
  border: 1px solid rgba(17, 24, 39, .06);
  transition: transform .18s ease, box-shadow .18s ease;
  margin: 0;
  padding: 0;
}
body.blog article.post:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(17, 24, 39, .14), 0 4px 12px rgba(17, 24, 39, .08);
}
body.blog article.post .inside-article {
  display: flex;
  flex-direction: column;
  height: 100%;
}
/* Bild randlos, oben an die Card-Ecken angepasst */
body.blog article.post .post-image {
  margin: 0;
  padding: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  line-height: 0; /* entfernt Mini-Abstand durch inline a/img */
}
body.blog article.post .post-image a {
  display: block;
  margin: 0;
  padding: 0;
}
body.blog article.post .post-image img {
  width: 100% !important;
  height: 100% !important;
  display: block;
  margin: 0;
  padding: 0;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
body.blog article.post .entry-header {
  padding: 48px 24px 0;
}
body.blog article.post .entry-title {
  margin: 0 0 8px;
  font-size: 1.4rem;
}
body.blog article.post .entry-title a {
  color: #111827;
  text-decoration: none;
}
body.blog article.post .entry-title a:hover {
  color: #e10600;
}
body.blog article.post .entry-meta {
  padding: 0;
  font-size: 13px;
  color: #777;
}
body.blog article.post .posted-on time {
  margin-right: 8px;
}
body.blog article.post .entry-summary {
  padding: 12px 24px 24px;
  margin: 0;
  flex-grow: 1;
}
body.blog article.post .entry-summary p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}
body.blog article.post footer.entry-meta {
  padding: 0 24px 24px;
  margin-top: auto;
}
/* =========================================================
   "WAS GIBT'S NEUES" – LOOP-ITEMS ALS CARDS
   ========================================================= */
.gb-looper-f21d7f34 {
  display: flex !important; /* !important: überstimmt GenerateBlocks-eigene Grid-Einstellungen des Looper-Blocks */
  flex-wrap: wrap !important;
  gap: 1.5rem !important;
}
.gb-looper-f21d7f34 .gb-loop-item {
  flex: 1 1 calc(25% - 1.125rem) !important;
  width: calc(25% - 1.125rem) !important;
  max-width: calc(25% - 1.125rem) !important;
  box-sizing: border-box;
  padding: 0;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(17, 24, 39, .10), 0 2px 8px rgba(17, 24, 39, .06);
  border: 1px solid rgba(17, 24, 39, .06);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
}
.gb-looper-f21d7f34 .gb-loop-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(17, 24, 39, .14), 0 4px 12px rgba(17, 24, 39, .08);
}
/* Bild randlos oben */
.gb-looper-f21d7f34 .gb-loop-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  margin: 0;
}
/* Titel */
.gb-looper-f21d7f34 .gb-loop-item h3 {
  margin: 24px 24px 0;
  font-size: 1.15rem;
}
.gb-looper-f21d7f34 .gb-loop-item h3 a {
  color: #111827;
  text-decoration: none;
}
.gb-looper-f21d7f34 .gb-loop-item h3 a:hover {
  color: #e10600;
}
/* Datum */
.gb-looper-f21d7f34 .gb-loop-item .gb-text-4779ed5d {
  margin: 6px 24px 0;
  font-size: 13px;
  color: #777;
}
/* Teaser-Text */
.gb-looper-f21d7f34 .gb-loop-item > p.gb-text:not(.gb-text-c41700da):not(.gb-text-4779ed5d) {
  margin: 10px 24px 24px;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  flex-grow: 1;
}
@media (max-width: 1024px) {
  .gb-looper-f21d7f34 .gb-loop-item {
    flex: 1 1 calc(50% - 0.75rem) !important;
    width: calc(50% - 0.75rem) !important;
    max-width: calc(50% - 0.75rem) !important;
  }
}
@media (max-width: 720px) {
  .gb-looper-f21d7f34 .gb-loop-item {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}
/* =========================================================
   FILIALEN & FAKTEN (Elementor)
   ========================================================= */
.section-filialen .e-con-full {
  background: #fff;
  padding: 0;
  margin-bottom: 30px;
  padding-bottom: 40px;
}
.section-filialen h3,
.section-filialen p,
.section-filialen .elementor-button-wrapper {
  padding-left: 20px;
  padding-right: 20px;
}
.section-filialen h3 {
  margin-bottom: 0;
}
.section-filialen p {
  margin-bottom: 10px;
}
.section-fakten ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
.section-fakten ul li {
  margin-bottom: 10px;
}
/* Lightbox */
.wp-lightbox-overlay .scrim {
    opacity: .9 !important;
}
/* =========================================================
   TOOLTIP
   ========================================================= */
.tooltip-container {
  position: relative;
  display: inline-block;
}
.tooltip-container .tooltip-text {
  font-size: 12px;
  visibility: hidden;
  width: 88px;
  background-color: #0067b6;
  color: #fff;
  text-align: center;
  padding: 5px;
  border-radius: 5px;
  position: absolute;
  bottom: 125%; /* Oberhalb des Bildes */
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s;
}
.tooltip-container .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%; /* Unterhalb des Tooltips */
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #0067b6 transparent transparent transparent;
}
.tooltip-container:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}
/* FIX BILD STARTSEITE - entfernt: hat mit !important das ::before des Hero-Containers
   (gb-container-4ca25155) belegt und damit den .section-hero::before-Verlauf
   überschrieben. Das Hero-Bild läuft inzwischen sauber über .section-hero::after
   (--inline-bg-image), diese alte Notlösung war nicht mehr nötig und blockierte den
   Verlauf. Falls das Hero-Bild danach nicht mehr laden sollte: im Editor prüfen, ob am
   Hero-Block ein Hintergrundbild gesetzt ist (das setzt --inline-bg-image automatisch). */
/* =========================================================
   GRID-SPALTEN-OVERRIDES (bewusst ganz unten in der Datei)
   ========================================================= */
/* Feste Spaltenzahl, unabhängig von WordPress' automatisch generierter
   wp-container-core-group-is-layout-*-Klasse (wird pro Grid-EINSTELLUNG gebildet, nicht
   pro Instanz - baugleiche Grids auf verschiedenen Seiten teilen sich sonst die Klasse)
   und unabhängig von der GB-Container-ID (die ist nach einem Duplizieren des Blocks als
   Vorlage auch nicht zwingend eindeutig - siehe "Aus der Region" vs. "Unser Handwerk",
   beide hatten dieselbe gb-container-ID). Zusatzklasse direkt am Grid-Block im Editor
   setzen (das ist der Block mit "is-layout-grid", nicht die umgebende Section).
   Steht absichtlich am Dateiende: bei gleicher Spezifität wie ältere ID-basierte
   Overrides (z.B. .gb-container-6ecdd4f4.block-produkte) gewinnt die spätere Regel im
   Stylesheet, damit diese Klasse zuverlässig alles andere schlägt. */
.wp-block-group.is-layout-grid.grid-3 {
  grid-template-columns: repeat(3, 1fr) !important;
}
.wp-block-group.is-layout-grid.grid-4 {
  grid-template-columns: repeat(4, 1fr) !important;
}
@media (max-width: 1024px) {
  .wp-block-group.is-layout-grid.grid-3,
  .wp-block-group.is-layout-grid.grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 720px) {
  .wp-block-group.is-layout-grid.grid-3,
  .wp-block-group.is-layout-grid.grid-4 {
    grid-template-columns: 1fr !important;
  }
}