/*
  Reifenzentrale - Design 2026, Schritt 1: Seitenrahmen
  (Kopf, Kategorie-Spalte, Fuss, Grundstil, schmale Bildschirme)
  Wird nach stylesheet.css geladen und ueberschreibt nur, was hier steht.
*/

:root {
	--rl-orange: #f07c00;
	--rl-orange-hell: #ff9524;
	--rl-blau: #0b3a86;
	--rl-blau-dunkel: #082b66;
	--rl-grafit: #3a3b3d;
	--rl-grafit-dunkel: #2a2b2d;
	--rl-grund: #e9eaec;
	--rl-linie: #d3d6db;
	--rl-text: #1f2329;
	--rl-text-2: #4d535c;
	--rl-link: #0645ad;
	--rl-radius: 6px;
	--rl-spalte: 240px;
	--rl-schrift: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Grundstil ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--rl-grund);
	color: var(--rl-text);
	font-family: var(--rl-schrift);
	font-size: 14px;
	line-height: 1.4;
}
body, td, th, input, select, textarea, button { font-family: var(--rl-schrift); }
.rl-icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.rl-nur-schmal { display: none !important; }

.rl-knopf {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 36px; padding: 0 14px; box-sizing: border-box;
	border: 1px solid transparent; border-radius: var(--rl-radius);
	font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer;
}
.rl-knopf-orange { background: var(--rl-orange); border-color: #d96f00; color: #1a1a1a; }
.rl-knopf-orange:hover, .rl-knopf-orange:focus { background: var(--rl-orange-hell); color: #1a1a1a; text-decoration: none; }
.rl-knopf-icon { width: 40px; padding: 0; }
/* Knoepfe statt der alten Bild-Buttons (tep_image_submit / tep_image_button) */
button.rl-knopf, span.rl-knopf { min-height: 40px; font-family: var(--rl-schrift); line-height: 1.2; vertical-align: middle; margin: 2px 0; }
button.rl-knopf { -webkit-appearance: none; appearance: none; }
button.rl-knopf[disabled] { opacity: .5; cursor: default; }
.rl-knopf-hell { background: #fff; border-color: #b9bec6; color: var(--rl-text); }
.rl-knopf-hell:hover, .rl-knopf-hell:focus, a:hover > .rl-knopf-hell { background: #f1f2f4; border-color: #8f959e; color: var(--rl-text); text-decoration: none; }
a:hover > .rl-knopf-orange { background: var(--rl-orange-hell); }
a:has(> .rl-knopf), a:hover:has(> .rl-knopf) { text-decoration: none; }
.rl-knopf-klein { min-height: 32px !important; padding: 0 10px; font-size: 13px; font-weight: 500; }
.rl-knopf .rl-icon { width: 18px; height: 18px; }
/* alte Text-Knoepfe (stylesheet.css / stylesheet_navButtons.css) im neuen Stil */
a.button-size-2, a.textButton, a.TextButton, .TextButton {
	display: inline-flex; align-items: center; justify-content: center;
	width: auto; height: auto; min-height: 40px; padding: 0 14px; box-sizing: border-box;
	background: var(--rl-orange); border: 1px solid #d96f00; border-radius: var(--rl-radius);
	color: #1a1a1a; font-family: var(--rl-schrift); font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
}
a.button-size-2:hover, a.textButton:hover, a.TextButton:hover, .TextButton:hover { background: var(--rl-orange-hell); color: #1a1a1a; text-decoration: none; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, label:focus-visible {
	outline: 3px solid var(--rl-orange); outline-offset: 2px;
}

/* ---------- Kopf ---------- */
.rl-kopf-band {
	display: flex; justify-content: space-between; align-items: stretch;
	min-height: 136px; overflow: hidden;
	background: linear-gradient(180deg, #dcdcdd 0%, #b9babc 100%);
	border-bottom: 1px solid #c4c6c9;
}
.rl-kopf-links { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 14px 24px; min-width: 0; }
.rl-logo img { display: block; width: 250px; height: auto; }
.rl-kopf-telefon { font-size: 13px; color: var(--rl-text); }
.rl-kopf-telefon a { color: var(--rl-text); font-weight: 700; text-decoration: none; white-space: nowrap; }
.rl-kopf-deko { position: relative; flex: 0 1 auto; display: flex; align-items: flex-end; min-width: 0; }
.rl-kopf-deko > img:first-child { display: block; height: 136px; width: auto; }
.rl-tst { position: absolute; top: 12px; right: 16px; height: 56px; width: auto; }

.rl-leiste {
	display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap;
	min-height: 46px; padding: 5px 16px 5px 24px; box-sizing: border-box;
	background: linear-gradient(180deg, #47484b 0%, var(--rl-grafit) 100%);
	color: #fff; font-size: 13px;
}
.rl-leiste a, .rl-leiste a.headerNavigation { color: #fff; text-decoration: none; }
.rl-leiste a:hover { color: #fff; text-decoration: underline; }
.rl-brotkrumen { flex: 1 1 auto; min-width: 0; font-weight: 600; }
.rl-leiste-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.rl-leiste-links > a:not(.rl-knopf) { padding: 6px 10px; border-right: 1px solid #6a6c70; line-height: 1; }
.rl-leiste-links > a:not(.rl-knopf):last-of-type { border-right: none; }
.rl-leiste-links .rl-korb { margin-left: 10px; color: #1a1a1a; }
.rl-leiste-links .rl-korb:hover { color: #1a1a1a; text-decoration: none; }
.rl-menue-knopf { display: none; }
.rl-nav-schalter { position: absolute; left: -9999px; }

.rl-meldung { padding: 10px 24px; font-weight: 600; }
.rl-meldung-fehler { background: #fde8e6; color: #8a1c12; border-bottom: 1px solid #f1b8b1; }
.rl-meldung-info { background: #e5f4ea; color: #155c2f; border-bottom: 1px solid #b7dfc4; }

/* ---------- Seitenrahmen (Layout-Tabelle der Seiten) ---------- */
.rl-page { padding: 18px 16px 24px; }
.rl-page > table { background: none !important; border-spacing: 0; }
.rl-page > table > tbody > tr > td { vertical-align: top; }
.rl-page > table > tbody > tr > td:first-child { width: var(--rl-spalte); padding-right: 20px; }
.rl-page > table > tbody > tr > td:first-child > table { width: 100%; }

/* ---------- Linke Spalte ---------- */
td.rl-spalte { padding: 0 0 14px 0; }
.rl-kategorien {
	display: flex; flex-direction: column;
	border-radius: var(--rl-radius); overflow: hidden;
	background: var(--rl-grafit-dunkel);
	box-shadow: 0 1px 2px rgba(0,0,0,.18);
}
.rl-kat {
	display: flex; align-items: center; gap: 14px;
	min-height: 54px; padding: 6px 14px; box-sizing: border-box;
	background: linear-gradient(180deg, #4a4b4e 0%, #333436 100%);
	border-top: 1px solid #5a5b5e;
	color: #fff; font-weight: 600; font-size: 15px; line-height: 1.15; text-decoration: none;
}
.rl-kat:first-child { border-top: none; }
a.rl-kat:hover { background: linear-gradient(180deg, #5a5b5f 0%, #424346 100%); color: #fff; text-decoration: none; }
.rl-kat-aktiv, a.rl-kat-aktiv:hover {
	background: linear-gradient(180deg, var(--rl-orange-hell) 0%, var(--rl-orange) 100%);
	border-top-color: var(--rl-orange-hell); color: #1a1a1a;
}
.rl-kat-aus { color: #b9bbbf; cursor: default; }
.rl-kat-icon { width: 34px; height: 34px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.rl-box {
	background: #fff; border: 1px solid var(--rl-linie); border-radius: var(--rl-radius);
	padding: 12px 14px; box-shadow: 0 1px 2px rgba(0,0,0,.06);
	position: relative;
}
.rl-box-titel { display: block; margin: 0 0 8px; color: var(--rl-blau); font-weight: 700; font-size: 16px; }
.rl-suchfeld { display: flex; gap: 6px; }
.rl-suchfeld input[type=text], .rl-suchfeld input:not([type]) {
	flex: 1 1 auto; min-width: 0; height: 36px; box-sizing: border-box;
	padding: 0 8px; border: 1px solid #a9aeb5; border-radius: 4px; font-size: 13px;
}
.rl-hilfe-link { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--rl-link); text-decoration: underline; }
.rl-matchcode-hilfe { position: absolute; left: 0; top: calc(100% + 10px); z-index: 30; width: 300px; max-width: calc(100vw - 32px); box-sizing: border-box;
	padding: 0 0 12px; background: #fff; border: 1px solid var(--rl-linie); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.22); font-size: 13px; color: var(--rl-text); }
.rl-matchcode-hilfe[hidden] { display: none; }
.rl-matchcode-hilfe::before { content: ""; position: absolute; left: 26px; top: -7px; width: 12px; height: 12px; background: var(--rl-blau); transform: rotate(45deg); }
.rl-mh-kopf { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 10px 9px 14px; border-radius: 7px 7px 0 0; background: var(--rl-blau); color: #fff; font-weight: 700; font-size: 14px; }
.rl-mh-zu { flex: none; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 18px; line-height: 26px; cursor: pointer; }
.rl-mh-zu:hover, .rl-mh-zu:focus { background: rgba(255,255,255,.3); }
.rl-mh-intro { margin: 10px 14px 6px; color: var(--rl-text-2); font-size: 12px; line-height: 1.4; }
.rl-mh-liste { margin: 0; padding: 0 14px; list-style: none; }
.rl-mh-liste li { padding: 8px 0; border-bottom: 1px solid #eceef1; }
.rl-mh-liste li:last-child { border-bottom: 0; }
.rl-mh-was { display: block; margin-bottom: 4px; color: var(--rl-text-2); }
.rl-mh-was b { color: var(--rl-text); }
.rl-mh-code { display: inline-block; padding: 3px 9px; border: 1px solid #f0b46e; border-radius: 4px; background: #fff4e6; color: #8a4600; font: 600 13px/1.4 Consolas, "Courier New", monospace; letter-spacing: .5px; cursor: pointer; }
.rl-mh-code:hover, .rl-mh-code:focus { background: #ffe6c7; border-color: var(--rl-orange); }
.rl-mh-tipp { display: block; margin-top: 4px; font-size: 11px; color: var(--rl-text-2); }
.rl-mh-fuss { margin: 8px 14px 0; padding-top: 8px; border-top: 1px solid var(--rl-linie); font-size: 11px; color: var(--rl-text-2); }

.rl-whoami { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.rl-whoami-name { display: flex; flex-direction: column; padding-bottom: 8px; border-bottom: 1px solid var(--rl-linie); }
.rl-whoami-name span { color: var(--rl-text-2); }
.rl-whoami-name strong { color: #b85a00; font-size: 16px; }
.rl-whoami-name a, .rl-whoami > a { color: var(--rl-link); text-decoration: underline; }
.rl-whoami-filiale { font-weight: 600; }

.rl-menue-konto { padding: 4px 0; }
.rl-menue-konto a { display: flex; align-items: center; min-height: 46px; padding: 0 16px; border-top: 1px solid var(--rl-linie); color: var(--rl-text); text-decoration: none; font-size: 15px; }
.rl-menue-konto a:first-child { border-top: none; }

/* ---------- Fuss ---------- */
.rl-fuss-leiste { justify-content: center; padding: 8px 24px; }
.rl-fuss-leiste strong { font-weight: 700; }
.rl-fuss-links { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }
.rl-copyright { padding: 14px 16px 24px; text-align: center; font-size: 12px; color: var(--rl-text-2); }

/* Leere rechte osC-Spalte (column_right, 195px, nur <tr><td></td></tr>) ausblenden:
   sie schob bei Fenstern unter ca. 1350px Warenkorb-Knopf und VK aus dem sichtbaren Bereich */
.rl-page > table > tbody > tr > td:last-child:not(:first-child):has(> table > tbody > tr:only-child > td:only-child:empty) { display: none; }
/* Trefferliste: Spalten ohne einen einzigen Wert (Gewicht, Freigabe, Zustand) ganz ausblenden, spart Breite */
table.rl-liste:not(:has(td.plist-data.plist-weight:not(.plist-leer))) .plist-weight,
table.rl-liste:not(:has(td.plist-data.plist-approval:not(.plist-leer))) .plist-approval,
table.rl-liste:not(:has(td.plist-data.plist-condition:not(.plist-leer))) .plist-condition { display: none; }
@media (max-width: 1180px) and (min-width: 901px) {
	table.rl-liste > tbody > tr:first-child > td, table.rl-liste td.plist-data { padding-left: 5px; padding-right: 5px; }
	table.rl-liste > tbody > tr:first-child > td.plist-rating { white-space: normal; }
}

/* ---------- Mittlere Breite: Deko verkleinern ---------- */
@media (max-width: 1180px) {
	.rl-kopf-deko > img:first-child { height: 104px; margin-top: auto; }
	.rl-leiste-links > a.rl-nur-breit:not(.rl-korb) { padding: 6px 7px; }
}

/* ---------- Schmale Bildschirme (Tablet hochkant, Handy) ---------- */
@media (max-width: 900px) {
	.rl-nur-breit { display: none !important; }
	.rl-nur-schmal { display: block !important; }
	svg.rl-nur-schmal { display: inline-block !important; }

	.rl-kopf-band { min-height: 0; }
	.rl-kopf-links { padding: 10px 14px; gap: 4px; }
	.rl-logo img { width: 150px; }
	.rl-kopf-telefon { display: none; }
	.rl-kopf-deko { flex: 1 1 0; align-self: stretch; overflow: hidden; }
	.rl-kopf-deko > img:first-child { position: absolute; right: 0; bottom: 0; width: calc(100% - 4px); height: auto; max-width: 420px; }
	.rl-tst { top: 6px; right: 8px; height: 32px; }

	.rl-leiste { padding: 4px 10px; flex-wrap: nowrap; }
	.rl-brotkrumen { display: none; }
	.rl-menue-knopf {
		display: inline-flex; align-items: center; gap: 8px;
		min-height: 44px; padding: 0 8px; cursor: pointer;
		font-size: 16px; font-weight: 600; margin-right: auto;
	}
	.rl-menue-knopf .rl-icon { width: 26px; height: 26px; }
	.rl-icon-zu { display: none; }
	.rl-leiste-links { flex-wrap: nowrap; gap: 6px; }
	.rl-leiste-links > a.rl-konto { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0; border-right: 1px solid #6a6c70; }
	.rl-leiste-links .rl-korb { min-height: 40px; margin-left: 4px; }
	.rl-leiste-links .rl-korb .rl-icon { width: 22px; height: 22px; }

	.rl-page { padding: 12px 10px 20px; }
	.rl-page > table, .rl-page > table > tbody, .rl-page > table > tbody > tr, .rl-page > table > tbody > tr > td {
		display: block; width: auto !important; box-sizing: border-box;
	}
	.rl-page > table > tbody > tr > td:first-child { padding-right: 0; }
	.rl-page > table > tbody > tr > td:not(:first-child) { overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.rl-page > table > tbody > tr > td:first-child > table,
	.rl-page > table > tbody > tr > td:first-child > table > tbody,
	.rl-page > table > tbody > tr > td:first-child > table > tbody > tr,
	.rl-page > table > tbody > tr > td:first-child > table > tbody > tr > td { display: block; width: auto !important; }

	/* Menue: linke Spalte nur bei geoeffnetem Menue */
	.rl-page > table > tbody > tr > td:first-child { display: none; }
	.rl-nav-schalter:checked ~ .rl-page > table > tbody > tr > td:first-child { display: block; }
	body:has(.rl-nav-schalter:checked) .rl-icon-auf { display: none; }
	body:has(.rl-nav-schalter:checked) .rl-icon-zu { display: inline-block; }

	.rl-kat { min-height: 52px; font-size: 16px; }
	.rl-kat br { display: none; }
	a.rl-kat::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); }

	.rl-fuss-leiste { flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 12px; }
}

/* =====================================================================
   Schritt 2: Boxen, Ueberschriften, Formulare (bestehende Klassen)
   ===================================================================== */
.rl-karte {
	width: auto; margin: 10px auto 24px; box-sizing: border-box;
	background: #fff; border: 1px solid var(--rl-linie); border-radius: 8px;
	box-shadow: 0 2px 6px rgba(0,0,0,.10); overflow: hidden; text-align: left;
}
.rl-karte-abstand { margin-top: 32px; }
DIV.infoBoxHeading, .rl-karte-titel {
	height: auto; padding: 6px 18px; box-sizing: border-box;
	background: linear-gradient(180deg, #144a9e 0%, var(--rl-blau) 100%); background-image: linear-gradient(180deg, #144a9e 0%, var(--rl-blau) 100%);
	color: #fff; font-family: var(--rl-schrift); font-size: 18px; font-weight: 700; text-align: left;
}
DIV.infoBox, .rl-karte-inhalt { border: none; font-family: var(--rl-schrift); font-size: 14px; background: #fff; }
TD.infoBoxHeading, .infoBoxHeading td { background: var(--rl-blau); color: #fff; font-family: var(--rl-schrift); }
.infoBoxContents { font-family: var(--rl-schrift); font-size: 13px; border-color: var(--rl-linie); border-radius: 6px; }
TD.pageHeading, DIV.pageHeading { font-family: var(--rl-schrift); font-size: 26px; font-weight: 700; color: var(--rl-blau); }
TD.main, P.main, TD.smallText, SPAN.smallText, P.smallText, .boxText { font-family: var(--rl-schrift); }
td.label { font-family: var(--rl-schrift); font-size: 13px; color: var(--rl-text-2); padding-top: 7px; padding-right: 8px; }

.rl-page select, .rl-page input[type=text], .rl-page input[type=password], .rl-page input[type=email],
.rl-page input[type=number], .rl-page input[type=search], .rl-page input:not([type]), .rl-page textarea {
	box-sizing: border-box; min-height: 32px; padding: 3px 8px;
	border: 1px solid #a9aeb5; border-radius: 4px; background-color: #fff;
	font-family: var(--rl-schrift); font-size: 14px; color: var(--rl-text);
}
.rl-page select:focus, .rl-page input:focus, .rl-page textarea:focus { border-color: var(--rl-blau); outline: 2px solid rgba(11,58,134,.25); outline-offset: 0; }
.rl-page input[type=checkbox], .rl-page input[type=radio] { width: 18px; height: 18px; accent-color: var(--rl-blau); vertical-align: middle; }

TABLE.productListing { border-color: var(--rl-linie); }
.productListing-heading { background: var(--rl-blau); background-image: none; color: #fff; font-family: var(--rl-schrift); }
TR.productListing-odd, TR.productListing-odd td, TR.productListing-odd-top td, TR.productListing-odd-bottom td,
TR.accountHistory-odd, TR.addressBook-odd, TR.payment-odd, TR.shippingOptions-odd { background: #f5f6f8; }
.messageStackError, .messageStackWarning, .errorBox { background: #fde8e6; color: #8a1c12; border-radius: 6px; font-family: var(--rl-schrift); }
.messageStackSuccess { background: #e5f4ea; color: #155c2f; border-radius: 6px; }
.moduleRowOver { background-color: #e6eefb; }
.moduleRowSelected { background-color: #eef3fc; }

/* =====================================================================
   Schritt 3: Ergebnisliste (rl_mrad_listing.php)
   ===================================================================== */
.rl-filterleiste {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px;
	margin: 10px 0 14px; padding: 10px 16px; box-sizing: border-box;
	background: #fff; border: 1px solid var(--rl-linie); border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.rl-treffer { font-size: 16px; margin-right: auto; }
.rl-filter-feld { display: flex; align-items: center; gap: 8px; }
.rl-filter-feld label { font-weight: 700; }
.rl-filter-feld select { min-width: 210px; }

.rl-karte-liste { max-width: none; margin: 0 0 20px; }
table.rl-liste { border-collapse: collapse; width: 100%; font-family: var(--rl-schrift); }
table.rl-liste > tbody > tr:first-child > td {
	height: 37px; box-sizing: border-box; padding: 4px 8px; background: linear-gradient(180deg, #144a9e 0%, var(--rl-blau) 100%);
	color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap; vertical-align: middle;
}
table.rl-liste > tbody > tr:first-child a { color: #fff; }
/* Sortierpfeile stehen in eigenen Tabellen mit &nbsp; davor und danach: inline setzen, sonst wird der Kopf drei Zeilen hoch */
table.rl-liste > tbody > tr:first-child > td > table { display: inline-table; vertical-align: middle; }
table.rl-liste > tbody > tr:first-child > td > br, table.rl-liste > tbody > tr:first-child > td > table td:first-child br { display: none; }
table.rl-liste > tbody > tr:first-child > td > a, table.rl-liste > tbody > tr:first-child > td > span { display: inline !important; margin-left: 4px; font-size: 12px; }
table.rl-liste > tbody > tr:first-child table td { color: #fff; font-weight: 700; }
table.rl-liste td.plist-data { padding: 10px 8px; border-top: 1px solid #e3e5e8; vertical-align: middle; font-size: 14px; }
table.rl-liste tr:hover > td.plist-data { background-color: #eef3fc; }
table.rl-liste .preis { font-size: 15px; color: var(--rl-text); }
table.rl-liste .plist-name a { color: var(--rl-text); }
table.rl-liste .plist-name a[style*="blue"] { color: var(--rl-link) !important; }

/* Verfuegbarkeit (rl_verf_knopf): kleine Pille wie im Felgenkonfigurator (.rl-fk-verf) */
a.btnStockGreen, a.btnStockYellow, a.btnStockRed {
	display: inline-block; width: auto; height: auto; min-width: 0; padding: 3px 10px; box-sizing: border-box;
	border: 1px solid; border-radius: 12px; font-size: 12px; font-weight: 600; line-height: 1.4;
	text-decoration: none; white-space: nowrap; background-image: none;
}
a.btnStockGreen br, a.btnStockYellow br, a.btnStockRed br { display: none; }
a.btnStockGreen  { background-color: #dff3e4; border-color: #a9d6b5; color: #1d6b34; }
a.btnStockYellow { background-color: #fff1cc; border-color: #dcb94c; color: #7a5300; }
a.btnStockRed    { background-color: #fde2e1; border-color: #e9a6a2; color: #9b2620; }
a.btnStockGreen:hover, a.btnStockYellow:hover, a.btnStockRed:hover { filter: brightness(0.95); text-decoration: underline; }
a.btnStockGreen, a.btnStockYellow, a.btnStockRed, a.rl-fk-verf { cursor: pointer; }
/* Stern = anklickbar, erklaert in .rl-verf-hinweis ueber der Tabelle */
.rl-verf-stern { margin-left: 2px; font-weight: 700; }
.rl-verf-hinweis { display: flex; align-items: center; gap: 8px; margin: 8px 0 10px; padding: 8px 12px; border: 1px solid #c7d6ee; border-left: 4px solid #0b3a86; border-radius: 6px; background: #eef3fb; color: #0b3a86; font-size: 13px; font-weight: 600; text-align: left; }
.rl-verf-edi { margin-top: 4px; font-size: 12px; color: #4d535c; }
.rl-verf-hinweis::before { content: "i"; flex: none; width: 18px; height: 18px; border-radius: 50%; background: #0b3a86; color: #fff; font: italic 700 12px/18px Georgia, serif; text-align: center; }

.rl-aktionen { display: flex; gap: 6px; justify-content: flex-end; }
.rl-aktion {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	width: 42px; height: 36px; box-sizing: border-box; border-radius: 6px;
	font-weight: 600; font-size: 14px; text-decoration: none;
}
.rl-aktion .rl-icon { width: 20px; height: 20px; }
.rl-aktion-korb { background: var(--rl-orange); border: 1px solid #d96f00; color: #1a1a1a; }
.rl-aktion-korb:hover { background: var(--rl-orange-hell); color: #1a1a1a; text-decoration: none; }
.rl-aktion-angebot { background: #fff; border: 1px solid #6b7078; color: var(--rl-text); }
.rl-aktion-angebot:hover { background: #f2f3f5; color: var(--rl-text); text-decoration: none; }
.rl-aktion-text { display: none; }

/* ---------- Schmale Bildschirme: Boxen, Formulare, Karten ---------- */
@media (max-width: 900px) {
	.rl-karte { margin: 8px 0 16px; max-width: none !important; }
	.rl-karte-inhalt { overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.rl-karte-inhalt > div[style*="padding: 20px"] { padding: 14px !important; }

	.rl-filterleiste { gap: 10px; padding: 10px 12px; }
	.rl-treffer { width: 100%; }
	.rl-filter-feld { width: 100%; flex-direction: column; align-items: stretch; gap: 4px; }
	.rl-filter-feld select { min-width: 0; width: 100%; min-height: 40px; }

	.rl-karte-liste { background: none; border: none; box-shadow: none; overflow: visible; }
	table.rl-liste, table.rl-liste > tbody { display: block; }
	table.rl-liste > tbody > tr:first-child { display: none; }
	table.rl-liste > tbody > tr {
		display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
		grid-template-areas: "name name verf" "ek kb vk" "bild bew bew" "akt akt akt";
		gap: 8px 10px; margin-bottom: 12px; padding: 12px;
		background: #fff !important; border: 1px solid var(--rl-linie); border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.06);
	}
	table.rl-liste td.plist-data { display: block; height: auto; padding: 0; border: none; background: none !important; text-align: left; }
	table.rl-liste td.plist-leer, table.rl-liste td.plist-model, table.rl-liste td.plist-condition { display: none; }
	table.rl-liste td.plist-data:not(.plist-name):not(.plist-quantity):not(.plist-price):not(.plist-kb):not(.plist-calc_price):not(.plist-image):not(.plist-rating):not(.plist-buy_now) { grid-column: 1 / -1; }
	.plist-name { grid-area: name; }
	.plist-quantity { grid-area: verf; justify-self: end; }
	.plist-price { grid-area: ek; }
	.plist-kb { grid-area: kb; }
	.plist-calc_price { grid-area: vk; }
	.plist-image { grid-area: bild; }
	.plist-rating { grid-area: bew; }
	.plist-buy_now { grid-area: akt; }
	table.rl-liste td.plist-price, table.rl-liste td.plist-kb, table.rl-liste td.plist-calc_price { padding: 6px 8px; background: #f5f6f8 !important; border-radius: 6px; }
	table.rl-liste td[data-label]:not([data-label=""]):not(.plist-quantity)::before {
		content: attr(data-label); display: block; margin-bottom: 2px;
		font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--rl-text-2);
	}
	.rl-aktionen { justify-content: stretch; }
	.rl-aktion { flex: 1 1 0; width: auto; height: 46px; font-size: 15px; }
	.rl-aktion-text { display: inline; }
}
@media (max-width: 600px) {
	/* Suchformulare (rl_artikelsuche_*): Tabellenraster aufloesen, sonst bleibt die Tabelle breiter als der Bildschirm */
	.rl-karte-inhalt > div[style*="padding: 20px"] > table,
	.rl-karte-inhalt > div[style*="padding: 20px"] > table > tbody,
	.rl-karte-inhalt > div[style*="padding: 20px"] > table > tbody > tr,
	.rl-karte-inhalt > div[style*="padding: 20px"] > table > tbody > tr > td { display: block; width: auto !important; }
	.rl-karte-inhalt td.label { display: block; width: auto !important; text-align: left; padding: 8px 0 2px; }
	.rl-karte-inhalt td.label + td { display: block; width: auto !important; }
	.rl-karte-inhalt td.label + td select { max-width: 100%; min-height: 40px; }
}

/* ---------- Warenkorb und Kasse (rl_shopping_cart, rl_checkout, rl_checkout_confirmation, checkout_success) ---------- */
.rl-kasse { max-width: 900px; margin: 18px auto 24px; }
.rl-kasse-inhalt { padding: 16px 18px 18px; }
.rl-kasse-meldung { margin: 0 0 14px; padding: 10px 14px; border-radius: var(--rl-radius); }
.rl-kasse-meldung-fehler { background: #fde2e1; border: 1px solid #e9a6a2; color: #8a2419; }
.rl-kasse-hinweis { font-size: 12px; color: var(--rl-text-2); font-style: italic; }
.rl-kasse-leer { padding: 24px 0; text-align: center; }
.rl-kasse-leer p { margin: 0 0 16px; font-size: 15px; }

table.rl-korb { width: 100%; border-collapse: collapse; }
table.rl-korb th { padding: 8px 10px; background: #e9eaec; font-size: 13px; font-weight: 700; text-align: left; vertical-align: bottom; line-height: 1.2; }
table.rl-korb th:first-child { border-radius: 6px 0 0 6px; }
table.rl-korb th:last-child { border-radius: 0 6px 6px 0; }
table.rl-korb th span { font-weight: 400; }
table.rl-korb td { padding: 12px 10px; border-bottom: 1px solid var(--rl-linie); vertical-align: middle; }
table.rl-korb tfoot td { padding: 12px 10px; background: #f3f4f6; border-bottom: none; font-weight: 700; font-size: 15px; white-space: nowrap; }
table.rl-korb tfoot tr.rl-korb-gesamt td { font-size: 16px; border-top: 2px solid var(--rl-linie); }
table.rl-korb .rl-r { text-align: right; white-space: nowrap; }
table.rl-korb .rl-c { text-align: center; }
.rl-korb-bild { width: 70px; }
.rl-korb-bild img { width: 56px; height: 70px; object-fit: contain; display: block; }
.rl-korb-ohnebild { display: block; width: 56px; height: 56px; border-radius: 6px; background: #f1f2f4; }
.rl-korb-artikel b { font-weight: 700; }
.rl-korb-kommentar { font-size: 12px; color: var(--rl-text-2); margin-bottom: 2px; }
.rl-korb-link { font-size: 12px; margin-left: 6px; }
.rl-korb-kommission { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--rl-text-2); }
.rl-korb-kommission input { flex: 1; max-width: 260px; min-height: 30px; padding: 0 8px; border: 1px solid #b9bec6; border-radius: 4px; font: inherit; }
.rl-korb-hinweis { margin-top: 6px; padding: 6px 10px; background: #fff7d6; border: 1px solid #e5cf74; border-radius: 4px; font-size: 12px; }
.rl-korb-zubehoer { margin-top: 6px; padding: 6px 10px; background: #e9f6ec; border: 1px solid #a9d6b5; border-radius: 4px; font-size: 12px; }
.rl-korb-zubehoer ul { margin: 4px 0 0; padding-left: 18px; }
.rl-korb-preis, .rl-korb-summe { font-weight: 600; }
.rl-korb-weg { width: 36px; text-align: center; }
.rl-korb-weg a { display: inline-flex; padding: 6px; border-radius: 6px; color: var(--rl-text-2); }
.rl-korb-weg a:hover { background: #fde2e1; color: #8a2419; }
.rl-korb-weg .rl-icon { width: 20px; height: 20px; }
.rl-korb-verf { font-size: 12px; color: var(--rl-text-2); }
.rl-korb-anzahl { width: 60px; font-weight: 600; }
.rl-menge { display: inline-flex; align-items: stretch; border: 1px solid #b9bec6; border-radius: 6px; overflow: hidden; background: #fff; }
.rl-menge button { width: 32px; min-height: 34px; border: 0; background: #f6f7f8; font-size: 18px; line-height: 1; cursor: pointer; color: var(--rl-text); }
.rl-menge button:hover { background: #e9eaec; }
.rl-menge input { width: 44px; border: 0 !important; border-left: 1px solid #b9bec6 !important; border-right: 1px solid #b9bec6 !important; border-radius: 0 !important; text-align: center; font: inherit; font-weight: 600; padding: 0; min-height: 34px; }
.rl-menge-fest { font-weight: 600; }

.rl-kasse-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.rl-kasse-knoepfe .rl-kasse-weiter { margin-left: auto; min-width: 160px; }
.rl-kasse-knoepfe .rl-kasse-hinweis { flex: 1; min-width: 200px; text-align: right; }

/* Schrittleiste der Kasse */
.rl-kasse-schritte { display: flex; align-items: center; margin: 4px 0 20px; padding: 0; list-style: none; }
.rl-kasse-schritte li { display: flex; align-items: center; gap: 8px; flex: 1; font-size: 14px; color: var(--rl-text-2); white-space: nowrap; }
.rl-kasse-schritte li:last-child { flex: 0 0 auto; }
.rl-kasse-schritte li::after { content: ""; flex: 1; height: 2px; margin: 0 14px; background: var(--rl-linie); }
.rl-kasse-schritte li:last-child::after { display: none; }
.rl-kasse-schritte li span { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: none; border: 2px solid #b9bec6; border-radius: 50%; background: #fff; font-weight: 700; }
.rl-kasse-schritte li.rl-aktiv { color: var(--rl-text); font-weight: 700; }
.rl-kasse-schritte li.rl-aktiv span { background: var(--rl-orange); border-color: var(--rl-orange); color: #1a1a1a; }
.rl-kasse-schritte li.rl-erledigt span { background: var(--rl-blau); border-color: var(--rl-blau); color: #fff; }

/* Bloecke der Kasse */
.rl-kasse-raster { display: grid; grid-template-columns: 1fr 280px; gap: 16px; align-items: start; }
.rl-kasse-raster-3 { grid-template-columns: repeat(3, 1fr); margin-top: 16px; }
.rl-kasse-block { margin: 0 0 12px; border: 1px solid var(--rl-linie); border-radius: var(--rl-radius); background: #fff; overflow: hidden; }
.rl-kasse-raster > .rl-kasse-block, .rl-kasse-raster > div > .rl-kasse-block:last-child { margin-bottom: 0; }
.rl-kasse-block h3 { margin: 0; padding: 8px 14px; background: #f3f4f6; border-bottom: 1px solid var(--rl-linie); color: var(--rl-blau); font-size: 15px; font-weight: 700; }
.rl-kasse-block h3 .rl-korb-link { font-weight: 400; }
.rl-kasse-block > div, .rl-kasse-block > label { margin: 10px 14px; }
.rl-kasse-block textarea { display: block; width: calc(100% - 28px); margin: 10px 14px; box-sizing: border-box; min-height: 70px; padding: 8px; border: 1px solid #b9bec6; border-radius: 4px; font: inherit; resize: vertical; }
.rl-kasse-wahl { display: flex; gap: 8px; align-items: center; }
.rl-kasse-summe .rl-kasse-zeile { display: flex; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--rl-linie); }
.rl-kasse-fertig { padding: 10px 0 4px; text-align: center; }
.rl-kasse-fertig h2 { margin: 0 0 12px; color: var(--rl-blau); font-size: 22px; }

@media (max-width: 760px) {
	.rl-kasse { margin: 8px 0 16px; }
	.rl-kasse-inhalt { padding: 12px; }
	.rl-kasse-raster, .rl-kasse-raster-3 { grid-template-columns: 1fr; }
	.rl-kasse-schritte li { font-size: 0; }
	.rl-kasse-schritte li.rl-aktiv { font-size: 13px; }
	table.rl-korb thead { display: none; }
	table.rl-korb, table.rl-korb tbody, table.rl-korb tfoot { display: block; }
	table.rl-korb tbody tr { display: grid; grid-template-columns: 64px 1fr auto; gap: 6px 10px; padding: 10px 0; border-bottom: 1px solid var(--rl-linie); }
	table.rl-korb tbody td { display: block; padding: 0; border: none; }
	table.rl-korb tbody td.rl-korb-bild { grid-row: 1 / span 3; }
	table.rl-korb tbody td.rl-korb-artikel { grid-column: 2 / span 2; }
	table.rl-korb tbody td[data-titel] { grid-column: 2; text-align: left; }
	table.rl-korb tbody td[data-titel]::before { content: attr(data-titel) ": "; font-weight: 400; color: var(--rl-text-2); font-size: 12px; }
	table.rl-korb tbody td.rl-korb-weg { grid-column: 3; grid-row: 2; }
	table.rl-korb-pruefen tbody tr { grid-template-columns: 44px 1fr; }
	table.rl-korb-pruefen tbody td.rl-korb-anzahl { grid-row: 1 / span 3; }
	table.rl-korb tfoot tr { display: flex; justify-content: space-between; }
	table.rl-korb tfoot td:empty { display: none; }
	.rl-kasse-knoepfe .rl-knopf { flex: 1 1 100%; }
	.rl-kasse-knoepfe .rl-kasse-hinweis { text-align: left; }
}

/* ---------- Bestandsinfo-Fenster (design/bestandsinfo.js) und Verfuegbarkeit in Warenkorb/Kasse ---------- */
dialog.rl-bestandsinfo { position: fixed; inset: 0 12px; margin: auto !important; width: auto; max-width: 600px; height: fit-content; max-height: calc(100vh - 40px); box-sizing: border-box; padding: 0; border: 0; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.3); overflow: hidden; }
dialog.rl-bestandsinfo::backdrop { background: rgba(20,22,26,.55); }
dialog.rl-bestandsinfo iframe { display: block; width: 100%; height: 350px; max-height: calc(100vh - 40px); border: 0; }
.rl-korb-verf { margin-top: 6px; }
