/* ═══════════════════════════════════════════════════════════════
   SAUERLÄNDER MONTEURWOHNUNGEN – Main Stylesheet
   Design: Clean Alpine-professional with Sauerland warmth
   Palette: Deep steel-blue primary, amber accent (from logo),
            forest green for nature, warm grays
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS Variables ────────────────────────────────────────────── */
:root {
    /* Blues (primary brand) */
    --blue-deep:    #0d3b6e;
    --blue-dark:    #1a5298;
    --blue-mid:     #2471c8;
    --blue-light:   #4a9ede;
    --blue-pale:    #dbeeff;

    /* Amber/Orange (logo accent – the orange line) */
    --amber:        #e8700a;
    --amber-light:  #f5a052;

    /* Neutrals */
    --gray-900:     #161b22;
    --gray-800:     #24292e;
    --gray-700:     #444d56;
    --gray-500:     #6a737d;
    --gray-300:     #d1d5da;
    --gray-100:     #f6f8fa;
    --white:        #fff;

    /* Functional */
    --text-primary:   var(--gray-900);
    --text-secondary: var(--gray-700);
    --text-light:     var(--gray-500);
    --bg-page:        var(--white);
    --bg-alt:         #f0f5fb;
    --footer-bg:      #0a2d55;

    /* Typography */
    --font-display: 'Playfair Display', georgia, serif;
    --font-body:    'Source Sans 3', -apple-system, sans-serif;

    /* Spacing */
    --nav-h:   72px;
    --radius:  10px;
    --radius-lg: 18px;

    /* Shadows */
    --shadow-sm:  0 1px 3px rgb(0 0 0 / 8%), 0 1px 2px rgb(0 0 0 / 6%);
    --shadow-md:  0 4px 16px rgb(13 59 110 / 12%);
    --shadow-lg:  0 8px 32px rgb(13 59 110 / 18%);
    --shadow-xl:  0 20px 60px rgb(13 59 110 / 22%);

    /* Transitions */
    --t-fast:   150ms ease;
    --t-mid:    280ms ease;
    --t-slow:   420ms cubic-bezier(.4,0,.2,1);
}

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--bg-page);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }

/* ── Utilities ────────────────────────────────────────────────── */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }

.section-header { text-align: center; margin-bottom: 56px; }

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: var(--blue-deep);
    margin-bottom: 12px;
    letter-spacing: -.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 16px;
}

.section-line {
    width: 60px;
    height: 3px;
    background: var(--amber);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--t-mid);
    white-space: nowrap;
    text-decoration: none;
}

.btn--primary {
    background: var(--blue-mid);
    color: var(--white);
    border-color: var(--blue-mid);
}

.btn--primary:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border-color: rgb(255 255 255 / 60%);
}

.btn--outline:hover {
    background: rgb(255 255 255 / 10%);
    border-color: var(--white);
}
.btn--sm { padding: 8px 18px; font-size: .875rem; }
.btn--full { width: 100%; justify-content: center; }

/* ── NAVBAR ───────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-h);
    background: rgb(10 40 80 / 96%);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgb(255 255 255 / 8%);
    transition: background var(--t-mid), box-shadow var(--t-mid);
}

.navbar.scrolled {
    background: rgb(10 40 80 / 99%);
    box-shadow: var(--shadow-lg);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo { display: flex; align-items: center; margin-right: 24px; flex-shrink: 0; }

.nav-logo-img {
    height: 44px;
    width: auto;
    border-radius: 4px;
    filter: brightness(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.nav-item { position: relative; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    color: rgb(255 255 255 / 85%);
    font-size: .93rem;
    font-weight: 500;
    border-radius: 6px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    transition: color var(--t-fast), background var(--t-fast);
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: var(--white);
    background: rgb(255 255 255 / 10%);
}
.nav-link.active { color: var(--amber-light); }

.nav-caret {
    width: 10px;
    height: 6px;
    transition: transform var(--t-fast);
    opacity: .7;
}

.nav-dropdown:hover .nav-caret,
.nav-dropdown.open .nav-caret { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-300);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--t-mid);
    z-index: 200;
}
.nav-dropdown-menu--right { left: auto; right: 0; }

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    color: var(--gray-800);
    font-size: .9rem;
    border-radius: 6px;
    transition: background var(--t-fast), color var(--t-fast);
}
.nav-dropdown-item:hover { background: var(--blue-pale); color: var(--blue-dark); }
.nav-dropdown-item--active { background: var(--blue-pale); color: var(--blue-dark); font-weight: 600; }

.dropdown-icon { font-size: 1rem; }

/* Language dropdown */
.nav-lang { margin-left: auto; }
.nav-lang-btn { gap: 6px; }
.lang-flag { font-size: 1.1rem; }
.lang-flag-img { width: 1.4rem; height: 1rem; object-fit: cover; border-radius: 2px; flex-shrink: 0; }
.lang-flag-fallback { font-size: 1.1rem; }
.lang-name { font-size: .88rem; }
.nav-lang-menu { min-width: 180px; max-height: 340px; overflow-y: auto; }

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--t-mid);
}

/* ── HERO ─────────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--nav-h);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 40%, rgb(36 113 200 / 35%) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 80% 60%, rgb(13 59 110 / 40%) 0%, transparent 50%),
        linear-gradient(160deg, #0a2244 0%, #1a4a8a 40%, #0d3b6e 100%);

    /* Simulated mountain silhouette via box-shadow decoration */
}

.hero-bg::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200'%3E%3Cpath fill='rgba(10,45,100,0.4)' d='M0,200 L0,100 L120,60 L240,90 L360,30 L480,70 L600,20 L720,55 L840,15 L960,50 L1080,25 L1200,65 L1320,40 L1440,80 L1440,200 Z'/%3E%3C/svg%3E")
        bottom / cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgb(10 34 68 / 20%) 0%, rgb(10 34 68 / 50%) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 740px;
    padding: 0 24px;
    animation: hero-fade-up .8s ease both;
}

@keyframes hero-fade-up {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    display: inline-block;
    background: var(--amber);
    color: var(--white);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    color: var(--white);
    line-height: 1.12;
    letter-spacing: -.03em;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgb(0 0 0 / 30%);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgb(255 255 255 / 85%);
    max-width: 580px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.hero-scroll-hint span {
    display: block;
    width: 22px;
    height: 36px;
    border: 2px solid rgb(255 255 255 / 40%);
    border-radius: 11px;
    position: relative;
}

.hero-scroll-hint span::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgb(255 255 255 / 70%);
    border-radius: 2px;
    animation: scroll-bob 1.6s ease-in-out infinite;
}

@keyframes scroll-bob {
    0%, 100% { top: 5px; opacity: 1; }
    50%       { top: 14px; opacity: .4; }
}

/* ── BOOKING BAR ──────────────────────────────────────────────── */
.booking-bar {
    background: var(--blue-deep);
    padding: 0;
}

.booking-bar-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.booking-field {
    flex: 1;
    min-width: 160px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.booking-label {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgb(255 255 255 / 60%);
}

.booking-input {
    background: none;
    border: none;
    outline: none;
    color: var(--white);
    font-size: .95rem;
    font-family: var(--font-body);
    cursor: pointer;
}
.booking-input option { background: var(--blue-deep); color: var(--white); }

.booking-divider {
    width: 1px;
    height: 40px;
    background: rgb(255 255 255 / 15%);
    flex-shrink: 0;
}
.booking-btn { margin: 12px 0 12px 16px; flex-shrink: 0; }

/* ── FEATURES ─────────────────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: transform var(--t-mid), box-shadow var(--t-mid);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-mid), var(--amber));
    transform: scaleX(0);
    transition: transform var(--t-mid);
    transform-origin: left;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-card:hover::before { transform: scaleX(1); }

.feature-icon { font-size: 2.4rem; margin-bottom: 16px; }

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--blue-deep);
    margin-bottom: 10px;
}
.feature-card p { font-size: .93rem; color: var(--text-secondary); line-height: 1.6; }

/* ── APARTMENT CARDS ──────────────────────────────────────────── */
.apt-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.apt-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--t-mid), box-shadow var(--t-mid);
    border: 1px solid var(--gray-300);
}
.apt-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }

.apt-card-img { position: relative; }

.apt-card-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.apt-placeholder-icon { font-size: 4rem; }
.apt-placeholder-icon--lg { font-size: 6rem; }

.apt-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgb(0 0 0 / 55%);
    color: var(--white);
    font-size: .75rem;
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.apt-card-body { padding: 24px; }

.apt-card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--blue-deep);
    margin-bottom: 4px;
}
.apt-card-location { font-size: .85rem; color: var(--text-light); margin-bottom: 10px; }
.apt-card-desc { font-size: .9rem; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.55; }

.apt-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-300);
}
.apt-card-price { display: flex; align-items: center; gap: 3px; }

.price-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
}

.price-value {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--blue-deep);
    font-weight: 700;
}
.price-unit { font-size: .8rem; color: var(--text-light); }

/* ── APARTMENT LIST (apartments page) ────────────────────────── */
.apt-list { display: flex; flex-direction: column; gap: 32px; }

.apt-list-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-300);
    transition: box-shadow var(--t-mid);
}
.apt-list-card:hover { box-shadow: var(--shadow-xl); }

.apt-list-img { min-height: 260px; }

.apt-list-placeholder {
    height: 100%;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apt-list-body { padding: 32px; }

.apt-list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 12px;
}

.apt-list-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--blue-deep);
}
.apt-list-price { text-align: right; }

.apt-list-price span {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--blue-mid);
    font-weight: 700;
}
.apt-list-price small { display: block; font-size: .8rem; color: var(--text-light); }
.apt-list-location { font-size: .9rem; color: var(--text-light); margin-bottom: 12px; }
.apt-list-desc { color: var(--text-secondary); margin-bottom: 20px; line-height: 1.6; }

.apt-list-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.spec-tag {
    background: var(--blue-pale);
    color: var(--blue-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .82rem;
    font-weight: 600;
}

.apt-amenities { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

.amenity-chip {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .82rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.apt-list-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.apt-list-actions .btn--outline {
    color: var(--blue-mid);
    border-color: var(--blue-mid);
}

.apt-list-actions .btn--outline:hover {
    background: var(--blue-pale);
}

/* ── STATS STRIP ──────────────────────────────────────────────── */
.sauerland-strip {
    background: linear-gradient(90deg, var(--blue-deep), var(--blue-dark));
    color: var(--white);
    padding: 40px 0;
}

.sauerland-strip-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.strip-stat {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 12px 24px;
}

.strip-num {
    display: block;
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--amber-light);
    line-height: 1.1;
}
.strip-label { font-size: .82rem; opacity: .75; text-transform: uppercase; letter-spacing: .06em; }
.strip-divider { width: 1px; height: 60px; background: rgb(255 255 255 / 15%); flex-shrink: 0; }

/* ── PAGE HERO ────────────────────────────────────────────────── */
.page-hero {
    padding: calc(var(--nav-h) + 60px) 0 60px;
    text-align: center;
    background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-dark) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.page-hero--green { background: linear-gradient(135deg, #1a4a2e 0%, #2a6b44 100%); }

.page-hero-content { position: relative; z-index: 1; padding: 0 24px; }

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 12px;
    letter-spacing: -.02em;
}
.page-hero p { font-size: 1.1rem; opacity: .85; }

.back-link {
    display: inline-block;
    margin-bottom: 16px;
    font-size: .9rem;
    opacity: .7;
    transition: opacity var(--t-fast);
}
.back-link:hover { opacity: 1; }

/* ── DETAIL PAGE ──────────────────────────────────────────────── */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 48px;
    align-items: start;
}

.detail-price-box {
    border: 2px solid var(--blue-mid);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 24px;
}

.detail-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.detail-price-main {
    font-family: var(--font-display);
    font-size: 2.4rem;
    color: var(--blue-deep);
    font-weight: 700;
}
.detail-price-unit { font-size: .9rem; color: var(--text-light); }
.detail-price-row--secondary { margin-top: 6px; opacity: .7; font-size: .9rem; color: var(--text-secondary); }

.detail-specs {
    display: flex;
    gap: 24px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-300);
    flex-wrap: wrap;
}
.detail-spec { display: flex; align-items: center; gap: 8px; font-size: .95rem; color: var(--text-secondary); }
.detail-spec-icon { font-size: 1.3rem; }

.detail-section-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--blue-deep);
    margin: 24px 0 12px;
}
.detail-desc { color: var(--text-secondary); line-height: 1.7; }

.detail-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
}

.detail-actions .btn--outline { color: var(--blue-mid); border-color: var(--blue-mid); }

.detail-actions .btn--outline:hover { background: var(--blue-pale); }
/* ── CONTACT ──────────────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 56px;
    align-items: start;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }

.form-label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    letter-spacing: .02em;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: .95rem;
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--white);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    outline: none;
}

.form-input:focus {
    border-color: var(--blue-mid);
    box-shadow: 0 0 0 3px rgb(36 113 200 / 15%);
}
.form-textarea { resize: vertical; min-height: 120px; }

.contact-info { display: flex; flex-direction: column; gap: 24px; padding-top: 8px; }

.contact-info-block {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.contact-info-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.contact-info-block strong { display: block; font-weight: 600; color: var(--blue-deep); margin-bottom: 4px; }
.contact-info-block a, .contact-info-block span { color: var(--text-secondary); font-size: .93rem; }
.contact-info-block a:hover { color: var(--blue-mid); }

/* ── SURROUNDINGS ─────────────────────────────────────────────── */
.surroundings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.surr-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--t-mid);
}
.surr-card:hover { transform: translateY(-4px); }

.surr-card-header {
    padding: 28px 24px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--white);
}
.surr-card-header--nature  { background: linear-gradient(135deg, #1a5c30, #2e8b57); }
.surr-card-header--culture { background: linear-gradient(135deg, #4a2060, #7b3fa0); }
.surr-card-header--leisure { background: linear-gradient(135deg, #0d3b6e, #1a6fb5); }
.surr-card-header--food    { background: linear-gradient(135deg, #7a2500, #c0420a); }
.surr-icon { font-size: 2rem; }
.surr-card-header h2 { font-family: var(--font-display); font-size: 1.2rem; }
.surr-card-body { padding: 20px 24px 28px; }
.surr-card-body p { color: var(--text-secondary); font-size: .93rem; margin-bottom: 16px; line-height: 1.6; }
.surr-list { display: flex; flex-direction: column; gap: 8px; }
.surr-list li { font-size: .9rem; color: var(--text-secondary); padding-left: 4px; }

.map-placeholder {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, var(--blue-pale), #c8dff5);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--blue-light);
}
.map-placeholder-inner { text-align: center; }
.map-icon { font-size: 4rem; display: block; margin-bottom: 12px; }
.map-coords { font-size: .85rem; color: var(--text-light); margin-top: 4px; }

/* ── FOOTER ───────────────────────────────────────────────────── */
.footer { position: relative; }
.footer-wave { line-height: 0; }
.footer-wave svg { width: 100%; height: auto; display: block; }
.footer-body { background: var(--footer-bg); color: rgb(255 255 255 / 80%); padding: 60px 0 32px; }

.footer-grid {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-logo { height: 70px; width: auto; border-radius: 4px; margin-bottom: 12px; filter: brightness(1.1); }
.footer-tagline { font-size: .85rem; opacity: .65; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }

.social-link {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgb(255 255 255 / 10%);
    display: flex; align-items: center; justify-content: center;
    transition: background var(--t-fast);
    color: rgb(255 255 255 / 80%);
}
.social-link svg { width: 16px; height: 16px; }
.social-link:hover { background: var(--blue-mid); color: var(--white); }
.footer-heading { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgb(255 255 255 / 45%); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link { font-size: .9rem; color: rgb(255 255 255 / 70%); transition: color var(--t-fast); }
.footer-link:hover { color: var(--white); }
.footer-address { font-size: .9rem; line-height: 1.8; color: rgb(255 255 255 / 70%); }

.footer-bottom {
    max-width: 1160px;
    margin: 0 auto;
    padding: 24px 24px 0;
    border-top: 1px solid rgb(255 255 255 / 8%);
    font-size: .82rem;
    color: rgb(255 255 255 / 40%);
    text-align: center;
}

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (width <= 900px) {
    .apt-list-card { grid-template-columns: 1fr; }
    .apt-list-placeholder { min-height: 200px; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-col--brand { grid-column: 1 / -1; }
}

@media (width <= 760px) {
    :root { --nav-h: 64px; }

    .nav-hamburger { display: flex; }

    .nav-links {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: #0a2244;
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        transform: translateY(-100%);
        opacity: 0;
        transition: transform var(--t-mid), opacity var(--t-mid);
        pointer-events: none;
        align-items: stretch;
        max-height: calc(100vh - var(--nav-h));
        overflow-y: auto;
        z-index: 999;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .nav-lang { margin-left: 0; }

    .nav-dropdown-menu {
        position: static;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none;
        border: none;
        background: rgb(255 255 255 / 5%);
        margin-top: 4px;
        display: none;
        border-radius: 6px;
    }
    .nav-dropdown.open .nav-dropdown-menu { display: block; }
    .nav-dropdown-item { color: rgb(255 255 255 / 80%); }
    .nav-dropdown-item:hover { background: rgb(255 255 255 / 10%); color: var(--white); }
    .nav-lang-menu { max-height: 200px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .booking-bar-inner { flex-direction: column; align-items: stretch; }
    .booking-divider { display: none; }
    .booking-btn { margin: 0 0 16px; }
    .strip-divider { display: none; }
    .sauerland-strip-inner { gap: 16px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 56px 0; }
}

@media (width <= 480px) {
    .apt-cards { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
}

/* ── RTL Support (Arabic) ─────────────────────────────────────── */
[dir="rtl"] .nav-dropdown-menu { left: auto; right: 0; }
[dir="rtl"] .nav-dropdown-menu--right { left: 0; right: auto; }
[dir="rtl"] .nav-logo { margin-right: 0; margin-left: 24px; }
[dir="rtl"] .nav-lang { margin-left: 0; margin-right: auto; }
[dir="rtl"] .section-line { margin-left: auto; margin-right: auto; }

/* ═══════════════════════════════════════════════════════════════
   ERWEITERUNGEN v2
   ═══════════════════════════════════════════════════════════════ */

/* ── Booking Button ───────────────────────────────────────────── */
.btn--booking {
    background: #003580;
    color: var(--white);
    border-color: #003580;
}

.btn--booking:hover {
    background: #00224e;
    border-color: #00224e;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgb(0 53 128 / 35%);
}

/* ── Apartment Card Photos ────────────────────────────────────── */
.apt-card-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.apt-list-photo {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    display: block;
}

.img-count-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgb(0 0 0 / 55%);
    color: var(--white);
    font-size: .75rem;
    padding: 3px 9px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

/* ── Amenity Chips v2 ─────────────────────────────────────────── */
.amenity-chip-icon { font-size: 1rem; }

.amenity-chip--more {
    background: var(--blue-pale);
    border-color: var(--blue-light);
    color: var(--blue-dark);
    font-weight: 600;
}

/* ── Carousel ─────────────────────────────────────────────────── */
.carousel {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--gray-100);
    aspect-ratio: 4/3;
    max-height: 420px;
}
.carousel-track { height: 100%; }

.carousel-slide {
    display: none;
    height: 100%;
    position: relative;
}
.carousel-slide.active { display: block; }

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-fallback {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.carousel-caption {
    font-size: .88rem;
    color: var(--gray-500);
    text-align: center;
    padding: 8px 4px 0;
    min-height: 1.4em;
    font-style: italic;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgb(255 255 255 / 85%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t-fast), transform var(--t-fast);
    z-index: 2;
    backdrop-filter: blur(4px);
}
.carousel-btn svg { width: 20px; height: 20px; stroke: var(--gray-800); }
.carousel-btn:hover { background: var(--white); transform: translateY(-50%) scale(1.1); }
.carousel-btn--prev { left: 10px; }
.carousel-btn--next { right: 10px; }

.carousel-dots {
    position: absolute;
    bottom: 44px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgb(255 255 255 / 50%);
    border: none;
    cursor: pointer;
    transition: background var(--t-fast), transform var(--t-fast);
    padding: 0;
}
.carousel-dot.active { background: var(--white); transform: scale(1.3); }

.carousel-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.carousel-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    background: none;
    cursor: pointer;
    padding: 0;
    transition: border-color var(--t-fast);
}
.carousel-thumb.active { border-color: var(--blue-mid); }
.carousel-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Detail Booking Box ───────────────────────────────────────── */
.detail-booking-box {
    margin-top: 28px;
    padding: 20px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    border: 1px solid var(--gray-300);
}

.detail-booking-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 1rem;
}
.booking-dot { color: #2ea44f; font-size: 1.2rem; }
.detail-booking-text { font-size: .88rem; color: var(--text-secondary); margin-bottom: 14px; }

.booking-calendar-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .83rem;
    color: var(--blue-mid);
    margin-bottom: 12px;
}
/* ── Booking CTA Section ──────────────────────────────────────── */
.booking-cta { background: linear-gradient(135deg, var(--blue-deep) 0%, #0a2a5e 100%); }

.booking-cta-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.booking-cta-text h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--white);
    margin: 16px 0 10px;
}
.booking-cta-text p { color: rgb(255 255 255 / 75%); line-height: 1.6; }

.booking-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgb(255 255 255 / 12%);
    border-radius: 20px;
    padding: 6px 16px;
}
.booking-badge-text { color: var(--white); font-weight: 700; font-size: .95rem; }
.booking-logo-img { height: 20px; }

.booking-cta-cards { display: flex; flex-direction: column; gap: 12px; }

.booking-apt-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgb(255 255 255 / 8%);
    border: 1px solid rgb(255 255 255 / 15%);
    border-left: 3px solid var(--accent, var(--blue-mid));
    border-radius: var(--radius);
    color: var(--white);
    transition: background var(--t-fast), transform var(--t-fast);
    text-decoration: none;
}
.booking-apt-card:hover { background: rgb(255 255 255 / 15%); transform: translateX(4px); }
.booking-apt-name { flex: 1; font-weight: 600; }
.booking-apt-price { font-size: .85rem; opacity: .75; }
.booking-apt-arrow { font-size: 1.1rem; opacity: .6; }

/* ── Shops Grid ───────────────────────────────────────────────── */
.shops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.shop-category {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-300);
}

.shop-category-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--blue-deep);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--amber);
}
.shop-list { display: flex; flex-direction: column; gap: 10px; }

.shop-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    transition: background var(--t-fast);
    text-decoration: none;
    color: inherit;
}
a.shop-item:hover { background: var(--blue-pale); }

.shop-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 800;
    flex-shrink: 0;
    color: var(--white);
}
.shop-icon--orange { background: #e8700a; }
.shop-icon--red    { background: #c20; }
.shop-icon--yellow { background: #e8b800; color: #333; }
.shop-icon--green  { background: #2a7a40; }
.shop-icon--blue   { background: #1a5298; }
.shop-icon--darkblue { background: #001e5c; }
.shop-icon--purple { background: #6b2fa0; }
.shop-icon--teal   { background: #006b6b; }
.shop-icon--gray   { background: #555; }
.shop-item div { flex: 1; }
.shop-item div strong { display: block; font-size: .93rem; }
.shop-item div span { font-size: .8rem; color: var(--text-light); }

.shop-dist {
    font-size: .78rem;
    font-weight: 600;
    color: var(--blue-mid);
    white-space: nowrap;
    margin-left: auto;
}

/* ── Maps ─────────────────────────────────────────────────────── */
.gmap-container {
    width: 100%;
    height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-osm-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-osm {
    width: 100%;
    height: 460px;
    border: none;
    display: block;
}

.map-osm-overlay {
    position: absolute;
    bottom: 16px;
    right: 16px;
}

.map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    margin-top: 20px;
    padding: 16px 20px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    border: 1px solid var(--gray-300);
}

.map-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .88rem;
    color: var(--text-secondary);
}

.map-api-hint {
    margin-top: 16px;
    padding: 12px 16px;
    background: #fffbea;
    border: 1px solid #f0d060;
    border-radius: 8px;
    font-size: .88rem;
    color: #7a6000;
}

.map-api-hint code {
    background: rgb(0 0 0 / 6%);
    padding: 1px 6px;
    border-radius: 3px;
    font-family: monospace;
}

/* ── Responsive Ergänzungen ───────────────────────────────────── */
@media (width <= 900px) {
    .booking-cta-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (width <= 600px) {
    .carousel { aspect-ratio: 3/2; }
}

/* ═══════════════════════════════════════════════════════════════
   ERWEITERUNGEN v3 – Cookie, Legal, Distance, Bäderschmiede
   ═══════════════════════════════════════════════════════════════ */

/* ── Cookie Banner ────────────────────────────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9999;
    background: var(--gray-900);
    color: var(--white);
    box-shadow: 0 -4px 24px rgb(0 0 0 / 25%);
    animation: slide-up .3s ease both;
}

@keyframes slide-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.cookie-banner-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.cookie-banner-text { flex: 1; min-width: 260px; }

.cookie-banner-title {
    display: block;
    font-size: 1rem;
    margin-bottom: 6px;
}

.cookie-banner-text p {
    font-size: .88rem;
    color: rgb(255 255 255 / 80%);
    line-height: 1.5;
    margin: 0;
}
.cookie-link { color: var(--amber-light); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }

.btn--ghost {
    background: transparent;
    color: rgb(255 255 255 / 60%);
    border: 1px solid rgb(255 255 255 / 25%);
}

.btn--ghost:hover {
    background: rgb(255 255 255 / 8%);
    color: var(--white);
    border-color: rgb(255 255 255 / 50%);
}

/* ── Distance Selector ────────────────────────────────────────── */
.distance-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    padding: 14px 18px;
    background: var(--white);
    border: 1.5px solid var(--blue-pale);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.distance-label {
    font-weight: 600;
    font-size: .93rem;
    color: var(--blue-deep);
    white-space: nowrap;
}

.distance-select {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    border: 1.5px solid var(--gray-300);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: .92rem;
    color: var(--text-primary);
    background: var(--white);
    outline: none;
    cursor: pointer;
    transition: border-color var(--t-fast);
}
.distance-select:focus { border-color: var(--blue-mid); }

.distance-source {
    font-size: .78rem;
    white-space: nowrap;
}
.distance-source--live     { color: #2a9d5c; }
.distance-source--fallback { color: var(--text-light); }

/* ── Surroundings 2x2 Grid ────────────────────────────────────── */
.surroundings-grid--2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

@media (width <= 760px) {
    .surroundings-grid--2x2 { grid-template-columns: 1fr; }
}

/* ── Surr-Link ────────────────────────────────────────────────── */
.surr-link {
    color: var(--blue-mid);
    text-decoration: underline;
    font-weight: 600;
}
.surr-link:hover { color: var(--blue-dark); }

/* ── Stats Strip link ─────────────────────────────────────────── */
.strip-stat-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: opacity var(--t-fast);
}
.strip-stat-link:hover { opacity: .8; }

.strip-stat-link .strip-num,
.strip-stat-link .strip-label { display: block; }

/* ── Bäderschmiede Highlight ──────────────────────────────────── */
.baeder-highlight {
    display: flex;
    align-items: center;
    gap: 48px;
    background: linear-gradient(135deg, var(--blue-pale) 0%, #e0f0ff 100%);
    border: 2px solid var(--blue-light);
    border-radius: var(--radius-lg);
    padding: 40px 48px;
}
.baeder-text { flex: 1; }

.baeder-badge {
    display: inline-block;
    background: var(--gray-700);
    color: var(--white);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.baeder-text h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--blue-deep);
    margin-bottom: 14px;
}

.baeder-text p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.baeder-icon {
    font-size: 5rem;
    flex-shrink: 0;
    line-height: 1;
}

@media (width <= 760px) {
    .baeder-highlight { flex-direction: column; gap: 24px; padding: 28px 24px; text-align: center; }
    .baeder-icon { font-size: 3.5rem; }
}

/* ── Legal Pages ──────────────────────────────────────────────── */
.legal-content {
    max-width: 860px;
    margin: 0 auto;
    line-height: 1.8;
}

.legal-content h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--blue-deep);
    margin: 40px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--amber);
}
.legal-content h2:first-child { margin-top: 0; }

.legal-content h3 {
    font-size: 1.1rem;
    color: var(--blue-dark);
    margin: 24px 0 8px;
}
.legal-content p { margin-bottom: 14px; color: var(--text-secondary); }

.legal-content ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 14px;
    color: var(--text-secondary);
}
.legal-content ul li { margin-bottom: 6px; }
.legal-content a { color: var(--blue-mid); text-decoration: underline; }
.legal-content a:hover { color: var(--blue-dark); }

.legal-content code {
    background: var(--gray-100);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: .9em;
}

.legal-note {
    margin-top: 48px;
    padding: 14px 18px;
    background: #fffbea;
    border: 1px solid #f0d060;
    border-radius: 8px;
    font-size: .87rem;
    color: #7a6000;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: .88rem;
}

.legal-table th {
    background: var(--blue-deep);
    color: var(--white);
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
}

.legal-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--gray-300);
    vertical-align: top;
}
.legal-table tr:nth-child(even) td { background: var(--gray-100); }

/* ═══════════════════════════════════════════════════════════════
   ERWEITERUNGEN v4 – Konfigurierbare Grids
   ═══════════════════════════════════════════════════════════════ */

/* ── Shops-Grid: konfigurierbare Spaltenanzahl ────────────────── */
.shops-grid--cols-1 { grid-template-columns: 1fr; }
.shops-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.shops-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.shops-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Surroundings-Grid: konfigurierbare Spaltenanzahl ─────────── */
.surroundings-grid--cols-1 { grid-template-columns: 1fr; }
.surroundings-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.surroundings-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.surroundings-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Fallback für kleine Screens */
@media (width <= 900px) {
    .shops-grid--cols-3,
    .shops-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }

    .surroundings-grid--cols-3,
    .surroundings-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (width <= 600px) {
    .shops-grid--cols-1,
    .shops-grid--cols-2,
    .shops-grid--cols-3,
    .shops-grid--cols-4 { grid-template-columns: 1fr; }

    .surroundings-grid--cols-1,
    .surroundings-grid--cols-2,
    .surroundings-grid--cols-3,
    .surroundings-grid--cols-4 { grid-template-columns: 1fr; }
}

/* ── Bäderschmiede Badge Korrektur ────────────────────────────── */
/* ═══════════════════════════════════════════════════════════════
   ERWEITERUNGEN v5 – Preisrechner, Thumbs, Extra-Kosten
   ═══════════════════════════════════════════════════════════════ */

/* ── Detail-Grid: Linke Spalte (Galerie + Rechner) ─────────────  */
.detail-left { display: flex; flex-direction: column; gap: 20px; }

/* ── Carousel Placeholder ─────────────────────────────────────── */
.carousel-placeholder {
    height: 340px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

/* ── Vorschaubilder – größer, Umbruch nach 5 ─────────────────── */
.carousel-thumbs--wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.carousel-thumb-lg {
    width: calc(20% - 7px);   /* max 5 pro Zeile */
    min-width: 72px;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    border: 2.5px solid transparent;
    background: var(--gray-300, #e5e7eb);
    cursor: pointer;
    padding: 0;
    position: relative;
    transition: border-color var(--t-fast), transform var(--t-fast);
    flex-shrink: 0;
}

.carousel-thumb-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity var(--t-fast);
}

.carousel-thumb-lg.active {
    border-color: var(--blue-mid);
    transform: scale(1.04);
    box-shadow: 0 2px 10px rgb(36 113 200 / 30%);
}
.carousel-thumb-lg:hover { border-color: var(--blue-light); }

/* Für ≤ 3 Bilder: proportional breiter */
@media (width >= 600px) {
    .carousel-thumbs--wrap:has(.carousel-thumb-lg:nth-child(1):last-child) .carousel-thumb-lg { width: 100%; }
    .carousel-thumbs--wrap:has(.carousel-thumb-lg:nth-child(2):last-child) .carousel-thumb-lg { width: calc(50% - 4px); }
    .carousel-thumbs--wrap:has(.carousel-thumb-lg:nth-child(3):last-child) .carousel-thumb-lg { width: calc(33.33% - 6px); }
    .carousel-thumbs--wrap:has(.carousel-thumb-lg:nth-child(4):last-child) .carousel-thumb-lg { width: calc(25% - 6px); }
}

/* ── Preisrechner – neue Gestaltung ───────────────────────────── */
.price-calculator {
    background: linear-gradient(160deg, #0f2a52 0%, #1a3d6e 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 32px rgb(0 0 0 / 35%);
    border: 1px solid rgb(255 255 255 / 9%);
}

.price-calc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 28px 18px;
    border-bottom: 1px solid rgb(255 255 255 / 9%);
}
.price-calc-icon { font-size: 1.5rem; }

.price-calc-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--white);
    margin: 0;
}

.price-calc-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.price-calc-inputs {
    padding: 22px 22px 22px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-right: 1px solid rgb(255 255 255 / 8%);
}

.price-calc-result {
    padding: 22px 28px 22px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

.price-calc-note {
    padding: 10px 28px 14px;
    font-size: .75rem;
    color: rgb(255 255 255 / 40%);
    border-top: 1px solid rgb(255 255 255 / 7%);
    margin: 0;
}

/* Calc-Felder */
.calc-field { display: flex; flex-direction: column; gap: 6px; }
.calc-field--date { grid-column: span 1; }

.calc-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: rgb(255 255 255 / 50%);
}
.calc-label-icon { font-size: .9rem; }

/* Stepper – volle Breite, kein Textfeld */
.calc-stepper {
    display: flex;
    align-items: stretch;
    background: rgb(255 255 255 / 7%);
    border-radius: 10px;
    border: 1px solid rgb(255 255 255 / 13%);
    overflow: hidden;
    height: 46px;
}

.calc-step-btn {
    width: 46px;
    flex-shrink: 0;
    background: rgb(255 255 255 / 6%);
    border: none;
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t-fast);
    user-select: none;
}
.calc-step-btn:hover:not(:disabled) { background: rgb(255 255 255 / 16%); }
.calc-step-btn:disabled { opacity: .3; cursor: default; }

.calc-value {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 600;
    font-family: var(--font-body);
    pointer-events: none;
    border-left: 1px solid rgb(255 255 255 / 10%);
    border-right: 1px solid rgb(255 255 255 / 10%);
}

.calc-input--date {
    width: 100%;
    height: 46px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgb(255 255 255 / 13%);
    background: rgb(255 255 255 / 7%);
    color: var(--white);
    font-size: .92rem;
    font-family: var(--font-body);
    cursor: pointer;
    outline: none;
}
.calc-input--date::-webkit-calendar-picker-indicator { filter: invert(1) opacity(.55); cursor: pointer; }

/* Ergebnis-Seite */
.calc-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    color: rgb(255 255 255 / 35%);
    font-size: .85rem;
    height: 100%;
    min-height: 80px;
}
.calc-placeholder-icon { font-size: 2rem; }

.calc-result-rows { display: flex; flex-direction: column; gap: 0; }

.calc-result-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: .85rem;
    padding: 7px 0;
}
.calc-result-label { color: rgb(255 255 255 / 65%); }
.calc-result-val   { color: var(--white); font-weight: 600; white-space: nowrap; }

.calc-result-row--main {
    border-bottom: 1px solid rgb(255 255 255 / 10%);
    padding-bottom: 10px;
    margin-bottom: 2px;
}
.calc-result-row--main .calc-result-label { color: var(--white); font-weight: 600; font-size: .92rem; }
.calc-result-row--main .calc-result-val   { font-size: 1.05rem; }
.calc-result-row--extra .calc-result-label { color: rgb(255 255 255 / 50%); font-size: .8rem; }
.calc-result-row--extra .calc-result-val   { color: rgb(255 255 255 / 70%); font-size: .8rem; font-weight: 500; }

.calc-result-row--total {
    margin-top: 6px;
    padding-top: 12px;
    border-top: 2px solid rgb(255 255 255 / 20%);
}
.calc-result-row--total .calc-result-label { color: var(--white); font-weight: 700; font-size: .95rem; }

.calc-total-val {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--amber-light);
}
.calc-error { color: rgb(255 255 255 / 40%); font-size: .85rem; text-align: center; }

/* ── Extra-Kosten – korrekte Formatierung ─────────────────────── */
.extra-costs { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }

.extra-cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--gray-100);
    border-radius: 8px;
    border-left: 3px solid var(--blue-mid);
    flex-wrap: wrap;
}
.extra-cost-item--optional { border-left-color: var(--gray-500, #9ca3af); }

.extra-cost-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .9rem;
    color: var(--text-secondary);
}
.extra-cost-icon { font-size: 1rem; }

.extra-cost-value {
    font-size: .88rem;
    font-weight: 700;
    color: var(--blue-deep);
    white-space: nowrap;
}

.optional-badge {
    display: inline-block;
    font-size: .7rem;
    padding: 1px 7px;
    border-radius: 10px;
    background: var(--gray-300);
    color: var(--gray-500, #4b5563);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (width <= 900px) {
    .price-calc-body { grid-template-columns: 1fr; }
    .price-calc-inputs { border-right: none; border-bottom: 1px solid rgb(255 255 255 / 10%); padding-bottom: 16px; }
    .carousel-thumb-lg { width: calc(25% - 6px); min-width: 60px; }
}

@media (width <= 500px) {
    .carousel-thumb-lg { width: calc(33.33% - 6px); }
}

/* ═══════════════════════════════════════════════════════════════
   ERWEITERUNGEN v6 – Schlafzimmer-Darstellung
   ═══════════════════════════════════════════════════════════════ */

/* ── Section-Title Sub-Label ──────────────────────────────────── */
.section-title-sub {
    display: inline-block;
    margin-left: 10px;
    font-size: .75rem;
    font-weight: 600;
    font-family: var(--font-body);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-light);
    vertical-align: middle;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    padding: 2px 10px;
}

/* ── Bedroom Cards (Detailseite) ──────────────────────────────── */
.bedroom-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 8px;
}

.bedroom-card {
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius);
    overflow: hidden;
}

.bedroom-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    background: var(--blue-pale);
    border-bottom: 1px solid var(--gray-300);
}
.bedroom-icon { font-size: 1rem; flex-shrink: 0; }

.bedroom-name {
    flex: 1;
    font-size: .9rem;
    font-weight: 600;
    color: var(--blue-deep);
}

.bedroom-bed-count {
    font-size: .78rem;
    color: var(--text-light);
    white-space: nowrap;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 10px;
    padding: 1px 8px;
}

.bedroom-beds {
    padding: 10px 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    background: var(--white);
}

/* ── Bed Tags (Übersicht Listing) ─────────────────────────────── */
.apt-beds--rooms { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }

.bed-room-tag {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 3px;
    font-size: .83rem;
    color: var(--text-secondary);
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    padding: 4px 10px;
    line-height: 1.5;
}
.bed-room-tag strong { color: var(--blue-deep); }

/* ═══════════════════════════════════════════════════════════════
   VERFÜGBARKEITSSEITE – iCal Kalender
   ═══════════════════════════════════════════════════════════════ */

/* ── Wohnungsauswahl ──────────────────────────────────────────── */
.avail-selector {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.avail-apt-btn {
    flex: 1;
    min-width: 200px;
    max-width: 320px;
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 0;
    cursor: pointer;
    text-align: left;
    overflow: hidden;
    transition: border-color var(--t-mid), box-shadow var(--t-mid), transform var(--t-mid);
    font-family: var(--font-body);
    position: relative;
}

.avail-apt-btn img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

.avail-apt-btn .avail-apt-name {
    display: block;
    font-weight: 700;
    font-size: .95rem;
    color: var(--blue-deep);
    padding: 10px 14px 2px;
}

.avail-apt-btn .avail-apt-loc {
    display: block;
    font-size: .8rem;
    color: var(--text-light);
    padding: 0 14px 12px;
}

.avail-apt-btn.active {
    border-color: var(--apt-color, var(--blue-mid));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--apt-color, var(--blue-mid)) 20%, transparent);
    transform: translateY(-2px);
}

.avail-apt-btn:hover:not(.active) {
    border-color: var(--apt-color, var(--blue-light));
    box-shadow: var(--shadow-md);
}

.avail-no-ical-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgb(0 0 0 / 55%);
    color: var(--white);
    font-size: .7rem;
    padding: 3px 8px;
    border-radius: 10px;
    backdrop-filter: blur(4px);
}

/* ── Kalender-Hauptbereich ────────────────────────────────────── */
.avail-main {
    background: var(--white);
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-lg);
    min-height: 420px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

/* Loading */
.avail-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 300px;
    color: var(--text-light);
    font-size: .95rem;
}

.avail-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--gray-300);
    border-top-color: var(--blue-mid);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Quellen-Badges */
.avail-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.avail-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
}
.avail-source-badge--ok    { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.avail-source-badge--error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* Kalender-Duo */
.avail-calendars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 24px;
}

/* Ein Monats-Kalender */
.cal-month { /* base */ }

.cal-month-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cal-month-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--blue-deep);
    text-transform: capitalize;
}

.cal-nav-btn {
    background: none;
    border: 1.5px solid var(--gray-300);
    border-radius: 6px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--blue-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t-fast), border-color var(--t-fast);
}
.cal-nav-btn:hover { background: var(--blue-pale); border-color: var(--blue-light); }

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.cal-wd {
    text-align: center;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-light);
    padding: 4px 0;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: .82rem;
    cursor: default;
    transition: background var(--t-fast);
    position: relative;
}
.cal-day--empty { /* placeholder */ }
.cal-day--past  { color: var(--gray-300); }

.cal-day--today {
    font-weight: 700;
    outline: 2px solid var(--blue-mid);
    outline-offset: -2px;
    color: var(--blue-dark);
    z-index: 1;
}

.cal-day--free  {
    background: #d1fae5;
    color: #065f46;
}
.cal-day--free:hover  { background: #a7f3d0; }

.cal-day--booked {
    background: #fee2e2;
    color: #991b1b;
    font-weight: 600;
}

.cal-day--booked::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 4px;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 3px,
        rgb(153 27 27 / 15%) 3px,
        rgb(153 27 27 / 15%) 6px
    );
}

/* Legende */
.avail-legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid var(--gray-300);
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .83rem;
    color: var(--text-secondary);
}

.legend-item::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 4px;
}
.legend-free::before   { background: #d1fae5; border: 1px solid #6ee7b7; }
.legend-booked::before { background: #fee2e2; border: 1px solid #fca5a5; }
.legend-today::before  { background: var(--white); border: 2px solid var(--blue-mid); }

/* No-iCal & Error States */
.avail-no-ical,
.avail-error {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 280px;
    text-align: center;
    color: var(--text-secondary);
}
.avail-no-ical-icon { font-size: 3.5rem; }
.avail-no-ical p    { margin: 0; max-width: 480px; }
.avail-no-ical p strong { color: var(--blue-deep); }
.avail-error { color: #991b1b; }

/* Responsive */
@media (width <= 700px) {
    .avail-calendars { grid-template-columns: 1fr; }
    .avail-main { padding: 20px 16px; }
    .avail-apt-btn { min-width: 160px; }
    .cal-day { font-size: .75rem; }
}

/* ═══════════════════════════════════════════════════════════════
   INLINE-VERFÜGBARKEITSKALENDER (Apartment-Detailseite)
   ═══════════════════════════════════════════════════════════════ */

.apt-avail-cal {
    background: var(--white);
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.apt-avail-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--blue-pale);
    border-bottom: 1px solid var(--gray-300);
    flex-wrap: wrap;
}
.apt-avail-icon  { font-size: 1.1rem; flex-shrink: 0; }

.apt-avail-title {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--blue-deep);
    margin: 0;
    flex: 1;
}

.apt-avail-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* Lade-Zustand */
.apt-avail-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px 18px;
    font-size: .85rem;
    color: var(--text-light);
}

/* Kein-iCal Hinweis */
.apt-avail-no-ical {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 18px;
    font-size: .82rem;
    color: var(--text-light);
    background: var(--gray-100);
}

/* Nav + Monate */
.apt-avail-nav {
    display: grid;
    grid-template-columns: 36px 1fr 36px;
    align-items: start;
    gap: 8px;
    padding: 14px 14px 6px;
    margin-top: 2px;
    align-self: start;
}

.apt-avail-months {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    min-width: 0;
}

/* Inline-Monatskalender (kompakter als die Vollseite) */
.cal-month--inline { /* base */ }

.cal-month-name-sm {
    font-weight: 600;
    font-size: .82rem;
    color: var(--blue-deep);
    text-align: center;
    margin-bottom: 8px;
    text-transform: capitalize;
}

.cal-grid--sm {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.cal-grid--sm .cal-wd {
    font-size: .65rem;
    padding: 2px 0;
}

.cal-grid--sm .cal-day {
    font-size: .72rem;
    border-radius: 4px;
    aspect-ratio: 1;
}

/* Legende kompakt */
.avail-legend--sm {
    padding: 8px 18px 12px;
    border-top: 1px solid var(--gray-300);
    gap: 14px;
}
.avail-legend--sm .legend-item { font-size: .75rem; }

/* Fehler-Zustand */
.apt-avail-cal .avail-error {
    padding: 16px 18px;
    font-size: .83rem;
    gap: 8px;
    min-height: auto;
}

/* Responsive: auf kleinen Screens nur 1 Monat - Platzhalter */
/* @media (width <= 520px) { } */

/* ── AGB Seite ────────────────────────────────────────────────── */
.page-hero-sub {
    font-size: .88rem;
    opacity: .7;
    margin-top: 8px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.agb-lang-note {
    background: #fffbea;
    border: 1px solid #f0c040;
    border-left: 4px solid var(--amber);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: .9rem;
    color: #7a5c00;
    margin-bottom: 32px;
}
.agb-lang-note--bottom { margin-top: 40px; margin-bottom: 0; }

/* Stornierungstabelle */
.agb-cancel-table {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 16px 0 20px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-300);
}

.agb-cancel-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 16px;
    font-size: .9rem;
}
.agb-cancel-when { flex-shrink: 0; font-size: 1.1rem; }
.agb-cancel-row--free  { background: #f0fdf4; color: #166534; border-left: 3px solid #22c55e; }
.agb-cancel-row--half  { background: #fffbeb; color: #92400e; border-left: 3px solid #f59e0b; }
.agb-cancel-row--full  { background: #fef2f2; color: #991b1b; border-left: 3px solid #ef4444; }

/* Calendar nav disabled state */
.cal-nav-btn:disabled {
    opacity: .3;
    cursor: not-allowed;
    pointer-events: none;
}

.cal-nav-btn:disabled:hover { background: none; border-color: var(--gray-300); }

/* Kalender auf Detailseite: 1 Monat, kein Duo-Grid */
/* ── AGB-spezifische Stile ────────────────────────────────────── */
/* ── Inhaltsverzeichnis ───────────────────────────────────────── */
.agb-toc {
    background: var(--bg-alt);
    border: 1.5px solid var(--gray-300);
    border-left: 4px solid var(--blue-mid);
    border-radius: var(--radius);
    padding: 20px 24px 20px 20px;
    margin-bottom: 40px;
}

.agb-toc-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--blue-deep);
    margin-bottom: 14px;
    letter-spacing: .01em;
}

.agb-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    counter-reset: toc-counter;
}

.agb-toc-list > li {
    counter-increment: toc-counter;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.agb-toc-list > li > a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .92rem;
    font-weight: 600;
    color: var(--blue-dark);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 6px;
    transition: background var(--t-fast), color var(--t-fast), padding-left var(--t-fast);
}

.agb-toc-list > li > a::before {
    content: "§ " counter(toc-counter);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    font-size: .75rem;
    font-weight: 700;
    background: var(--blue-deep);
    color: var(--white);
    border-radius: 4px;
    padding: 2px 6px;
    flex-shrink: 0;
    letter-spacing: .04em;
}

.agb-toc-list > li > a:hover {
    background: var(--blue-pale);
    color: var(--blue-deep);
    padding-left: 16px;
}

/* Untereinträge (z. B. 3.4) */
.agb-toc-list ul {
    list-style: none;
    padding: 0 0 2px 58px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.agb-toc-list ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 3px 8px;
    border-radius: 5px;
    transition: background var(--t-fast), color var(--t-fast);
}

.agb-toc-list ul li a::before {
    content: "↳";
    color: var(--blue-light);
    font-size: .85rem;
    flex-shrink: 0;
}

.agb-toc-list ul li a:hover {
    background: var(--blue-pale);
    color: var(--blue-dark);
}

/* ── Abschnittsnummern in Überschriften ───────────────────────── */
.agb-section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-deep);
    color: var(--white);
    font-family: var(--font-body), serif;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .05em;
    padding: 3px 9px;
    border-radius: 5px;
    margin-right: 8px;
    vertical-align: middle;
    flex-shrink: 0;
}

.agb-section-num--sub {
    background: var(--blue-mid);
    font-size: .7rem;
}

/* Scroll-Offset für Anker (wegen fixierter Navbar) */
h2[id], h3[id] {
    scroll-margin-top: calc(var(--nav-h) + 20px);
}
