/* geaendert 2026-08-07 18:10:00: Stets sichtbaren Rueckweg zur Bewerbung und Anmeldung auch mobil hervorgehoben. */
/* geaendert 2026-07-23 19:42:00: Schulname und aufklappbare Smartphone-Navigation gestaltet. */
/* geaendert 2026-07-23 18:26:30: Zentralen Kontologin und vererbte Startseitenrahmen gestalten. */
/* geaendert 2026-07-23 15:47: Einheitliche Schaltflaechen und drei vererbte Panel-Ecken anwenden. */
/* geaendert 2026-07-24 00:05:00: Globale Schaltflaechen- und Formularkonto-Gestaltung anwenden. */
/* geaendert 2026-08-19 00:05:00: Ausblendbare Feldbezeichnungen fuer Screenreader zugaenglich halten. */
/* geaendert 2026-07-23 21:30:00: Individuelle Gestaltung und Grafiken je Formulargruppe ergaenzt. */

.field-label-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
/* geaendert 2026-07-23 17:30:00: Smartphone-Bedienung, Touchflaechen und schmale Inhaltsbereiche verbessert. */
:root {
    --brand: #0f766e;
    --brand-2: #6d28d9;
    --brand-ink: #0b3d39;
    --bg-soft: #f4f7fb;
    --panel: #ffffff;
    --panel-soft: #f8fafc;
    --border-soft: #d9e2ec;
    --text: #1f2937;
    --muted: #667085;
    --danger: #b42318;
    --danger-bg: #fff1f3;
    --info-bg: #eef6ff;
    --info-border: #c7ddff;
    --shadow-soft: 0 14px 40px rgba(15, 23, 42, .07);
    --radius-xl: 22px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --space-1: .35rem;
    --space-2: .65rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
            radial-gradient(circle at top right, rgba(109, 40, 217, .08), transparent 26%),
            radial-gradient(circle at top left, rgba(15, 118, 110, .08), transparent 24%),
            var(--landing-background, var(--form-page-background, var(--bg-soft)));
    color: var(--text);
}

a { color: var(--brand); }

.frontend2-form-navigation {
    min-height: 56px;
    display: flex;
    align-items: stretch;
    gap: .35rem;
    padding: 0 .9rem;
    color: var(--frontend2-nav-text, #fff);
    background: var(--frontend2-nav-background, var(--brand));
    border-bottom: 3px solid color-mix(in srgb, var(--frontend2-nav-page-background, #f4f7fb) 70%, transparent);
    box-shadow: 0 5px 18px rgba(15, 23, 42, .14);
    position: sticky;
    top: 0;
    z-index: 50;
}

.frontend2-form-navigation a {
    color: inherit;
    text-decoration: none;
}

.frontend2-form-navigation-home,
.frontend2-form-navigation-return,
.frontend2-form-navigation-link {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 53px;
    padding: .65rem .85rem;
    border-radius: min(10px, var(--frontend2-nav-radius, 10px));
    font-weight: 650;
    white-space: nowrap;
}

.frontend2-form-navigation-return {
    display: inline-flex;
    align-items: center;
    align-self: center;
    gap: .4rem;
    min-height: 40px;
    padding: .45rem .7rem;
    border: 1px solid color-mix(in srgb, currentColor 55%, transparent);
    border-radius: min(6px, var(--frontend2-nav-radius, 6px));
    background: color-mix(in srgb, currentColor 13%, transparent);
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
}

.frontend2-form-navigation-home {
    gap: .55rem;
    border-right: 1px solid color-mix(in srgb, currentColor 28%, transparent);
    border-radius: 0;
    padding-left: .25rem;
    padding-right: 1rem;
}

.frontend2-form-navigation-brand-text {
    min-width: 0;
    max-width: 260px;
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.frontend2-form-navigation-brand-text strong {
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: .9rem;
}

.frontend2-form-navigation-brand-text > span {
    font-size: .72rem;
    font-weight: 500;
    opacity: .86;
}

.frontend2-form-navigation-mark {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 .35rem;
    border: 1px solid color-mix(in srgb, currentColor 42%, transparent);
    border-radius: min(8px, var(--frontend2-nav-radius, 8px));
    font-weight: 800;
}

.frontend2-form-navigation-logo {
    display: inline-flex;
    align-items: center;
    max-width: 150px;
    height: 38px;
}

.frontend2-form-navigation-logo img {
    display: block;
    width: auto;
    max-width: 150px;
    height: 36px;
    object-fit: contain;
}

.frontend2-form-navigation-links {
    min-width: 0;
    display: flex;
    align-items: stretch;
    gap: .2rem;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

.frontend2-form-navigation-toggle {
    display: none;
    align-self: center;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid color-mix(in srgb, currentColor 45%, transparent);
    border-radius: min(8px, var(--frontend2-nav-radius, 8px));
    color: inherit;
    background: transparent;
    cursor: pointer;
}

.frontend2-form-navigation-toggle:hover,
.frontend2-form-navigation-toggle:focus-visible {
    background: color-mix(in srgb, currentColor 16%, transparent);
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.frontend2-form-navigation-toggle-lines {
    display: grid;
    gap: 4px;
}

.frontend2-form-navigation-toggle-lines i {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: transform .18s ease, opacity .18s ease;
}

.frontend2-form-navigation.is-menu-open .frontend2-form-navigation-toggle-lines i:first-child {
    transform: translateY(6px) rotate(45deg);
}

.frontend2-form-navigation.is-menu-open .frontend2-form-navigation-toggle-lines i:nth-child(2) {
    opacity: 0;
}

.frontend2-form-navigation.is-menu-open .frontend2-form-navigation-toggle-lines i:last-child {
    transform: translateY(-6px) rotate(-45deg);
}

.frontend2-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.frontend2-form-navigation-links::-webkit-scrollbar {
    display: none;
}

.frontend2-form-navigation-link {
    scroll-snap-align: start;
}

.frontend2-form-navigation-link:hover,
.frontend2-form-navigation-link:focus-visible,
.frontend2-form-navigation-return:hover,
.frontend2-form-navigation-return:focus-visible,
.frontend2-form-navigation-home:hover,
.frontend2-form-navigation-home:focus-visible {
    background: color-mix(in srgb, currentColor 16%, transparent);
    outline: none;
}

.frontend2-form-navigation-link.is-current {
    background: color-mix(in srgb, currentColor 24%, transparent);
    box-shadow: inset 0 -3px 0 currentColor;
}

.frontend2-form-navigation-lock {
    margin-left: .5rem;
    padding: .12rem .4rem;
    border: 1px solid color-mix(in srgb, currentColor 45%, transparent);
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.app-topbar {
    min-height: 70px;
    padding: .65rem 1.35rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    background: #fff;
    border-bottom: 1px solid #d9e2ec;
    box-shadow: 0 6px 22px rgba(15, 23, 42, .08);
    position: sticky;
    top: 56px;
    z-index: 30;
}

.app-topbar-brand { color: #10243d; display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.app-topbar-brand > span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.app-topbar-brand small { color: var(--muted); font-size: .78rem; }
.app-topbar-logo { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-weight: 800; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.app-topbar-logo-custom { width: auto; min-width: 44px; max-width: 180px; padding: .25rem .4rem; background: transparent; }
.app-topbar-logo-custom img { display: block; width: auto; max-width: 164px; height: 40px; object-fit: contain; }
.app-topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: .55rem; flex-wrap: wrap; }
.app-topbar-actions a,
.app-topbar-actions button,
.app-account-label { border: 1px solid #d9e2ec; border-radius: 10px; padding: .58rem .78rem; background: #f8fafc; color: #24364b; text-decoration: none; font: inherit; font-size: .9rem; cursor: pointer; }
.app-topbar-actions a:hover { background: #eef6ff; border-color: #b9d2ef; }
.app-topbar-actions .app-logout-link { color: #9f1c14; }
.legacy-form-actions { display: none !important; }
.preview-content { max-width: 1320px; margin: 0 auto; }
.preview-step { margin-bottom: 2rem; }
.preview-fieldset { padding: 0; min-inline-size: 0; }

.app-shell {
    min-height: calc(100vh - 126px);
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
}

.sidebar {
    background: var(--form-sidebar-background, linear-gradient(180deg, #10243d 0%, #132b4b 58%, #173760 100%));
    color: var(--form-sidebar-text, #f8fbff);
    padding: var(--space-4);
    position: sticky;
    top: 126px;
    min-height: calc(100vh - 126px);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.sidebar .progress-meta strong,
.sidebar .progress-meta span,
.sidebar .step-item a,
.sidebar .sidebar-card-label,
.sidebar .sidebar-help p {
    color: var(--form-sidebar-text, #f8fbff);
}

.sidebar-card,
.sidebar-help {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-lg);
    padding: 1rem 1rem 1.05rem;
    backdrop-filter: blur(6px);
}

.sidebar-card-label {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #c8d8ef;
    margin-bottom: .45rem;
}

.progress-meta {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    margin-bottom: .8rem;
}

.progress-meta strong {
    color: #fff;
}

.progress-meta span {
    color: #d7e5f8;
    font-size: .95rem;
}

.progress-track {
    height: 10px;
    border-radius: 999px;
    background: var(--form-progress-track-color, rgba(255,255,255,.12));
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 999px;
    background: var(--form-progress-color, linear-gradient(90deg, var(--brand), var(--brand-2)));
}

.sidebar-nav { flex: 1 1 auto; }

.step-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.step-item a {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    gap: .8rem;
    align-items: center;
    padding: .8rem .9rem;
    text-decoration: none;
    color: #dce7f6;
    border-radius: var(--panel-radius-level-3, 2px);
    transition: background .16s ease, transform .16s ease;
}

.step-item a:hover {
    background: rgba(255,255,255,.08);
    transform: translateX(2px);
}

.step-item.active a {
    background: rgba(255,255,255,.14);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.step-number {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 700;
    background: rgba(255,255,255,.14);
    color: inherit;
}

.step-item.active .step-number {
    background: var(--form-progress-color, linear-gradient(135deg, var(--brand), var(--brand-2)));
}

.step-item.incomplete a { box-shadow: inset 4px 0 0 #f59e0b; }
.step-status { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 999px; background: #f59e0b; color: #281500; font-weight: 900; }

.step-text {
    line-height: 1.25;
    font-size: .95rem;
}

.sidebar-help p {
    margin: 0;
    color: #d7e5f8;
    line-height: 1.45;
    font-size: .95rem;
}

.sidebar-help.has-notice {
    border-color: rgba(245, 158, 11, .72);
    box-shadow: inset 4px 0 0 #f59e0b;
}

.form-info-button {
    width: 100%;
    display: grid;
    grid-template-columns: 30px 1fr auto;
    align-items: center;
    gap: .65rem;
    min-height: 44px;
    padding: .4rem 0;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.form-info-button:hover span:nth-child(2),
.form-info-button:focus-visible span:nth-child(2) {
    text-decoration: underline;
}

.form-info-icon,
.form-info-notice {
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-weight: 900;
}

.form-info-icon {
    width: 28px;
    height: 28px;
    background: #dbeafe;
    color: #153b6a;
    font-family: Georgia, serif;
}

.form-info-notice {
    width: 24px;
    height: 24px;
    background: #f59e0b;
    color: #281500;
}

.form-info-dialog {
    width: min(680px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    padding: 0;
    border: 0;
    border-radius: var(--panel-radius-level-1, var(--card-radius, var(--radius-xl)));
    color: var(--ink);
    background: var(--panel);
    box-shadow: 0 28px 80px rgba(15, 23, 42, .34);
}

.form-info-dialog::backdrop {
    background: rgba(15, 23, 42, .58);
    backdrop-filter: blur(3px);
}

.form-info-dialog-header,
.form-info-dialog-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.35rem;
}

.form-info-dialog-header {
    border-bottom: 1px solid var(--border-soft);
}

.form-info-dialog-header h2 {
    margin: .2rem 0 0;
    font-size: 1.4rem;
}

.form-info-close {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 1.65rem;
    line-height: 1;
    cursor: pointer;
}

.form-info-close:hover {
    background: #f1f5f9;
}

.form-info-dialog-body {
    padding: .25rem 1.35rem;
    overflow: auto;
}

.form-info-dialog-body section {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-soft);
}

.form-info-dialog-body h3 {
    margin: 0 0 .45rem;
    font-size: 1.05rem;
}

.form-info-dialog-body p,
.form-info-dialog-body ul {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.form-info-dialog-body li + li {
    margin-top: .35rem;
}

.form-info-dialog-body .form-info-current-notice {
    margin-top: .85rem;
    padding: .8rem .9rem;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    background: #fff7ed;
    color: #6b3410;
}

.form-info-dialog-actions {
    justify-content: flex-end;
}

.form-info-close {
    min-width: 44px;
    min-height: 44px;
}

.content {
    padding: var(--space-5);
}

.page-hero {
    margin-bottom: var(--space-4);
    padding: 1.15rem 1.35rem;
    border: var(--form-border-width, 1px) solid var(--form-border-color, rgba(15, 118, 110, .12));
    border-radius: var(--panel-radius-level-1, var(--radius-lg));
    background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.76));
    box-shadow: var(--shadow-soft);
}

.page-kicker {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--brand);
    margin-bottom: .25rem;
}

.page-hero h2 {
    margin: 0 0 .35rem;
    font-size: 1.65rem;
}

.page-hero p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.card {
    background: var(--panel);
    border: 1px solid var(--border-soft);
    border-radius: var(--panel-radius-level-1, var(--card-radius, var(--radius-xl)));
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.group {
    padding: 1.35rem 1.5rem 1.5rem;
    margin: 1rem;
    background: var(--group-background, transparent);
    border: var(--group-border-width, 0) solid var(--group-border-color, var(--border-soft));
    border-radius: var(--group-radius, var(--panel-radius-level-2, 0));
}

.group:first-child {
    margin-top: 1rem;
}

.group h3 {
    margin: 0 0 .2rem;
    font-size: 1.08rem;
    color: var(--brand-ink);
}

.group .muted {
    margin-top: .35rem;
}

.group-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.group-heading-text {
    min-width: 0;
    flex: 1;
}

.group-image {
    flex: 0 1 220px;
    max-width: 220px;
}

.group-image img {
    display: block;
    width: 100%;
    max-height: 140px;
    object-fit: contain;
}

.group-image-above .group-heading {
    display: block;
}

.group-image-above .group-image {
    max-width: 100%;
    margin-bottom: .85rem;
}

.group-image-right .group-image {
    order: 2;
}

.fields {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.group-layout-two-column .fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.group-layout-columns-1 .fields { grid-template-columns: minmax(0, 1fr); }
.group-layout-columns-2 .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.group-layout-columns-3 .fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.group-layout-columns-4 .fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.field {
    display: flex;
    flex-direction: column;
}

.field label {
    display: block;
    margin-bottom: .42rem;
    font-weight: 600;
    color: #213547;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    border: 1px solid var(--border-soft);
    border-radius: var(--panel-radius-level-3, 2px);
    padding: .82rem .95rem;
    font: inherit;
    background: #fff;
    color: var(--text);
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.field textarea {
    min-height: 130px;
    resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: rgba(15, 118, 110, .5);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, .12);
}

.field-required:not(.field-is-complete) > input:not([type="checkbox"]):not([type="radio"]),
.field-required:not(.field-is-complete) > textarea,
.field-required:not(.field-is-complete) > select {
    border-color: #dc2626;
    background: #fffdfd;
}

.field-required:not(.field-is-complete) > .choice-inline,
.field-required:not(.field-is-complete) > .choice-group {
    border-left: 4px solid #dc2626;
    padding-left: .75rem;
}

.field-hidden {
    display: none;
}

.field-suggestions { margin-top: .3rem; border: 1px solid #b9c8da; border-radius: var(--panel-radius-level-3, 2px); background: #fff; box-shadow: 0 14px 30px rgba(15, 23, 42, .14); max-height: 260px; overflow-y: auto; position: relative; z-index: 12; }
.field-suggestion { width: 100%; border: 0; border-bottom: 1px solid #e5ebf2; background: #fff; color: #172033; padding: .7rem .85rem; text-align: left; font: inherit; cursor: pointer; }
.field-suggestion:last-child { border-bottom: 0; }
.field-suggestion:hover,
.field-suggestion:focus { background: #eef6ff; outline: none; }

.field-has-error {
    padding: .75rem;
    border: 1px solid #f2b7bd;
    border-radius: var(--radius-md);
    background: var(--danger-bg);
}

.field-has-error > input,
.field-has-error > textarea,
.field-has-error > select {
    border-color: var(--danger);
}

.required {
    color: var(--danger);
    margin-left: .15rem;
}

.help-text,
.muted {
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.45;
}

.help-text {
    margin-top: .4rem;
}

.error-text {
    color: var(--danger);
    font-size: .92rem;
    margin-top: .38rem;
}

.choice-group {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem 1rem;
    padding-top: .2rem;
}

.choice-inline {
    display: inline-flex !important;
    align-items: center;
    gap: .5rem;
    font-weight: 400 !important;
    margin: 0;
    color: var(--text);
}

.choice-inline input {
    width: auto;
    margin: 0;
}

.alert {
    margin-bottom: 1rem;
    padding: .95rem 1rem;
    border-radius: var(--panel-radius-level-3, var(--account-panel-radius-level-3, 2px));
    border: 1px solid transparent;
    box-shadow: var(--shadow-soft);
}

.alert-danger {
    background: var(--danger-bg);
    border-color: #f2b7bd;
    color: #8d1e2e;
}

.alert-info {
    background: var(--info-bg);
    border-color: var(--info-border);
    color: #224b84;
}

.alert-link-row {
    margin-top: .45rem;
}

.validation-summary p {
    margin: .4rem 0;
}

.validation-summary ul {
    margin: .4rem 0 0;
    padding-left: 1.25rem;
}

.validation-summary a {
    color: inherit;
    font-weight: 600;
}

.actions {
    border-top: 1px solid var(--border-soft);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: var(--panel-soft);
}

.actions-meta {
    min-width: 0;
}

.btn-primary {
    border: 0;
    border-radius: var(--panel-radius-level-3, var(--account-panel-radius-level-3, 2px));
    padding: .88rem 1.25rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    color: var(--frontend2-button-text, #fff);
    background: var(--frontend2-button-background, var(--brand));
    box-shadow: 0 12px 24px rgba(15, 118, 110, .18);
    min-width: 190px;
}

.btn-primary:hover {
    filter: brightness(1.03);
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(15,118,110,.14), 0 12px 24px rgba(15, 118, 110, .18);
}

@media (max-width: 1100px) {
    .app-shell {
        grid-template-columns: 280px minmax(0, 1fr);
    }

    .group-layout-columns-3 .fields,
    .group-layout-columns-4 .fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .frontend2-form-navigation {
        min-height: 56px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: stretch;
        padding: 0 .55rem;
    }

    .frontend2-form-navigation-home {
        min-width: 0;
        padding-right: .7rem;
        border-right: 0;
    }

    .frontend2-form-navigation-return {
        justify-self: end;
        max-width: 11rem;
        min-height: 44px;
        padding: .4rem .55rem;
        white-space: normal;
        text-align: left;
    }

    .frontend2-form-navigation-brand-text {
        max-width: none;
    }

    .frontend2-form-navigation-brand-text strong {
        white-space: normal;
        overflow-wrap: anywhere;
        text-overflow: clip;
    }

    .frontend2-form-navigation-toggle {
        display: inline-grid;
        place-items: center;
    }

    .frontend2-form-navigation-links {
        grid-column: 1 / -1;
        display: none;
        width: 100%;
        padding: .3rem 0 .65rem;
        overflow: visible;
    }

    .frontend2-form-navigation.is-menu-open .frontend2-form-navigation-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .frontend2-form-navigation-link {
        width: 100%;
        min-height: 44px;
        padding-inline: .7rem;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    @media (max-width: 560px) {
        .frontend2-form-navigation-return {
            max-width: 8.5rem;
            font-size: .82rem;
        }
    }

    .app-topbar { align-items: flex-start; padding: .65rem .85rem; }
    .app-topbar-actions { justify-content: flex-start; }
    .app-account-label { width: 100%; }

    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        min-height: auto;
    }

    .content {
        padding: 1rem;
    }

    .group-layout-two-column .fields,
    .group-layout-columns-2 .fields,
    .group-layout-columns-3 .fields,
    .group-layout-columns-4 .fields {
        grid-template-columns: 1fr;
    }

    .actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary {
        width: 100%;
        min-width: 0;
    }
}

.actions-left,
.actions-right {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: .88rem 1.1rem;
    border-radius: var(--panel-radius-level-3, var(--account-panel-radius-level-3, 2px));
    border: 1px solid var(--frontend2-button-background, var(--brand));
    background: var(--frontend2-button-background, var(--brand));
    color: var(--frontend2-button-text, #fff);
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
}

.btn-secondary:hover {
    filter: brightness(.94);
}

@media (max-width: 900px) {
    .actions-left,
    .actions-right {
        width: 100%;
    }

    .btn-secondary {
        width: 100%;
    }
}

.alert-success {
    background: #eefaf3;
    border-color: #b7e3c8;
    color: #166534;
}

.landing-shell {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

.landing-hero {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1.35rem 1.5rem;
    border: 1px solid var(--landing-border, rgba(15, 118, 110, .12));
    border-radius: var(--panel-radius-level-1, var(--card-radius, var(--radius-xl)));
    background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.8));
    box-shadow: var(--shadow-soft);
}

.landing-badge {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-weight: 800;
    letter-spacing: .04em;
    background: linear-gradient(135deg, var(--landing-accent, var(--brand)), var(--brand-2));
    color: #fff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, .12);
}

.landing-eyebrow {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--brand);
    margin-bottom: .25rem;
}

.landing-hero h1 {
    margin: 0 0 .35rem;
    font-size: 2rem;
}

.landing-hero p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.landing-grid {
    display: grid;
    grid-template-columns: repeat(var(--landing-form-columns, 2), minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.service-card {
    background: var(--panel);
    border: 1px solid var(--landing-border, var(--border-soft));
    border-radius: var(--panel-radius-level-1, var(--card-radius, var(--radius-xl)));
    box-shadow: var(--shadow-soft);
    padding: 1.35rem 1.5rem 1.5rem;
}

.service-card-kicker {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--brand);
    margin-bottom: .35rem;
}

.service-card h2 {
    margin: 0 0 .5rem;
    font-size: 1.25rem;
}

.service-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.service-actions {
    margin-top: 1.15rem;
    display: flex;
    gap: .75rem;
    align-items: center;
}

.service-actions-stack {
    flex-direction: column;
    align-items: flex-start;
}

.btn-link {
    text-decoration: none;
}

@media (max-width: 900px) {
    .landing-grid {
        grid-template-columns: 1fr;
    }

    .landing-hero {
        align-items: flex-start;
    }
}
.required-marker {
    color: #b42318;
    font-weight: 700;
    margin-left: 0.2rem;
}

.account-entry-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: 1.25rem;
    padding: 1.5rem;
    align-items: start;
}

.account-panel,
.account-pending-panel {
    border: var(--form-border-width, 1px) solid var(--form-border-color, var(--border-soft));
    border-radius: var(--panel-radius-level-2, var(--radius-lg));
    background: var(--panel-soft);
    padding: 1.25rem;
}

.account-panel-login {
    background: linear-gradient(180deg, #f7fffd, #ffffff);
    border-color: rgba(15, 118, 110, .25);
}

.account-panel-register summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    list-style: none;
}

.account-panel-register summary::-webkit-details-marker {
    display: none;
}

.account-panel-register summary::after {
    content: "+";
    font-size: 1.5rem;
    line-height: 1;
    color: var(--landing-accent, var(--brand));
}

.landing-content-block {
    margin-top: 1rem;
    border-left: 5px solid var(--landing-accent, var(--brand));
}

.landing-badge-custom { width: auto; min-width: 58px; max-width: 220px; padding: .35rem .55rem; background: #fff; }
.landing-badge-custom img { display: block; width: auto; max-width: 200px; height: 50px; object-fit: contain; }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; padding: .8rem 1rem; border: 1px solid var(--info-border); border-radius: var(--panel-radius-level-2, var(--card-radius, var(--radius-lg))); background: var(--info-bg); }
.preview-toolbar-fixed { margin: .75rem 1rem 0; }
.preview-toolbar-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.preview-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.preview-fieldset:disabled { opacity: 1; }
.page-hero,
.sidebar-card,
.sidebar-help,
.account-panel,
.account-pending-panel,
.preview-step .preview-fieldset { border-radius: var(--panel-radius-level-2, var(--card-radius, var(--radius-lg))); }

.landing-content-block h2 {
    margin: 0 0 .45rem;
}

.landing-rich-text {
    color: var(--muted);
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.landing-rich-text > :first-child {
    margin-top: 0;
}

.landing-rich-text > :last-child {
    margin-bottom: 0;
}

.landing-rich-text h2,
.landing-rich-text h3,
.landing-rich-text h4 {
    color: var(--ink);
}

.landing-rich-text a {
    color: var(--landing-accent, var(--brand));
    text-decoration-thickness: .08em;
    text-underline-offset: .15em;
}

.landing-rich-text table {
    width: 100%;
    border-collapse: collapse;
}

.landing-rich-text pre {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.landing-rich-text table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.landing-rich-text th,
.landing-rich-text td {
    padding: .55rem .65rem;
    border: 1px solid var(--border-soft);
    text-align: left;
    vertical-align: top;
}

.landing-rich-text blockquote {
    margin-left: 0;
    padding-left: 1rem;
    border-left: 4px solid var(--landing-accent, var(--brand));
}

.account-panel-register[open] summary::after {
    content: "−";
}

.account-panel h3,
.account-pending-panel h3 {
    margin: .25rem 0 .4rem;
}

.account-panel-kicker {
    display: block;
    color: var(--brand);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.account-summary-hint {
    color: var(--muted);
    font-size: .84rem;
}

.account-panel-body {
    margin-top: 1rem;
}

.account-panel-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .85rem 1rem;
    margin-top: 1.1rem;
}

.account-panel-actions .btn-primary {
    min-width: 160px;
}

.account-panel-actions > a:not(.btn-primary):not(.btn-secondary) {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: .65rem .2rem;
}

.account-panel-register summary {
    min-height: 52px;
}

.account-pending-panel {
    margin: 1.5rem;
    background: var(--info-bg);
    border-color: var(--info-border);
}

@media (max-width: 900px) {
    .account-entry-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .account-panel-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .account-panel-actions .btn-primary,
    .account-panel-actions .btn-secondary {
        width: 100%;
    }

    .account-panel-actions > a:not(.btn-primary):not(.btn-secondary) {
        width: 100%;
        justify-content: center;
        border: 1px solid var(--border-soft);
        border-radius: var(--panel-radius-level-3, 2px);
        background: #fff;
    }

    .account-summary-hint {
        display: none;
    }
}

@media (max-width: 560px) {
    .app-topbar {
        flex-wrap: wrap;
        gap: .65rem;
    }

    .app-topbar-actions {
        width: 100%;
    }

    .app-topbar-actions a,
    .app-topbar-actions button {
        min-height: 44px;
        flex: 1 1 auto;
        justify-content: center;
    }

    .landing-shell {
        padding: 1rem .75rem 2rem;
    }

    .landing-hero,
    .service-card {
        padding: 1rem;
    }

    .landing-hero h1 {
        font-size: clamp(1.65rem, 9vw, 2rem);
        overflow-wrap: anywhere;
    }

    .form-info-dialog {
        width: calc(100vw - 1rem);
        max-height: calc(100dvh - 1rem);
    }

    .form-info-dialog-header,
    .form-info-dialog-actions {
        padding: .85rem;
    }

    .form-info-dialog-body {
        padding-inline: .85rem;
    }

    .form-info-dialog-actions .btn-primary {
        width: 100%;
    }
}

.account-page-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
}

.account-lifecycle-page {
    min-height: 100vh;
    margin: 0;
    background: var(--account-page-background, #f4f7fb);
}

.account-lifecycle-card {
    width: min(100%, 620px);
    padding: 1.5rem;
    border: 1px solid var(--account-border-color, var(--border-soft));
    border-radius: var(--account-panel-radius-level-1, var(--account-card-radius, var(--radius-xl)));
    background: var(--account-panel-background, var(--panel));
    box-shadow: var(--shadow-soft);
}

.landing-hero-content {
    flex: 1 1 auto;
    min-width: 0;
}

.landing-hero--logo-right .landing-badge {
    order: 2;
}

.landing-hero--logo-above,
.landing-hero--logo-below {
    flex-direction: column;
    align-items: flex-start;
}

.landing-hero--logo-below .landing-badge {
    order: 2;
}

.account-lifecycle-card h1 {
    margin: .25rem 0 .75rem;
    font-size: 1.65rem;
}

.account-lifecycle-card > p {
    color: var(--muted);
    line-height: 1.55;
}

.account-lifecycle-form {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
}

.account-lifecycle-form label {
    display: grid;
    gap: .45rem;
    color: #213547;
    font-weight: 600;
}

.account-lifecycle-form input {
    width: 100%;
    border: 1px solid var(--account-border-color, var(--border-soft));
    border-radius: var(--account-panel-radius-level-3, 2px);
    padding: .82rem .95rem;
    font: inherit;
}

.account-lifecycle-form input:focus {
    outline: none;
    border-color: rgba(15, 118, 110, .5);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, .12);
}

.account-access-shell {
    align-items: start;
    min-height: calc(100vh - 56px);
}

.account-access-card {
    width: min(100%, 680px);
}

/* geaendert 2026-08-26 19:03:46: Auswahl des Kontozugangs als eindeutige Ein-Masken-Navigation gestaltet. */
.account-access-choice {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
    margin: 1.25rem 0;
}

.account-access-choice-link {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: .65rem .75rem;
    border: 1px solid var(--account-border-color, var(--border-soft));
    border-radius: var(--account-panel-radius-level-2, 4px);
    color: var(--text-strong, #213547);
    background: var(--account-panel-background, #fff);
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.account-access-choice-link:hover,
.account-access-choice-link:focus-visible {
    border-color: var(--frontend2-button-background, #0f766e);
}

.account-access-choice-link.is-active {
    border-color: var(--frontend2-button-background, #0f766e);
    color: var(--frontend2-button-text, #fff);
    background: var(--frontend2-button-background, #0f766e);
}

.account-access-links {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem 1rem;
    margin: 1rem 0 1.25rem;
}

/* geaendert 2026-08-07 15:25:00: Alternative Schulzugangswege platzsparend und smartphonegerecht darstellen. */
.account-register-details,
.account-existing-access-details {
    border: 1px solid var(--account-border-color, var(--border-soft));
    border-radius: var(--account-panel-radius-level-2, 4px);
    background: color-mix(in srgb, var(--account-panel-background, #fff) 94%, var(--account-border-color, #cbd5e1));
}

.account-existing-access-details {
    margin-bottom: .8rem;
}

.account-register-details > summary,
.account-existing-access-details > summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: .75rem 1rem;
    cursor: pointer;
    font-weight: 700;
}

.account-register-content,
.account-existing-access-content {
    padding: 0 1rem 1rem;
    border-top: 1px solid var(--account-border-color, var(--border-soft));
}

.account-register-content > p,
.account-existing-access-content > p,
.account-access-method > p {
    color: var(--muted);
    line-height: 1.55;
}

.account-access-method + .account-access-method {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--account-border-color, var(--border-soft));
}

.account-access-method h2 {
    margin: 1rem 0 .25rem;
    font-size: 1.05rem;
}

@media (max-width: 520px) {
    .account-access-choice {
        grid-template-columns: 1fr;
    }
}

.field-error {
    margin-top: -.65rem;
    color: var(--danger);
    font-size: .9rem;
}

.btn-danger {
    border: 0;
    border-radius: var(--panel-radius-level-3, var(--account-panel-radius-level-3, 2px));
    padding: .88rem 1.25rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    color: #fff;
    background: var(--danger);
}

.account-page-footer {
    margin-top: 1.35rem;
    padding-top: 1rem;
    border-top: var(--form-border-width, 1px) solid var(--form-border-color, var(--border-soft));
}

.frontend2-help {
    display: grid;
    gap: 1rem;
}

.help-jump-links {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    padding: .85rem;
    border: 1px solid var(--border-soft);
    border-radius: var(--panel-radius-level-1, var(--card-radius, var(--radius-xl)));
    background: var(--panel);
}

.help-jump-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: .55rem .85rem;
    border-radius: var(--panel-radius-level-3, 2px);
    color: #163a63;
    background: #eef6ff;
    text-decoration: none;
    font-weight: 700;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.guide-list {
    margin: .75rem 0;
    padding-left: 1.25rem;
    line-height: 1.6;
}

.guide-callout {
    margin-top: 1rem;
    padding: .85rem 1rem;
    border-left: 4px solid var(--landing-accent, var(--brand));
    border-radius: var(--panel-radius-level-2, 2px);
    background: var(--info-bg);
}

.guide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

@media (max-width: 760px) {
    .group {
        margin: .65rem;
        padding: 1rem;
    }

    .group-heading {
        display: block;
    }

    .group-image {
        max-width: 100%;
        margin-bottom: .75rem;
    }

    .help-grid {
        grid-template-columns: 1fr;
    }

    .help-jump-links a,
    .guide-actions .btn-link {
        flex: 1 1 100%;
        justify-content: center;
    }
}
/* geaendert 2026-07-23 23:15:00: Formularkonto an das reduzierte, responsive Seitendesign angeglichen. */

.account-overview-page {
    min-height: 100vh;
    margin: 0;
    background: var(--account-page-background, #f4f7fb);
    color: #1f2937;
}

.account-overview-bar {
    position: sticky;
    top: 64px;
    z-index: 850;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .7rem clamp(1rem, 3vw, 2.5rem);
    border-bottom: 1px solid var(--account-border-color, #cbd5e1);
    background: var(--account-panel-background, #fff);
    box-shadow: 0 2px 6px rgba(15, 23, 42, .08);
}

.account-overview-bar > div {
    display: flex;
    align-items: baseline;
    gap: .75rem;
    min-width: 0;
}

.account-overview-bar span {
    color: #64748b;
    overflow-wrap: anywhere;
}

.account-overview-main {
    width: 100%;
    box-sizing: border-box;
    padding: clamp(1rem, 3vw, 2.5rem);
}

.account-overview-intro {
    margin-bottom: 1.5rem;
}

.account-overview-intro h1,
.account-overview-section h2,
.account-overview-row h3 {
    margin-top: 0;
}

.account-overview-section {
    margin-bottom: 1.5rem;
    padding: clamp(1rem, 2vw, 1.5rem);
    border: 1px solid var(--account-border-color, #cbd5e1);
    border-radius: var(--account-panel-radius-level-1, var(--account-card-radius, 3px));
    background: var(--account-panel-background, #fff);
}

.account-overview-section h2 {
    padding-bottom: .65rem;
    border-bottom: 2px solid var(--frontend2-nav-background, #0f766e);
}

.account-overview-list {
    border-top: 1px solid var(--account-border-color, #dbe3ec);
}

.account-overview-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--account-border-color, #dbe3ec);
}

.account-overview-row h3 {
    margin-bottom: .35rem;
    font-size: 1.08rem;
}

.account-overview-row p,
.account-overview-actions form {
    margin: 0;
}

.account-overview-actions,
.account-overview-title-line {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
}

.account-overview-title-line h3 {
    margin-bottom: 0;
}

.account-overview-meta,
.account-overview-empty {
    color: #64748b;
}

.account-status {
    display: inline-block;
    padding: .2rem .55rem;
    border: 1px solid #cbd5e1;
    border-radius: 2px;
    background: #f8fafc;
    font-size: .78rem;
    font-weight: 700;
}

.account-status--draft {
    border-color: #fdba74;
    background: #fff7ed;
    color: #9a3412;
}

.account-status--submitted {
    border-color: #86efac;
    background: #ecfdf5;
    color: #166534;
}

@media (max-width: 760px) {
    .account-overview-bar {
        position: static;
        align-items: flex-start;
    }

    .account-overview-bar > div {
        display: block;
    }

    .account-overview-bar span {
        display: block;
        margin-top: .2rem;
    }

    .account-overview-row {
        grid-template-columns: 1fr;
    }

    .account-overview-actions,
    .account-overview-actions form,
    .account-overview-actions .btn {
        width: 100%;
    }
}
