.forms-hero {
    text-align: center;
    padding: clamp(120px, 12vw, 160px) 0 clamp(60px, 8vw, 100px) !important; /* mehr Top-Padding für Navigation */
    position: relative;
    background-color: #243E5D;
    background-image: url('marienplatz-1920.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
    min-height: auto !important;
    height: auto !important;
}

/* ========= LEGAL SEITEN (Impressum, Datenschutz, AGB) ========= */
/* Gleiche vertikale Einrückung wie Formulare, damit H1 unter fester Navbar bündig sitzt */
.legal-page {
    padding: clamp(120px, 12vw, 160px) 0 clamp(60px, 8vw, 100px);
}

/* Bottom decoration for legal pages */
.legal-bottom-deco { position: relative; min-height: 160px; background:#ffffff; overflow:hidden; }
.legal-wave-bottom { position:absolute; inset:0; display:flex; align-items:flex-end; justify-content:center; pointer-events:none; opacity:.35; mix-blend-mode:normal; }
.legal-wave-img { position:absolute; left:0; bottom:0; width:100%; height:auto; max-width:none; transform:translateY(8%); filter:blur(0.5px); }
.legal-bottom-deco .hero-munich-lines { position:absolute; left:0; right:0; bottom:0; z-index:2; }
.legal-bottom-deco .munich-lines-svg { height: clamp(50px, 7vw, 100px); width:auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08)); }
.legal-bottom-deco .munich-lines-reflection { opacity:.28; filter: blur(0.5px); }
.legal-bottom-deco .hero-mitglied-badge { position:absolute; right: clamp(12px, 2vw, 24px); bottom: 0; z-index:3; }
.legal-bottom-deco .mitglied-badge-svg { height: clamp(42px, 6vw, 80px); width:auto; filter: drop-shadow(0 3px 8px rgba(0,0,0,0.15)); }

/* merged ≤480px legal-deco rules into the main ≤480px block */

/* Formulare Header zentriert stylen */
.forms-header {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    margin-bottom: clamp(40px, 6vw, 60px);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.forms-header h1 {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 0.2),
        0 2px 12px rgba(0, 0, 0, 0.4);
    overflow-wrap: break-word;
    word-break: break-word;
}

.forms-header h2 {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 400;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0.95;
    overflow-wrap: break-word;
    word-break: break-word;
}

.forms-header p {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.6;
    color: #ffffff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
    margin-bottom: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.forms-groups {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: clamp(22px, 3vw, 30px);
}

.forms-group {
    width: 100%;
    max-width: min(1120px, 100%);
    margin: 0 auto;
}

.forms-group-title {
    margin: 0 0 14px;
    font-family: 'Barlow', sans-serif;
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: left;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

/* Formulare im Hero-Bereich speziell stylen */
.forms-hero .forms-grid {
    z-index: 10;
    position: relative;
}


.forms-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    max-width: min(1120px, 100%);
    margin: 0 auto;
    align-items: stretch;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 24px -8px rgba(17,45,78,0.12);
}

.form-item {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: clamp(16px, 2vw, 22px);
    padding: clamp(35px, 4vw, 50px);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    text-align: center;
    transform: translateY(0);
    position: relative;
    min-height: 280px;
}

.form-item-dark {
    background: rgba(17, 45, 78, 0.65);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e8eef6;
    box-shadow: 0 8px 32px rgba(17, 45, 78, 0.2);
}

.form-item-light {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #2d3338;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
}

/* Keine orangenen Dots mehr */
.form-item::before {
    display: none;
}

.form-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(16px);
    background-color: rgba(255, 255, 255, 0.85);
}

.form-item-dark:hover {
    background-color: rgba(17, 45, 78, 0.75);
}

.form-item-dark .form-info h4 {
    color: #ffffff;
}

.form-item-dark .form-info p {
    color: #e8eef6;
}

.form-item-light .form-info h4 {
    color: #2d3338;
}

.form-item-light .form-info p {
    color: #5d646b;
}

.form-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: clamp(12px, 1.6vw, 18px);
    flex: 1;
    align-items: center;
    text-align: center;
    width: 100%;
}

.form-icon {
    font-size: 2.5rem;
    min-width: 60px;
    text-align: center;
}

.form-item-dark .form-icon {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.form-item-light .form-icon {
    background: linear-gradient(135deg, var(--clr-primary-600), var(--clr-primary-light), var(--clr-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-info h4 {
    font-family: 'Barlow', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    margin-top: 0;
    text-align: center;
    position: relative;
    padding-bottom: 0;
}

/* Entferne Unterstrich */
.form-info h4::after {
    display: none;
}

.form-info p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    text-align: center;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: clamp(12px, 1.6vw, 14px) clamp(22px, 2.4vw, 26px);
    background: rgba(var(--clr-primary-rgb), 0.92);
    backdrop-filter: blur(10px);
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 32px rgba(16, 27, 41, 0.24);
    margin-top: clamp(10px, 1.4vw, 16px);
    align-self: center;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(16, 27, 41, 0.3);
    background: rgba(28, 50, 74, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.download-btn::after {
    content: '\2197';
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Mobile Anpassungen für Formulare */
@media (max-width: 768px) {
    .forms-hero {
        padding: clamp(140px, 15vw, 180px) 0 clamp(60px, 8vw, 100px) !important;
    }

    .forms-groups {
        gap: 18px;
    }

    .forms-group-title {
        margin-bottom: 10px;
        text-align: center;
    }
    
    .forms-header {
        max-width: 100%;
        margin-bottom: clamp(30px, 5vw, 50px);
    }
    
    .forms-grid {
        grid-template-columns: 1fr;
        gap: 0;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .forms-grid .form-item {
        flex-direction: column;
        text-align: center;
        gap: clamp(14px, 6vw, 20px);
        min-height: auto;
        height: auto;
        padding: clamp(28px, 6vw, 40px) clamp(20px, 5vw, 30px);
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }
    
    .forms-grid .form-item:last-child {
        border-bottom: none;
    }
    
    .form-info {
        align-items: center;
        text-align: center;
        gap: clamp(10px, 5vw, 18px);
    }

    .form-info h4,
    .form-info p {
        text-align: center;
        width: 100%;
    }
    
    .form-icon {
        align-self: center;
    }

    .download-btn {
        align-self: center;
    }
}

/* Removed unused .forms-content mobile overrides */

/* ========= COOKIE BANNER ========= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(160deg, rgba(17, 45, 78, 0.95) 0%, rgba(17, 45, 78, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(42, 113, 255, 0.2);
    padding: clamp(20px, 4vw, 30px) clamp(20px, 3vw, 30px);
    z-index: 999;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.5s ease-out forwards;
    transform: translateY(100%);
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

.cookie-banner.hidden {
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(20px, 4vw, 40px);
}

.cookie-text {
    flex: 1;
}

.cookie-title {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.cookie-message {
    font-size: clamp(0.9rem, 1.4vw, 1rem);
    color: #d4dce8;
    margin: 0;
    line-height: 1.5;
}

.cookie-link {
    color: var(--clr-accent-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.cookie-link:hover {
    color: #f3ece3;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: clamp(12px, 2vw, 16px);
    flex-wrap: wrap;
    flex-shrink: 0;
}

.cookie-btn {
    padding: clamp(10px, 1.5vw, 12px) clamp(18px, 2.5vw, 24px);
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, rgba(var(--clr-primary-rgb), 0.95) 0%, rgba(28, 50, 74, 0.92) 100%);
    color: #ffffff;
    border: 1px solid rgba(var(--clr-accent-rgb), 0.38);
    box-shadow: 0 4px 12px rgba(16, 27, 41, 0.24);
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, rgba(28, 50, 74, 1) 0%, rgba(21, 37, 55, 0.96) 100%);
    box-shadow: 0 6px 16px rgba(16, 27, 41, 0.28);
    transform: translateY(-2px);
}

.cookie-btn-info {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cookie-btn-info:hover {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* Mobile responsive cookie banner */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: clamp(16px, 3vw, 24px);
    }
    
    .cookie-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }
}
