/* Web-Schriften (Oswald für die Startnummer, Montserrat für die Oberfläche). Achtung Datenschutz: Das Laden von fonts.googleapis.com übermittelt die
   IP-Adresse der Besucher an Google (in der EU/AT/DE ohne Einwilligung problematisch). Alternative: diese eine Zeile löschen und die Schriften
   lokal im Theme hosten – die Schrift-Familien unten bleiben dieselben. */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700;800;900&family=Oswald:wght@500;700&display=swap');



/* Seat Cover Configurator – alle Regeln mit #sbs-app geschützt, damit Theme-Styles sie nicht überschreiben.

   Schrift:   Fest eingestellt: Montserrat, ersatzweise Oswald, dann Arial/serifenlose Systemschrift. Die Schriften kommen per @import (oben)
              von Google Fonts – siehe Hinweis zum Datenschutz oben; ohne Import greift die Systemschrift.
              Ändern: #sbs-app { --sbs-font: 'Meine Schrift', sans-serif; }
   Breite:    Shortcode [seatcover_configurator wide="1"] bricht aus einer schmalen Theme-Spalte aus.
   Farben:    Variablen direkt darunter. */

#sbs-app {
	--sbs-font: 'Montserrat', 'Oswald', 'Helvetica Neue', Arial, Helvetica, sans-serif;
	--sbs-bg: #0d0e11;
	--sbs-card: #14161b;
	--sbs-card2: #1b1e25;
	--sbs-line: #2a2e37;
	--sbs-fg: #f3f4f6;
	--sbs-mut: #9aa1ad;
	--sbs-accent: #e11d2a;        /* Akzent (Reserve) */
	--sbs-btn: #0056b3;           /* Button "Weiter" / "In den Warenkorb" (Webshop-Blau) – hier an das Theme anpassen */
	--sbs-btn-hover: #004494;     /* Button beim Überfahren (dunkler) */
	--sbs-hi: #ff7a1a;            /* aktiver Reiter, Auswahl-Rahmen der Kacheln */
	--sbs-max: 1320px;            /* maximale Breite (mindestens 1200px) */
	--sbs-side-min: clamp(720px, 90vh, 900px);   /* feste Mindesthöhe der rechten Box */
	--sbs-sticky-top: 24px;       /* Desktop: Abstand der Vorschau zum oberen Rand (Höhe eines fixierten Theme-Headers eintragen) */
	--sbs-sticky-top-m: 0px;      /* Mobil: dito */
	/* Startnummer: Position in Prozent des Sitzbank-Bildes (oben/links = Mittelpunkt der Zahl), Neigung und Größe */

	position: relative;
	width: 100%;
	max-width: var(--sbs-max);
	margin: 0 auto 2.5rem;
	background: var(--sbs-bg);
	color: var(--sbs-fg);
	border: 1px solid var(--sbs-line);
	border-radius: 22px;
	font-family: var(--sbs-font) !important;
	font-size: 17px;
	line-height: 1.45;
	scroll-margin-top: 80px;
	text-align: left;
}
/* kein overflow:hidden auf dem Container – sonst funktioniert position:sticky nicht */

/* Breit: aus schmaler Theme-Spalte ausbrechen */
#sbs-app.sbs-wide {
	width: min(var(--sbs-max), calc(100vw - 48px));
	max-width: none;
	left: 50%;
	transform: translateX(-50%);
}

#sbs-app *, #sbs-app *::before, #sbs-app *::after { box-sizing: border-box; }
/* Schrift erzwingen: alle Texte, Reiter, Buttons, Eingaben und Dropdowns (Theme-Serifenschrift kann nicht durchschlagen) */
#sbs-app, #sbs-app *, #sbs-app button, #sbs-app input, #sbs-app select, #sbs-app option, #sbs-app h2, #sbs-app h3 { font-family: var(--sbs-font) !important; }
#sbs-app button, #sbs-app input, #sbs-app select {
	font: inherit; letter-spacing: normal; text-transform: none; text-shadow: none; box-shadow: none;
	margin: 0; min-height: 0; -webkit-appearance: none; appearance: none;
}
#sbs-app button { cursor: pointer; background: none; border: 0; padding: 0; border-radius: 0; color: inherit; line-height: 1.2; }
#sbs-app h2, #sbs-app h3, #sbs-app p, #sbs-app dl, #sbs-app dd, #sbs-app dt {
	margin: 0; padding: 0; color: inherit; text-transform: none; letter-spacing: normal;
}
#sbs-app :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ------------------------------------------------------------ Kopfzeile */
#sbs-app .sbs-head {
	display: flex; justify-content: space-between; align-items: center; gap: 1rem;
	padding: 1.1rem 2rem; border-bottom: 1px solid var(--sbs-line);
}
#sbs-app .sbs-logo { font-weight: 800; font-size: .82rem; letter-spacing: .22em; text-transform: uppercase; }
#sbs-app .sbs-count { color: var(--sbs-mut); font-size: .82rem; letter-spacing: .06em; }

/* --------------------------------------------------------------- Layout */
#sbs-app .sbs-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }

/* Sticky-Vorschau (links) */
#sbs-app .sbs-preview {
	position: sticky; top: var(--sbs-sticky-top); align-self: start;
	height: min(800px, calc(100vh - var(--sbs-sticky-top) - 24px)); min-height: 540px;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	background: radial-gradient(ellipse at 50% 38%, #2a2118 0%, #14100c 46%, var(--sbs-bg) 82%);
	border-radius: 0 0 0 22px; overflow: hidden;
}
#sbs-app .sbs-wm {
	position: absolute; top: 6%; left: 0; right: 0; text-align: center; pointer-events: none; user-select: none;
	font-weight: 900; font-size: clamp(3.5rem, 9vw, 8rem); line-height: 1; letter-spacing: .04em;
	text-transform: uppercase; color: rgba(255, 255, 255, .06);
}
#sbs-app .sbs-stage {
	position: relative; z-index: 1; flex: 1; min-height: 0; width: 100%;
	display: flex; align-items: center; justify-content: center; padding: 1.5rem 1.5rem 3.2rem;
}
#sbs-app .sbs-ph { color: var(--sbs-mut); text-align: center; }
#sbs-app .sbs-note { position: absolute; z-index: 1; bottom: 1rem; left: 1rem; right: 1rem; text-align: center; font-size: .72rem; color: var(--sbs-mut); }

/* Bild-Ebenen (Sandwich): alle PNGs liegen absolut übereinander. Keine Konturen, Rahmen oder Hervorhebungen. */
#sbs-app .sbs-stack {
	position: relative; height: 100%; max-width: 100%; container-type: inline-size;
	filter: drop-shadow(0 20px 26px rgba(0, 0, 0, .55));
}
#sbs-app .sbs-layer { image-rendering: -webkit-optimize-contrast; backface-visibility: hidden; transform: translateZ(0); position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; display: block; border: 0; outline: 0; box-shadow: none; max-width: none; pointer-events: none; }
#sbs-app .sbs-layer[hidden] { display: none; }

/* Rechte Box mit fester Mindesthöhe */
#sbs-app .sbs-side {
	display: flex; flex-direction: column; min-width: 0; min-height: var(--sbs-side-min);
	border-left: 1px solid var(--sbs-line); background: var(--sbs-card); border-radius: 0 0 22px 0;
}

/* ----------------------------------------------------- Stepper / Reiter */
#sbs-app .sbs-stepper {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem;
	padding: 1.4rem 2rem; border-bottom: 1px solid var(--sbs-line);
}
#sbs-app .sbs-stab {
	display: flex; align-items: center; gap: .85rem; min-height: 72px; padding: .8rem 1rem .8rem .8rem; text-align: left;
	border: 2px solid var(--sbs-line); border-radius: 16px; background: var(--sbs-card2); color: var(--sbs-mut);
	font-size: 1rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1.15;
	transition: background .2s, color .2s, border-color .2s, transform .1s;
}
#sbs-app .sbs-snum {
	flex: 0 0 auto; width: 2.6rem; height: 2.6rem; border-radius: 50%; display: inline-grid; place-items: center;
	background: rgba(255, 255, 255, .1); font-size: 1.25rem; font-weight: 800; letter-spacing: 0; transition: background .2s;
}
#sbs-app .sbs-snum svg { width: 1.4rem; height: 1.4rem; }
#sbs-app .sbs-slab { min-width: 0; overflow-wrap: break-word; hyphens: manual; }
#sbs-app .sbs-stab:hover:not(:disabled):not(.is-cur) { color: var(--sbs-fg); border-color: #555b68; }
#sbs-app .sbs-stab:active:not(:disabled) { transform: scale(.98); }
#sbs-app .sbs-stab.is-done { color: var(--sbs-fg); border-color: rgba(255, 122, 26, .55); }
#sbs-app .sbs-stab.is-done .sbs-snum { background: var(--sbs-hi); color: #111; }
#sbs-app .sbs-stab.is-cur { background: var(--sbs-hi); border-color: var(--sbs-hi); color: #111; }
#sbs-app .sbs-stab.is-cur .sbs-snum { background: rgba(0, 0, 0, .2); }
#sbs-app .sbs-stab:disabled { opacity: .4; cursor: not-allowed; }

/* --------------------------------------------------------------- Panel */
#sbs-app .sbs-panel { flex: 1; padding: 2rem; min-height: 420px; transition: opacity .14s ease, transform .14s ease; }
#sbs-app .sbs-panel.is-out { opacity: 0; transform: translateX(var(--sbs-dx, 0)); pointer-events: none; }
#sbs-app .sbs-panel.is-in { animation: sbs-in .28s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes sbs-in { from { opacity: 0; transform: translateX(var(--sbs-dx, 0)); } to { opacity: 1; transform: none; } }

#sbs-app .sbs-panel h2 { font-size: 1.9rem; font-weight: 700; line-height: 1.1; text-transform: uppercase; letter-spacing: .02em; margin-bottom: .55rem; }
#sbs-app .sbs-panel h3 { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; text-transform: uppercase; color: var(--sbs-mut); margin: 1.8rem 0 .8rem; }
#sbs-app .sbs-hint { color: var(--sbs-mut); font-size: .95rem; max-width: 52ch; }

/* Marken-Karten */
#sbs-app .sbs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .7rem; }
#sbs-app .sbs-opt {
	display: flex; flex-direction: column; gap: .2rem; text-align: left; padding: 1rem 1.1rem;
	background: var(--sbs-card2); border: 2px solid var(--sbs-line); border-radius: 14px; color: var(--sbs-fg);
	transition: border-color .15s, background .15s;
}
#sbs-app .sbs-opt strong { font-weight: 800; letter-spacing: .03em; }
#sbs-app .sbs-opt small { color: var(--sbs-mut); font-size: .75rem; }
#sbs-app .sbs-opt:hover { border-color: #444955; }
#sbs-app .sbs-opt.is-sel { border-color: var(--sbs-hi); background: rgba(255, 122, 26, .1); }

/* Großbuchstaben: Überschriften, Auswahllisten, Zusammenfassung */
#sbs-app .sbs-select, #sbs-app .sbs-select option, #sbs-app .sbs-sum dt, #sbs-app .sbs-sum dd, #sbs-app .sbs-opt strong, #sbs-app .sbs-care strong { text-transform: uppercase; }
#sbs-app .sbs-select { font-weight: 700; letter-spacing: .03em; }
#sbs-app .sbs-sum dd { letter-spacing: .02em; }

/* Select / Eingabe */
#sbs-app .sbs-select, #sbs-app .sbs-input {
	width: 100%; padding: 1rem 1.1rem; background-color: var(--sbs-card2); color: var(--sbs-fg);
	border: 2px solid var(--sbs-line); border-radius: 14px; height: auto;
}
#sbs-app .sbs-select {
	padding-right: 2.75rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%239aa1ad' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 1.1rem center;
}
#sbs-app .sbs-select:focus, #sbs-app .sbs-input:focus { outline: none; border-color: var(--sbs-hi); }
#sbs-app .sbs-input::placeholder { color: #6b7280; }
#sbs-app .sbs-field label { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sbs-mut); margin: 1.8rem 0 .7rem; }

/* Umschalter einteilig / zweiteilig */
#sbs-app .sbs-seg { display: grid; grid-template-columns: 1fr 1fr; margin-top: 1.4rem; border: 2px solid var(--sbs-line); border-radius: 14px; overflow: hidden; }
#sbs-app .sbs-seg button { display: flex; flex-direction: column; gap: .2rem; padding: 1rem; background: var(--sbs-card2); color: var(--sbs-mut); text-align: center; transition: background .2s, color .2s; }
#sbs-app .sbs-seg button b { color: var(--sbs-fg); font-weight: 800; letter-spacing: .02em; }
#sbs-app .sbs-seg button small { font-size: .78rem; }
#sbs-app .sbs-seg button.is-sel { background: var(--sbs-hi); color: #222; }
#sbs-app .sbs-seg button.is-sel b { color: #111; }

/* ------------------------------------------------------- Farbkacheln */
#sbs-app .sbs-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .6rem; }
#sbs-app .sbs-sw {
	position: relative; display: flex; flex-direction: column; align-items: center; gap: .5rem;
	padding: .45rem .2rem .55rem; border-radius: 14px;
}
#sbs-app .sbs-chip {
	position: relative; display: grid; place-items: center; width: 100%; max-width: 70px; aspect-ratio: 1;
	border-radius: 15px; border: 1px solid rgba(255, 255, 255, .22);
	box-shadow: inset 0 -10px 16px rgba(0, 0, 0, .18); transition: transform .15s, outline-color .15s;
}
#sbs-app .sbs-chip svg { width: 52%; height: 52%; opacity: 0; transform: scale(.4); transition: opacity .15s, transform .15s; }
#sbs-app .sbs-sw:hover .sbs-chip { transform: translateY(-2px); }
#sbs-app .sbs-sw.is-sel .sbs-chip { outline: 3px solid var(--sbs-hi); outline-offset: 3px; }
#sbs-app .sbs-sw.is-sel .sbs-chip svg { opacity: 1; transform: scale(1); }
#sbs-app .sbs-swn { font-size: .75rem; color: var(--sbs-mut); text-align: center; line-height: 1.2; }
#sbs-app .sbs-sw.is-sel .sbs-swn { color: var(--sbs-fg); font-weight: 700; }
/* Tooltip */
#sbs-app .sbs-sw::after {
	content: attr(data-tip); position: absolute; z-index: 5; bottom: calc(100% - 4px); left: 50%;
	transform: translate(-50%, 4px); background: #fff; color: #111; font-size: .74rem; font-weight: 700;
	padding: .25rem .55rem; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none;
	transition: opacity .12s, transform .12s;
}
#sbs-app .sbs-sw:hover::after, #sbs-app .sbs-sw:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }

/* Streifen-Auswahl */
#sbs-app .sbs-bandtabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
#sbs-app .sbs-bt {
	display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; background: var(--sbs-card2);
	border: 2px solid var(--sbs-line); border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--sbs-mut); transition: border-color .15s, color .15s;
}
#sbs-app .sbs-bt i { width: 15px; height: 15px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .3); }
#sbs-app .sbs-bt.is-sel { border-color: var(--sbs-hi); color: var(--sbs-fg); }
#sbs-app .sbs-link { margin-top: 1.1rem; color: var(--sbs-hi); text-decoration: underline; font-size: .9rem; }

/* Pflegepackung */
#sbs-app .sbs-care {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding: 1.1rem 1.2rem;
	border: 2px solid var(--sbs-hi); border-radius: 16px; background: rgba(255, 122, 26, .06);
}
#sbs-app .sbs-care p { margin: .3rem 0 .5rem; font-size: .85rem; color: var(--sbs-mut); }
#sbs-app .sbs-care s { color: var(--sbs-mut); font-size: .88rem; }
#sbs-app .sbs-care b { color: var(--sbs-hi); font-size: 1.1rem; }

/* Zusammenfassung */
#sbs-app .sbs-sum { display: grid; grid-template-columns: auto 1fr; gap: .6rem 1.5rem; margin-top: 1.1rem; }
#sbs-app .sbs-sum dt { color: var(--sbs-mut); }
#sbs-app .sbs-sum dd { font-weight: 600; text-align: right; }
#sbs-app .sbs-price { border-top: 1px solid var(--sbs-line); padding-top: .9rem; }

/* ----------------------------------------------------------- Fußleiste */
#sbs-app .sbs-msg { min-height: 0; padding: 0 2rem; color: #ff6b6b; font-size: .92rem; }
#sbs-app .sbs-msg:not(:empty) { padding-bottom: .8rem; }
#sbs-app .sbs-bar {
	position: sticky; bottom: 0; z-index: 6; display: flex; flex-direction: column; gap: .9rem;
	padding: 1.2rem 2rem 1.4rem; background: var(--sbs-card); border-top: 1px solid var(--sbs-line); border-radius: 0 0 22px 0;
}
#sbs-app .sbs-barrow { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
#sbs-app .sbs-total small { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sbs-mut); }
#sbs-app .sbs-total strong { font-size: 2rem; font-weight: 800; line-height: 1.1; }
#sbs-app .sbs-btn {
	display: flex; align-items: center; justify-content: center; padding: 1.15rem 1.8rem;
	background: var(--sbs-btn, #0056b3) !important; color: #fff !important; border: 2px solid var(--sbs-btn, #0056b3) !important; border-radius: 14px;
	font-weight: 900; letter-spacing: .08em; text-transform: uppercase; font-size: 1.15rem; white-space: nowrap;
	transition: filter .15s, transform .1s;
}
#sbs-app .sbs-btn:hover:not(:disabled) { background: var(--sbs-btn-hover, #004494) !important; border-color: var(--sbs-btn-hover, #004494) !important; }
#sbs-app .sbs-btn:active:not(:disabled) { transform: scale(.98); }
#sbs-app .sbs-btn:disabled { opacity: .45; cursor: not-allowed; }
#sbs-app .sbs-main { width: 100%; }
#sbs-app .sbs-sm { padding: .75rem 1.2rem; font-size: .9rem; white-space: nowrap; }
#sbs-app .sbs-ghost { background: transparent !important; color: var(--sbs-fg) !important; border-color: var(--sbs-line) !important; }
#sbs-app .sbs-ghost:hover:not(:disabled) { background: transparent !important; border-color: #555b68 !important; }
#sbs-app .sbs-back {
	padding: .75rem 1.1rem; border: 2px solid var(--sbs-line); border-radius: 12px; font-size: 1rem; font-weight: 700; color: var(--sbs-fg); white-space: nowrap;
}
#sbs-app .sbs-back:hover { border-color: #555b68; }

/* -------------------------------------------------------------- Mobil / Tablet */

/* Bis 900 px: einspaltig. Bild ganz oben (bleibt beim Scrollen sichtbar), Schritte und Optionen darunter. */
@media (max-width: 900px) {
	#sbs-app { font-size: 16px; border-radius: 18px; }
	#sbs-app.sbs-wide { width: calc(100% - 24px); max-width: var(--sbs-max); left: auto; transform: none; margin-left: auto; margin-right: auto; }
	#sbs-app .sbs-body { display: block; }   /* block statt grid, damit die Vorschau über die ganze Höhe sticky bleibt */
	#sbs-app .sbs-preview {
		position: sticky; top: var(--sbs-sticky-top-m); z-index: 5; width: 100%;
		height: clamp(210px, 36vh, 440px); min-height: 0; border-radius: 0; border-bottom: 1px solid var(--sbs-line);
	}
	#sbs-app .sbs-stage { padding: .6rem .5rem 1.4rem; }
	#sbs-app .sbs-wm { top: 3%; font-size: clamp(2.4rem, 13vw, 4.5rem); }
	#sbs-app .sbs-note { display: none; }
	#sbs-app .sbs-side { min-height: 0; border-left: 0; border-radius: 0 0 18px 18px; }
	#sbs-app .sbs-bar { border-radius: 0 0 18px 18px; }
	#sbs-app .sbs-head, #sbs-app .sbs-stepper, #sbs-app .sbs-panel, #sbs-app .sbs-bar, #sbs-app .sbs-msg { padding-left: 1.1rem; padding-right: 1.1rem; }
	#sbs-app .sbs-panel { padding-top: 1.5rem; padding-bottom: 1.5rem; min-height: 340px; }
	#sbs-app .sbs-panel h2 { font-size: 1.5rem; }
}

/* Smartphone */
@media (max-width: 768px) {
	#sbs-app { font-size: 15px; }
	#sbs-app .sbs-head { padding-top: .8rem; padding-bottom: .8rem; }
	#sbs-app .sbs-logo { font-size: .72rem; letter-spacing: .16em; }

	/* Schritte: kompaktes Vollbreiten-Grid, 2 Spalten x 3 Reihen, Nummer über dem Text, große Touch-Flächen (>= 64 px) */
	#sbs-app .sbs-stepper { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; padding-top: 1rem; padding-bottom: 1rem; }
	#sbs-app .sbs-stab {
		flex-direction: column; justify-content: center; align-items: center; text-align: center;
		gap: .3rem; min-height: 72px; padding: .55rem .4rem; font-size: .74rem; letter-spacing: .03em; border-radius: 14px;
	}
	#sbs-app .sbs-snum { width: 2.1rem; height: 2.1rem; font-size: 1.05rem; }
	#sbs-app .sbs-snum svg { width: 1.15rem; height: 1.15rem; }
	#sbs-app .sbs-slab { width: 100%; }

	/* Inhalte */
	#sbs-app .sbs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	#sbs-app .sbs-swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; }
	#sbs-app .sbs-chip { max-width: 64px; }
	#sbs-app .sbs-sw::after { display: none; }   /* kein Tooltip auf Touch, der Name steht unter der Kachel */
	#sbs-app .sbs-select, #sbs-app .sbs-input { font-size: 16px; padding: .95rem 1rem; }   /* 16 px verhindert das automatische Hineinzoomen auf iPhones */
	#sbs-app .sbs-select { padding-right: 2.6rem; }
	#sbs-app .sbs-care { flex-direction: column; align-items: stretch; }
	#sbs-app .sbs-care .sbs-btn { width: 100%; }
	#sbs-app .sbs-sum { gap: .5rem 1rem; }

	/* Fußleiste: Preis, Zurück, großer Button über die volle Breite */
	#sbs-app .sbs-bar { padding-top: .7rem; padding-bottom: calc(.8rem + env(safe-area-inset-bottom, 0px)); gap: .55rem; }
	#sbs-app .sbs-total small { font-size: .62rem; }
	#sbs-app .sbs-total strong { font-size: 1.35rem; }
	#sbs-app .sbs-btn { font-size: 1.05rem; padding: .9rem 1rem; min-height: 54px; }
	#sbs-app .sbs-back { min-height: 44px; padding: .5rem .9rem; }

}

/* Sehr kleine Geräte */
@media (max-width: 380px) {
	#sbs-app { font-size: 14px; }
	#sbs-app.sbs-wide { width: calc(100% - 16px); }
	#sbs-app .sbs-head, #sbs-app .sbs-stepper, #sbs-app .sbs-panel, #sbs-app .sbs-bar, #sbs-app .sbs-msg { padding-left: .85rem; padding-right: .85rem; }
	#sbs-app .sbs-stab { font-size: .68rem; letter-spacing: 0; }
	#sbs-app .sbs-count { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	#sbs-app *, #sbs-app *::before, #sbs-app *::after { animation: none !important; transition: none !important; }
}



/* ======================================================================
   Sitzbank-Studio: Besonderheiten (quadratische Vorschau, Stil-Vorlagen, Stickerei, Hotspots)
   ====================================================================== */
#sbs-app .sbs-stack { height: auto; width: 100%; max-width: min(100%, 660px); }
#sbs-app .sbs-layer[data-layer="arrondi"] { transform: translate(1.29%, -1.29%) scale(1.02); }
#sbs-app .sbs-stage { padding-bottom: 3.2rem; }

/* Stickerei-Texte auf der Vorschau */
#sbs-app .sbs-brod {
	position: absolute; transform: translate(-50%, -50%); white-space: nowrap; pointer-events: none; user-select: none;
	font-family: "Arial Black", Arial, sans-serif !important; font-weight: 800 !important; letter-spacing: .04em; line-height: 1;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .5); text-transform: none;
}
#sbs-app .sbs-brod[hidden] { display: none; }

/* Hotspots (Tippe auf die Punkte) */
#sbs-app .sbs-hot {
	position: absolute; z-index: 3; transform: translate(-50%, -50%); width: 32px; height: 32px; border-radius: 50%;
	border: 2px solid #fff; background: var(--sbs-hi); color: #111; font-size: 15px; font-weight: 800; display: grid; place-items: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .5); transition: transform .12s;
}
#sbs-app .sbs-hot:hover { transform: translate(-50%, -50%) scale(1.12); }
#sbs-app .sbs-hint { position: absolute; z-index: 3; left: 1rem; top: .9rem; font-size: .72rem; color: var(--sbs-mut); background: rgba(0, 0, 0, .45); padding: .25rem .65rem; border-radius: 999px; }
#sbs-app .sbs-modelbadge {
	position: absolute; z-index: 3; left: 1rem; bottom: 2.6rem; max-width: 70%; font-size: .78rem; font-weight: 700; letter-spacing: .03em;
	background: rgba(0, 0, 0, .55); border: 1px solid var(--sbs-line); padding: .3rem .75rem; border-radius: 999px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Stil-Vorlagen */
#sbs-app .sbs-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .7rem; margin-top: 1.2rem; }
#sbs-app .sbs-preset {
	display: flex; flex-direction: column; gap: .55rem; padding: .7rem; text-align: left; background: var(--sbs-card2);
	border: 2px solid var(--sbs-line); border-radius: 14px; color: var(--sbs-fg); font-weight: 700; font-size: .85rem; letter-spacing: .03em; text-transform: uppercase;
	transition: border-color .15s;
}
#sbs-app .sbs-preset:hover { border-color: #555b68; }
#sbs-app .sbs-preset.is-sel { border-color: var(--sbs-hi); background: rgba(255, 122, 26, .1); }
#sbs-app .sbs-pchip { position: relative; height: 46px; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .2); }
#sbs-app .sbs-pchip i { position: absolute; top: 0; width: 10%; border-radius: 2px; }

/* Texteingaben / Textarea */
#sbs-app textarea.sbs-input { min-height: 88px; resize: vertical; text-transform: none; font-size: 1rem; }
#sbs-app .sbs-input.sbs-up { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
#sbs-app .sbs-lbl { display: flex; justify-content: space-between; gap: .6rem; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sbs-mut); margin: 1.8rem 0 .8rem; }
#sbs-app .sbs-lbl span { color: var(--sbs-fg); letter-spacing: .04em; }
#sbs-app .sbs-swatches.sbs-tight { margin-top: .6rem; }
#sbs-app .sbs-chip.sbs-alc { background-size: cover; background-position: center; }

/* Werkzeuge: Teilen / Bild speichern */
#sbs-app .sbs-tools { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
#sbs-app .sbs-trust { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 1.4rem; font-size: .8rem; color: var(--sbs-mut); }
#sbs-app .sbs-toast { position: fixed; z-index: 99999; left: 50%; bottom: 24px; transform: translateX(-50%); background: #fff; color: #111; padding: .6rem 1.1rem; border-radius: 999px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .2s; }
#sbs-app .sbs-toast.show { opacity: 1; }
#sbs-app .sbs-sum dd { max-width: 40ch; margin-left: auto; word-break: break-word; }

@media (max-width: 900px) {
	#sbs-app .sbs-stage { padding-bottom: 1.4rem; }
	#sbs-app .sbs-hint, #sbs-app .sbs-modelbadge { display: none; }
	#sbs-app .sbs-hot { width: 28px; height: 28px; font-size: 13px; }
	#sbs-app .sbs-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- v1.1.0: Grip-Ausführungen, Mousse, Pflichtfeld-Hinweis ---- */
#sbs-app .sbs-fin { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .6rem; }
#sbs-app .sbs-finbtn { display: flex; flex-direction: column; gap: .15rem; padding: .7rem .6rem; border: 2px solid var(--sbs-line); border-radius: 12px; background: var(--sbs-card2); color: var(--sbs-mut); text-align: center; transition: background .2s, color .2s, border-color .2s; }
#sbs-app .sbs-finbtn b { color: var(--sbs-fg); font-weight: 800; font-size: .88rem; }
#sbs-app .sbs-finbtn small { font-size: .75rem; }
#sbs-app .sbs-finbtn.is-sel { background: var(--sbs-hi); border-color: var(--sbs-hi); color: #222; }
#sbs-app .sbs-finbtn.is-sel b { color: #111; }
#sbs-app .sbs-check { display: flex; align-items: flex-start; gap: .7rem; margin-top: 1.2rem; padding: .9rem 1rem; border: 2px solid var(--sbs-line); border-radius: 12px; background: var(--sbs-card2); cursor: pointer; }
#sbs-app .sbs-check input { width: 1.2rem; height: 1.2rem; margin-top: .15rem; accent-color: var(--sbs-hi); flex: none; }
#sbs-app .sbs-check b { color: var(--sbs-hi); white-space: nowrap; }
#sbs-app .sbs-missing { margin: 0 0 .6rem; padding: .55rem .8rem; border-radius: 10px; background: rgba(226, 35, 26, .15); color: #ff8a84; font-size: .85rem; font-weight: 700; text-align: center; }
