/* Fleet Buchshop – passt zum dunklen fleet-data-Theme */

.fbs {
	--fbs-gold: var(--accent-gold, #C4A35A);
	--fbs-teal: var(--accent-teal, #178687);
	--fbs-karte: rgba(26, 37, 47, 0.55);
	--fbs-linie: rgba(255, 255, 255, 0.12);
	--fbs-text: #ffffff;
	--fbs-leise: #B0BEC5;
	--fbs-papier: #FBF8F1;
	--fbs-tinte: #2A2723;
	--fbs-radius: 10px;
	color: var(--fbs-text);
}

.fbs-seite .fbs-container { max-width: 1100px; }
.fbs *, .fbs *::before, .fbs *::after { box-sizing: border-box; }

.fbs .fbs-titel {
	text-align: left;
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	line-height: 1.15;
	margin: 0 0 .5rem;
	color: var(--fbs-text);
}
.fbs .fbs-kicker {
	text-transform: uppercase;
	letter-spacing: .14em;
	font-size: .8rem;
	color: var(--fbs-gold);
	margin: 0 0 .6rem;
	opacity: 1;
}
.fbs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fbs .fbs-klein, .fbs small { font-size: .85rem; color: var(--fbs-leise); }
.fbs-zurueck { margin-bottom: 1.5rem; font-size: .95rem; }
.fbs-zurueck a { color: var(--fbs-leise); }
.fbs-zurueck a:hover { color: var(--fbs-gold); }

/* Knöpfe */
.fbs .fbs-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
	padding: .7rem 1.3rem;
	border-radius: 999px;
	border: 2px solid var(--fbs-gold);
	background: var(--fbs-gold);
	color: #1A252F;
	font-weight: 600; font-size: 1rem; line-height: 1.2;
	text-decoration: none; cursor: pointer;
	transition: transform .15s ease, background .15s ease, color .15s ease;
}
.fbs .fbs-btn:hover { background: #d6b76c; border-color: #d6b76c; color: #1A252F; transform: translateY(-1px); }
.fbs .fbs-btn:focus-visible { outline: 3px solid var(--fbs-teal); outline-offset: 2px; }
.fbs .fbs-btn-zweit { background: transparent; color: var(--fbs-gold); }
.fbs .fbs-btn-zweit:hover { background: rgba(196, 163, 90, .12); color: #e3c98a; }
.fbs .fbs-btn-gross { padding: .9rem 1.8rem; font-size: 1.08rem; }
.fbs .fbs-btn-voll { width: 100%; }
.fbs .fbs-btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

/* Meldungen */
.fbs .fbs-meldung { padding: .8rem 1rem; border-radius: 8px; margin: 0 0 1rem; opacity: 1; }
.fbs .fbs-meldung-info { background: rgba(23, 134, 135, .18); border-left: 4px solid var(--fbs-teal); }
.fbs .fbs-meldung-fehler { background: rgba(220, 80, 70, .16); border-left: 4px solid #e2675c; }
.fbs .fbs-bald { color: var(--fbs-gold); font-weight: 600; }

/* ---------- Cover ---------- */
.fbs-cover-bild {
	display: block; width: 100%; height: auto;
	border-radius: 4px 8px 8px 4px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, .45), inset 6px 0 10px rgba(0,0,0,.15);
}
.fbs-cover-platzhalter {
	aspect-ratio: 2 / 3; width: 100%;
	display: flex; flex-direction: column; justify-content: space-between;
	padding: 12% 10%;
	border-radius: 4px 8px 8px 4px;
	background:
		linear-gradient(90deg, rgba(0,0,0,.25) 0, rgba(0,0,0,0) 6%),
		linear-gradient(160deg, #1A252F 0%, #3D566E 100%);
	border: 1px solid rgba(196, 163, 90, .5);
	box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
	text-align: center;
}
.fbs-cp-verlag { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--fbs-gold); }
.fbs-cp-titel { font-family: Georgia, 'Times New Roman', serif; font-size: 1.35rem; line-height: 1.25; color: #fff; }
.fbs-cp-autor { font-size: .85rem; color: var(--fbs-leise); }

/* ---------- Shop-Übersicht ---------- */
.fbs-leer { text-align: center; padding: 3rem 1rem; border: 1px dashed var(--fbs-linie); border-radius: var(--fbs-radius); }
.fbs-raster {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 2rem;
}
.fbs-karte {
	display: flex; flex-direction: column;
	background: var(--fbs-karte);
	border: 1px solid var(--fbs-linie);
	border-radius: var(--fbs-radius);
	padding: 1.5rem;
	transition: border-color .2s ease, transform .2s ease;
}
.fbs-karte:hover { border-color: rgba(196, 163, 90, .5); transform: translateY(-3px); }
.fbs-karte-cover { display: block; width: 70%; margin: 0 auto 1.4rem; }
.fbs-karte-text { display: flex; flex-direction: column; flex: 1; }
.fbs .fbs-karte-titel { font-size: 1.2rem; line-height: 1.3; margin: 0 0 .3rem; text-align: left; }
.fbs .fbs-karte-titel a { color: #fff; }
.fbs .fbs-karte-titel a:hover { color: var(--fbs-gold); }
.fbs .fbs-karte-untertitel { font-size: .92rem; color: var(--fbs-leise); margin: 0 0 .3rem; line-height: 1.4; }
.fbs .fbs-karte-autor { font-size: .9rem; margin: 0 0 .8rem; opacity: .85; }
.fbs .fbs-karte-preis { font-size: 1.15rem; font-weight: 700; margin: auto 0 1rem; color: var(--fbs-gold); }
.fbs-karte-knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; }
.fbs-karte-knoepfe .fbs-btn { padding: .55rem 1rem; font-size: .92rem; }

/* ---------- Buchseite ---------- */
.fbs-buch-kopf {
	display: grid;
	grid-template-columns: minmax(200px, 340px) 1fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
}
.fbs-cover { position: sticky; top: 9rem; }
.fbs .fbs-untertitel { font-size: 1.25rem; color: var(--fbs-leise); margin: 0 0 .4rem; line-height: 1.4; }
.fbs .fbs-autor { font-size: 1.05rem; margin: 0 0 1.6rem; }

.fbs-kaufbox {
	background: var(--fbs-karte);
	border: 1px solid var(--fbs-linie);
	border-radius: var(--fbs-radius);
	padding: 1.4rem;
	margin: 0 0 2rem;
}
.fbs-formate { border: 0; padding: 0; margin: 0 0 .8rem; display: grid; gap: .6rem; }
.fbs-format {
	display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center;
	padding: .8rem 1rem;
	border: 1px solid var(--fbs-linie);
	border-radius: 8px;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}
.fbs-format:hover { border-color: rgba(196, 163, 90, .5); }
.fbs-format:has(input:checked) { border-color: var(--fbs-gold); background: rgba(196, 163, 90, .08); }
.fbs-format input { accent-color: var(--fbs-gold); width: 1.1rem; height: 1.1rem; }
.fbs-format-name { font-weight: 600; display: flex; flex-direction: column; }
.fbs-format-name small { font-weight: 400; }
.fbs-format-preis { font-size: 1.25rem; font-weight: 700; color: var(--fbs-gold); white-space: nowrap; }
.fbs .fbs-steuer { font-size: .85rem; color: var(--fbs-leise); margin: 0 0 1rem; }
.fbs-knoepfe { display: flex; flex-wrap: wrap; gap: .7rem; }
.fbs .fbs-zahlarten { font-size: .8rem; color: var(--fbs-leise); margin: .9rem 0 0; }

.fbs-beschreibung { margin: 0 0 2rem; }
.fbs-beschreibung p { font-size: 1.05rem; }

.fbs-daten {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: .8rem 1.5rem; margin: 0;
	padding-top: 1.4rem; border-top: 1px solid var(--fbs-linie);
}
.fbs-daten dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--fbs-leise); }
.fbs-daten dd { margin: .1rem 0 0; font-size: .98rem; }

/* ---------- Leseprobe ---------- */
.fbs-lesen { margin-top: 4rem; scroll-margin-top: 9rem; }
.fbs .fbs-lesen-titel { font-size: 1.6rem; text-align: left; margin: 0 0 1rem; }
.fbs-tabs { display: flex; gap: .4rem; border-bottom: 1px solid var(--fbs-linie); margin-bottom: 0; }
.fbs-tab {
	appearance: none; background: none; border: 0;
	padding: .8rem 1.2rem; margin-bottom: -1px;
	color: var(--fbs-leise); font: inherit; font-weight: 600; cursor: pointer;
	border-bottom: 3px solid transparent;
}
.fbs-tab:hover { color: #fff; }
.fbs-tab[aria-selected="true"] { color: var(--fbs-gold); border-bottom-color: var(--fbs-gold); }
.fbs-tab:focus-visible { outline: 2px solid var(--fbs-teal); outline-offset: -2px; }
.fbs-panel { padding-top: 1.5rem; }
.fbs-panel + .fbs-panel { margin-top: 1.5rem; }
.fbs-js .fbs-panel[hidden] { display: none; }

.fbs .fbs-papier {
	background: var(--fbs-papier);
	color: var(--fbs-tinte);
	max-width: 46rem;
	margin: 0 auto;
	padding: clamp(1.8rem, 5vw, 4rem) clamp(1.4rem, 6vw, 4.5rem);
	border-radius: 3px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
	font-family: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
	font-size: 1.08rem;
	line-height: 1.75;
}
.fbs .fbs-papier p,
.fbs .fbs-papier li,
.fbs .fbs-papier ul,
.fbs .fbs-papier ol { color: var(--fbs-tinte); opacity: 1; }
.fbs .fbs-papier p { margin: 0 0 1em; text-align: justify; hyphens: auto; }
.fbs .fbs-papier h1, .fbs .fbs-papier h2, .fbs .fbs-papier h3, .fbs .fbs-papier h4 {
	color: #1A252F; text-align: left; font-family: inherit; margin: 1.4em 0 .6em;
}
.fbs .fbs-papier h1:first-child, .fbs .fbs-papier h2:first-child, .fbs .fbs-papier h3:first-child { margin-top: 0; }
.fbs .fbs-papier a { color: #0f6a6b; text-decoration: underline; }
.fbs .fbs-papier img { max-width: 100%; height: auto; }
.fbs .fbs-toc ul, .fbs .fbs-toc ol { padding-left: 1.4rem; }
.fbs .fbs-toc li { margin: .25em 0; }
.fbs .fbs-toc > ul, .fbs .fbs-toc > ol { padding-left: 0; list-style: none; }
.fbs .fbs-toc > ul > li, .fbs .fbs-toc > ol > li { font-weight: 600; margin-top: .7em; }
.fbs .fbs-toc li li { font-weight: 400; }
.fbs .fbs-probe-pdf { text-align: center; margin: 2rem 0 0; }
.fbs .fbs-papier .fbs-btn-zweit { color: #8a6d2c; border-color: #8a6d2c; }

/* ---------- Kasse ---------- */
.fbs-kasse-raster {
	display: grid;
	grid-template-columns: 1fr minmax(260px, 360px);
	gap: 2.5rem;
	align-items: start;
	margin-top: 1rem;
}
.fbs-zusammenfassung {
	order: 2;
	position: sticky; top: 9rem;
	background: var(--fbs-karte);
	border: 1px solid var(--fbs-linie);
	border-radius: var(--fbs-radius);
	padding: 1.4rem;
}
.fbs .fbs-zusammenfassung h2, .fbs .fbs-kassenform h2 { font-size: 1.2rem; margin: 0 0 1rem; text-align: left; }
.fbs-zf-buch { display: grid; grid-template-columns: 70px 1fr; gap: 1rem; align-items: center; margin-bottom: 1rem; line-height: 1.4; }
.fbs-zf-cover .fbs-cover-platzhalter { padding: 8%; }
.fbs-zf-cover .fbs-cp-titel { font-size: .55rem; }
.fbs-zf-cover .fbs-cp-verlag, .fbs-zf-cover .fbs-cp-autor { display: none; }
.fbs-zf-tabelle { width: 100%; border-collapse: collapse; font-size: .95rem; }
.fbs-zf-tabelle td { padding: .35rem 0; border: 0; background: none; color: inherit; }
.fbs-zf-tabelle td:last-child { text-align: right; }
.fbs-zf-summe td { border-top: 1px solid var(--fbs-linie); padding-top: .7rem; font-weight: 700; font-size: 1.15rem; }
.fbs-zf-summe td:last-child { color: var(--fbs-gold); }
.fbs-zf-mwst td { font-size: .8rem; color: var(--fbs-leise); text-align: right; }

.fbs-kassenform { order: 1; }
.fbs-kassenform h2 + .fbs-feld { margin-top: 0; }
.fbs-kassenform h2:not(:first-of-type) { margin-top: 1.8rem; }
.fbs-feld { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; flex: 1; }
.fbs-feld label { font-size: .9rem; font-weight: 600; }
.fbs-feld input {
	width: 100%;
	padding: .75rem .9rem;
	border-radius: 8px;
	border: 1px solid rgba(255,255,255,.22);
	background: rgba(255,255,255,.06);
	color: #fff; font: inherit; font-size: 1rem;
}
.fbs-feld input:focus { outline: none; border-color: var(--fbs-gold); box-shadow: 0 0 0 3px rgba(196,163,90,.25); }
.fbs-zeile { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; }
.fbs-checks { margin: 1.6rem 0; display: grid; gap: .9rem; }
.fbs-check { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; font-size: .92rem; line-height: 1.5; cursor: pointer; }
.fbs-check input { accent-color: var(--fbs-gold); width: 1.15rem; height: 1.15rem; margin-top: .15rem; }
.fbs-check a, .fbs-checks a { color: var(--fbs-gold); text-decoration: underline; }
.fbs-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Danke ---------- */
.fbs-danke { max-width: 42rem; }
.fbs-warten { width: 2.4rem; height: 2.4rem; border: 3px solid var(--fbs-linie); border-top-color: var(--fbs-gold); border-radius: 50%; animation: fbs-dreh 1s linear infinite; margin: 1.5rem 0; }
@keyframes fbs-dreh { to { transform: rotate(360deg); } }

/* ---------- Mobil ---------- */
@media (max-width: 820px) {
	.fbs-buch-kopf { grid-template-columns: 1fr; }
	.fbs-cover { position: static; max-width: 260px; margin: 0 auto; }
	.fbs-kasse-raster { grid-template-columns: 1fr; }
	.fbs-zusammenfassung { order: 0; position: static; }
	.fbs-zeile { grid-template-columns: 1fr; gap: 0; }
	.fbs .fbs-papier p { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
	.fbs *, .fbs *::before, .fbs *::after { transition: none !important; animation: none !important; }
}

/* ---------- Begleitmaterial ---------- */
.fbs-material-hinweis {
	margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between;
	background: var(--fbs-karte); border: 1px solid var(--fbs-linie); border-left: 4px solid var(--fbs-teal);
	border-radius: var(--fbs-radius); padding: 1.3rem 1.6rem;
}
.fbs .fbs-material-hinweis h2 { font-size: 1.25rem; margin: 0 0 .3rem; text-align: left; }
.fbs .fbs-material-hinweis p { margin: 0; }
.fbs-material-hinweis a:not(.fbs-btn) { color: var(--fbs-gold); }
.fbs-material-kopf { display: grid; grid-template-columns: 140px 1fr; gap: 2rem; align-items: start; margin-bottom: 2rem; }
.fbs-dateien { list-style: none; padding: 0 !important; margin: 0 0 1.5rem; display: grid; gap: .7rem; }
.fbs-datei {
	display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center;
	background: var(--fbs-karte); border: 1px solid var(--fbs-linie); border-radius: var(--fbs-radius); padding: .9rem 1.1rem;
}
.fbs-datei-typ {
	min-width: 3.4rem; text-align: center; padding: .45rem .5rem; border-radius: 6px;
	background: rgba(23, 134, 135, .2); color: #7fd3d4; font: 700 .75rem/1 'SF Mono', 'Fira Code', monospace; letter-spacing: .05em;
}
.fbs-datei-info { display: flex; flex-direction: column; min-width: 0; }
.fbs-datei-info strong { overflow-wrap: anywhere; }
.fbs-datei-info span { font-size: .92rem; opacity: .9; }
.fbs .fbs-alle { margin: 0 0 2rem; }
.fbs-material-buch { border-top: 1px solid var(--fbs-linie); padding-top: 1.2rem; }
.fbs-material-buch a { color: var(--fbs-gold); }
@media (max-width: 820px) {
	.fbs-material-kopf { grid-template-columns: 90px 1fr; gap: 1rem; }
	.fbs-datei { grid-template-columns: 1fr; }
	.fbs-datei-typ { justify-self: start; }
}

/* ==================================================================
 * Gegen das Theme durchsetzen (1.1.4)
 * Das fleet-data-Theme setzt p/li/label/Absende-Knöpfe mit !important.
 * Knöpfe in den Hausfarben (Petrol wie „Beratung vereinbaren“), Gold nur für Preise.
 * ================================================================== */
.fbs-seite .fbs .fbs-btn,
.fbs-seite .fbs button.fbs-btn[type="submit"],
.page-content .fbs a.fbs-btn {
	background: #178687 !important;
	border: 2px solid #178687 !important;
	color: #ffffff !important;
	box-shadow: 0 4px 14px rgba(23, 134, 135, .35);
	text-shadow: none !important;
}
.fbs-seite .fbs .fbs-btn:hover,
.fbs-seite .fbs button.fbs-btn[type="submit"]:hover,
.page-content .fbs a.fbs-btn:hover {
	background: #1a9a9b !important;
	border-color: #1a9a9b !important;
	color: #ffffff !important;
}
.fbs-seite .fbs .fbs-btn-zweit,
.page-content .fbs a.fbs-btn.fbs-btn-zweit {
	background: transparent !important;
	border: 2px solid rgba(255, 255, 255, .55) !important;
	color: #ffffff !important;
	box-shadow: none;
}
.fbs-seite .fbs .fbs-btn-zweit:hover,
.page-content .fbs a.fbs-btn.fbs-btn-zweit:hover {
	background: rgba(255, 255, 255, .1) !important;
	border-color: #ffffff !important;
	color: #ffffff !important;
}
.fbs-seite .fbs .fbs-btn:focus-visible { outline: 3px solid #C4A35A !important; outline-offset: 3px; }

/* Kaufbox: Formatname gut lesbar */
.fbs-seite .fbs .fbs-format,
.fbs-seite .fbs .fbs-format-name { color: #ffffff !important; }
.fbs-seite .fbs .fbs-format small { color: #B0BEC5 !important; }
.fbs-seite .fbs .fbs-format-preis { color: #C4A35A !important; }
.fbs-seite .fbs .fbs-format input[type="radio"] { accent-color: #178687; }

/* Papier (Inhaltsverzeichnis, Leseprobe): dunkle Schrift auf hellem Grund */
.fbs-seite .fbs .fbs-papier,
.fbs-seite .fbs .fbs-papier p,
.fbs-seite .fbs .fbs-papier li,
.fbs-seite .fbs .fbs-papier ul,
.fbs-seite .fbs .fbs-papier ol,
.fbs-seite .fbs .fbs-papier span,
.fbs-seite .fbs .fbs-papier strong,
.fbs-seite .fbs .fbs-papier h1,
.fbs-seite .fbs .fbs-papier h2,
.fbs-seite .fbs .fbs-papier h3,
.fbs-seite .fbs .fbs-papier h4,
.fbs-seite .fbs .fbs-papier blockquote { color: #2A2723 !important; }
.fbs-seite .fbs .fbs-papier em { color: #6b6358 !important; }
.fbs-seite .fbs .fbs-papier a:not(.fbs-btn) { color: #0f6a6b !important; }
.fbs-seite .fbs .fbs-papier .fbs-btn-zweit {
	border-color: #178687 !important;
	color: #0f6a6b !important;
}
.fbs-seite .fbs .fbs-papier .fbs-btn-zweit:hover { background: rgba(23, 134, 135, .1) !important; }

/* Tabs */
.fbs-seite .fbs .fbs-tab[aria-selected="true"] { color: #ffffff !important; border-bottom-color: #178687 !important; }
.fbs-seite .fbs .fbs-material-kurz { margin: .9rem 0 0; padding: .7rem 1rem; border-left: 3px solid #178687; background: rgba(23, 134, 135, .12); border-radius: 0 6px 6px 0; font-size: .95rem; }
.fbs-seite .fbs .fbs-material-kurz-titel { font-weight: 700; color: #ffffff; }
.fbs-seite .fbs .fbs-material-kurz a { color: #5fd0d1 !important; font-weight: 600; }

/* Kasse: Beschriftungen gegen das Theme (label ist dort dunkel) */
.fbs-seite .fbs-kasse label,
.fbs-seite .fbs-kasse label span,
.fbs-seite .fbs-kasse legend,
.fbs-seite .fbs-kasse h2,
.fbs-seite .fbs-kasse h3 { color: #ffffff !important; }
.fbs-seite .fbs-kasse label { font-weight: 600; }
.fbs-seite .fbs-kasse .fbs-check,
.fbs-seite .fbs-kasse .fbs-check span { color: rgba(255, 255, 255, .92) !important; font-weight: 400; }
.fbs-seite .fbs-kasse input[type="checkbox"] { accent-color: #178687; }
.fbs-seite .fbs-kasse input[type="text"],
.fbs-seite .fbs-kasse input[type="email"] { color: #ffffff !important; }

/* Leseprobe-Download über den Reitern */
.fbs-seite .fbs .fbs-probe-leiste { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap; margin: 0 0 1.5rem; padding: 1rem 1.25rem; background: rgba(23, 134, 135, .14); border: 1px solid rgba(23, 134, 135, .5); border-radius: 10px; }
.fbs-seite .fbs .fbs-probe-leiste strong { display: block; color: #ffffff !important; font-size: 1.05rem; }
.fbs-seite .fbs .fbs-probe-leiste span { color: #B0BEC5 !important; font-size: .92rem; }
.fbs-seite .fbs .fbs-probe-leiste .fbs-btn span { color: inherit !important; font-size: inherit; }
