/* ============================================================
   Webkraut Hilfe-Center — Stylesheet
   Design-Tokens orientieren sich an formsdocu.com.
   ============================================================ */

/* ─── DESIGN TOKENS ───────────────────────────────────────── */
:root {
    --white: #ffffff;
    --off-white: #f8f8f6;
    --light-gray: #efefed;
    --mid-gray: #d0d0cc;
    --text-muted: #8a8a85;
    --text-body: #3a3a38;
    --text-heading: #111110;
    --navy: #1a2540;
    --navy-mid: #243055;
    --navy-light: #2e3d6a;
    --slate: #4a5568;
    --slate-light: #6b7a94;
    --accent: #1a2540;
    --accent-hover: #0f1730;
    --green: #2ecc71;
    --danger: #b02a37;
    --danger-bg: #fdecea;
    --danger-border: #f5c2c0;
    --border: #e2e2de;
    --border-light: #ebebe7;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.07), 0 2px 6px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.05);
    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 14px;
    --font-serif: 'Outfit', system-ui, -apple-system, sans-serif;
    --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
    --max-w: 1140px;
    --header-h: 72px;
}

/* ─── RESET / BASE ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text-body);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5 {
    font-family: var(--font-serif);
    color: var(--text-heading);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 0.5em 0;
    font-weight: 600;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem 0; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
    font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
    background: var(--light-gray);
    padding: 0.1em 0.4em;
    border-radius: 4px;
    font-size: 0.92em;
}
strong { font-weight: 600; color: var(--text-heading); }

/* ─── LAYOUT ──────────────────────────────────────────────── */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 28px;
}
.container-narrow {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 28px;
}
.main-content { min-height: calc(100vh - 200px); }

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.18s ease;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary {
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(26,37,64,0.22);
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(26,37,64,0.28);
    color: white;
}
.btn-secondary {
    background: var(--white);
    color: var(--navy);
    border-color: var(--border);
}
.btn-secondary:hover {
    border-color: var(--navy);
    background: var(--off-white);
    color: var(--navy);
}
.btn-ghost {
    background: transparent;
    color: var(--text-body);
    padding: 10px 14px;
}
.btn-ghost:hover { color: var(--navy); }
.btn-danger {
    background: var(--white);
    color: var(--danger);
    border-color: var(--danger-border);
}
.btn-danger:hover {
    background: var(--danger-bg);
    border-color: var(--danger);
    color: var(--danger);
}
.btn-sm { padding: 7px 14px; font-size: 0.85rem; }

/* Inline-SVG-Icons: erben currentColor, skalieren mit Schriftgröße */
.icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    vertical-align: -0.12em;
}
.btn .icon { width: 16px; height: 16px; }

/* ─── HEADER ──────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.header-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 28px;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--navy);
    letter-spacing: -0.02em;
    text-decoration: none;
}
.site-logo:hover { text-decoration: none; color: var(--navy); }
.site-logo img {
    display: block;
    height: 70px;
    width: auto;
    object-fit: contain;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}
.main-nav a {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--slate);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: all 0.15s;
    text-decoration: none;
    white-space: nowrap;
}
.main-nav a:hover {
    color: var(--navy);
    background: var(--off-white);
    text-decoration: none;
}
.search-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ─── HEADER LIVE-SEARCH ──────────────────────────────────── */
.header-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 240px;
}
.header-search .hs-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.header-search input:focus ~ .hs-icon,
.header-search:focus-within .hs-icon { color: var(--navy); }
.header-search input {
    width: 100%;
    padding: 8px 12px 8px 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--off-white);
    font-family: var(--font-sans);
    font-size: 0.88rem;
    color: var(--text-body);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.header-search input::placeholder { color: var(--text-muted); }
.header-search input:focus {
    background: white;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(26,37,64,0.08);
}

.hs-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 380px;
    max-width: 460px;
    max-height: 480px;
    overflow-y: auto;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 4px;
    display: none;
    z-index: 200;
}
.hs-dropdown.open { display: block; }

.hs-item {
    display: block;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: inherit;
    transition: background 0.1s;
}
.hs-item:hover,
.hs-item.active {
    background: var(--off-white);
    text-decoration: none;
}
.hs-item .hs-cat {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.hs-item .hs-title {
    font-weight: 500;
    color: var(--text-heading);
    font-size: 0.92rem;
    margin-bottom: 4px;
    font-family: var(--font-serif);
}
.hs-item .hs-snip {
    font-size: 0.82rem;
    color: var(--slate);
    line-height: 1.45;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.hs-item .hs-snip mark {
    background: #fff4c4;
    color: var(--text-heading);
    padding: 0 2px;
    border-radius: 2px;
}
.hs-empty {
    padding: 16px;
    color: var(--text-muted);
    font-size: 0.88rem;
    text-align: center;
}
.hs-more {
    display: block;
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--navy);
    text-decoration: none;
    text-align: center;
}
.hs-more:hover {
    background: var(--off-white);
    text-decoration: none;
}

/* ─── HERO ────────────────────────────────────────────────── */
.hero {
    background: var(--off-white);
    padding: 88px 0 64px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.45;
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 50%,
        rgba(248,248,246,0.95) 40%,
        rgba(248,248,246,0.4) 100%);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 0.82rem;
    color: var(--slate);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.hero-eyebrow .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(46,204,113,0.3);
}
.hero h1 {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}
.hero p.lead {
    font-size: 1.1rem;
    color: var(--slate);
    line-height: 1.7;
    font-weight: 300;
    max-width: 56ch;
    margin: 0 auto 32px;
}

/* ─── SEARCH FORM ─────────────────────────────────────────── */
.search-form {
    display: flex;
    gap: 6px;
    max-width: 540px;
    margin: 0 auto;
    background: white;
    padding: 6px 6px 6px 18px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}
.search-form input[type="text"] {
    flex: 1;
    border: none;
    outline: none;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    background: transparent;
    color: var(--text-body);
    padding: 8px 0;
}
.search-form button {
    border: none;
    cursor: pointer;
    background: var(--navy);
    color: white;
    padding: 11px 22px;
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
}
.search-form button:hover { background: var(--accent-hover); }

/* ─── PAGE WRAPPER ────────────────────────────────────────── */
.page {
    padding: 56px 0 80px;
}
.page-narrow {
    max-width: 880px;
    margin: 0 auto;
    padding: 56px 28px 80px;
}
.section-head {
    text-align: center;
    margin-bottom: 40px;
}
.section-head h2 {
    font-size: 1.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.section-head p {
    color: var(--slate);
    margin: 0;
}

/* ─── BREADCRUMBS ─────────────────────────────────────────── */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}
.breadcrumbs a {
    color: var(--slate);
    text-decoration: none;
}
.breadcrumbs a:hover { color: var(--navy); text-decoration: underline; }
.breadcrumbs .sep,
.breadcrumbs .separator {
    margin: 0 6px;
    color: var(--mid-gray);
}
.breadcrumbs .current { color: var(--text-heading); }

/* ─── KATEGORIE-GRID ──────────────────────────────────────── */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}
.cat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}
.cat-card:hover {
    border-color: var(--mid-gray);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.cat-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.cat-icon {
    width: 44px;
    height: 44px;
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    flex-shrink: 0;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.05rem;
}
.cat-card h2,
.cat-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}
.cat-card h2 a,
.cat-card h3 a {
    color: inherit;
    text-decoration: none;
}
.cat-card h2 a:hover,
.cat-card h3 a:hover {
    color: var(--navy);
    text-decoration: none;
}
.cat-desc {
    color: var(--slate);
    font-size: 0.92rem;
    margin-bottom: 16px;
}
.sub-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sub-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-body);
    font-size: 0.92rem;
    text-decoration: none;
    transition: all 0.15s;
}
.sub-list a:hover {
    background: var(--off-white);
    color: var(--navy);
    text-decoration: none;
}
.sub-list .count {
    font-size: 0.78rem;
    color: var(--text-muted);
    background: var(--light-gray);
    padding: 2px 8px;
    border-radius: 12px;
}
.article-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}
.article-list li {
    padding: 7px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-light);
}
.article-list li:last-child { border-bottom: none; }
.article-list a {
    color: var(--text-body);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.article-list a::before {
    content: '›';
    color: var(--text-muted);
    font-weight: 600;
}
.article-list a:hover { color: var(--navy); text-decoration: none; }
.view-all {
    margin-top: auto;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    padding-top: 8px;
}
.view-all:hover { gap: 8px; text-decoration: none; }

/* ─── KATEGORIE-SEITE ─────────────────────────────────────── */
.subcategories { margin-bottom: 40px; }
.sub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.sub-card {
    display: block;
    padding: 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: all 0.18s ease;
}
.sub-card:hover {
    border-color: var(--mid-gray);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}
.sub-card h3 {
    margin: 0 0 6px 0;
    color: var(--navy);
    font-size: 1.05rem;
}
.sub-card p {
    color: var(--slate);
    font-size: 0.9rem;
    margin: 0 0 8px 0;
}
.sub-card .count {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.article-preview {
    padding: 22px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
    transition: all 0.18s;
}
.article-preview:hover {
    border-color: var(--mid-gray);
    box-shadow: var(--shadow-sm);
}
.article-preview h3 {
    margin: 0 0 6px 0;
    font-size: 1.15rem;
}
.article-preview a {
    color: var(--text-heading);
    text-decoration: none;
}
.article-preview a:hover { color: var(--navy); text-decoration: none; }
.article-preview p {
    color: var(--slate);
    margin: 0 0 10px 0;
    font-size: 0.95rem;
}

/* ─── ARTIKEL-SEITE ───────────────────────────────────────── */
.article-page {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 56px 28px 80px;
}
.article-main { min-width: 0; }
.article-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
    margin-bottom: 32px;
}
.article-title-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}
.article-title-row h1 {
    font-size: 2.2rem;
    margin: 0;
    flex: 1;
    min-width: 280px;
}
.article-title-row .tag-row {
    margin: 12px 0 0 0;
}
.tag-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.tag {
    font-size: 0.78rem;
    color: var(--navy);
    background: var(--off-white);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 12px;
}
.article-content {
    line-height: 1.75;
    font-size: 1rem;
    color: var(--text-body);
}
/* Erster Absatz oder Blockquote nach dem Titel = Lead-Paragraph */
.article-content > p:first-child,
.article-content > blockquote:first-child {
    font-size: 1.18rem;
    color: var(--slate);
    line-height: 1.65;
    font-weight: 300;
    margin-bottom: 1.6rem;
}
.article-content > blockquote:first-child {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    font-style: normal;
}
.article-content > blockquote:first-child p { margin: 0; }
.article-content h2 {
    margin-top: 2.2rem;
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
}
.article-content h3 {
    margin-top: 1.8rem;
    margin-bottom: 0.6rem;
    font-size: 1.2rem;
}
.article-content p { margin: 0 0 1.1rem 0; }
.article-content ul,
.article-content ol {
    margin: 0 0 1.1rem 0;
    padding-left: 1.5rem;
}
.article-content li { margin: 0.3rem 0; }
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin: 1rem 0;
}
/* Responsive Video-Embeds (YouTube, Vimeo etc. via Markdig MediaLinks) */
.article-content iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    border-radius: var(--radius);
    background: var(--off-white);
    margin: 1.2rem 0;
}
.article-content pre {
    background: var(--off-white);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: var(--radius);
    overflow-x: auto;
    font-size: 0.88rem;
}
.article-content pre code {
    background: none;
    padding: 0;
}
.article-content blockquote {
    border-left: 3px solid var(--navy);
    padding: 4px 0 4px 16px;
    margin: 1.2rem 0;
    color: var(--slate);
    font-style: italic;
}
.article-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.article-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 28px;
}
.article-meta .dot { margin: 0 8px; opacity: 0.6; }
.feedback {
    text-align: center;
    color: var(--slate);
}
.feedback p { margin-bottom: 14px; font-weight: 500; }
.feedback-actions { display: flex; justify-content: center; gap: 12px; }
.feedback-btn {
    padding: 9px 20px;
    border: 1px solid var(--border);
    background: white;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    color: var(--text-body);
    transition: all 0.15s;
}
.feedback-btn:hover:not(:disabled) {
    border-color: var(--navy);
    background: var(--off-white);
}
.feedback-btn.selected {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
}
.feedback-btn:disabled { cursor: default; opacity: 0.7; }
.feedback-thanks {
    color: var(--green);
    font-weight: 500;
    margin: 0;
    padding: 8px 0;
}

.article-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    align-self: start;
    height: fit-content;
}
.sidebar-section {
    background: var(--off-white);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 14px;
    border: 1px solid var(--border);
}
.sidebar-section h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin: 0 0 10px;
    font-family: var(--font-sans);
    font-weight: 600;
}
.sidebar-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-section li { padding: 5px 0; font-size: 0.9rem; }
.sidebar-section a { color: var(--text-body); text-decoration: none; }
.sidebar-section a:hover { color: var(--navy); text-decoration: none; }
.sidebar-section li.active a {
    color: var(--navy);
    font-weight: 500;
}
.sidebar-section a.contact-link {
    display: block;
    text-align: center;
    padding: 10px;
    background: var(--navy);
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 500;
}
.sidebar-section a.contact-link:hover { background: var(--accent-hover); color: white; }

/* ─── SUCHE ───────────────────────────────────────────────── */
.search-page-header {
    text-align: center;
    margin-bottom: 32px;
}
.search-page-header h1 { font-size: 2rem; margin-bottom: 16px; }
.search-page-header .search-form { margin: 24px auto 0; }
.results-count {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 20px;
}
.search-results {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.search-result {
    padding: 22px 24px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.18s;
}
.search-result:hover {
    border-color: var(--mid-gray);
    box-shadow: var(--shadow-sm);
}
.search-result h2 {
    font-size: 1.2rem;
    margin: 0 0 6px 0;
}
.search-result h2 a {
    color: var(--navy);
    text-decoration: none;
}
.search-result h2 a:hover { text-decoration: underline; }
.search-result .result-category {
    color: var(--text-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 6px 0;
}
.search-result .result-description {
    color: var(--text-body);
    margin: 0 0 10px 0;
    font-size: 0.95rem;
    line-height: 1.6;
}
.search-result .result-description mark,
.article-content mark {
    background: #fff4c4;
    color: var(--text-heading);
    padding: 1px 3px;
    border-radius: 3px;
    font-weight: 500;
}
.no-results {
    text-align: center;
    padding: 64px 20px;
    color: var(--slate);
}
.no-results h2 { margin-bottom: 12px; }

/* ─── QUICK ACTIONS ───────────────────────────────────────── */
.quick-actions {
    background: var(--off-white);
    padding: 64px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.quick-actions-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 28px;
    text-align: center;
}
.quick-actions h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}
.quick-actions p {
    color: var(--slate);
    margin-bottom: 24px;
}
.action-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── FOOTER ──────────────────────────────────────────────── */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.78);
    padding: 56px 0 28px;
}
.footer-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 28px;
}
.footer-grid {
    display: grid;
    gap: 40px;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    margin-bottom: 32px;
}
.footer-section h3 {
    color: white;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 14px 0;
    font-weight: 600;
    font-family: var(--font-sans);
}
.footer-section p {
    color: rgba(255,255,255,0.7);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}
.footer-section.brand-section h3 {
    text-transform: none;
    letter-spacing: -0.02em;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    margin-bottom: 10px;
    font-weight: 600;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: 4px 0; }
.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    text-decoration: none;
}
.footer-links a:hover { color: white; text-decoration: none; }
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
}
.footer-social { display: flex; gap: 10px; }
.social-link {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(255,255,255,0.7);
    transition: all 0.15s;
    font-size: 0.95rem;
}
.social-link:hover {
    background: rgba(255,255,255,0.18);
    color: white;
}

/* ─── ADMIN ───────────────────────────────────────────────── */
.admin-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 28px 80px;
}
.admin-page-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.admin-page-header h1 {
    margin: 0;
    flex: 1;
    font-size: 1.8rem;
}
.admin-breadcrumb {
    width: 100%;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.admin-breadcrumb a {
    color: var(--navy);
    text-decoration: none;
}
.admin-breadcrumb a:hover { text-decoration: underline; }

.admin-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 28px;
}
.admin-tile {
    display: block;
    padding: 22px 24px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: all 0.18s;
}
.admin-tile:hover {
    border-color: var(--mid-gray);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}
.admin-tile.disabled {
    opacity: 0.55;
    pointer-events: none;
}
.admin-tile h2 {
    margin: 0 0 6px 0;
    color: var(--navy);
    font-size: 1.15rem;
}
.admin-tile p {
    margin: 0;
    color: var(--slate);
    font-size: 0.92rem;
}

.logout-form button {
    padding: 8px 14px;
    background: white;
    color: var(--text-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.88rem;
}
.logout-form button:hover { background: var(--off-white); }

/* Suchlog */
.range-form select {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.88rem;
    background: white;
    color: var(--text-body);
    cursor: pointer;
}
.search-stats {
    color: var(--slate);
    margin-bottom: 24px;
}
.log-section {
    margin-bottom: 40px;
}
.log-section h2 {
    font-size: 1.2rem;
    margin: 0 0 4px 0;
}
.log-section .hint {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 14px;
}
.log-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    font-size: 0.9rem;
}
.log-table th,
.log-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}
.log-table thead th {
    background: var(--off-white);
    font-weight: 600;
    color: var(--text-heading);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.log-table tr:last-child td { border-bottom: none; }
.log-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.log-table .num.zero { color: var(--danger); font-weight: 600; }
.log-table .muted { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.log-table code {
    background: var(--off-white);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.88rem;
}
.privacy-note {
    margin-top: 32px;
    padding: 14px 16px;
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--slate);
    font-size: 0.85rem;
    line-height: 1.5;
}
.privacy-note code {
    background: white;
    padding: 1px 5px;
    border-radius: 3px;
    border: 1px solid var(--border);
    font-size: 0.85em;
}

/* Admin: Kategorie-Baum */
.cat-tree {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cat-tree ul {
    list-style: none;
    padding-left: 28px;
    margin: 6px 0;
}
.cat-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 6px;
}
.cat-row .name { font-weight: 500; color: var(--text-heading); }
.cat-row .meta {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-left: 6px;
}
.cat-row.is-hidden { background: var(--off-white); opacity: 0.75; }
.cat-row.is-hidden .name { color: var(--text-muted); }
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 6px;
}
.badge-hidden {
    background: var(--off-white);
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.cat-row .spacer { flex: 1; }
.cat-row .actions {
    display: flex;
    gap: 6px;
}
.inline-form { display: inline; }

/* Admin: Artikel-Liste */
.cat-group {
    margin-bottom: 28px;
}
.cat-group > h2 {
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 10px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-sans);
    font-weight: 600;
}
.cat-group > h2 a {
    color: var(--navy);
    text-decoration: none;
    font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: 0;
}
.article-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 6px;
}
.article-row .info {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.article-row .info .title {
    font-weight: 500;
    color: var(--text-heading);
}
.article-row .info .meta {
    color: var(--text-muted);
    font-size: 0.82rem;
}
.article-row .actions { display: flex; gap: 6px; }

/* Admin: Auth-Formulare */
.admin-auth {
    max-width: 440px;
    margin: 80px auto;
    padding: 32px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.admin-auth h1 {
    margin: 0 0 18px 0;
    font-size: 1.6rem;
}
.admin-auth .hint {
    color: var(--slate);
    margin-bottom: 20px;
    line-height: 1.5;
    font-size: 0.92rem;
}

/* Admin: Forms (Edit/Create) */
.admin-form { max-width: 760px; }
.admin-form label,
.admin-auth label {
    display: block;
    margin-bottom: 16px;
    font-weight: 500;
    color: var(--text-heading);
    font-size: 0.92rem;
}
.admin-form label small,
.admin-auth label small {
    display: block;
    color: var(--text-muted);
    font-weight: normal;
    font-size: 0.82rem;
    margin-top: 4px;
}
.admin-form input[type="text"],
.admin-form input[type="number"],
.admin-form input[type="password"],
.admin-form select,
.admin-form textarea,
.admin-auth input[type="text"],
.admin-auth input[type="password"] {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: normal;
    color: var(--text-body);
    background: white;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
.admin-auth input:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(26,37,64,0.08);
}
.admin-form input:disabled {
    background: var(--off-white);
    color: var(--text-muted);
    cursor: not-allowed;
}
.admin-form textarea {
    font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
    line-height: 1.55;
    resize: vertical;
    min-height: 320px;
}
.admin-form .row {
    display: flex;
    gap: 14px;
}
.admin-form .row .col { flex: 1; }
.admin-form .row .col-narrow { width: 140px; flex: 0 0 140px; }
.admin-form label.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 14px;
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    cursor: pointer;
}
.admin-form label.checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--navy);
}
.admin-form label.checkbox-row span { font-weight: 500; color: var(--text-heading); }
.admin-form label.checkbox-row small {
    flex-basis: 100%;
    margin-top: 4px;
    margin-left: 28px;
}
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
}
.form-error {
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    color: #842029;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}
.form-error p { margin: 4px 0; }
.form-error a { color: #842029; text-decoration: underline; }

/* Status-Texte */
.empty {
    color: var(--text-muted);
    font-style: italic;
    padding: 48px 20px;
    text-align: center;
}

/* ─── EASYMDE OVERRIDES ───────────────────────────────────── */
.EasyMDEContainer .CodeMirror {
    border-color: var(--border);
    border-radius: var(--radius-sm);
    font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
}
.EasyMDEContainer .editor-toolbar {
    border-color: var(--border);
    border-top-left-radius: var(--radius-sm);
    border-top-right-radius: var(--radius-sm);
}
.EasyMDEContainer .editor-preview {
    background: white;
    padding: 18px 22px;
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .article-page {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .article-sidebar {
        position: static;
    }
}
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    .hero { padding: 64px 0 48px; }
    .hero h1 { font-size: 2.1rem; }
    .header-container {
        height: auto;
        flex-direction: column;
        padding: 16px 20px;
        gap: 12px;
    }
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    .header-search {
        width: 100%;
    }
    .hs-dropdown {
        right: auto;
        left: 0;
        min-width: 0;
        width: 100%;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .admin-form .row {
        flex-direction: column;
    }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .cat-tree ul { padding-left: 16px; }
}
