/*
 * tidløs Bewertungen – Grundgestaltung (Bausteine aus tidlos-bewertungen.php).
 * Farben aus dem Projekt: Grün #2d4f22, Text #30372c, Grau #636b5e, Sand #ece6db, Hell #fcfbf8.
 * Sterne in Gold #c8932e (gedämpft, passt zum Sand), leere Sterne #dfe4d8.
 * Feinschliff des Designs folgt nach Abstimmung mit Jan.
 */
.tdl-sterne{position:relative;display:inline-flex;flex:none;line-height:0;vertical-align:-.15em}
.tdl-sterne svg{width:1em;height:1em;fill:currentColor;flex:none}
.tdl-sterne-leer,.tdl-sterne-voll{display:inline-flex;gap:.08em}
.tdl-sterne-leer{color:#dfe4d8}
.tdl-sterne-voll{position:absolute;inset:0 auto 0 0;overflow:hidden;color:#c8932e;white-space:nowrap}

/* Abzeichen */
.tdl-bew-abzeichen{display:inline-flex;align-items:center;gap:.5em;font-size:14px;line-height:1.3;color:#30372c;text-decoration:none;white-space:nowrap}
.tdl-bew-abzeichen .tdl-sterne{font-size:1.05em}
.tdl-bew-note{font-weight:600}
.tdl-bew-anzahl{color:#636b5e}
a.tdl-bew-abzeichen:hover .tdl-bew-anzahl{color:#2d4f22;text-decoration:underline;text-underline-offset:3px}
.tdl-bew-abzeichen--hell{color:#fff}
.tdl-bew-abzeichen--hell .tdl-bew-anzahl{color:rgba(255,255,255,.8)}
.tdl-bew-abzeichen--hell .tdl-sterne-leer{color:rgba(255,255,255,.35)}
.tdl-bew-abzeichen--kompakt{font-size:13px;gap:.4em}

/* Quelle-Link */
.tdl-bew-quelle{display:inline-flex;align-items:center;gap:.4em;margin-top:18px;font-size:14px;color:#2d4f22;text-decoration:underline;text-underline-offset:4px}
.tdl-bew-quelle:hover{color:#21391a}

/* Karte */
.tdl-bew-karte{margin:0;display:flex;flex-direction:column;gap:14px;height:100%;padding:26px;border-radius:18px;background:#fcfbf8;border:1px solid #ece6db;color:#30372c}
.tdl-bew-karte .tdl-sterne{font-size:15px}
.tdl-bew-karte blockquote{margin:0;flex:1}
.tdl-bew-karte blockquote p{margin:0;font-size:15px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:7;-webkit-box-orient:vertical;overflow:hidden}
.tdl-bew-karte figcaption{display:flex;align-items:center;gap:12px;font-size:14px}
.tdl-bew-karte figcaption strong{display:block;font-weight:600}
.tdl-bew-karte figcaption small{display:block;font-size:12px;color:#636b5e;margin-top:2px}
.tdl-bew-initial{display:grid;place-items:center;width:38px;height:38px;border-radius:999px;background:#eef1e8;color:#2d4f22;font-weight:600;flex:none}

/* Zitat groß */
.tdl-bew-karte--gross{padding:clamp(26px,4vw,44px)}
.tdl-bew-karte--gross blockquote p{font-size:clamp(18px,2.2vw,24px);line-height:1.45;-webkit-line-clamp:unset}

/* Zahl */
.tdl-bew-zahl{display:flex;flex-direction:column;align-items:flex-start;gap:8px;color:#30372c}
.tdl-bew-zahl-note{font-size:clamp(48px,7vw,72px);font-weight:500;line-height:1;letter-spacing:-.02em}
.tdl-bew-zahl .tdl-sterne{font-size:20px}
.tdl-bew-zahl-text{font-size:15px;color:#636b5e}

/* Karussell */
.tdl-bew-karussell{display:flex;flex-direction:column}
.tdl-bew-kopf{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px 24px;margin-bottom:24px}
.tdl-bew-titel{margin:0;font-size:clamp(26px,3.2vw,38px);font-weight:500;line-height:1.15;letter-spacing:-.01em}
.tdl-bew-kopf-rechts{display:flex;align-items:center;gap:18px}
.tdl-bew-nav{display:inline-flex;gap:8px}
.tdl-bew-nav button{display:grid;place-items:center;width:42px;height:42px;border-radius:999px;border:1px solid #d1d9c8;background:transparent;color:#30372c;cursor:pointer;font-size:16px;transition:background-color .2s,color .2s,border-color .2s}
.tdl-bew-nav button:hover{background:#2d4f22;border-color:#2d4f22;color:#fff}
.tdl-bew-liste{list-style:none;margin:0;padding:0 0 6px;display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 2 * 18px) / 3);column-gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
.tdl-bew-liste::-webkit-scrollbar{display:none}
.tdl-bew-liste>li{scroll-snap-align:start;margin:0}
.tdl-bew-liste:focus-visible{outline:2px solid #2d4f22;outline-offset:4px;border-radius:18px}
@media (max-width:1024px){.tdl-bew-liste{grid-auto-columns:calc((100% - 18px) / 2)}}
@media (max-width:640px){
	.tdl-bew-liste{grid-auto-columns:86%;column-gap:12px}
	.tdl-bew-nav{display:none}
	.tdl-bew-karte{padding:22px}
}

/* ================================================================
 * Kundenbewertungen (tidlos-kundenbewertungen.php), seit 01.12.2026
 * ================================================================ */

/* Karte mit bewertetem Stück */
.tdl-kb-karte .tdl-kb-shoptext{margin:0;font-size:14px;line-height:1.55;color:#4a5543}
.tdl-kb-karte .tdl-kb-shoptext strong{font-weight:600;color:#30372c}
.tdl-kb-produkt{display:flex;align-items:center;gap:12px;margin-top:4px;padding:10px;border-radius:12px;background:#fff;border:1px solid #ece6db;color:#30372c;text-decoration:none;transition:border-color .2s}
.tdl-kb-produkt:hover{border-color:#b9c4ad}
.tdl-kb-produkt img{width:56px;height:56px;object-fit:cover;border-radius:8px;background:#ece6db;flex:none}
.tdl-kb-produkt span{display:flex;flex-direction:column;gap:2px;font-size:14px;line-height:1.35;min-width:0}
.tdl-kb-produkt small{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:#8a9283}
.tdl-kb-produkt em{font-style:normal;font-size:12px;color:#8a5a2b}

/* Raster */
.tdl-kb-raster{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.tdl-kb-raster>li{margin:0}
@media (max-width:1024px){.tdl-kb-raster{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.tdl-kb-raster{grid-template-columns:minmax(0,1fr);gap:12px}}

/* Seite /bewertungen/ */
.tdl-kb-seite{display:flex;flex-direction:column;gap:56px}
.tdl-kb-uebersicht{display:flex;flex-wrap:wrap;gap:24px 64px}
.tdl-kb-zahl{display:flex;flex-direction:column;align-items:flex-start;gap:8px;color:#30372c}
.tdl-kb-zahl .tdl-sterne{font-size:20px}
.tdl-kb-pruefung{padding:26px 28px;border-radius:18px;background:#e3e8db;color:#4a5543;font-size:15px;line-height:1.65}
.tdl-kb-pruefung h2{margin:0 0 10px;font-size:19px;font-weight:500;color:#263221}
.tdl-kb-pruefung p{margin:0 0 10px}
.tdl-kb-pruefung p:last-child{margin:0}
/* Die Textseite gibt eine schmale Spalte vor, die Bewertungen dürfen breiter laufen */
body:not(#tdl) .tdl-seite-text:has(.tdl-kb-seite){max-width:1100px}

/* Seite /bewerten/ */
.tdl-kb{max-width:720px;color:#30372c}
.tdl-kb-kopf h2,.tdl-kb-meldung h2{margin:0 0 12px;font-size:clamp(24px,3vw,32px);font-weight:500;line-height:1.2;letter-spacing:-.01em;color:#263221}
.tdl-kb-kopf p,.tdl-kb-meldung p{margin:0 0 14px;font-size:16px;line-height:1.65;color:#4a5543}
.tdl-kb-kopf{margin-bottom:26px}
.tdl-kb-form{display:flex;flex-direction:column;gap:22px}
.tdl-kb-stueck{display:grid;grid-template-columns:96px minmax(0,1fr);gap:20px;margin:0;padding:20px;border:1px solid #ece6db;border-radius:18px;background:#fcfbf8}
.tdl-kb-stueck>img{width:96px;height:96px;object-fit:cover;border-radius:12px;background:#ece6db}
.tdl-kb-stueck-name{margin:0;font-size:16px;font-weight:600;color:#263221}
.tdl-kb-stueck-text{display:flex;flex-direction:column;gap:12px;min-width:0}
.tdl-kb-stuecke{display:flex;flex-wrap:wrap;gap:10px}
.tdl-kb-stueck-mini{display:flex;align-items:center;gap:10px;padding:8px 14px 8px 8px;border-radius:12px;background:#fcfbf8;border:1px solid #ece6db;font-size:14px}
.tdl-kb-stueck-mini img{width:44px;height:44px;object-fit:cover;border-radius:8px}

/* Sterne-Auswahl: DOM 5→1, Anzeige 1→5 */
.tdl-kb-sterne-wahl{display:inline-flex;flex-direction:row-reverse;justify-content:flex-end;gap:4px}
.tdl-kb-sterne-wahl input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.tdl-kb-sterne-wahl label{cursor:pointer;color:#dfe4d8;line-height:0;padding:2px;border-radius:6px;transition:color .15s,transform .15s}
.tdl-kb-sterne-wahl svg{width:34px;height:34px;fill:currentColor}
.tdl-kb-sterne-wahl input:checked~label,.tdl-kb-sterne-wahl label:hover,.tdl-kb-sterne-wahl label:hover~label{color:#c8932e}
.tdl-kb-sterne-wahl label:hover{transform:scale(1.08)}
.tdl-kb-sterne-wahl input:focus-visible+label{outline:2px solid #2d4f22;outline-offset:2px}
.tdl-kb-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Felder */
.tdl-kb-feld{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:500;color:#30372c}
.tdl-kb-feld small{font-weight:400;color:#636b5e}
.tdl-kb-feld :is(textarea,input){width:100%;box-sizing:border-box;padding:12px 14px;border:1px solid #d1d9c8;border-radius:12px;background:#fff;font:inherit;font-weight:400;font-size:15px;color:#30372c}
.tdl-kb-feld :is(textarea,input):focus{outline:none;border-color:#2d4f22;box-shadow:0 0 0 3px rgba(45,79,34,.12)}
.tdl-kb-anzeige{margin:0;padding:0;border:0;display:flex;flex-wrap:wrap;gap:10px}
.tdl-kb-anzeige legend{width:100%;padding:0;margin:0 0 8px;font-size:14px;font-weight:500}
.tdl-kb-anzeige label{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border:1px solid #d1d9c8;border-radius:999px;font-size:14px;cursor:pointer}
.tdl-kb-anzeige label:has(input:checked){border-color:#2d4f22;background:#eef1e8}
.tdl-kb-anzeige input{accent-color:#2d4f22;margin:0}
.tdl-kb-check{display:flex;gap:12px;align-items:flex-start;font-size:13px;line-height:1.55;color:#4a5543}
.tdl-kb-check input{margin:3px 0 0;accent-color:#2d4f22;flex:none;width:18px;height:18px}
.tdl-kb-check a,.tdl-kb-klein a{color:#2d4f22;text-decoration:underline;text-underline-offset:3px}
.tdl-kb-klein{font-size:13px;line-height:1.55;color:#636b5e;margin:0}
.tdl-kb-knopf{align-self:flex-start;display:inline-flex;align-items:center;gap:.5em;padding:14px 28px;border:0;border-radius:999px;background:#2d4f22;color:#fff !important;font:inherit;font-size:15px;font-weight:600;text-decoration:none !important;cursor:pointer;transition:background-color .2s}
.tdl-kb-knopf:hover{background:#21391a}
.tdl-kb-knopf[disabled]{opacity:.5;cursor:not-allowed}
.tdl-kb-vorschau{margin:0 0 18px;padding:12px 16px;border-radius:12px;background:#fff8e5;border:1px solid #e0c97a;font-size:14px}
.tdl-kb-fehler{margin:0 0 18px;padding:12px 16px;border-radius:12px;background:#fbeae5;border:1px solid #e2a796;color:#7a2e1c;font-size:14px}

@media (max-width:640px){
	.tdl-kb-stueck{grid-template-columns:64px minmax(0,1fr);gap:14px;padding:16px}
	.tdl-kb-stueck>img{width:64px;height:64px}
	.tdl-kb-sterne-wahl svg{width:38px;height:38px}
	.tdl-kb-knopf{align-self:stretch;justify-content:center}
}

/* In der Textseiten-Vorlage setzt seiten.css große Abstände über h2; in Bewertungsbausteinen zurücknehmen */
body:not(#tdl) .tdl-seite-inhalt .tdl-kb-pruefung h2{margin:0 0 10px;font-size:19px}
body:not(#tdl) .tdl-seite-inhalt .tdl-bew-titel{margin:0;font-size:clamp(26px,3.2vw,38px)}
body:not(#tdl) .tdl-seite-inhalt .tdl-kb-seite :is(ul,ol){padding-left:0;margin-bottom:0}
body:not(#tdl) .tdl-seite-inhalt .tdl-kb-seite li{margin:0}
body:not(#tdl) .tdl-seite-inhalt .tdl-kb-seite blockquote p{margin:0}
