@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* Eigenständige, öffentliche Hilfe-Site (hilfe.kontare.de) — bewusst NICHT
   die App-CSS eingebunden (andere Zielgruppe: Marketing-/Doku-Seite statt
   Business-Anwendung), aber dieselben Kontare-Markenfarben/-Schriften wie
   die App (--orange/--ink/--paper aus public/assets/style.css), damit es
   erkennbar zusammengehört, ohne 1:1 wie die App-Oberfläche auszusehen. */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --ink: #1A1A16;
    --paper: #F4F3EE;
    --paper-dim: #EAE8E0;
    --orange: #FF5A1F;
    --orange-dark: #D6440F;
    --surface: #FFFFFF;
    --border: #D8D5C9;
    --text-secondary: #5A5849;
    --text-muted: #8A8878;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow-sm: 0 2px 6px rgba(26, 26, 22, 0.06);
    --shadow-md: 0 8px 24px rgba(26, 26, 22, 0.08);
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

html { font-size: 16px; }

body {
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
}

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

h1, h2, h3 { font-family: var(--font-display); line-height: 1.25; }

/* Topbar */
.hilfe-topbar {
    background: var(--ink);
    color: #F4F3EE;
}
.hilfe-topbar-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}
.hilfe-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
}
.hilfe-brand:hover { text-decoration: none; }
.hilfe-brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--orange);
    display: inline-block;
}
.hilfe-brand-sub {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.85rem;
    color: #B7B5A6;
    margin-left: 0.15rem;
}
.hilfe-nav {
    display: flex;
    gap: 1.5rem;
    margin-right: auto;
    font-size: 0.92rem;
}
.hilfe-nav a { color: #C9C7B8; }
.hilfe-nav a:hover, .hilfe-nav a.active { color: #fff; text-decoration: none; }
.hilfe-cta {
    background: var(--orange);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full, 999px);
    font-size: 0.88rem;
    font-weight: 600;
}
.hilfe-cta:hover { background: var(--orange-dark); text-decoration: none; }

.hilfe-main { max-width: 1160px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }

/* Footer */
.hilfe-footer { border-top: 1px solid var(--border); margin-top: 3rem; }
.hilfe-footer-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.hilfe-footer-inner nav { display: flex; gap: 1.25rem; }
.hilfe-footer-inner a { color: var(--text-secondary); }

/* Landingpage-Kacheln */
.hilfe-hero { text-align: center; padding: 2rem 0 3rem; }
.hilfe-hero h1 { font-size: 2.1rem; margin-bottom: 0.6rem; }
.hilfe-hero p { color: var(--text-secondary); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

.hilfe-kachel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}
.hilfe-kachel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.15s, transform 0.15s;
}
.hilfe-kachel:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.hilfe-kachel h2 { font-size: 1.05rem; color: var(--ink); margin-bottom: 0.4rem; }
.hilfe-kachel p { color: var(--text-secondary); font-size: 0.92rem; }
.hilfe-kachel-icon { font-size: 1.6rem; margin-bottom: 0.6rem; }

/* Handbuch: Gruppen-Karten (Übersicht) statt Baum-Sidebar — bewusst anders
   gelöst als klassische Doku-Themes (z. B. MkDocs Material, das Papierkrams
   Hilfe-Center laut eigenem Footer nutzt): kein dauerhaft sichtbarer
   mehrstufiger Baum, stattdessen Drill-down Übersicht → Gruppe → Kapitel. */
.hilfe-gruppen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}
.hilfe-gruppen-karte {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    color: var(--ink);
    display: block;
    transition: box-shadow 0.15s, transform 0.15s;
    position: relative;
}
.hilfe-gruppen-karte:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.hilfe-gruppen-nr {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--orange-dark);
}
.hilfe-gruppen-karte h2 { font-size: 1.1rem; margin: 0.3rem 0 0.15rem; }
.hilfe-gruppen-karte > p { color: var(--text-muted); font-size: 0.82rem; margin-bottom: 0.8rem; }
.hilfe-gruppen-karte ul { list-style: none; }
.hilfe-gruppen-karte li { color: var(--text-secondary); font-size: 0.88rem; padding: 0.15rem 0; }
.hilfe-gruppen-mehr { color: var(--text-muted); font-style: italic; }

/* Breadcrumb + Kapitel-Liste (Gruppen-Seite) */
.hilfe-breadcrumb { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 1.25rem; }
.hilfe-breadcrumb a { color: var(--text-secondary); }

.hilfe-kapitel-liste { display: flex; flex-direction: column; gap: 0.6rem; }
.hilfe-kapitel-zeile {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    color: var(--ink);
    font-weight: 500;
}
.hilfe-kapitel-zeile:hover { border-color: var(--orange); text-decoration: none; }
.hilfe-kapitel-nr {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--orange-dark);
    min-width: 1.5rem;
}
.hilfe-kapitel-zeile > span:nth-child(2) { flex: 1; }
.hilfe-kapitel-pfeil { color: var(--text-muted); }

/* Kapitel-Pager (vorheriges/nächstes Kapitel derselben Gruppe) */
.hilfe-kapitel-pager {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
}
.hilfe-kapitel-pager-link {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.75rem 1.1rem;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    max-width: 45%;
}
.hilfe-kapitel-pager-link:hover { border-color: var(--orange); text-decoration: none; }
.hilfe-kapitel-pager-link small { color: var(--text-muted); font-size: 0.75rem; }
.hilfe-kapitel-pager-weiter { margin-left: auto; text-align: right; align-items: flex-end; }

.hilfe-content { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); }
.hilfe-content h1 { font-size: 1.6rem; margin-bottom: 1rem; }
.hilfe-content p { margin-bottom: 0.9rem; color: var(--text-secondary); }

.hilfe-platzhalter {
    background: var(--paper-dim);
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* FAQ Akkordeon */
.hilfe-faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    overflow: hidden;
}
.hilfe-faq-item summary {
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}
.hilfe-faq-item summary::-webkit-details-marker { display: none; }
.hilfe-faq-item summary::before { content: '+ '; color: var(--orange-dark); }
.hilfe-faq-item[open] summary::before { content: '– '; }
.hilfe-faq-item .hilfe-faq-antwort { padding: 0 1.25rem 1.1rem; color: var(--text-secondary); }

/* Status-Seite */
.hilfe-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--success-surface, #E6F9F1);
    color: #1F8A4C;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
}
.hilfe-status-badge::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #1F8A4C; }
.hilfe-status-liste { list-style: none; margin-top: 1.5rem; }
.hilfe-status-liste li {
    display: flex;
    justify-content: space-between;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
}
.hilfe-status-liste li:last-child { border-bottom: none; }

@media (max-width: 800px) {
    .hilfe-nav { display: none; }
    .hilfe-kapitel-pager { flex-direction: column; }
    .hilfe-kapitel-pager-link { max-width: 100%; }
    .hilfe-kapitel-pager-weiter { align-items: flex-start; text-align: left; margin-left: 0; }
}
