/* ====== Design Tokens ====== */
:root {
    --bg: #f7f7f8;
    --surface: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --brand: #cb0c21;
    --brand-700: #b70b1e;
    --shadow: 0 10px 30px rgba(0,0,0,.08);
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 10px;
}

/* ====== Base Styles ====== */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: Inter, Roboto, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}
.container {
    width: min(1120px, 92vw);
    margin-inline: auto;
}

/* ====== Header Styles ====== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.8);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid rgba(229,231,235,.7);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    padding: 10px 0;
}
.brand-logo {
    display: block;
    height: 48px;
    width: auto;
}

/* Desktop-Navigation (gemeinsam genutzte Stile) */
.main-nav .nav-list {
    display: flex;
    gap: clamp(12px, 2vw, 28px);
    list-style: none;
    padding: 0;
    margin: 0;
}
.main-nav a {
    display: inline-block;
    padding: 10px 4px;
    font-weight: 500;
    color: #111827;
    position: relative;
}
.main-nav a:is(:hover, :focus-visible) {
    color: var(--brand);
}
.main-nav a.is-active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 2px;
    height: 3px; border-radius: 2px;
    background: var(--brand);
}

/* Hamburger-Button (standardmäßig versteckt) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    padding: 6px 8px;
    cursor: pointer;
}

/* ====== Mobile: Hamburger-Menü ====== */
@media (max-width: 768px) {
    /* Button sichtbar machen */
    .nav-toggle {
        display: block;
    }

    /* Mobile-Menü schwebt unter dem Header, Standard: versteckt */
    .site-header { position: sticky; }
    .main-nav {
        display: none;                 /* wird via .active ein-/ausgeblendet */
        position: absolute;
        top: 100%;                     /* direkt unter dem Header */
        left: 0;
        right: 0;
        background: var(--surface);
        border-top: 1px solid var(--line);
        box-shadow: var(--shadow);
        padding: 10px 0;
    }
    .main-nav.active { display: block; }

    /* Liste untereinander statt nebeneinander */
    .main-nav .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 0;
        margin: 0;
    }
    .main-nav .nav-list li {
        border-bottom: 1px solid var(--line);
    }
    .main-nav .nav-list li:last-child {
        border-bottom: none;
    }

    /* Links im mobilen Menü: gleiches Look & Feel wie Desktop */
    .main-nav .nav-list a {
        display: block;                /* ganze Zeile klickbar */
        padding: 12px 20px;            /* entspricht „Menüpunkt“-Gefühl */
        font-weight: 500;
        color: #111827;
        text-align: left;
        position: relative;
    }
    .main-nav .nav-list a:is(:hover, :focus-visible) {
        color: var(--brand);
    }
    .main-nav .nav-list a.is-active::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        height: 3px;
        width: 100%;
        background: var(--brand);
        border-radius: 2px;
    }

    /* Im Mobile-Layout etwas weniger Platzbedarf im Header */
    .brand-logo { height: 42px; }
    .header-inner { min-height: 60px; }
}

/* ====== Footer Styles ====== */
.site-footer {
    margin-top: 40px;
    color: #eef2f7;
    background: #212935;
    border-top: 1px solid #111827;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 22px;
    text-align: center;
    justify-items: center;
    padding: clamp(22px, 4vw, 34px) 0;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-title { font-weight: 700; font-size: 1.05rem; margin: 0; }
.footer-address { font-style: normal; margin: 0; color: #cdd6e1; }
.twint-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid rgba(0,0,0,.18);
    border-radius: 12px;
    padding: 6px 10px;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}
.twint-btn:hover { background: rgba(255,255,255); border-color: rgba(255,255,255,.35); }
.support-text { margin: 8px 0 0 0; color: #cdd6e1; }
.social-icons { display: flex; gap: 10px; justify-content: center; }
.social-link {
    display: inline-flex;
    width: 36px; height: 36px;
    align-items: center; justify-content: center;
    color: #eef2f7;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.social-link svg {
    width: 20px;
    height: 20px;
    display: block;         /* remove inline whitespace */
}
.social-link svg,
.social-link svg path {
    fill: currentColor;     /* inherit from .social-link */
}
.social-link:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.35); color: #fff; }
.login-link {
    display: inline-block;
    align-self: flex-start;
    margin-top: 6px;
    padding: 8px 14px;
    background: #374151;
    color: #fff;
    border-radius: 10px;
    transition: background .15s ease;
}
.login-link:hover { background: #4b5563; }
.footer-base {
    border-top: 1px solid rgba(255,255,255,.08);
    background: #111827;
    color: #cbd5e1;
    font-size: .95rem;
}
.base-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
}
.footer-nav a { color: #cbd5e1; }
.footer-nav a:hover { color: #fff; }
.sep { opacity: .6; margin: 0 8px; }

.site-footer {
    margin-top: 40px;
    color: #eef2f7;
    background: rgb(33 41 53);
    border-top: 1px solid #111827;
}

.footer-base {
    border-top: 1px solid rgba(255,255,255,.08);
    background: #111827;
    color: #cbd5e1;
    font-size: .95rem;
}

.site-footer .footer-grid {
    background: rgb(33 41 53) !important;
}