:root {
    --primary: #1e3a5f;
    --primary-light: #2a5280;
    --primary-dark: #152a45;
    --accent: #3498db;
    --accent-dark: #2980b9;
    --accent-light: #5dade2;
    --green: #27ae60;
    --green-light: #2ecc71;
    --yellow: #e8b100;
    --yellow-light: #f1c40f;
    --red: #e74c3c;
    --text: #2d3436;
    --text-light: #4a5568;
    --text-muted: #6b7684;
    --bg: #f5f7fa;
    --bg-white: #ffffff;
    --bg-tinted: #eef2f7;
    --border: #dde3ec;
    --border-light: #eaeef4;
    --shadow: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-accent: 0 4px 14px rgba(232,177,0,0.35);
    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 14px;
    --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

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

html { scroll-padding-top: 80px; }

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    padding-bottom: 64px; /* space for mobile sticky */
}

@media (min-width: 768px) { body { padding-bottom: 0; } }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }

/* Focus styles - WCAG compliant */
:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 2px;
    border-radius: 4px;
}
a:focus-visible, button:focus-visible { outline-offset: 3px; }

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 44px 0;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: white;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 32px;
}
.hero-left { display: flex; align-items: center; gap: 20px; }
.hero-logo { flex-shrink: 0; width: 56px; height: 56px; }
.hero-text h1 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.hero-text p {
    font-size: 1.05rem;
    opacity: 0.85;
    margin-top: 6px;
    font-weight: 400;
}
.hero-right { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.hero-stats { display: flex; gap: 0; flex-shrink: 0; }
.hero-stat { text-align: center; padding: 0 20px; border-right: 1px solid rgba(255,255,255,0.2); }
.hero-stat:last-child { border-right: none; padding-right: 0; }
.hero-stat:first-child { padding-left: 0; }
.hero-stat-number { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.hero-stat-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.78; font-weight: 600; margin-top: 2px; display: block; }

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--yellow);
    color: var(--primary-dark);
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--shadow-accent);
    transition: all 0.2s;
}
.hero-cta:hover { background: var(--yellow-light); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(232,177,0,0.5); }
.hero-cta svg { width: 18px; height: 18px; fill: var(--primary-dark); }

/* Sticky Notdienst Bar */
.notdienst-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--primary-dark);
    color: white;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 999;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
    border-top: 3px solid var(--yellow);
}
.notdienst-bar strong { color: var(--yellow); font-size: 0.9rem; }
.notdienst-bar small { font-size: 0.75rem; opacity: 0.8; display: block; }
.notdienst-bar a.notdienst-cta {
    background: var(--yellow);
    color: var(--primary-dark);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.notdienst-bar a.notdienst-cta svg { width: 16px; height: 16px; fill: var(--primary-dark); }
@media (min-width: 768px) {
    .notdienst-bar { display: none; }
}

/* Main Nav */
.main-nav { background: var(--primary); position: relative; z-index: 50; }
.main-nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 0;
    align-items: stretch;
    flex-wrap: wrap;
}
.main-nav-item { position: relative; }
.main-nav a, .main-nav-trigger {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 14px 18px;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.main-nav a:hover, .main-nav a.active, .main-nav-trigger:hover, .main-nav-trigger.active {
    color: white;
    border-bottom-color: var(--yellow);
    background: rgba(255,255,255,0.06);
}
.main-nav-trigger .caret { width: 10px; height: 10px; transition: transform 0.2s; }
.main-nav-item.open .main-nav-trigger .caret { transform: rotate(180deg); }

.main-nav-dropdown {
    position: absolute;
    top: 100%; left: 0;
    min-width: 260px;
    background: white;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 8px 0;
    display: none;
    z-index: 100;
}
.main-nav-item:hover .main-nav-dropdown, .main-nav-item.open .main-nav-dropdown { display: block; }
.main-nav-dropdown a {
    display: block;
    color: var(--text);
    padding: 12px 18px;
    font-size: 0.92rem;
    font-weight: 500;
    border: none;
    white-space: nowrap;
}
.main-nav-dropdown a:hover { background: var(--bg); color: var(--accent); border: none; }
.main-nav-dropdown a small { display: block; font-size: 0.78rem; color: var(--text-muted); font-weight: 400; margin-top: 2px; }

.main-nav a.notdienst-link {
    color: var(--yellow);
    font-weight: 600;
}

/* Breadcrumb */
.breadcrumb { padding: 14px 20px; font-size: 0.85rem; color: var(--text-light); max-width: 1140px; margin: 0 auto; }
.breadcrumb a { color: var(--accent-dark); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; color: var(--text-muted); }

/* Filter */
.filter-section {
    background: var(--bg-white);
    padding: 20px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    margin: 24px 0;
    position: relative;
}
.filter-toggle {
    display: none;
    width: 100%;
    background: var(--bg-white);
    border: 2px solid var(--border);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    text-align: left;
}
.filter-toggle svg { width: 16px; height: 16px; vertical-align: middle; margin-right: 8px; fill: var(--text-light); }
.filter-toggle .arrow { float: right; transition: transform 0.3s; }
.filter-toggle.active .arrow { transform: rotate(180deg); }
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    align-items: end;
}
.filter-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.filter-group select, .filter-group input {
    width: 100%;
    padding: 11px 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    background: var(--bg-white);
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
    font-family: inherit;
}
.filter-group select:focus, .filter-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}
.filter-group select[data-active="1"], .filter-group input[data-active="1"] {
    border-color: var(--accent);
    background: #f1f8fd;
    font-weight: 600;
}
.btn-reset {
    background: var(--bg);
    color: var(--text-light);
    border: 2px solid var(--border);
    padding: 11px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.15s;
    font-family: inherit;
}
.btn-reset:hover { background: var(--border); color: var(--text); }

/* Active filter chips */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 0 0 14px;
    min-height: 0;
}
.filter-chips:empty { display: none; }
.filter-chip {
    background: var(--accent);
    color: white;
    padding: 5px 10px 5px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: background 0.15s;
}
.filter-chip:hover { background: var(--accent-dark); }
.filter-chip-remove {
    font-size: 1rem;
    line-height: 1;
    opacity: 0.85;
    margin-left: 2px;
}
.filter-chips .clear-all {
    background: none;
    color: var(--text-light);
    font-size: 0.82rem;
    text-decoration: underline;
    cursor: pointer;
    border: none;
    padding: 5px 8px;
    font-family: inherit;
}

/* Results Bar */
.results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}
.results-info { color: var(--text-light); font-size: 0.95rem; }
.results-info strong { color: var(--text); font-weight: 700; font-size: 1.1rem; }
.sort-controls { display: flex; align-items: center; gap: 8px; }
.sort-controls label { font-size: 0.85rem; color: var(--text-light); white-space: nowrap; font-weight: 500; }
.sort-controls select {
    padding: 7px 10px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    background: var(--bg-white);
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
}
.sort-controls select:focus { outline: none; border-color: var(--accent); }

/* Listings */
.listings-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.listing-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
}
.listing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.listing-card.is-24h { border-top: 3px solid var(--yellow); }
.listing-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.listing-header h3 { font-size: 1.05rem; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.badge-24h {
    background: var(--yellow);
    color: var(--primary-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.badge-24h::before { content: '●'; color: var(--red); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

.listing-body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; }
.listing-bezirk {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Primary phone = prominent */
.listing-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-tinted);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    text-decoration: none;
}
.listing-phone svg { width: 18px; height: 18px; fill: var(--accent-dark); flex-shrink: 0; }
.listing-phone .phone-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; display: block; }
.listing-phone .phone-number { font-size: 1.1rem; color: var(--primary); font-weight: 700; font-variant-numeric: tabular-nums; }

.listing-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 12px;
}
.listing-detail {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.listing-detail svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; }
.listing-detail.is-location svg { fill: var(--accent-dark); }
.listing-detail.is-email svg { fill: var(--text-muted); }
.listing-detail a {
    color: var(--text-light);
    text-decoration: none;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.listing-detail a:hover { color: var(--accent); text-decoration: underline; }
.listing-details-extra { display: none; }
.listing-details-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.82rem;
    cursor: pointer;
    padding: 4px 0;
    text-decoration: underline;
    font-family: inherit;
}
.listing-details-toggle:hover { color: var(--accent); }

.listing-services { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; margin-top: auto; padding-top: 10px; }
.service-tag {
    background: var(--bg);
    color: var(--text-light);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--border);
    transition: all 0.15s;
}
.service-tag a {
    color: inherit;
    text-decoration: none;
    display: inline-block;
}
.service-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: #f1f8fd;
    cursor: pointer;
}

/* Listing action buttons - NEW hierarchy */
.listing-actions {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 6px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}
.btn-action {
    border: none;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}
.btn-action svg { width: 14px; height: 14px; }
.btn-call {
    background: var(--yellow);
    color: var(--primary-dark);
    font-size: 0.95rem;
    box-shadow: 0 2px 6px rgba(232,177,0,0.3);
}
.btn-call:hover { background: var(--yellow-light); transform: translateY(-1px); box-shadow: 0 4px 10px rgba(232,177,0,0.45); }
.btn-call svg { fill: var(--primary-dark); width: 16px; height: 16px; }
.btn-icon {
    background: var(--bg);
    color: var(--text-light);
    padding: 11px 12px;
    min-width: 42px;
    border: 1px solid var(--border);
}
.btn-icon:hover { background: var(--primary); color: white; border-color: var(--primary); }
.btn-icon:hover svg { fill: white; }
.btn-icon svg { fill: var(--text-light); width: 16px; height: 16px; }

/* Bezirk Grid */
.bezirk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 10px;
    margin: 18px 0 24px;
}
.bezirk-grid a {
    display: block;
    position: relative;
    padding: 14px 14px 14px 14px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 600;
    transition: all 0.15s;
    min-height: 72px;
}
.bezirk-grid a:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}
.bezirk-grid a .plz {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
    display: block;
    margin-top: 4px;
    letter-spacing: 0.04em;
}
.bezirk-grid a .count {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--green);
    color: white;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    letter-spacing: 0.02em;
}
.bezirk-grid a .count.empty { background: var(--border); color: var(--text-muted); }

/* Service Grid - homepage teaser */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 18px 0 24px;
}
.service-grid a {
    display: block;
    padding: 20px 22px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: all 0.15s;
    border-left: 4px solid var(--accent);
}
.service-grid a:hover {
    border-color: var(--accent);
    border-left-color: var(--yellow);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.service-grid strong { display: block; color: var(--primary); font-size: 1.05rem; margin-bottom: 4px; letter-spacing: -0.01em; }
.service-grid span { color: var(--text-light); font-size: 0.88rem; line-height: 1.5; }

/* Ratgeber Teaser Grid (homepage) */
.ratgeber-teaser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 18px 0 24px;
}
.ratgeber-teaser-grid a {
    display: block;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px 22px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.15s;
}
.ratgeber-teaser-grid a:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.ratgeber-teaser-grid strong { display: block; color: var(--primary); font-size: 1.05rem; margin-bottom: 8px; line-height: 1.3; letter-spacing: -0.01em; }
.ratgeber-teaser-grid p { color: var(--text-light); font-size: 0.88rem; line-height: 1.5; margin: 0; }
.ratgeber-teaser-more { margin-top: 12px; display: inline-block; color: var(--accent-dark); font-weight: 600; text-decoration: none; }
.ratgeber-teaser-more:hover { text-decoration: underline; }

/* Ratgeber Hub */
.ratgeber-featured {
    display: block;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-top: 24px;
    text-decoration: none;
    color: var(--text);
    transition: box-shadow 0.2s, transform 0.2s;
    border: 1px solid var(--border-light);
    border-left: 6px solid var(--yellow);
}
.ratgeber-featured:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.ratgeber-featured-body { padding: 28px 34px; }
.ratgeber-featured .featured-badge {
    display: inline-block;
    background: var(--yellow);
    color: var(--primary-dark);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}
.ratgeber-featured h2 { font-size: 1.6rem; font-weight: 800; color: var(--primary); margin-bottom: 10px; letter-spacing: -0.02em; line-height: 1.2; }
.ratgeber-featured p { color: var(--text-light); font-size: 1rem; line-height: 1.6; margin-bottom: 14px; max-width: 720px; }
.ratgeber-featured .meta { color: var(--text-muted); font-size: 0.85rem; font-weight: 500; }

.ratgeber-category { margin-top: 44px; }
.ratgeber-category-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--border-light); }
.ratgeber-category-head h2 { font-size: 1.25rem; font-weight: 800; color: var(--primary); letter-spacing: -0.02em; margin: 0; flex: 1; }
.ratgeber-category-head .count { color: var(--text-muted); font-size: 0.85rem; }

.ratgeber-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ratgeber-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 22px 24px;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s;
    position: relative;
}
.ratgeber-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.ratgeber-card h3 { color: var(--primary); font-size: 1.05rem; line-height: 1.3; margin: 0; letter-spacing: -0.01em; font-weight: 700; }
.ratgeber-card p { color: var(--text-light); font-size: 0.9rem; line-height: 1.55; margin: 0; flex: 1; }
.ratgeber-card .meta { font-size: 0.78rem; color: var(--text-muted); margin-top: auto; padding-top: 4px; font-weight: 500; }

/* Ratgeber Search */
.ratgeber-search {
    position: relative;
    margin: 20px 0 10px;
}
.ratgeber-search input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    background: var(--bg-white);
    color: var(--text);
    font-family: inherit;
}
.ratgeber-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(52,152,219,0.15); }
.ratgeber-search::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236b7684'><path d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/></svg>");
    background-repeat: no-repeat;
}

/* Article layout */
.article-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; margin-top: 24px; align-items: start; }
.article-toc {
    position: sticky;
    top: 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px 22px;
    font-size: 0.9rem;
}
.article-toc h4 { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; font-weight: 700; }
.article-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.article-toc li { counter-increment: toc; margin-bottom: 8px; padding-left: 22px; position: relative; line-height: 1.4; }
.article-toc li::before { content: counter(toc); position: absolute; left: 0; top: 1px; width: 18px; height: 18px; background: var(--bg-tinted); border-radius: 50%; font-size: 0.7rem; font-weight: 700; color: var(--text-muted); display: flex; align-items: center; justify-content: center; }
.article-toc a { color: var(--text-light); text-decoration: none; }
.article-toc a:hover, .article-toc a.active { color: var(--accent-dark); font-weight: 600; }

.article-main { background: var(--bg-white); border-radius: var(--radius); padding: 36px 44px; box-shadow: var(--shadow); border: 1px solid var(--border-light); }
.article-meta-row { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--border-light); font-size: 0.88rem; color: var(--text-muted); }
.article-meta-row .category-pill { background: var(--bg-tinted); color: var(--primary); padding: 4px 12px; border-radius: 20px; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.02em; }
.article-meta-row .meta-item { display: inline-flex; align-items: center; gap: 6px; }
.article-meta-row svg { width: 14px; height: 14px; fill: currentColor; }

.article-lead { font-size: 1.15rem; line-height: 1.65; color: var(--text); margin-bottom: 28px; font-weight: 500; padding: 18px 22px; background: var(--bg); border-left: 4px solid var(--accent); border-radius: 0 8px 8px 0; }

.article-tldr { background: #eef6ff; border-radius: var(--radius); padding: 20px 24px; margin: 20px 0 28px; border-left: 4px solid var(--accent); }
.article-tldr h4 { color: var(--primary); margin: 0 0 10px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.article-tldr ul { margin: 0; padding-left: 20px; color: var(--text); }
.article-tldr li { margin-bottom: 6px; line-height: 1.6; }

.article-main h2 { font-size: 1.4rem; margin: 36px 0 14px; color: var(--primary); letter-spacing: -0.02em; scroll-margin-top: 20px; }
.article-main h2:first-of-type { margin-top: 8px; }
.article-main h3 { font-size: 1.1rem; margin: 28px 0 10px; color: var(--primary); font-weight: 700; }
.article-main h4 { font-size: 1rem; margin: 22px 0 8px; color: var(--primary); }
.article-main p { color: var(--text); margin-bottom: 14px; line-height: 1.75; }
.article-main ul, .article-main ol { color: var(--text); margin: 0 0 18px 24px; line-height: 1.75; }
.article-main li { margin-bottom: 6px; }
.article-main strong { color: var(--text); }
.article-main a { color: var(--accent-dark); font-weight: 500; }

.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.article-nav a {
    display: block;
    padding: 18px 22px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: all 0.15s;
}
.article-nav a:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.article-nav .nav-label { color: var(--text-muted); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 4px; }
.article-nav .nav-title { color: var(--primary); font-weight: 700; font-size: 0.95rem; letter-spacing: -0.01em; }
.article-nav a.next { text-align: right; }

.article-related { margin-top: 40px; }
.article-related h3 { font-size: 1.15rem; color: var(--primary); margin-bottom: 16px; }

@media (max-width: 960px) {
    .article-layout { grid-template-columns: 1fr; }
    .article-toc { position: static; order: -1; }
    .article-main { padding: 28px 24px; }
    .ratgeber-featured { grid-template-columns: 1fr; }
    .ratgeber-featured-img { padding: 32px; font-size: 3rem; }
    .ratgeber-featured-body { padding: 24px; }
    .article-nav { grid-template-columns: 1fr; }
}

/* FAQ */
.faq-section {
    background: var(--bg-white);
    margin-top: 40px;
    padding: 36px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}
.faq-section h2 { font-size: 1.55rem; font-weight: 800; color: var(--primary); margin-bottom: 20px; letter-spacing: -0.02em; }
.faq-item { border-bottom: 1px solid var(--border-light); }
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
    padding: 18px 0;
    cursor: pointer;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "";
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233498db'><path d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6z'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item summary:hover { color: var(--accent); }
.faq-answer { padding: 0 0 20px; color: var(--text-light); line-height: 1.7; max-width: 820px; }

/* Info Section */
.info-section {
    background: var(--bg-white);
    margin-top: 24px;
    padding: 36px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}
.info-section.is-secondary {
    background: var(--bg-tinted);
    border-style: dashed;
}
.info-content h2 { font-size: 1.55rem; font-weight: 800; color: var(--primary); margin-bottom: 16px; letter-spacing: -0.02em; }
.info-content h3 { font-size: 1.15rem; font-weight: 700; color: var(--primary); margin: 28px 0 10px; letter-spacing: -0.01em; }
.info-content p { color: var(--text-light); margin-bottom: 14px; max-width: 850px; line-height: 1.7; }
.info-content h4 { font-size: 1rem; font-weight: 700; color: var(--primary); margin: 22px 0 8px; }
.info-content ul, .info-content ol { color: var(--text-light); margin: 0 0 16px 24px; line-height: 1.7; }
.info-content li { margin-bottom: 6px; }
.info-content strong { color: var(--text); }
.info-content a { color: var(--accent-dark); font-weight: 500; }
.info-content a:hover { color: var(--accent); }

/* Tables */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0 24px;
    font-size: 0.92rem;
    line-height: 1.5;
}
.info-table thead th {
    background: var(--primary);
    color: white;
    padding: 12px 14px;
    text-align: left;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.info-table thead th:first-child { border-radius: 8px 0 0 0; }
.info-table thead th:last-child { border-radius: 0 8px 0 0; }
.info-table tbody td { padding: 11px 14px; border-bottom: 1px solid var(--border-light); color: var(--text-light); }
.info-table tbody tr:last-child td { border-bottom: none; }
.info-table tbody tr:nth-child(even) { background: #f8f9fb; }
.info-table tbody tr:hover { background: #eef3f9; }
.info-table .table-note { font-size: 0.82rem; color: var(--text-muted); font-style: italic; margin-top: -14px; margin-bottom: 20px; }
.info-table td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text); white-space: nowrap; }

/* Checklist */
.checklist { list-style: none; margin: 14px 0 22px 0; padding: 0; }
.checklist li {
    position: relative;
    padding: 6px 0 6px 30px;
    color: var(--text-light);
    line-height: 1.6;
}
.checklist li::before {
    content: '\2713';
    position: absolute;
    left: 0; top: 6px;
    width: 22px; height: 22px;
    background: var(--green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
}
.warning-list li::before { content: '!'; background: var(--red); }

/* Tip Boxes */
.info-tip {
    background: #eef6ff;
    border-left: 4px solid var(--accent);
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin: 18px 0 24px;
    font-size: 0.94rem;
    color: var(--text);
    line-height: 1.65;
}
.info-tip strong { color: var(--primary); }
.info-warning { background: #fef8e7; border-left-color: var(--yellow); }
.info-warning strong { color: #8a6d00; }

/* TOC */
.guide-toc {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 20px 24px;
    margin: 20px 0 32px;
}
.guide-toc h4 { margin: 0 0 12px; font-size: 0.95rem; color: var(--primary); }
.guide-toc ol { margin: 0; padding: 0 0 0 20px; color: var(--text-light); font-size: 0.9rem; line-height: 1.9; }

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 40px;
    border-radius: var(--radius);
    margin-top: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--green), var(--yellow));
}
.cta-section h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.01em; }
.cta-section p { opacity: 0.85; margin-bottom: 16px; }
.cta-section a {
    display: inline-block;
    background: var(--yellow);
    color: var(--primary-dark);
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.15s;
}
.cta-section a:hover { background: var(--yellow-light); transform: translateY(-1px); }

/* B2B CTA - smaller, secondary */
.b2b-box {
    background: var(--bg-tinted);
    border: 1px dashed var(--border);
    padding: 18px 22px;
    border-radius: var(--radius);
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.b2b-box strong { color: var(--primary); display: block; margin-bottom: 2px; font-size: 0.98rem; }
.b2b-box small { color: var(--text-light); font-size: 0.85rem; }
.b2b-box a { color: var(--accent-dark); font-weight: 600; text-decoration: none; font-size: 0.9rem; white-space: nowrap; }
.b2b-box a:hover { text-decoration: underline; }

/* Trust Bar */
.trust-bar {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 16px 20px;
    margin-top: 30px;
    background: var(--bg-tinted);
    border-radius: var(--radius);
    font-size: 0.88rem;
    color: var(--text-light);
}
.trust-bar > span { display: inline-flex; align-items: center; gap: 6px; }
.trust-bar svg { width: 16px; height: 16px; fill: var(--green); }

/* Disclaimer */
.disclaimer { text-align: center; padding: 16px 20px; color: var(--text-muted); font-size: 0.82rem; }

/* Footer */
footer {
    background: var(--primary-dark);
    padding: 32px 20px 24px;
    color: rgba(255,255,255,0.7);
    font-size: 0.88rem;
    margin-top: 40px;
}
.footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    align-items: start;
}
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand-name { color: white; font-weight: 700; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.footer-brand svg { width: 24px; height: 24px; }
.footer-brand small { color: rgba(255,255,255,0.55); font-size: 0.82rem; line-height: 1.5; }
.footer-col h4 { color: white; font-size: 0.88rem; font-weight: 700; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.88rem; transition: color 0.15s; }
.footer-col a:hover { color: white; }
.footer-bottom { max-width: 1140px; margin: 24px auto 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: rgba(255,255,255,0.55); }

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 90;
}
@media (min-width: 768px) { .back-to-top { bottom: 24px; } }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-light); transform: translateY(-2px); }

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}
.no-results h3 { margin-bottom: 8px; color: var(--text-light); }

/* Responsive */
@media (max-width: 900px) {
    .listings-container { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .hero { padding: 28px 0; }
    .hero-inner { grid-template-columns: 1fr; gap: 20px; text-align: center; }
    .hero-left { flex-direction: column; text-align: center; }
    .hero-text h1 { font-size: 1.7rem; }
    .hero-right { align-items: center; }
    .hero-stat { padding: 0 14px; }
    .hero-stat-number { font-size: 1.3rem; }
    .filter-section { padding: 16px; }
    .filter-toggle { display: flex; align-items: center; }
    .filter-content { display: none; margin-top: 16px; }
    .filter-content.visible { display: block; }
    .filter-grid { grid-template-columns: 1fr; }
    .listing-header { flex-direction: column; align-items: flex-start; }
    .listing-actions { grid-template-columns: 1fr; }
    .btn-icon { width: 100%; justify-content: center; }
    .faq-section, .info-section { padding: 24px 20px; }
    .cta-section { padding: 28px 20px; }
    .results-bar { flex-direction: column; align-items: flex-start; }
    .footer-inner { grid-template-columns: 1fr; }
    .info-table { font-size: 0.82rem; }
    .info-table thead th, .info-table tbody td { padding: 8px 10px; }
    .back-to-top { bottom: 80px; }
}
@media (max-width: 480px) {
    .hero-stat { padding: 0 10px; }
    .hero-stat-number { font-size: 1.2rem; }
    .hero-stat-label { font-size: 0.7rem; }
}
