/* C:\Software EFH\webshop\css\webshop.css
 * Bauplan 301, Phase 6 (Shop-Frontend Struktur & Rendering).
 * Konsumiert die CSS-Variablen aus webshop_branding_css() (Phase 5 F):
 * --shop-farbe-primaer/-sekundaer/-akzent/--shop-schriftart.
 */

* { box-sizing: border-box; }

body.webshop-body {
    margin: 0;
    font-family: var(--shop-schriftart, 'Segoe UI', sans-serif);
    background: var(--shop-farbe-sekundaer, #f4f6f8);
    color: #333;
}

.webshop-header {
    background: var(--shop-farbe-primaer, #1a252f);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.webshop-logo-link { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.webshop-logo { height: 42px; width: auto; }
.webshop-firmenname { color: #fff; font-size: 1.2em; font-weight: bold; }
.webshop-konto-nav { font-size: 0.9em; }
.webshop-konto-nav a { color: #fff; text-decoration: none; margin-left: 6px; }
.webshop-konto-nav a:hover { text-decoration: underline; }
.webshop-konto-info { color: #cfd8dc; }

/* Formulare (Login/Registrieren/Passwort) */
.webshop-formular { max-width: 420px; margin: 0 auto; background: #fff; padding: 30px; border-radius: 10px; border: 1px solid #e1e4e8; }
.webshop-formular h1 { margin-top: 0; font-size: 1.4em; }
.webshop-formular label { display: block; margin: 14px 0 4px; font-weight: bold; font-size: 0.9em; }
.webshop-formular input[type="text"], .webshop-formular input[type="email"], .webshop-formular input[type="password"] {
    width: 100%; padding: 9px 10px; border: 1px solid #dfe6e9; border-radius: 6px; font-size: 1em;
}
.webshop-formular button[type="submit"] {
    margin-top: 20px; width: 100%; padding: 11px; border: none; border-radius: 8px;
    background: var(--shop-farbe-primaer, #0078d4); color: #fff; font-weight: bold; font-size: 1em; cursor: pointer;
}
.webshop-formular button[type="submit"]:hover { opacity: 0.9; }
.webshop-formular .webshop-formular-links { text-align: center; margin-top: 16px; font-size: 0.9em; }
.webshop-formular .webshop-formular-links a { color: var(--shop-farbe-primaer, #0078d4); }
.webshop-meldung { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 0.9em; }
.webshop-meldung.erfolg { background: #f0fff4; border: 1px solid #27ae60; color: #1e6b3a; }
.webshop-meldung.fehler { background: #fff1f0; border: 1px solid #e74c3c; color: #922b21; }
.webshop-checkbox-zeile { display: flex; align-items: center; gap: 8px; margin: 10px 0; }
.webshop-checkbox-zeile input { width: auto; }
.webshop-checkbox-zeile label { margin: 0; font-weight: normal; }

.webshop-footer {
    padding: 36px 24px 20px;
    background: var(--shop-farbe-primaer, #1a252f);
    color: #fff;
    font-size: 0.9em;
}
.webshop-footer a { color: #fff; text-decoration: none; }
.webshop-footer a:hover { text-decoration: underline; }
.webshop-footer-spalten {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px;
}
@media (max-width: 700px) { .webshop-footer-spalten { grid-template-columns: 1fr; text-align: center; } }
.webshop-footer-spalte h4 { margin: 0 0 12px; font-size: 1em; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.85; }
.webshop-footer-spalte ul { list-style: none; margin: 0; padding: 0; }
.webshop-footer-spalte li { margin-bottom: 8px; }
.webshop-footer-kontakt li { opacity: 0.9; }
.webshop-footer-spalte-mitte { text-align: center; } /* Fix 146 (27.07.2026) */
.webshop-footer-spalte-rechts { text-align: right; } /* Fix 147 (27.07.2026) */
.webshop-footer-copyright { text-align: center; margin: 30px 0 0; opacity: 0.75; font-size: 0.85em; }

.webshop-container { max-width: 1200px; margin: 0 auto; padding: 24px; }

/* Fix 148 (27.07.2026): Suchleiste, Kategorie-Sidebar, Sortierung */
.webshop-suchleiste-bereich { background: var(--shop-farbe-primaer, #0078d4); padding: 18px 24px; }
.webshop-suchleiste { max-width: 700px; margin: 0 auto; display: flex; gap: 8px; }
.webshop-suchleiste input[type="text"] { flex: 1; padding: 12px 16px; border: none; border-radius: 8px; font-size: 1.05em; }
.webshop-suchleiste button { padding: 12px 22px; border: none; border-radius: 8px; background: var(--shop-farbe-akzent, #e74c3c); color: #fff; font-weight: bold; cursor: pointer; }

.webshop-shop-layout { display: grid; grid-template-columns: 270px 1fr; gap: 24px; align-items: start; }
@media (max-width: 760px) { .webshop-shop-layout { grid-template-columns: 1fr; } }

.webshop-kategorie-sidebar { background: #fff; border: 1px solid #e1e4e8; border-radius: 10px; padding: 18px; }
.webshop-kategorie-sidebar h3 { margin: 0 0 12px; font-size: 1em; }

/* Fix 179 (28.07.2026, Korrektur): auf-/zuklappbarer Kategoriebaum, gleiches
   Muster wie die .kat-toggle/.kat-children-Regeln im internen Artikelstamm
   (artikel/artikelstamm.php) - eigener Pfeil pro Kategorie mit Kindern, der
   zugehörige Kind-Container ist per Default eingeklappt. */
.webshop-kat-zeile { display: flex; align-items: center; margin-bottom: 2px; }
.webshop-kat-toggle { display: inline-block; width: 18px; flex-shrink: 0; text-align: center; cursor: pointer; color: #7f8c8d; transition: transform 0.15s ease; }
.webshop-kat-toggle.offen { transform: rotate(90deg); }
.webshop-kat-platzhalter { display: inline-block; width: 18px; flex-shrink: 0; }
.webshop-kat-link { flex-grow: 1; color: inherit; text-decoration: none; display: block; padding: 6px 8px; border-radius: 6px; font-size: 0.92em; }
.webshop-kat-link:hover { background: #f4f6f8; }
.webshop-kat-link.aktiv { background: var(--shop-farbe-primaer, #0078d4); color: #fff; font-weight: bold; }
.webshop-kat-children { display: none; padding-left: 18px; }
.webshop-kat-children.offen { display: block; }

.webshop-hauptbereich { min-width: 0; }
.webshop-filterleiste { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.webshop-sortierung-form { display: flex; align-items: center; gap: 8px; font-size: 0.9em; }
.webshop-sortierung-form select { padding: 7px 10px; border: 1px solid #dfe6e9; border-radius: 6px; }

/* Fix 227 (Hersteller-/Preisfilter) */
.webshop-filter-form input[type="number"] { padding: 7px 10px; border: 1px solid #dfe6e9; border-radius: 6px; }
.webshop-filter-form button { padding: 7px 14px; border: none; border-radius: 6px; background: var(--shop-farbe-primaer, #0078d4); color: #fff; cursor: pointer; font-weight: 600; }
.webshop-filter-form button:hover { opacity: 0.9; }

/* Grid (Produktübersicht) */
.webshop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.webshop-karte {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e1e4e8;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
    position: relative;
}
.webshop-karte:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
/* Fix 228: .webshop-karte ist jetzt ein <div> (Link + Warenkorb-Button als
   getrennte, nicht mehr verschachtelte Kinder) - .webshop-karte-link trägt
   die Optik, die vorher direkt auf dem <a>.webshop-karte lag. */
.webshop-karte-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; }
.webshop-karte-warenkorb-form { padding: 0 16px 14px; }
.webshop-karte-warenkorb-button {
    width: 100%; padding: 8px 10px; border: none; border-radius: 6px;
    background: var(--shop-farbe-primaer, #0078d4); color: #fff; font-weight: 600;
    font-size: 0.85em; cursor: pointer;
}
.webshop-karte-warenkorb-button:hover { opacity: 0.9; }
.webshop-wochenangebot-badge {
    position: absolute; top: 10px; left: 10px; z-index: 1;
    background: var(--shop-farbe-akzent, #e74c3c); color: #fff;
    padding: 4px 10px; border-radius: 20px; font-size: 0.78em; font-weight: bold;
}
.webshop-karte-bild { width: 100%; height: 180px; object-fit: contain; background: #f8f9fa; }
.webshop-karte-bild-platzhalter { width: 100%; height: 180px; background: #f1f2f6; display: flex; align-items: center; justify-content: center; color: #b2bec3; font-size: 2em; }
.webshop-karte-inhalt { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.webshop-karte-name { font-weight: bold; font-size: 1.05em; margin: 0 0 4px; }
.webshop-karte-feld { font-size: 0.85em; color: #555; }
.webshop-karte-preis { margin-top: auto; padding-top: 8px; font-size: 1.15em; font-weight: bold; color: var(--shop-farbe-primaer, #0078d4); }
.webshop-karte-preis-label { font-size: 0.6em; font-weight: normal; color: #7f8c8d; }
.webshop-preis-versandhinweis { font-size: 0.6em; font-weight: normal; color: #7f8c8d; }
.webshop-karte-bestand { font-size: 0.8em; color: #7f8c8d; }
/* Fix 233 (Nachtrag zu 232): Rabattcode-Preisvorschau, Wochenangebote-Karte + Detailseite */
.webshop-rabatt-vorschau { font-size: 0.85em; color: var(--shop-farbe-akzent, #e74c3c); margin-top: 2px; }
.webshop-rabatt-vorschau-hinweis { font-size: 0.85em; font-weight: normal; color: #7f8c8d; }

/* Fix 235 (Nachtrag zu 232/233): öffentliche Aktionen-Seite (webshop/aktionen.php) */
.webshop-aktionen-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 20px; }
.webshop-aktion-karte { background: #fff; border: 1px solid #e1e4e8; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.webshop-aktion-rabatt { font-size: 1.3em; font-weight: bold; color: var(--shop-farbe-akzent, #e74c3c); }
.webshop-aktion-beschreibung { margin: 0; color: #333; }
.webshop-aktion-code { font-size: 0.95em; }
.webshop-aktion-code strong { background: #f1f2f6; padding: 2px 8px; border-radius: 6px; letter-spacing: 0.5px; }
.webshop-aktion-details { font-size: 0.8em; color: #7f8c8d; }
.webshop-aktionen-hinweis { margin-top: 20px; color: #7f8c8d; font-size: 0.9em; }
/* Fix 236: "Bald verfügbar"-Zustand (Vorschau-Fenster) - gedämpfter als eine bereits aktive Aktion */
.webshop-aktion-karte-bald { border-style: dashed; opacity: 0.85; }
.webshop-aktion-badge-bald { display: inline-block; align-self: flex-start; background: #f1f2f6; color: #636e72; font-size: 0.75em; font-weight: bold; padding: 3px 10px; border-radius: 20px; }

.webshop-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin: 30px 0; }
.webshop-pagination a, .webshop-pagination span {
    padding: 8px 14px; border-radius: 8px; text-decoration: none; border: 1px solid #dfe6e9; color: var(--shop-farbe-primaer, #1a252f); background: #fff;
}
.webshop-pagination a:hover { background: var(--shop-farbe-primaer, #0078d4); color: #fff; border-color: var(--shop-farbe-primaer, #0078d4); }
.webshop-pagination .aktiv { background: var(--shop-farbe-primaer, #0078d4); color: #fff; }
.webshop-pagination-luecke { border: none; background: none; padding: 8px 4px; color: #b2bec3; }

.webshop-leer { text-align: center; padding: 60px 20px; color: #7f8c8d; }

/* Detailseite */
.webshop-detail { display: grid; grid-template-columns: minmax(280px, 1fr) 1.3fr; gap: 36px; }
@media (max-width: 760px) { .webshop-detail { grid-template-columns: 1fr; } }

.webshop-slider { position: relative; }
.webshop-slider-bild { width: 100%; height: 380px; object-fit: contain; background: #f8f9fa; border-radius: 10px; border: 1px solid #e1e4e8; }
.webshop-slider-platzhalter { width: 100%; height: 380px; background: #f1f2f6; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #b2bec3; font-size: 3em; }
.webshop-slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.85); border: 1px solid #dfe6e9; border-radius: 50%;
    width: 36px; height: 36px; cursor: pointer; font-size: 1.1em;
}
.webshop-slider-btn.zurueck { left: 8px; }
.webshop-slider-btn.vor { right: 8px; }
.webshop-slider-punkte { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.webshop-slider-punkt { width: 8px; height: 8px; border-radius: 50%; background: #dfe6e9; cursor: pointer; }
.webshop-slider-punkt.aktiv { background: var(--shop-farbe-primaer, #0078d4); }

.webshop-detail-name { font-size: 1.6em; margin: 0 0 10px; }
.webshop-detail-preis { font-size: 1.8em; font-weight: bold; color: var(--shop-farbe-primaer, #0078d4); margin: 10px 0 2px; }
.webshop-detail-preis-label { font-size: 0.45em; font-weight: normal; color: #7f8c8d; margin-left: 8px; }
.webshop-detail-grundpreis { font-size: 0.85em; color: #7f8c8d; margin: 0 0 8px; }
.webshop-detail-bestand { color: #7f8c8d; margin-bottom: 16px; }
.webshop-detail-felder { border-top: 1px solid #e1e4e8; margin-top: 16px; padding-top: 16px; }
.webshop-detail-feld { margin-bottom: 10px; }
.webshop-detail-feld-label { font-weight: bold; display: block; font-size: 0.85em; color: #555; }

/* Ehrlicher, sichtbar inaktiver Platzhalter - gleiches Muster wie
   .tile-platzhalter in shop/index.php (Phase 3): gestrichelter Rahmen statt
   echter Button-Optik, kein Klick führt ins Leere. */
.webshop-bestellen-platzhalter {
    display: inline-block; margin-top: 20px; padding: 14px 28px;
    border: 2px dashed #b2bec3; border-radius: 8px; color: #7f8c8d;
    font-weight: bold; cursor: default; background: #f8f9fa;
}

.webshop-sperr-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; margin: 0; font-family: var(--shop-schriftart, 'Segoe UI', sans-serif); background: #f4f6f8; }
.webshop-sperr-box { background: #fff; padding: 40px; border-radius: 14px; box-shadow: 0 6px 20px rgba(0,0,0,0.1); text-align: center; max-width: 440px; }
.webshop-vorschau-form { margin-top: 22px; display: flex; gap: 8px; }
.webshop-vorschau-form input[type="password"] { flex: 1; padding: 9px 11px; border: 1px solid #ccc; border-radius: 6px; font-size: 14px; }
.webshop-vorschau-form button { padding: 9px 16px; border: none; border-radius: 6px; background: var(--shop-farbe-akzent, #e74c3c); color: #fff; font-weight: bold; cursor: pointer; }
.webshop-sperr-fehler { color: #c0392b; font-weight: bold; margin-top: 12px; margin-bottom: 0; }

/* Bauplan 301, Phase 7 Teil B/C (Warenkorb & Wunschliste, Kunden-Dashboard) */
.webshop-button-primary {
    display: inline-block; padding: 12px 24px; border: none; border-radius: 8px;
    background: var(--shop-farbe-primaer, #0078d4); color: #fff; font-weight: bold;
    font-size: 1em; cursor: pointer; text-decoration: none;
}
.webshop-button-primary:hover { opacity: 0.9; }
.webshop-link-button {
    background: none; border: none; padding: 0; color: var(--shop-farbe-primaer, #0078d4);
    text-decoration: underline; cursor: pointer; font-size: 0.9em;
}
.webshop-inline-form { display: inline-block; }
.webshop-mengen-feld { width: 64px; padding: 6px 8px; border: 1px solid #dfe6e9; border-radius: 6px; }
.webshop-warenkorb-formular { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.webshop-hinweis-klein { font-size: 0.85em; color: #7f8c8d; margin-top: 8px; }

.webshop-tabelle { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid #e1e4e8; }
.webshop-tabelle th, .webshop-tabelle td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #e1e4e8; vertical-align: middle; }
.webshop-tabelle th { background: #f8f9fa; font-size: 0.85em; text-transform: uppercase; color: #555; }
.webshop-tabelle tr:last-child td { border-bottom: none; }
.webshop-zeile-nicht-verfuegbar { opacity: 0.6; }
.webshop-wunschliste-aktionen { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }

.webshop-warenkorb-summe { text-align: right; font-size: 1.2em; margin: 20px 0; }
.webshop-warenkorb-aktionen { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: flex-end; }

/* Fix 223 (Vertrauenssignale): Zahlarten-/Trust-Block auf Produkt- und Warenkorbseite */
.webshop-vertrauensblock { margin-top: 14px; padding: 12px 14px; background: #f8f9fa; border: 1px solid #e1e4e8; border-radius: 8px; }
.webshop-vertrauensblock-zahlarten { font-size: 0.9em; color: #2c3e50; font-weight: 600; }
.webshop-vertrauensblock .webshop-hinweis-klein { margin-top: 4px; }

/* Fix 224 (Versandkostenfrei-Schwelle) */
.webshop-versandkostenfrei-hinweis { margin-top: 8px; padding: 8px 12px; background: #eef6ff; border: 1px solid #bcdcff; border-radius: 6px; font-size: 0.9em; color: #0b5394; }
.webshop-versandkostenfrei-hinweis.erreicht { background: #f0fff4; border-color: #27ae60; color: #1e6b3a; }

/* Fix 225 (Produktbewertungen, MVP) */
.webshop-sterne-zusammenfassung { margin: 4px 0 10px; font-size: 0.95em; }
.webshop-sterne-zusammenfassung a { color: #e67e22; text-decoration: none; font-weight: 600; }
.webshop-bewertungen { margin-top: 32px; padding-top: 24px; border-top: 1px solid #e1e4e8; }
.webshop-bewertung-eintrag { padding: 14px 0; border-bottom: 1px solid #f0f2f5; }
.webshop-bewertung-eintrag:last-of-type { border-bottom: none; }
.webshop-bewertung-sterne { color: #e67e22; font-size: 1.1em; letter-spacing: 1px; }
.webshop-bewertung-meta { font-size: 0.85em; color: #7f8c8d; margin-top: 2px; }
.webshop-bewertung-text { margin-top: 6px; white-space: pre-wrap; }
.webshop-bewertung-formular { max-width: 500px; margin-top: 20px; }

/* Kunden-Dashboard (Phase 7 Teil C) */
.webshop-konto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 20px; }
.webshop-konto-kachel {
    display: block; background: #fff; border: 1px solid #e1e4e8; border-radius: 10px; padding: 20px;
    text-decoration: none; color: inherit; transition: transform 0.15s, box-shadow 0.15s;
}
.webshop-konto-kachel:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.webshop-konto-kachel h3 { margin: 0 0 6px; font-size: 1.05em; }
.webshop-konto-kachel p { margin: 0; font-size: 0.85em; color: #7f8c8d; }
.webshop-status-badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 0.8em; font-weight: bold; background: #eef2f7; color: #444; }
.webshop-status-badge.bezahlt, .webshop-status-badge.abgeschlossen { background: #f0fff4; color: #1e6b3a; }
.webshop-status-badge.ausstehend, .webshop-status-badge.offen { background: #fff8e1; color: #8a6d00; }
.webshop-platzhalter-box { border: 2px dashed #b2bec3; border-radius: 8px; padding: 16px; color: #7f8c8d; background: #f8f9fa; font-size: 0.9em; }

/* Fix 200 (30.07.2026): Kachel-Startseite (Wochenangebote/Gesamtes Sortiment/
   je Hauptkategorie eine Kachel) statt sofortigem Artikel-Grid beim Öffnen
   des Shops - gleiches Karten-Prinzip wie .webshop-konto-kachel, nur größer
   und mit den beiden hervorgehobenen Sonder-Kacheln vorneweg. */
.webshop-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 10px;
}
.webshop-hub-kachel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 12px;
    padding: 26px 16px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s, box-shadow 0.15s;
}
.webshop-hub-kachel:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,0.1); }
.webshop-hub-kachel-icon { font-size: 2.4em; margin-bottom: 10px; }
.webshop-hub-kachel-bild { width: 100%; height: 110px; object-fit: contain; margin-bottom: 12px; background: #f8f9fa; border-radius: 8px; }
.webshop-hub-kachel h2 { margin: 0; font-size: 1.05em; }
.webshop-hub-kachel p { margin: 6px 0 0; font-size: 0.85em; color: #7f8c8d; }
.webshop-hub-kachel-angebot,
.webshop-hub-kachel-sortiment {
    background: var(--shop-farbe-primaer, #0078d4);
    border-color: var(--shop-farbe-primaer, #0078d4);
    color: #fff;
}
.webshop-hub-kachel-angebot { background: var(--shop-farbe-akzent, #e74c3c); border-color: var(--shop-farbe-akzent, #e74c3c); }
.webshop-hub-kachel-angebot p, .webshop-hub-kachel-sortiment p { color: rgba(255,255,255,0.85); }

/* Fix 229 (Startseiten-Vitrine "Neu im Sortiment") */
.webshop-vitrine-titel { margin: 36px 0 14px; font-size: 1.2em; color: #1a252f; }
.webshop-vitrine-grid { margin-top: 0; }

/* Fix 260 (Trust-Leiste Startseite) */
.webshop-trust-leiste {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    background: #f8f9fa;
    border: 1px solid #e1e4e8;
    border-radius: 12px;
    padding: 18px 22px;
    margin: 18px 0 26px;
}
.webshop-trust-item { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85em; color: #444; line-height: 1.4; }
.webshop-trust-icon { font-size: 1.6em; line-height: 1; }
.webshop-trust-item strong { color: #1a252f; }
.webshop-trust-item a { color: var(--shop-farbe-primaer, #0078d4); }
