.home-buttons{
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
    opacity:0;
    transform:translateY(30px);
    animation:fadeUp 1.2s .6s forwards;
}

#welcome-rotator{
    display:flex;
    width:100%;
    min-height:1.2em;
    align-items:center;
    justify-content:center;
    font-size:clamp(1.25rem, 6vw, 5.8rem);
    white-space:nowrap;
    opacity:1;
    transform:none;
    animation:none;
    transform-origin:center;
    backface-visibility:hidden;
}

#welcome-rotator.is-rotating-out{
    animation:welcomeRotateOut .45s ease-in forwards;
}

#welcome-rotator.is-rotating-in{
    animation:welcomeRotateIn .45s ease-out forwards;
}

@keyframes welcomeRotateOut{
    to{
        opacity:0;
        transform:perspective(800px) rotateX(90deg) scale(.96);
    }
}

@keyframes welcomeRotateIn{
    from{
        opacity:0;
        transform:perspective(800px) rotateX(-90deg) scale(.96);
    }
    to{
        opacity:1;
        transform:perspective(800px) rotateX(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce){
    #welcome-rotator.is-rotating-out,
    #welcome-rotator.is-rotating-in{
        animation:none;
    }
}

.card{
    background:white;
    padding:40px;
    border-radius:var(--radius);
    box-shadow:var(--shadow);
    transition:var(--transition);
}

.card:hover{
    transform:translateY(-10px);
}

.card h3{
    color:var(--primary);
    margin-bottom:20px;
}

.card p{
    line-height:1.7;
}

.section-title{
    text-align:center;
    margin-bottom:70px;
}

.section-title span{
    color:var(--gold);
    font-weight:600;
    letter-spacing:3px;
}

.section-title p{
    margin-top:15px;
    color:#666;
}

.event-grid{
    display:grid;
    grid-auto-rows:1fr;
    gap:30px;
}

.event-card{
    background:white;
    border-radius:18px;
    display:flex;
    overflow:hidden;
    box-shadow:var(--shadow);
    transition:var(--transition);
}

.event-card:hover{
    transform:translateY(-8px);
}

.event-card--past{
    background:#f4f5f6;
    border:1px solid #e1e4e8;
}

.event-card--past .event-content,
.event-card--past .event-content h3,
.event-card--past .event-content p,
.event-card--past .event-content .event-info{
    color:#73777c;
    filter:grayscale(100%);
}

.event-date.event-date--past{
    background:linear-gradient(to bottom right, #e2e2e2, #9797979c);
    color:#777;
}

.event-date--past span,
.event-date--past small{
    background:linear-gradient(to bottom right, #5c5c5ca4, #9b9b9ba4);
    background-clip:text;
    color:transparent;
    -webkit-background-clip:text;
}


.event-status{
    display:inline-block;
    margin-bottom:8px;
    padding:4px 8px;
    border:1px solid #d5d9de;
    border-radius:999px;
    background:#e9ecef;
    color:#4e555c;
    font-size:.75rem;
    font-weight:700;
    letter-spacing:.06em;
    line-height:1.2;
    text-transform:uppercase;
}

.event-date{
    min-width:130px;
    background:linear-gradient(180deg, var(--gold), var(--gold-hover));
    color:white;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
}

.event-date span{
    font-size:3rem;
    font-weight:700;
}

.event-date small{
    font-size:1rem;
    letter-spacing:2px;
}

.event-date .event-year{
    font-size:.875rem;
    letter-spacing:1px;
}

.event-content{
    padding:22px;
    flex:1;
}

.event-content h3{
    color:var(--primary);
    margin-bottom:10px;
}

.event-content p{
    line-height:1.7;
}

.event-info{
    display:flex;
    flex-wrap:wrap;
    gap:30px;
    margin-top:16px;
    color:#666;
}

.event-info > span{
    display:flex;
    align-items:flex-start;
    gap:.45em;
}

.event-info-icon{
    flex:0 0 auto;
}

.event-info-text{
    min-width:0;
}

.event-info-presale .event-info-text{
    max-width:280px;
}

.event-info-ticket-link{
    flex:0 0 auto;
}

.event-info a{
    color:inherit;
    font-size:1.1rem;
    font-weight:700;
    text-decoration:underline;
    text-underline-offset:2px;
}

.contact-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:30px;
    max-width:1040px;
    margin:0 auto;
    align-items:stretch;
}

.contact-card{
    background:white;
    padding:40px;
    border-radius:var(--radius);
    box-shadow:var(--shadow);
    text-align:center;
    transition:var(--transition);
    width:100%;
    max-width:none;
    box-sizing:border-box;
    min-width:0;
    display:flex;
    flex-direction:column;
    align-items:center;
}

.contact-card:hover{
    transform:translateY(-10px);
}

.contact-icon{
    font-size:3rem;
    margin-bottom:20px;
}

.contact-card h3{
    color:var(--primary);
    margin-bottom:20px;
}

.contact-card p{
    line-height:1.7;
    margin-bottom:25px;
    color:#666;
}

.contact-card a{
    color:var(--gold);
    font-weight:600;
    transition:.3s;
    display:inline-block;
    width:100%;
    max-width:100%;
    text-align:center;
    line-height:1.5;
    white-space:normal;
    overflow-wrap:anywhere;
    word-break:break-word;
    hyphens:auto;
}

.contact-card a:hover{
    color:var(--gold-hover);
}

.mitglied-form{
    width:min(820px, 100%);
    margin:0 auto;
    padding:36px;
    border:1px solid #eadfe0;
    border-radius:var(--radius);
    background:#fff;
    box-shadow:var(--shadow);
}

.mitglied-form h2{
    margin-bottom:28px;
    color:var(--primary);
    text-align:left;
}

.mitglied-form fieldset{
    min-width:0;
    padding:0;
    border:0;
}

.mitglied-form fieldset + fieldset{
    margin-top:30px;
}

.mitglied-form legend{
    width:100%;
    margin-bottom:18px;
    padding-bottom:10px;
    border-bottom:1px solid #eadfe0;
    color:var(--primary);
    font-size:1.1rem;
    font-weight:700;
}

.mitglied-form-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:18px 20px;
}

.mitglied-form-field{
    display:grid;
    grid-template-columns:minmax(0, 1fr);
    align-content:start;
    gap:7px;
    min-width:0;
}

.mitglied-form-field-wide{
    grid-column:1 / -1;
}

.mitglied-form-field label{
    color:#3d3030;
    font-size:.92rem;
    font-weight:600;
}

.mitglied-form-field input,
.mitglied-form-field textarea{
    width:100%;
    min-width:0;
    max-width:100%;
    min-height:48px;
    padding:11px 13px;
    border:1px solid #cfc4c5;
    border-radius:6px;
    background:#fff;
    color:var(--text);
    font:inherit;
    transition:border-color .2s ease, box-shadow .2s ease;
}

.mitglied-form-field textarea{
    min-height:150px;
    resize:vertical;
}

.mitglied-form-field input:focus-visible,
.mitglied-form-field textarea:focus-visible{
    border-color:var(--primary);
    outline:0;
    box-shadow:0 0 0 3px rgba(122,15,24,.14);
}

.mitglied-form-field input[type="date"]{
    display:block;
    box-sizing:border-box;
    -webkit-appearance:none;
    appearance:none;
}

.mitglied-form-field input[type="date"]::-webkit-date-and-time-value{
    min-width:0;
    text-align:left;
}

.mitglied-form-choice{
    display:grid;
    grid-template-columns:1fr;
    gap:16px;
}

.mitgliedschaft-option{
    display:grid;
    grid-template-columns:auto minmax(0, 1fr);
    align-content:start;
    align-items:start;
    gap:8px 10px;
    cursor:pointer;
}

.mitgliedschaft-option:has(input[type="radio"]:focus-visible){
    outline:3px solid rgba(122,15,24,.25);
    outline-offset:2px;
}

.mitgliedschaft-option input[type="radio"]{
    grid-row:span 2;
    width:20px;
    min-height:20px;
    margin:1px 0 0;
    padding:0;
    border:0;
    accent-color:var(--text);
    cursor:pointer;
}

.mitgliedschaft-option-title{
    color:var(--text);
    font-weight:700;
}

.mitglied-form-consent{
    grid-column:1 / -1;
    grid-template-columns:auto minmax(0, 1fr);
    align-items:start;
    gap:14px;
    padding:18px 20px;
    border:1px solid #eadfe0;
    border-radius:10px;
    background:linear-gradient(135deg, #fff 0%, #fcf8f5 100%);
    transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.mitglied-form-consent:hover{
    border-color:#d7b7b9;
    box-shadow:0 6px 18px rgba(68, 30, 34, .08);
    transform:translateY(-1px);
}

.mitglied-form-consent input[type="checkbox"]{
    width:20px;
    min-height:20px;
    margin:2px 0 0;
    padding:0;
    accent-color:var(--primary);
    cursor:pointer;
}

.mitglied-form-consent input[type="checkbox"]:focus-visible{
    outline:3px solid rgba(122,15,24,.25);
    outline-offset:3px;
}

.mitglied-form-consent label{
    color:#514447;
    font-size:.9rem;
    font-weight:400;
    line-height:1.65;
    cursor:pointer;
}

.mitglied-form-note{
    margin:-6px 0 18px;
    color:#655a5b;
    line-height:1.6;
}

.mitglied-form button{
    display:flex;
    justify-content:center;
    width:100%;
    min-height:52px;
    margin-top:30px;
    padding:13px 22px;
    border:0;
    border-radius:6px;
    background:var(--primary);
    color:#fff;
    font:inherit;
    font-weight:700;
    cursor:pointer;
    transition:background-color .2s ease, transform .2s ease;
}

.mitglied-form button:hover{
    background:var(--gold-hover);
    transform:translateY(-2px);
}

.mitglied-form button:focus-visible{
    outline:3px solid var(--gold);
    outline-offset:3px;
}

.contact-form{
    position:relative;
    margin:40px auto 0;
}

.form-honeypot{
    position:absolute;
    width:1px;
    height:1px;
    margin:-1px;
    padding:0;
    overflow:hidden;
    clip:rect(0, 0, 0, 0);
    white-space:nowrap;
    border:0;
}

.contact-response-page{
    min-height:100vh;
    display:grid;
    place-items:center;
    padding:24px;
    background:
        radial-gradient(ellipse at 15% 20%, rgba(163,22,33,.08), transparent 38%),
        radial-gradient(ellipse at 85% 80%, rgba(191,36,52,.08), transparent 36%),
        var(--light);
}

.contact-response-card{
    width:min(620px, 100%);
    padding:clamp(28px, 6vw, 52px);
    border-radius:var(--radius);
    background:var(--white);
    box-shadow:var(--shadow);
    text-align:center;
}

.contact-response-icon{
    width:76px;
    height:76px;
    display:grid;
    place-items:center;
    margin:0 auto 24px;
    border-radius:50%;
}

.contact-response-card--success .contact-response-icon{
    background:#e9f6ec;
    color:#267343;
}

.contact-response-card--error .contact-response-icon{
    background:#fbebec;
    color:var(--primary);
}

.contact-response-icon svg{
    width:42px;
    height:42px;
    fill:none;
    stroke:currentColor;
    stroke-linecap:round;
    stroke-linejoin:round;
    stroke-width:3;
}

.contact-response-card h1{
    margin-bottom:16px;
    color:var(--primary);
    font-size:clamp(1.7rem, 5vw, 2.4rem);
    line-height:1.2;
}

.contact-response-card p{
    margin-bottom:28px;
    color:#555;
    line-height:1.75;
}

.contact-response-link{
    display:inline-flex;
    justify-content:center;
    align-items:center;
    min-height:50px;
    padding:12px 22px;
    border-radius:6px;
    background:var(--primary);
    color:var(--white);
    font-weight:700;
    transition:background-color .2s ease, transform .2s ease;
}

.contact-response-link:hover{
    transform:translateY(-2px);
    background:var(--secondary);
}

.contact-response-link:focus-visible{
    outline:3px solid var(--gold);
    outline-offset:3px;
}

@media (max-width:1010px){
    .event-card{
        flex-direction:column;
    }

    .event-date{
        min-width:100%;
        padding:25px;
    }

    .event-info{
        flex-direction:column;
        gap:10px;
    }
}

@media (max-width:700px){
    .event-grid{
        grid-auto-rows:auto;
    }

    .home-buttons{
        flex-direction:column;
        align-items:center;
    }

    .contact-grid{
        grid-template-columns:1fr;
        gap:20px;
    }

    .contact-card{
        padding:24px 20px;
        max-width:100%;
    }

    .mitglied-form{
        padding:26px 22px;
    }

    .contact-card h3{
        font-size:1.15rem;
        margin-bottom:15px;
    }

    .contact-card p{
        margin-bottom:18px;
        font-size:0.95rem;
    }

    .contact-card a{
        font-size:0.95rem;
    }
}

@media (max-width:450px){
    .mitglied-form{
        padding:22px 16px;
    }

    .mitglied-form-grid{
        grid-template-columns:1fr;
    }

    .mitglied-form-choice{
        grid-template-columns:1fr;
    }

    .mitglied-form-field-wide{
        grid-column:auto;
    }

    .contact-card{
        padding:20px 16px;
    }

    .contact-card a{
        font-size:0.9rem;
    }
}