/*
Theme Name:  Stoffgalerie
Template:    Divi
Description: Child-Theme der Stoffgalerie. Nur Aussehen – Shop-Logik gehört ins Plugin.
Version:     1.1.0
Text Domain: stoffgalerie
*/

/* Gestaltung nach dem Design-System aus Claude Design (design-system/, Regeln in DESIGN.md).
   Werte nur über die Tokens unten ändern; Quelle sind design-system/tokens/*.css. */

@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 500 900;
	font-display: swap;
	src: url('schriften/montserrat.woff2') format('woff2');
}
@font-face {
	font-family: 'Montserrat';
	font-style: italic;
	font-weight: 800;
	font-display: swap;
	src: url('schriften/montserrat-kursiv.woff2') format('woff2');
}
@font-face {
	font-family: 'Roboto Mono';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('schriften/roboto-mono.woff2') format('woff2');
}

/* ---------- Tokens aus design-system/tokens (unverändert übernommen) ---------- */

/* tokens/colors.css */
/* ---- Grundpalette — nur diese sechs Farben ---- */
:root{
  /* Flächen: genau zwei */
  --ink:#28262c;      /* dunkel: Header, Hero, Prozess-Band, Footer, Text auf Hell */
  --bg:#fafafa;       /* hell: Seite, Karten, Felder, Text auf Dunkel */
  /* Marke — Reihenfolge: rose, teal, blush, green */
  --rose:#c64752;     /* Aktion: Buttons, Links, Preise, aktive Zustände, Naht */
  --teal:#0abab5;     /* Signal auf Dunkel: Logo-Punkt, Eyebrows, Schalter, Fokus auf Dunkel */
  --blush:#eabbc0;    /* Etikett: Kategorie-Tags, „In Bearbeitung“ */
  --green:#006039;    /* Status: limitiert, abgeschlossen, Erfolg */
  --yellow:#f2c230;   /* Status „Abholbereit“ — nur für diesen Status, Text immer ink (8,9:1) */

  /* Sekundärtext — je eine Stufe pro Grund */
  --muted-strong:#28262cb3;   /* ink 70 % — auf bg, 5,5:1 */
  --on-dark-strong:#fafafae6; /* bg 90 % — auf ink, 11,9:1 */

  /* Linien = Markenfarben mit 40 % Transparenz (Hex-Endung 99) */
  --line:#28262c99;
  --line-on-dark:#fafafa99;
  --line-rose:#c6475299;
  --line-teal:#0abab599;
  --line-blush:#eabbc099;
  --line-green:#00603999;

  /* Tönungen & Overlays */
  --rose-tint:#c647520d;       /* 5 % — Auswahl */
  --rose-tint-soft:#c6475214;  /* 8 % — Fehler, Chat */
  --green-tint:#00603914;      /* 8 % — Erfolg */
  --overlay:#28262c8c;         /* 55 % — Dialoge */
  --overlay-cart:#28262c80;    /* 50 % — Warenkorb */
}

/* ---- Seitenfarben: je Bereich eine Markenfarbe (Naht, Akzente) ---- */
:root{
  --section-shop:var(--rose);
  --section-about:var(--teal);
  --section-blog:var(--blush);
  --section-contact:var(--green);
}

/* ---- Semantische Aliase: Standard = heller Grund (bg) ---- */
:root{
  --bg-page:var(--bg);
  --surface-card:var(--bg);
  --surface-inverse:var(--ink);

  --text-body:var(--ink);
  --text-heading:var(--ink);
  --text-muted:var(--muted-strong);
  --text-eyebrow:var(--muted-strong);
  --text-link:var(--rose);
  --text-link-hover:var(--ink);
  --text-price:var(--rose);

  --border:var(--line);
  --border-strong:var(--ink);

  --action-primary-bg:var(--rose);
  --action-primary-fg:var(--ink);
  --action-primary-focus-bg:var(--ink);   /* Fokus roter Buttons = Farbwechsel, kein Rahmen */
  --action-primary-focus-fg:var(--bg);
  --action-secondary-fg:var(--ink);
  --action-secondary-border:var(--ink);

  --focus-ring:var(--ink);
  --focus-field:var(--rose);
  --overlay-scrim:var(--overlay);
}

/* ---- Dunkle Bänder (ink): Header, Hero, Prozess, Footer ---- */
.theme-dark{
  --bg-page:var(--ink);
  --surface-card:var(--ink);
  --surface-inverse:var(--bg);
  --text-body:var(--bg);
  --text-heading:var(--bg);
  --text-muted:var(--on-dark-strong);
  --text-eyebrow:var(--teal);
  --text-link:var(--bg);
  --text-link-hover:var(--teal);
  --text-price:var(--bg);
  --border:var(--line-on-dark);
  --border-strong:var(--bg);
  --action-primary-focus-bg:var(--bg);
  --action-primary-focus-fg:var(--ink);
  --action-secondary-fg:var(--bg);
  --action-secondary-border:var(--bg);
  --focus-ring:var(--teal);
  --focus-field:var(--teal);
  background:var(--ink);
  color:var(--bg);
}

/* tokens/typography.css */
/* Display (Montserrat): Titel + H1–H6. Text (Roboto Mono): nur 14 · 12 · 11 px. */
:root{
  --text-title-size:56px; --text-title-lh:1.02; --text-title-weight:900; --text-title-track:-0.02em;
  --text-h1-size:48px;    --text-h1-lh:1.05;    --text-h1-weight:900;    --text-h1-track:-0.02em;
  --text-h2-size:34px;    --text-h2-lh:1.12;    --text-h2-weight:800;    --text-h2-track:-0.01em;
  --text-h3-size:26px;    --text-h3-lh:1.2;     --text-h3-weight:700;    --text-h3-track:0;
  --text-h4-size:20px;    --text-h4-lh:1.2;     --text-h4-weight:800;    --text-h4-track:0;
  --text-h5-size:16px;    --text-h5-lh:1.3;     --text-h5-weight:700;    --text-h5-track:0;
  --text-h6-size:14px;    --text-h6-lh:1.3;     --text-h6-weight:700;    --text-h6-track:0;

  --text-body-size:14px;    --text-body-lh:1.8;    --text-body-weight:400;
  --text-price-size:14px;   --text-price-lh:1.4;   --text-price-weight:700;
  --text-small-size:12px;   --text-small-lh:1.7;   --text-small-weight:400;
  --text-caption-size:12px; --text-caption-lh:1.6; --text-caption-weight:600;
  --text-meta-size:12px;    --text-meta-lh:1.5;    --text-meta-weight:400;  --text-meta-track:.03em;
  --text-eyebrow-size:11px; --text-eyebrow-lh:1.5; --text-eyebrow-weight:700; --text-eyebrow-track:.16em;
  --text-badge-size:11px;   --text-badge-lh:1.4;   --text-badge-weight:700; --text-badge-track:.03em;

  /* UI-Größen der Buttons (keine Textstufe) */
  --button-size:14px; --button-size-outline:13px; --button-size-sm:12px; --button-track:.02em;
  --logo-size:21px;
}
@media (max-width:860px){
  :root{ --text-title-size:48px; --text-h1-size:34px; }
}
@media (max-width:560px){
  :root{ --text-title-size:34px; --text-h2-size:26px; --text-h3-size:20px; }
}

/* tokens/spacing.css */
/* 4-px-Raster mit Zwischenstufen der Live-Seite. */
:root{
  --space-4:4px;  --space-6:6px;  --space-8:8px;  --space-10:10px; --space-12:12px;
  --space-14:14px; --space-16:16px; --space-18:18px; --space-20:20px; --space-22:22px;
  --space-24:24px; --space-28:28px; --space-32:32px; --space-36:36px; --space-40:40px;
  --space-44:44px; --space-48:48px; --space-56:56px; --space-64:64px; --space-72:72px;
  --space-80:80px; --space-96:96px;

  --content-max:1440px;     /* Inhaltsbreite */
  --pad:48px;               /* Seitenrand Desktop */
  --header-height:76px;
  --page-end:96px;          /* letzter Inhalt → Footer */
  --text-max:580px;         /* Fließtext-Zeilenlänge */
}
@media (max-width:980px){ :root{ --pad:22px; } }
@media (max-width:560px){ :root{ --pad:16px; --page-end:80px; } }

/* tokens/radii.css */
/* Nur drei Eckenradien: 0 · 4 · 8 px. Eckig ist die Regel.
   radius-round (50 %) ist kein Eckenradius, sondern macht Kreise: Punkte, Radios, Avatar, Spinner. */
:root{
  --radius-none:0;   /* Buttons, Karten, Felder, Bilder, Dialoge */
  --radius-sm:4px;   /* Fokus-Konturen, Schalter-Knopf, Zähler-Plakette */
  --radius-md:8px;   /* Schalter */
  --radius-round:50%;
}

/* tokens/elevation.css */
/* Genau drei Schatten. */
:root{
  --shadow-offset:-4px 4px 0 #00000026;  /* hart, nach links unten: Buttons, Quick-Add */
  --shadow-soft:0 6px 16px #0000001f;    /* Fotos, Karten-Hover */
  --shadow-float:0 24px 60px #00000059;  /* Drawer, Dialoge, Chat */

  --z-header:40; --z-subheader:45; --z-drawer:90; --z-toast:100; --z-chat:110; --z-dialog:120;
}

/* tokens/motion.css */
:root{
  --ease:ease;
  --ease-out-soft:cubic-bezier(.22,.61,.36,1);
  --dur-fast:.15s;     /* Rahmen, Hintergrund, Radio-Punkt */
  --dur-base:.2s;      /* Overlays, Toast, Schalter */
  --dur-panel:.25s;    /* Drawer, Aufklappen */
  --dur-card:.35s;     /* Karten-Hover */
  --slide-interval:5.2s;
}
@media (prefers-reduced-motion:reduce){
  :root{ --dur-fast:.01ms; --dur-base:.01ms; --dur-panel:.01ms; --dur-card:.01ms; }
}

/* tokens/fonts.css – nur die Variablen; die Schriften selbst kommen lokal aus schriften/ (DSGVO) */
:root{
  --font-display:"Montserrat",system-ui,sans-serif;
  --font-body:"Roboto Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
}

/* ---------- Alte Theme-Variablen ----------
   Zeigen nur noch auf die Tokens; in neuem Code die Tokens direkt verwenden. */
:root {
	--sg-ink: var(--ink);
	--sg-bg: var(--bg);
	--sg-rose: var(--rose);
	--sg-rose-hover: var(--text-link-hover);
	--sg-teal: var(--teal);
	--sg-green: var(--green);
	--sg-blush: var(--blush);
	--sg-muted: var(--muted-strong);
	--sg-muted-light: var(--muted-strong);
	--sg-muted-on-dark: var(--on-dark-strong);
	--sg-font-display: var(--font-display);
	--sg-font-body: var(--font-body);
	--sg-max: var(--content-max);
	--sg-pad: var(--pad);
}

/* ---------- Grundlage ---------- */

body,
#page-container,
#main-content {
	background: var(--sg-bg);
}

/* Grundschrift wie design-system/tokens/base.css */
body {
	color: var(--text-body);
	font-family: var(--font-body);
	font-size: var(--text-body-size);
	line-height: var(--text-body-lh);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.et_pb_module h1, .et_pb_module h2, .et_pb_module h3, .et_pb_module h4 {
	font-family: var(--font-display);
	color: var(--text-heading);
	font-style: normal; /* Divi-Theme-Optionen setzen Überschriften sonst kursiv */
	padding-bottom: 0;
}
h1 { font-size: var(--text-h1-size); line-height: var(--text-h1-lh); font-weight: var(--text-h1-weight); letter-spacing: var(--text-h1-track); }
h2 { font-size: var(--text-h2-size); line-height: var(--text-h2-lh); font-weight: var(--text-h2-weight); letter-spacing: var(--text-h2-track); }
h3 { font-size: var(--text-h3-size); line-height: var(--text-h3-lh); font-weight: var(--text-h3-weight); }
h4 { font-size: var(--text-h4-size); line-height: var(--text-h4-lh); font-weight: var(--text-h4-weight); }
h5 { font-size: var(--text-h5-size); line-height: var(--text-h5-lh); font-weight: var(--text-h5-weight); }
h6 { font-size: var(--text-h6-size); line-height: var(--text-h6-lh); font-weight: var(--text-h6-weight); }

/* „body a“ statt „a“: Divis Customizer-CSS lädt danach und färbt Links sonst türkis. */
body a { color: var(--text-link); text-underline-offset: 3px; text-decoration-color: var(--line-rose); }
/* Rote Links ohne Hover (Nutzer, 04.11.2026): auf dunklem Grund wäre ink unsichtbar. */
body a:hover { color: var(--text-link); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

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

/* Divi-Kopf und -Fuß werden durch eigene ersetzt (functions.php, footer.php). */
#page-container { padding-top: 0 !important; }
#main-content .container:before { display: none; }

/* Inhaltsbreite wie im Entwurf */
.sg-breit,
.et_pb_row.sg-breit,
#main-content .container {
	max-width: var(--sg-max);
	width: auto;
	padding-left: var(--sg-pad);
	padding-right: var(--sg-pad);
}

/* ---------- Schaltflächen ---------- */

.sg-knopf,
.et_pb_button.sg-knopf,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-page a.button,
.woocommerce-page button.button {
	display: inline-block;
	background: var(--action-primary-bg) !important;
	color: var(--action-primary-fg) !important;
	border: none !important;
	border-radius: var(--radius-none) !important;
	padding: 17px 32px !important;
	font-family: var(--font-display) !important;
	font-weight: 700 !important;
	font-size: var(--button-size) !important;
	line-height: 1.2 !important;
	text-transform: uppercase;
	letter-spacing: var(--button-track);
	box-shadow: var(--shadow-offset);
	transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
/* Rote Knöpfe ohne Hover (Nutzer, 04.11.2026, DESIGN.md): Aussehen bleibt beim Darüberfahren gleich. */
.sg-knopf:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	background: var(--action-primary-bg) !important;
	color: var(--action-primary-fg) !important;
	transform: none;
	box-shadow: var(--shadow-offset);
}
/* Fokus roter Knöpfe = Farbwechsel, kein Rahmen */
.sg-knopf:focus-visible,
.woocommerce a.button:focus-visible,
.woocommerce button.button:focus-visible,
.woocommerce input.button:focus-visible {
	background: var(--action-primary-focus-bg) !important;
	color: var(--action-primary-focus-fg) !important;
	outline: none;
}
.sg-knopf:disabled,
.woocommerce button.button:disabled {
	background: var(--line) !important;
	color: var(--text-muted) !important;
	box-shadow: none;
	transform: none;
}
.woocommerce a.button:after,
.woocommerce button.button:after { display: none !important; }

.sg-link-pfeil {
	font-size: var(--text-body-size);
	font-weight: 500;
	color: var(--sg-rose);
}

/* ---------- Gestaltungselemente ---------- */

/* Naht: gestrichelte Linie wie eine Steppnaht */
.sg-naht {
	position: relative;
	height: 14px;
}
.sg-naht::before {
	content: '';
	position: absolute;
	top: 6px; left: 0; right: 0;
	height: 1px;
	background: var(--line);
}
.sg-naht::after {
	content: '';
	position: absolute;
	top: 5px; left: 0; right: 0;
	height: 4px;
	background-image: repeating-linear-gradient(90deg, var(--naht, var(--sg-rose)) 0 11px, transparent 11px 20px);
}

.sg-eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
	font-size: var(--text-eyebrow-size);
	font-weight: 700;
	letter-spacing: 0.16em;
	color: var(--sg-muted-light);
	text-transform: uppercase;
}
.sg-eyebrow::before {
	content: '';
	width: 9px;
	height: 9px;
	border-radius: var(--radius-round);
	background: var(--sg-teal);
	flex: none;
}

.sg-titel {
	font-family: var(--sg-font-display);
	font-weight: 700;
	font-size: var(--text-h3-size);
	margin: 0 0 28px;
}

/* Scrollbalken der Seite in Aktionsfarbe, Schatten innen in der Laufschiene.
   Chrome/Safari/Edge über ::-webkit-scrollbar, Firefox nur über scrollbar-color (ohne Schatten). */
html::-webkit-scrollbar { width: 14px; }
html::-webkit-scrollbar-track {
	background: var(--bg);
	box-shadow: inset 4px 0 6px -4px #00000040;
}
html::-webkit-scrollbar-thumb {
	background: var(--rose);
	background-clip: padding-box;
	border: 2px solid transparent;
	border-radius: 7px;
}
@supports not selector(::-webkit-scrollbar) {
	html { scrollbar-color: var(--rose) var(--bg); }
}

/* Nach-oben-Knopf: erscheint nach etwas Scrollen, rot, eckig, rechts unten direkt am Scrollbalken */
.sg-nach-oben {
	position: fixed;
	right: 5px;
	bottom: 16px;
	z-index: 90;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: var(--radius-none);
	background: var(--action-primary-bg);
	color: var(--action-primary-fg);
	box-shadow: var(--shadow-offset);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	/* sanftes Ein- und Ausblenden; visibility erst nach dem Ausblenden umschalten */
	transition: opacity var(--dur-card) var(--ease-out-soft), transform var(--dur-card) var(--ease-out-soft), visibility 0s linear var(--dur-card);
}
.sg-nach-oben.ist-sichtbar { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.sg-nach-oben:focus-visible { outline: none; background: var(--action-primary-focus-bg); }
html:has(.sg-kopf.ist-offen) .sg-nach-oben { visibility: hidden; opacity: 0; }

/* ---------- Kopfbereich ---------- */

.sg-kopf {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--ink);
	border-bottom: 1px solid var(--line-on-dark);
}
.admin-bar .sg-kopf { top: 32px; }

/* Kopf nach design-system SiteHeader: 76 px, Logo, Navigation rechts, Konto, Warenkorb */
.sg-kopf-zeile {
	max-width: var(--content-max);
	margin: 0 auto;
	padding: 0 var(--pad);
	height: var(--header-height);
	display: flex;
	align-items: center;
	gap: 28px;
}

.sg-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-right: auto;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: var(--logo-size);
	letter-spacing: 0.02em;
	color: var(--bg) !important;
	text-decoration: none;
}
.sg-logo::before {
	content: '';
	width: 9px;
	height: 9px;
	border-radius: var(--radius-round);
	background: var(--teal);
}

.sg-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 28px;
}
.sg-nav a {
	font-size: var(--text-body-size);
	font-weight: 500;
	white-space: nowrap;
	color: var(--on-dark-strong);
	text-decoration: none;
	padding-bottom: 4px;
	border-bottom: 2px solid transparent;
}
.sg-nav a:hover { color: var(--bg); }
.sg-nav .current-menu-item > a,
.sg-nav .current_page_item > a {
	color: var(--bg);
	font-weight: 700;
	border-bottom-color: var(--rose);
}
.sg-nav-konto { display: none; }

.sg-kopf-rechts {
	display: flex;
	align-items: center;
	gap: 6px;
}

/* Symbol-Knöpfe 40 × 40 px */
.sg-konto,
.sg-warenkorb,
.sg-burger {
	position: relative;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	color: var(--bg) !important;
	text-decoration: none;
}
.sg-konto-kreis {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: var(--radius-round);
	background: var(--teal);
	color: var(--ink);
	font-family: var(--font-display);
	font-size: var(--text-small-size);
	font-weight: 700;
	line-height: 1;
}
.sg-warenkorb-zahl {
	position: absolute;
	top: 2px;
	right: 0;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: var(--radius-sm);
	background: var(--rose);
	color: var(--bg);
	font-size: var(--text-badge-size);
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}

.sg-burger {
	display: none;
	align-content: center;
	gap: 6px;
	background: none;
	border: 0;
	cursor: pointer;
}
/* Striche 22 px, 8 px Abstand (Mitte zu Mitte), Strich 2 px */
.sg-burger span {
	display: block;
	width: 22px;
	height: 2px;
	border-radius: 1px;
	background: var(--bg);
}
.sg-burger:focus-visible,
.sg-konto:focus-visible,
.sg-warenkorb:focus-visible { outline: 2px solid var(--focus-ring); outline-color: var(--teal); outline-offset: 2px; }

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Handy und Tablet (< 860 px): Burger, Menü unter dem Kopf, Konto im Menü */
@media (max-width: 860px) {
	.sg-kopf-zeile { gap: 12px; }
	.sg-logo { font-size: 18px; }
	.sg-kopf-rechts .sg-konto { display: none; }
	.sg-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		height: calc(100dvh - var(--header-height));
		overflow-y: auto;
		overscroll-behavior: contain;
		background: var(--ink);
		border-top: 1px solid var(--line-on-dark);
		padding: 12px var(--pad) 24px;
	}
	.sg-kopf.ist-offen .sg-nav { display: block; }
	/* Menü füllt den Bildschirm bis unten; Seite dahinter scrollt nicht mit */
	html:has(.sg-kopf.ist-offen) { overflow: hidden; }
	.admin-bar .sg-nav { height: calc(100dvh - var(--header-height) - 32px); }
	.sg-nav ul { flex-direction: column; gap: 0; }
	.sg-nav a {
		display: block;
		padding: 14.5px 0;
		border-bottom: 1px solid var(--line-on-dark);
		font-family: var(--font-display);
		font-size: var(--text-h3-size);
		font-weight: 700;
		color: var(--bg);
	}
	.sg-nav .current-menu-item > a,
	.sg-nav .current_page_item > a { color: var(--rose); border-bottom-color: var(--line-on-dark); }
	.sg-nav .sg-nav-konto {
		display: flex;
		align-items: center;
		gap: 12px;
		margin-top: 18px;
		padding: 0;
		border: 0;
		font-family: var(--font-body);
		font-size: var(--text-body-size);
		font-weight: 700;
	}
	.sg-nav-konto .sg-konto-kreis { width: 28px; height: 28px; font-size: var(--text-badge-size); }
	.sg-burger { display: grid; }
}
@media (max-width: 782px) {
	.admin-bar .sg-nav { height: calc(100dvh - var(--header-height) - 46px); }
}

/* ---------- Fußbereich ---------- */

.sg-fuss {
	background: var(--sg-ink);
	color: var(--sg-muted-on-dark);
	padding: 64px 0 40px;
	font-size: var(--text-body-size);
}
.sg-fuss-innen {
	max-width: var(--sg-max);
	margin: 0 auto;
	padding: 0 var(--sg-pad);
}
.sg-fuss-oben {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 64px;
	margin-bottom: 44px;
}
.sg-fuss h3 {
	color: var(--sg-bg);
	font-size: var(--text-h4-size);
	font-weight: 800;
	margin: 0 0 18px;
}
.sg-fuss-text { max-width: 460px; margin: 0 0 32px; font-size: var(--text-body-size); line-height: 1.8; }
.sg-fuss-label {
	margin-bottom: 8px;
	font-family: var(--sg-font-display);
	font-weight: 700;
	font-size: var(--text-h6-size);
	color: var(--sg-bg);
}
.sg-fuss-adresse { margin-bottom: 32px; line-height: 1.7; }
.sg-fuss .sg-fuss-kontakt { display: flex; gap: 32px; }
.sg-fuss .sg-fuss-kontakt a {
	color: var(--sg-rose);
	padding-bottom: 2px;
	border-bottom: 1px solid var(--line-rose);
}
.sg-fuss .sg-fuss-kontakt a:hover { color: var(--sg-rose); }
.sg-fuss a { color: var(--sg-muted-on-dark); text-decoration: none; }
.sg-fuss a:hover { color: var(--sg-bg); }
.sg-fuss-karte {
	position: relative;
	aspect-ratio: 16 / 11;
	overflow: hidden;
	border-radius: var(--radius-none);
	background: var(--ink);
}
.sg-fuss-karte iframe { width: 100%; height: 100%; border: 0; display: block; }
.sg-karte-hinweis {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;
	padding: 24px;
	text-align: center;
}
.sg-karte-hinweis p { max-width: 340px; font-size: var(--text-small-size); line-height: 1.7; }
.sg-karte-hinweis a { text-decoration: underline; }
/* Maßband-Naht unter dem oberen Teil */
.sg-fuss-stich {
	height: 16px;
	border-top: 2px solid var(--line-on-dark);
	background-image: repeating-linear-gradient(90deg, var(--line-teal) 0 2px, transparent 2px 24px);
}
.sg-fuss-links {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 16px;
	padding: 20px 0;
	font-size: var(--text-small-size);
}
.sg-fuss-links + .sg-fuss-links { border-top: 1px dashed var(--line-on-dark); }
.sg-fuss-links .sg-widerruf { color: var(--sg-rose); }
/* Hinweis auf die Agentur, in der Spalte unter „Vertrag widerrufen“ */
.sg-fuss-credit {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 16px;
	font-size: var(--text-small-size);
}
.sg-fuss-credit > span { grid-column: 6; white-space: nowrap; }
.sg-fuss .sg-fuss-credit a {
	color: var(--sg-bg);
	padding-bottom: 1px;
	border-bottom: 1px solid var(--line-rose);
}
.sg-fuss .sg-fuss-credit a:hover { color: var(--sg-rose); }
.sg-fuss-herz { color: var(--sg-rose); }

@media (max-width: 980px) {
	.sg-fuss-oben { grid-template-columns: 1fr; gap: 32px; }
	.sg-fuss-links { grid-template-columns: repeat(2, 1fr); }
	.sg-fuss-credit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sg-fuss-credit > span { grid-column: 2; white-space: normal; }
}

/* ---------- Startseite ---------- */

.et_pb_section.sg-intro {
	background: var(--sg-ink);
	padding: 0;
	overflow: hidden;
}
.sg-intro .et_pb_row { max-width: var(--sg-max); width: 100%; margin: 0 auto; padding: 0 var(--sg-pad); box-sizing: border-box; }

.sg-hero {
	position: relative;
	/* Genau der sichtbare Bereich unter dem Kopf, damit der Text beim Laden
	   mittig sitzt (mit Admin-Leiste entsprechend weniger). */
	--sg-hero-abzug: 76px;
	min-height: calc(100svh - var(--sg-hero-abzug));
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 56px 0;
	box-sizing: border-box;
}
.admin-bar .sg-hero { --sg-hero-abzug: 108px; }
@media (max-width: 782px) {
	.admin-bar .sg-hero { --sg-hero-abzug: 122px; }
}
.sg-hero > p:empty { display: none; }
.sg-hero-bild {
	position: absolute;
	bottom: -10%;
	left: 50%;
	transform: translateX(-50%);
	width: 130%;
	max-width: none !important;
	opacity: 0.5;
	pointer-events: none;
}
.sg-hero-text { position: relative; z-index: 1; }
.sg-hero .sg-eyebrow { color: var(--sg-teal); }
.sg-hero .sg-eyebrow::before { display: none; }
.sg-hero h1 {
	font-weight: 900;
	font-size: var(--text-title-size);
	line-height: 1.02;
	letter-spacing: -0.02em;
	color: var(--sg-bg);
	max-width: 600px;
	margin: 0 0 24px;
	padding: 0;
}

.sg-prozess { padding: 24px 0 56px; }
.sg-prozess .sg-eyebrow { color: var(--sg-muted-on-dark); margin-bottom: 36px; }
.sg-prozess-raster {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}
.sg-prozess-punkt {
	padding: 0 28px;
	border-left: 1px dashed var(--line-on-dark);
}
.sg-prozess-punkt:first-child { padding-left: 0; border-left: 0; }
.sg-prozess-nr {
	font-family: var(--sg-font-display);
	font-weight: 900;
	font-size: var(--text-h2-size);
	color: #fafafa24;
	margin-bottom: 14px;
}
.sg-prozess-linie {
	width: 34px;
	height: 3px;
	margin-bottom: 16px;
	background-image: repeating-linear-gradient(90deg, var(--c, var(--sg-rose)) 0 7px, transparent 7px 12px);
}
.sg-prozess-punkt h3 {
	font-size: var(--text-h5-size);
	color: var(--sg-bg);
	margin: 0 0 10px;
	padding: 0;
}
.sg-prozess-punkt p {
	font-size: var(--text-small-size);
	line-height: 1.7;
	color: var(--sg-muted-on-dark);
}

@media (max-width: 980px) {
	.sg-hero h1 { font-size: var(--text-title-size); }
	.sg-prozess-raster { grid-template-columns: 1fr 1fr; gap: 32px 0; }
	.sg-prozess-punkt:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 600px) {
	/* Bild größer und höher, seitlich darf es abgeschnitten werden */
	.sg-hero { justify-content: flex-start; padding-top: 64px; }
	.sg-hero-bild { width: 340%; bottom: -8%; }
	/* Banner-mobil.webp ist die mittlere Bildhälfte (1080 von 2400 px): gleicher Maßstab wie 340 % (inc/leistung.php). */
	.sg-hero-bilder .sg-hero-bild { width: 153%; }
	.sg-hero h1 { font-size: var(--text-title-size); }
	.sg-prozess-raster { grid-template-columns: 1fr; }
	.sg-prozess-punkt { padding: 0 !important; border-left: 0; }
}

/* Abschnitte auf hellem Grund */
.et_pb_section.sg-abschnitt { background: var(--sg-bg); padding: 64px 0; }
.sg-abschnitt .et_pb_row { max-width: var(--sg-max); width: 100%; margin: 0 auto; padding: 0 var(--sg-pad); box-sizing: border-box; }

/* Divi 5 setzt Zeilen und Spalten als Flexbox – Spalten und Module sollen in
   unseren Abschnitten die volle Breite nutzen und linksbündig sein. */
.sg-intro .et_pb_column,
.sg-abschnitt .et_pb_column,
.sg-galerie-abschnitt .et_pb_column,
.sg-intro .et_pb_module,
.sg-abschnitt .et_pb_module,
.sg-galerie-abschnitt .et_pb_module {
	width: 100%;
	align-self: stretch;
	text-align: left;
}

/* Kategorien als Kacheln */
.sg-kacheln {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	grid-template-rows: repeat(2, 180px);
	gap: 16px;
}
.sg-kachel {
	position: relative;
	display: block;
	background-size: cover;
	background-position: center;
}
.sg-kachel-gross { grid-row: span 2; }
.sg-kachel span {
	position: absolute;
	left: 14px;
	bottom: 14px;
	background: var(--sg-bg);
	padding: 8px 14px;
	font-family: var(--sg-font-display);
	font-weight: 700;
	font-size: var(--text-h6-size);
	color: var(--sg-ink);
}
.sg-kachel-gross span { left: 18px; bottom: 18px; padding: 10px 16px; font-size: var(--text-h5-size); }
/* BentoTile: Pfeil rose, beim Darüberfahren harter Schatten am Etikett */
.sg-kachel span::after { content: ' →'; color: var(--rose); }
.sg-kachel span { transition: box-shadow var(--dur-fast) var(--ease); }
.sg-kachel:hover span { box-shadow: var(--shadow-offset); }

@media (max-width: 600px) {
	.sg-kacheln { grid-template-columns: 1fr; grid-template-rows: 220px 160px 160px; }
	.sg-kachel-gross { grid-row: auto; }
}

.sg-kopfzeile {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}
.sg-kopfzeile .sg-titel { margin: 0; }

/* Über uns */
.sg-ueber {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 72px;
	align-items: center;
}
.sg-ueber h2 {
	font-weight: 800;
	font-size: var(--text-h2-size);
	line-height: 1.12;
	letter-spacing: -0.01em;
	margin: 0 0 22px;
}
.sg-ueber p {
	font-size: var(--text-body-size);
	line-height: 1.85;
	color: var(--muted-strong);
}
.sg-ueber-bild {
	position: relative;
	aspect-ratio: 4 / 5;
	background: url('bilder/Stoffgalerie_ueber_uns.webp') center / cover no-repeat;
	box-shadow: var(--shadow-float);
}
/* Adresse unten rechts über das Bild hinausragend */
.sg-ueber-adresse {
	position: absolute;
	right: -24px;
	bottom: -24px;
	max-width: 220px;
	padding: 22px 26px;
	background: var(--sg-ink);
	color: var(--bg);
}
.sg-ueber-adresse strong {
	display: block;
	margin-bottom: 6px;
	font-family: var(--sg-font-display);
	font-size: var(--text-h5-size);
	font-weight: 800;
}
.sg-ueber-adresse span {
	display: block;
	font-size: var(--text-eyebrow-size);
	line-height: 1.6;
	color: var(--on-dark-strong);
}
.sg-zahlen {
	display: flex;
	gap: 40px;
	margin: 28px 0 32px;
}
.sg-zahl strong {
	display: block;
	font-family: var(--sg-font-display);
	font-weight: 900;
	font-size: var(--text-h2-size);
	color: var(--sg-rose);
}
.sg-zahl span { font-size: var(--text-small-size); color: var(--sg-muted); }

@media (max-width: 980px) {
	.sg-ueber { grid-template-columns: 1fr; gap: 32px; }
	.sg-ueber-adresse { right: 0; bottom: -20px; }
}

/* Journal-Karten ([sg_journal]) */
.sg-journal-kopf {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 32px;
}
.sg-journal-kopf .sg-titel { margin: 0 0 8px; }
.sg-journal-unter {
	font-family: var(--sg-font-display);
	font-weight: 500;
	font-size: var(--text-h6-size);
	color: var(--sg-muted-light);
}
.sg-journal-raster {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}
.sg-journal-karte { color: var(--sg-ink) !important; display: block; }
.sg-journal-karte:hover h3 { color: var(--rose); }
.sg-journal-bild {
	position: relative;
	aspect-ratio: 3 / 2;
	margin-bottom: 16px;
	background-size: cover;
	background-position: center;
	box-shadow: var(--shadow-soft);
}
.sg-journal-tag {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--sg-blush);
	padding: 5px 10px;
	font-size: var(--text-eyebrow-size);
	font-weight: 600;
	letter-spacing: 0.03em;
	color: var(--sg-ink);
}
.sg-journal-meta {
	font-size: var(--text-meta-size);
	letter-spacing: var(--text-meta-track);
	color: var(--sg-muted-light);
	margin-bottom: 8px;
}
.sg-journal-karte h3 {
	font-size: var(--text-h5-size);
	line-height: var(--text-h5-lh);
	transition: color var(--dur-fast) var(--ease);
	margin: 0 0 8px;
	padding: 0;
}
.sg-journal-karte p {
	font-size: var(--text-small-size);
	line-height: 1.7;
	color: var(--sg-muted);
	margin: 0;
}
@media (max-width: 980px) {
	.sg-journal-raster { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	.sg-journal-raster { grid-template-columns: 1fr; }
}

/* ---------- Produktkarten (WooCommerce-Liste) ---------- */

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	text-align: left;
}
.woocommerce ul.products li.product a img {
	aspect-ratio: 3 / 4;
	object-fit: cover;
	margin-bottom: 14px !important;
	box-shadow: var(--shadow-float);
	transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.woocommerce ul.products li.product a:hover img { transform: translateY(-5px); }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--sg-font-display) !important;
	font-style: italic;
	font-weight: 800 !important;
	font-size: var(--text-h5-size) !important;
	line-height: 1.2;
	padding: 0 0 6px !important;
}
.woocommerce ul.products li.product .price {
	font-family: var(--sg-font-body);
	font-size: var(--text-body-size) !important;
	font-weight: 700;
	color: var(--sg-ink) !important;
}
.woocommerce ul.products li.product .button { margin-top: 12px; font-size: var(--button-size-sm) !important; padding: 11px 18px !important; }
.woocommerce span.onsale {
	background: var(--sg-rose) !important;
	border-radius: 0 !important;
	font-family: var(--sg-font-display);
	font-weight: 700;
}

/* ---------- Produktseite ---------- */

.woocommerce div.product .product_title {
	font-weight: 800;
	font-style: italic;
	font-size: var(--text-h1-size);
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
	font-family: var(--sg-font-display);
	font-weight: 800;
	font-size: var(--text-h3-size) !important;
	color: var(--sg-rose) !important;
}
.woocommerce div.product .stock { color: var(--sg-green) !important; font-weight: 700; }
.woocommerce div.product .out-of-stock { color: var(--sg-rose) !important; }
.woocommerce .quantity input.qty {
	border: 1px solid var(--line);
	border-radius: 0;
	background: var(--bg);
	font-family: var(--sg-font-body);
	font-size: var(--text-body-size) !important;
	padding: 12px 8px !important;
	width: 80px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li { border-radius: 0; }

/* ---------- Warenkorb, Kasse, Formulare ---------- */

.woocommerce table.shop_table {
	border-radius: 0;
	border-color: var(--line);
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text {
	border: 1px solid var(--line);
	border-radius: 0;
	background: var(--bg);
	padding: 12px !important;
	font-family: var(--sg-font-body);
}
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-top-color: var(--sg-teal);
	background: var(--bg);
	font-family: var(--sg-font-body);
}
.woocommerce-error { border-top-color: var(--sg-rose); }

/* ==========================================================================
   Shop, Produktseite, Warenkorb, Kasse, Konto (Astro-Entwurf)
   ========================================================================== */

/* Keine Seitenleisten, Inhalte in voller Entwurfsbreite */
#sidebar { display: none !important; }
#main-content .container:not(.sg-breit) { padding-top: 48px; }
.et_full_width_page #left-area,
#left-area { width: 100% !important; padding: 0 !important; float: none !important; }

.sg-shop { padding: 40px 0 96px; }
.sg-regal-innen {
	max-width: var(--sg-max);
	margin: 0 auto;
	padding: 0 var(--sg-pad);
	box-sizing: border-box;
}
.sg-regal-innen > .sg-titel { margin-top: 12px; }

/* Kategorieseiten: sichtbare H1 oben, Kategorietext unter den Produkten */
.sg-kategorie-kopf { margin-bottom: var(--space-24); }
.sg-kategorie-titel {
	margin: 0;
	padding: 0;
	font-family: var(--font-display);
	font-size: var(--text-h2-size);
	line-height: var(--text-h2-lh);
	font-weight: var(--text-h2-weight);
	letter-spacing: var(--text-h2-track);
}
.sg-kategorie-text { margin-top: var(--space-56); }
.sg-produkt-beschreibung.sg-kategorie-beschreibung { margin-top: 0; padding-top: var(--space-24); border-top: 0; }
.sg-kategorie-beschreibung ul { margin: 0 0 var(--space-16) var(--space-20); padding: 0; list-style: disc; }
.sg-kategorie-beschreibung li { font-size: var(--text-body-size); line-height: 1.7; color: var(--muted-strong); margin-bottom: var(--space-6); }

/* Filterleiste (klebt unter dem Kopf, gleitet beim Herunterscrollen weg) */
.sg-filterleiste {
	position: sticky;
	top: 76px;
	z-index: 40;
	background: var(--sg-bg);
	border-bottom: 1px solid var(--line);
	transition: transform 0.32s;
	will-change: transform;
}
.admin-bar .sg-filterleiste { top: 108px; }
.sg-filterleiste.ist-versteckt { transform: translateY(-101%); }
.sg-filterleiste-zeile,
.sg-unterpillen {
	max-width: var(--sg-max);
	margin: 0 auto;
	padding-left: var(--sg-pad);
	padding-right: var(--sg-pad);
	box-sizing: border-box;
}
.sg-filterleiste-zeile {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	padding-top: 20px;
	padding-bottom: 20px;
}
.sg-pillen { display: flex; flex-wrap: wrap; gap: 10px; }
.sg-pille {
	padding: 9px 16px;
	border: 1px solid var(--line);
	font-family: var(--sg-font-body);
	font-size: var(--text-small-size);
	font-weight: 700;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--sg-ink) !important;
	background: none;
}
.sg-pille:hover { border-color: var(--border-strong); }
.sg-pille.ist-aktiv { background: var(--sg-rose); border-color: var(--sg-rose); color: var(--bg) !important; }
.sg-pille-klein { padding: 7px 14px; }
.sg-filterleiste-rechts { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
.sg-unter-knopf {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	font-family: var(--sg-font-body);
	font-size: var(--text-eyebrow-size);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--sg-muted-light);
}
.sg-unter-knopf:hover { color: var(--sg-ink); }
.sg-unter-knopf svg { transition: transform 0.3s; }
.sg-unter-knopf[aria-expanded="false"] svg { transform: rotate(-90deg); }
.sg-filter-anzahl { font-size: var(--text-small-size); text-transform: uppercase; white-space: nowrap; color: var(--sg-muted-light); }
.sg-unterpillen {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	max-height: 300px;
	padding-bottom: 18px;
	overflow: hidden;
	transition: max-height 0.32s, opacity 0.25s, padding 0.32s;
}
.sg-unterpillen.ist-zu { max-height: 0; padding-bottom: 0; opacity: 0; }
@media (max-width: 860px) {
	.sg-filterleiste-zeile { flex-direction: column; align-items: stretch; gap: 12px; }
	.sg-pillen, .sg-unterpillen { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.sg-pillen::-webkit-scrollbar, .sg-unterpillen::-webkit-scrollbar { display: none; }
	.sg-filterleiste-rechts { align-self: flex-end; }
}
@media (max-width: 782px) {
	.admin-bar .sg-filterleiste { top: 122px; }
}

/* Regale je Stoffart: Kopf in Inhaltsbreite, Karten seitlich scrollbar bis zum Rand */
.sg-regal { margin-bottom: 56px; }
.sg-regal .sg-naht { margin: 0 0 56px; }
.sg-regal .sg-kopfzeile { align-items: baseline; margin-bottom: 0; padding-bottom: 18px; }
.sg-regal-titel { margin: 0; font-size: var(--text-h4-size); font-weight: 700; }
.sg-regal-reihe {
	--sg-rand: max(var(--sg-pad), calc((100vw - var(--sg-max)) / 2 + var(--sg-pad)));
	display: flex;
	gap: 24px;
	overflow-x: auto;
	padding: 0 var(--sg-rand) 12px;
	scroll-padding-left: var(--sg-rand);
	scroll-snap-type: x;
	scrollbar-width: thin;
}
.sg-regal-reihe::-webkit-scrollbar { height: 6px; }
.sg-regal-reihe::-webkit-scrollbar-thumb { background: var(--line); border-radius: var(--radius-sm); }

/* Produktraster auf Kategorieseiten */
.sg-produktraster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; }
@media (max-width: 860px) { .sg-produktraster { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 560px) { .sg-produktraster { grid-template-columns: 1fr; } }

/* Produktkarte (sg_produktkarte) */
.sg-karte { display: flex; flex-direction: column; }
.sg-karte.im-regal { flex: 0 0 260px; scroll-snap-align: start; }
.sg-karte-bild {
	position: relative;
	display: block;
	aspect-ratio: 3 / 4;
	margin-bottom: 14px;
	background: var(--line);
	box-shadow: var(--shadow-soft);
}
.sg-karte-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* ProductCard: Bild hebt sich beim Darüberfahren um 5 px */
.sg-karte-bild { transition: transform var(--dur-card) var(--ease-out-soft); }
.sg-karte:hover .sg-karte-bild { transform: translateY(-5px); }
@media (prefers-reduced-motion: reduce) { .sg-karte:hover .sg-karte-bild { transform: none; } }
.sg-karte-etikett {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 5px 10px;
	background: var(--sg-blush);
	color: var(--sg-ink);
	font-size: var(--text-badge-size);
	font-weight: 600;
	letter-spacing: 0.03em;
}
.sg-karte-name {
	margin-bottom: 4px;
	font-family: var(--sg-font-display);
	font-size: var(--text-h6-size);
	font-weight: 600;
	color: var(--sg-ink) !important;
}
.sg-karte.im-regal .sg-karte-name { font-size: var(--text-h6-size); }
.sg-karte-zeile { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sg-karte-preis { font-size: var(--text-body-size); font-weight: 700; color: var(--sg-rose); }
.sg-karte.im-regal .sg-karte-preis { font-size: var(--text-body-size); }
.sg-schnell {
	padding: 7px 12px;
	border: 0;
	background: var(--sg-rose);
	color: var(--sg-ink);
	font-family: var(--sg-font-body);
	font-size: var(--text-eyebrow-size);
	font-weight: 700;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: var(--shadow-offset);
}
.sg-karte.im-regal .sg-schnell { padding: 5px 10px; font-size: var(--text-eyebrow-size); box-shadow: var(--shadow-offset); }
.sg-schnell:disabled { opacity: 0.4; cursor: not-allowed; }
.sg-naht.sg-naht-teal::after {
	background-image: repeating-linear-gradient(90deg, var(--sg-teal) 0 11px, transparent 11px 20px);
}
.sg-naht.sg-naht-teal::before { display: none; }

/* Karten: Etikett mit der Stoffart */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { position: relative; display: block; }
.sg-karte-kat {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	background: var(--sg-blush);
	padding: 4px 8px;
	font-size: var(--text-eyebrow-size);
	font-weight: 600;
	letter-spacing: 0.03em;
	color: var(--sg-ink);
}
.woocommerce ul.products li.product .price { color: var(--sg-rose) !important; }
.woocommerce ul.products li.product .wc-gzd-additional-info,
.woocommerce ul.products li.product .price-unit { font-size: var(--text-eyebrow-size) !important; color: var(--sg-muted-light); margin: 0; }

/* ---------- Produktseite ---------- */
.single-product #main-content .container { padding-top: 32px; }
.woocommerce .woocommerce-breadcrumb {
	font-size: var(--text-small-size);
	color: var(--sg-muted-light);
	margin-bottom: 28px;
}
.woocommerce div.product div.images img {
	box-shadow: var(--shadow-float);
}
.woocommerce div.product div.images .flex-control-thumbs li img { box-shadow: none; opacity: 0.6; }
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active { opacity: 1; outline: 2px solid var(--sg-teal); }
.sg-produkt-kat { margin-bottom: 10px; }
.woocommerce div.product .product_title {
	font-style: normal;
	font-weight: 900;
	font-size: var(--text-h1-size);
	line-height: 1.05;
	letter-spacing: -0.02em;
	margin-bottom: 14px;
}
.woocommerce div.product .woocommerce-product-details__short-description {
	font-size: var(--text-body-size);
	color: var(--sg-muted);
	margin: 18px 0 26px;
}

/* Meter-Wähler */
.sg-mindest { font-size: var(--text-eyebrow-size); color: var(--sg-muted-light); margin: 0 0 8px; }
.woocommerce div.product form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px 24px;
	padding: 22px 0 6px;
	border-top: 1px dashed var(--line);
}
.woocommerce div.product form.cart .sg-mindest { flex-basis: 100%; }
.woocommerce .quantity.sg-meterwahl { display: inline-flex; align-items: center; gap: 0; margin: 0 !important; }
.woocommerce .quantity.sg-meterwahl::after { margin-left: 10px; font-weight: 700; }
.sg-meter-knopf {
	width: 46px;
	height: 48px;
	border: 1px solid var(--line);
	background: var(--bg);
	font-size: var(--text-h4-size);
	line-height: 1;
	color: var(--sg-ink);
	cursor: pointer;
}
.sg-meter-knopf:hover { border-color: var(--sg-rose); color: var(--sg-rose); }
.woocommerce .quantity.sg-meterwahl input.qty {
	width: 76px;
	height: 48px;
	border-left: 0;
	border-right: 0;
	text-align: center;
	font-weight: 700;
	-moz-appearance: textfield;
}
.woocommerce .quantity.sg-meterwahl input.qty::-webkit-inner-spin-button,
.woocommerce .quantity.sg-meterwahl input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.sg-gesamt { font-size: var(--text-body-size); color: var(--sg-muted); }
.sg-gesamt strong { font-family: var(--sg-font-display); font-size: var(--text-h4-size); color: var(--sg-ink); margin-left: 4px; }

/* Hinweise unter dem Knopf */
.sg-hinweise { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; }
/* Plaketten „outline“ (design-system Badge) */
.sg-hinweise span {
	padding: 5px 10px;
	border: 1px solid var(--border);
	font-size: var(--text-badge-size);
	font-weight: 700;
	line-height: var(--text-badge-lh);
	letter-spacing: var(--text-badge-track);
	color: var(--text-body);
}
.woocommerce div.product .product_meta { font-size: var(--text-eyebrow-size); color: var(--sg-muted-light); }

/* Reiter Beschreibung */
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; border-bottom: 1px solid var(--line); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
	background: none;
	border: 0;
	margin: 0 24px 0 0;
	padding: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	padding: 12px 0;
	font-family: var(--sg-font-display);
	font-weight: 700;
	font-size: var(--text-h6-size);
	color: var(--sg-muted-light) !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--sg-ink) !important; box-shadow: inset 0 -2px 0 var(--sg-rose); }
.woocommerce div.product .woocommerce-tabs .panel { padding: 28px 0; }
.woocommerce div.product .woocommerce-tabs .panel h2:first-child { display: none; }
.woocommerce div.product .woocommerce-tabs table { border: 0; }
.woocommerce div.product .woocommerce-tabs table td { border-top: 1px dashed var(--line); padding: 8px 0; }
.woocommerce .related.products > h2 { font-size: var(--text-h3-size); margin: 24px 0; }

/* ---------- Warenkorb, Kasse, Konto ---------- */
.woocommerce-cart .entry-title,
.woocommerce-checkout .entry-title,
.woocommerce-account .entry-title {
	font-weight: 900;
	font-size: var(--text-h1-size);
	letter-spacing: -0.02em;
	margin-bottom: 32px;
}
.woocommerce table.shop_table { background: var(--bg); }
.woocommerce table.shop_table th {
	font-family: var(--sg-font-display);
	font-size: var(--text-small-size);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sg-muted);
}
.woocommerce table.shop_table td,
.woocommerce table.shop_table th { padding: 16px 14px !important; border-color: var(--line) !important; }
.woocommerce-cart table.cart img { width: 72px; aspect-ratio: 3 / 4; object-fit: cover; }
.woocommerce-cart table.cart .product-name a {
	font-family: var(--sg-font-display);
	font-style: italic;
	font-weight: 800;
	color: var(--sg-ink);
}
.woocommerce .cart-collaterals .cart_totals h2,
.woocommerce-checkout h3 { font-size: var(--text-h4-size); margin-bottom: 16px; }
.woocommerce .cart-collaterals .cart_totals .order-total td,
.woocommerce-checkout .order-total td { font-family: var(--sg-font-display); font-weight: 800; font-size: var(--text-h4-size); }
.woocommerce-checkout #payment { background: var(--bg); border-radius: 0; }
.woocommerce-checkout #payment div.payment_box { background: var(--sg-bg); border-radius: 0; }
.woocommerce-checkout #payment div.payment_box::before { display: none; }
.woocommerce form .form-row label { font-size: var(--text-small-size); font-weight: 700; color: var(--sg-ink); }

/* Normale Seiten (Rechtliches usw.) mit Seitentitel */
.page:not(.home) #main-content .entry-title.main_title {
	font-weight: 900;
	font-size: var(--text-h1-size);
	letter-spacing: -0.02em;
	margin-bottom: 28px;
}

@media (max-width: 980px) {
	.woocommerce div.product .product_title { font-size: var(--text-h1-size); }
}

/* Produktraster: CSS-Grid statt Divis Float (das nach jeder 3. Karte umbricht). */
.woocommerce ul.products,
.woocommerce-page ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 36px 24px;
	margin: 0 !important;
}
.woocommerce ul.products.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.woocommerce ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.woocommerce ul.products.columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	width: auto !important;
	margin: 0 !important;
	float: none !important;
	clear: none !important;
}
@media (max-width: 980px) {
	.woocommerce ul.products,
	.woocommerce ul.products[class*="columns-"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.woocommerce ul.products,
	.woocommerce ul.products[class*="columns-"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
}

/* Divi setzt Überschriften über die Theme-Optionen kursiv – überall aufrecht,
   nur die Stoffnamen auf den Karten bleiben bewusst kursiv. */
h1, h2, h3, h4, h5, h6 { font-style: normal !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-style: italic !important; }

/* ---------- Textseiten (Rechtliches, Qualität, Versand) ---------- */
.sg-textseite .et_pb_module { max-width: 820px; }
.sg-textseite h1 {
	font-weight: 900;
	font-size: var(--text-h1-size);
	letter-spacing: -0.02em;
	margin: 0 0 28px;
}
.sg-textseite h2 { font-size: var(--text-h4-size); margin: 36px 0 12px; }
.sg-textseite h3 { font-size: var(--text-h4-size); margin: 28px 0 10px; }
.sg-textseite h4, .sg-textseite h5 { font-size: var(--text-h5-size); margin: 22px 0 8px; }
.sg-textseite p, .sg-textseite li { font-size: var(--text-body-size); line-height: 1.8; }
.sg-textseite ul, .sg-textseite ol { padding-left: 20px; margin-bottom: 16px; }
.sg-textseite a { text-decoration: underline; text-underline-offset: 3px; }

/* Kontakt */
.sg-kontakt-raster { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; }
.sg-kontakt label { display: block; margin-bottom: 6px; font-size: var(--text-small-size); font-weight: 700; }
.sg-kontakt input[type=text],
.sg-kontakt input[type=email],
.sg-kontakt textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid var(--line);
	background: var(--bg);
	font-family: var(--sg-font-body);
	font-size: var(--text-body-size);
}
.sg-kontakt p { margin-bottom: 16px; }
.sg-kontakt-haken label { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; }
.sg-kontakt-haken input { margin-top: 4px; }
.sg-kontakt-falle { position: absolute; left: -9999px; }
.sg-kontakt-meldung { padding: 14px 18px; margin-bottom: 18px; border-left: 3px solid var(--sg-teal); background: var(--bg); }
.sg-kontakt-meldung.ist-fehler { border-left-color: var(--sg-rose); }
@media (max-width: 980px) {
	.sg-kontakt-raster { grid-template-columns: 1fr; gap: 32px; }
}
.sg-textseite dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 32px; font-size: var(--text-body-size); }
.sg-textseite dt { font-weight: 700; }
.sg-textseite dd { margin: 0; }
.sg-textseite img { max-width: 260px; height: auto; margin: 12px 0; }
@media (max-width: 600px) {
	.sg-textseite h1 { font-size: var(--text-h1-size); }
	.sg-textseite dl { grid-template-columns: 1fr; gap: 2px; }
	.sg-textseite dd { margin-bottom: 10px; }
}

/* ---------- Neu eingetroffen (Mauerwerk wie im Astro-Entwurf) ---------- */
.sg-mauer {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	align-items: start;
	padding-top: 12px;
	margin-top: 20px;
}
.sg-mauer-spalte { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.sg-mauer-karte { display: block; }
.sg-mauer-bild {
	position: relative;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	background-color: var(--sg-ink);
	box-shadow: var(--shadow-float);
	transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.35s;
}
.sg-mauer-karte:hover .sg-mauer-bild {
	transform: translateY(-5px);
	box-shadow: var(--shadow-float);
}
@media (min-width: 861px) {
	/* Gleich lange Spalten: Spalte hat feste Proportion, Karten teilen sie nach Gewicht */
	.sg-mauer-spalte { aspect-ratio: 1 / var(--spalte-h); }
	.sg-mauer-karte { flex: var(--w) 1 0; min-height: 0; }
	.sg-mauer-bild { height: 100%; aspect-ratio: auto !important; }
}
/* Lineal links, auf einem weichen dunklen Verlauf, damit es auch auf hellen Stoffen lesbar ist */
.sg-mauer-massband {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 72px;
	padding: 14px 0 14px 10px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background: linear-gradient(to right, var(--overlay-cart) 0%, transparent 100%);
	font-family: var(--sg-font-body);
	font-size: var(--text-eyebrow-size);
	color: var(--bg);
	pointer-events: none;
}
/* Nur hinter der Schrift unten (Name, Kategorie, Preis), oben weich auslaufend */
.sg-mauer-schatten {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: min(100%, 200px);
	background: linear-gradient(to bottom, transparent 0%, var(--overlay-cart) 65%, var(--overlay-cart) 100%);
}
.sg-mauer-text { position: absolute; left: 48px; bottom: 44px; max-width: 70%; }
.sg-mauer-name {
	font-family: var(--sg-font-display);
	font-size: var(--text-h4-size);
	font-style: italic;
	font-weight: 800;
	line-height: 1.14;
	color: var(--bg);
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.sg-mauer-kat {
	margin-top: 7px;
	font-family: var(--sg-font-body);
	font-size: var(--text-eyebrow-size);
	font-weight: 700;
	color: var(--sg-rose);
}
.sg-mauer-preis,
.sg-mauer-oeko {
	position: absolute;
	bottom: 16px;
	font-family: var(--sg-font-body);
	font-weight: 700;
	color: var(--bg);
}
.sg-mauer-preis { right: 16px; font-size: var(--text-body-size); text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); }
.sg-mauer-oeko { left: 48px; font-size: var(--text-eyebrow-size); letter-spacing: 0.04em; color: var(--on-dark-strong); }
.sg-mauer-weiter { text-align: right; margin-top: 44px; }
.sg-knopf.sg-knopf-klein,
.sg-knopf.sg-knopf-klein:hover {
	padding: 10px 18px !important;
	font-size: var(--button-size-sm) !important;
}
@media (max-width: 860px) {
	.sg-mauer { grid-template-columns: repeat(2, 1fr); }
	.sg-mauer-text, .sg-mauer-oeko { left: 18px; }
	.sg-mauer-name { font-size: var(--text-h5-size); }
}
@media (max-width: 560px) {
	.sg-mauer { grid-template-columns: 1fr; }
}

/* ---------- Produktseite (woocommerce/content-single-product.php) ---------- */
.single-product #main-content .container { width: 100%; max-width: var(--sg-max); padding: 40px var(--sg-pad) 96px !important; box-sizing: border-box; }
.sg-pfad { margin-bottom: 32px; font-size: var(--text-small-size); color: var(--sg-muted-light); }
.sg-pfad a { color: var(--sg-muted-light); }
.sg-produkt-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.sg-produkt-medien { position: sticky; top: 100px; }
.admin-bar .sg-produkt-medien { top: 132px; }
.sg-produkt-bild {
	position: relative;
	aspect-ratio: 1 / 1;
	margin-bottom: 16px;
	background: var(--line);
	box-shadow: var(--shadow-soft);
}
.sg-produkt-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sg-handverlesen {
	position: absolute;
	top: 16px;
	left: 16px;
	padding: 7px 12px;
	background: var(--sg-rose);
	color: var(--sg-ink);
	font-size: var(--text-eyebrow-size);
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}
.sg-vorschau { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.sg-vorschau-bild {
	aspect-ratio: 1 / 1;
	width: 100%;
	padding: 0;
	border: 2px solid transparent;
	background: var(--line);
	cursor: pointer;
	box-shadow: var(--shadow-soft);
}
.sg-vorschau-bild.ist-aktiv { border-color: var(--sg-rose); }
.sg-vorschau-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }

.sg-produkt-kategorie { margin-bottom: 10px; font-size: var(--text-eyebrow-size); font-weight: 700; letter-spacing: 0.08em; color: var(--sg-rose); }
.sg-produkt-info h1.sg-produkt-name { margin: 0 0 14px; padding: 0; font-size: var(--text-h1-size); font-weight: 800; line-height: 1.15; }
.sg-produkt-preis { margin-bottom: 4px; font-size: var(--text-h4-size); font-weight: 700; color: var(--sg-rose); }
.sg-produkt-steuer { margin-bottom: 20px; font-size: var(--text-eyebrow-size); color: var(--sg-muted-light); }
.sg-produkt-steuer a { color: var(--sg-muted-light); text-decoration: underline; }
.sg-eckdaten {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 28px;
	padding: 18px 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
.sg-eckdaten-zeile { display: flex; justify-content: space-between; gap: 16px; font-size: var(--text-body-size); }
.sg-eckdaten-zeile span:first-child { color: var(--sg-muted-light); }
.sg-eckdaten-zeile span:last-child { font-weight: 500; text-align: right; }

.sg-stepper-kopf { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: var(--text-small-size); color: var(--sg-muted-light); }
.sg-massband {
	position: relative;
	height: 34px;
	margin-bottom: 10px;
	border-bottom: 1px solid var(--line);
	background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 20px);
}
.sg-massband-fuellung {
	position: absolute;
	top: 0;
	bottom: 1px;
	left: 0;
	width: 0;
	background: var(--line-teal);
	border-right: 2px solid var(--green);
	transition: width 0.15s;
}
.sg-stepper-min { margin: 0 0 12px; font-size: var(--text-small-size); color: var(--sg-muted-light); }
.sg-stepper { display: flex; align-items: center; width: fit-content; border: 1px solid var(--line); }
.sg-stepper button { width: 36px; height: 36px; border: 0; background: none; font-size: var(--text-h5-size); cursor: pointer; color: var(--text-body); }
.sg-stepper button:disabled { color: var(--sg-muted-light); cursor: default; }

.sg-stepper .sg-stepper-wert {
	width: 72px;
	height: 36px;
	padding: 0;
	border: 0;
	background: none;
	text-align: center;
	font-family: inherit;
	font-size: var(--text-body-size);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: inherit;
}
.sg-stepper .sg-stepper-wert:focus { outline: 2px solid var(--sg-rose); outline-offset: -2px; }
.sg-kaufen-zeile { display: flex; align-items: center; gap: 20px; margin-top: 24px; }
.sg-gesamtpreis { font-size: var(--text-h6-size); }
.sg-ausverkauft { margin-top: 16px; font-size: var(--text-body-size); font-weight: 600; color: var(--sg-rose); }
.sg-vertrauen { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.sg-vertrauen span {
	padding: 8px 12px;
	border: 1px solid var(--line-green);
	background: var(--green-tint);
	color: var(--green);
	font-size: var(--text-eyebrow-size);
	font-weight: 700;
	text-transform: uppercase;
}
.sg-produkt-beschreibung { max-width: 720px; margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--line); }
.sg-produkt-beschreibung h2 { margin: 0 0 16px; font-size: var(--text-h4-size); font-weight: 700; }
.sg-produkt-beschreibung h3 { margin: 24px 0 8px; font-size: var(--text-h5-size); }
.sg-produkt-beschreibung p { font-size: var(--text-body-size); line-height: 1.7; color: var(--muted-strong); }
.sg-reiter { display: flex; flex-wrap: wrap; gap: 4px; margin: 24px 0 0; border-bottom: 1px solid var(--line); }
.sg-reiter-knopf {
	margin-bottom: -1px;
	padding: 10px 16px;
	border: 1px solid transparent;
	border-bottom-color: var(--line);
	background: none;
	color: var(--muted-strong);
	font-family: var(--sg-font-display);
	font-size: var(--text-body-size);
	font-weight: 700;
	cursor: pointer;
}
.sg-reiter-knopf:hover { color: var(--sg-ink); }
.sg-reiter-knopf.ist-aktiv { border-color: var(--line); border-bottom-color: var(--sg-bg, var(--bg)); background: var(--sg-bg, var(--bg)); color: var(--sg-ink); box-shadow: inset 0 2px 0 var(--sg-rose); }
.sg-reiter-inhalt { padding: 20px 0 4px; }
.sg-reiter-inhalt > :first-child { margin-top: 0; }
.sg-reiter-nachsatz { margin-top: 16px; }
@media (max-width: 860px) {
	.sg-produkt-raster { grid-template-columns: 1fr; gap: 32px; }
	.sg-produkt-medien { position: static; }
}
/* ---------- Bewertungen (inc/bewertungen.php) ---------- */
.sg-bewertungen { max-width: 720px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.sg-bewertungen.ist-reiter { margin-top: 0; padding-top: 0; border-top: 0; }
.sg-bewertungen h2 { margin: 0 0 16px; font-size: var(--text-h4-size); font-weight: 700; }
.sg-sterne { color: var(--rose); letter-spacing: 2px; white-space: nowrap; }
.sg-sterne-leer { color: var(--line); }
.sg-bewertungen-schnitt { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 24px; font-size: var(--text-body-size); }
.sg-bewertungen-schnitt .sg-sterne { font-size: 1.25em; }
#left-area .sg-bewertungen-liste,
.sg-bewertungen-liste { list-style: none; margin: 0 0 32px; padding: 0; }
.sg-bewertung-kopf .sg-sterne { font-size: 1.15em; }
.sg-bewertung { padding: 18px 0; border-bottom: 1px solid var(--line); }
.sg-bewertung:first-child { border-top: 1px solid var(--line); }
.sg-bewertung-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 8px; }
.sg-bewertung-kopf time { color: var(--muted-strong); font-size: var(--text-small-size); }
.sg-bewertung-kauf { color: var(--green); font-size: var(--text-small-size); font-weight: 700; }
.sg-bewertung p { margin: 0 0 8px; font-size: var(--text-body-size); line-height: 1.7; }
.sg-bewertungen .sg-leise { color: var(--muted-strong); }
.sg-bewertung-formular { margin-top: 8px; }
.sg-bewertung-formular > summary { display: inline-block; list-style: none; cursor: pointer; }
.sg-bewertung-formular > summary::-webkit-details-marker { display: none; }
.sg-bewertung-formular[open] > summary { margin-bottom: 20px; }
.sg-sterne-wahl { margin: 0 0 16px; padding: 0; border: 0; }
.sg-sterne-wahl legend { padding: 0; margin-bottom: 6px; font-size: var(--text-small-size); font-weight: 700; }
.sg-sterne-reihe { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.sg-sterne-wahl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sg-sterne-wahl label { font-size: 32px; line-height: 1; color: var(--line); cursor: pointer; }
.sg-sterne-wahl label:hover,
.sg-sterne-wahl label:hover ~ label,
.sg-sterne-wahl input:checked ~ label { color: var(--rose); }
.sg-sterne-wahl input:focus-visible + label { outline: 2px solid var(--rose); outline-offset: 2px; }
.sg-bewertungen .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.sg-konto-bewerten,
.sg-konto-bewertet { display: inline-block; margin-top: 6px; font-size: var(--text-small-size); font-weight: 700; }
.sg-konto-bewerten { color: var(--rose); text-decoration: underline; text-underline-offset: 3px; }
.sg-konto-bewertet { color: var(--green); }

.woocommerce div.product form.cart.sg-kaufen,
form.cart.sg-kaufen { display: block !important; margin: 0; }
.single-product .woocommerce-breadcrumb { display: none; }

/* ---------- Dunkler Seitenkopf (z. B. Nähwerkstatt) ---------- */
.et_pb_section.sg-dunkel-kopf { background: var(--sg-ink); padding: 72px 0; }
/* Nähwerkstatt, Über uns, Kontakt: gleich hohe Kopfbänder, unten die Naht
   in der Farbe des Bereichs (design-system Stitch, --section-*). */
.sg-seite-naehwerkstatt-blog .et_pb_section.sg-dunkel-kopf,
.sg-seite-ueber-uns .et_pb_section.sg-dunkel-kopf,
.sg-seite-kontakt .et_pb_section.sg-dunkel-kopf {
	position: relative;
	box-sizing: border-box;
	min-height: 420px;
	justify-content: center;
}
/* Bereichsfarbe für alle Nähte der Seite (Kopfband, Karten, .sg-naht) */
.sg-seite-naehwerkstatt-blog { --naht: var(--section-blog); }
.sg-seite-ueber-uns { --naht: var(--section-about); }
.sg-seite-kontakt { --naht: var(--section-contact); }
.sg-seite-naehwerkstatt-blog .et_pb_section.sg-dunkel-kopf::after,
.sg-seite-ueber-uns .et_pb_section.sg-dunkel-kopf::after,
.sg-seite-kontakt .et_pb_section.sg-dunkel-kopf::after {
	/* Naht genau auf der Unterkante: 4 px hoch, zur Hälfte im dunklen Band */
	content: '';
	position: absolute;
	z-index: 1;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 4px;
	background: repeating-linear-gradient(90deg, var(--naht) 0 11px, transparent 11px 20px);
}
@media (max-width: 860px) {
	.sg-seite-naehwerkstatt-blog .et_pb_section.sg-dunkel-kopf,
	.sg-seite-ueber-uns .et_pb_section.sg-dunkel-kopf,
	.sg-seite-kontakt .et_pb_section.sg-dunkel-kopf { min-height: 0; }
}
.sg-dunkel-kopf .et_pb_row { max-width: var(--sg-max); width: 100%; margin: 0 auto; padding: 0 var(--sg-pad); box-sizing: border-box; }
.sg-dunkel-kopf .et_pb_column,
.sg-dunkel-kopf .et_pb_module { width: 100%; text-align: left; }
.sg-dunkel-kopf .sg-eyebrow { color: var(--sg-teal); }
.sg-dunkel-kopf .sg-eyebrow::before { display: none; }
.sg-dunkel-kopf h1 {
	max-width: 640px;
	margin: 0;
	padding: 0;
	font-size: var(--text-h1-size);
	font-weight: 900;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--bg);
}
.et_pb_section.sg-journal-liste { padding: 56px 0 96px; }
@media (max-width: 860px) { .sg-dunkel-kopf h1 { font-size: var(--text-h1-size); } }
@media (max-width: 560px) { .sg-dunkel-kopf h1 { font-size: var(--text-h1-size); } }

/* ---------- Über uns ---------- */
.et_pb_section.sg-ueber-abschnitt { padding: 64px 0; }
.sg-ueber-seite { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; margin-bottom: 80px; }
.sg-ueber-seite-bild {
	width: 100%;
	max-width: 440px; /* passt auch auf 14-Zoll-Bildschirme ganz in die Höhe */
	aspect-ratio: 4 / 5;
	background: center / cover no-repeat;
	box-shadow: var(--shadow-float);
}
.sg-ueber-seite p { max-width: 480px; margin: 0 0 20px; font-size: var(--text-body-size); line-height: 1.85; color: var(--muted-strong); }
/* Prozess auf hellem Grund */
.sg-prozess.sg-prozess-hell { padding: 0; margin-bottom: 80px; }
.sg-prozess-hell .sg-eyebrow { color: var(--sg-muted-light); }
.sg-prozess-hell .sg-prozess-punkt { border-left-color: var(--line); }
.sg-prozess-hell .sg-prozess-nr { color: #fafafa24; }
.sg-prozess-hell .sg-prozess-punkt h3 { color: var(--sg-ink); }
.sg-prozess-hell .sg-prozess-punkt p { color: var(--sg-muted); }
.sg-mittig { text-align: center; }
@media (max-width: 860px) {
	.sg-ueber-seite { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Kontaktseite ---------- */
.et_pb_section.sg-kontakt-abschnitt { padding: 64px 0 96px; }
.sg-kontakt-seite { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.sg-kontakt-label { margin-bottom: 18px; font-family: var(--sg-font-display); font-size: var(--text-h6-size); font-weight: 700; color: var(--sg-ink); }
.sg-kontakt-block { margin-bottom: 24px; font-size: var(--text-body-size); line-height: 1.8; color: var(--muted-strong); }
.sg-kontakt-block strong { color: var(--muted-strong); }
.sg-kontakt-google { margin: -12px 0 32px; }
.sg-kontakt-google a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: var(--text-body-size);
	color: var(--muted-strong);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.sg-kontakt-google a:hover { color: var(--sg-teal); }
.sg-kontakt-links { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.sg-kontakt-links a { display: inline-flex; align-items: center; gap: 10px; width: fit-content; font-size: var(--text-body-size); color: var(--sg-rose); }
.sg-kontakt-links a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.sg-kontakt-links svg { flex: none; }
.sg-kontakt-rueckruf { max-width: 420px; margin: 0; font-size: var(--text-body-size); line-height: 1.8; color: var(--sg-muted); }
.sg-anfahrt { position: relative; padding: 36px; background: var(--bg); border: 1px solid var(--line); }
.sg-anfahrt::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background-image: repeating-linear-gradient(90deg, var(--naht, var(--sg-rose)) 0 11px, transparent 11px 20px);
}
/* Kontakt: Routenbild (OpenStreetMap) und Link zur eigenen Route */
.sg-anfahrt .sg-anfahrt-bild { width: 100%; height: auto; margin-bottom: 12px; }
.sg-anfahrt-route { margin: 0 0 24px; }
/* Kontakt: Naht auch an der Unterkante der Anfahrt-Karte */
.sg-seite-kontakt .sg-anfahrt::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 4px;
	background-image: repeating-linear-gradient(90deg, var(--naht, var(--sg-rose)) 0 11px, transparent 11px 20px);
}
.sg-anfahrt h3 { margin: 0 0 10px; padding: 0; font-size: var(--text-h4-size); font-weight: 800; letter-spacing: -0.01em; }
.sg-anfahrt-intro { margin: 0 0 24px; font-size: var(--text-body-size); line-height: 1.6; color: var(--muted-strong); }
.sg-anfahrt-liste { display: flex; flex-direction: column; gap: 20px; }
.sg-anfahrt-punkt { display: flex; align-items: flex-start; gap: 14px; }
.sg-anfahrt-symbol {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin-top: 2px;
	border: 1px solid var(--line-rose);
	border-radius: var(--radius-round);
	background: var(--rose-tint-soft);
	color: var(--sg-rose);
}
.sg-anfahrt-punkt strong { display: block; margin-bottom: 3px; font-size: var(--text-body-size); color: var(--sg-ink); }
.sg-anfahrt-punkt p { margin: 0; font-size: var(--text-body-size); line-height: 1.55; color: var(--muted-strong); }
@media (max-width: 860px) {
	.sg-kontakt-seite { grid-template-columns: 1fr; }
}

/* ---------- Versandseite ---------- */
.et_pb_section.sg-versand-abschnitt { padding: 56px 0 96px; }
.sg-versand { max-width: 760px; }
.sg-versand h1 { margin: 0 0 16px; padding: 0; font-size: var(--text-h1-size); font-weight: 900; }
.sg-versand-lead { max-width: 560px; margin: 0 0 36px; font-size: var(--text-body-size); line-height: 1.8; color: var(--muted-strong); }
.sg-versand-fakten { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 44px; }
.sg-versand-fakt { padding: 20px 18px; background: var(--bg); border: 1px solid var(--line); }
.sg-versand-fakt.ist-hervorgehoben { background: var(--green-tint); border-color: var(--line-green); }
.sg-versand-wert { margin-bottom: 6px; font-family: var(--sg-font-display); font-size: var(--text-h4-size); font-weight: 800; }
.ist-hervorgehoben .sg-versand-wert { color: var(--sg-green); }
.sg-versand-text { font-size: var(--text-eyebrow-size); line-height: 1.5; color: var(--sg-muted-light); }
.sg-versand h2 { margin: 32px 0 12px; padding: 0; font-size: var(--text-h5-size); font-weight: 700; }
.sg-versand p { margin: 0 0 10px; font-size: var(--text-body-size); line-height: 1.8; color: var(--muted-strong); }
.sg-versand p a { color: var(--sg-rose); font-weight: 600; }
.sg-versand-frage {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 44px;
	padding: 20px 22px;
	background: var(--sg-ink);
	color: var(--bg);
	font-size: var(--text-body-size);
}
.sg-versand-frage a { color: var(--sg-rose); font-weight: 700; white-space: nowrap; }
@media (max-width: 560px) {
	.sg-versand-frage { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ---------- Pflegehinweise (nutzt die Versandseite) ---------- */
.sg-pflege-tabelle { width: 100%; margin: 14px 0 12px; border-collapse: collapse; font-size: var(--text-body-size); line-height: 1.6; }
.sg-pflege-tabelle th { padding: 8px 10px; background: var(--rose-tint); text-align: left; font-weight: 700; }
.sg-pflege-tabelle td { padding: 8px 10px; border-top: 1px solid var(--line); color: var(--muted-strong); vertical-align: top; }
.sg-pflege-tabelle td:first-child { width: 64px; }
.sg-pflege-symbol { display: block; width: 44px; height: 42px; color: var(--sg-ink); }
.sg-pflege-tipps { margin: 0 0 10px; padding-left: 18px; font-size: var(--text-body-size); line-height: 1.8; color: var(--muted-strong); }
@media (max-width: 560px) {
	.sg-pflege-tabelle { display: block; overflow-x: auto; }
}

/* ---------- Qualitätsseite ---------- */
.sg-dunkel-kopf h1 + .sg-dunkel-lead { margin-top: 20px; }
.sg-dunkel-lead { max-width: 560px; margin: 0; font-size: var(--text-body-size); line-height: 1.85; color: var(--on-dark-strong); }
.et_pb_section.sg-qualitaet-abschnitt { padding: 64px 0 96px; }
.sg-merkmale { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 72px; }
.sg-merkmal { padding: 22px 20px; background: var(--bg); border: 1px solid var(--line); }
.sg-merkmal-punkt { width: 10px; height: 10px; margin-bottom: 14px; border-radius: var(--radius-round); background: var(--c); }
.sg-merkmal-titel { margin-bottom: 8px; font-family: var(--sg-font-display); font-size: var(--text-h6-size); font-weight: 700; color: var(--sg-ink); }
.sg-merkmal-text { font-size: var(--text-small-size); line-height: 1.6; color: var(--sg-muted-light); }
.sg-qualitaet-text { max-width: 720px; }
.sg-qualitaet-text h2 { margin: 40px 0 16px; padding: 0; font-size: var(--text-h4-size); font-weight: 800; }
.sg-qualitaet-text h2:first-child { margin-top: 0; }
.sg-qualitaet-text p { margin: 0 0 14px; font-size: var(--text-body-size); line-height: 1.85; color: var(--muted-strong); }
.sg-qualitaet-knopf { margin-top: 56px; }
@media (max-width: 860px) { .sg-merkmale { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sg-merkmale { grid-template-columns: 1fr; } }

/* Meldung nach „+ Warenkorb“ */
/* Toast: unten mittig, ink, Haken teal, Aktion als unterstrichener Text */
.sg-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: var(--z-toast);
	max-width: min(92vw, 520px);
	padding: 14px 18px;
	background: var(--ink);
	color: var(--bg);
	box-shadow: var(--shadow-float);
	font-size: var(--text-small-size);
	line-height: 1.5;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 12px);
	transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.sg-toast::before { content: '✓'; margin-right: 12px; color: var(--teal); font-weight: 700; }
.sg-toast.ist-sichtbar { opacity: 1; transform: translate(-50%, 0); }
.sg-toast.ist-fehler::before { content: '!'; color: var(--rose); }
.sg-toast button {
	margin-left: 12px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--bg);
	font-family: var(--font-body);
	font-size: var(--text-caption-size);
	font-weight: 700;
	text-transform: uppercase;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.sg-toast.ist-sichtbar { pointer-events: auto; }

/* ---------- Warenkorb-Seitenleiste (js/warenkorb.js) ---------- */
.sg-leiste-schleier {
	position: fixed;
	inset: 0;
	z-index: 9998;
	background: var(--overlay-cart);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s;
}
.sg-leiste-schleier.ist-offen { opacity: 1; pointer-events: auto; }
.sg-leiste {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	width: 420px;
	max-width: 100vw;
	background: var(--bg);
	transform: translateX(100%);
	transition: transform var(--dur-panel) var(--ease);
}
/* Schatten nur offen – zugeklappt fiel er sonst als grauer Streifen neben den Scrollbalken */
.sg-leiste.ist-offen { transform: translateX(0); box-shadow: var(--shadow-float); }
.sg-leiste-kopf {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 22px;
	border-bottom: 1px solid var(--line);
	font-family: var(--sg-font-display);
	font-size: var(--text-h4-size);
	font-weight: 700;
	color: var(--sg-ink);
}
.sg-leiste-zu { border: 0; background: none; font-size: var(--text-h4-size); cursor: pointer; color: var(--sg-ink); }
.sg-leiste-inhalt { flex: 1; overflow-y: auto; padding: 6px 22px; }
.sg-leiste-leer { padding: 48px 0; text-align: center; font-size: var(--text-body-size); color: var(--sg-muted-light); }
.sg-leiste-nochmal { display: block; margin: 0 auto; border: 0; background: none; color: var(--sg-rose); font: inherit; font-size: var(--text-body-size); text-decoration: underline; cursor: pointer; }
.sg-leiste-spinner,
.sg-zeile-lade.ist-aktiv {
	display: inline-block;
	width: 18px;
	height: 18px;
	box-sizing: border-box;
	border: 2px solid var(--line);
	border-top-color: var(--sg-rose);
	border-radius: var(--radius-round);
	animation: sg-drehen 0.8s linear infinite;
}
.sg-zeile-lade.ist-aktiv { width: 14px; height: 14px; }
@keyframes sg-drehen { to { transform: rotate(360deg); } }
.sg-zeile { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.sg-zeile-bild { flex: none; width: 64px; height: 64px; box-shadow: var(--shadow-soft); }
.sg-zeile-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sg-zeile-info { flex: 1; min-width: 0; }
.sg-zeile-name { display: block; font-family: var(--sg-font-display); font-size: var(--text-body-size); font-weight: 600; color: var(--sg-ink) !important; }
.sg-zeile-preis { margin: 2px 0 8px; font-size: var(--text-eyebrow-size); color: var(--sg-muted-light); }
.sg-zeile-menge { display: flex; align-items: center; gap: 10px; }
.sg-zeile-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.sg-zeile-stepper button { width: 36px; height: 36px; border: 0; background: none; cursor: pointer; font-size: var(--text-body-size); color: var(--sg-ink); }
.sg-zeile-stepper button:disabled { color: var(--sg-muted-light); cursor: default; }
.sg-zeile-stepper .sg-zeile-wert {
	width: 56px;
	height: 36px;
	padding: 0;
	border: 0;
	background: none;
	text-align: center;
	font-family: inherit;
	font-size: var(--text-body-size);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--sg-ink);
}
.sg-zeile-unten { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.sg-zeile-summe { font-size: var(--text-body-size); font-weight: 700; color: var(--sg-ink); }
.sg-zeile-entfernen { padding: 0; border: 0; background: none; font-family: inherit; font-size: var(--text-eyebrow-size); color: var(--sg-rose); cursor: pointer; }
.sg-leiste-fuss { padding: 18px 22px 22px; border-top: 1px solid var(--line); }
.sg-leiste-gesamt { display: flex; justify-content: space-between; margin-bottom: 16px; font-family: var(--font-display); font-size: var(--text-h5-size); font-weight: 700; color: var(--sg-ink); }
.sg-leiste-gesamt strong { font-family: var(--font-body); font-size: var(--text-body-size); font-variant-numeric: tabular-nums; }
.sg-leiste-gesamt strong { font-weight: 800; }
.sg-leiste-kasse {
	display: block;
	width: 100%;
	padding: 17px 32px;
	box-sizing: border-box;
	background: var(--sg-rose);
	color: var(--sg-ink) !important;
	text-align: center;
	text-decoration: none;
	font-family: var(--sg-font-display);
	font-size: var(--button-size);
	font-weight: 700;
	text-transform: uppercase;
	box-shadow: var(--shadow-offset);
}
/* Angemeldet: Leiste unter der WordPress-Admin-Leiste beginnen lassen */
.admin-bar .sg-leiste { top: 32px; }
@media (max-width: 782px) { .admin-bar .sg-leiste { top: 46px; } }
.sg-karte-limitiert {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 5px 10px;
	background: var(--sg-green);
	color: var(--bg);
	font-size: var(--text-badge-size);
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}
.sg-karte-material { margin-bottom: 8px; font-size: var(--text-small-size); color: var(--sg-muted-light); }
.sg-shop-leer { padding: 24px 0; font-size: var(--text-body-size); color: var(--sg-muted-light); }
.sg-regal-innen > .sg-naht-teal { margin-bottom: 0; }
.sg-produkt-kurz p { max-width: 460px; margin: 0 0 28px; font-size: var(--text-body-size); line-height: 1.7; color: var(--muted-strong); }
.sg-kaufen-zeile .sg-knopf:disabled { opacity: 0.5; cursor: not-allowed; }
.sg-anleitung-hinweis {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-top: 20px;
	padding: 16px 18px;
	background: var(--green-tint);
	border: 1px solid var(--line-green);
	font-size: var(--text-body-size);
}
.sg-anleitung-hinweis a { color: var(--sg-green); font-weight: 700; white-space: nowrap; }

/* ---------- Kasse in drei Schritten (woocommerce/checkout/form-checkout.php) ----------
   Nach design-system ui_kits/shop/CheckoutScreen: CheckoutSteps, OptionRow, Field,
   rechts die dunkle Bestellübersicht (400 px). */
.woocommerce-checkout #main-content .container { width: 100%; max-width: var(--content-max); padding: 48px var(--pad) var(--page-end) !important; box-sizing: border-box; }
.woocommerce-checkout .entry-title.main_title { display: none; }

/* Schritte (CheckoutSteps): aktuell rose, erledigt ink mit Haken, offen Linie */
.sg-schritte { display: flex; align-items: center; gap: 12px; margin: 0 0 40px; padding: 0; list-style: none; }
.sg-schritte li { list-style: none; }
.sg-schritte li::marker { content: ''; }
.sg-schritt { display: flex; align-items: center; gap: 10px; padding: 0; }
.sg-schritt-nr {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border: 1px solid var(--border);
	border-radius: var(--radius-round);
	font-size: var(--text-body-size);
	font-weight: 700;
	color: var(--text-muted);
}
.sg-schritt-name { font-size: var(--text-body-size); color: var(--text-muted); }
.sg-schritt.ist-aktiv .sg-schritt-nr { background: var(--rose); border-color: var(--rose); color: var(--bg); }
.sg-schritt.ist-aktiv .sg-schritt-name { color: var(--rose); font-weight: 700; }
.sg-schritt.ist-fertig .sg-schritt-nr { background: var(--ink); border-color: var(--ink); color: transparent; position: relative; }
.sg-schritt.ist-fertig .sg-schritt-nr::after { content: '✓'; position: absolute; color: var(--bg); font-size: var(--text-small-size); }
.sg-schritt.ist-fertig .sg-schritt-name { color: var(--text-body); }
.sg-schritt-linie { flex: 1; min-width: 16px; max-width: 64px; height: 0; padding: 0; border-top: 1px dashed var(--border); }

/* WooCommerce legt beim Laden einen Schleier mit z-index 1000 über Formulare –
   eigene Ebene, damit er beim Scrollen nicht über den Kopf (z-index 100) rutscht. */
.entry-content > .woocommerce, .sg-kasse { isolation: isolate; }
.sg-kasse-teil[hidden], .sg-kasse [hidden] { display: none !important; }
.sg-kasse h1.sg-kasse-titel { margin: 0 0 28px; padding: 0; }
.sg-kasse-spalten { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: start; }
.sg-kasse-spalten > div { min-width: 0; }
.sg-kasse-abschnitt { display: grid; gap: 12px; margin-bottom: 36px; }
.sg-kasse h3 { margin: 0 0 8px; padding: 0; }

/* Schritt 1: Warenkorb */
.sg-kasse-leer, .sg-kasse-laden { padding: 48px 0; font-size: var(--text-body-size); color: var(--text-muted); }
.sg-kasse-laden { text-align: center; }
.sg-kasse-leer { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.sg-kasse-zeilen { border-top: 1px solid var(--border); }
.sg-zeile.sg-zeile-kasse { position: relative; align-items: center; gap: 20px; padding: 20px 0; border-bottom-color: var(--border); }
.sg-zeile-kasse .sg-zeile-info { display: grid; grid-template-columns: 1fr auto; column-gap: 20px; }
.sg-zeile-kasse .sg-zeile-name, .sg-zeile-kasse .sg-zeile-preis, .sg-zeile-kasse .sg-zeile-menge { grid-column: 1; }
.sg-zeile-kasse .sg-zeile-name { font-size: var(--text-h6-size); }
.sg-zeile-kasse .sg-zeile-unten { grid-column: 2; grid-row: 1 / span 3; flex-direction: column; align-items: flex-end; justify-content: center; gap: 8px; margin: 0; }
.sg-zeile-kasse .sg-zeile-summe { font-size: var(--text-body-size); }
.sg-kasse-meldung { margin-bottom: 16px; font-size: var(--text-body-size); }
.sg-kasse-summen-box { padding: 28px 26px; border: 1px solid var(--border); background: var(--surface-card); }
.sg-kasse-summen { display: flex; flex-direction: column; gap: 8px; }
.sg-kasse-summen > div { display: flex; justify-content: space-between; gap: 12px; font-size: var(--text-small-size); color: var(--text-muted); }
.sg-kasse-summen > .sg-kasse-gesamt { margin-top: 6px; padding-top: 14px; border-top: 1px dashed var(--border); font-family: var(--font-display); font-size: var(--text-h5-size); font-weight: 700; color: var(--text-body); }
.sg-kasse-gesamt span:last-child { font-variant-numeric: tabular-nums; }
.sg-kasse-summen > .sg-kasse-mwst { justify-content: flex-end; font-size: var(--text-meta-size); letter-spacing: var(--text-meta-track); }
.sg-kasse-summen-box .sg-kasse-aktionen { flex-direction: column; align-items: stretch; gap: 16px; margin-top: 24px; }
.sg-kasse-summen-box .sg-kasse-aktionen .sg-knopf { width: 100%; text-align: center; }

.sg-kasse-aktionen { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 28px; }
.sg-zurueck { border: 0; background: none; padding: 0; font-family: var(--font-body); font-size: var(--text-small-size); color: var(--text-muted) !important; text-decoration: none; cursor: pointer; }
.sg-zurueck:hover { color: var(--text-body) !important; }

/* Auswahlzeilen (OptionRow): Lieferart, Kontowahl, Zahlart */
.sg-lieferarten { display: grid; gap: 10px; }
.sg-lieferart,
.sg-wahl,
.sg-kasse .wc_payment_method {
	border: 1px solid var(--border);
	background: var(--surface-card);
	transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.sg-lieferart,
.sg-wahl-zeile { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; cursor: pointer; }
.sg-wahl-zeile { margin: 0 !important; }
.sg-lieferart:hover,
.sg-wahl:hover,
.sg-kasse .wc_payment_method:hover { border-color: var(--border-strong); }
.sg-lieferart.ist-gewaehlt,
.sg-wahl.ist-gewaehlt,
.sg-kasse .wc_payment_method:has(> input:checked) { border-color: var(--rose); background: var(--rose-tint); box-shadow: inset 0 0 0 1px var(--rose); }
.sg-lieferart input,
.sg-wahl-zeile input,
.sg-kasse .wc_payment_method > input.input-radio {
	appearance: none;
	-webkit-appearance: none;
	display: grid;
	place-content: center;
	flex: none;
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	border: 1px solid var(--border);
	border-radius: var(--radius-round);
	background: var(--bg);
	cursor: pointer;
}
.sg-lieferart input::after,
.sg-wahl-zeile input::after,
.sg-kasse .wc_payment_method > input.input-radio::after {
	content: '';
	width: 10px;
	height: 10px;
	border-radius: var(--radius-round);
	background: var(--rose);
	transform: scale(0);
	transition: transform var(--dur-fast) var(--ease);
}
.sg-lieferart input:checked,
.sg-wahl-zeile input:checked,
.sg-kasse .wc_payment_method > input.input-radio:checked { border-color: var(--rose); }
.sg-lieferart input:checked::after,
.sg-wahl-zeile input:checked::after,
.sg-kasse .wc_payment_method > input.input-radio:checked::after { transform: scale(1); }
.sg-lieferart input:focus-visible,
.sg-wahl-zeile input:focus-visible,
.sg-kasse .wc_payment_method > input.input-radio:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.sg-lieferart-text,
.sg-wahl-text { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.sg-lieferart-name,
.sg-wahl-titel { font-family: var(--font-display); font-size: var(--text-h6-size); font-weight: 600; line-height: 1.3; color: var(--text-heading); }
.sg-lieferart-info,
.sg-wahl-info { font-size: var(--text-small-size); line-height: var(--text-small-lh); color: var(--text-muted); text-transform: none; letter-spacing: 0; font-weight: 400; }
.sg-lieferart-preis { font-size: var(--text-price-size); font-weight: 700; white-space: nowrap; color: var(--text-body); }
.sg-lieferart-preis.ist-kostenlos { color: var(--green); }
.sg-wahl-mehr { padding: 0 18px 18px 50px; }
.sg-wahl-hinweis { margin: 0; font-size: var(--text-small-size); line-height: var(--text-small-lh); color: var(--text-muted); }
.sg-login-aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 14px; }
.sg-login-meldung { margin-bottom: 14px; }
.sg-login-meldung .woocommerce-error { margin: 0 !important; padding: 12px 14px !important; border: 1px solid var(--line-rose) !important; background: var(--rose-tint-soft) !important; color: var(--text-body) !important; font-size: var(--text-small-size); list-style: none; }
.sg-login-meldung .woocommerce-error::before { display: none !important; }

/* Felder (Field): Beschriftung 12/600 über dem Feld, Pflichtfeld mit rose Stern */
.sg-adressfelder { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sg-adressfelder .form-row { width: auto !important; float: none !important; margin: 0 !important; padding: 0 !important; }
.sg-adressfelder .form-row-wide { grid-column: span 2; }
.sg-adressfelder .form-row label { display: block; margin: 0 0 6px; font-size: var(--text-caption-size); font-weight: var(--text-caption-weight); line-height: 1.4; color: var(--text-body); }
.sg-adressfelder .optional { display: none; }
.sg-adressfelder abbr.required,
.sg-adressfelder .required { color: var(--rose); text-decoration: none; border: 0; }
.sg-adressfelder .select2-container,
.sg-adressfelder select.country_to_state { width: 100% !important; }
.sg-adressfelder .woocommerce-input-wrapper { display: block; }
.sg-adressfelder .description { display: block; margin-top: 6px; font-size: var(--text-caption-size); line-height: var(--text-caption-lh); color: var(--text-muted); }
.sg-adressfelder input.input-text,
.sg-adressfelder select,
.sg-adressfelder .select2-container .select2-selection {
	width: 100%;
	height: auto;
	box-sizing: border-box;
	padding: 12px 14px !important;
	border: 1px solid var(--border) !important;
	border-radius: var(--radius-none) !important;
	background-color: var(--surface-card) !important;
	font-family: var(--font-body);
	font-size: var(--text-body-size) !important;
	line-height: 1.4;
	color: var(--text-body) !important; /* Divi färbt Felder sonst grau */
	transition: border-color var(--dur-fast) var(--ease);
}
.sg-adressfelder input.input-text:hover,
.sg-adressfelder select:hover { border-color: var(--border-strong) !important; }
.sg-adressfelder input.input-text:focus,
.sg-adressfelder select:focus { outline: 1px solid var(--focus-field); outline-offset: -1px; }
.sg-adressfelder select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%) !important; background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50% !important; background-size: 5px 5px !important; background-repeat: no-repeat !important; }
.sg-adressfelder strong { display: block; box-sizing: border-box; width: 100%; padding: 12px 14px; border: 1px solid var(--border); background: var(--surface-card); font-size: var(--text-body-size); font-weight: 400; }
.sg-adressfelder .sg-feld-fehler,
.sg-adressfelder .woocommerce-invalid input.input-text { border-color: var(--rose) !important; outline: 1px solid var(--rose); outline-offset: -1px; }

/* Checkboxen (Checkbox): 18 px, gewählt rose */
.sg-rechnung-schalter { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: var(--text-small-size); cursor: pointer; user-select: none; }
.sg-rechnung-schalter input,
.sg-kasse .wc-gzd-checkbox-placeholder input[type="checkbox"],
.sg-kasse .checkbox-legal input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--rose); }
.sg-rechnungsadresse h3 { margin: 24px 0 14px; }
.sg-adresse-fehler { margin-top: 12px; font-size: var(--text-caption-size); color: var(--text-body); }
.sg-adresse-fehler::before { content: '! '; color: var(--rose); font-weight: 700; }
.sg-mollie-hinweis { margin-top: 12px; font-size: var(--text-meta-size); color: var(--text-muted); }

/* Bestellübersicht rechts: ink, sticky */
.sg-kasse-uebersicht { position: sticky; top: calc(var(--header-height) + 24px); padding: 28px 26px; background: var(--ink); color: var(--bg); }
.admin-bar .sg-kasse-uebersicht { top: calc(var(--header-height) + 56px); }
.sg-uebersicht-titel { margin-bottom: 18px; font-family: var(--font-display); font-size: var(--text-h4-size); font-weight: var(--text-h4-weight); line-height: var(--text-h4-lh); color: var(--bg); }
.sg-uebersicht-zeile, .sg-uebersicht-posten, .sg-uebersicht-gesamt { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sg-uebersicht-zeile span:last-child, .sg-uebersicht-posten span:last-child, .sg-uebersicht-gesamt span:last-child { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sg-uebersicht-zeile { padding: 12px 0; border-bottom: 1px solid var(--line-on-dark); font-size: var(--text-small-size); line-height: 1.5; }
.sg-uebersicht-linie { display: none; }
.sg-uebersicht-posten { padding: 12px 0 0; font-size: var(--text-small-size); color: var(--on-dark-strong); }
.sg-uebersicht-posten span:last-child { font-weight: 400; }
.sg-uebersicht-gesamt { margin-top: 12px; padding-top: 14px; border-top: 1px dashed var(--line-on-dark); }
.sg-uebersicht-gesamt span:first-child { font-family: var(--font-display); font-size: var(--text-h5-size); font-weight: var(--text-h5-weight); }
.sg-uebersicht-mwst { margin-top: 4px; font-size: var(--text-meta-size); letter-spacing: var(--text-meta-track); color: var(--on-dark-strong); }
.sg-uebersicht-adresse { margin-top: 12px; font-size: var(--text-small-size); line-height: var(--text-small-lh); color: var(--on-dark-strong); }

/* Schritt 3: Zahlarten als Auswahlzeilen, WooCommerce-Tabelle versteckt (Übersicht steht rechts) */
.sg-kasse #order_review_heading,
.sg-kasse #order_payment_heading,
.sg-kasse .woocommerce-checkout-review-order-table { display: none !important; }
.sg-kasse #payment { background: none !important; }
.sg-kasse #payment ul.payment_methods { display: grid; gap: 10px; margin: 0 0 24px; padding: 0 !important; border: 0 !important; }
.sg-kasse .wc_payment_method { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px 18px !important; list-style: none; }
.sg-kasse .wc_payment_method > label { display: flex !important; flex: 1; align-items: center; gap: 14px; margin: 0 !important; font-family: var(--font-display); font-size: var(--text-h6-size); font-weight: 600; color: var(--text-heading); cursor: pointer; }
.sg-kasse .wc_payment_method > label img {
	order: -1;
	width: 42px !important;
	height: 30px !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 4px 6px;
	border: 1px solid var(--border);
	background: var(--bg);
	object-fit: contain;
	float: none !important;
}
.sg-kasse #payment div.payment_box { flex-basis: 100%; margin: 4px 0 0 !important; padding: 12px 0 0 32px !important; background: none !important; font-size: var(--text-small-size); color: var(--text-muted); }
.sg-kasse #payment div.payment_box::before { display: none; }
.sg-kasse #payment div.payment_box:empty { display: none; }
.sg-kasse .wc-gzd-checkbox-placeholder p, .sg-kasse .checkbox-legal { margin: 0 0 12px; font-size: var(--text-small-size); line-height: var(--text-small-lh); }
.sg-kasse .wc-gzd-order-submit { margin-top: 8px; }
/* Bestellknopf als Hauptknopf; Divi setzt sonst per Inline-CSS kleine Abstände mit !important. */
body.woocommerce-checkout .sg-kasse #place_order,
body.woocommerce-checkout .sg-kasse #place_order:hover {
	float: none;
	padding: 17px 32px !important;
	font-size: var(--button-size) !important;
	line-height: 1.2 !important;
}
body.woocommerce-checkout .sg-kasse #place_order::after { display: none !important; }
.sg-kasse .place-order.sg-kasse-aktionen { display: flex; justify-content: space-between; align-items: center; width: 100% !important; float: none !important; box-sizing: border-box; margin-top: 24px; padding: 0 !important; }
.sg-kasse .place-order.sg-kasse-aktionen noscript, .sg-kasse .place-order.sg-kasse-aktionen input[type=hidden] { display: none; }
.sg-kasse-aktionen-zahlung { margin-top: 16px; }

/* EU-Gewährleistungslabel unter der Übersicht (form-checkout.php), so breit wie die Spalte.
   Germanized hält das Bild sonst bei 250–350 px. */
.sg-kasse-rechts { position: sticky; top: calc(var(--header-height) + 24px); }
.sg-kasse-rechts .sg-kasse-uebersicht { position: static; }
.sg-kasse-rechts .wc-gzd-legal-guarantee { margin-top: 20px; }
.sg-kasse-rechts .wc-gzd-popover-wrapper .wc-gzd-popover-trigger img.wc-gzd-legal-guarantee-image-preview { display: block; width: 100%; min-width: 0; max-width: 100%; }

@media (max-width: 980px) {
	.sg-kasse-spalten { grid-template-columns: 1fr; gap: 28px; }
	.sg-kasse-uebersicht, .sg-kasse-rechts { position: static; }
	.sg-kasse-teil[data-teil="2"] .sg-kasse-uebersicht, .sg-kasse-rechts { order: -1; }
	.sg-kasse-rechts .wc-gzd-popover-wrapper .wc-gzd-popover-trigger img.wc-gzd-legal-guarantee-image-preview { max-width: 350px; }
}
@media (max-width: 560px) {
	.sg-schritt-name { display: none; }
	.sg-schritt.ist-aktiv .sg-schritt-name { display: inline; }
	.sg-schritte { margin-bottom: 28px; }
	.sg-adressfelder { grid-template-columns: 1fr; }
	.sg-adressfelder .form-row-wide { grid-column: auto; }
	.sg-wahl-mehr { padding-left: 18px; }
	.sg-kasse-aktionen { flex-direction: column-reverse; align-items: stretch; gap: 14px; }
	.sg-kasse-aktionen .sg-knopf, .sg-kasse #place_order { width: 100%; }
}

/* ---------- Bestellbestätigung (woocommerce/checkout/thankyou.php) ---------- */

.woocommerce-order-received .woocommerce-notices-wrapper:empty { display: none; }
.sg-bestaetigung {
	max-width: 560px;
	margin: 0 auto;
	padding: 80px 0;
	text-align: center;
}
.sg-bestaetigung h1 {
	font-family: var(--sg-font-display);
	font-weight: 800;
	font-size: var(--text-h1-size);
	margin: 0 0 14px;
	padding: 0;
}
.sg-bestaetigung p {
	font-size: var(--text-body-size);
	line-height: 1.8;
	color: var(--muted-strong);
	margin: 0 0 8px;
	padding: 0;
}
.sg-bestaetigung p.sg-leise { margin-bottom: 20px; }
.sg-bestaetigung-stand.ist-fehler h1 { color: var(--sg-rose); }
.sg-bestaetigung-haken {
	width: 64px;
	height: 64px;
	border-radius: var(--radius-round);
	background: var(--sg-green);
	color: var(--bg);
	font-size: var(--text-h2-size);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 28px;
}
.sg-bestaetigung-zahlung { text-align: left; margin: 0 0 20px; font-size: var(--text-body-size); }
.sg-bestaetigung-zahlung h2 { font-size: var(--text-h5-size); margin: 18px 0 8px; }
.sg-bestaetigung-zahlung ul { list-style: none; padding: 0; margin: 0; }
.sg-bestaetigung-versand {
	margin: 22px auto 0;
	max-width: 420px;
	padding: 16px 18px;
	border: 1px solid var(--line);
	background: var(--rose-tint);
	text-align: left;
}
.sg-bestaetigung-versand-titel {
	font-size: var(--text-eyebrow-size);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sg-muted);
}
.sg-bestaetigung-versand-stand {
	font-family: var(--sg-font-display);
	font-weight: 800;
	font-size: var(--text-h5-size);
	margin-top: 3px;
}
.sg-bestaetigung-versand p { font-size: var(--text-small-size); color: var(--sg-muted); line-height: 1.6; margin: 8px 0 0; }
.sg-bestaetigung-versand .sg-pfeil-link { display: inline-block; margin-top: 10px; }
/* Weiterführung als Textlink mit Pfeil (design-system ArrowLink) */
.sg-pfeil-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: var(--button-size-outline);
	text-transform: uppercase;
	letter-spacing: var(--button-track);
	text-decoration: none;
	color: var(--text-link);
	transition: color var(--dur-fast) var(--ease);
}
.sg-pfeil-link::after { content: '→'; transition: transform var(--dur-fast) var(--ease); }
.sg-pfeil-link:hover { color: var(--text-link); }
.sg-pfeil-link:hover::after { transform: translateX(4px); }
.sg-bestaetigung-box {
	background: var(--sg-bg);
	border: 1px solid var(--line);
	padding: 24px;
	margin: 32px 0;
	text-align: left;
}
.sg-bestaetigung-zeile {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	font-size: var(--text-small-size);
	margin-bottom: 10px;
	color: var(--sg-muted);
}
.sg-bestaetigung-trenner { height: 1px; background: var(--line); margin: 14px 0; }
.sg-bestaetigung-gesamt { display: flex; justify-content: space-between; font-size: var(--text-h5-size); }
.sg-bestaetigung-gesamt span:first-child { font-weight: 700; }
.sg-bestaetigung-gesamt span:last-child { font-weight: 800; color: var(--sg-rose); }
.sg-bestaetigung-mwst { font-size: var(--text-eyebrow-size); color: var(--sg-muted); margin-top: 6px; text-align: right; }
.sg-bestaetigung-abholung {
	font-size: var(--text-small-size);
	color: var(--sg-muted);
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--line);
}
.sg-bestaetigung-adressen {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 20px;
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid var(--line);
	font-size: var(--text-small-size);
	color: var(--sg-muted);
	line-height: 1.7;
}
.sg-bestaetigung-adresse-titel {
	font-family: var(--sg-font-display);
	font-weight: 700;
	font-size: var(--text-small-size);
	color: var(--sg-ink);
	margin-bottom: 6px;
}
.sg-bestaetigung-aktionen { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
/* Zweitknopf im Look des Hauptknopfs, nur ohne Füllung. */
.sg-knopf-rahmen {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	background: transparent;
	color: var(--action-secondary-fg);
	border: 1px solid var(--action-secondary-border);
	padding: 0 22px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: var(--button-size-outline);
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: var(--button-track);
	transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
/* Hover invertiert, Klick versetzt (Button outline) */
.sg-knopf-rahmen:hover { color: var(--bg-page); background: var(--border-strong); border-color: var(--border-strong); }
.sg-knopf-rahmen:active { transform: translate(-2px, 2px); }
.sg-knopf-rahmen:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.sg-knopf-rahmen.sg-knopf-klein { min-height: 38px; padding: 0 16px; font-size: var(--button-size-sm); }
.sg-status-pruefen {
	display: block;
	margin: 18px auto 8px;
	border: 0;
	background: none;
	padding: 0;
	font-family: var(--sg-font-body);
	font-size: var(--text-body-size);
	color: var(--sg-muted-light);
	text-decoration: underline;
	cursor: pointer;
}
@media (max-width: 600px) {
	.sg-bestaetigung { padding: 48px 0; }
}

/* ---------- Karten-Platzhalter (Zwei-Klick-Lösung) ---------- */

.consent-frame {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 28px 32px;
	text-align: center;
	background: var(--ink);
}
.consent-frame-text { font-size: var(--text-small-size); line-height: 1.7; color: var(--on-dark-strong); max-width: 380px; margin: 0; padding: 0; }
.consent-frame-text strong { color: var(--bg); }
.consent-frame-load {
	background: var(--sg-teal);
	color: var(--sg-ink);
	border: none;
	min-height: 44px;
	padding: 12px 28px;
	font-family: var(--sg-font-display);
	font-weight: 700;
	font-size: var(--text-small-size);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	cursor: pointer;
	box-shadow: var(--shadow-offset);
}
.consent-frame-note { font-size: var(--text-eyebrow-size); line-height: 1.6; color: var(--on-dark-strong); max-width: 380px; }
.consent-frame-settings {
	background: none;
	border: none;
	padding: 0;
	font-family: inherit;
	font-size: inherit;
	color: var(--sg-teal);
	text-decoration: underline;
	cursor: pointer;
}
.consent-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Video-Platzhalter in Beiträgen (inc/cookies.php: sg_youtube_platzhalter) */
.sg-video-einwilligung { position: relative; aspect-ratio: 16 / 9; margin: var(--space-40) 0; background: var(--ink); }
.sg-beitrag-text .sg-video-einwilligung iframe { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; aspect-ratio: auto; }
.sg-beitrag-text .consent-frame-text { margin: 0; padding: 0; color: var(--on-dark-strong); font-size: var(--text-small-size); }
@media (max-width: 600px) {
	.sg-video-einwilligung { aspect-ratio: auto; min-height: 320px; }
	.sg-video-einwilligung .consent-frame { padding: 20px; }
	.sg-video-einwilligung:has(iframe) { aspect-ratio: 16 / 9; min-height: 0; }
}

/* Datenschutzerklärung: Kasten „Cookie-Einstellungen“ */
.sg-consent-kasten {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	margin: 0 0 40px;
	padding: 22px 24px;
	background: var(--sg-ink);
	color: var(--bg);
}
.sg-consent-kasten-titel { font-family: var(--sg-font-display); font-weight: 700; font-size: var(--text-h5-size); margin-bottom: 6px; color: var(--bg); }
.sg-consent-kasten p { font-size: var(--text-small-size); line-height: 1.7; color: var(--on-dark-strong); margin: 0; padding: 0; max-width: 400px; }

/* ---------- Cookie-Banner und Cookie-Manager (inc/cookies.php) ---------- */

.cc-overlay[hidden], .cc-dialog[hidden], .cc-view[hidden] { display: none !important; }
.cc-overlay { position: fixed; inset: 0; background: var(--overlay); z-index: 100010; }
.cc-dialog {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	width: min(600px, calc(100vw - 32px));
	max-height: min(85vh, 85dvh);
	overflow-y: auto;
	background: var(--sg-bg);
	color: var(--sg-ink);
	z-index: 100020;
	padding: 30px 32px 26px;
	box-sizing: border-box;
	box-shadow: var(--shadow-float);
	border-top: 4px solid var(--sg-teal);
	text-align: left;
}
.cc-title { font-family: var(--sg-font-display); font-weight: 800; font-size: var(--text-h4-size); margin: 0 0 12px; padding: 0; color: var(--sg-ink); }
.cc-text { font-size: var(--text-small-size); line-height: 1.75; color: var(--muted-strong); margin: 0 0 14px; padding: 0; }
.cc-links { display: flex; gap: 22px; margin: 0 0 18px; padding: 0; }
.cc-links a { font-size: var(--text-small-size); color: var(--sg-rose); font-weight: 600; border-bottom: 1px solid var(--line-rose); padding-bottom: 1px; }
/* Beide Hauptknöpfe identisch (gleiche Prominenz, TDDDG) */
.cc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cc-actions-3 { grid-template-columns: 1fr 1fr 1fr; margin-bottom: 16px; }
.cc-btn {
	background: var(--sg-ink);
	color: var(--bg);
	border: none;
	min-height: 48px;
	padding: 12px 10px;
	font-family: var(--sg-font-display);
	font-weight: 700;
	font-size: var(--text-small-size);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	cursor: pointer;
	box-shadow: var(--shadow-offset);
}
.cc-btn:hover { background: #3a3740; }
.cc-btn:focus-visible, .cc-settings-link:focus-visible { outline: 2px solid var(--sg-teal); outline-offset: 2px; }
.cc-settings-link {
	display: block;
	margin: 14px auto 0;
	background: none;
	border: none;
	font-family: var(--sg-font-body);
	font-size: var(--text-small-size);
	font-weight: 600;
	color: var(--muted-strong);
	text-decoration: underline;
	cursor: pointer;
	min-height: 44px;
}
.cc-cats { margin: 4px 0 20px; }
.cc-cat { border-top: 1px dashed var(--line); padding: 16px 0; }
.cc-cat-head { display: flex; gap: 14px; align-items: flex-start; }
.cc-cat-info { flex: 1; }
.cc-cat-name {
	font-family: var(--sg-font-display);
	font-weight: 700;
	font-size: var(--text-body-size);
	margin-bottom: 4px;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.cc-cat-badge {
	font-family: var(--sg-font-body);
	font-size: var(--text-badge-size);
	font-weight: 700;
	color: var(--sg-green);
	background: var(--green-tint);
	border: 1px solid var(--line-green);
	padding: 2px 8px;
}
.cc-cat-desc { font-size: var(--text-eyebrow-size); line-height: 1.65; color: var(--sg-muted); margin: 0; padding: 0; }
.cc-note { font-size: var(--text-eyebrow-size); color: var(--sg-muted-light); margin: 10px 0 0; padding: 0; }
.cc-switch { position: relative; flex: none; width: 44px; height: 24px; margin-top: 1px; }
.cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.cc-switch input:disabled { cursor: not-allowed; }
.cc-slider { position: absolute; inset: 0; background: var(--line); border-radius: var(--radius-md); transition: background 0.2s; pointer-events: none; }
.cc-slider::before {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: var(--radius-sm);
	background: var(--bg);
	transition: transform 0.2s;
	box-shadow: var(--shadow-soft);
}
.cc-switch input:checked + .cc-slider { background: var(--sg-teal); }
.cc-switch input:checked + .cc-slider::before { transform: translateX(20px); }
.cc-switch input:focus-visible + .cc-slider { outline: 2px solid var(--sg-teal); outline-offset: 2px; }
.cc-details { margin-top: 10px; }
.cc-details summary { font-size: var(--text-eyebrow-size); font-weight: 600; color: var(--sg-rose); cursor: pointer; width: fit-content; }
.cc-table-wrap { overflow-x: auto; margin-top: 10px; }
.cc-table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: var(--text-eyebrow-size); border: 0; margin: 0; }
.cc-table th, .cc-table td {
	text-align: left;
	padding: 6px 10px 6px 0;
	border: 0;
	border-bottom: 1px solid var(--line);
	vertical-align: top;
	line-height: 1.5;
}
.cc-table th {
	font-family: var(--sg-font-display);
	font-size: var(--text-eyebrow-size);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--sg-muted-light);
}
@media (max-width: 560px) {
	.cc-dialog { bottom: 0; width: 100vw; max-height: 92dvh; padding: 24px 18px 20px; }
	.cc-actions, .cc-actions-3 { grid-template-columns: 1fr; }
}
.sg-versand-bild { display: block; width: 100%; height: auto; margin: 8px 0 24px; border-radius: var(--radius-none); }
.sg-ueber-seite-bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sg-qualitaet-bild { display: block; width: 100%; max-height: 360px; object-fit: cover; margin: 8px 0 24px; border-radius: var(--radius-none); }
.sg-anfahrt h2.sg-anfahrt-titel { margin: 0 0 10px; padding: 0; font-size: var(--text-h4-size); font-weight: 800; letter-spacing: -0.01em; }
/* Zwischenüberschrift im Stil der Eyebrow (Über uns), damit die Seite eine H2 hat. */
h2.sg-eyebrow { margin: 0 0 14px; padding: 0; line-height: 1.4; }
.sg-anfahrt .sg-versand-bild { max-height: 260px; object-fit: cover; }

/* ==========================================================================
   Mein Konto (Spec kundenkonto-abholung, Aufgaben 5–7)
   ========================================================================== */

/* Raster nach design-system ui_kits/shop/AccountScreen: Navigation 240 px links */
.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}
.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
/* Clearfix-Pseudoelemente von WooCommerce wären sonst eigene Rasterzellen. */
.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation)::before,
.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation)::after { display: none; }
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content { float: none !important; width: auto !important; }
.woocommerce-account #main-content .container { padding-bottom: var(--page-end); }

/* Navigation (AccountNav): Zeilen mit Linie, aktiv = ink-Fläche, Abmelden gedämpft */
.woocommerce-MyAccount-navigation ul { list-style: none !important; margin: 0 !important; padding: 0 !important; border-top: 1px solid var(--border); }
.woocommerce-MyAccount-navigation li { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--border); }
.woocommerce-MyAccount-navigation li::before { display: none; }
.woocommerce-MyAccount-navigation li a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 16px;
	font-size: var(--text-body-size);
	font-weight: 500;
	color: var(--text-body);
	text-decoration: none;
	transition: background var(--dur-fast) var(--ease);
}
.woocommerce-MyAccount-navigation li a:hover { background: var(--rose-tint); color: var(--text-body); }
.woocommerce-MyAccount-navigation li.is-active a { background: var(--ink); color: var(--bg); font-weight: 700; }
.woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--text-muted) !important; }
.woocommerce-MyAccount-navigation-link--customer-logout a::after {
	content: '';
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: 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.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: 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.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Felder (Field): Beschriftung 12/600, Feld eckig mit Linie, Hover ink, Fokus 1 px rose innen */
.woocommerce-account .form-row { margin: 0 0 16px !important; padding: 0 !important; }
.woocommerce-account .form-row label,
.woocommerce-account fieldset legend {
	display: block;
	margin-bottom: 6px;
	font-size: var(--text-caption-size) !important;
	font-weight: var(--text-caption-weight) !important;
	letter-spacing: 0;
	text-transform: none;
	color: var(--text-body) !important;
}
.woocommerce-account .form-row .required { color: var(--rose); text-decoration: none; }
.woocommerce-account .form-row input.input-text,
.woocommerce-account .form-row select,
.woocommerce-account .select2-container .select2-selection {
	width: 100%;
	box-sizing: border-box;
	height: auto;
	padding: 12px 14px !important;
	border: 1px solid var(--border) !important;
	border-radius: var(--radius-none) !important;
	background-color: var(--surface-card) !important;
	font-family: var(--font-body);
	font-size: var(--text-body-size) !important;
	line-height: 1.4;
	color: var(--text-body) !important;
	transition: border-color var(--dur-fast) var(--ease);
}
.woocommerce-account .form-row input.input-text:hover,
.woocommerce-account .form-row select:hover { border-color: var(--border-strong) !important; }
.woocommerce-account .form-row input.input-text:focus,
.woocommerce-account .form-row select:focus { outline: 1px solid var(--focus-field); outline-offset: -1px; }
.woocommerce-account .woocommerce-form-row--first,
.woocommerce-account .woocommerce-form-row--last { width: calc(50% - 8px) !important; }
.woocommerce-account em,
.woocommerce-account .form-row .description { display: block; margin-top: 6px; font-size: var(--text-caption-size); line-height: var(--text-caption-lh); font-style: normal; color: var(--text-muted); }
.woocommerce-account fieldset { margin: 28px 0 8px; padding: 22px 20px; border: 1px solid var(--border); background: var(--surface-card); }
.woocommerce-account .sg-knopf,
.woocommerce-account .sg-knopf-rahmen { cursor: pointer; }
/* Speichern-Knöpfe der WooCommerce-Formulare als Hauptknopf (Button primary).
   Divi setzt sonst per Inline-CSS mit !important kleine Abstände. */
body.woocommerce-account .woocommerce form button.button[type="submit"] {
	padding: 17px 32px !important;
	margin-top: 8px;
	background: var(--action-primary-bg) !important;
	color: var(--action-primary-fg) !important;
	border: 0 !important;
	border-radius: var(--radius-none) !important;
	box-shadow: var(--shadow-offset);
	font-family: var(--font-display) !important;
	font-size: var(--button-size) !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	letter-spacing: var(--button-track);
	text-transform: uppercase;
	cursor: pointer;
	transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
body.woocommerce-account .woocommerce form button.button[type="submit"]:hover {
	padding: 17px 32px !important;
	transform: none;
	box-shadow: var(--shadow-offset);
}
body.woocommerce-account .woocommerce form button.button[type="submit"]:focus-visible {
	background: var(--action-primary-focus-bg) !important;
	color: var(--action-primary-focus-fg) !important;
	outline: none;
}
body.woocommerce-account .woocommerce form button.button[type="submit"]::after { display: none !important; }

/* Checkbox (Checkbox): 18 px, gewählt rose */
.sg-konto-haken { display: inline-flex !important; align-items: center; gap: 10px; margin: 0 !important; font-size: var(--text-small-size) !important; font-weight: 400 !important; color: var(--text-body) !important; cursor: pointer; }
.sg-konto-haken input { width: 18px; height: 18px; margin: 0; accent-color: var(--rose); }

/* Nicht angemeldet (AccountAuth): zwei Karten, je H3 */
.sg-konto-zugang { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 980px; }
.sg-konto-zugang.ist-einspaltig { grid-template-columns: minmax(0, 480px); }
.sg-konto-karte { padding: 28px 26px; border: 1px solid var(--border); background: var(--surface-card); }
.sg-konto-karte h3 { margin: 0 0 16px; padding: 0; }
.sg-konto-karte form { margin: 0 !important; padding: 0 !important; border: 0 !important; }
.sg-konto-vorteile,
.sg-konto-hinweis-text { margin: 0 0 16px; font-size: var(--text-small-size); line-height: var(--text-small-lh); color: var(--text-muted); }
.sg-konto-aktion { margin: 8px 0 0; padding: 0; }
.sg-konto-aktion + .sg-konto-aktion { margin-top: 20px; }

/* Passwort vergessen / neu setzen (PasswordReset): eine Karte, max. 520 px */
.woocommerce-account form.lost_reset_password { max-width: 520px; padding: 28px 26px !important; border: 1px solid var(--border) !important; border-radius: var(--radius-none) !important; background: var(--surface-card); }
.woocommerce-account form.lost_reset_password > p:first-child { font-size: var(--text-small-size); line-height: var(--text-small-lh); color: var(--text-muted); }
.woocommerce-account form.lost_reset_password .form-row { width: 100% !important; float: none !important; }

/* Hinweise (Notice): Kreis mit Zeichen, Fläche je nach Art */
.woocommerce-account .woocommerce-info,
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-error {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr) auto;
	align-items: start;
	gap: 0 14px;
	margin: 0 0 24px !important;
	padding: 16px 18px !important;
	border: 1px solid var(--border) !important;
	background: var(--surface-card) !important;
	color: var(--text-body) !important;
	font-size: var(--text-body-size) !important;
	line-height: 1.55;
	list-style: none;
}
.woocommerce-account .woocommerce-message { border-color: var(--line-green) !important; background: var(--green-tint) !important; }
.woocommerce-account .woocommerce-error { border-color: var(--line-rose) !important; background: var(--rose-tint-soft) !important; }
.woocommerce-account .woocommerce-info::before,
.woocommerce-account .woocommerce-message::before,
.woocommerce-account .woocommerce-error::before {
	content: 'i';
	position: static;
	flex: none;
	display: grid !important; /* Divi blendet das Zeichen sonst per Inline-CSS aus */
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: var(--radius-round);
	background: var(--ink);
	color: var(--bg);
	font-family: var(--font-display);
	font-size: var(--text-small-size);
	font-weight: 700;
}
.woocommerce-account .woocommerce-message::before { content: '✓'; background: var(--green); }
.woocommerce-account .woocommerce-error::before { content: '!'; background: var(--rose); }
.woocommerce-account .woocommerce-info > div { padding-top: 4px; }
.woocommerce-account .woocommerce-error { grid-template-columns: 28px minmax(0, 1fr); }
.woocommerce-account .woocommerce-error li { grid-column: 2; padding-top: 4px; }
.woocommerce-account .woocommerce-info .button,
.woocommerce-account .woocommerce-message .button { grid-column: 3; grid-row: 1; align-self: center; }
.sg-hinweis-titel { display: block; margin-bottom: 2px; font-family: var(--font-display); font-size: var(--text-h6-size); }

/* Übersicht: Gruß, Infokarten (InfoCard), letzte Bestellungen */
.sg-konto-uebersicht { display: grid; gap: 28px; }
.sg-konto-uebersicht .woocommerce-info { margin: 0 !important; }
.sg-konto-uebersicht h4 { margin: 0 0 14px; padding: 0; }
.sg-konto-kacheln { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sg-konto-kachel {
	display: flex;
	flex-direction: column;
	padding: 22px 20px;
	border: 1px solid var(--border);
	background: var(--surface-card);
	font-size: var(--text-small-size);
	line-height: 1.6;
	color: var(--text-muted) !important;
	text-decoration: none;
	transition: border-color var(--dur-fast) var(--ease);
}
.sg-konto-kachel:hover { border-color: var(--border-strong); }
.sg-konto-punkt { width: 10px; height: 10px; margin-bottom: 14px; border-radius: var(--radius-round); }
.sg-konto-kachel-titel { margin-bottom: 8px; font-family: var(--font-display); font-size: var(--text-h6-size); font-weight: var(--text-h6-weight); color: var(--text-heading); }

/* Status-Plakette (OrderStatus): Wort + Füllart, nie nur Farbe */
.sg-konto-status {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border: 1px solid transparent;
	white-space: nowrap;
	font-family: var(--font-body);
	font-size: var(--text-badge-size) !important;
	font-weight: var(--text-badge-weight);
	letter-spacing: var(--text-badge-track);
	line-height: var(--text-badge-lh);
	background: transparent;
	color: var(--text-body) !important;
	border-color: var(--border);
}
.sg-konto-status.status-processing { background: var(--blush); border-color: transparent; color: var(--ink) !important; }
.sg-konto-status.status-abholbereit { background: var(--yellow); border-color: transparent; color: var(--ink) !important; }
.sg-konto-status.status-completed { background: var(--green); border-color: transparent; color: var(--bg) !important; }
.sg-konto-status.status-cancelled,
.sg-konto-status.status-refunded { color: var(--text-muted) !important; }
.sg-konto-status.status-failed { background: var(--rose-tint-soft); border-color: var(--line-rose); }
.sg-konto-status.status-pending,
.sg-konto-status.status-on-hold { border: 1px dashed var(--border-strong); }

/* Bestelltabellen: ohne Außenrahmen, Kopf als Eyebrow, Zeilen mit Linie */
.woocommerce-account table.shop_table { width: 100%; border: 0 !important; border-radius: 0 !important; border-collapse: collapse !important; font-size: var(--text-body-size); }
.woocommerce-account table.shop_table th,
.woocommerce-account table.shop_table td { border: 0 !important; border-bottom: 1px solid var(--border) !important; background: none !important; }
.woocommerce-account table.shop_table thead th {
	padding: 0 12px 10px !important;
	font-family: var(--font-body);
	font-size: var(--text-eyebrow-size);
	font-weight: var(--text-eyebrow-weight);
	letter-spacing: var(--text-eyebrow-track);
	text-transform: uppercase;
	color: var(--text-muted);
	text-align: left;
}
.woocommerce-account table.shop_table tbody th,
.woocommerce-account table.shop_table tbody td,
.woocommerce-account table.shop_table tfoot th,
.woocommerce-account table.shop_table tfoot td { padding: 16px 12px !important; vertical-align: middle; }
.woocommerce-account table.shop_table .woocommerce-orders-table__cell-order-number,
.woocommerce-account table.shop_table .woocommerce-orders-table__cell-order-number a { font-weight: 700; color: var(--text-body); text-decoration: none; }
.woocommerce-account table.shop_table .woocommerce-Price-amount { font-variant-numeric: tabular-nums; }
.woocommerce-account .woocommerce-orders-table__cell-order-actions { text-align: right; }
.woocommerce-account table.shop_table td a:not(.button) { color: var(--text-link); }
.woocommerce-account .woocommerce-orders-table__cell-order-date,
.woocommerce-account .woocommerce-orders-table__cell-order-status { white-space: nowrap; }

/* Nebenaktionen als kleiner Rahmenknopf (Button outline sm) */
.woocommerce-account .woocommerce-info .button,
.woocommerce-account .woocommerce-message .button,
.woocommerce-account table.shop_table .button,
.woocommerce-account .order-again .button,
.woocommerce-account .woocommerce-pagination .button {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 0 16px !important;
	margin: 3px 0 3px 6px;
	background: transparent !important;
	color: var(--action-secondary-fg) !important;
	border: 1px solid var(--action-secondary-border) !important;
	box-shadow: none !important;
	font-size: var(--button-size-sm) !important;
	white-space: nowrap;
	transform: none;
}
.woocommerce-account .woocommerce-info .button:hover,
.woocommerce-account .woocommerce-message .button:hover,
.woocommerce-account table.shop_table .button:hover,
.woocommerce-account .order-again .button:hover,
.woocommerce-account .woocommerce-pagination .button:hover {
	background: var(--border-strong) !important;
	color: var(--bg-page) !important;
	padding: 0 16px !important;
	transform: none;
}

/* Bestelldetails (OrderDetail): Kopf aus H3, Plakette und Datum */
.woocommerce-account .woocommerce-MyAccount-content > p:first-child { margin: 0 0 28px; font-size: var(--text-body-size); line-height: 1.7; }
.sg-bestellung-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.sg-bestellung-nr { font-family: var(--font-display); font-size: var(--text-h3-size); line-height: var(--text-h3-lh); font-weight: var(--text-h3-weight); color: var(--text-heading); }
.sg-bestellung-datum { font-size: var(--text-meta-size); letter-spacing: var(--text-meta-track); color: var(--text-muted); }
.woocommerce-account .woocommerce-order-details__title,
.woocommerce-account .woocommerce-column__title,
.woocommerce-account .woocommerce-MyAccount-content h2 { margin: 32px 0 14px; padding: 0; font-size: var(--text-h4-size); font-weight: var(--text-h4-weight); }
.woocommerce-account .woocommerce-customer-details .woocommerce-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.woocommerce-account .woocommerce-customer-details .woocommerce-columns::before,
.woocommerce-account .woocommerce-customer-details .woocommerce-columns::after { display: none; }
.woocommerce-account .woocommerce-customer-details .woocommerce-column { float: none !important; width: auto !important; padding: 22px 20px; border: 1px solid var(--border); }
.woocommerce-account .woocommerce-customer-details .woocommerce-column__title { margin: 0 0 10px; font-size: var(--text-h5-size); }
.woocommerce-account .woocommerce-customer-details address { padding: 0; border: 0 !important; font-size: var(--text-small-size); line-height: var(--text-small-lh); font-style: normal; color: var(--text-muted); }

/* Adressen (AddressCard): H5, Adresse 12 px gedämpft, „Bearbeiten →“ darunter */
.woocommerce-account .woocommerce-Addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.woocommerce-account .woocommerce-Addresses::before,
.woocommerce-account .woocommerce-Addresses::after { display: none; }
.woocommerce-account .woocommerce-Address { display: flex; flex-direction: column; gap: 10px; float: none !important; width: auto !important; padding: 22px 20px; border: 1px solid var(--border); }
.woocommerce-account .woocommerce-Address-title { display: contents; }
.woocommerce-account .woocommerce-Address-title::before,
.woocommerce-account .woocommerce-Address-title::after { display: none; }
.woocommerce-account .woocommerce-Address-title h2 { order: 1; margin: 0; font-size: var(--text-h5-size); font-weight: var(--text-h5-weight); }
.woocommerce-account .woocommerce-Address address { order: 2; margin: 0; font-size: var(--text-small-size); font-style: normal; line-height: var(--text-small-lh); color: var(--text-muted); }
.woocommerce-account .woocommerce-Address-title a {
	order: 3;
	float: none !important;
	display: inline-flex;
	gap: 8px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: var(--button-size-outline);
	text-transform: uppercase;
	letter-spacing: var(--button-track);
	color: var(--text-link);
	text-decoration: none;
}
.woocommerce-account .woocommerce-Address-title a::after { content: '→'; transition: transform var(--dur-fast) var(--ease); }
.woocommerce-account .woocommerce-Address-title a:hover { color: var(--text-link); }
.woocommerce-account .woocommerce-Address-title a:hover::after { transform: translateX(4px); }

/* Adress- und Kontodaten-Formular: zweispaltig, max. 640 px */
.woocommerce-account .woocommerce-address-fields,
.woocommerce-account .woocommerce-EditAccountForm { max-width: 640px; }
.woocommerce-account .woocommerce-address-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.woocommerce-account .woocommerce-address-fields__field-wrapper .form-row { width: auto !important; float: none !important; }
.woocommerce-account .woocommerce-address-fields__field-wrapper .form-row-wide { grid-column: 1 / -1; }
.woocommerce-account .woocommerce-address-fields .optional { font-weight: 400; }

/* Konto löschen: Nebenaktion unter den Kontodaten, durch Linie abgesetzt */
.sg-konto-loeschen { max-width: 640px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--border); }
.sg-konto-loeschen h4 { margin: 0 0 8px; padding: 0; }
.sg-konto-loeschen p { margin: 0 0 16px; max-width: var(--text-max); font-size: var(--text-small-size); line-height: var(--text-small-lh); color: var(--text-muted); }

/* Handy: Reiterleiste mit rose-Pill, alles einspaltig */
@media (max-width: 860px) {
	.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.woocommerce-account .woocommerce-MyAccount-navigation { min-width: 0; }
	.woocommerce-MyAccount-navigation ul { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px !important; border: 0; }
	.woocommerce-MyAccount-navigation li { flex: none; border: 0; }
	.woocommerce-MyAccount-navigation li a {
		padding: 8px 14px;
		border: 1px solid var(--border);
		font-size: var(--text-caption-size);
		font-weight: 700;
		text-transform: uppercase;
		white-space: nowrap;
	}
	.woocommerce-MyAccount-navigation li a:hover { background: transparent; }
	.woocommerce-MyAccount-navigation li.is-active a { background: var(--rose); border-color: var(--rose); color: var(--bg); }
	.woocommerce-MyAccount-navigation-link--customer-logout a::after { display: none; }
	.sg-konto-kacheln,
	.woocommerce-account .woocommerce-Addresses,
	.woocommerce-account .woocommerce-address-fields__field-wrapper { grid-template-columns: 1fr; }
	/* WooCommerce blendet die Bestellnummer (eine th-Zelle) in der Handy-Tabelle aus. */
	.woocommerce-account table.shop_table_responsive tbody th.woocommerce-orders-table__cell-order-number { display: block; padding: 14px 12px !important; font-family: var(--font-display); font-size: var(--text-h5-size); }
	.woocommerce-account table.shop_table_responsive tbody td { text-align: right; }
	.woocommerce-account .woocommerce-form-row--first,
	.woocommerce-account .woocommerce-form-row--last { width: 100% !important; }
	.woocommerce-account .woocommerce-info,
	.woocommerce-account .woocommerce-message { grid-template-columns: 28px minmax(0, 1fr); }
	.woocommerce-account .woocommerce-info .button,
	.woocommerce-account .woocommerce-message .button { grid-column: 2; grid-row: 2; justify-self: start; margin: 12px 0 0; }
}

/* ---------- Beitragsseite (single.php, Nähwerkstatt-Beiträge) ----------
   Kopfband wie Nähwerkstatt (ink, Naht in --section-blog), Titelbild 3:2,
   Lesetext auf --text-max, Bilder/Videos bis 760 px (einspaltig wie Rechtliches). */
.sg-beitrag-seite { --naht: var(--section-blog); }
.sg-beitrag-kopf {
	position: relative;
	background: var(--ink);
	padding: var(--space-72) 0 var(--space-64);
}
.sg-beitrag-kopf::after {
	content: '';
	position: absolute;
	left: 0; right: 0; bottom: -2px;
	height: 4px;
	background: repeating-linear-gradient(90deg, var(--naht) 0 11px, transparent 11px 20px);
}
.sg-beitrag-kopf-innen {
	max-width: var(--content-max);
	margin: 0 auto;
	padding: 0 var(--pad);
	box-sizing: border-box;
}
.sg-beitrag-zurueck {
	display: inline-block;
	margin-bottom: var(--space-32);
	font-size: var(--text-meta-size);
	letter-spacing: var(--text-meta-track);
	color: var(--on-dark-strong) !important;
	text-decoration: none;
	transition: color var(--dur-fast) var(--ease);
}
.sg-beitrag-zurueck:hover { color: var(--bg) !important; }
.sg-beitrag-kopf .sg-eyebrow { color: var(--teal); }
.sg-beitrag-kopf .sg-eyebrow::before { display: none; }
.sg-beitrag-kopf h1 {
	max-width: 860px;
	margin: 0;
	padding: 0;
	font-size: var(--text-h1-size);
	line-height: var(--text-h1-lh);
	font-weight: var(--text-h1-weight);
	letter-spacing: var(--text-h1-track);
	color: var(--bg);
}
.sg-beitrag-meta {
	margin-top: var(--space-20);
	font-size: var(--text-meta-size);
	letter-spacing: var(--text-meta-track);
	color: var(--on-dark-strong);
}

.sg-beitrag {
	max-width: calc(760px + 2 * var(--pad));
	margin: 0 auto;
	padding: var(--space-56) var(--pad) 0;
	box-sizing: border-box;
}
.sg-beitrag-titelbild { margin: 0 0 var(--space-56); }
.sg-beitrag-titelbild img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	height: auto;
	object-fit: cover;
	box-shadow: var(--shadow-soft);
}

/* Lesetext: Absätze, Listen und Überschriften auf Zeilenlänge, Bilder breiter */
.sg-beitrag-text { color: var(--text-body); font-size: var(--text-body-size); line-height: var(--text-body-lh); }
.sg-beitrag-text > *,
.sg-beitrag-text .et_pb_text_inner > * { max-width: var(--text-max); margin-left: auto; margin-right: auto; }
.sg-beitrag-text p { margin-top: 0; margin-bottom: var(--space-20); padding: 0; }
.sg-beitrag-text h1,
.sg-beitrag-text h2,
.sg-beitrag-text h3,
.sg-beitrag-text h4 { padding: 0; color: var(--text-heading); }
.sg-beitrag-text h1,
.sg-beitrag-text h2 {
	margin-top: var(--space-56);
	margin-bottom: var(--space-16);
	font-size: var(--text-h3-size);
	line-height: var(--text-h3-lh);
	font-weight: var(--text-h3-weight);
	letter-spacing: 0;
}
.sg-beitrag-text h3 {
	margin-top: var(--space-40);
	margin-bottom: var(--space-12);
	font-size: var(--text-h4-size);
	line-height: var(--text-h4-lh);
	font-weight: var(--text-h4-weight);
}
.sg-beitrag-text h4 {
	margin-top: var(--space-32);
	margin-bottom: var(--space-8);
	font-size: var(--text-h5-size);
	line-height: var(--text-h5-lh);
	font-weight: var(--text-h5-weight);
}
.sg-beitrag-text > :first-child,
.sg-beitrag-text > p:first-child + * { margin-top: 0; }
.sg-beitrag-text ul,
.sg-beitrag-text ol { margin-top: 0; margin-bottom: var(--space-24); padding-left: var(--space-20); }
.sg-beitrag-text ul { list-style: square; }
.sg-beitrag-text li { margin-bottom: var(--space-6); padding: 0; }
.sg-beitrag-text li::marker { color: var(--rose); }
.sg-beitrag-text a { color: var(--text-link); text-decoration: underline; text-decoration-color: var(--line-rose); }
.sg-beitrag-text strong { font-weight: 700; }
.sg-beitrag-text blockquote {
	margin-top: var(--space-32);
	margin-bottom: var(--space-32);
	padding: var(--space-4) 0 var(--space-4) var(--space-20);
	border-left: 4px solid var(--naht);
	font-family: var(--font-display);
	font-size: var(--text-h5-size);
	line-height: 1.6;
}

/* Produktkarten im Beitrag ([products ids] → sg_produktkarte): wie im Shop, ohne Link-Unterstreichung */
.sg-beitrag-text .sg-produktraster-beitrag { max-width: 100%; margin-top: var(--space-24); margin-bottom: var(--space-40); }
.sg-beitrag-text .sg-produktraster-beitrag a { text-decoration: none; }
.sg-beitrag-text .sg-produktraster-beitrag .sg-karte-bild img { width: 100%; height: 100%; max-height: none; object-fit: cover; box-shadow: none; }

/* Bilder, Bildunterschriften, Videos: volle Spaltenbreite (760 px) */
.sg-beitrag-text img { max-width: 100%; height: auto; }
/* Hochformate nicht höher als das Fenster */
.sg-beitrag-text .wp-caption img,
.sg-beitrag-text figure img,
.sg-beitrag-text > p img { width: auto; max-height: 80vh; object-fit: contain; }
.sg-beitrag-text img[width="1"][height="1"] { position: absolute; width: 1px; height: 1px; }
.sg-beitrag-text > p:has(> img:only-child),
.sg-beitrag-text > p:has(> a:only-child > img),
.sg-beitrag-text > p:has(> iframe),
.sg-beitrag-text .wp-caption,
.sg-beitrag-text figure,
.sg-beitrag-text iframe,
.sg-beitrag-text .fluid-width-video-wrapper { max-width: 100%; }
.sg-beitrag-text .wp-caption,
.sg-beitrag-text figure { width: auto !important; margin: var(--space-40) 0; padding: 0; background: none; border: 0; text-align: center; }
.sg-beitrag-text .wp-caption img,
.sg-beitrag-text figure img,
.sg-beitrag-text > p > img,
.sg-beitrag-text > p > a > img { display: block; margin: 0 auto; box-shadow: var(--shadow-soft); }
.sg-beitrag-text > p:has(> img:only-child),
.sg-beitrag-text > p:has(> a:only-child > img) { margin: var(--space-40) 0; }
.sg-beitrag-text .wp-caption-text,
.sg-beitrag-text figcaption {
	margin: var(--space-12) auto 0;
	padding: 0;
	max-width: var(--text-max);
	font-size: var(--text-meta-size);
	line-height: var(--text-small-lh);
	letter-spacing: var(--text-meta-track);
	color: var(--text-muted);
}
.sg-beitrag-text iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; margin: var(--space-40) auto; border: 0; }
/* Divi (fitvids) reserviert Platz per padding-top, ohne das Video dorthin zu legen: abschalten, das iframe hat aspect-ratio */
.sg-beitrag-text .fluid-width-video-wrapper { padding-top: 0 !important; margin: var(--space-40) 0; }
.sg-beitrag-text .fluid-width-video-wrapper iframe { position: static; margin: 0; }
.sg-beitrag-text .wp-block-embed__wrapper p:empty { display: none; }
.sg-beitrag-text .alignleft,
.sg-beitrag-text .alignright { float: none; margin-left: auto; margin-right: auto; }

/* Divi-Bausteine in alten Beiträgen: ohne eigene Abstände und Breiten */
.sg-beitrag-text .et_pb_section,
.sg-beitrag-text .et_pb_row,
.sg-beitrag-text .et_pb_column,
.sg-beitrag-text .et_pb_module { max-width: 100%; width: 100% !important; margin: 0 !important; padding: 0 !important; background: none !important; }
.sg-beitrag-text .et_pb_module { margin-bottom: var(--space-20) !important; }

/* Weitere Beiträge */
.sg-beitrag-weiter { padding: var(--space-72) 0 var(--page-end); }
.sg-beitrag-weiter-innen { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--pad); box-sizing: border-box; }
.sg-beitrag-weiter .sg-naht { margin-bottom: var(--space-48); }
.sg-beitrag-weiter .sg-journal-kopf { align-items: center; }

@media (max-width: 860px) {
	.sg-beitrag-kopf { padding: var(--space-48) 0; }
	.sg-beitrag-zurueck { margin-bottom: var(--space-24); }
	.sg-beitrag { padding-top: var(--space-40); }
	.sg-beitrag-titelbild { margin-bottom: var(--space-40); }
	.sg-beitrag-weiter { padding-top: var(--space-56); }
}
@media (max-width: 560px) {
	.sg-beitrag-weiter .sg-journal-kopf { flex-direction: column; align-items: flex-start; gap: var(--space-8); }
}
