/*
 * Startseite ohne WPBakery und ohne Slider Revolution.
 *
 * Ersetzt den Slider-Hero (581 KB JavaScript) und 15 WPBakery-Rows, deren volle
 * Breite erst per JavaScript nach dem Laden gesetzt wurde. Hier macht das alles CSS,
 * es laeuft also schon beim ersten Rendern richtig - kein Springen, kein Platzhalter.
 *
 * Angelegt 2026-09-23. Nur auf der Seite mit dem Slug "startseite-neu" eingebunden
 * (s. child_theme_styles() in der functions.php).
 */

:root {
    --gb-blau: #1d4e80;
    --gb-blau-dunkel: #163c63;
    --gb-text: #393939;
    --gb-grau: #f7f7f7;
    --gb-hero-bg: #e7e7e7;
    --gb-rand: #e2e2e2;
}

/* Sektionen ueber die volle Breite, ohne dass JavaScript etwas ausmessen muss.
   Ersetzt WPBakerys data-vc-full-width, das genau dafuer da war. */
.gb-sektion {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 72px 0;
}

.gb-sektion--grau { background: var(--gb-grau); }

.gb-innen {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 16px;
}

.gb-sektion h2 {
    text-align: center;
    color: var(--gb-text);
    margin: 0 0 12px;
}

.gb-sektion h2 + .gb-strich {
    width: 60px;
    height: 3px;
    background: var(--gb-blau);
    margin: 0 auto 28px;
}

/* ---------------------------------------------------------------- Hero */

.gb-hero {
    /* Gleicher Kniff wie bei .gb-sektion: der graue Grund laeuft ueber die volle
       Fensterbreite, obwohl der Hero im Inhaltscontainer des Themes steckt. */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: var(--gb-hero-bg);
    padding: 56px 0 48px;
}

/* ☠️ Das Eltern-Theme haengt an JEDES ul > li ein Icon (content: '\f107', Font
   'rbicon') und schiebt den Text um 25px ein - siehe seoes/assets/css/main.css.
   Im Hero sind die Listen aber Chips und eine Siegelreihe; dort ist der Haken
   falsch. Nur hier abgeschaltet, die normalen Aufzaehlungen (z.B. im FAQ)
   behalten ihr Icon. */
/* ☠️ Nur das Icon abschalten - NICHT den Innenabstand. Ein
   `.gb-hero ul > li { padding-left: 0 }` haette die Spezifitaet (0,1,2) und wuerde
   damit das `padding` der Chips unten (0,1,1) ueberschreiben, egal in welcher
   Reihenfolge es steht. Genau das hat am 2026-09-23 die Abstaende zerlegt.
   Den 25px-Einzug des Themes heben die Chips und Siegel je selbst auf. */
.gb-hero li::before { content: none; display: none; }

.gb-hero__innen {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.gb-hero__text { flex: 1 1 520px; min-width: 0; }
.gb-hero__bild { flex: 0 1 380px; text-align: center; }

/* width/height stehen am <img>; daraus kennt der Browser das Seitenverhaeltnis
   schon vor dem Laden und haelt den Platz frei - nichts rutscht nach. Ein festes
   aspect-ratio waere hier falsch, das Motiv ist nicht quadratisch. */
.gb-hero__bild img {
    max-width: 100%;
    height: auto;
}

.gb-hero h1 {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.2;
    color: #000;
    margin: 0 0 24px;
}

.gb-hero h1 em {
    font-style: normal;
    color: var(--gb-blau);
}

.gb-hero__doks {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Eigenes padding statt der 25px des Themes. Der Radius liegt auf denselben 4px
   wie Knopf und Produktbilder, damit die Seite eine Formensprache hat. */
.gb-hero__doks li {
    background: #fff;
    border: 1px solid var(--gb-rand);
    border-radius: 4px;
    padding: 9px 16px;
    font-size: 15px;
    line-height: 1.35;
    color: #000;
}

.gb-siegel {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.gb-siegel li { padding: 0; }
.gb-siegel img { height: 46px; width: auto; display: block; }

/* ------------------------------------------------------------- Knopf */

.gb-knopf {
    display: inline-block;
    background: var(--gb-blau);
    color: #fff;
    padding: 15px 34px;
    border-radius: 4px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s ease;
}

.gb-knopf:hover,
.gb-knopf:focus { background: var(--gb-blau-dunkel); color: #fff; }

.gb-knopf--mitte { display: block; width: fit-content; margin: 36px auto 0; }

/* -------------------------------------------------------- Einleitung */

.gb-einleitung { text-align: center; max-width: 920px; margin: 0 auto; }
.gb-fussnote { font-size: 14px; color: #666; margin-top: 16px; text-align: center; }

.gb-zahlarten {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.gb-zahlarten img { height: 25px; width: auto; }

/* ---------------------------------------------------------- Vorteile */

.gb-vorteile {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 34px 40px;
    margin-top: 44px;
}

.gb-vorteil { display: flex; gap: 16px; }
.gb-vorteil svg { flex: 0 0 28px; width: 28px; height: 28px; color: var(--gb-blau); margin-top: 2px; }
.gb-vorteil h3 { margin: 0 0 6px; font-size: 19px; color: #000; }
.gb-vorteil p { margin: 0; color: rgba(0, 0, 0, .8); }

/* ---------------------------------------------------- Produktbloecke */

.gb-produkt {
    display: flex;
    flex-wrap: wrap;
    gap: 44px;
    align-items: center;
    padding: 56px 0;
    border-bottom: 1px solid var(--gb-rand);
}

.gb-produkt:last-of-type { border-bottom: 0; }

.gb-produkt__bild { flex: 1 1 380px; min-width: 0; }
.gb-produkt__text { flex: 1 1 420px; min-width: 0; }

/* width/height stehen am <img>; damit kennt der Browser das Seitenverhaeltnis
   vor dem Laden und der Text springt beim Nachladen nicht. */
.gb-produkt__bild img {
    max-width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--gb-rand);
    border-radius: 4px;
}

/* Bild rechts statt links - reine CSS-Umkehr, kein zweites Markup */
.gb-produkt--gedreht .gb-produkt__bild { order: 2; }

.gb-produkt h3 { margin: 0 0 14px; font-size: 24px; color: #000; }
.gb-produkt a { color: var(--gb-blau); text-decoration: underline; }

/* --------------------------------------------------------------- FAQ */

/* <details> statt Akkordeon-JavaScript: das Auf- und Zuklappen kann der Browser
   selbst, und es funktioniert auch, wenn Skripte noch nicht geladen sind. */
.gb-faq { max-width: 900px; margin: 36px auto 0; }

.gb-faq details {
    border: 1px solid var(--gb-rand);
    border-radius: 4px;
    margin-bottom: 10px;
    background: #fff;
}

.gb-faq summary {
    cursor: pointer;
    padding: 16px 20px;
    font-weight: 600;
    color: var(--gb-blau);
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.gb-faq summary::-webkit-details-marker { display: none; }
.gb-faq summary::after { content: "+"; font-size: 22px; line-height: 1; }
.gb-faq details[open] summary::after { content: "\2013"; }
.gb-faq .gb-faq__inhalt { padding: 0 20px 18px; }
.gb-faq ul { margin: 0 0 16px; padding-left: 22px; }

/* ----------------------------------------------------------- Werbung */

.gb-werbung {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: center;
    justify-content: center;
}

.gb-werbung__bild { flex: 0 0 300px; }
.gb-werbung__bild img { display: block; max-width: 100%; height: auto; }
.gb-werbung__text { flex: 1 1 420px; min-width: 0; }
.gb-werbung__text h3 { margin: 0 0 10px; }

/* -------------------------------------------------------------- Klein */

@media (max-width: 782px) {
    .gb-sektion { padding: 48px 0; }
    .gb-hero { padding: 36px 0 32px; }
    .gb-hero__bild { order: -1; flex-basis: 220px; }
    .gb-produkt { padding: 36px 0; gap: 26px; }
    /* Auf schmalen Schirmen steht das Bild immer oben - die Umkehr entfaellt. */
    .gb-produkt--gedreht .gb-produkt__bild { order: 0; }
}
