:root {
    --blue-dark: #FFFFFF;
    --blue-mid: #234f9d;
    --blue-light: #e9f1ff;
    --white: #0d1b3d;
    --shadow: 0 6px 20px rgba(0,0,0,0.25);
    --overlay: rgba(0,0,0,0.4);
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background: var(--blue-light);
    color: #103552;
}

/* =================== HEADER =================== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    background: var(--blue-dark);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 20px;
    box-shadow: var(--shadow);
    z-index: 1000;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo { height: 45px; }
.site-title { color: var(--white); font-size: 1.4rem; font-weight: 600; }

/* =================== DESKTOP NAV =================== */
.nav-desktop {
    display: flex;
    gap: 25px;
    margin-left: 60px;
    flex-shrink: 0;
}


/*neu anfang*/

/* Aktiver Menüpunkt Desktop */
.nav-desktop a.active {
    position: relative;
    color: #234f9d; /* z. B. Blau */
    font-weight: 700; /* optional stärker */
}

/* Optional: kleiner Balken unten */
.nav-desktop a.active::after {
    content: "";
    position: absolute;
    bottom: -5px; /* Abstand unter dem Text */
    left: 0;
    width: 100%;
    height: 3px;
    background: #234f9d;
    border-radius: 2px;
}





/*neu ende */

.nav-desktop a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    white-space: nowrap;
}

.nav-desktop a:hover { opacity: 0.7; }

/* =================== HAMBURGER =================== */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 35px;
    height: 26px;
    background: none;
    border: none;
    z-index: 1102; /* über Overlay */
    margin-left: auto;
    margin-right: 40px;
}

.hamburger .bar {
    height: 4px;
    width: 100%;
    background: #639BCA;
    border-radius: 2px;
    transition: 0.3s;
}

.hamburger.open .bar:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger.open .bar:nth-child(2) { opacity: 0; }
.hamburger.open .bar:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* =================== MOBILE NAV =================== */
.nav-mobile-wrapper {
    position: fixed;
    top: 70px; /* unter Header */
    left: 0;
    width: 100%;
    height: calc(100% - 70px);
    display: none;
    z-index: 1100;
}

.nav-mobile-wrapper.active {
    display: block;
}

/* Overlay */
.nav-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(4px);
    z-index: 1101; /* unter Menü */
}

/* Menü */
.nav-mobile {
    position: absolute;
    top: 0;
    right: 0;
    width: 75%;
    max-width: 320px;
    height: 100%;
    background: #639BCA; /* neue Farbe */
    display: flex;
    flex-direction: column;
    padding: 40px 30px;
    gap: 20px;
    box-shadow: -6px 0 25px rgba(0,0,0,0.3);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.77,0,0.175,1);
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    z-index: 1102;
}

/* Menü aktiv */
.nav-mobile-wrapper.active .nav-mobile {
    transform: translateX(0);
}

/* Menü-Links: modern & stylisch */
.nav-mobile a {
    color: #103552;
    font-size: 1.4rem;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 15px;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.25s ease;
    opacity: 0;
    transform: translateX(20px);
    position: relative;
}

/* Hover-Effekt: Balken + Schatten */
.nav-mobile a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: #103552;
    border-radius: 2px;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-mobile a:hover::before {
    transform: scaleY(1);
}

.nav-mobile a:hover {
    background: rgba(255,255,255,0.25);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}


/* neu */

/* Aktiver Link Mobile */
.nav-mobile a.active::before {
    transform: scaleY(1); /* Balken links sichtbar */
}

.nav-mobile a.active {
    color: #234f9d;      /* Text blau */
    font-weight: 700;     /* optional fett */
    background: rgba(255,255,255,0.15); /* leichtes Hintergrundhighlight optional */
}



/*neu ende */

/* Slide-in Animation */
.nav-mobile-wrapper.active .nav-mobile a {
    animation: slideIn 0.35s forwards;
}

.nav-mobile a:nth-child(1) { animation-delay: 0.05s; }
.nav-mobile a:nth-child(2) { animation-delay: 0.10s; }
.nav-mobile a:nth-child(3) { animation-delay: 0.15s; }
.nav-mobile a:nth-child(4) { animation-delay: 0.20s; }
.nav-mobile a:nth-child(5) { animation-delay: 0.25s; }
.nav-mobile a:nth-child(6) { animation-delay: 0.30s; }
.nav-mobile a:nth-child(7) { animation-delay: 0.35s; }

@keyframes slideIn {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* =================== HERO =================== */
.hero {
    margin-top: 25px;
    height: 45vh;
    background: linear-gradient(125deg, var(--blue-dark), var(--blue-mid));
    color: var(--white);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.hero h1 { font-size: 2.5rem; margin-bottom: 10px; }
.hero p { font-size: 1.2rem; margin-bottom: 20px; }

.cta-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #639BCA;
    color: var(--blue-dark);
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* =================== SECTIONS =================== */
.section {
    max-width: 900px;
    margin: 50px auto;
    padding: 0 20px;
    text-align: center;
}

.section h2 {
    font-size: 2rem;
    color: #639BCA;
    margin-bottom: 15px;
}

.section p {
    font-size: 1.1rem;
    color: #333;
}

.candidates {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.candidate-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 20px;
    width: 220px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.candidate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.candidate-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid #639BCA;
}

.candidate-card h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #234f9d;
}

.candidate-card p {
    font-size: 1rem;
    color: #103552;
}

.goals {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.goal-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px;
    width: 250px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.goal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.goal-card i {
    color: #639BCA;
    margin-bottom: 15px;
}

.goal-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #234f9d;
}

.goal-card p {
    font-size: 1rem;
    color: #103552;
}

.home-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.home-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px;
    width: 250px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-decoration: none;
    color: #103552;
    transition: transform 0.2s, box-shadow 0.2s;
}

.home-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.home-card i {
    color: #639BCA;
    margin-bottom: 15px;
}

.home-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #234f9d;
}

.home-card p {
    font-size: 1rem;
    color: #103552;
}
/* =================== KANDIDATEN-GRUPPE =================== */
.candidate-photo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.candidate-photo {
    width: 90%;
    max-width: 1000px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    object-fit: cover;
}

/* Namen unter dem Bild */
.candidate-names {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    font-weight: 600;
    color: #103552;
    font-size: 1rem;
}

.candidate-names span {
    text-align: center;
}

/* Responsive */
@media (max-width: 600px) {
    .candidate-photo {
        width: 100%;
    }
    .candidate-names {
        gap: 15px;
        font-size: 0.9rem;
    }
}

/* =================== FORMULAR =================== */
.mitglied-form {
    background: #ffffff;
    padding: 30px 40px;
    border-radius: 15px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 18px;
    font-size: 1rem;
    color: var(--blue-mid);
    transition: transform 0.2s, box-shadow 0.2s;
    box-sizing: border-box; /* sorgt dafür, dass Padding + Border nicht die Breite sprengen */
}

.mitglied-form:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.mitglied-form h3 {
    font-size: 1.4rem;
    margin-top: 15px;
    margin-bottom: 10px;
    color: var(--blue-mid);
    text-align: left;
}

.mitglied-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--blue-mid);
}

.mitglied-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #cdd6e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.25s ease;
    outline: none;
    box-sizing: border-box; /* hier unbedingt setzen */
}

.mitglied-form input:focus {
    border-color: #234f9d;
    box-shadow: 0 4px 12px rgba(35,79,157,0.2);
    background: #f5faff;
}

.mitglied-form input[type="date"] {
    padding-right: 10px; /* Datumspicker schöner */
}

/*
.mitglied-form button.cta-btn {
    margin-top: 20px;
    align-self: flex-start;
    background: var(--blue-mid);
    color: var(--white);
    font-weight: 600;
    border-radius: 10px;
    padding: 12px 25px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.mitglied-form button.cta-btn:hover {
    background: #1b3a82;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
*/

/* Placeholder Styling */
.mitglied-form input::placeholder {
    color: #a0aec0;
}

/* Responsive */
@media (max-width: 650px) {
    .mitglied-form {
        padding: 20px; /* kleineres Padding für Mobile */
    }

    .mitglied-form input {
        font-size: 0.95rem; /* optional, damit alles reinpasst */
    }
}



/* =================== RESPONSIVE =================== */
@media (max-width: 900px) {
    .nav-desktop { display: none; }
    .hamburger { display: flex; }
}
