/* ============================================================
   themen.css — Komponenten für die Sachmängelrecht-Ratgeberseiten.
   Ergänzt v2.css (nutzt dessen --v2-* Variablen). Isoliert gehalten,
   damit v2.css/Startseite unberührt bleiben.
   ============================================================ */

/* --- Breadcrumb ------------------------------------------------ */
.v2-breadcrumb {
    background: var(--v2-bg);
    border-bottom: 1px solid var(--v2-border);
    padding-top: calc(72px + 0.75rem);
    padding-bottom: 0.75rem;
    font-size: 0.85rem;
}
.v2-breadcrumb .v2-shell { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.v2-breadcrumb a { color: var(--v2-text-secondary); text-decoration: none; }
.v2-breadcrumb a:hover { color: var(--v2-accent); }
.v2-breadcrumb span[aria-hidden] { color: var(--v2-text-muted); }
.v2-breadcrumb span[aria-current] { color: var(--v2-text); font-weight: 600; }

/* --- Kompaktes Hero (Content-Seiten, kein voller Landing-Hero) -- */
.v2-hero.v2-hero-compact {
    padding-top: 2.75rem;
    padding-bottom: 2.5rem;
    background:
        radial-gradient(ellipse 70% 60% at 15% -10%, rgba(77, 124, 254, 0.10), transparent),
        linear-gradient(180deg, #ffffff 0%, var(--v2-bg) 100%);
}
.v2-hero-compact .v2-hero-title { max-width: 22ch; }
.v2-hero-compact .v2-hero-desc { max-width: 60ch; }
.v2-hero-meta-line {
    margin-top: 1.25rem;
    font-size: 0.82rem;
    color: var(--v2-text-muted);
    display: flex; flex-wrap: wrap; align-items: center;
}
.v2-hero-meta-line i { color: var(--v2-accent); margin-right: 0.25rem; }

/* --- Artikel-Layout: Inhalt + Sidebar ------------------------- */
.v2-article-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 3rem;
    align-items: start;
}
@media (max-width: 960px) {
    .v2-article-grid { grid-template-columns: 1fr; gap: 2rem; }
    .v2-aside { order: -1; }
}

/* --- Typografie für Fließtext (Prose) ------------------------- */
.v2-prose { color: var(--v2-text-secondary); line-height: 1.75; font-size: 1.02rem; }
.v2-prose > :first-child { margin-top: 0; }
.v2-prose p { margin: 0 0 1.1rem; }
.v2-prose h3 { color: var(--v2-text); font-size: 1.2rem; font-weight: 700; margin: 1.8rem 0 0.75rem; }
.v2-prose strong { color: var(--v2-text); font-weight: 650; }
.v2-prose a { color: var(--v2-accent); text-decoration: underline; text-underline-offset: 2px; }
.v2-prose a.v2-inline-link { text-decoration-style: dotted; text-underline-offset: 3px; }
.v2-prose ul, .v2-prose ol { margin: 0 0 1.1rem; padding-left: 1.35rem; }
.v2-prose li { margin-bottom: 0.5rem; }
.v2-prose ul li::marker { color: var(--v2-accent); }
.v2-prose blockquote {
    margin: 1.5rem 0; padding: 1rem 1.25rem;
    border-left: 3px solid var(--v2-accent);
    background: var(--v2-bg); border-radius: var(--v2-radius-sm);
    color: var(--v2-text); font-style: normal;
}
.v2-prose table {
    width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.95rem;
    border: 1px solid var(--v2-border); border-radius: var(--v2-radius-md); overflow: hidden;
}
.v2-prose th, .v2-prose td { padding: 0.7rem 0.9rem; text-align: left; border-bottom: 1px solid var(--v2-border); }
.v2-prose th { background: var(--v2-bg); color: var(--v2-text); font-weight: 650; }
.v2-prose tr:last-child td { border-bottom: none; }
.v2-prose .gesetz { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Hervorgehobener Intro-Absatz */
.v2-intro { font-size: 1.12rem; color: var(--v2-text); line-height: 1.7; }
.v2-intro p:first-of-type strong:first-child { color: var(--v2-accent); }

/* Hinweis-/Merkkasten innerhalb der Prose: <div class="v2-callout"> */
.v2-prose .v2-callout {
    display: flex; gap: 0.85rem; align-items: flex-start;
    margin: 1.5rem 0; padding: 1rem 1.25rem;
    background: rgba(77, 124, 254, 0.06);
    border: 1px solid rgba(77, 124, 254, 0.25);
    border-radius: var(--v2-radius-md);
}
.v2-prose .v2-callout::before {
    content: "\f0eb"; font-family: "Font Awesome 6 Free"; font-weight: 900;
    color: var(--v2-accent); font-size: 1.1rem; line-height: 1.6;
}
.v2-prose .v2-callout.warn { background: rgba(239, 68, 68, 0.05); border-color: rgba(239, 68, 68, 0.25); }
.v2-prose .v2-callout.warn::before { content: "\f071"; color: var(--v2-danger); }

/* --- Inhaltsverzeichnis --------------------------------------- */
.v2-toc {
    background: var(--v2-bg); border: 1px solid var(--v2-border);
    border-radius: var(--v2-radius-md); padding: 1.1rem 1.35rem; margin: 0 0 2rem;
}
.v2-toc strong { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--v2-text-muted); margin-bottom: 0.6rem; }
.v2-toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.v2-toc a { color: var(--v2-text-secondary); text-decoration: none; font-size: 0.95rem; }
.v2-toc a:hover { color: var(--v2-accent); }
.v2-toc a::before { content: "\2192"; color: var(--v2-accent); margin-right: 0.5rem; }

.v2-content-section { margin-bottom: 2.5rem; scroll-margin-top: 90px; }
.v2-content-section h2 { color: var(--v2-text); font-size: 1.55rem; font-weight: 800; line-height: 1.25; margin: 0 0 1rem; }

/* --- Sidebar -------------------------------------------------- */
.v2-aside { display: grid; gap: 1.25rem; position: sticky; top: 90px; }
@media (max-width: 960px) { .v2-aside { position: static; } }
.v2-factbox {
    background: var(--v2-bg-elevated); border: 1px solid var(--v2-border);
    border-radius: var(--v2-radius-lg); padding: 1.35rem; box-shadow: var(--v2-shadow-sm);
}
.v2-factbox h3 { font-size: 1rem; color: var(--v2-text); margin: 0 0 0.9rem; display: flex; align-items: center; gap: 0.5rem; }
.v2-factbox h3 i { color: var(--v2-accent); }
.v2-factbox dl { margin: 0; display: grid; gap: 0.7rem; }
.v2-factbox dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--v2-text-muted); }
.v2-factbox dd { margin: 0.1rem 0 0; color: var(--v2-text); font-weight: 600; font-size: 0.96rem; }
.v2-factbox dd .gesetz { color: var(--v2-accent); }

.v2-aside-cta {
    background: var(--v2-primary); color: #fff;
    border-radius: var(--v2-radius-lg); padding: 1.5rem; text-align: center;
}
.v2-aside-cta h3 { color: #fff; font-size: 1.15rem; margin: 0 0 0.5rem; }
.v2-aside-cta p { color: rgba(255,255,255,0.75); font-size: 0.9rem; margin: 0 0 1.1rem; line-height: 1.6; }
.v2-btn-block { display: flex; width: 100%; justify-content: center; margin-bottom: 0.6rem; }
.v2-aside-cta .v2-btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.v2-aside-cta .v2-btn-ghost:hover { background: rgba(255,255,255,0.1); }

/* --- FAQ: längere Antworten nicht abschneiden ----------------- */
.v2-faq { display: grid; gap: 0.75rem; margin-top: 0.5rem; }
.v2-faq-item.active .v2-faq-answer { max-height: 1600px; }
.v2-faq-answer .v2-prose { padding-top: 0.25rem; }

/* --- Related-Karten: Titel + Pfeil ---------------------------- */
.v2-cat-card { flex-direction: column; align-items: flex-start; gap: 0.6rem; text-align: left; }
.v2-cat-card .v2-cat-icon { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(77,124,254,0.1); color: var(--v2-accent); border-radius: var(--v2-radius-md); font-size: 1.1rem; }
.v2-cat-card:hover .v2-cat-icon { background: rgba(255,255,255,0.2); color: #fff; }
.v2-cat-card-title { font-weight: 700; font-size: 1.02rem; }
.v2-cat-card-go { font-size: 0.85rem; color: var(--v2-accent); font-weight: 600; }
.v2-cat-card:hover .v2-cat-card-go { color: #fff; }
