:root {
    --primary: #b1121a;
    --primary-soft: #910e15;
    --dark: #111827;
    --gray: #6b7280;
    --bg: #f3f4f6;
    --text: #1f2937;
    --muted: #6b7280;
    --glass: rgba(255, 255, 255, 0.65);
    --border: rgba(0, 0, 0, 0.08);
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: transparent;
    min-height: 100vh;
}

.brushed-steel {
    background:
        /* Der Glanzeffekt */
        linear-gradient(135deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 60%),
        /* Die gebürstete Textur */
        repeating-linear-gradient(80deg, #ccc 0.2px, #ccc 0.2px, #bbb 0.2px, #bbb 0.2px);
}

a {
    color: var(--primary);
    text-decoration: underline;
}

.wrap {
    max-width: 1100px;
    margin: auto;
    padding: 2rem;
}

header {
    position: sticky;
    top: 1rem;
    z-index: 1000;
    margin: 1.5rem 1.5rem;
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: var(--shadow);
}

header img {
    height: 60px;
}

.header-logo {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.menubar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.menubar a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

/* Der Hamburger-Button Grundzustand */
.menu-toggle {
    display: none;
    /* Desktop weg */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    z-index: 1003;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #b1121a;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* X-Animation */
.menu-toggle.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width:768px) {
    .menu-toggle {
        display: flex;
        visibility: visible;
    }

    /* Das aufgeklappte Menü als Fullscreen Slide-In */
    .menubar {
        display: flex;
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: var(--glass);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1001;
        transition: left 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        margin: 0;
    }

    .menubar.active {
        left: 0;
    }

    header.squared {
        border-radius: 999px;
        /* Keeping round on mobile too */
    }

    .hero-branding {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .hero-text {
        text-align: center;
    }

    .hero-logo {
        max-width: 220px;
    }

    .menubar a {
        font-size: 2rem;
        color: #000;
        margin: 15px 0;
        text-decoration: none;
        text-transform: uppercase;
        font-weight: 900;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease-out;
    }

    /* Links nacheinander einblenden */
    .menubar.active a {
        opacity: 1;
        transform: translateY(0);
    }

    .menubar.active a:nth-child(1) {
        transition-delay: 0.1s;
    }

    .menubar.active a:nth-child(2) {
        transition-delay: 0.2s;
    }

    .menubar.active a:nth-child(3) {
        transition-delay: 0.3s;
    }

    .menubar.active a:nth-child(4) {
        transition-delay: 0.4s;
    }

    .menubar.active a:nth-child(5) {
        transition-delay: 0.5s;
    }
}

section {
    padding: 4rem 0;
}

/* HERO SECTION */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 0;
    text-align: center;
}

.hero-content {
    max-width: 1100px;
    width: 100%;
}

.hero-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.hero-logo {
    max-width: 350px;
    width: 100%;
    flex-shrink: 0;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.1));
    margin-bottom: 1rem;
}

.hero-text {
    text-align: center;
    max-width: 800px;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--dark);
}

h1 span {
    color: var(--primary);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 0;
}

.cta-wrapper {
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2.4rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-soft));
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.05rem;
    box-shadow:
        0 15px 35px rgba(177, 18, 26, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    border: none;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow:
        0 20px 45px rgba(177, 18, 26, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.grid {
    display: grid;
    gap: 1.8rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    padding: 2.2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: default;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-link .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

/* CONTACT FORM */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.5);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(177, 18, 26, 0.1);
}

.success-message {
    border-left: 5px solid #10b981;
}

.error-message {
    border-left: 5px solid var(--primary);
    color: var(--primary);
}

.secondary-field {
    position: absolute;
    top: -9999px;
    left: -9999px;
    opacity: 0;
}

footer {
    text-align: center;
    font-size: 0.95rem;
    color: var(--muted);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}

footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

.member {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    padding: 2.2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    transition: transform 0.25s ease;
}

.member:hover {
    transform: translateY(-5px);
}

.member h3 {
    margin-bottom: 0.6rem;
    color: var(--primary);
    font-size: 1.4rem;
}

.member p {
    margin-bottom: 0.3rem;
    color: var(--muted);
}

section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-align: center;
    letter-spacing: -0.01em;
}

/* CAPTCHA STYLES */
.captcha-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#captcha-img {
    height: 50px;
    width: 160px;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: block;
    background: #f5f5f5;
}

.btn-reload {
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--primary);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.btn-reload:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--primary);
    transform: rotate(30deg);
}

.btn-reload:active {
    transform: rotate(180deg);
}

.captcha-input {
    max-width: 218px;
    text-transform: lowercase;
}