/* ============================================================
   VARIABLES
============================================================ */
:root {
    --red:          #C0392B;
    --red-dark:     #96281B;
    --red-light:    #D84A3A;
    --white:        #FFFFFF;
    --off-white:    #F7F4F0;
    --gray-light:   #E8E4DF;
    --gray-mid:     #C5BFB8;
    --charcoal:     #1A1A1A;
    --charcoal-mid: #2E2E2E;
    --charcoal-lt:  #4A4A4A;
    --gold:         #C9A84C;
    --gold-light:   #DEAD65;

    --font-serif:   'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans:    'Inter', system-ui, -apple-system, sans-serif;

    --header-h:     72px;
    --max-w:        1200px;
    --radius:       3px;
    --radius-md:    6px;
    --shadow-sm:    0 2px 8px rgba(0,0,0,0.07);
    --shadow:       0 4px 24px rgba(0,0,0,0.09);
    --shadow-lg:    0 12px 48px rgba(0,0,0,0.15);
    --ease:         0.25s ease;
    --ease-out:     0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    color: var(--charcoal);
    background: var(--white);
    line-height: 1.65;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ============================================================
   PROMO BAR
============================================================ */
:root { --promo-h: 0px; }
.has-promo-bar { --promo-h: 40px; }

.promo-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 110;
    height: var(--promo-h);
    background: var(--charcoal);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-bar__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1.5rem;
    max-width: var(--max-w);
    width: 100%;
    justify-content: center;
}

.promo-bar__text {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.promo-bar__btn {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    padding: 0.05rem 0.75rem;
    transition: background var(--ease), color var(--ease);
    white-space: nowrap;
}

.promo-bar__btn:hover {
    background: var(--gold);
    color: var(--charcoal);
}

/* ============================================================
   WORDPRESS ADMIN BAR OFFSET
   Prevents the fixed header from hiding behind the WP toolbar.
============================================================ */
.admin-bar #header {
    top: calc(32px + var(--promo-h));
}

.admin-bar .promo-bar {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar #header {
        top: calc(46px + var(--promo-h));
    }

    .admin-bar .promo-bar {
        top: 46px;
    }
}

/* ============================================================
   TYPOGRAPHY
============================================================ */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    line-height: 1.18;
    color: var(--charcoal);
}

h1 { font-size: clamp(2.25rem, 5.5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 600; }
h3 { font-size: 1.35rem; font-weight: 600; }

/* Kulturerbe WYSIWYG output */
.kulturerbe-body p {
    color: var(--charcoal-lt);
    margin-bottom: 1.1rem;
    font-size: 1.02rem;
    line-height: 1.78;
}

.kulturerbe-body p:last-child {
    margin-bottom: 0;
}

.kulturerbe-body strong {
    color: var(--charcoal);
    font-weight: 600;
}

.section-label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.65rem;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--charcoal-lt);
    max-width: 580px;
    margin-top: 0.75rem;
    line-height: 1.7;
}

/* ============================================================
   LAYOUT HELPERS
============================================================ */
.section-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 7rem 1.5rem;
}

.section-inner--center {
    text-align: center;
    padding-bottom: 2rem;
}

.section-inner--center .section-sub {
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background var(--ease), border-color var(--ease), transform var(--ease), box-shadow var(--ease), color var(--ease);
    border: 2px solid transparent;
    line-height: 1;
    white-space: nowrap;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}
.btn-primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192,57,43,0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-gold {
    background: var(--gold);
    color: var(--charcoal);
    border-color: var(--gold);
    font-weight: 700;
}
.btn-gold:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201,168,76,0.4);
}


/* ============================================================
   HEADER
============================================================ */
#header {
    position: fixed;
    top: var(--promo-h); left: 0; right: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--ease), box-shadow var(--ease), top var(--ease);
}

#header.scrolled {
    border-bottom-color: var(--gray-light);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-mark {
    width: 44px;
    height: 44px;
    background: var(--red);
    color: var(--white);
    font-family: var(--font-serif);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    flex-shrink: 0;
    transition: background var(--ease);
}

.logo:hover .logo-mark {
    background: var(--red-dark);
}

.logo-mark--image {
    background: transparent;
    width: auto;
    height: 44px;
    padding: 0;
}

.logo:hover .logo-mark--image {
    background: transparent;
}

.logo-img {
    display: block;
    height: 44px;
    width: auto;
    object-fit: contain;
}

.logo-mark--sm {
    width: 36px;
    height: 36px;
    font-size: 0.7rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-title {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--charcoal-lt);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.logo-sub {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--charcoal);
}

/* Burger */
.burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-shrink: 0;
    line-height: 0;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: transform var(--ease), opacity var(--ease);
    transform-origin: center;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.burger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   DRAWER
============================================================ */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--ease-out);
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.drawer {
    position: fixed;
    top: 0; right: 0;
    width: min(360px, 92vw);
    height: 100%;
    background: var(--white);
    z-index: 201;
    transform: translateX(100%);
    transition: transform var(--ease-out);
    display: flex;
    flex-direction: column;
    padding: 5.5rem 2.5rem 2.5rem;
    box-shadow: -8px 0 50px rgba(0,0,0,0.18);
}

.drawer.open {
    transform: translateX(0);
}

.drawer-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--charcoal-lt);
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius);
    transition: color var(--ease), background var(--ease);
    line-height: 1;
}
.drawer-close:hover {
    color: var(--red);
    background: var(--off-white);
}

.drawer-nav {
    flex: 1;
}

.drawer-nav li {
    border-bottom: 1px solid var(--gray-light);
}

.drawer-nav a {
    display: block;
    padding: 1rem 0;
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--charcoal);
    transition: color var(--ease), padding-left var(--ease);
}
.drawer-nav a:hover,
.drawer-nav .current-menu-item > a,
.drawer-nav .current_page_item > a {
    color: var(--red);
    padding-left: 0.5rem;
}

/* — Sub-menu items — */
.drawer-nav .menu-item-has-children {
    position: relative;
}

/* Row wrapper so link + toggle sit side-by-side */
.drawer-nav .menu-item-has-children > .menu-item-row {
    display: flex;
    align-items: center;
}
.drawer-nav .menu-item-has-children > .menu-item-row > a {
    flex: 1;
}

.drawer-submenu-toggle {
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 0.5rem 0.4rem;
    cursor: pointer;
    color: var(--charcoal-lt);
    font-size: 0.85rem;
    line-height: 1;
    transition: color var(--ease), transform var(--ease);
    border-radius: var(--radius);
}
.drawer-submenu-toggle:hover { color: var(--red); }
.drawer-submenu-toggle.is-open {
    transform: rotate(180deg);
    color: var(--red);
}

.drawer-nav .sub-menu {
    display: none;
    list-style: none;
    padding: 0 0 0.5rem 1rem;
    margin: 0;
    border-left: 2px solid var(--red);
    margin-left: 0.25rem;
    margin-bottom: 0.5rem;
}
.drawer-nav .sub-menu.is-open { display: block; }

.drawer-nav .sub-menu li {
    border-bottom: none;
}
.drawer-nav .sub-menu a {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.55rem 0;
    color: var(--charcoal-lt);
}
.drawer-nav .sub-menu a:hover,
.drawer-nav .sub-menu .current-menu-item > a {
    color: var(--red);
    padding-left: 0.4rem;
}

.drawer-footer {
    display: flex;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-light);
    margin-top: 1rem;
}

.drawer-footer a {
    font-size: 0.78rem;
    color: var(--charcoal-lt);
    transition: color var(--ease);
}
.drawer-footer a:hover { color: var(--red); }

/* ============================================================
   HERO
============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #1a0c0a;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 60%, rgba(192,57,43,0.22) 0%, transparent 60%),
        radial-gradient(ellipse at 10% 30%, rgba(192,57,43,0.1) 0%, transparent 50%),
        linear-gradient(160deg, #200d0a 0%, #160606 50%, #1a0c0a 100%);
    z-index: 0;
}

.hero-bg-pattern::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Hero background media (image / video) */
.hero-bg-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg-media img,
.hero-bg-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Hide the CSS pattern when real media is present */
.hero--has-media .hero-bg-pattern {
    display: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.05) 70%);
    z-index: 1;
}

/* When media is present: left-to-transparent gradient so the image shows on the right */
.hero--has-media .hero-overlay {
    --overlay-alpha: 0.7;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, var(--overlay-alpha)) 0%,
        rgba(0, 0, 0, var(--overlay-alpha)) 20%,
        transparent 75%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: calc(var(--header-h) + var(--promo-h)) 1.5rem 5rem;
    width: 100%;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 36px;
    height: 2px;
    background: var(--gold);
    flex-shrink: 0;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
    max-width: 680px;
    text-shadow: 0 2px 24px rgba(0,0,0,0.4);
}

.hero-sub {
    color: rgba(255,255,255,0.72);
    font-size: 1.05rem;
    max-width: 520px;
    margin-bottom: 2.75rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}


/* — Hero dark text scheme (bright background image/video) ─── */
.hero--text-dark .hero-eyebrow {
    color: var(--red);
}
.hero--text-dark .hero-eyebrow::before {
    background: var(--red);
}
.hero--text-dark h1 {
    color: var(--charcoal);
    text-shadow: none;
}
.hero--text-dark .hero-sub {
    color: var(--charcoal-lt);
}
.hero--text-dark .btn-outline {
    color: var(--charcoal);
    border-color: rgba(0, 0, 0, 0.35);
}
.hero--text-dark .btn-outline:hover {
    background: rgba(0, 0, 0, 0.07);
    border-color: var(--charcoal);
}

/* ============================================================
   ESC BANNER
============================================================ */
/* — ESC Banner: classic (default) ─────────────────────────── */
/* Official Eurovision brand colors (OKLCH) */
:root {
    --esc-fuchsia:   oklch(61.3%  .2412 13.09);
    --esc-flamingo:  oklch(70.55% .2725 336.19);
    --esc-blue:      oklch(48.26% .2615 263.62);
    --esc-dark-blue: oklch(19.08% .1033 264.64);
    --esc-purple:    oklch(41.95% .196  295.22);
}

/* — ESC Banner: classic (default) ─────────────────────────── */
.esc-banner {
    --esc-stripe:   rgba(0,0,0,0.04);
    --esc-topline:  var(--gold);
    background: var(--red);
    padding: 2.75rem 0;        /* horizontal padding lives on .esc-inner */
    position: relative;
    overflow: hidden;
}

.esc-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -48deg,
        transparent,
        transparent 18px,
        var(--esc-stripe) 18px,
        var(--esc-stripe) 36px
    );
    pointer-events: none;
}

.esc-banner::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(to right, transparent 5%, var(--esc-topline) 30%, var(--esc-topline) 70%, transparent 95%);
}

/* — ESC Banner: festive (Eurovision colours) ───────────────── */
.esc-banner--festive {
    --esc-stripe:  oklch(61.3% .2412 13.09 / 0.08);
    --esc-topline: var(--esc-flamingo);
    background: linear-gradient(
        118deg,
        var(--esc-dark-blue) 0%,
        var(--esc-purple)    50%,
        var(--esc-fuchsia)   100%
    );
}

.esc-banner--festive::before {
    background:
        radial-gradient(ellipse 60% 80% at 10% 50%,  oklch(70.55% .2725 336.19 / 0.22) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 90% 50%,  oklch(48.26% .2615 263.62 / 0.20) 0%, transparent 70%),
        repeating-linear-gradient(
            -48deg,
            transparent,
            transparent 18px,
            oklch(61.3% .2412 13.09 / 0.06) 18px,
            oklch(61.3% .2412 13.09 / 0.06) 36px
        );
}

/* — Inner layout ───────────────────────────────────────────── */
.esc-inner {
    position: relative;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;         /* matches .section-inner side padding */
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.esc-left {
    flex-shrink: 0;
    position: relative;
}

/* Logos: mono by default, color in festive mode */
.esc-foe-logo {
    display: block;
    max-width: 160px;
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: opacity 0.4s ease;
}
.esc-foe-logo--mono {
    filter: brightness(0) invert(1);
    opacity: 1;
}
.esc-foe-logo--color {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    filter: none;
}

.esc-banner--festive .esc-foe-logo--mono  { opacity: 0; }
.esc-banner--festive .esc-foe-logo--color { opacity: 1; }

/* — Text ───────────────────────────────────────────────────── */
.esc-text {
    flex: 1;
    min-width: 220px;
}

.esc-text h2 {
    color: var(--white);
    font-size: clamp(1.25rem, 2.5vw, 1.85rem);
    margin-bottom: 0.35rem;
}

.esc-text p {
    color: rgba(255,255,255,0.78);
    font-size: 0.95rem;
    line-height: 1.65;
}

.esc-banner--festive .esc-text h2 {
    text-shadow: 0 0 32px oklch(70.55% .2725 336.19 / 0.55);
}

/* — Button festive variant ─────────────────────────────────── */
.esc-banner--festive .esc-btn {
    background: var(--esc-flamingo);
    border-color: var(--esc-flamingo);
    color: #fff;
}
.esc-banner--festive .esc-btn:hover {
    background: var(--esc-blue);
    border-color: var(--esc-blue);
    color: #fff;
    box-shadow: 0 6px 20px rgba(21,101,192,0.4);
}

/* ============================================================
   KULTURERBE
============================================================ */
.kulturerbe {
    background: var(--off-white);
}

.kulturerbe-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 4.5rem;
    align-items: start;
}

.kulturerbe-text .section-label {
    display: block;
    margin-bottom: 0.5rem;
}

.kulturerbe-text h2 {
    margin-bottom: 1.75rem;
}

.wko-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.25rem;
}

.wko-logo-box {
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.25rem;
}

.wko-monogram {
    font-family: var(--font-serif);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--red);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.wko-monogram span {
    display: block;
    font-size: 1.1rem;
}

.wko-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--charcoal-lt);
}

.wko-note {
    font-size: 0.875rem;
    color: var(--charcoal-lt);
    line-height: 1.68;
}

.heritage-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    border: 2px solid var(--red);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
}

.heritage-icon {
    flex-shrink: 0;
    line-height: 1;
}

.heritage-icon svg {
    width: 1.8rem;
    height: 1.8rem;
}

.wko-logo-img {
    max-height: 80px;
    width: auto;
    margin: 0 auto;
    max-width: 100%;
    object-fit: contain;
}

.heritage-logo-img {
    flex-shrink: 0;
    max-height: 48px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
}

.heritage-text strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.2rem;
}

.heritage-text span {
    font-size: 0.8rem;
    color: var(--charcoal-lt);
    line-height: 1.4;
}

/* ============================================================
   MITGLIEDER KARUSSELL
============================================================ */
.mitglieder {
    background: var(--white);
    padding-bottom: 4.5rem;
}

.mitglieder .section-inner {
    padding-bottom: 2rem;
}

.carousel-outer {
    position: relative;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 3.5rem;
    overflow-x: clip;
    overflow-y: visible;
}

.carousel-wrapper {
    overflow: visible;
    padding: 0.5rem 0 1.5rem;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.member-card {
    flex: 0 0 calc((100% - 0rem) / 3.15);
    background: var(--off-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--gray-light);
    transition: transform var(--ease), box-shadow var(--ease);
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.member-card--no-img {
    justify-content: center;
}

.member-card--no-img .member-card-body {
    padding: 1.5rem;
    text-align: center;
}

.member-card-img {
    width: 100%;
    height: 210px;
    overflow: hidden;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--gray-mid);
    position: relative;
}

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

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

.member-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.member-card-body h4 {
    font-family: var(--font-serif);
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 0.4rem;
}

.member-card-location {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--red);
    font-weight: 500;
    justify-content: center;
}

.member-card-location svg {
    width: 0.75rem;
    height: 0.75rem;
    flex-shrink: 0;
    opacity: 0.8;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.05rem;
    color: var(--charcoal);
    transition: background var(--ease), border-color var(--ease), color var(--ease), box-shadow var(--ease);
    box-shadow: var(--shadow-sm);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(192,57,43,0.3);
}

.carousel-btn.prev { left: 0.5rem; }
.carousel-btn.next { right: 0.5rem; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 1.5rem 0;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-mid);
    border: none;
    cursor: pointer;
    transition: background var(--ease), transform var(--ease);
    padding: 0;
}

.dot.active {
    background: var(--red);
    transform: scale(1.3);
}

.dot:hover:not(.active) {
    background: var(--gray-light);
    transform: scale(1.1);
}

/* ============================================================
   KARTE
============================================================ */
.karte {
    background: var(--off-white);
    padding-bottom: 5rem;
}

.karte .section-inner {
    padding-bottom: 2rem;
}

.map-outer {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.map-btn-wrap {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.map-container {
    position: relative;
    line-height: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 0 0 3px var(--red);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 520px;
    border: 0;
}

/* ============================================================
   KONTAKT
============================================================ */
.kontakt {
    background: var(--white);
}

.kontakt-address {
    font-style: normal;
    font-size: 0.9rem;
    color: var(--gray-mid);
    margin-top: 1rem;
    display: inline-block;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.kontakt-address a {
    color: var(--red);
    text-decoration: none;
}

.kontakt-address a:hover {
    text-decoration: underline;
}

.kontakt-forms {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.form-card {
    background: var(--off-white);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    border: 1px solid var(--gray-light);
}

.form-card--dark {
    background: var(--charcoal-mid);
    border-color: var(--charcoal);
    color: var(--white);
}

.form-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-light);
}

.form-card--dark .form-card-header {
    border-bottom-color: rgba(255,255,255,0.1);
}

.form-card-icon {
    width: 40px;
    height: 40px;
    background: var(--red);
    color: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.form-card-icon svg            { width: 20px; height: 20px; }
.kontakt-teaser-card__icon svg { width: 26px; height: 26px; }
.mitglieder-item-icon svg      { width: 1.25rem; height: 1.25rem; }
.map-blocked p svg             { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -0.2em; }

.member-card-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--gray-mid);
}

.member-card-img-placeholder svg { width: 3rem; height: 3rem; }

.form-card-header h3 {
    margin-bottom: 0.3rem;
    color: inherit;
}

.form-card-header p {
    font-size: 0.88rem;
    color: var(--charcoal-lt);
    line-height: 1.55;
}

.form-card--dark .form-card-header p {
    color: rgba(255,255,255,0.6);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.1rem;
}

.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--charcoal);
    margin-bottom: 0.4rem;
}

.form-card--dark .form-group label {
    color: rgba(255,255,255,0.75);
}

.label-optional {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--gray-mid);
    font-size: 0.75rem;
}

.form-card--dark .label-optional {
    color: rgba(255,255,255,0.35);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 0.95rem;
    border: 1.5px solid var(--gray-light);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--charcoal);
    background: var(--white);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    resize: vertical;
    transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
    line-height: 1.5;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-mid);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
}

.form-card--dark .form-group input,
.form-card--dark .form-group textarea {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.12);
    color: var(--white);
}

.form-card--dark .form-group input::placeholder,
.form-card--dark .form-group textarea::placeholder {
    color: rgba(255,255,255,0.3);
}

.form-card--dark .form-group input:focus,
.form-card--dark .form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

.contact-form .btn {
    margin-top: 0.5rem;
    width: 100%;
    justify-content: center;
}

/* Form feedback notices */
.form-notice {
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
}

.form-notice strong {
    display: block;
    margin-bottom: 0.2rem;
}

.form-notice--success {
    background: #edfaf3;
    border: 1.5px solid #27ae60;
    color: #1a6e3c;
}

.form-notice--error {
    background: #fdf2f2;
    border: 1.5px solid var(--red);
    color: var(--red-dark);
}

.form-notice--error a {
    color: var(--red-dark);
    text-decoration: underline;
}

.form-notice--on-dark.form-notice--success {
    background: rgba(39,174,96,0.15);
    border-color: #27ae60;
    color: #7ddfaa;
}

.form-notice--on-dark.form-notice--error {
    background: rgba(192,57,43,0.2);
    border-color: var(--red-light);
    color: #f4a09a;
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
    background: var(--charcoal);
    border-top: 3px solid var(--red);
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 2.25rem 1.5rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.footer-brand-text strong {
    color: var(--white);
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 600;
}

.footer-brand-text span {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.38);
    letter-spacing: 0.02em;
}

.footer-nav {
    display: flex;
    gap: 1.75rem;
    flex-wrap: wrap;
}

.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.75rem;
    flex-wrap: wrap;
}

.footer-nav li { display: contents; }

.footer-nav a {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color var(--ease);
}
.footer-nav a:hover {
    color: var(--white);
}

.footer-copy-bar {
    background: rgba(0,0,0,0.2);
    text-align: center;
    padding: 0.9rem 1.5rem;
}

.footer-copy-bar p {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.28);
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
    .kulturerbe-grid {
        grid-template-columns: 1fr 320px;
        gap: 3rem;
    }
}

@media (max-width: 900px) {
    .kulturerbe-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .kulturerbe-aside {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }

    .wko-card {
        margin-bottom: 0;
    }

    .kontakt-forms {
        grid-template-columns: 1fr;
    }

    .member-card {
        flex: 0 0 calc((100% - 1.5rem) / 2.15);
    }

    .esc-inner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .esc-inner .btn {
        align-self: center;
    }
}

@media (max-width: 700px) {
    :root {
        --header-h: 64px;
    }

    .section-inner {
        padding: 4.5rem 1.25rem;
    }

    .logo-text {
        display: flex;
    }

    .logo-title {
        font-size: 0.6rem;
    }

    .logo-sub {
        font-size: 0.9rem;
    }

    .carousel-wrapper {
        padding: 0.5rem 0;
    }

    .member-card {
        flex: 0 0 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .kulturerbe-aside {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .footer-nav {
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
    .esc-banner {
        padding: 2.25rem 0;
    }
    .esc-inner {
        padding: 0 1.25rem;
    }

    .form-card {
        padding: 1.75rem 1.25rem;
    }
}

/* ============================================================
   PAGE HERO — used on inner pages (Kontakt, etc.)
============================================================ */
.page-hero {
    background: var(--off-white);
    border-bottom: 1px solid var(--gray-light);
    padding-top: calc(var(--header-h) + var(--promo-h) + 3rem);
}

.page-hero .section-inner {
    padding-top: 0;
    padding-bottom: 3rem;
}

.page-hero .section-label {
    display: block;
    margin-bottom: 0.5rem;
}

.page-hero h1 {
    margin-top: 0;
}

/* ============================================================
   MITGLIEDER PAGE INTRO — content field above filter list
============================================================ */
.mitglieder-page-intro {
    padding-top: 3rem;
    padding-bottom: 0;
    max-width: var(--max-w);
}

.mitglieder-page-intro p {
    color: var(--charcoal-lt);
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 720px;
    margin-bottom: 0.75rem;
}

.mitglieder-page-intro p:last-child { margin-bottom: 0; }

/* ============================================================
   PAGE ARTICLE — wrapper for generic page content
============================================================ */
.page-article .section-inner {
    padding-top: 3.5rem;
    padding-bottom: 5rem;
}

/* ============================================================
   PROSE — rich text output from the_content()
   Covers all elements WordPress / Gutenberg can produce.
============================================================ */
.prose {
    font-size: 1.05rem;
    color: var(--charcoal-lt);
    line-height: 1.78;
}

/* Headings */
.prose h2,
.prose h3,
.prose h4,
.prose h5 {
    color: var(--charcoal);
    margin-top: 2.25rem;
    margin-bottom: 0.8rem;
    line-height: 1.25;
}

.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.prose h3 { font-size: 1.35rem; }
.prose h4 { font-size: 1.1rem; }
.prose h5 { font-size: 0.95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }

/* First heading after the page hero needs no top gap */
.prose > *:first-child { margin-top: 0; }

/* Paragraphs */
.prose p {
    margin-bottom: 1.3rem;
}
.prose p:last-child { margin-bottom: 0; }

/* Links */
.prose a {
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--ease);
}
.prose a:hover { color: var(--red-dark); }

/* Bold & italic */
.prose strong { color: var(--charcoal); font-weight: 600; }
.prose em     { font-style: italic; }

/* Lists */
.prose ul,
.prose ol {
    margin-bottom: 1.3rem;
    padding-left: 1.5rem;
}

.prose ul.mitglieder-list{
    padding-left: 0;
}

.prose ul { list-style: none; }
.prose ul li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.45rem;
}
.prose ul li::before {
    content: '';
    position: absolute;
    left: -0.1rem;
    top: 0.65em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
}

.prose ol { list-style: decimal; }
.prose ol li { margin-bottom: 0.45rem; }

/* Nested lists */
.prose ul ul,
.prose ol ol,
.prose ul ol,
.prose ol ul {
    margin-top: 0.35rem;
    margin-bottom: 0;
}

/* Blockquote */
.prose blockquote {
    border-left: 4px solid var(--red);
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    background: var(--off-white);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--charcoal);
}

.prose blockquote p { margin-bottom: 0; }
.prose blockquote cite {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    font-style: normal;
    font-family: var(--font-sans);
    color: var(--charcoal-lt);
    letter-spacing: 0.04em;
}

/* Horizontal rule */
.prose hr {
    border: none;
    border-top: 2px solid var(--gray-light);
    margin: 2.5rem 0;
}

/* Images */
.prose img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}
.prose figure { margin: 2rem 0; }
.prose figcaption {
    font-size: 0.8rem;
    color: var(--gray-mid);
    margin-top: 0.5rem;
    text-align: center;
}

/* Tables */
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.92rem;
}
.prose th {
    background: var(--off-white);
    color: var(--charcoal);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--gray-light);
}
.prose td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--gray-light);
    vertical-align: top;
}
.prose tr:last-child td { border-bottom: none; }

/* Code */
.prose code {
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 0.875em;
    background: var(--off-white);
    border: 1px solid var(--gray-light);
    padding: 0.1em 0.4em;
    border-radius: 3px;
    color: var(--red-dark);
}
.prose pre {
    background: var(--charcoal);
    color: rgba(255,255,255,0.85);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.875rem;
    line-height: 1.6;
}
.prose pre code {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

/* Gutenberg alignment helpers */
.prose .alignleft  { float: left;  margin: 0.5rem 1.5rem 1rem 0; }
.prose .alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.prose .aligncenter { margin-left: auto; margin-right: auto; display: block; text-align: center; }
.prose .alignfull,
.prose .alignwide  { max-width: none; }

/* Gutenberg blocks that should use full container width, not the prose 760px cap */
.prose .wp-block-columns,
.prose .wp-block-group,
.prose .wp-block-cover,
.prose .wp-block-media-text {
    max-width: none;
    width: 100%;
}

/* WP caption shortcode */
.prose .wp-caption { max-width: 100%; }
.prose .wp-caption-text {
    font-size: 0.8rem;
    color: var(--gray-mid);
    text-align: center;
    margin-top: 0.4rem;
}

/* ============================================================
   KONTAKT TEASER — homepage CTA cards linking to /kontakt
============================================================ */
.kontakt-teaser {
    background: var(--off-white);
}

.kontakt-teaser-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.kontakt-teaser-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-decoration: none;
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.kontakt-teaser-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--red);
}

.kontakt-teaser-card--dark {
    background: var(--charcoal-mid);
    border-color: var(--charcoal);
    color: var(--white);
}

.kontakt-teaser-card--dark:hover {
    border-color: var(--red);
}

.kontakt-teaser-card__icon {
    width: 52px;
    height: 52px;
    background: var(--red);
    color: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kontakt-teaser-card__body {
    flex: 1;
    min-width: 0;
}

.kontakt-teaser-card__body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.35rem;
    color: inherit;
}

.kontakt-teaser-card__body p {
    font-size: 0.88rem;
    color: var(--charcoal-lt);
    line-height: 1.55;
    margin: 0;
}

.kontakt-teaser-card--dark .kontakt-teaser-card__body p {
    color: rgba(255,255,255,0.6);
}

.kontakt-teaser-card__arrow {
    font-size: 1.25rem;
    color: var(--red);
    flex-shrink: 0;
    transition: transform var(--ease);
}

.kontakt-teaser-card:hover .kontakt-teaser-card__arrow {
    transform: translateX(4px);
}

@media (max-width: 700px) {
    .kontakt-teaser-cards {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   COOKIE BANNER
============================================================ */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 999;
    background: var(--charcoal);
    border-top: 3px solid var(--red);
    padding: 1.25rem 1.5rem;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-banner__text {
    flex: 1;
    min-width: 240px;
}

.cookie-banner__text strong {
    display: block;
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.cookie-banner__text p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.5;
    margin: 0;
}

.cookie-banner__text a {
    color: rgba(255,255,255,0.85);
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.btn-outline-dark {
    background: transparent;
    color: rgba(255,255,255,0.7);
    border: 2px solid rgba(255,255,255,0.25);
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color var(--ease), color var(--ease);
    white-space: nowrap;
}
.btn-outline-dark:hover {
    border-color: rgba(255,255,255,0.6);
    color: var(--white);
}

/* Map blocked overlay */
.map-blocked {
    position: absolute;
    inset: 0;
    background: var(--off-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    text-align: center;
    padding: 2rem;
}

.map-blocked[hidden] {
    display: none;
}

.map-blocked p {
    font-size: 1rem;
    color: var(--charcoal-lt);
}

@media (max-width: 600px) {
    .cookie-banner__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* ============================================================
   FOCUS VISIBLE
============================================================ */
:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
}

/* ============================================================
   FACTS BAR
============================================================ */
.facts-bar {
    background: var(--charcoal);
    padding: 0;
}

.facts-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    padding: 0 1.5rem;
}

.fact-item {
    padding: 2.25rem 1.5rem;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.fact-item:last-child { border-right: none; }

.fact-value {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--red-light);
    line-height: 1;
}

.fact-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.55);
}

@media (max-width: 600px) {
    .facts-inner {
        grid-template-columns: 1fr;
        padding: 0;
    }
    .fact-item {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        padding: 1.5rem 1.25rem;
    }
    .fact-item:last-child { border-bottom: none; }
}

/* ============================================================
   SCROLL REVEAL
============================================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition:
            opacity  0.65s cubic-bezier(0.4, 0, 0.2, 1),
            transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
        transition-delay: var(--reveal-delay, 0ms);
    }
    .reveal.is-visible {
        opacity: 1;
        transform: none;
    }
}

/* ============================================================
   MITGLIEDER LIST
============================================================ */
.mitglieder-liste-section {
    padding: 0 0 5rem;
}

.mitglieder-liste-section > .section-inner{
    padding-top: 1rem;
}

.vww-shortcode-heading {
    margin-bottom: 2rem;
}

.mitglieder-intro {
    max-width: 720px;
    margin-bottom: 2.5rem;
    color: var(--charcoal-lt);
    line-height: 1.75;
    font-size: 1.02rem;
}

.mitglieder-intro p { margin-bottom: 0.75rem; }
.mitglieder-intro p:last-child { margin-bottom: 0; }

.mitglieder-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 2.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--gray-light);
}

.mitglieder-controls-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--charcoal-lt);
    margin-right: 0.4rem;
}

.mitglieder-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-btn {
    padding: 0.35rem 0.9rem;
    font-size: 0.875rem;
    font-family: inherit;
    font-weight: 500;
    border: 1px solid var(--gray-light);
    border-radius: 999px;
    background: transparent;
    color: var(--charcoal);
    cursor: pointer;
    transition: border-color var(--ease), background var(--ease), color var(--ease);
}
.sort-btn:hover {
    border-color: var(--red);
    color: var(--red);
}
.sort-btn--active {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}
.sort-btn--active:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    color: #fff;
}

.mitglieder-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bezirk-select {
    padding: 0.35rem 2rem 0.35rem 0.75rem;
    font-size: 0.875rem;
    font-family: inherit;
    border: 1px solid var(--gray-light);
    border-radius: 6px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 0.7rem center;
    -webkit-appearance: none;
    appearance: none;
    color: var(--charcoal);
    cursor: pointer;
    transition: border-color var(--ease);
}
.bezirk-select:hover,
.bezirk-select:focus {
    border-color: var(--red);
    outline: none;
}

.mitglieder-count {
    font-size: 0.875rem;
    color: var(--charcoal-lt);
    margin-bottom: 1.5rem;
}

.mitglieder-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mitglieder-item::before { content: none !important; }
.mitglieder-item {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0.5rem;
    border-bottom: 1px solid var(--gray-light);
    transition: background var(--ease);
    border-radius: 4px;
}

.mitglieder-item[hidden] { display: none !important; }
.mitglieder-item:first-child {
    border-top: 1px solid var(--gray-light);
}
.mitglieder-item:hover {
    background: var(--off-white);
}

.mitglieder-item-main {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    min-width: 0;
}

.mitglieder-item-icon {
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: var(--red);
}

.mitglieder-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.mitglieder-item-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--charcoal);
    line-height: 1.3;
}

.mitglieder-item-address {
    font-size: 0.875rem;
    color: var(--charcoal-lt);
}

.mitglieder-item-bezirk {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--red);
}

.mitglieder-maps-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    border: 1.5px solid var(--red);
    border-radius: 999px;
    color: var(--red);
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--ease), color var(--ease);
}
.mitglieder-maps-link:hover {
    background: var(--red);
    color: #fff;
}
.mitglieder-maps-link svg {
    flex-shrink: 0;
}

.mitglieder-empty,
.mitglieder-no-results {
    color: var(--charcoal-lt);
    font-style: italic;
    padding: 2rem 0;
}

@media (max-width: 600px) {
    .mitglieder-item {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    .mitglieder-maps-link {
        width: 100%;
        justify-content: center;
    }
    .mitglieder-controls {
        gap: 0.75rem 1.5rem;
    }
}
