/* Registrierung /firststeps/Registrieren/ im Look von /start/ (dunkel), mobil zuerst.
   Template: system/app/views/members/newio/firststeps_registrieren.tpl. Linien aus website/newsite-start-linien.tpl,
   deren Klassen (.st-linien*) hier eigenständig gestylt sind, damit die Seite ohne start.css auskommt. */

:root {
    --primary-green: #02463a;
    --primary-red: #ff0046;
    --rg-green-dark: #01251f;
    --rg-antrazit: #1a1a1a;
    --rg-text: #3d4644;
    --rg-leise: #66716e;
    --rg-rand: #d3dcd9;
    --rg-feld: #f6f8f7;
    --rg-fehler: #c4003a;
    --rg-touch: 48px;
    --rg-gutter: 1.25rem;
    /* viewport-fit=cover: quer gehaltene iPhones brauchen Abstand zu Notch und Dynamic Island */
    --rg-seite-l: max(var(--rg-gutter), env(safe-area-inset-left));
    --rg-seite-r: max(var(--rg-gutter), env(safe-area-inset-right));
    --rg-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
button, input, select { font: inherit; color: inherit; }

body.rg-body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex; flex-direction: column;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: #fff;
    background: #013329;
    -webkit-font-smoothing: antialiased;
}

.rg-sr {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.rg-body :focus-visible { outline: 3px solid var(--primary-red); outline-offset: 3px; border-radius: 6px; }
.grecaptcha-badge { visibility: hidden; }

/* ---------- Hintergrund: Linien wie Kapitel auf /start/, fest hinter der Seite ---------- */
.st-linien { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.st-linien svg {
    display: block; width: 100%; height: 100%;
    background:
        radial-gradient(ellipse at center, transparent 55%, rgba(14, 27, 24, 0.47) 100%),
        linear-gradient(150deg, var(--primary-green) 0%, #013329 55%, #0e1b18 100%);
}
.st-linien path { vector-effect: non-scaling-stroke; }
.st-linien-schar path { fill: none; stroke: #fff; stroke-width: 0.8px; }
.st-linien-glow { fill: none; stroke: var(--primary-red); stroke-width: 8px; stroke-linecap: round; opacity: 0.08; }
.st-linien-akzent { fill: none; stroke: var(--primary-red); stroke-width: 1.5px; stroke-linecap: round; opacity: 0.55; }
.st-linien-akzent--oben { stroke-width: 1px; opacity: 0.28; }

/* ---------- Kopf: Leiste mit Logo, Fortschritt und Anmelden ----------
   Mobil zwei Zeilen (Logo + Anmelden, darunter der Fortschritt), ab 1000 px eine Zeile mit dem Fortschritt in der Mitte */
.rg-kopf {
    position: relative; z-index: 2;
    padding-top: env(safe-area-inset-top);
    background: linear-gradient(180deg, rgba(1, 26, 22, 0.92) 0%, rgba(1, 37, 31, 0.78) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.rg-kopf-innen {
    display: grid; align-items: center;
    grid-template-columns: auto 1fr;
    grid-template-areas: "logo rechts" "schritte schritte";
    width: 100%; max-width: 1180px; margin: 0 auto;
    padding: 0 var(--rg-seite-r) 0 var(--rg-seite-l);
}
.rg-logo { grid-area: logo; display: inline-flex; align-items: center; min-height: 64px; }
.rg-logo img { width: auto; height: 27px; }
.rg-kopf-rechts { grid-area: rechts; justify-self: end; display: flex; align-items: center; gap: 0.75rem; }
.rg-kopf-frage { display: none; font-size: 0.88rem; color: rgba(255, 255, 255, 0.62); }
.rg-anmelden {
    display: inline-flex; align-items: center; gap: 0.45rem;
    min-height: 44px; padding: 0.45rem 1rem 0.45rem 0.85rem;
    border: 1.5px solid rgba(255, 255, 255, 0.32); border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.9rem; font-weight: 600; color: #fff; text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.2s var(--rg-ease);
}
/* Hover nur mit Maus, sonst bleibt der Zustand nach dem Antippen auf iOS/Android stehen */
@media (hover: hover) {
    .rg-anmelden:hover { background: #fff; border-color: #fff; color: var(--primary-green); }
}
.rg-anmelden svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

.rg-schrittleiste {
    grid-area: schritte;
    list-style: none;
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.7rem 0 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.rg-schrittleiste li {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.82rem; font-weight: 600; color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
}
.rg-schrittleiste li + li::before {
    content: ""; flex: none;
    width: clamp(18px, 6vw, 40px); height: 1.5px; margin-right: 0.1rem;
    border-radius: 1px; background: rgba(255, 255, 255, 0.18);
}
.rg-sl-nr {
    flex: none; display: grid; place-items: center;
    width: 24px; height: 24px; border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    font-size: 0.75rem; font-weight: 700;
}
.rg-sl-nr svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.rg-schrittleiste li.is-jetzt { color: #fff; }
.rg-schrittleiste li.is-jetzt .rg-sl-nr { border-color: var(--primary-red); background: var(--primary-red); color: #fff; box-shadow: 0 0 0 4px rgba(255, 0, 70, 0.2); }
.rg-schrittleiste li.is-fertig { color: rgba(255, 255, 255, 0.82); }
.rg-schrittleiste li.is-fertig .rg-sl-nr { border-color: #46ffaa; background: #46ffaa; color: var(--rg-green-dark); }
.rg-schrittleiste li.is-fertig + li::before { background: rgba(70, 255, 170, 0.55); }
/* Schmal: nur der aktuelle Schritt mit Text, die anderen als Nummer (Text bleibt für Screenreader) */
@media (max-width: 599.98px) {
    .rg-schrittleiste li:not(.is-jetzt) .rg-sl-text {
        position: absolute; width: 1px; height: 1px; margin: -1px;
        overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
    }
}

/* ---------- Raster ---------- */
.rg-main { flex: 1; width: 100%; }
.rg-raster {
    display: grid; gap: 1.75rem;
    grid-template-areas: "intro" "karte" "weiter";
    width: 100%; max-width: 560px; margin: 0 auto;
    padding: 0.75rem var(--rg-seite-r) 3rem var(--rg-seite-l);
}
.rg-intro { grid-area: intro; }
.rg-karte { grid-area: karte; }
.rg-weiter { grid-area: weiter; }

/* ---------- Einstieg ---------- */
.rg-kicker {
    display: inline-flex; align-items: center; gap: 0.55rem;
    font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}
.rg-kicker-punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--primary-red); box-shadow: 0 0 0 4px rgba(255, 0, 70, 0.18); }
.rg-titel {
    margin-top: 0.85rem;
    font-size: clamp(1.9rem, 7.4vw, 3.1rem);
    line-height: 1.06; font-weight: 700; letter-spacing: -0.025em;
    text-wrap: balance;
}
.rg-titel-zeile { display: block; color: rgba(255, 255, 255, 0.62); }
.rg-unterzeile {
    max-width: 34rem; margin-top: 1rem;
    font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
    color: rgba(255, 255, 255, 0.8);
    text-wrap: pretty;
}

/* ---------- Karte ---------- */
.rg-karte {
    position: relative;
    padding: 1.5rem 1.25rem 1.35rem;
    border-radius: 24px;
    background: #fff;
    color: var(--rg-antrazit);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.rg-form { display: grid; gap: 1.1rem; }

.rg-event {
    padding: 0.7rem 0.9rem; border-radius: 12px;
    background: rgba(2, 70, 58, 0.07); color: var(--primary-green);
    font-size: 0.9rem;
}
.rg-fehler {
    display: flex; gap: 0.65rem; align-items: flex-start;
    padding: 0.8rem 0.95rem; border-radius: 12px;
    background: #fff0f4; border: 1px solid rgba(196, 0, 58, 0.22);
    color: var(--rg-fehler); font-size: 0.92rem; font-weight: 500;
}
.rg-fehler:focus { outline: none; }
.rg-fehler svg { flex: none; width: 20px; height: 20px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* ---------- Felder ---------- */
.rg-reihe { display: grid; gap: 1.1rem; }
.rg-feld { display: grid; gap: 0.4rem; min-width: 0; border: 0; }
.rg-feld > label, .rg-feld > legend {
    font-size: 0.875rem; font-weight: 600; color: var(--rg-antrazit);
}
.rg-feld > legend { padding: 0; margin-bottom: 0.4rem; }
.rg-freiwillig { margin-left: 0.3rem; font-weight: 400; color: var(--rg-leise); }

.rg-feld input[type="text"],
.rg-feld input[type="email"],
.rg-feld input[type="tel"],
.rg-feld input[type="password"],
.rg-feld select {
    width: 100%; min-height: 52px;
    padding: 0.8rem 0.95rem;
    border: 1.5px solid var(--rg-rand); border-radius: 12px;
    background: var(--rg-feld);
    font-size: 1rem; color: var(--rg-antrazit);
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    -webkit-appearance: none; appearance: none;
}
.rg-feld input::placeholder { color: #9aa5a2; }
.rg-feld input:hover, .rg-feld select:hover { border-color: #b4c2be; }
.rg-feld input:focus, .rg-feld select:focus {
    outline: none; background: #fff;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(2, 70, 58, 0.14);
}
.rg-feld select {
    padding-right: 2.6rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2302463a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7.5l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 18px;
}
.rg-feld-hinweis { font-size: 0.8rem; color: var(--rg-leise); }
.rg-feld-fehler { font-size: 0.85rem; font-weight: 500; color: var(--rg-fehler); }
.rg-feld-fehler:empty { display: none; }
.rg-feld-fehler a { color: inherit; font-weight: 700; text-underline-offset: 2px; }
.rg-feld.is-fehler input[type="text"],
.rg-feld.is-fehler input[type="email"],
.rg-feld.is-fehler input[type="password"],
.rg-feld.is-fehler select { border-color: var(--primary-red); background: #fff; }
.rg-feld.is-fehler input:focus, .rg-feld.is-fehler select:focus { box-shadow: 0 0 0 4px rgba(255, 0, 70, 0.14); }
.rg-feld.is-fehler .rg-feld-hinweis:not(.rg-feld-hinweis--passwort) { display: none; }

/* Passwort mit Anzeigen-Knopf */
.rg-passwort { position: relative; }
.rg-passwort input { padding-right: 3.4rem !important; }
.rg-auge {
    position: absolute; top: 50%; right: 0.25rem; transform: translateY(-50%);
    display: grid; place-items: center;
    width: 44px; height: 44px; border: 0; border-radius: 10px;
    background: transparent; color: var(--rg-leise); cursor: pointer;
}
.rg-auge:hover { color: var(--primary-green); background: rgba(2, 70, 58, 0.06); }
.rg-auge svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rg-auge .rg-auge-auf, .rg-auge[aria-pressed="true"] .rg-auge-zu { display: none; }
.rg-auge[aria-pressed="true"] .rg-auge-auf { display: block; }
.rg-feld-hinweis--passwort { display: flex; align-items: center; gap: 0.4rem; transition: color 0.2s; }
.rg-haken {
    position: relative; flex: none;
    width: 16px; height: 16px; border-radius: 50%;
    border: 1.5px solid #b4c2be;
    transition: background 0.2s, border-color 0.2s;
}
.rg-haken::after {
    content: ""; position: absolute; left: 4.5px; top: 2px;
    width: 4px; height: 7px;
    border: solid #fff; border-width: 0 1.8px 1.8px 0;
    transform: rotate(45deg) scale(0); transition: transform 0.2s var(--rg-ease);
}
.rg-feld-hinweis--passwort.is-ok { color: var(--primary-green); }
.rg-feld-hinweis--passwort.is-ok .rg-haken { background: var(--primary-green); border-color: var(--primary-green); }
.rg-feld-hinweis--passwort.is-ok .rg-haken::after { transform: rotate(45deg) scale(1); }

/* Praxisverwaltungssystem als Chips */
.rg-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.rg-chip { position: relative; display: inline-flex; cursor: pointer; }
.rg-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.rg-chip span {
    display: inline-flex; align-items: center; gap: 0.4rem;
    min-height: 44px; padding: 0.5rem 1rem;
    border: 1.5px solid var(--rg-rand); border-radius: 999px;
    background: #fff;
    font-size: 0.95rem; font-weight: 600; color: var(--primary-green);
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s var(--rg-ease);
    -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
    .rg-chip:hover span { border-color: var(--primary-green); }
}
.rg-chip input:active + span { transform: scale(0.97); }
.rg-chip input:checked + span { background: var(--primary-green); border-color: var(--primary-green); color: #fff; }
.rg-chip input:checked + span::before {
    content: ""; width: 5px; height: 9px; margin: -2px 0.15rem 0 0;
    border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.rg-chip input:focus-visible + span { outline: 3px solid var(--primary-red); outline-offset: 2px; }
.rg-pvs.is-fehler .rg-chip span { border-color: rgba(255, 0, 70, 0.45); }
.rg-pvs-liste { display: none; margin-top: 0.6rem; }
.rg-pvs.ist-liste .rg-pvs-liste,
.rg-pvs:has(input[value="liste"]:checked) .rg-pvs-liste { display: block; }

/* Honeypot: für Menschen unsichtbar, für Bots ein Feld wie jedes andere */
.rg-honig { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* AGB-Haken */
.rg-check { position: relative; display: flex; align-items: flex-start; gap: 0.75rem; min-height: 44px; cursor: pointer; font-size: 0.9rem; color: var(--rg-text); }
.rg-check input { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: 0; opacity: 0; cursor: pointer; }
.rg-check-box {
    flex: none; display: grid; place-items: center;
    width: 24px; height: 24px; margin-top: -1px;
    border: 1.5px solid #b4c2be; border-radius: 7px; background: #fff;
    transition: background 0.15s, border-color 0.15s;
}
.rg-check-box svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(0.6); transition: opacity 0.15s, transform 0.2s var(--rg-ease); }
.rg-check input:checked + .rg-check-box { background: var(--primary-green); border-color: var(--primary-green); }
.rg-check input:checked + .rg-check-box svg { opacity: 1; transform: none; }
.rg-check input:focus-visible + .rg-check-box { outline: 3px solid var(--primary-red); outline-offset: 2px; }
.rg-zustimmung.is-fehler .rg-check-box { border-color: var(--primary-red); }
.rg-check-text a { color: var(--primary-green); font-weight: 600; text-underline-offset: 2px; }
/* Links im Fließtext: unsichtbarer Innenabstand vergrößert die Trefferfläche, ohne die Zeilen zu verschieben.
   Nicht im AGB-Haken, sonst öffnet ein Tipp auf den Text die AGB statt den Haken zu setzen. */
.rg-spam a, .rg-feld-fehler a { padding-block: 0.25rem; }

/* ---------- CTA ---------- */
.rg-cta {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
    width: 100%; min-height: 56px; margin-top: 0.35rem;
    padding: 0.95rem 1.75rem;
    border: 0; border-radius: 999px;
    background: var(--primary-red); color: #fff;
    font-size: 1.05rem; font-weight: 700; letter-spacing: 0.01em;
    box-shadow: 0 14px 28px rgba(255, 0, 70, 0.28);
    cursor: pointer;
    transition: transform 0.2s var(--rg-ease), box-shadow 0.2s var(--rg-ease), background 0.2s;
    -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
    .rg-cta:hover { background: #e6003f; transform: translateY(-2px); box-shadow: 0 18px 34px rgba(255, 0, 70, 0.34); }
    .rg-cta:hover .rg-cta-pfeil { transform: translateX(3px); }
}
.rg-cta:active { background: #e6003f; transform: translateY(0) scale(0.99); }
.rg-cta-pfeil { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s var(--rg-ease); }
.rg-cta-kreis {
    display: none;
    width: 20px; height: 20px; border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff;
    animation: rg-drehen 0.8s linear infinite;
}
.rg-cta.is-sendet { cursor: progress; transform: none; box-shadow: 0 10px 22px rgba(255, 0, 70, 0.22); }
.rg-cta.is-sendet .rg-cta-pfeil { display: none; }
.rg-cta.is-sendet .rg-cta-kreis { display: block; }
@keyframes rg-drehen { to { transform: rotate(360deg); } }

.rg-recaptcha { margin-top: -0.35rem; font-size: 0.75rem; color: var(--rg-leise); text-align: center; text-wrap: balance; }
.rg-recaptcha a { color: inherit; }

/* ---------- So geht es weiter ---------- */
.rg-weiter-titel { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.rg-schritte { list-style: none; margin-top: 1rem; display: grid; }
.rg-schritte li { position: relative; display: flex; gap: 0.9rem; padding-bottom: 1.15rem; }
.rg-schritte li:last-child { padding-bottom: 0; }
.rg-schritte li:not(:last-child)::before {
    content: ""; position: absolute; left: 15px; top: 34px; bottom: 4px;
    width: 1.5px; background: rgba(255, 255, 255, 0.16);
}
.rg-schritt-nr {
    flex: none; display: grid; place-items: center;
    width: 32px; height: 32px; border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    font-size: 0.85rem; font-weight: 700; color: rgba(255, 255, 255, 0.85);
}
.rg-schritte li.is-jetzt .rg-schritt-nr { border-color: var(--primary-red); background: var(--primary-red); color: #fff; box-shadow: 0 0 0 5px rgba(255, 0, 70, 0.16); }
.rg-schritte b { display: block; font-size: 1rem; font-weight: 600; line-height: 1.35; padding-top: 0.25rem; }
.rg-schritte div span { display: block; margin-top: 0.15rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.68); }

.rg-vertrauen {
    margin-top: 1.75rem; padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem; color: rgba(255, 255, 255, 0.55);
}
.rg-vertrauen ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; margin-top: 0.35rem; }
.rg-vertrauen li { color: rgba(255, 255, 255, 0.78); font-weight: 500; }
.rg-vertrauen li + li::before { content: "·"; margin-right: 0.5rem; opacity: 0.5; }

/* ---------- Fast geschafft ---------- */
.rg-main--fertig {
    display: flex; flex-direction: column; align-items: center;
    width: 100%; max-width: 560px; margin: 0 auto;
    padding: 1.5rem var(--rg-seite-r) 3.5rem var(--rg-seite-l);
}

.rg-karte--fertig { width: 100%; padding: 2rem 1.35rem 1.6rem; text-align: center; }
.rg-brief {
    position: relative;
    display: grid; place-items: center;
    width: 76px; height: 76px; margin: 0 auto 1.1rem;
    border-radius: 50%;
    background: rgba(2, 70, 58, 0.08);
    color: var(--primary-green);
}
.rg-brief svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.rg-brief-punkt {
    position: absolute; top: 14px; right: 13px;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--primary-red); box-shadow: 0 0 0 3px #fff;
}
.rg-fertig-titel { font-size: clamp(1.75rem, 6vw, 2.25rem); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; color: var(--primary-green); }
.rg-fertig-text { margin-top: 0.6rem; color: var(--rg-text); text-wrap: pretty; }
.rg-fertig-mail {
    margin-top: 0.35rem;
    font-size: 1.05rem; font-weight: 700; color: var(--rg-antrazit);
}
.rg-fertig-mail span { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }

.rg-id {
    margin-top: 1.5rem; padding: 1.1rem 1rem 1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #02463a 0%, #01251f 100%);
    color: #fff;
}
.rg-id-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.65); }
.rg-id-zeile { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.5rem 0.9rem; margin-top: 0.35rem; }
.rg-id-wert { font-size: clamp(1.9rem, 8vw, 2.4rem); font-weight: 800; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.rg-kopieren {
    display: inline-flex; align-items: center; gap: 0.4rem;
    min-height: 44px; padding: 0.4rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px;
    background: rgba(255, 255, 255, 0.08); color: #fff;
    font-size: 0.85rem; font-weight: 600; cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
@media (hover: hover) {
    .rg-kopieren:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.45); }
}
.rg-kopieren svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rg-kopieren.is-kopiert { border-color: #46ffaa; color: #46ffaa; }
.rg-id-text { margin-top: 0.6rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); text-wrap: pretty; }

.rg-spam {
    margin-top: 1rem; padding: 0.95rem 1rem;
    border-radius: 14px; background: var(--rg-feld);
    font-size: 0.88rem; color: var(--rg-text); text-align: left;
}
.rg-spam-titel { font-weight: 700; color: var(--rg-antrazit); margin-bottom: 0.2rem; }
.rg-spam a { color: var(--primary-green); font-weight: 600; overflow-wrap: anywhere; text-underline-offset: 2px; }
.rg-fertig-weiter { margin-top: 1.25rem; font-size: 0.9rem; color: var(--rg-leise); }
.rg-fertig-weiter a { padding-block: 0.7rem; color: var(--primary-green); font-weight: 700; text-underline-offset: 3px; }

/* ---------- Login (login_neu.tpl): gleiche Karte, Anmelden und „Passwort vergessen“ als zwei Ansichten ---------- */
.rg-karte--login { display: grid; gap: 1.1rem; }
.rg-hinweis {
    display: flex; gap: 0.65rem; align-items: flex-start;
    padding: 0.8rem 0.95rem; border-radius: 12px;
    background: rgba(2, 70, 58, 0.07); border: 1px solid rgba(2, 70, 58, 0.18);
    color: var(--primary-green); font-size: 0.92rem; font-weight: 500;
}
.rg-hinweis svg { flex: none; width: 20px; height: 20px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rg-kicker-punkt--gruen { background: #46ffaa; box-shadow: 0 0 0 4px rgba(70, 255, 170, 0.18); }
.rg-schritt-nr svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.rg-schritte li.is-fertig .rg-schritt-nr { border-color: #46ffaa; background: #46ffaa; color: var(--rg-green-dark); }
.rg-schritte li.is-fertig:not(:last-child)::before { background: rgba(70, 255, 170, 0.45); }

/* Sprung zu #passwort-vergessen: Kartenrand (Innenabstand bis 2rem) bleibt sichtbar */
.lg-ansicht { display: grid; gap: 1.1rem; scroll-margin-top: 3.5rem; }
.lg-reset { display: none; }
.lg-reset:target { display: grid; }
.lg-reset:target + .lg-login { display: none; }
.lg-titel { font-size: 1.35rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; color: var(--primary-green); }
.lg-text { margin-top: -0.5rem; font-size: 0.92rem; color: var(--rg-text); text-wrap: pretty; }
.lg-label-zeile { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.lg-label-zeile label { font-size: 0.875rem; font-weight: 600; color: var(--rg-antrazit); }
.lg-vergessen { font-size: 0.85rem; font-weight: 600; color: var(--primary-green); text-underline-offset: 3px; }
.lg-vergessen:hover { color: var(--primary-red); }
.lg-zurueck, .lg-neu { text-align: center; font-size: 0.9rem; color: var(--rg-leise); }
.lg-zurueck a { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 40px; color: var(--primary-green); font-weight: 600; text-underline-offset: 3px; }
.lg-zurueck svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.lg-neu { padding-top: 1rem; border-top: 1px solid #e7ecea; }
.lg-neu a { color: var(--primary-green); font-weight: 700; text-underline-offset: 3px; }

.lg-hilfe { list-style: none; margin-top: 1rem; display: grid; gap: 1rem; }
.lg-hilfe li { padding-left: 1rem; border-left: 2px solid rgba(255, 0, 70, 0.55); }
.lg-hilfe b { display: block; font-size: 1rem; font-weight: 600; line-height: 1.35; }
.lg-hilfe span { display: block; margin-top: 0.15rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.68); }
.lg-hilfe a { color: #fff; font-weight: 600; overflow-wrap: anywhere; text-underline-offset: 3px; }
/* Handy: Formular früh im Blick, die Unterzeile wiederholt nur Karte und Schritte */
@media (max-width: 599.98px) {
    .rg-body--login .rg-raster { gap: 1.25rem; }
    .rg-body--login .rg-titel { font-size: clamp(1.75rem, 7vw, 2.2rem); margin-top: 0.6rem; }
    .rg-body--login .rg-unterzeile { display: none; }
}
@media (max-width: 599.98px) and (max-height: 720px) {
    .rg-karte--login, .rg-karte--login .lg-ansicht, .rg-karte--login .rg-form { gap: 0.8rem; }
    .rg-karte--login .rg-cta { min-height: 52px; margin-top: 0.15rem; }
}
@media (orientation: landscape) and (max-height: 500px) {
    .rg-body--login .rg-unterzeile { display: none; }
}
/* Touch: Textlinks mit rund 44px Tippfläche, ohne das Layout zu verschieben */
@media (pointer: coarse) {
    .lg-vergessen { padding: 0.75rem 0 0.75rem 0.75rem; margin: -0.75rem 0 -0.75rem -0.75rem; }
    .lg-neu a, .lg-hilfe a { padding-block: 0.8rem; }
}

/* ---------- Fuß: dunkles Band mit Marke, Hilfe und Rechtlichem ---------- */
.rg-fuss {
    position: relative; z-index: 1;
    background: linear-gradient(180deg, #01211c 0%, #011612 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.9rem;
}
.rg-fuss::before {
    content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 0, 70, 0.55) 30%, rgba(255, 0, 70, 0.55) 70%, transparent 100%);
    opacity: 0.6;
}
.rg-fuss-innen {
    display: grid; gap: 2rem;
    width: 100%; max-width: 1180px; margin: 0 auto;
    padding: 2.75rem var(--rg-seite-r) 2.25rem var(--rg-seite-l);
}
.rg-fuss-logo { display: inline-flex; align-items: center; min-height: 44px; }
.rg-fuss-logo img { width: auto; height: 26px; }
.rg-fuss-marke p { max-width: 24rem; margin-top: 0.55rem; line-height: 1.6; text-wrap: pretty; }
.rg-fuss-sozial { display: flex; gap: 0.6rem; margin-top: 1.1rem; }
.rg-fuss-sozial a {
    display: grid; place-items: center;
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.8);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
@media (hover: hover) {
    .rg-fuss-sozial a:hover { background: var(--primary-red); border-color: var(--primary-red); color: #fff; }
}
.rg-fuss-sozial svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.rg-fuss-sozial .rg-voll { fill: currentColor; stroke: none; }
.rg-fuss-titel {
    margin-bottom: 0.75rem;
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}
.rg-fuss-hilfe > p:not(.rg-fuss-titel) { margin-bottom: 0.6rem; }
.rg-fuss-kontakt {
    display: flex; align-items: center; gap: 0.6rem;
    min-height: 44px;
    color: #fff; font-weight: 600; text-decoration: none;
    overflow-wrap: anywhere;
}
.rg-fuss-kontakt svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--primary-red); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rg-fuss-kontakt:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Handy: Links nebeneinander, ab 600 px als Spalte */
.rg-fuss-recht { display: flex; flex-wrap: wrap; align-items: center; column-gap: 1.5rem; }
.rg-fuss-recht .rg-fuss-titel { flex-basis: 100%; }
.rg-fuss-recht a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.rg-fuss-recht a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.rg-fuss-unten {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.35rem 1.5rem;
    width: 100%; max-width: 1180px; margin: 0 auto;
    padding: 1.1rem var(--rg-seite-r) calc(1.25rem + env(safe-area-inset-bottom)) var(--rg-seite-l);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.8rem; color: rgba(255, 255, 255, 0.45);
}
.rg-fuss-unten a { padding-block: 0.8rem; color: rgba(255, 255, 255, 0.8); font-weight: 600; text-underline-offset: 3px; }
.rg-fuss-unten a:hover { color: #fff; }

/* ---------- Bewegung: einmal sanft herein ---------- */
@media (prefers-reduced-motion: no-preference) {
    .rg-intro, .rg-karte, .rg-weiter { animation: rg-herein 0.6s var(--rg-ease) both; }
    .rg-karte { animation-delay: 0.08s; }
    .rg-weiter { animation-delay: 0.16s; }
    .rg-brief-punkt { animation: rg-punkt 0.5s var(--rg-ease) 0.5s both; }
}
@keyframes rg-herein { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rg-punkt { from { transform: scale(0); } to { transform: scale(1); } }

/* ---------- Ab 380 px: Vor- und Nachname nebeneinander ---------- */
@media (min-width: 380px) {
    .rg-reihe { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
}

/* ---------- Unter 360 px (Galaxy Fold zugeklappt, alte Kleingeräte): Kopf und Karte enger ---------- */
@media (max-width: 359.98px) {
    :root { --rg-gutter: 1rem; }
    .rg-logo img { height: 22px; }
    .rg-anmelden { gap: 0.35rem; padding-inline: 0.75rem 0.85rem; font-size: 0.85rem; }
    .rg-anmelden svg { width: 16px; height: 16px; }
    .rg-schrittleiste, .rg-schrittleiste li { gap: 0.4rem; }
    .rg-schrittleiste li + li::before { width: 14px; }
    .rg-karte { padding-inline: 1rem; }
}

/* ---------- Kleine Handys (iPhone SE): newio-ID auf „Fast geschafft“ ohne Scrollen im Blick ---------- */
@media (max-width: 599.98px) and (max-height: 700px) {
    .rg-main--fertig { padding-top: 1rem; }
    .rg-karte--fertig { padding-top: 1.5rem; }
    .rg-brief { width: 60px; height: 60px; margin-bottom: 0.75rem; }
    .rg-brief svg { width: 32px; height: 32px; }
    .rg-brief-punkt { top: 10px; right: 9px; width: 12px; height: 12px; }
    .rg-id { margin-top: 1.1rem; }
}

/* ---------- Tablet ---------- */
@media (min-width: 600px) {
    :root { --rg-gutter: 2rem; }
    .rg-logo { min-height: 72px; }
    .rg-logo img { height: 30px; }
    .rg-kopf-frage { display: inline; }
    .rg-schrittleiste { justify-content: center; }
    .rg-raster { padding-top: 2rem; gap: 2.25rem; }
    .rg-karte { padding: 2rem 2rem 1.75rem; border-radius: 28px; }
    .rg-karte--fertig { padding: 2.5rem 2.5rem 2rem; }
    .rg-main--fertig { padding-top: 2.5rem; }
    .rg-form { gap: 1.25rem; }
    .rg-fuss-innen { grid-template-columns: 1fr 1fr; padding-top: 3.25rem; }
    .rg-fuss-marke { grid-column: 1 / -1; }
    .rg-fuss-recht { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; }
    .rg-fuss-recht .rg-fuss-titel { flex-basis: auto; }
}

/* ---------- Desktop: Einstieg und Schritte links, Formular rechts ---------- */
@media (min-width: 1000px) {
    .rg-raster {
        grid-template-columns: minmax(0, 1fr) minmax(420px, 470px);
        grid-template-rows: auto 1fr;
        grid-template-areas: "intro karte" "weiter karte";
        column-gap: clamp(3rem, 7vw, 6.5rem); row-gap: 2.75rem;
        max-width: 1180px;
        padding: 3.5rem 2.5rem 4.5rem;
        align-items: start;
    }
    .rg-intro { padding-top: 1.5rem; }
    .rg-titel { font-size: clamp(2.6rem, 3.6vw, 3.4rem); }
    .rg-weiter { max-width: 30rem; }
    .rg-karte { position: sticky; top: 1.5rem; }

    .rg-kopf-innen {
        grid-template-columns: 1fr auto 1fr;
        grid-template-areas: "logo schritte rechts";
        padding-inline: 2.5rem;
    }
    .rg-logo { min-height: 80px; }
    .rg-schrittleiste { padding: 0; border-top: 0; gap: 0.75rem; }
    .rg-schrittleiste li + li::before { width: 36px; }

    .rg-fuss-innen { grid-template-columns: 1.5fr 1fr 0.7fr; gap: 3rem; padding: 3.75rem 2.5rem 2.75rem; }
    .rg-fuss-marke { grid-column: auto; }
    .rg-fuss-unten { padding-inline: 2.5rem; }
}

/* ---------- Handy quer: Kopf in einer Zeile, damit das Formular früher ins Bild kommt ---------- */
@media (min-width: 600px) and (max-width: 999.98px) and (max-height: 500px) {
    .rg-kopf-innen { grid-template-columns: auto 1fr auto; grid-template-areas: "logo schritte rechts"; column-gap: 1rem; }
    .rg-logo { min-height: 60px; }
    .rg-logo img { height: 26px; }
    .rg-kopf-frage { display: none; }
    .rg-schrittleiste { padding: 0; border-top: 0; }
    .rg-schrittleiste li + li::before { width: 24px; }
    .rg-schrittleiste li:not(.is-jetzt) .rg-sl-text {
        position: absolute; width: 1px; height: 1px; margin: -1px;
        overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
    }
    .rg-raster { padding-top: 1.25rem; gap: 1.75rem; }
    .rg-titel { font-size: 2.25rem; }
    .rg-unterzeile { margin-top: 0.7rem; font-size: 1rem; }
    .rg-main--fertig { padding-top: 1.5rem; }
}
