/* ==========================================================================
   Vereinsseite – modernes Layout (Startseite, Termine, Beiträge, Dokumente,
   Vorstand, Detailseiten). Wird nach club.css geladen und überschreibt dort
   nur, was nötig ist.

   Bildformat: Titelbilder von Terminen, Beiträgen und Königspaaren werden in
   der App auf 16:9 zugeschnitten (CropType.fixedWidescreen bzw. Standard von
   allRatios) und dort auch in 16:9 angezeigt. Hier stehen sie deshalb überall
   in einem festen 16:9-Rahmen (--media-ratio) – unabhängig von der
   Bildschirmbreite, damit der Ausschnitt immer derselbe bleibt.
   ========================================================================== */

:root {
    --media-ratio: 16 / 9;
    --page-bg: #F6F7F5;
    --card-bg: #FFFFFF;
    --line: #E6E8E4;
    --line-soft: #EFF1ED;
    --color-text-secondary: #5F676D;
    --color-text-muted: #8A9196;
    --tint: color-mix(in srgb, var(--color-primary) 9%, #FFFFFF);
    --tint-strong: color-mix(in srgb, var(--color-primary) 16%, #FFFFFF);
    --r-card: 18px;
    --r-lg: 24px;
    --shadow-card: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.04);
    --shadow-hover: 0 12px 28px rgba(16, 24, 40, 0.10);
}

body {
    background: var(--page-bg);
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    z-index: 2000;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--color-primary);
    color: #FFFFFF;
    text-decoration: none;
}

.skip-link:focus {
    left: 16px;
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ---------------- Kopfleiste ---------------- */

.site-bar {
    background: var(--card-bg);
}

.site-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px var(--spacing-sm) 4px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    text-decoration: none;
    color: var(--color-text);
    padding: 4px 10px 4px 4px;
    margin-left: -4px;
    border-radius: 14px;
    transition: background-color 0.15s;
}

.site-brand:hover {
    background: var(--page-bg);
}

.site-brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: contain;
    background: #FFFFFF;
    border: 1px solid var(--line);
    padding: 3px;
    flex-shrink: 0;
}

.site-brand-name {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ---------------- Navigation ---------------- */

.club-nav,
.club-nav.themed {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--card-bg);
    border-bottom: 1px solid var(--line);
}

.club-nav-container {
    padding: 6px var(--spacing-sm) 10px;
}

.club-nav-pills {
    gap: 4px;
    flex-wrap: nowrap;
}

.club-nav .nav-pill,
.club-nav.themed .nav-pill {
    padding: 8px 14px;
    border: none;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-secondary);
    white-space: nowrap;
    transition: background-color 0.15s, color 0.15s;
}

.club-nav .nav-pill:hover,
.club-nav.themed .nav-pill:hover {
    color: var(--color-text);
    background: var(--page-bg);
    border: none;
}

.club-nav .nav-pill.active,
.club-nav.themed .nav-pill.active {
    color: var(--color-primary);
    background: var(--tint);
    font-weight: 600;
    border: none;
}

.club-nav .sf-nav-pill::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #E5484D;
    box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.18);
}

.nav-dropdown-menu {
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-hover);
    padding: 6px;
}

.nav-dropdown-item {
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 15px;
}

.nav-dropdown-item:hover,
.nav-dropdown-item.active,
.club-nav.themed .nav-dropdown-item:hover,
.club-nav.themed .nav-dropdown-item.active {
    background: var(--tint);
    color: var(--color-primary);
}

.nav-burger span,
.club-nav.themed .nav-burger span {
    background-color: var(--color-text);
    height: 2px;
    width: 22px;
}

/* Ausklapp-Menü (zu viele Einträge bzw. mobil) */
.club-nav-container.overflow .club-nav-pills,
.club-nav-pills {
    --drawer-pad: 20px;
}

.club-nav-container.overflow .club-nav-pills {
    top: var(--site-bar-h, 64px);
    height: calc(100vh - var(--site-bar-h, 64px));
    height: calc(100dvh - var(--site-bar-h, 64px));
    padding: 12px var(--drawer-pad) var(--drawer-pad);
    z-index: 100;
    width: min(320px, 86vw);
    gap: 2px;
    overflow-y: auto;
    box-shadow: -12px 0 40px rgba(16, 24, 40, 0.14);
}

.club-nav-container.overflow .nav-pill,
.club-nav-container.overflow .nav-pill:hover,
.club-nav-container.overflow .nav-pill.active,
.club-nav.themed .club-nav-container.overflow .club-nav-pills .nav-pill,
.club-nav.themed .club-nav-container.overflow .club-nav-pills .nav-pill:hover,
.club-nav.themed .club-nav-container.overflow .club-nav-pills .nav-pill.active {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 12px 14px;
}

.club-nav-container.overflow .nav-pill.active,
.club-nav.themed .club-nav-container.overflow .club-nav-pills .nav-pill.active {
    color: var(--color-primary);
    background: var(--tint);
}

.club-nav-container.overflow .nav-dropdown,
.club-nav-container.overflow .nav-dropdown-link-parent {
    width: 100%;
    border: none;
}

.club-nav-container.overflow .nav-dropdown-item {
    border-left: none;
}

/* Menü-Knopf sitzt in der Kopfleiste; sichtbar, wenn die Einträge nicht in
   eine Zeile passen (body.nav-overflow) oder mobil. Die Kopfleiste wird dann
   selbst sticky, die (leere) Navigationszeile schrumpft auf null. */
.site-bar .nav-burger {
    display: none;
    margin-left: auto;
    padding: 10px;
    border-radius: 12px;
}

.site-bar .nav-burger:hover {
    background: var(--page-bg);
}

body.nav-overflow .site-bar .nav-burger {
    display: flex;
}

body.nav-overflow .site-bar {
    position: sticky;
    top: 0;
    z-index: 101;
    border-bottom: 1px solid var(--line);
}

body.nav-overflow .site-bar-inner {
    padding-bottom: 14px;
}

/* Nav darf keinen eigenen Stacking-Kontext bilden, sonst liegt das
   Menü-Panel hinter der Kopfleiste */
body.nav-overflow .club-nav {
    position: static;
    z-index: auto;
    border-bottom: none;
}

body.nav-overflow .club-nav-container {
    padding: 0 var(--spacing-sm);
}

@media (max-width: 768px) {
    .site-bar .nav-burger {
        display: flex;
    }

    .site-bar {
        position: sticky;
        top: 0;
        z-index: 101;
        border-bottom: 1px solid var(--line);
    }

    .site-bar-inner {
        padding-bottom: 12px;
        padding-top: 12px;
    }

    .club-nav {
        position: static;
        z-index: auto;
        border-bottom: none;
    }

    .club-nav-container {
        padding: 0;
    }

    .club-nav-pills {
        top: var(--site-bar-h, 64px);
        height: calc(100vh - var(--site-bar-h, 64px));
        height: calc(100dvh - var(--site-bar-h, 64px));
        z-index: 100;
        padding: 12px 20px 20px;
        width: min(320px, 86vw);
        gap: 2px;
        overflow-y: auto;
        box-shadow: -12px 0 40px rgba(16, 24, 40, 0.14);
    }

    .club-nav .nav-pill,
    .club-nav .nav-pill:hover,
    .club-nav .nav-pill.active {
        width: 100%;
        border: none;
        border-radius: 12px;
        padding: 12px 14px;
    }

    .site-brand-logo {
        width: 38px;
        height: 38px;
    }

    .site-brand-name {
        font-size: 16px;
    }

    .evd-media {
        top: auto;
    }
}

/* Alte Kopf-Elemente (falls noch irgendwo im Markup) */
.club-hero,
.club-header,
.blog-detail-breadcrumbs {
    display: none !important;
}

/* ---------------- Grundlayout ---------------- */

.club-main {
    position: relative;
    padding: 32px 0 72px;
}

.club-main > .container {
    position: relative;
    z-index: 1;
}

.club-content {
    margin: 0 auto;
}

.club-content:focus {
    outline: none;
}

/* ---------------- Seitenkopf + Bausteine ---------------- */

.pg-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.pg-title {
    font-size: clamp(30px, 4.2vw, 44px);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin: 0;
    color: var(--color-text);
}

.pg-sub {
    margin: 8px 0 0;
    font-size: 16px;
    color: var(--color-text-secondary);
}

.pg-head-aside {
    flex-shrink: 0;
}

.pg-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.pg-search {
    flex: 1 1 280px;
    max-width: 440px;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--card-bg);
    border: 1px solid var(--line);
    color: var(--color-text-muted);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.pg-search:focus-within {
    border-color: color-mix(in srgb, var(--color-primary) 50%, var(--line));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-primary) 12%, transparent);
}

.pg-search svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.pg-search input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font: inherit;
    font-size: 15px;
    color: var(--color-text);
}

.pg-select {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 6px 0 16px;
    border-radius: 999px;
    background: var(--card-bg);
    border: 1px solid var(--line);
    font-size: 14px;
    color: var(--color-text-secondary);
}

.pg-select select {
    border: none;
    background: transparent;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    padding: 8px 6px;
    cursor: pointer;
}

.pg-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    max-width: 100%;
}

.pg-chips::-webkit-scrollbar {
    display: none;
}

.pg-chip,
.bd-tab {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--card-bg);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.pg-chip:hover,
.bd-tab:hover {
    color: var(--color-text);
    border-color: #D5D9D3;
}

.pg-chip.active,
.bd-tab.active {
    background: var(--color-text);
    border-color: var(--color-text);
    color: #FFFFFF;
}

.pg-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.pg-section-head h2 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
}

.pg-more-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    white-space: nowrap;
}

.pg-more-link::after {
    content: '→';
    transition: transform 0.15s;
}

.pg-more-link:hover::after {
    transform: translateX(3px);
}

/* Ansichts-Umschalter (Termine) */
.view-toggle {
    display: inline-flex;
    padding: 4px;
    gap: 2px;
    border-radius: 999px;
    background: var(--card-bg);
    border: 1px solid var(--line);
}

.view-toggle-btn {
    width: 38px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
}

.view-toggle-btn svg {
    width: 18px;
    height: 18px;
}

.view-toggle-btn.active {
    background: var(--tint);
    color: var(--color-primary);
}

/* ---------------- Buttons ---------------- */

.hm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-text);
    background: #FFFFFF;
    border: 1px solid var(--line);
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}

.hm-btn svg {
    width: 18px;
    height: 18px;
}

.hm-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 24, 40, 0.12);
}

.hm-btn--primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #FFFFFF;
}

.hm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ---------------- Startseite: Bühne mit Titelbild ---------------- */

.hm-hero {
    position: relative;
    min-height: clamp(360px, 46vw, 500px);
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    margin-bottom: 40px;
    background: var(--color-primary);
    isolation: isolate;
}

.hm-hero-media {
    position: absolute;
    inset: 0;
    background-size: cover;
    z-index: -2;
    animation: hm-zoom 14s ease-out both;
}

@keyframes hm-zoom {
    from { transform: scale(1.06); }
    to { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .hm-hero-media { animation: none; }
}

.hm-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(to top, rgba(8, 12, 10, 0.78) 0%, rgba(8, 12, 10, 0.35) 45%, rgba(8, 12, 10, 0.05) 75%);
}

.hm-hero--plain {
    background:
        radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--color-primary) 55%, #FFFFFF) 0%, transparent 55%),
        linear-gradient(135deg, var(--color-primary), color-mix(in srgb, var(--color-primary) 70%, #000000));
    min-height: 300px;
}

.hm-hero--plain::after {
    background: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 18px 18px;
}

.hm-hero-content {
    width: 100%;
    padding: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 20px 24px;
    color: #FFFFFF;
}

.hm-hero-logo {
    width: 84px;
    height: 84px;
    border-radius: 22px;
    object-fit: contain;
    background: #FFFFFF;
    padding: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.hm-hero-text {
    flex: 1 1 320px;
    min-width: 0;
}

.hm-eyebrow {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
}

.hm-hero-name {
    margin: 0;
    font-size: clamp(30px, 4.6vw, 54px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    text-wrap: balance;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.hm-hero .hm-btn:not(.hm-btn--primary) {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.35);
    color: #FFFFFF;
    backdrop-filter: blur(8px);
}

.hm-hero .hm-btn--primary {
    background: #FFFFFF;
    border-color: #FFFFFF;
    color: var(--color-primary);
}

.hm-hero-next {
    position: absolute;
    top: 24px;
    right: 24px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    color: var(--color-text);
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    transition: transform 0.15s;
}

.hm-hero-next:hover {
    transform: translateY(-2px);
}

.hm-hero-next-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.hm-hero-next-title {
    font-weight: 700;
    line-height: 1.3;
}

.hm-hero-next-when {
    font-size: 14px;
    color: var(--color-text-secondary);
}

/* ---------------- Startseiten-Abschnitte ---------------- */

.hm-section {
    margin-bottom: 48px;
}

.sf-home-banner {
    display: block;
    text-decoration: none;
    border-radius: var(--r-card);
    margin-bottom: 40px;
}

.hm-upcoming {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
}

.hm-upcoming--single {
    grid-template-columns: 1fr;
}

.hm-next {
    display: grid;
    grid-template-rows: auto 1fr;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--color-text);
    transition: box-shadow 0.2s, transform 0.2s;
}

.hm-upcoming--single .hm-next {
    grid-template-rows: none;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
}

.hm-next:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.hm-next-media {
    position: relative;
    aspect-ratio: var(--media-ratio);
    background: #EEF0EC;
    overflow: hidden;
}


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

.hm-next-media .ev-card-empty {
    display: none;
}

.hm-next-media.ev-card-media--empty .ev-card-empty {
    display: flex;
}

.hm-next-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px 24px 24px;
}

.hm-next-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hm-next-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 4px 0;
}

.hm-next-cta {
    margin-top: auto;
    padding-top: 8px;
    font-weight: 600;
    font-size: 15px;
    color: var(--color-primary);
}

.hm-later {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    border-radius: var(--r-lg);
}

.hm-later .ev-row {
    flex: 1;
}

.hm-later .ev-row-thumb {
    display: none;
}

/* Vorstand auf der Startseite */
.hm-board {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 22px 24px;
}

.hm-board-group + .hm-board-group {
    padding-top: 20px;
    border-top: 1px solid var(--line-soft);
}

.hm-board-name {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-secondary);
    margin: 0 0 14px;
}

.hm-board-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 8px;
}

.bd-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px 8px 8px;
    border: none;
    border-radius: 16px;
    background: transparent;
    text-align: left;
    font: inherit;
    color: var(--color-text);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s;
}

.bd-chip:hover {
    background: var(--page-bg);
}

.bd-chip .bd-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
}

.bd-chip-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.bd-chip-name {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bd-chip-role {
    font-size: 13px;
    color: var(--color-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bd-chip--more {
    font-weight: 700;
    color: var(--color-primary);
}

.bd-chip--more::before {
    content: '';
}

/* Entdecken-Kacheln */
.hm-explore {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.hm-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    text-decoration: none;
    color: var(--color-text);
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.hm-tile:hover {
    border-color: color-mix(in srgb, var(--color-primary) 30%, var(--line));
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.hm-tile-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tint);
    color: var(--color-primary);
}

.hm-tile-icon svg {
    width: 22px;
    height: 22px;
}

.hm-tile-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.hm-tile-title {
    font-weight: 700;
    line-height: 1.3;
}

.hm-tile-hint {
    font-size: 13px;
    color: var(--color-text-secondary);
}

.hm-tile-arrow {
    color: var(--color-text-muted);
    display: flex;
}

.hm-tile-arrow svg {
    width: 18px;
    height: 18px;
}

/* ---------------- Termine ---------------- */

.ev-card {
    border-color: var(--line);
    border-radius: var(--r-card);
    box-shadow: var(--shadow-card);
}

.ev-list-group {
    border-color: var(--line);
    border-radius: var(--r-card);
}

.ev-month + .ev-month {
    margin-top: 36px;
}

.ev-month .ev-list-month {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 4px;
}

.ev-month .ev-list-month::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

.ev-month-count {
    order: 2;
    min-width: 24px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--card-bg);
    border: 1px solid var(--line);
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0;
}

/* ---------------- Beiträge ---------------- */

.bp-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    overflow: hidden;
    text-decoration: none;
    color: var(--color-text);
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.bp-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--color-primary) 25%, var(--line));
}

.bp-media {
    position: relative;
    aspect-ratio: var(--media-ratio);
    overflow: hidden;
    background: #EEF0EC;
    flex-shrink: 0;
}

/* Das Bild trägt das 16:9-Format selbst (im Fluss statt absolut), damit der
   Rahmen nie auf Höhe 0 fallen kann – auch nicht in Browsern, die
   aspect-ratio bei Grid-/Flex-Elementen ohne Inhalt falsch berechnen. */
.bp-media-img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: var(--media-ratio);
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.bp-media-logo {
    display: none;
}

.bp-media--empty {
    background-color: var(--tint);
    background-image: radial-gradient(color-mix(in srgb, var(--color-primary) 14%, transparent) 1px, transparent 1px);
    background-size: 14px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bp-media--empty .bp-media-logo {
    display: block;
    width: 34%;
    max-width: 120px;
    aspect-ratio: 1;
    object-fit: contain;
    opacity: 0.55;
    filter: grayscale(0.2);
}

.bp-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px 22px;
    flex: 1;
}

.bp-date {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
}

.bp-title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bp-summary {
    margin: 2px 0 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--color-text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bp-more {
    margin-top: auto;
    padding-top: 10px;
    font-weight: 600;
    font-size: 15px;
    color: var(--color-primary);
}

.bp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}

.bp-featured-wrap {
    margin-bottom: 28px;
}

.bp-card--featured {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: center;
}

.bp-card--featured .bp-body {
    padding: 36px 36px 32px;
    justify-content: center;
    gap: 10px;
}

.bp-card--featured .bp-title {
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 800;
    letter-spacing: -0.02em;
    -webkit-line-clamp: 4;
}

.bp-card--featured .bp-summary {
    font-size: 16px;
    -webkit-line-clamp: 4;
}

/* Startseite: großer Beitrag links, zwei kompakte rechts */
.bp-mag {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 20px;
}

.bp-mag--single {
    grid-template-columns: 1fr;
}

.bp-mag > .bp-card--featured {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    align-items: stretch;
}

.bp-mag--single > .bp-card--featured {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    grid-template-rows: none;
}


.bp-mag > .bp-card--featured .bp-body {
    padding: 22px 24px 24px;
    justify-content: flex-start;
}

.bp-mag-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Kompakte Karte: Bild als 16:9-Vorschau links, Text rechts – die
   Kartenhöhe ergibt sich aus dem Inhalt, das Bild behält sein Format. */
.bp-card--compact {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 12px;
    flex: 1;
}

.bp-card--compact .bp-media {
    width: 44%;
    border-radius: 12px;
}

.bp-card--compact .bp-body {
    justify-content: center;
    padding: 4px 6px 4px 0;
}

.bp-card--compact .bp-title {
    font-size: 17px;
}

.bp-sentinel {
    height: 1px;
}

/* ---------------- Beitrags-Detail ---------------- */

.art {
    max-width: 760px;
    margin: 0 auto;
}

.art-head {
    margin-bottom: 28px;
}

.art-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 14px;
}

.art-title {
    font-size: clamp(32px, 5vw, 50px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin: 0 0 18px;
    text-wrap: balance;
    overflow-wrap: break-word;
    hyphens: auto;
}

.art-lead {
    font-size: clamp(18px, 2vw, 21px);
    line-height: 1.55;
    color: #3A4146;
    margin: 0 0 22px;
}

.art-byline {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 15px;
    font-weight: 600;
}

.art-byline img {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    object-fit: contain;
    background: #FFFFFF;
    border: 1px solid var(--line);
    padding: 2px;
}

.art-share {
    margin-left: auto;
    padding: 8px 16px;
    font-size: 14px;
}

.art-cover {
    margin: 0 calc(-1 * min(80px, (100vw - 760px) / 2)) 32px;
}

.art-cover img {
    display: block;
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    border-radius: var(--r-lg);
    cursor: zoom-in;
}

.art-body {
    font-size: 18px;
    line-height: 1.75;
    color: #22282C;
}

.art-body .content-block p {
    font-size: 18px;
    line-height: 1.75;
}

.art-body .audio-player-container {
    margin-bottom: 28px;
}

.evd-more {
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid var(--line);
}

/* ---------------- Termin-Detail (Feinschliff) ---------------- */

.evd-media {
    border-color: var(--line);
    border-radius: var(--r-lg);
}

/* Bild bleibt beim Scrollen neben dem Text stehen – nur im zweispaltigen
   Layout; darunter steht es normal über dem Titel (club.css). */
@media (min-width: 901px) {
    .evd-media {
        top: 84px;
    }
}

.evd-btn {
    border-color: var(--line);
}

/* ---------------- Dokumente ---------------- */

.dc-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    font-size: 15px;
}

.dc-crumbs a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
}

.dc-crumbs a:hover {
    color: var(--color-primary);
}

.dc-crumbs [aria-current] {
    font-weight: 700;
    color: var(--color-text);
}

.dc-crumb-sep {
    color: #C3C8C0;
}

.dc-crumb-back {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--line);
    margin-right: 6px;
}

.dc-crumb-back svg {
    width: 18px;
    height: 18px;
}

.dc-folders {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.dc-folder {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: var(--r-card);
    background: var(--card-bg);
    border: 1px solid var(--line);
    text-decoration: none;
    color: var(--color-text);
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.dc-folder:hover {
    border-color: color-mix(in srgb, var(--color-primary) 30%, var(--line));
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.dc-folder-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tint);
    color: var(--color-primary);
}

.dc-folder-icon svg {
    width: 24px;
    height: 24px;
}

.dc-folder-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dc-folder-name {
    font-weight: 700;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dc-folder-count {
    font-size: 13px;
    color: var(--color-text-secondary);
}

.dc-list {
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    overflow: hidden;
}

.dc-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    text-decoration: none;
    color: var(--color-text);
    transition: background-color 0.15s;
}

.dc-row + .dc-row {
    border-top: 1px solid var(--line-soft);
}

.dc-row:hover {
    background: color-mix(in srgb, var(--color-primary) 4%, #FFFFFF);
}

.dc-type {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.03em;
    background: #EEF0EC;
    color: #5F676D;
}

.dc-type--pdf { background: #FDECEC; color: #C93A3A; }
.dc-type--doc { background: #E8F0FD; color: #2E62C9; }
.dc-type--sheet { background: #E6F5EC; color: #1E8A4C; }
.dc-type--slides { background: #FDF0E4; color: #C76A1E; }
.dc-type--image { background: #F1EAFB; color: #7A47C2; }
.dc-type--archive { background: #F2EFE6; color: #7D6B3A; }

.dc-row-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.dc-name {
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.dc-meta {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-top: 2px;
}

.dc-dl {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    border: 1px solid var(--line);
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.dc-dl svg {
    width: 18px;
    height: 18px;
}

.dc-row:hover .dc-dl {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #FFFFFF;
}

.dc-hint {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin: 0 0 10px;
}

/* ---------------- Vorstand ---------------- */

.bd-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 24px;
    padding-bottom: 2px;
}

.bd-tabs::-webkit-scrollbar {
    display: none;
}

.bd-tab-count {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--page-bg);
    color: var(--color-text-secondary);
}

.bd-tab.active .bd-tab-count {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

.bd-group-desc {
    margin: -8px 0 24px;
    max-width: 720px;
    color: var(--color-text-secondary);
}

.bd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.bd-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: var(--card-bg);
    text-align: center;
    font: inherit;
    color: var(--color-text);
    cursor: pointer;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.bd-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--color-primary) 25%, var(--line));
}

.bd-avatar--card {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    margin-bottom: 16px;
    box-shadow: 0 0 0 4px #FFFFFF, 0 0 0 5px var(--line);
}

.bd-avatar--card .bd-avatar-fallback {
    font-size: 32px;
    letter-spacing: -0.02em;
}

.bd-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex: 1;
    width: 100%;
}

.bd-card .bd-contacts {
    justify-content: center;
    margin-top: auto;
    padding-top: 12px;
}

.bd-role {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.bd-name {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.bd-since {
    font-size: 13px;
    color: var(--color-text-secondary);
}

.bd-avatar {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--tint-strong);
    flex-shrink: 0;
}

.bd-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bd-avatar-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 16px;
}

.bd-avatar--fill {
    width: 100%;
    height: 100%;
}

.bd-avatar--fill .bd-avatar-fallback {
    font-size: 44px;
    letter-spacing: -0.02em;
}

.bd-avatar--lg {
    width: 96px;
    height: 96px;
    border-radius: 24px;
}

.bd-avatar--lg .bd-avatar-fallback {
    font-size: 30px;
}

.bd-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.bd-contact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--page-bg);
    color: var(--color-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.15s, color 0.15s;
}

.bd-contact span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bd-contact svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: var(--color-primary);
}

.bd-contact:hover {
    background: var(--tint);
    color: var(--color-primary);
}

.bd-card .bd-contact span {
    display: none;
}

.bd-card .bd-contact {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
}

.bd-contacts--stacked {
    flex-direction: column;
    align-items: stretch;
}

.bd-contacts--stacked .bd-contact {
    height: 44px;
    font-size: 15px;
    padding: 0 16px;
}

/* Personen-Dialog */
.bd-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(12, 16, 14, 0);
    transition: background-color 0.2s;
}

.bd-dialog-backdrop.open {
    background: rgba(12, 16, 14, 0.5);
}

.bd-dialog {
    position: relative;
    width: min(520px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 28px;
    border-radius: 26px;
    background: var(--card-bg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    transform: translateY(12px) scale(0.98);
    opacity: 0;
    transition: transform 0.2s, opacity 0.2s;
}

.bd-dialog-backdrop.open .bd-dialog {
    transform: none;
    opacity: 1;
}

.bd-dialog-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--page-bg);
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.bd-dialog-close svg {
    width: 18px;
    height: 18px;
}

.bd-dialog-head {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-right: 40px;
    margin-bottom: 18px;
}

.bd-dialog-name {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 2px 0;
}

.bd-dialog-text {
    margin: 0 0 18px;
    color: #3A4146;
    line-height: 1.65;
}

.bd-dialog-section {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line-soft);
}

.bd-dialog-section h3 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-secondary);
    margin: 0 0 10px;
}

.bd-memberships {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bd-memberships li {
    display: flex;
    flex-direction: column;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--page-bg);
}

.bd-membership-title {
    font-weight: 600;
}

.bd-membership-group {
    font-size: 13px;
    color: var(--color-text-secondary);
}

/* ---------------- Eigene Seiten ---------------- */

.cp {
    max-width: 820px;
}

/* ---------------- Responsiv ---------------- */

@media (max-width: 900px) {
    .hm-upcoming,
    .hm-upcoming--single .hm-next,
    .bp-mag,
    .bp-mag--single > .bp-card--featured,
    .bp-card--featured {
        grid-template-columns: 1fr;
    }

    .bp-card--featured .bp-body {
        padding: 22px 22px 24px;
    }

    .hm-hero-next {
        display: none;
    }
}

@media (max-width: 600px) {
    .club-main {
        padding-top: 20px;
    }

    .hm-hero {
        border-radius: 22px;
        margin: 0 -4px 32px;
    }

    .hm-hero-content {
        padding: 24px;
    }

    .hm-hero-logo {
        width: 64px;
        height: 64px;
        border-radius: 18px;
    }

    .hm-actions .hm-btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .pg-head {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .pg-search {
        max-width: none;
    }

    .bp-card--compact .bp-media {
        width: 40%;
    }

    .bd-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .bd-card {
        padding: 20px 12px 16px;
    }

    .bd-avatar--card {
        width: 84px;
        height: 84px;
    }

    .bd-name {
        font-size: 16px;
    }

    .hm-board {
        padding: 16px;
    }

    .hm-board-row {
        grid-template-columns: 1fr;
    }

    .dc-row {
        padding: 12px 14px;
        gap: 12px;
    }

    .dc-type {
        width: 42px;
        height: 42px;
    }

    .art-cover {
        margin-left: -16px;
        margin-right: -16px;
    }

    .art-cover img {
        border-radius: 0;
    }

    .art-body,
    .art-body .content-block p {
        font-size: 17px;
    }

    .bd-dialog-backdrop {
        align-items: flex-end;
        padding: 0;
    }

    .bd-dialog {
        border-radius: 26px 26px 0 0;
        max-height: 88vh;
        padding: 24px 20px 32px;
    }
}

/* styles.css gibt jedem <section> Innenabstand – hier nicht gewünscht */
.club-content section {
    padding: 0;
}

/* Abgedunkelter Hintergrund hinter dem geöffneten Menü */
body.nav-open::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(12, 16, 14, 0.35);
}

.bp-title,
.hm-next-title {
    overflow-wrap: break-word;
    hyphens: auto;
}

@media (max-width: 600px) {
    /* Ohne Bild steht das Datum schon in der Karte – keine leere Fläche */
    .hm-next-media.ev-card-media--empty {
        display: none;
    }
}


/* ---------------- Einheitliches 16:9-Bildformat ---------------- */

/* Termin-Detail: Titelbild in 16:9 statt 4:3 */
.evd-media {
    aspect-ratio: var(--media-ratio);
}

/* Königspaare: Rahmen in 16:9 statt fester Höhe (sonst wird das Bild auf
   schmalen Bildschirmen oben und unten beschnitten) */
.royal-couple-image-container {
    height: auto;
    aspect-ratio: var(--media-ratio);
}

/* Vorschaubild in der Terminliste */
.ev-row-thumb {
    width: 80px;
    height: auto;
    aspect-ratio: var(--media-ratio);
}

/* Vereinslogo als Ersatzbild im Vorstand (wie in der App) */
.bd-avatar .bd-avatar-logo {
    object-fit: cover;
    background: #FFFFFF;
}

/* ---------------- Termin: weitere Angaben aus der App ---------------- */

/* Bildnachweis (titleImageSource / titleImageCaption) */
.evd-media-credit {
    position: absolute;
    right: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #FFFFFF;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

/* Zugehörige Großveranstaltung */
.evd-major {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: -4px 0 16px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--tint);
    color: var(--color-text);
    font-size: 14px;
}

.evd-major[hidden] { display: none; }

.evd-major svg {
    width: 16px;
    height: 16px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.evd-ended {
    margin: -4px 0 16px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--line-soft);
    color: var(--color-text-secondary);
    font-size: 14px;
}

/* Mehrere Veranstalter */
.evd-org-logos {
    display: flex;
    flex-shrink: 0;
}

.evd-org-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: contain;
    background: #FFFFFF;
    border: 1px solid #E7E9EC;
    padding: 6px;
}

.evd-org-logo + .evd-org-logo {
    margin-left: -20px;
    box-shadow: -2px 0 0 var(--card-bg);
}

.evd-org-names {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 10px;
}

.evd-org-names a {
    color: inherit;
    text-decoration: none;
}

.evd-org-names a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.evd-org-names a:not(:last-child)::after {
    content: ' ·';
    color: var(--color-text-muted);
}

/* Wettervorhersage */
.club-content .evd-weather {
    margin: 24px 0 0;
    padding: 18px;
    border-radius: var(--r-card);
    background: var(--card-bg);
    border: 1px solid var(--line);
}

.evd-weather-head {
    display: flex;
    align-items: center;
    gap: 16px;
}

.evd-weather-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tint);
    color: var(--color-primary);
}

.evd-weather-icon svg {
    width: 28px;
    height: 28px;
}

.evd-weather-temp {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0 10px;
}

.evd-weather-temp span {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.evd-weather-hours {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.evd-weather-hour {
    flex: 0 0 auto;
    min-width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px;
    border-radius: 12px;
    background: var(--page-bg);
    font-size: 13px;
    color: var(--color-text-secondary);
}

.evd-weather-hour svg {
    width: 20px;
    height: 20px;
    color: var(--color-text);
}

.evd-weather-hour strong {
    color: var(--color-text);
    font-size: 15px;
}

.evd-weather-hour small {
    font-size: 11px;
    color: #2F6FB3;
}

.evd-weather-source {
    margin: 12px 0 0;
    font-size: 12px;
    color: var(--color-text-muted);
}

/* Die Grid-Spalte darf nicht mit dem Stundenstreifen mitwachsen */
.evd-main,
.evd-facts,
.evd-fact-text {
    min-width: 0;
}

@media (max-width: 900px) {
    /* Einspaltig (Flex): Spalten auf Containerbreite strecken, statt sie mit
       breitem Inhalt (z. B. Stundenstreifen) mitwachsen zu lassen */
    .evd {
        align-items: stretch;
    }
}
