/* =========================================================
   BTMF Portal – Winter Glassmorphism Design (DSGVO-konform)
   ========================================================= */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --glass-bg: rgba(15, 23, 42, 0.56);
    --glass-bg-hover: rgba(30, 41, 59, 0.72);
    --glass-border: rgba(255, 255, 255, 0.22);
    --glass-border-hover: rgba(255, 255, 255, 0.45);
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --accent-gold: #fbbf24;
    --accent-ice: #38bdf8;
    --shadow-glass: 0 12px 36px rgba(0, 0, 0, 0.45);
}

html, body {
    min-height: 100%;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
}

body {
    background-color: #0b1324;
    background-image:
        linear-gradient(180deg, rgba(8, 14, 28, 0.42) 0%, rgba(8, 14, 28, 0.68) 100%),
        url('img/hintergrund-winter.jpeg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
}

.wrapper {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 2.2rem 1.25rem 3rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

/* --- Glassmorphism Basis --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    box-shadow: var(--shadow-glass);
}

/* --- Große Hero-Kachel oben --- */
.hero-card {
    padding: 2.4rem 2.2rem;
    text-align: center;
    position: relative;
}

.hero-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--accent-gold);
}

/* Sprachauswahl für btmf.eu */
.lang-form {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-form label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.lang-select {
    appearance: none;
    background: rgba(15, 23, 42, 0.78);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.45rem 0.9rem;
    font-size: 0.92rem;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.lang-select:hover,
.lang-select:focus {
    border-color: var(--accent-ice);
    background: rgba(30, 41, 59, 0.92);
}

.hero-card h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.hero-card p {
    max-width: 760px;
    margin: 0 auto;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--text-muted);
}

.season-note {
    margin-top: 1.1rem;
    display: inline-block;
    padding: 0.35rem 0.95rem;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.14);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: #fde68a;
    font-size: 0.88rem;
}

/* --- 4 Domain-Kacheln darunter --- */
.domains-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem;
}

@media (max-width: 780px) {
    .domains-grid {
        grid-template-columns: 1fr;
    }
    .hero-card {
        padding: 1.8rem 1.35rem;
    }
}

.domain-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.75rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.domain-card:hover {
    transform: translateY(-4px);
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55);
}

.domain-card.is-current {
    border-color: rgba(251, 191, 36, 0.55);
    box-shadow: 0 12px 36px rgba(251, 191, 36, 0.14);
}

.domain-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.domain-title {
    font-size: 1.45rem;
    font-weight: 750;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.domain-tag {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.16);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #bae6fd;
    white-space: nowrap;
}

.domain-card.is-current .domain-tag {
    background: rgba(251, 191, 36, 0.18);
    border-color: rgba(251, 191, 36, 0.45);
    color: #fde68a;
}

.domain-desc {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin-bottom: 1.35rem;
}

.domain-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent-ice);
}

.domain-card:hover .domain-cta {
    color: #7dd3fc;
}

/* --- Footer --- */
.site-footer {
    margin-top: auto;
    padding: 1.15rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-main);
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-gold);
}