:root {
    --cream:   #FAF7F2;
    --ink:     #1C1917;
    --sepia:   #7C5C2E;
    --gold:    #B8943F;
    --muted:   #6B6560;
    --border:  #E2DBD0;
    --white:   #FFFFFF;
    --hover:   #F5F0E8;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--ink);
}

/* ── HEADER ── */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 48px;
    background: rgba(250,247,242,0.93);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.site-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--ink);
    text-decoration: none;
}
.site-name span { color: var(--gold); }

.site-logo { display: inline-flex; align-items: center; }
.site-logo img { height: clamp(34px, 5.2vw, 46px); width: auto; display: block; }

nav a {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #4A4642;
    text-decoration: none;
    margin-left: 32px;
    transition: color 0.2s;
}
nav a:hover { color: var(--ink); }

/* ── HERO ── */
.hero {
    margin-top: 57px;
    position: relative;
    height: 70vh;
    min-height: 480px;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(28,25,23,0.15) 0%,
        rgba(28,25,23,0.75) 100%
    );
}

.hero-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 48px 80px;
    color: white;
}

.hero-eyebrow {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin-bottom: 12px;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 300;
    line-height: 1.1;
    color: white;
    margin-bottom: 16px;
}

.hero-title em {
    font-style: italic;
    color: #e8c97a;
}

.hero-desc {
    font-size: 0.95rem;
    font-weight: 300;
    color: rgba(255,255,255,0.8);
    max-width: 560px;
    line-height: 1.7;
}

/* ── STATS BAR ── */
.stats-bar {
    background: var(--ink);
    padding: 28px 80px;
    display: flex;
    align-items: center;
    gap: 0;
}

.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 24px;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-of-type { border-right: none; }

.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem;
    font-weight: 600;
    color: white;
    line-height: 1;
}

.stat-label {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}

.stats-disclaimer {
    flex: 2;
    padding: 0 0 0 40px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    font-weight: 300;
    line-height: 1.6;
    border-left: 1px solid rgba(255,255,255,0.1);
}

.stats-disclaimer strong {
    color: rgba(255,255,255,0.7);
    font-weight: 400;
}

/* ── SECTIONS ── */
.section {
    padding: 80px 80px;
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 48px;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--ink);
    white-space: nowrap;
}

.section-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.section-link {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    text-decoration: none;
    white-space: nowrap;
}
.section-link:hover { color: var(--sepia); }

/* MAP PREVIEW */
.home-map-wrap {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(28,25,23,0.06);
    transition: box-shadow 0.25s;
}
.home-map-wrap:hover { box-shadow: 0 12px 34px rgba(28,25,23,0.12); }
#home-map { height: 400px; width: 100%; background: #e8e0d4; }
.home-map-overlay {
    position: absolute; left: 0; right: 0; bottom: 0;
    display: flex; justify-content: center;
    padding: 18px;
    background: linear-gradient(to top, rgba(28,25,23,0.5), transparent);
    pointer-events: none;
    z-index: 1000;
}
.home-map-overlay span {
    font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--white);
    background: var(--sepia); padding: 11px 24px; border-radius: 6px;
    transition: background 0.2s;
}
.home-map-wrap:hover .home-map-overlay span { background: var(--ink); }

/* ── A-Z GRID ── */
.az-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.az-letter {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 3px;
    transition: all 0.18s;
    position: relative;
}

.az-letter:hover, .az-letter.active {
    background: var(--ink);
    color: var(--white);
    border-color: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(28,25,23,0.15);
}

.az-letter.disabled {
    color: var(--border);
    background: transparent;
    border-color: #ede8e0;
    pointer-events: none;
}

.az-count {
    position: absolute;
    top: -5px; right: -5px;
    background: var(--gold);
    color: white;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.5rem;
    font-weight: 500;
    padding: 1px 3px;
    border-radius: 8px;
    min-width: 14px;
    text-align: center;
    line-height: 1.4;
}

/* ── CITY LIST ── */
.city-panel {
    display: none;
    margin-top: 32px;
    border-top: 1px solid var(--border);
    padding-top: 28px;
}
.city-panel.active { display: block; }

.city-panel-header {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--sepia);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 2px;
}

.city-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--white);
    text-decoration: none;
    color: var(--ink);
    font-size: 0.88rem;
    transition: all 0.15s;
    border-left: 2px solid transparent;
}

.city-link:hover {
    background: var(--hover);
    border-left-color: var(--gold);
    padding-left: 18px;
}

.city-link .cnt {
    font-size: 0.72rem;
    color: var(--muted);
}

/* ── NOTGELD CARDS ── */
.notgeld-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.notgeld-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    color: var(--ink);
    transition: all 0.22s;
    display: block;
}

.notgeld-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(28,25,23,0.1);
    border-color: #c8b898;
}

.card-img {
    aspect-ratio: 3/2;
    overflow: hidden;
    background: #f0ece4;
}

.card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.notgeld-card:hover .card-img img { transform: scale(1.04); }

.card-body { padding: 14px 16px; }

.card-city {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 3px;
}

.card-code {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--muted);
    align-items: center;
}

.card-tag {
    background: var(--hover);
    padding: 1px 7px;
    border-radius: 2px;
    font-size: 0.65rem;
    color: var(--sepia);
    font-weight: 500;
    text-transform: lowercase;
}

/* ── FOOTER ── */
footer {
    background: var(--ink);
    padding: 40px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.footer-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.6);
}
.footer-brand span { color: var(--gold); }

.footer-note {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
    font-weight: 300;
    text-align: right;
    line-height: 1.6;
}
.footer-note a { color: rgba(255,255,255,0.45); text-decoration: underline; }
.footer-note a:hover { color: rgba(255,255,255,0.75); }

/* ── UTILS ── */
.loading {
    text-align: center;
    padding: 32px;
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
    header { padding: 16px 20px; }
    .hero-content { padding: 32px 20px; }
    .stats-bar { flex-wrap: wrap; padding: 20px; gap: 16px; }
    .stat-item { border-right: none; padding: 8px 16px; }
    .stats-disclaimer { border-left: none; padding: 0 16px; }
    .section { padding: 48px 20px; }
    #home-map { height: 300px; }
    footer { padding: 28px 20px; flex-direction: column; text-align: center; }
    .footer-note { text-align: center; }
}

/* ── BUTTONS (ex handler inline, refactor CSP) ── */
.btn-more {
    display: none;
    font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--ink);
    background: transparent; border: 1px solid var(--border);
    padding: 12px 32px; border-radius: 6px; cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.btn-more:hover { background: var(--hover); }

.btn-cta {
    display: inline-block;
    font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em;
    text-transform: uppercase; text-decoration: none;
    color: var(--white); background: var(--sepia);
    padding: 14px 32px; border-radius: 6px;
    transition: background 0.2s;
}
.btn-cta:hover { background: var(--ink); }
