/* Anfrage-Seite: einfaches Formular in 3 Schritten */
.af-kopf {
    position: relative;
    overflow: hidden;
    padding: 80px 20px 120px;
    text-align: center;
    color: #fff;
    background: radial-gradient(1200px 400px at 50% -10%, rgba(229, 57, 53, 0.35), transparent 60%), linear-gradient(135deg, #141414, #2a2a2a);
}
.af-kopf::after {
    content: '';
    position: absolute;
    inset: auto -10% -60px;
    height: 120px;
    background: #f5f6f8;
    border-radius: 50% 50% 0 0;
}
.af-kopf-inhalt {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    animation: sym-hoch 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.af-kopf h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    margin: 16px 0 12px;
    line-height: 1.15;
}
.af-kopf h1 span {
    color: #ff5a52;
}
.af-kopf p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.1rem;
}
.af-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-weight: 600;
    font-size: 0.9rem;
}
.af .ico,
.af-kopf .ico {
    width: 1.2em;
    height: 1.2em;
    flex-shrink: 0;
}

.af {
    background: #f5f6f8;
    padding: 0 16px 80px;
    margin-top: -70px;
    position: relative;
}
.af-layout {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}
@media (max-width: 960px) {
    .af-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}
.af-form {
    background: #fff;
    border-radius: 24px;
    padding: clamp(22px, 4vw, 40px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}
.af-fortschritt {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    display: flex;
    gap: 10px;
    counter-reset: s;
}
.af-fortschritt li {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 700;
    color: #94a3b8;
    padding-top: 10px;
    border-top: 5px solid #e5e7eb;
    counter-increment: s;
    transition: color 0.3s, border-color 0.3s;
}
.af-fortschritt li::before {
    content: counter(s) '. ';
}
.af-fortschritt li.aktiv,
.af-fortschritt li.fertig {
    border-color: #e53935;
    color: #e53935;
}
.af-schritt {
    display: none;
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}
.af-schritt.aktiv {
    display: block;
    animation: af-rein 0.4s ease both;
}
@keyframes af-rein {
    from {
        opacity: 0;
        transform: translateX(18px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
.af legend {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 20px;
    padding: 0;
    color: #1e293b;
}
.af-gruppe {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #e53935;
    margin: 22px 0 10px;
}
.af-auswahl {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}
.af-karte {
    position: relative;
}
.af-karte input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.af-karte span {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    padding: 18px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 700;
    color: #1e293b;
    transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.af-karte span .ico {
    width: 30px;
    height: 30px;
    color: #e53935;
    transition: transform 0.3s;
}
.af-karte span:hover {
    border-color: #e53935;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(229, 57, 53, 0.12);
}
.af-karte span:hover .ico {
    transform: scale(1.12) rotate(-4deg);
}
.af-karte input:checked + span {
    border-color: #e53935;
    background: #fdecea;
}
.af-karte input:focus-visible + span {
    outline: 3px solid rgba(229, 57, 53, 0.35);
    outline-offset: 2px;
}
.af-feld {
    display: block;
    margin-bottom: 16px;
}
.af-feld > span {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 6px;
    color: #334155;
}
.af-feld input,
.af-feld select,
.af-feld textarea {
    width: 100%;
    padding: 13px 15px;
    font: inherit;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #fafafa;
    color: #1e293b;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.af-feld input:focus,
.af-feld select:focus,
.af-feld textarea:focus {
    outline: none;
    border-color: #e53935;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.12);
}
.af .ungueltig {
    border-color: #e53935 !important;
    background: #fff6f6 !important;
    animation: af-wackeln 0.35s;
}
@keyframes af-wackeln {
    25% {
        transform: translateX(-4px);
    }
    75% {
        transform: translateX(4px);
    }
}
.af-reihe {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}
@media (max-width: 560px) {
    .af-reihe {
        grid-template-columns: 1fr;
    }
}
.af-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.af-chip input {
    position: absolute;
    opacity: 0;
}
.af-chip span {
    display: inline-block;
    padding: 9px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    transition: 0.2s;
}
.af-chip span:hover {
    border-color: #e53935;
}
.af-chip input:checked + span {
    background: #e53935;
    border-color: #e53935;
    color: #fff;
}
.af-chip input:focus-visible + span {
    outline: 3px solid rgba(229, 57, 53, 0.35);
}
.af-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.93rem;
    margin-bottom: 14px;
    cursor: pointer;
    color: #475569;
}
.af-check input {
    margin-top: 3px;
    accent-color: #e53935;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.af-check a {
    color: #e53935;
}
.af-mitte {
    align-self: center;
}
.af-hinweis {
    display: flex;
    gap: 10px;
    background: #f5f6f8;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #64748b;
}
.af-hinweis .ico {
    color: #25d366;
}
.af-fehler {
    display: none;
    color: #e53935;
    font-weight: 700;
    font-size: 0.92rem;
    margin: 14px 0 0;
}
.af-fehler.sichtbar {
    display: block;
}
.af-falle {
    position: absolute;
    left: -9999px;
}
.af-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
}
.af-nav [data-weiter],
.af-nav [type='submit'] {
    margin-left: auto;
}
.af-knopf {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border: 0;
    border-radius: 999px;
    background: #e53935;
    color: #fff;
    font: inherit;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.af-knopf::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.6s;
}
.af-knopf:hover {
    background: #c62828;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(229, 57, 53, 0.35);
}
.af-knopf:hover::after {
    transform: translateX(120%);
}
.af-knopf .ico {
    transition: transform 0.2s;
}
.af-knopf:hover .ico {
    transform: translateX(3px);
}
.af-knopf.hell {
    background: #fff;
    color: #334155;
    border: 2px solid #e5e7eb;
}
.af-knopf.hell:hover {
    box-shadow: none;
    background: #f8fafc;
}
.af-knopf.gruen {
    background: #25d366;
}
.af-knopf.breit {
    width: 100%;
    margin-top: 10px;
}
.af-knopf:disabled {
    opacity: 0.6;
    cursor: wait;
}
.af-vertrauen {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-top: 22px;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 600;
}
.af-vertrauen span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.af-vertrauen .ico {
    color: #e53935;
}
.af-seite {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 18px;
}
.af-box {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}
.af-box h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #1e293b;
}
.af-box p {
    color: #64748b;
    font-size: 0.95rem;
}
.af-liste {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: grid;
    gap: 10px;
    color: #334155;
    font-weight: 600;
    font-size: 0.95rem;
}
.af-liste li {
    display: flex;
    gap: 8px;
    align-items: center;
}
.af-liste .ico {
    color: #16a34a;
}

.af [hidden],
.af-knopf[hidden] {
    display: none !important;
}
