/* =========================================================================
   pealth.com – App-Stylesheet
   ========================================================================= */
:root {
    --teal: #0f766e;
    --teal-dark: #115e59;
    --teal-light: #14b8a6;
    --bg: #f8fafc;
    --card: #ffffff;
    --ink: #0f172a;
    --ink-soft: #475569;
    --line: #e2e8f0;
    --green: #16a34a;
    --yellow: #eab308;
    --red: #dc2626;
    --emergency: #b91c1c;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 4px 14px rgba(15, 23, 42, .06);
    --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; width: 100%; }

.container { width: min(1120px, 92%); margin-inline: auto; }

img { max-width: 100%; height: auto; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }

.skip-link {
    position: absolute; left: -9999px; top: 0; background: var(--teal);
    color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .8rem; }

.brand { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.25rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-logo { font-size: 1.4rem; }
.brand-name { color: var(--teal); }
.brand-name small { font-weight: 500; font-size: .8em; color: var(--ink-soft); }

.main-nav ul { display: flex; align-items: center; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.main-nav a:hover { color: var(--teal); text-decoration: none; }
.nav-cta {
    background: var(--teal); color: #fff !important;
    padding: .5rem 1rem; border-radius: 8px;
}
.inline-form { display: inline; }
.link-btn {
    background: none; border: none; color: var(--ink-soft);
    font-weight: 600; font-size: .95rem; cursor: pointer; font-family: inherit; padding: 0;
}
.link-btn:hover { color: var(--teal); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; display: block; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block; padding: .6rem 1.1rem; border-radius: 10px;
    border: 1px solid transparent; font-weight: 600; font-size: .95rem;
    cursor: pointer; font-family: inherit; text-align: center; transition: .15s;
    background: var(--teal); color: #fff;
}
.btn:hover { background: var(--teal-dark); text-decoration: none; color: #fff; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-ghost { background: #fff; color: var(--teal); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: var(--emergency); }
.btn-lg { padding: .8rem 1.5rem; font-size: 1.05rem; }
.btn-sm { padding: .35rem .7rem; font-size: .85rem; }
.btn-block { display: block; width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, #0f766e 0%, #0d9488 60%, #14b8a6 100%); color: #fff; padding: 4rem 0 5rem; }
.hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.5rem; align-items: center; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.hero .accent { color: #99f6e4; }
.hero .lead { font-size: 1.1rem; opacity: .95; max-width: 34em; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; opacity: .9; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero .btn-primary { background: #fff; color: var(--teal); }
.hero .btn-primary:hover { background: #f0fdfa; }
.hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.hero .btn-ghost:hover { border-color: #fff; }
.hero-trust { list-style: none; display: flex; gap: 1.2rem; padding: 0; margin: 1.5rem 0 0; font-size: .9rem; flex-wrap: wrap; }

.hero-illustration { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); padding: 1.2rem; display: grid; gap: .7rem; backdrop-filter: blur(4px); }
.ampel { display: flex; align-items: center; gap: .6rem; background: rgba(255,255,255,.15); border-radius: 8px; padding: .55rem .8rem; font-weight: 600; }
.ampel span { font-size: 1.2rem; }

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
.section-tint { background: #fff; border-block: 1px solid var(--line); }
.section-title { font-size: 1.6rem; margin-bottom: 1.6rem; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.step-num {
    width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: .7rem;
}

/* ---------- Species ---------- */
.species-groups { display: grid; gap: 1.5rem; }
.species-group h3 { font-size: 1.05rem; color: var(--ink-soft); margin-bottom: .8rem; }
.species-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .8rem; }
.species-card {
    display: flex; flex-direction: column; align-items: center; gap: .35rem;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1rem .6rem; text-align: center; transition: .15s; color: var(--ink);
}
.species-card:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.species-avatar, .pet-avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%; color: #fff;
    font-weight: 800; font-size: 1.05rem; line-height: 1; user-select: none;
    flex: 0 0 auto;
}
.species-avatar { width: 46px; height: 46px; font-size: 1.15rem; }
.species-label { font-size: .85rem; font-weight: 600; }

/* ---------- Post cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.post-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .5rem; }
.post-card h2, .post-card h3 { font-size: 1.15rem; }
.post-card h2 a, .post-card h3 a { color: var(--ink); }
.post-card p { color: var(--ink-soft); font-size: .93rem; margin: 0; }
.post-category { text-transform: uppercase; font-size: .72rem; letter-spacing: .06em; color: var(--teal); font-weight: 700; }
.post-meta { display: flex; gap: 1rem; font-size: .8rem; color: var(--ink-soft); margin-top: auto; }

/* ---------- CTA ---------- */
.section-cta .cta-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2.5rem; text-align: center; box-shadow: var(--shadow); }
.cta-box p { color: var(--ink-soft); max-width: 40em; margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer { background: #0f172a; color: #cbd5e1; padding-top: 2.5rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; }
.site-footer .brand-name { color: #fff; }
.site-footer p { font-size: .9rem; }
.site-footer h3 { color: #fff; font-size: .95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.site-footer a { color: #94a3b8; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1e293b; padding-block: 1rem; font-size: .82rem; color: #64748b; }
.footer-version { opacity: .65; }

/* ---------- Alerts ---------- */
.alert { border-radius: 10px; padding: .85rem 1rem; margin: 1rem 0; font-size: .95rem; border: 1px solid transparent; }
.alert-success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.alert-error, .alert-danger { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert-info { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.alert-warning { background: #fefce8; color: #854d0e; border-color: #fef08a; }

/* ---------- Forms ---------- */
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.field input, .field select, .field textarea {
    width: 100%; padding: .6rem .75rem; border: 1px solid var(--line);
    border-radius: 8px; font: inherit; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: 2px solid var(--teal-light); outline-offset: 0; border-color: var(--teal);
}
.field.checkbox label { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; }
.field.checkbox input { width: auto; margin-top: .25rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .9rem; }
.form-hint { font-size: .82rem; color: var(--ink-soft); margin: .35rem 0; }
.nowrap { white-space: nowrap; }
.form-row-between { display: flex; justify-content: space-between; align-items: center; font-size: .9rem; margin-bottom: 1rem; }

/* ---------- Auth ---------- */
.auth-wrap { display: flex; justify-content: center; padding: 3rem 1rem; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; width: min(440px, 100%); }
.auth-card h1 { margin-bottom: .2rem; }
.auth-alt { text-align: center; font-size: .9rem; margin-top: 1.2rem; }

/* ---------- Diagnose Wizard ---------- */
.diagnose-wrap { padding: 2rem 0 3rem; }
.diag-header h1 { margin-bottom: .2rem; }
.diag-progress { display: flex; gap: 1rem; margin: 1.5rem 0 2rem; flex-wrap: wrap; }
.pstep {
    padding: .45rem .9rem; border-radius: 999px; background: #fff; border: 1px solid var(--line);
    font-size: .85rem; font-weight: 600; color: var(--ink-soft);
}
.pstep.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }
.pstep.is-done { background: #ccfbf1; border-color: #5eead4; color: var(--teal-dark); }

.diag-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.8rem; margin-bottom: 1.5rem; }
.diag-step h2 { margin-bottom: 1rem; }
.diag-nav { display: flex; justify-content: space-between; gap: .8rem; margin-top: 1.5rem; flex-wrap: wrap; }

.symptom-search { margin-bottom: 1.2rem; }
.symptom-search input { width: 100%; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; }

.symptom-groups { display: grid; gap: 1.2rem; }
.symptom-group h3 { font-size: .95rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .6rem; }
.symptom-generic-divider { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.symptom-generic-divider h3 { font-size: .95rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .15rem; }
.symptom-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .6rem; }
.symptom-tile {
    border: 1px solid var(--line); background: #fff; border-radius: 9px;
    padding: .7rem .8rem; font-size: .9rem; cursor: pointer; user-select: none; transition: .12s;
    display: flex; align-items: flex-start; gap: .5rem;
}
.symptom-tile:hover { border-color: var(--teal); }
.symptom-tile.is-selected { background: #f0fdfa; border-color: var(--teal); color: var(--teal-dark); font-weight: 600; }
.symptom-tile.is-emergency { border-left: 4px solid var(--red); }
.symptom-tile .tile-check { color: var(--teal); font-weight: 800; margin-left: auto; }

/* ---------- Wizard: Anschlussfragen ---------- */
.q-progress { margin-bottom: .6rem; color: var(--ink-soft); font-size: .88rem; }
.diag-q { margin-bottom: 1.2rem; }
.diag-q-text { font-size: 1.05rem; margin-bottom: .8rem; }
.diag-q-options { display: flex; flex-wrap: wrap; gap: .6rem; }
.diag-q-option {
    border: 1px solid var(--line); background: #fff; border-radius: 9px;
    padding: .7rem 1rem; font-size: .92rem; cursor: pointer; transition: .12s; text-align: left;
}
.diag-q-option:hover { border-color: var(--teal); }
.diag-q-option.is-selected { background: #f0fdfa; border-color: var(--teal); color: var(--teal-dark); font-weight: 600; }
.diag-q-input { width: 100%; max-width: 420px; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.diag-q-textarea { resize: vertical; }

/* ---------- KI-Assessment (Result) ---------- */
.ai-assessment { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); margin-top: 1.5rem; }
.ai-assessment h2 { display: flex; align-items: center; gap: .6rem; }
.ai-badge { background: var(--teal); color: #fff; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; border-radius: 999px; padding: .22rem .6rem; }
.ai-confidence { color: var(--ink-soft); font-size: .9rem; }

/* ---------- Admin: KI-Log summary ---------- */
.ai-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .8rem; margin: 1rem 0; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .15rem; }
.stat-card strong { font-size: 1.4rem; }
.stat-card span { color: var(--ink-soft); font-size: .82rem; }

/* ---------- Admin: Anschlussfragen ---------- */
.q-bank { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 1rem; }
.q-bank summary { display: flex; align-items: center; gap: .6rem; padding: .9rem 1.1rem; cursor: pointer; font-weight: 600; }
.q-bank summary::-webkit-details-marker { display: none; }
.q-bank summary::before { content: '▸'; transition: transform .15s ease; }
.q-bank[open] summary::before { transform: rotate(90deg); }
.q-bank-key { color: var(--teal-dark); font-weight: 700; }
.q-bank-label { flex: 1; }
.q-bank-body { padding: 0 1.1rem 1.1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .8rem; }
.q-card { border: 1px solid var(--line); border-radius: 8px; padding: .8rem; background: #fafafa; }
.q-card-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .35rem; flex-wrap: wrap; }
.q-question { margin: .2rem 0 .5rem; font-weight: 500; }
.q-options { margin: 0; padding-left: 1.1rem; font-size: .85rem; color: var(--ink-soft); display: grid; gap: .15rem; }
.q-raw-editor { width: 100%; font-family: ui-monospace, Consolas, monospace; font-size: .8rem; line-height: 1.45; border: 1px solid var(--line); border-radius: 8px; padding: .8rem; }

/* ---------- Result ---------- */
.result-wrap { padding: 2rem 0 3rem; }
.result-header h1 { font-size: 1.6rem; margin-bottom: .5rem; }
.result-sections { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; margin-top: 1.5rem; }
.result-sections section { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
@media (max-width: 860px) { .result-sections { grid-template-columns: 1fr; } }

.result-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: res; }
.result-item { display: flex; gap: .9rem; }
.result-rank {
    width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%;
    background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.result-body { flex: 1; }
.result-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.result-top h3 { margin: 0; font-size: 1.05rem; }
.result-prob { font-weight: 800; color: var(--teal); white-space: nowrap; }
.result-body p { font-size: .92rem; color: var(--ink-soft); margin: .4rem 0 0; }

.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tag { background: #f1f5f9; border-radius: 999px; padding: .3rem .8rem; font-size: .85rem; }

.result-actions { display: flex; gap: .8rem; margin: 1.5rem 0; flex-wrap: wrap; }
.disclaimer-box {
    background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px;
    padding: 1rem 1.1rem; font-size: .9rem; color: #713f12; margin: 1.5rem 0;
}

/* ---------- Account / Dashboard ---------- */
.page-section { padding: 2rem 0 3rem; }
.page-header { margin-bottom: 1.5rem; }
.page-header h1 { margin-bottom: .2rem; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.dash-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); }
.dash-card h2 { font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.dash-big { font-size: 2.2rem; font-weight: 800; }
.dash-plan { font-size: 1.4rem; font-weight: 800; color: var(--teal); }

.list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.list-item { display: flex; align-items: center; gap: .8rem; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: .8rem .95rem; }
.list-main { flex: 1; display: grid; gap: .1rem; }
.list-main a { color: var(--ink); }
.list-main a:hover { color: var(--teal); }
.list-sub { font-size: .82rem; color: var(--ink-soft); }
.list-item time { font-size: .82rem; color: var(--ink-soft); white-space: nowrap; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 12px; }
.prob { font-weight: 700; color: var(--teal); }

/* ---------- Pets ---------- */
.pet-list { display: grid; gap: .8rem; margin-bottom: 2rem; }
.pet-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pet-card summary { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem; cursor: pointer; }
.pet-avatar { font-size: 1.1rem; }
.pet-name { font-weight: 700; }
.pet-meta { color: var(--ink-soft); font-size: .9rem; margin-left: auto; }
.pet-form { padding: 0 1.2rem 1.2rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.pet-form-actions { display: flex; justify-content: space-between; align-items: center; margin-top: .6rem; }
.pet-create { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }

/* ---------- Billing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; margin-bottom: 2rem; }
.pricing-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 1rem; position: relative; }
.pricing-card.is-current { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(20, 184, 166, .15); }
.price { font-size: 1.8rem; font-weight: 800; color: var(--teal); }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .92rem; }
.badge-current { position: absolute; top: .8rem; right: .8rem; background: #ccfbf1; color: var(--teal-dark); font-size: .75rem; font-weight: 700; border-radius: 999px; padding: .25rem .7rem; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.table th, .table td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--line); font-size: .9rem; }
.table th { background: #f8fafc; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-soft); }
.table .right { text-align: right; }

.status { padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 700; text-transform: capitalize; }
.status-paid { background: #dcfce7; color: #166534; }
.status-open { background: #fef9c3; color: #713f12; }
.status-overdue { background: #fee2e2; color: #991b1b; }
.status-void, .status-uncollectible { background: #f1f5f9; color: #475569; }
.status-canceled { background: #f1f5f9; color: #475569; }
.status-pending { background: #fef9c3; color: #713f12; }

/* ---------- Invoice ---------- */
.invoice { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.invoice-header { display: flex; justify-content: space-between; gap: 1.5rem; border-bottom: 2px solid var(--line); padding-bottom: 1.2rem; flex-wrap: wrap; }
.invoice-meta { text-align: right; }
.invoice-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding: 1.5rem 0; }
.invoice-totals { margin-left: auto; width: min(320px, 100%); }
.invoice-totals p { display: flex; justify-content: space-between; margin: .3rem 0; }
.invoice-totals .total { font-weight: 800; font-size: 1.15rem; border-top: 2px solid var(--line); padding-top: .6rem; }

/* ---------- Blog article ---------- */
.article .article-body { font-size: 1.02rem; }
.article .article-body h2 { margin-top: 1.6rem; }
.article .article-body ul, .article .article-body ol { padding-left: 1.3rem; }
.article-header { border-bottom: 1px solid var(--line); padding-bottom: 1.2rem; margin-bottom: 1.5rem; }
.related { margin-top: 2.5rem; }
.blog-filters { display: flex; gap: .7rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.blog-filters select, .blog-filters input { padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.pagination { display: flex; gap: .4rem; margin-top: 1.5rem; }
.pagination a { padding: .4rem .7rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.pagination a.is-active { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ---------- Error / Offline ---------- */
.error-page { text-align: center; padding: 4rem 1rem; }
.error-code { font-size: 4rem; font-weight: 800; color: var(--teal); }
.error-actions { display: flex; gap: .8rem; justify-content: center; margin-top: 1.2rem; flex-wrap: wrap; }
.debug-box { text-align: left; background: #0f172a; color: #f87171; padding: 1rem; border-radius: 8px; overflow-x: auto; font-size: .78rem; margin-top: 1.5rem; }

/* ---------- Legal ---------- */
.legal h2 { font-size: 1.15rem; margin-top: 1.5rem; }
.legal ul { padding-left: 1.3rem; }

/* ---------- Settings ---------- */
.settings-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.2rem; align-items: start; }
@media (max-width: 860px) { .settings-grid { grid-template-columns: 1fr; } }
.settings-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.settings-danger { border-color: #fecaca; }

.empty-state { color: var(--ink-soft); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 2rem; text-align: center; }

/* ---------- KI-Log (Admin) ---------- */
.ai-log-list { display: grid; gap: .7rem; }
.ai-log-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.ai-log-item summary { display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; cursor: pointer; flex-wrap: wrap; }
.ai-log-item time { color: var(--ink-soft); font-size: .85rem; }
.ai-model { font-weight: 700; font-size: .9rem; }
.ai-meta { margin-left: auto; color: var(--ink-soft); font-size: .82rem; }
.ai-log-body { border-top: 1px solid var(--line); padding: 1rem; }
.ai-log-body h4 { margin: .5rem 0 .3rem; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.ai-pre { max-height: 240px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.ai-ok { color: #86efac; }
.ai-err { color: #fca5a5; }

.breadcrumbs { margin-bottom: 1rem; font-size: .9rem; }

.reason-list { list-style: none; margin: .3rem 0; padding: 0; font-size: .85rem; color: var(--ink-soft); }
.reason-w { color: var(--teal); font-weight: 600; }
.feedback-form { margin-top: .5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .hero-inner { grid-template-columns: 1fr; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 1rem; }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: .8rem; }
    .nav-toggle { display: flex; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Admin ---------- */
.admin-body { background: #f1f5f9; }
.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.admin-sidebar { background: #0f172a; color: #cbd5e1; padding: 1.2rem; display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 0; height: 100vh; }
.admin-sidebar .brand { color: #fff; }
.admin-nav { display: grid; gap: .2rem; }
.admin-nav a { color: #94a3b8; padding: .55rem .8rem; border-radius: 8px; font-size: .93rem; font-weight: 600; }
.admin-nav a:hover { background: #1e293b; color: #fff; text-decoration: none; }
.admin-nav a.is-active { background: var(--teal); color: #fff; }
.admin-sidebar-foot { margin-top: auto; display: grid; gap: .5rem; }
.admin-main { padding: 1.5rem 2rem 3rem; min-width: 0; }
.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.admin-head h1 { margin: 0; font-size: 1.5rem; }
.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1.5rem 0; }
.admin-cols section { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); }
.admin-toolbar { display: flex; gap: .7rem; margin-bottom: 1rem; flex-wrap: wrap; align-items: center; }
@media (max-width: 900px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; }
    .admin-cols { grid-template-columns: 1fr; }
}