/* Fuß B weso-Muster, hell (DES-19). Quelle: Optimierungen/rahmen/05-fuss/build.py (fuss_B, CSS). Kernblöcke im Part parts/footer.html;
   Portal-Fuß (Startseite) nach fuss_d. Der Fuß hat keine Weltfarbe (DES-09). */
.sg-fuss { background: var(--greige); color: var(--text); border-top: 1px solid var(--linie); font-variant-numeric: tabular-nums; }
.sg-fuss a { color: inherit; text-decoration: none; }
.sg-fuss a:hover { text-decoration: underline; text-underline-offset: 4px; }
.sg-fuss-in { max-width: 1280px; margin: 0 auto; padding-left: 48px; padding-right: 48px; }

/* Gesprächsband */
.sg-fuss-band { background: var(--text); color: #f4f1ea; padding: 40px 0; }
.sg-fuss-band .sg-fuss-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.sg-fuss-band h2 { font-weight: 600; font-size: 26px; line-height: 1.3; color: #f4f1ea; margin: 0; }
.sg-fuss-band p { font-size: 16px; line-height: 1.5; margin: 4px 0 0; max-width: 34em; }
.sg-fuss-band .wp-block-buttons { margin-top: 20px; gap: 12px; }
.sg-fuss-band .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; font-weight: 600; font-size: 16px; line-height: 1; background: #fff; color: var(--text); border-radius: var(--radius, 6px); }
/* Pfeil in „Hilfe und Kontakt“ wie Fassung (PFEIL, 16 px). Icons als Maske, damit der Fuß reine Kernblöcke bleibt (SP-04). */
.sg-fuss-pfeil .wp-block-button__link::after { content: ""; width: 16px; height: 16px; flex: none; background: currentColor; -webkit-mask: var(--sg-pfeil) center / contain no-repeat; mask: var(--sg-pfeil) center / contain no-repeat; }
.sg-fuss { --sg-pfeil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
.sg-fuss-band .is-style-leise .wp-block-button__link { background: transparent; color: #f4f1ea; box-shadow: inset 0 0 0 1px currentColor; }
.sg-fuss-band .wp-block-button__link:focus-visible { outline-color: #f4f1ea; }
.sg-fuss-res { width: 340px; flex: none; min-height: 120px; display: flex; align-items: center; border: 1px dashed currentColor; border-radius: var(--radius, 6px); padding: 12px 14px; font-size: 13px; line-height: 1.4; opacity: .85; margin: 0; }

/* Hauptteil: vier Spalten und Firmenblock */
.sg-fuss-haupt { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; padding: 48px 0 36px; }
.sg-fuss-nav4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; align-items: start; }
.sg-fuss-sp { border: 0; padding: 0; margin: 0; }
.sg-fuss-sp > summary { font-weight: 600; font-size: 13px; line-height: 1; letter-spacing: .08em; text-transform: uppercase; color: var(--text-leise); margin-bottom: 8px; min-height: 0; pointer-events: none; list-style: none; }
.sg-fuss-sp > summary::after { display: none; }
.sg-fuss-sp ul { list-style: none; margin: 0; padding: 0; }
.sg-fuss-sp li { margin: 0; }
.sg-fuss-sp li a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; line-height: 1.3; }
.sg-fuss-firma { display: flex; flex-direction: column; padding-left: 32px; border-left: 1px solid var(--linie); }
.sg-fuss-firma > * { margin: 0; }
.sg-fuss-wort { font-weight: 800; font-size: 28px; line-height: 1; letter-spacing: -1px; margin-bottom: 12px !important; }
.sg-fuss-claim { font-size: 15px; line-height: 1.5; margin-bottom: 12px !important; }
.sg-fuss-zeile { display: flex; flex-direction: column; padding: 10px 0; border-top: 1px solid var(--linie); font-size: 15px; line-height: 1.45; min-height: 44px; justify-content: center; }
.sg-fuss-zeile .sg-ph { color: var(--text-leise); }
.sg-fuss-zeile { position: relative; padding-left: 32px; justify-content: flex-start; }
.sg-fuss-zeile::before { content: ""; position: absolute; left: 0; top: 12px; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--sg-icon) center / contain no-repeat; mask: var(--sg-icon) center / contain no-repeat; }
.sg-fuss-mail { --sg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.sg-fuss-ort { --sg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.2 7-11a7 7 0 0 0-14 0c0 4.8 7 11 7 11Z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E"); }

/* Cookie-Einstellungen: sichtbar, sobald Borlabs läuft (Shell § 5.3, E0-2; TRACK-01). Ohne Borlabs kein toter Link:
   body bekommt die Klasse erst, wenn das Plugin aktiv ist (functions.php, Filter body_class). */
body:not(.sg-einwilligung) .sg-fuss .sg-cookie-einstellungen { display: none !important; }

/* Vorteile oben im Fuß: Icon links, Aussage rechts daneben, auf dem Grund des Fußes (DES-75, DES-76) */
.sg-fuss-vorteile { list-style: none; margin: 0; padding: 30px 0; display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 20px 32px; border-bottom: 1px solid var(--linie); }
.sg-fuss-vorteile li { display: flex; align-items: center; gap: 12px; margin: 0; font-weight: 600; font-size: 16px; line-height: 1.3; }
.sg-fuss-vorteile li::before { width: 26px; height: 26px; }
.sg-fuss-v--support { --sg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H10l-5 4v-4H4z'/%3E%3Cpath d='M8.500 10.500h.01M12 10.500h.01M15.500 10.500h.01'/%3E%3C/svg%3E"); }
.sg-fuss-vorteile li::before, .sg-fuss-insta::before { content: ""; width: 24px; height: 24px; flex: none; background: currentColor; -webkit-mask: var(--sg-icon) center / contain no-repeat; mask: var(--sg-icon) center / contain no-repeat; }
.sg-fuss-v--versand { --sg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6h11v10H2zM13 9h4l4 4v3h-8z'/%3E%3Ccircle cx='6.5' cy='17.5' r='1.8'/%3E%3Ccircle cx='17' cy='17.5' r='1.8'/%3E%3C/svg%3E"); }
.sg-fuss-v--zeit { --sg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.sg-fuss-v--zurueck { --sg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9h11a5 5 0 0 1 0 10H8'/%3E%3Cpath d='m8 5-4 4 4 4'/%3E%3C/svg%3E"); }
.sg-fuss-v--sicher, .sg-fuss-siegel { --sg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 5 6v5c0 4.5 3 8.3 7 10 4-1.7 7-5.500 7-10V6z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.sg-fuss-insta { --sg-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M17.200 6.800h.01'/%3E%3C/svg%3E"); gap: 8px; font-size: 15px; line-height: 1.3; }
.sg-fuss-gr--folgen .sg-fuss-logos { gap: 24px; }
.sg-fuss-mail span { font-size: 14px; }
/* Zertifikat als eigenes Feld (DES-73): kein fremdes Siegel, Text nach WA-16 (ECJiP-Zertifikat für 7in1 und OWAL) */
.sg-fuss-logos a.sg-fuss-siegel { display: grid; grid-template-columns: 24px auto; column-gap: 10px; align-items: center; min-height: 44px; padding: 6px 14px 6px 10px; border: 1px solid var(--linie-bedienung); border-radius: var(--radius, 6px); line-height: 1.25; text-decoration: none; }
.sg-fuss-siegel::before { content: ""; grid-row: 1 / 3; width: 24px; height: 24px; background: currentColor; -webkit-mask: var(--sg-icon) center / contain no-repeat; mask: var(--sg-icon) center / contain no-repeat; }
.sg-fuss-siegel b { font-weight: 600; font-size: 14px; }
.sg-fuss-siegel span { font-size: 12px; }

/* Logoleiste (DES-71): Marken, Zahlarten, Versand; Pattern rahmen-fuss-leiste */
.sg-fuss-leiste { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 28px 56px; padding: 28px 0; border-bottom: 1px solid var(--linie); }
.sg-fuss-leiste p { margin: 0; }
.sg-fuss-kl { font-weight: 600; font-size: 13px; line-height: 1; letter-spacing: .08em; text-transform: uppercase; color: var(--text-leise); margin-bottom: 14px !important; }
.sg-fuss-logos { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.sg-fuss-logos a { display: inline-flex; align-items: center; min-height: 44px; }
.sg-fuss-logos img { display: block; width: 40px; height: 30px; max-width: none; flex: none; }
.sg-fuss-gr--marken .sg-fuss-logos { gap: 32px; }
.sg-fuss-logos .sg-fuss-logo-bd { width: auto; height: 44px; }
.sg-fuss-logos .sg-fuss-logo-wa { width: auto; height: 32px; }
.sg-fuss-logos .sg-fuss-logo-dpd { width: auto; height: 28px; }
.sg-fuss-logos a:hover { opacity: .75; }

/* Schlusszeile */
.sg-fuss-schluss { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 24px; padding: 18px 0 22px; border-top: 1px solid var(--linie); font-size: 13px; line-height: 1.4; color: var(--text-leise); }
.sg-fuss-schluss p { margin: 0; }

/* Portal-Fuß (Startseite): dezente Rechtszeile */
.sg-fuss--portal { background: var(--papier); border-top: 0; text-align: center; padding: 14px 0 24px; }
.sg-fuss--portal p { font-size: 13px; line-height: 1.3; color: var(--text-leise); margin: 0; }
.sg-fuss--portal a { display: inline-flex; align-items: center; min-height: 44px; margin: 0 10px; color: var(--text-leise); }
.sg-fuss--portal .sg-fuss-wort { font-size: 13px; letter-spacing: -.3px; color: var(--text); margin: 0 10px !important; }
/* „Vertrag widerrufen“ als Link in der Zeile, fett und unterstrichen (Lukas 25.11., statt Germanized-Knopf) */
.sg-fuss a.sg-fuss-widerruf, .sg-fuss--portal a.sg-fuss-widerruf { font-weight: 700; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 761px) and (max-width: 1279px) {
  .sg-fuss-haupt { grid-template-columns: minmax(0, 1fr); }
  .sg-fuss-firma { padding-left: 0; border-left: 0; }
}
@media (max-width: 760px) {
  .sg-fuss-in { padding-left: 16px; padding-right: 16px; }
  .sg-fuss-band { padding: 32px 0; }
  .sg-fuss-band .sg-fuss-in { flex-direction: column; align-items: stretch; }
  .sg-fuss-band h2 { font-size: 24px; }
  .sg-fuss-band .wp-block-buttons { flex-direction: column; }
  .sg-fuss-band .wp-block-button, .sg-fuss-band .wp-block-button__link { width: 100%; }
  .sg-fuss-res { width: 100%; }
  .sg-fuss-haupt { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px 0; }
  .sg-fuss-nav4 { display: block; border-top: 1px solid var(--linie); }
  .sg-fuss-sp { border-bottom: 1px solid var(--linie); }
  .sg-fuss-sp > summary { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; min-height: 56px; font-weight: 600; font-size: 17px; line-height: 1.2; letter-spacing: 0; text-transform: none; color: var(--text); margin: 0; cursor: pointer; }
  .sg-fuss-sp > summary::after { display: block; }
  .sg-fuss-sp ul { padding-bottom: 12px; }
  .sg-fuss-firma { padding-left: 0; border-left: 0; }
  .sg-fuss-firma { order: -1; }   /* Wortmarke und Kontakt mobil zuerst, darunter die eingeklappten Spalten (Lukas 25.11.) */
  .sg-fuss-vorteile { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; gap: 18px 16px; padding: 24px 0; }
  .sg-fuss-vorteile li { font-size: 14px; gap: 10px; }
  .sg-fuss-vorteile li::before { width: 24px; height: 24px; }
  /* Logoleiste am Handy (DES-77, Variante A): je Marke eine helle Kachel mit Logo und Instagram darunter, dann Zahlarten und DPD
     mit Überschrift, das Zertifikat als Textzeile. Die Kachel entsteht aus zwei Rasterzellen (Logo oben, Instagram unten). */
  .sg-fuss-leiste { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: 0 12px; padding: 24px 0; }
  .sg-fuss-gr--marken .sg-fuss-kl, .sg-fuss-gr--folgen .sg-fuss-kl, .sg-fuss-gr--siegel .sg-fuss-kl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0 !important; }
  .sg-fuss-gr--marken, .sg-fuss-gr--folgen { display: contents; }
  .sg-fuss-gr--marken .sg-fuss-logos, .sg-fuss-gr--folgen .sg-fuss-logos { display: contents; }
  .sg-fuss-gr--marken a, .sg-fuss-gr--folgen a { justify-content: center; background: var(--papier); }
  .sg-fuss-gr--marken a { min-height: 76px; padding: 14px 12px 2px; border-radius: var(--radius, 6px) var(--radius, 6px) 0 0; }
  .sg-fuss-gr--folgen a { padding: 0 12px 10px; border-radius: 0 0 var(--radius, 6px) var(--radius, 6px); }
  .sg-fuss-gr--marken a:nth-of-type(1) { grid-area: 1 / 1; }
  .sg-fuss-gr--marken a:nth-of-type(2) { grid-area: 1 / 2; }
  .sg-fuss-gr--folgen a:nth-of-type(1) { grid-area: 2 / 1; }
  .sg-fuss-gr--folgen a:nth-of-type(2) { grid-area: 2 / 2; }
  .sg-fuss-logos .sg-fuss-logo-bd { height: 42px; }
  .sg-fuss-logos .sg-fuss-logo-wa { height: 30px; }
  .sg-fuss-leiste .sg-fuss-insta { font-size: 0; gap: 0; }   /* in der Kachel steht „Instagram“ statt des Markennamens; der Linktext bleibt für Vorleser */
  .sg-fuss-leiste .sg-fuss-insta::before { width: 20px; height: 20px; margin-right: 8px; }
  .sg-fuss-insta::after { content: "Instagram"; font-size: 14px; }
  .sg-fuss-gr--zahl { grid-area: 3 / 1; margin-top: 24px; }
  .sg-fuss-gr--versand { grid-area: 3 / 2; margin-top: 24px; justify-self: end; text-align: right; }
  .sg-fuss-gr--zahl .sg-fuss-kl, .sg-fuss-gr--versand .sg-fuss-kl { margin-bottom: 8px !important; font-size: 12px; }
  .sg-fuss-gr--siegel { grid-area: 4 / 1 / 5 / 3; margin-top: 14px; }
  .sg-fuss-logos a.sg-fuss-siegel { min-height: 44px; padding: 0; border: 0; }
  .sg-fuss-gr--versand .sg-fuss-logos { justify-content: flex-end; }

  .sg-fuss-siegel span { font-size: 13px; }
  .sg-fuss-schluss { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* Fuß ohne Gesprächsband (Lukas 25.11.): Linie statt Band als Abschluss der Seite */
.sg-fuss { border-top: 1px solid var(--linie); }
