/* ============================================
   fussidunier – neutrales Grunddesign
   ============================================ */

:root {
    --color-bg: #ffffff;
    --color-text: #1a1a1a;
    --color-muted: #6b6b6b;
    --color-border: #e4e4e4;
    --color-surface: #f7f7f7;
    --color-accent: #2c2c2c;        /* neutrales Dunkelgrau */
    --color-accent-hover: #000000;
    --color-cta: #1a1a1a;
    --max-width: 1200px;
    --radius: 6px;
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
            "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-hover); text-decoration: underline; }

h1, h2, h3 { line-height: 1.25; margin-top: 0; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 2rem; }
h3 { font-size: 1.2rem; }

/* ---------- Header ---------- */
.site-header {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    position: sticky; top: 0; z-index: 100;
}
.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.logo-schrift { max-height: 70px; width: auto; }

.main-nav ul {
    list-style: none;
    margin: 0; padding: 0;
    display: flex; gap: 0.5rem;
}
.main-nav a {
    display: block;
    padding: 0.6rem 1rem;
    border-radius: var(--radius);
    font-weight: 500;
    color: var(--color-text);
}
.main-nav a:hover { background: var(--color-surface); text-decoration: none; }
.main-nav a.active { background: var(--color-surface); }
.main-nav a.cta {
    background: var(--color-cta); color: #fff;
}
.main-nav a.cta:hover { background: #000; color: #fff; }

.nav-toggle {
    display: none;
    background: none; border: none;
    width: 40px; height: 40px;
    cursor: pointer; padding: 8px;
}
.nav-toggle span {
    display: block; height: 3px; width: 100%;
    background: var(--color-text); margin: 4px 0;
    border-radius: 2px; transition: 0.3s;
}

/* ---------- Main ---------- */
.site-main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 2.5rem 1.5rem;
    margin-top: 4rem;
}
.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}
.footer-socials {
    display: flex; justify-content: center;
    gap: 1.5rem; margin-bottom: 1.5rem;
    color: var(--color-text);
}
.footer-socials a { color: inherit; transition: color 0.2s; }
.footer-socials a:hover { color: var(--color-accent-hover); }

.footer-nav {
    display: flex; justify-content: center;
    gap: 2rem; margin-bottom: 1rem;
}
.footer-nav a { color: var(--color-muted); font-size: 0.95rem; }

.copyright { color: var(--color-muted); font-size: 0.9rem; margin: 0; }

/* ---------- Hilfsklassen ---------- */
.container-narrow { max-width: 750px; margin: 0 auto; }
.text-muted { color: var(--color-muted); }
.button {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    background: var(--color-cta);
    color: #fff !important;
    border-radius: var(--radius);
    font-weight: 600;
    transition: background 0.2s;
}
.button:hover { background: #000; text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: #fff;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow);
    }
    .main-nav.open { display: block; }
    .main-nav ul {
        flex-direction: column;
        padding: 1rem;
    }
    .logo-schrift { max-height: 50px; }
}

/* ============================================
   Radio-Button Fix für Safari & WebKit
   ============================================ */

/* 1. Reset der Browser-Standardstile für alle Browser */
input[type="radio"],
input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    
    /* Eigene Abmessungen definieren */
    width: 20px;
    height: 20px;
    
    /* Positionierung und Abstände */
    margin: 0;
    padding: 0;
    cursor: pointer;
    vertical-align: middle; /* Wichtig für Safari */
}

/* 2. Design für den Radio-Button (Kreis) */
input[type="radio"] {
    border: 2px solid var(--color-text);
    border-radius: 50%;
    background: #fff;
    position: relative;
}

/* 3. Design für den Checkbox-Kasten (optional, falls du Checkboxen auch nutzt) */
input[type="checkbox"] {
    border: 2px solid var(--color-text);
    border-radius: 4px;
    background: #fff;
}

/* 4. Der "aktive" Zustand (ausgewählt) */
input[type="radio"]:checked {
    border-color: var(--color-accent);
    background-color: var(--color-accent);
}

/* 5. Der innere Punkt beim Radio-Button (der kleine Kreis in der Mitte) */
input[type="radio"]::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff; /* Weißer Punkt */
    margin: 4px; /* Zentriert den Punkt im Kreis */
}

/* 6. Der Label-Text daneben */
.radio-group label,
.checkbox-group label {
    display: inline-flex; /* Flexbox für beste Ausrichtung */
    align-items: center; /* Vertikal zentrieren */
    gap: 0.5rem; /* Abstand zwischen Kreis und Text */
    font-weight: normal;
    cursor: pointer;
    line-height: 1.5; /* Bessere Lesbarkeit */
}

/* 7. Klick-Fläche erweitern (UX) */
.radio-group label::before,
.checkbox-group label::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* ============================================
   Social Media Icons auf der Startseite
   ============================================ */
.social-icons a {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90px;
    padding: 1rem;
    border-radius: 8px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-icons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: transparent;
}

.social-icons .icon-label {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    transition: color 0.2s;
}

/* Farbgebung der Icons */
.social-icons .facebook { color: #1877F2; } /* Offizielles Facebook Blau */
.social-icons .instagram { color: #E4405F; } /* Offizielles Instagram Rot/Pink */
.social-icons .email { color: #1A1A1A; } /* Neutral/Dunkel */

/* Hover-Farbe anpassen */
.social-icons a:hover .icon-label {
    color: currentColor; /* Text wird dunkel */
}
.social-icons a:hover.facebook { color: #1877F2; background: #e8f0fe; }
.social-icons a:hover.instagram { color: #E4405F; background: #fce8ea; }
.social-icons a:hover.email { color: #1A1A1A; background: #f0f0f0; }