@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Source+Serif+4:ital,opsz,wght@0,8..60,600;0,8..60,700;1,8..60,400&display=swap');

/* Reset und Basis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Farben */
    --c-text: #2B3640;
    --c-text-2: #5B6670;
    --c-primary: #1E4D3F;
    --c-bg: #FFFFFF;
    --c-surface: #EEF0EE;
    --c-line: #D5D9D5;
    --c-line-strong: #7C8791;
    --c-stamp: #B08A2E;
    --c-stamp-text: #8A6A1C;
    --c-warn: #B3261E;

    /* Schrift */
    --f-sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
    --f-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

    /* Typo-Skala */
    --t-xs: 0.8125rem;
    --t-sm: 0.9375rem;
    --t-md: 1.0625rem;
    --t-lg: 1.1875rem;
    --t-h3: 1.375rem;
    --t-h2: 1.75rem;
    --t-h1: 2.25rem;

    /* Abstände */
    --s-1: 4px;
    --s-2: 8px;
    --s-3: 12px;
    --s-4: 16px;
    --s-5: 24px;
    --s-6: 32px;
    --s-7: 48px;
    --s-8: 72px;

    /* Rundungen */
    --r-table: 0;
    --r-control: 4px;
    --r-badge: 2px;

    /* Layout */
    --w-page: 1120px;
    --w-text: 68ch;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--f-sans);
    font-size: var(--t-md);
    line-height: 1.5;
    color: var(--c-text);
    background-color: var(--c-bg);
}

a {
    color: var(--c-primary);
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

a:focus {
    outline: 3px solid var(--c-primary);
    outline-offset: 2px;
}

/* Header */
.header {
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-line);
    min-height: 72px;
    position: relative;
    z-index: 1000;
}

.nav {
    max-width: var(--w-page);
    margin: 0 auto;
    padding: 10px var(--s-5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-5);
}

.nav-logo a {
    font-family: var(--f-sans);
    font-size: var(--t-h3);
    font-weight: 600;
    color: var(--c-text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.site-logo {
    height: 56px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    display: block;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 1px solid var(--c-line);
    border-radius: var(--r-control);
    padding: 9px 8px;
    cursor: pointer;
    z-index: 1002;
}

.nav-toggle:focus {
    outline: 3px solid var(--c-primary);
    outline-offset: 2px;
}

.hamburger-bar {
    width: 100%;
    height: 2px;
    background-color: var(--c-text);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-cta-mobile {
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--s-5);
    align-items: center;
}

.nav-menu a {
    color: var(--c-text);
    font-weight: 500;
    text-decoration: none;
    padding-bottom: 2px;
}

.nav-menu a:hover {
    color: var(--c-primary);
}

.nav-menu a.active {
    color: var(--c-primary);
    border-bottom: 2px solid var(--c-primary);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--c-bg);
    border: 1px solid var(--c-line);
    min-width: 200px;
    display: none;
    list-style: none;
    padding: var(--s-3) 0;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: var(--s-3) var(--s-4);
    color: var(--c-text);
    text-decoration: none;
}

.dropdown-menu li a:hover {
    background: var(--c-surface);
    color: var(--c-primary);
}

@media (max-width: 860px) {
    .site-logo {
        height: 46px;
        max-width: 210px;
    }

    .comparison-section,
    .content-section.start-section,
    .content-section:has(.start),
    .faq-section,
    .methodology-teaser {
        min-height: auto;
        padding: var(--s-6) 0;
        margin-bottom: var(--s-6);
        scroll-margin-top: 68px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-cta-desktop {
        display: none;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--c-bg);
        border-bottom: 1px solid var(--c-line);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        padding: var(--s-4) var(--s-5);
        gap: var(--s-3);
        align-items: stretch;
        z-index: 1001;
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: var(--s-2) 0;
        font-size: var(--t-md);
    }

    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        padding-left: var(--s-4);
        background: var(--c-surface);
        border-radius: var(--r-control);
        margin-top: var(--s-2);
    }

    .dropdown.is-open .dropdown-menu {
        display: block;
    }

    .nav-cta-mobile {
        display: block;
        margin-top: var(--s-2);
        padding-top: var(--s-3);
        border-top: 1px solid var(--c-line);
    }

    .nav-cta-mobile .btn {
        width: 100%;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--s-4) var(--s-5);
    border-radius: var(--r-control);
    font-weight: 500;
    font-size: var(--t-md);
    text-align: center;
    cursor: pointer;
    border: none;
    text-decoration: none;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header .btn {
    height: 44px;
}

.btn-primary {
    background: var(--c-primary);
    color: var(--c-bg);
}

.btn-primary:hover {
    background: #163a2f;
}

.btn-secondary {
    background: transparent;
    color: var(--c-primary);
    border: 1px solid var(--c-primary);
}

.btn-secondary:hover {
    background: var(--c-surface);
}

.btn-text {
    background: none;
    color: var(--c-primary);
    padding: 0;
    height: auto;
    text-decoration: underline;
}

.btn-text:hover {
    text-decoration: none;
}

.btn-danger {
    background: var(--c-warn);
    color: var(--c-bg);
    padding: var(--s-3) var(--s-4);
    height: auto;
}

.btn-danger:hover {
    background: #8a1a14;
}

.btn-small {
    padding: var(--s-3) var(--s-4);
    height: auto;
    font-size: var(--t-sm);
}

/* Container */
.container {
    max-width: var(--w-page);
    margin-inline: auto;
    padding-inline: var(--s-4);
}

@media (min-width: 640px) {
    .container {
        padding-inline: var(--s-5);
    }
}

@media (min-width: 960px) {
    .container {
        padding-inline: var(--s-6);
    }
}

/* Main Container */
main {
    max-width: var(--w-page);
    margin: 0 auto;
}

/* Hero Section */
.hero {
    background: var(--c-bg);
    min-height: calc(100vh - 76px);
    min-height: calc(100dvh - 76px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--s-6) 0;
    box-sizing: border-box;
}

.hero .container {
    width: 100%;
}

@media (max-width: 640px) {
    .hero {
        min-height: calc(100vh - 68px);
        min-height: calc(100dvh - 68px);
        padding: var(--s-5) 0;
    }
}

.hero h1 {
    font-size: var(--t-h1);
    font-weight: 650;
    line-height: 1.15;
    margin-bottom: var(--s-5);
    max-width: var(--w-text);
}

.hero-subtitle {
    font-size: var(--t-md);
    color: var(--c-text-2);
    margin-bottom: var(--s-6);
}

/* Hero Search Box */
.hero-search-box {
    max-width: 720px;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: 8px;
    padding: var(--s-3);
    margin-bottom: var(--s-6);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.hero-search-form {
    display: flex;
    gap: var(--s-3);
    align-items: center;
}

.hero-search-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

/* Autocomplete Dropdown */
.autocomplete-container {
    position: relative;
    width: 100%;
}

.autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--c-bg);
    border: 1px solid var(--c-line);
    border-radius: var(--r-control);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    max-height: 320px;
    overflow-y: auto;
    z-index: 1050;
    list-style: none;
    padding: var(--s-1) 0;
    display: none;
}

.autocomplete-dropdown.is-visible {
    display: block;
}

.autocomplete-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    cursor: pointer;
    font-size: var(--t-md);
    color: var(--c-text);
    transition: background-color 0.15s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.is-selected {
    background-color: var(--c-surface);
    color: var(--c-primary);
}

.autocomplete-item-main {
    display: flex;
    align-items: center;
    gap: var(--s-2);
}

.autocomplete-item-icon {
    font-size: 0.95rem;
    opacity: 0.7;
}

.autocomplete-item-name {
    font-weight: 500;
}

.autocomplete-badge {
    font-size: var(--t-xs);
    padding: 3px 8px;
    border-radius: 12px;
    background: var(--c-surface);
    color: var(--c-text-2);
    font-weight: 500;
    white-space: nowrap;
}

.autocomplete-badge.has-lockers {
    background: #e6f4ea;
    color: #137333;
    font-weight: 600;
}

.hero-search-input-wrap .search-pin-icon {
    position: absolute;
    left: var(--s-4);
    font-size: 1.15rem;
    pointer-events: none;
    opacity: 0.85;
}

.hero-search-input-wrap .search-input {
    width: 100%;
    height: 52px;
    padding-left: 46px;
    padding-right: var(--s-4);
    border: 1px solid var(--c-line-strong);
    border-radius: var(--r-control);
    font-size: var(--t-md);
    background: var(--c-bg);
    color: var(--c-text);
}

.btn-search-hero {
    height: 52px;
    padding: 0 var(--s-6);
    font-size: var(--t-md);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .hero-search-box {
        padding: var(--s-3);
    }

    .hero-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-search-hero {
        width: 100%;
    }
}

/* Search Box (Standard / Subpages) */
.search-box {
    max-width: var(--w-page);
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--r-control);
    padding: var(--s-5);
    margin-bottom: var(--s-6);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.search-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1.35fr 1fr;
    gap: var(--s-4);
    align-items: end;
}

.search-form .btn {
    width: 100%;
    height: 48px;
}

.form-row {
    display: flex;
    flex-direction: column;
}

.form-row label {
    font-size: var(--t-sm);
    color: var(--c-text);
    margin-bottom: 6px;
    font-weight: 600;
}

.search-input,
.search-select {
    width: 100%;
    padding: var(--s-3) var(--s-4);
    border: 1px solid var(--c-line-strong);
    border-radius: var(--r-control);
    font-size: var(--t-md);
    font-family: var(--f-sans);
    height: 48px;
    background: var(--c-bg);
    color: var(--c-text);
}

.search-input:focus,
.search-select:focus {
    outline: 3px solid var(--c-primary);
    outline-offset: 2px;
}

.search-input::placeholder {
    color: var(--c-text-2);
}

/* Insurance Presets */
.insurance-presets {
    display: flex;
    gap: 6px;
    align-items: center;
}

.insurance-presets button {
    height: 38px;
    padding: 0 var(--s-3);
    font-size: var(--t-sm);
    white-space: nowrap;
    border-radius: var(--r-control);
}

.insurance-presets button.active {
    background: var(--c-primary);
    color: var(--c-bg);
    border-color: var(--c-primary);
}

/* Table Header Row with Filter */
.table-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: var(--s-4);
    margin-bottom: var(--s-4);
}

.table-header-row h2 {
    margin-bottom: 4px;
}

.table-header-row .table-notice {
    margin-bottom: 0;
}

.table-insurance-filter {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    flex-wrap: wrap;
    background: var(--c-surface);
    padding: var(--s-2) var(--s-3);
    border-radius: var(--r-control);
    border: 1px solid var(--c-line);
}

.filter-label {
    font-size: var(--t-sm);
    font-weight: 600;
    color: var(--c-text);
}

#insurance-display {
    font-size: var(--t-md);
    font-weight: 500;
    color: var(--c-text);
    margin-top: var(--s-2);
}

#insurance-slider {
    display: none;
}

@media (max-width: 959px) and (min-width: 641px) {
    .search-form {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--s-4);
    }
}

@media (max-width: 640px) {
    .search-box {
        padding: var(--s-4);
    }

    .search-form {
        grid-template-columns: 1fr;
        gap: var(--s-4);
    }

    .table-header-row {
        flex-direction: column;
        align-items: stretch;
    }

    .table-insurance-filter {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--s-2);
    }

    .insurance-presets {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--s-2);
    }

    .insurance-presets button {
        width: 100%;
    }
}

/* Trust Bar */
.trust-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-4);
    padding: var(--s-3) var(--s-4);
    background: var(--c-surface);
    border-radius: var(--r-control);
    border-left: 3px solid var(--c-primary);
    font-size: var(--t-xs);
    color: var(--c-text);
    margin-bottom: var(--s-7);
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    font-weight: 500;
}

.trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--c-primary);
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
}

.trust-bar .source-link {
    margin-left: auto;
    color: var(--c-primary);
    font-weight: 500;
}

/* Comparison Table */
.comparison-section {
    min-height: calc(100vh - 76px);
    min-height: calc(100dvh - 76px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--s-7) 0;
    margin-bottom: var(--s-8);
    box-sizing: border-box;
    scroll-margin-top: 76px;
}

.comparison-section .container {
    width: 100%;
    padding: 0;
}

.comparison-table {
    background: var(--c-bg);
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--t-sm);
    font-variant-numeric: tabular-nums;
}

.comparison-table th,
.comparison-table td {
    padding: var(--s-4);
    text-align: left;
    border-bottom: 1px solid var(--c-line);
}

.comparison-table th {
    background: var(--c-surface);
    font-weight: 600;
    color: var(--c-text);
    border-bottom: 2px solid var(--c-text);
}

.comparison-table tr:nth-child(even) {
    background: var(--c-surface);
}

/* Number columns right-aligned */
.comparison-table th:nth-child(3),
.comparison-table td:nth-child(3),
.comparison-table th:nth-child(4),
.comparison-table td:nth-child(4) {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Price cell accentuation */
.comparison-table .price-cell {
    font-size: var(--t-md);
    font-weight: 700;
    color: var(--c-primary);
}

/* Card view on mobile */
@media (max-width: 640px) {
    .comparison-table.cards-mobile table,
    .comparison-table.cards-mobile tbody,
    .comparison-table.cards-mobile tr,
    .comparison-table.cards-mobile td {
        display: block;
        width: 100%;
    }

    .comparison-table.cards-mobile thead {
        display: none;
    }

    .comparison-table.cards-mobile tr {
        background: var(--c-bg);
        border: 1px solid var(--c-line);
        border-radius: var(--r-control);
        margin-bottom: var(--s-4);
        padding: var(--s-3) var(--s-4);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    .comparison-table.cards-mobile tr:nth-child(even) {
        background: var(--c-surface);
    }

    .comparison-table.cards-mobile td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: var(--s-2) 0;
        border-bottom: 1px dashed var(--c-line);
        text-align: right;
    }

    .comparison-table.cards-mobile td:last-child {
        border-bottom: none;
    }

    .comparison-table.cards-mobile td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--c-text-2);
        font-size: var(--t-xs);
        text-align: left;
    }

    .comparison-table.cards-mobile td[data-label="Anbieter"] {
        border-bottom: 1px solid var(--c-line);
        padding-bottom: var(--s-3);
        margin-bottom: var(--s-2);
        font-size: var(--t-md);
        font-weight: 600;
    }

    .comparison-table.cards-mobile td[data-label="Anbieter"]::before {
        display: none;
    }
}

/* Bank/Privat table - all left aligned */
.comparison-table.all-left th,
.comparison-table.all-left td {
    text-align: left;
}

.comparison-table.all-left {
    table-layout: fixed;
}

.comparison-table.all-left th:nth-child(1),
.comparison-table.all-left td:nth-child(1) {
    width: 24%;
}

.comparison-table.all-left th:nth-child(2),
.comparison-table.all-left td:nth-child(2),
.comparison-table.all-left th:nth-child(3),
.comparison-table.all-left td:nth-child(3) {
    width: 38%;
}

.comparison-table tr:hover {
    background: var(--c-surface);
}

.sort-header {
    cursor: pointer;
    user-select: none;
}

.sort-header:hover {
    color: var(--c-primary);
}

.data-source {
    font-size: var(--t-xs);
    color: var(--c-text-2);
    margin-top: var(--s-4);
}

.table-notice {
    background: var(--c-surface);
    padding: var(--s-3) var(--s-4);
    font-size: var(--t-sm);
    color: var(--c-text-2);
    margin-bottom: var(--s-4);
}

.data-stamp {
    display: inline-block;
    border: 1px solid var(--c-stamp);
    padding: var(--s-2) var(--s-3);
    border-radius: var(--r-table);
    font-size: var(--t-xs);
    color: var(--c-stamp-text);
    margin-top: var(--s-4);
}

.comparison-table .data-stamp {
    margin-top: var(--s-4);
}

.source-link {
    font-size: var(--t-xs);
    color: var(--c-primary);
    text-decoration: underline;
    margin-left: var(--s-2);
}

.date-small {
    font-size: var(--t-xs);
    color: var(--c-text-2);
}

.werbung {
    display: inline-block;
    margin-left: var(--s-2);
    padding: 1px 6px;
    font-size: var(--t-xs);
    color: var(--c-text-2);
    border: 1px solid var(--c-line-strong);
    border-radius: var(--r-badge);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Content Sections */
.content-section {
    margin-bottom: var(--s-8);
}

.content-section .container {
    padding: 0;
}

.content-section.start-section,
.content-section:has(.start) {
    min-height: calc(100vh - 76px);
    min-height: calc(100dvh - 76px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--s-7) 0;
    box-sizing: border-box;
    scroll-margin-top: 76px;
}

.content-section.start-section .container,
.content-section:has(.start) .container {
    width: 100%;
}

.content-section h3 {
    font-size: var(--t-h3);
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: var(--s-4);
}

/* Unified H2 */
h2 {
    font-size: var(--t-h2);
    line-height: 1.25;
    font-weight: 700;
    margin-bottom: var(--s-5);
}

@media (max-width: 640px) {
    h2 {
        font-size: 26px;
    }
}

/* Section spacing */
main > section {
    margin-bottom: var(--s-8);
}

@media (max-width: 640px) {
    main > section {
        margin-bottom: var(--s-6);
    }
}

/* Short Answer Box */
.short-answer {
    background: var(--c-surface);
    padding: var(--s-5);
    border-left: 3px solid var(--c-primary);
    margin-bottom: var(--s-6);
}

.short-answer h2 {
    font-size: var(--t-h3);
    margin-bottom: var(--s-3);
}

.short-answer p {
    font-size: var(--t-md);
    line-height: 1.5;
    margin-bottom: var(--s-2);
}

/* Badges */
.badge {
    display: inline-block;
    padding: var(--s-2) var(--s-3);
    border-radius: var(--r-badge);
    font-size: var(--t-xs);
    font-weight: 500;
}

.badge-success {
    background: var(--c-surface);
    color: var(--c-text);
}

.badge-warning {
    background: #fce8e6;
    color: var(--c-warn);
}

.badge-danger {
    background: #fce8e6;
    color: var(--c-warn);
}

/* Start Links */
.start {
    list-style: none;
    margin: 0;
    padding: 0;
}

.start li + li {
    margin-top: 20px;
}

.start a {
    display: inline-block;
    margin-bottom: 4px;
}

.start p {
    margin: 0;
    color: var(--c-text-2);
    font-size: var(--t-sm);
    line-height: 1.5;
}

/* FAQ */
.faq-section {
    min-height: calc(100vh - 76px);
    min-height: calc(100dvh - 76px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--s-7) 0;
    margin-bottom: var(--s-8);
    box-sizing: border-box;
    scroll-margin-top: 76px;
}

.faq-section .container {
    width: 100%;
    padding: 0;
}

.faq-accordion {
    background: var(--c-bg);
}

.faq-item {
    border-bottom: 1px solid var(--c-line);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    padding: var(--s-4) 0;
    background: none;
    border: none;
    text-align: left;
    font-size: var(--t-md);
    font-weight: 500;
    color: var(--c-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--f-sans);
}

.faq-question:hover {
    color: var(--c-primary);
}

.faq-question:focus {
    outline: 3px solid var(--c-primary);
    outline-offset: -2px;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--c-primary);
    transition: transform 0.15s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.15s ease-out;
    padding: 0;
}

.faq-answer p {
    padding: 0 var(--s-4) var(--s-4) 0;
    color: var(--c-text-2);
    line-height: 1.5;
    font-size: var(--t-md);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Page Header */
.page-header {
    margin-bottom: var(--s-7);
}

.breadcrumb {
    font-size: var(--t-sm);
    color: var(--c-text-2);
    margin-bottom: var(--s-3);
}

.breadcrumb a {
    color: var(--c-text-2);
}

.breadcrumb a:hover {
    color: var(--c-primary);
}

.page-header h1 {
    font-size: var(--t-h1);
    font-weight: 650;
    line-height: 1.15;
}

/* Comparison Columns */
.comparison-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--s-6);
    margin-bottom: var(--s-6);
}

.col h3 {
    margin-bottom: var(--s-4);
    color: var(--c-text);
}

.col ul {
    list-style: none;
}

.col li {
    padding: var(--s-3) 0;
    color: var(--c-text-2);
    line-height: 1.5;
}

/* Calculator */
.calculator-box {
    background: var(--c-surface);
    padding: var(--s-5);
    margin-bottom: var(--s-6);
}

.calculator-row {
    margin-bottom: var(--s-4);
}

.calculator-row label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--s-2);
    font-size: var(--t-md);
}

.calculator-row select,
.calculator-row input {
    width: 100%;
    max-width: 300px;
    padding: var(--s-4);
    border: 1px solid var(--c-line-strong);
    border-radius: var(--r-control);
    font-size: var(--t-md);
    height: 48px;
    font-family: var(--f-sans);
}

.calc-results {
    background: var(--c-surface);
    padding: var(--s-5);
    margin-top: var(--s-5);
}

.calc-results h3 {
    margin-bottom: var(--s-4);
}

.result-item {
    display: flex;
    align-items: center;
    gap: var(--s-4);
    padding: var(--s-4);
    border-bottom: 1px solid var(--c-line);
}

.result-item:last-child {
    border-bottom: none;
}

.result-rank {
    width: 40px;
    height: 40px;
    background: var(--c-primary);
    color: var(--c-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: var(--t-lg);
}

.result-details {
    flex: 1;
}

/* Cost Grid */
.cost-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--s-5);
}

.cost-item {
    background: var(--c-surface);
    padding: var(--s-5);
    border-top: 3px solid var(--c-primary);
}

.cost-item h3 {
    margin-bottom: var(--s-2);
    color: var(--c-text);
}

.cost-item p {
    color: var(--c-text-2);
    line-height: 1.5;
}

/* Related Links */
.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-4);
}

.related-links a {
    background: var(--c-surface);
    padding: var(--s-3) var(--s-4);
    border-radius: var(--r-control);
    border: 1px solid var(--c-line);
    text-decoration: none;
    color: var(--c-text);
}

.related-links a:hover {
    background: var(--c-primary);
    color: var(--c-bg);
    border-color: var(--c-primary);
}

/* Footer */
.footer {
    background: var(--c-surface);
    padding: var(--s-8) 0 var(--s-8);
    margin-top: var(--s-8);
}

.footer .container {
    padding-top: 0;
    padding-bottom: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--s-6);
}

.footer-section h4 {
    margin-bottom: var(--s-4);
    font-size: var(--t-md);
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: var(--s-2);
}

.footer-section a {
    color: var(--c-text-2);
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--c-primary);
}

.footer-section p {
    color: var(--c-text);
    margin: var(--s-2) 0;
}

.footer-bottom {
    margin-top: var(--s-6);
    padding-top: var(--s-5);
    border-top: 1px solid var(--c-line);
    color: var(--c-text-2);
    font-size: var(--t-xs);
}

.footer-legal {
    margin-top: var(--s-4);
    color: var(--c-text-2);
    font-size: var(--t-sm);
}

.footer-legal a {
    color: var(--c-primary);
}

/* Content Layout with Sidebar */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--s-6);
}

.content-main {
    min-width: 0;
}

.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--s-5);
}

.sidebar-box {
    background: var(--c-surface);
    padding: var(--s-5);
}

.sidebar-box h3 {
    margin-bottom: var(--s-4);
    font-size: var(--t-md);
    font-weight: 600;
}

.sidebar-list {
    list-style: none;
}

.sidebar-list li {
    margin-bottom: var(--s-2);
}

.sidebar-list a {
    color: var(--c-text-2);
    display: block;
    padding: var(--s-2) 0;
    text-decoration: none;
}

.sidebar-list a:hover {
    color: var(--c-primary);
}

/* Inventory Calculator */
.inventory-item {
    display: flex;
    gap: var(--s-4);
    margin-bottom: var(--s-4);
    align-items: center;
}

.inventory-item input {
    flex: 1;
    padding: var(--s-4);
    border: 1px solid var(--c-line-strong);
    border-radius: var(--r-control);
    height: 48px;
    font-family: var(--f-sans);
}

.inventory-item .item-description {
    flex: 2;
}

/* Summary */
.result-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--s-5);
    margin-bottom: var(--s-5);
}

.summary-item {
    background: var(--c-bg);
    padding: var(--s-4);
}

.summary-label {
    display: block;
    color: var(--c-text-2);
    font-size: var(--t-sm);
    margin-bottom: var(--s-1);
}

.summary-value {
    display: block;
    font-size: var(--t-h3);
    font-weight: bold;
    color: var(--c-primary);
}

/* Checklist */
.checklist {
    margin-top: var(--s-5);
}

.checklist-item {
    display: flex;
    gap: var(--s-4);
    padding: var(--s-4);
    background: var(--c-bg);
    margin-bottom: var(--s-4);
}

.checklist-icon {
    width: 30px;
    height: 30px;
    background: var(--c-primary);
    color: var(--c-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.checklist-item strong {
    display: block;
    margin-bottom: var(--s-1);
}

.checklist-item p {
    color: var(--c-text-2);
    font-size: var(--t-sm);
    margin: 0;
    line-height: 1.5;
}

/* Insurance Details */
.insurance-details {
    display: grid;
    gap: var(--s-4);
}

.insurance-item {
    background: var(--c-bg);
    padding: var(--s-4);
    border-left: 3px solid var(--c-primary);
}

.insurance-item h3 {
    margin-bottom: var(--s-2);
    font-size: var(--t-md);
}

.insurance-item p {
    color: var(--c-text-2);
    font-size: var(--t-sm);
    margin: 0;
}

.insurance-item .warning {
    color: var(--c-warn);
    font-weight: 500;
}

/* Availability Info */
.availability-info {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    margin: var(--s-5) 0;
}

.availability-item {
    display: flex;
    align-items: center;
    gap: var(--s-4);
    padding: var(--s-4);
    background: var(--c-bg);
}

/* City Grid */
.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--s-4);
    margin-top: var(--s-5);
}

.city-card {
    background: var(--c-bg);
    padding: var(--s-5);
    text-align: left;
    display: block;
    text-decoration: none;
    color: var(--c-text);
    border: 1px solid var(--c-line);
}

.city-card:hover {
    border-color: var(--c-primary);
}

.city-card h3 {
    margin-bottom: var(--s-2);
    color: var(--c-text);
}

.city-card p {
    color: var(--c-text-2);
    font-size: var(--t-sm);
}

/* Warning Box */
.warning-box {
    background: #fce8e6;
    padding: var(--s-5);
    border-left: 3px solid var(--c-warn);
    margin-bottom: var(--s-8);
}

.warning-box h2 {
    color: var(--c-warn);
    margin-bottom: var(--s-4);
}

.warning-box p {
    color: #8a1a14;
    line-height: 1.5;
}

/* Decision Tree */
.decision-tree {
    background: var(--c-bg);
    padding: var(--s-5);
    margin-top: var(--s-5);
}

.decision-tree h3 {
    margin-bottom: var(--s-4);
}

.decision-tree ul {
    list-style: none;
}

.decision-tree li {
    padding: var(--s-3) 0;
    border-bottom: 1px solid var(--c-line);
}

.decision-tree li:last-child {
    border-bottom: none;
}

/* Provider Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--s-5);
}

.card {
    background: var(--c-surface);
    padding: var(--s-5);
    border: 1px solid var(--c-line);
}

.card h2,
.card h3 {
    margin-bottom: var(--s-2);
    color: var(--c-text);
}

.card p {
    color: var(--c-text-2);
    line-height: 1.5;
}

.card-provider {
    text-align: left;
}

.provider-subtitle {
    color: var(--c-text-2);
    font-size: var(--t-sm);
    margin-bottom: var(--s-4);
}

.provider-stats {
    display: flex;
    justify-content: space-around;
    margin: var(--s-4) 0;
    padding: var(--s-4) 0;
    border-top: 1px solid var(--c-line);
    border-bottom: 1px solid var(--c-line);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: var(--s-1);
}

.stat-label {
    font-size: var(--t-xs);
    color: var(--c-text-2);
}

.stat-value {
    font-size: var(--t-lg);
    font-weight: bold;
    color: var(--c-primary);
}

/* Selection Quiz */
.selection-quiz {
    background: var(--c-surface);
    padding: var(--s-5);
}

.quiz-item {
    margin-bottom: var(--s-4);
}

.quiz-item label {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    cursor: pointer;
    font-size: var(--t-md);
}

.quiz-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Search Box Large */
.search-box-large {
    background: var(--c-surface);
    padding: var(--s-5);
    max-width: 800px;
    margin: 0 auto var(--s-8);
}

.search-box-large h2 {
    margin-bottom: var(--s-5);
    text-align: left;
}

.search-box-large .search-form {
    display: flex;
    flex-direction: column;
    gap: var(--s-5);
}

.search-box-large .form-row {
    display: flex;
    gap: var(--s-4);
    flex-wrap: wrap;
}

.search-box-large .form-row label {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    cursor: pointer;
}

.search-box-large .form-row input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: var(--s-4);
    border: 1px solid var(--c-line-strong);
    border-radius: var(--r-control);
    font-size: var(--t-md);
    height: 48px;
    font-family: var(--f-sans);
}

.search-box-large .form-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Results List */
.results-list {
    display: grid;
    gap: var(--s-5);
}

.result-card {
    background: var(--c-surface);
    padding: var(--s-5);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--s-4);
}

.result-header h3 {
    margin: 0;
    color: var(--c-text);
}

.result-details {
    margin-bottom: var(--s-4);
}

.result-details p {
    margin: var(--s-2) 0;
    color: var(--c-text-2);
    line-height: 1.5;
}

.result-details strong {
    color: var(--c-text);
}

/* Steps Container */
.steps-container {
    display: grid;
    gap: var(--s-5);
}

.step {
    display: flex;
    gap: var(--s-5);
    align-items: flex-start;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--c-primary);
    color: var(--c-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--t-h3);
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: var(--s-2);
    color: var(--c-text);
}

.step-content p {
    color: var(--c-text-2);
    margin: 0;
    line-height: 1.5;
}

/* Methodology Teaser */
.methodology-teaser {
    min-height: calc(75vh - 76px);
    min-height: calc(75dvh - 76px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--s-7) 0;
    margin-bottom: var(--s-8);
    box-sizing: border-box;
    scroll-margin-top: 76px;
}

.methodology-teaser .container {
    width: 100%;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--s-6);
    align-items: start;
}

.methodology-box {
    background: var(--c-surface);
    padding: var(--s-5);
}

.methodology-box h3 {
    margin-bottom: var(--s-4);
}

.affiliate-notice {
    background: var(--c-surface);
    padding: var(--s-5);
    border-left: 3px solid var(--c-line-strong);
}

.affiliate-notice p {
    font-size: var(--t-sm);
    color: var(--c-text);
    margin: 0;
}

/* Responsive */
@media (max-width: 960px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .content-sidebar {
        order: -1;
    }

    .methodology-teaser .container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    main {
        padding: var(--s-6) var(--s-4);
    }

    .hero h1 {
        font-size: 1.875rem;
    }

    .nav {
        padding: 0 var(--s-4);
    }

    .nav-menu:not(.is-open) {
        display: none;
    }

    .comparison-table table {
        font-size: var(--t-xs);
    }

    .comparison-table th,
    .comparison-table td {
        padding: var(--s-3);
    }

    .search-row {
        flex-direction: column;
    }

    .form-row {
        flex-direction: column;
    }

    .comparison-cols {
        grid-template-columns: 1fr;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .cost-grid {
        grid-template-columns: 1fr;
    }

    .related-links {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
