/* chat.css – Aussehen der Wissensplattform (Design 2026, angelehnt an womoladen.de) */

:root {
    --primaer: #2563eb;          /* WomoLaden-Blau */
    --primaer-hell: #eaf1ff;
    --primaer-dunkel: #1e3a8a;
    --akzent: #f5b301;           /* Gelb wie die WomoLaden-Buttons */
    --akzent-dunkel: #d99a00;
    --text: #1f2933;
    --text-leise: #5b6673;
    --rand: #e3e8ef;
    --flaeche: #f5f7fb;
    --karte: #ffffff;
    --radius: 14px;
    --schatten: 0 6px 24px rgba(17, 38, 80, 0.08);
}

* { box-sizing: border-box; }

body {
    font-family: Arial, "Helvetica Neue", system-ui, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--flaeche);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primaer); }

/* ============ Kopfleiste ============ */
.site-top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--rand);
}
.site-top-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    flex-shrink: 0;
}
.site-logo img { height: 42px; width: auto; display: block; }
.site-logo svg { width: 38px; height: 38px; display: block; }
.site-logo .wortmarke { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; }
.site-logo .wortmarke small {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primaer);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    flex-wrap: wrap;
}
.site-nav a {
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
}
.site-nav a:hover { background: var(--primaer-hell); color: var(--primaer); }
.site-nav a.aktiv { color: var(--primaer); }
.site-nav a.shop-cta {
    background: var(--akzent);
    color: #1f1600;
    margin-left: 6px;
}
.site-nav a.shop-cta:hover { background: var(--akzent-dunkel); color: #1f1600; }

/* ============ Seitenkopf (Hero) ============ */
.wissen-header {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 20px 24px;
    text-align: center;
}
.wissen-header h1 {
    font-size: 2.1rem;
    line-height: 1.2;
    margin: 0 0 12px;
    color: var(--text);
    letter-spacing: -0.01em;
}
.wissen-header .untertitel {
    font-size: 1.1rem;
    color: var(--text-leise);
    margin: 0 0 12px;
}
.wissen-header .hersteller-liste {
    font-size: 0.95rem;
    color: var(--text-leise);
    margin: 0;
}

/* Startseiten-Hero mit Bild */
.hero {
    position: relative;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(14, 30, 70, 0.72) 0%, rgba(14, 30, 70, 0.55) 60%, rgba(245, 247, 251, 1) 100%),
        url('https://www.womoladen.de/Bilder/Titelbild1.png') center 40% / cover no-repeat;
    padding: 64px 20px 120px;
    text-align: center;
}
.hero h1 {
    font-size: 2.5rem;
    line-height: 1.15;
    margin: 0 auto 14px;
    max-width: 820px;
    letter-spacing: -0.015em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.hero .untertitel {
    font-size: 1.15rem;
    max-width: 720px;
    margin: 0 auto 22px;
    opacity: 0.95;
}
.hero-fakten {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.hero-fakten li {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.9rem;
}
.hero-fakten strong { font-size: 1rem; }

/* ============ Hauptbereich ============ */
.wissen-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}
.hero + .wissen-main { margin-top: -96px; position: relative; }

/* Karten */
.chat-bereich,
.karte {
    background: var(--karte);
    border-radius: var(--radius);
    box-shadow: var(--schatten);
    border: 1px solid var(--rand);
    padding: 24px;
    margin-bottom: 28px;
}

/* ============ Chat ============ */
.chat-kopf {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.chat-kopf .punkt {
    width: 10px; height: 10px; border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}
.chat-kopf strong { font-size: 1.05rem; }
.chat-kopf span { color: var(--text-leise); font-size: 0.9rem; }

.chat-ausgabe {
    height: 420px;
    overflow-y: auto;
    padding: 16px;
    background: var(--flaeche);
    border: 1px solid var(--rand);
    border-radius: 10px;
    margin-bottom: 14px;
    font-size: 0.97rem;
}
.chat-nachricht {
    margin-bottom: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    max-width: 85%;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.chat-user {
    background: var(--primaer);
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}
.chat-ki {
    background: #fff;
    color: var(--text);
    margin-right: auto;
    border: 1px solid var(--rand);
    border-bottom-left-radius: 4px;
}
.chat-fehler {
    background: #fdecea;
    color: #a12622;
    margin-right: auto;
}
.chat-laden { font-style: italic; color: var(--text-leise); }
.chat-erkannt {
    font-size: 0.8rem;
    color: var(--text-leise);
    margin-top: -6px;
    margin-bottom: 12px;
    padding-left: 4px;
}

/* Feedback */
.chat-feedback {
    font-size: 0.8rem;
    color: var(--text-leise);
    margin-top: -6px;
    margin-bottom: 14px;
    padding-left: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.chat-feedback button {
    background: #fff;
    border: 1px solid var(--rand);
    border-radius: 8px;
    padding: 3px 10px;
    cursor: pointer;
    font-size: 1rem;
}
.chat-feedback button:hover { background: var(--primaer-hell); border-color: var(--primaer); }

/* Eingabe */
.chat-eingabe-wrapper {
    display: flex;
    gap: 10px;
    align-items: stretch;
    position: relative;
}
#chat-frage {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid var(--rand);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    position: relative;
    z-index: 1;
    transition: border-color 0.15s, box-shadow 0.15s;
}
#chat-frage:focus {
    outline: none;
    border-color: var(--primaer);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}
#chat-senden {
    padding: 14px 26px;
    background: var(--primaer);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.15s, transform 0.05s;
}
#chat-senden:hover:not(:disabled) { background: var(--primaer-dunkel); }
#chat-senden:active:not(:disabled) { transform: translateY(1px); }
#chat-senden:disabled { background: #9aa8b8; cursor: not-allowed; }

.chat-modus {
    margin: 12px 0 6px 0;
    font-size: 0.92rem;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.chat-modus label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--rand);
    border-radius: 999px;
    background: #fff;
}
.chat-modus label:has(input:checked) {
    border-color: var(--primaer);
    background: var(--primaer-hell);
    color: var(--primaer-dunkel);
    font-weight: 600;
}

/* Beispiel-Fragen */
.beispiel-fragen {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 4px;
}
.beispiel-fragen button {
    font: inherit;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px dashed #b9c6dc;
    background: #fff;
    color: var(--text-leise);
    cursor: pointer;
}
.beispiel-fragen button:hover { border-color: var(--primaer); color: var(--primaer); }

/* Zähler und Hinweis */
.chat-zaehler {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-leise);
}
.chat-hinweis {
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-leise);
    line-height: 1.5;
    padding-top: 12px;
    border-top: 1px solid var(--rand);
}

/* ============ Vertrauens-Leiste ============ */
.vorteile {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
.vorteil {
    background: var(--karte);
    border: 1px solid var(--rand);
    border-radius: var(--radius);
    padding: 18px;
}
.vorteil .icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--primaer-hell);
    color: var(--primaer);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.vorteil h3 { margin: 0 0 4px; font-size: 1rem; }
.vorteil p { margin: 0; font-size: 0.9rem; color: var(--text-leise); }

/* ============ FAQ-Button & Shop ============ */
.faq-bereich { text-align: center; margin-bottom: 28px; }
.faq-button {
    display: inline-block;
    padding: 14px 28px;
    background: #fff;
    color: var(--primaer);
    border: 2px solid var(--primaer);
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.faq-button:hover { background: var(--primaer); color: #fff; }

.shop-bereich {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    background: linear-gradient(120deg, #1e3a8a 0%, #2563eb 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 28px;
    font-size: 1rem;
}
.shop-bereich p { margin: 0; flex: 1 1 360px; }
.shop-bereich strong { display: block; font-size: 1.15rem; margin-bottom: 2px; }
.shop-link,
.shop-bereich a.shop-link {
    display: inline-block;
    background: var(--akzent);
    color: #1f1600;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.shop-link:hover { background: var(--akzent-dunkel); }

/* ============ Hersteller und Kategorien ============ */
.hersteller-bereich,
.kategorien-bereich { margin-bottom: 32px; }
.hersteller-bereich h2,
.kategorien-bereich h2 {
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: 14px;
}
.hersteller-grid,
.kategorien-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.hersteller-grid a,
.kategorien-grid a {
    display: inline-block;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid var(--rand);
    border-radius: 999px;
    font-size: 0.88rem;
    color: var(--text);
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.kategorien-grid a { border-radius: 10px; padding: 12px 16px; font-weight: 600; }
.hersteller-grid a:hover,
.kategorien-grid a:hover {
    background: var(--primaer-hell);
    border-color: var(--primaer);
    color: var(--primaer);
}

/* ============ Fußzeile ============ */
.wissen-footer {
    margin-top: 48px;
    background: #0f1b33;
    color: #c6d0e0;
    font-size: 0.9rem;
}
.wissen-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 20px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.wissen-footer p { margin: 0 0 6px; }
.wissen-footer a { color: #fff; text-decoration: none; }
.wissen-footer a:hover { text-decoration: underline; }
.wissen-footer .klein { font-size: 0.8rem; color: #8b98ad; max-width: 520px; }
.wissen-footer .links a { margin-right: 14px; }

/* ============ Responsive ============ */
@media (max-width: 760px) {
    .site-top-inner { flex-wrap: wrap; gap: 8px; padding: 8px 14px; }
    .site-nav { margin-left: 0; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
    .site-nav a { white-space: nowrap; font-size: 0.88rem; padding: 6px 10px; }
    .hero { padding: 40px 16px 100px; }
    .hero h1 { font-size: 1.7rem; }
    .wissen-header h1 { font-size: 1.6rem; }
    .vorteile { grid-template-columns: 1fr; }
    .chat-bereich, .karte { padding: 16px; }
    .chat-ausgabe { height: 340px; }
    .chat-nachricht { max-width: 95%; }
    .chat-eingabe-wrapper { flex-direction: column; }
    #chat-senden { width: 100%; }
}
