/* ══════════════════════════════════════════════════════════════
   Online-Formulare — Completely redesigned service picker UI
   ══════════════════════════════════════════════════════════════ */

.fx-page {
    background: #f0f4f3;
    padding-bottom: 64px;
    overflow-x: hidden;
}

/* Anchor scroll offset for fixed site header */
.fx-tile {
    scroll-margin-top: 80px;
}

.fx-page .container {
    padding-left: 16px;
    padding-right: 16px;
}

/* ── Hero (dark split) ───────────────────────────────────────── */
.fx-hero {
    position: relative;
    background: linear-gradient(125deg, #032e30 0%, #064044 42%, #0b7a7f 100%);
    color: #ffffff;
    padding: 32px 0 52px;
    overflow: hidden;
}

.fx-hero__mesh {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 15% 40%, rgba(244, 196, 48, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(10, 138, 143, 0.25) 0%, transparent 50%);
}

.fx-hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
    align-items: center;
}

.fx-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #f4c430;
    margin-bottom: 10px;
}

.fx-hero__eyebrow i {
    font-size: 12px;
}

.fx-hero__title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}

.fx-hero__lead {
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 16px;
    max-width: 460px;
}

.fx-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.fx-hero__stat {
    flex: 1 1 100px;
    min-width: 96px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 10px 12px;
    text-align: center;
}

.fx-hero__stat strong {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: #f4c430;
    line-height: 1.2;
    margin-bottom: 2px;
}

.fx-hero__stat span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.3;
}

.fx-hero__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 160px;
}

.fx-hero__orb {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: fx-orb-float 6s ease-in-out infinite;
}

.fx-hero__orb-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.fx-hero__orb-ring--1 {
    width: 168px;
    height: 168px;
    animation: fx-ring-spin 24s linear infinite;
}

.fx-hero__orb-ring--2 {
    width: 196px;
    height: 196px;
    animation: fx-ring-spin 36s linear infinite reverse;
}

.fx-hero__orb-icon {
    font-size: 44px;
    color: #f4c430;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.2));
}

@keyframes fx-orb-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

@keyframes fx-ring-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.fx-hero__wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 32px;
    background: #f0f4f3;
    clip-path: ellipse(62% 100% at 50% 100%);
}

/* ── Quick nav pills ─────────────────────────────────────────── */
.fx-nav {
    position: relative;
    z-index: 3;
    margin-top: -22px;
    margin-bottom: 28px;
}

.fx-nav__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.fx-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #064044;
    background: #ffffff;
    border: 1px solid #d8e0da;
    border-radius: 9999px;
    padding: 12px 18px;
    min-height: 44px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(6, 64, 68, 0.08);
    transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.fx-nav__link:hover {
    background: #064044;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(6, 64, 68, 0.18);
    text-decoration: none;
}

.fx-nav__num {
    width: 22px;
    height: 22px;
    border-radius: 9999px;
    background: #edf7f3;
    color: #064044;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 200ms ease, color 200ms ease;
}

.fx-nav__link:hover .fx-nav__num {
    background: #f4c430;
    color: #064044;
}

/* ── Steps strip ─────────────────────────────────────────────── */
.fx-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 36px;
    list-style: none;
    padding: 0;
}

.fx-steps__item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 1px solid #e4ece6;
    border-radius: 14px;
    padding: 16px 18px;
}

.fx-steps__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(145deg, #064044, #0a6b6f);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.fx-steps__text strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #064044;
    margin-bottom: 2px;
}

.fx-steps__text span {
    font-size: 12px;
    color: #5f687b;
    line-height: 1.4;
}

/* ── Service tiles grid ────────────────────────────────────────── */
.fx-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: stretch;
}

.fx-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e4ece6;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(6, 64, 68, 0.08);
    transition: transform 320ms cubic-bezier(.22,1,.36,1), box-shadow 320ms ease;
}

.fx-tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(6, 64, 68, 0.16);
}

.fx-tile__index {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 48px;
    font-weight: 900;
    line-height: 1;
    color: rgba(6, 64, 68, 0.06);
    pointer-events: none;
    z-index: 1;
}

.fx-tile__head {
    position: relative;
    padding: 28px 24px 20px;
    text-align: center;
    overflow: hidden;
}

.fx-tile__head--abmelden {
    background: linear-gradient(160deg, #e8f6f2 0%, #c5e8e0 100%);
}

.fx-tile__head--aenderung {
    background: linear-gradient(160deg, #e0f2f4 0%, #b8e0e6 100%);
}

.fx-tile__head--erstanmeldung {
    background: linear-gradient(160deg, #d8eef0 0%, #a8d8de 100%);
}

.fx-tile__chip {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #064044;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 9999px;
    padding: 4px 12px;
    margin-bottom: 16px;
}

.fx-tile__media {
    width: 130px;
    height: 130px;
    margin: 0 auto;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 28px rgba(6, 64, 68, 0.12);
    border: 3px solid rgba(255, 255, 255, 0.9);
}

.fx-tile__img {
    width: 88px;
    height: auto;
    display: block;
}

.fx-tile__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 22px 22px 0;
}

.fx-tile__title {
    font-size: 17px;
    font-weight: 800;
    color: #064044;
    line-height: 1.35;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.fx-tile__marker {
    color: #000000;
    margin-left: 2px;
    font-weight: 700;
}

.fx-tile__text {
    font-size: 13px;
    color: #444444;
    line-height: 1.7;
    margin-bottom: 10px;
}

.fx-tile__list {
    margin: 4px 0 0;
    padding-left: 18px;
    font-size: 13px;
    color: #444444;
    line-height: 1.7;
}

.fx-tile__list li {
    margin-bottom: 5px;
}

.fx-tile__list a {
    color: #064044;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.fx-tile__action {
    padding: 20px 22px 24px;
    margin-top: auto;
}

.fx-tile__btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: "Arial", sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 14px 20px;
    min-height: 48px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    color: #064044;
    background: linear-gradient(135deg, #f4c430 0%, #e8b820 100%);
    box-shadow: 0 6px 20px rgba(244, 196, 48, 0.35);
    transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.fx-tile__btn:hover {
    background: linear-gradient(135deg, #ffcf3d 0%, #f4c430 100%);
    box-shadow: 0 8px 28px rgba(244, 196, 48, 0.45);
    transform: translateY(-2px);
    color: #064044;
}

.fx-tile__btn i {
    font-size: 18px;
    transition: transform 220ms ease;
}

.fx-tile:hover .fx-tile__btn i {
    transform: translateX(4px);
}

/* ── Disclaimer ──────────────────────────────────────────────── */
.fx-legal {
    margin-top: 40px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #e4ece6;
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 4px 20px rgba(6, 64, 68, 0.06);
}

.fx-legal__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff8e1;
    color: #b8860b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.fx-legal p {
    margin: 0;
    font-size: 12px;
    line-height: 1.75;
    color: #5f687b;
}

.fx-legal__marker {
    color: #dc3545;
    font-weight: 700;
    margin-right: 3px;
}

/* ── Responsive ──────────────────────────────────────────────── */

/* Tablet: 3-col → 1-col tiles, stacked hero */
@media (max-width: 1100px) {
    .fx-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin-inline: auto;
        gap: 20px;
    }

    .fx-hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 16px;
    }

    .fx-hero__lead {
        margin-inline: auto;
    }

    .fx-hero__stats {
        justify-content: center;
    }

    .fx-hero__visual {
        min-height: 130px;
    }

    .fx-hero__orb {
        width: 120px;
        height: 120px;
    }

    .fx-hero__orb-ring--1 { width: 148px; height: 148px; }
    .fx-hero__orb-ring--2 { width: 172px; height: 172px; }
    .fx-hero__orb-icon { font-size: 38px; }
}

/* Mobile landscape / large phones */
@media (max-width: 768px) {
    .fx-tile {
        scroll-margin-top: 70px;
    }

    .fx-page {
        padding-bottom: 48px;
    }

    .fx-page .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .fx-hero {
        padding: 24px 0 44px;
    }

    .fx-hero__title {
        font-size: 26px;
    }

    .fx-hero__lead {
        font-size: 14px;
        max-width: 100%;
    }

    .fx-hero__eyebrow {
        font-size: 10px;
        justify-content: center;
    }

    .fx-hero__stat {
        flex: 1 1 calc(50% - 6px);
        min-width: 0;
    }

    .fx-hero__visual {
        min-height: 180px;
        overflow: hidden;
    }

    .fx-hero__wave {
        height: 28px;
    }

    .fx-nav {
        margin-top: -16px;
        margin-bottom: 24px;
        margin-inline: -14px;
        padding-inline: 14px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .fx-nav::-webkit-scrollbar {
        display: none;
    }

    .fx-nav__list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 8px;
        padding-bottom: 4px;
    }

    .fx-nav__link {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 12px;
        padding: 10px 16px;
    }

    .fx-steps {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 28px;
    }

    .fx-steps__item {
        padding: 14px 16px;
    }

    .fx-grid {
        max-width: 100%;
    }

    .fx-tile {
        border-radius: 16px;
    }

    .fx-tile__head {
        padding: 22px 18px 18px;
    }

    .fx-tile__media {
        width: 110px;
        height: 110px;
    }

    .fx-tile__img {
        width: 72px;
    }

    .fx-tile__body {
        text-align: left;
        padding: 18px 18px 0;
    }

    .fx-tile__title {
        font-size: 16px;
    }

    .fx-tile__text,
    .fx-tile__list {
        font-size: 13px;
    }

    .fx-tile__list {
        text-align: left;
        display: block;
        width: 100%;
    }

    .fx-tile__action {
        padding: 16px 18px 20px;
    }

    .fx-legal {
        grid-template-columns: 1fr;
        text-align: left;
        padding: 18px 16px;
        margin-top: 32px;
    }

    .fx-legal__icon {
        margin-inline: 0;
    }

    .fx-legal p {
        font-size: 11px;
        line-height: 1.7;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .fx-tile {
        scroll-margin-top: 64px;
    }

    .fx-hero {
        padding: 20px 0 40px;
    }

    .fx-hero__title {
        font-size: 22px;
        letter-spacing: -0.02em;
    }

    .fx-hero__lead {
        font-size: 13px;
        margin-bottom: 14px;
    }

    .fx-hero__stat {
        flex: 1 1 100%;
        padding: 12px 14px;
    }

    .fx-hero__stat strong {
        font-size: 16px;
    }

    .fx-hero__visual {
        min-height: 150px;
    }

    .fx-hero__orb {
        width: 100px;
        height: 100px;
    }

    .fx-hero__orb-ring--1 {
        width: 124px;
        height: 124px;
    }

    .fx-hero__orb-ring--2 {
        width: 144px;
        height: 144px;
    }

    .fx-hero__orb-icon {
        font-size: 32px;
    }

    .fx-tile__index {
        font-size: 32px;
        top: 8px;
        right: 12px;
    }

    .fx-tile__chip {
        font-size: 9px;
        padding: 3px 10px;
    }

    .fx-tile__title {
        font-size: 15px;
    }

    .fx-tile__btn {
        font-size: 14px;
        padding: 13px 16px;
        border-radius: 10px;
    }

    .fx-steps__text strong {
        font-size: 12px;
    }

    .fx-steps__text span {
        font-size: 11px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .fx-page .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .fx-hero__title {
        font-size: 22px;
    }

    .fx-nav__link {
        font-size: 11px;
        padding: 10px 14px;
    }

    .fx-tile__media {
        width: 96px;
        height: 96px;
    }

    .fx-tile__img {
        width: 64px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fx-hero__orb,
    .fx-hero__orb-ring--1,
    .fx-hero__orb-ring--2 {
        animation: none;
    }

    .fx-tile,
    .fx-tile__btn,
    .fx-nav__link {
        transition: none;
    }

    .fx-tile:hover {
        transform: none;
    }
}
