:root {
    --green-950: #0d2a20;
    --green-900: #14382b;
    --green-800: #1c4b3a;
    --green-700: #28634d;
    --green-600: #34785e;
    --green-100: #e9f1ed;
    --green-050: #f4f8f6;

    --sand-100: #f3efe6;
    --sand-200: #e8dfcf;

    --gold: #b9975b;
    --gold-soft: #d8c49d;

    --ink: #17211d;
    --muted: #6f7d76;
    --line: #e7ece9;
    --surface: #ffffff;
    --canvas: #f5f7f5;

    --danger: #a64135;
    --danger-soft: #f9ebe8;
    --success: #256648;
    --success-soft: #e8f3ed;

    --shadow: 0 18px 45px rgba(17, 49, 38, .08);
    --shadow-soft: 0 12px 30px rgba(17, 49, 38, .045);

    --radius-xl: 28px;
    --radius-lg: 24px;
    --radius-md: 17px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100%;
    color: var(--ink);
    background: var(--canvas);
    font-family: "DM Sans", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.sidebar-open {
    overflow: hidden;
}

a {
    color: var(--green-700);
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

img {
    display: block;
    max-width: 100%;
}

textarea {
    resize: vertical;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
}

.sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 28px 22px 22px;
    color: #fff;
    background:
        radial-gradient(
            circle at 0 0,
            rgba(255, 255, 255, .08),
            transparent 32%
        ),
        linear-gradient(
            165deg,
            var(--green-900),
            var(--green-950)
        );
}

.sidebar-overlay {
    display: none;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 43px;
    height: 43px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    color: var(--green-950);
    background: var(--sand-100);
    font: 700 24px/1 "Playfair Display", serif;
}

.brand strong {
    display: block;
    font: 700 24px/1 "Playfair Display", serif;
    letter-spacing: -.4px;
}

.brand small {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, .58);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.main-nav {
    display: grid;
    gap: 7px;
    margin-top: 48px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 14px;
    border-radius: 12px;
    color: rgba(255, 255, 255, .68);
    font-size: 14px;
    font-weight: 600;
    transition:
        color .18s ease,
        background .18s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, .10);
}

.nav-icon {
    display: inline-grid;
    width: 22px;
    place-items: center;
    font-size: 17px;
}

.nav-divider {
    height: 1px;
    margin: 18px 7px 10px;
    background: rgba(255, 255, 255, .1);
}

.nav-section-label {
    padding: 4px 14px 1px;
    color: rgba(255, 255, 255, .38);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .10);
}

.user-card {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-card-link {
    margin: -8px;
    padding: 8px;
    border-radius: 13px;
    color: #fff;
    transition: background .18s ease;
}

.user-card-link:hover {
    background: rgba(255, 255, 255, .07);
}

.avatar {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--sand-100);
    color: var(--green-900);
    font-size: 13px;
    font-weight: 800;
}

.avatar.soft {
    background: var(--green-100);
}

.user-copy {
    min-width: 0;
}

.user-copy strong,
.user-copy small {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-copy strong {
    font-size: 13px;
}

.user-copy small {
    margin-top: 3px;
    color: rgba(255, 255, 255, .52);
    font-size: 11px;
}

.logout-button {
    margin-top: 14px;
    padding: 0;
    border: 0;
    color: rgba(255, 255, 255, .58);
    background: transparent;
    cursor: pointer;
    font-size: 12px;
}

.logout-button:hover {
    color: #fff;
}

.main-area {
    min-width: 0;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    min-height: 100px;
    padding: 22px 40px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
}

.topbar h1 {
    margin: 3px 0 0;
    font: 700 28px/1.1 "Playfair Display", serif;
}

.topbar-kicker {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.icon-button,
.menu-button {
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
}

.icon-button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--gold);
}

.menu-button {
    display: none;
    margin-right: 14px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.page-content {
    padding: 34px 40px 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background .18s ease,
        color .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #fff;
    background: var(--green-800);
    box-shadow: 0 8px 20px rgba(28, 75, 58, .18);
}

.btn-primary:hover {
    background: var(--green-900);
}

.btn-secondary {
    color: var(--green-900);
    border: 1px solid var(--line);
    background: #fff;
}

.btn-secondary:hover {
    border-color: var(--green-700);
    background: var(--green-050);
}

.btn-light {
    color: var(--green-900);
    background: #fff;
}

.btn-block {
    width: 100%;
}

.eyebrow {
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.eyebrow.light {
    color: #dac89f;
}

.muted {
    color: var(--muted);
}

.welcome-panel,
.student-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px 34px;
    border-radius: var(--radius-lg);
    color: #fff;
    background: linear-gradient(
        120deg,
        var(--green-900),
        var(--green-700)
    );
    box-shadow: var(--shadow);
}

.welcome-panel::after,
.student-hero::after {
    content: "";
    position: absolute;
    right: -50px;
    bottom: -85px;
    width: 270px;
    height: 180px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
    transform: rotate(-11deg);
}

.welcome-panel h2,
.student-hero h2 {
    margin: 7px 0 6px;
    font: 700 31px/1.1 "Playfair Display", serif;
}

.welcome-panel p,
.student-hero p {
    margin: 0;
    color: rgba(255, 255, 255, .72);
}

.weather-chip {
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 230px;
    padding: 13px 16px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 15px;
    background: rgba(255, 255, 255, .08);
}

.weather-icon {
    font-size: 27px;
}

.weather-chip strong,
.weather-chip small {
    display: block;
}

.weather-chip small {
    margin-top: 2px;
    color: rgba(255, 255, 255, .62);
    font-size: 11px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.stat-card,
.card-shell {
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.stat-card {
    padding: 21px 22px;
    border-radius: var(--radius-md);
}

.stat-card.attention {
    background: linear-gradient(145deg, #fff, #faf6ed);
}

.stat-label {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.stat-card strong {
    display: block;
    margin: 10px 0 5px;
    font: 700 31px/1 "Playfair Display", serif;
}

.stat-card small {
    color: var(--muted);
    font-size: 11px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, .7fr);
    gap: 20px;
    margin-top: 20px;
}

.card-shell {
    border-radius: var(--radius-lg);
    padding: 24px;
}

.section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.section-head h3,
.card-shell h3 {
    margin: 6px 0 0;
    font: 700 21px/1.2 "Playfair Display", serif;
}

.section-head > a {
    font-size: 12px;
    font-weight: 700;
}

.schedule-list {
    margin-top: 20px;
}

.schedule-item {
    display: grid;
    grid-template-columns: 52px 2px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 66px;
}

.schedule-item time {
    font-weight: 800;
}

.schedule-line {
    width: 2px;
    height: 38px;
    border-radius: 2px;
    background: var(--green-700);
}

.schedule-copy strong,
.schedule-copy span {
    display: block;
}

.schedule-copy strong {
    font-size: 14px;
}

.schedule-copy span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.status-pill,
.date-badge {
    padding: 6px 9px;
    border-radius: 999px;
    color: var(--green-800);
    background: var(--green-100);
    font-size: 10px;
    font-weight: 800;
}

.empty-inline {
    padding: 30px 0;
    color: var(--muted);
    text-align: center;
}

.side-stack {
    display: grid;
    gap: 20px;
}

.student-mini-list {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.student-mini-list > div {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 10px;
}

.student-mini-list strong,
.student-mini-list small {
    display: block;
}

.student-mini-list strong {
    font-size: 13px;
}

.student-mini-list small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

.student-mini-list button {
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--green-800);
    background: #fff;
    cursor: pointer;
}

.action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 17px;
}

.action-grid a {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 86px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--ink);
    font-size: 11px;
    font-weight: 700;
}

.action-grid span {
    color: var(--green-700);
    font-size: 20px;
}

.student-summary-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr .8fr;
    gap: 20px;
    margin-top: 20px;
}

.next-appointment {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 18px;
}

.next-appointment > .eyebrow {
    grid-column: 1 / -1;
}

.appointment-date {
    display: grid;
    place-items: center;
    width: 70px;
    height: 76px;
    border-radius: 17px;
    color: #fff;
    background: var(--green-800);
}

.appointment-date strong {
    font: 700 28px/1 "Playfair Display", serif;
}

.appointment-date span {
    font-size: 10px;
    font-weight: 800;
}

.next-appointment p {
    margin: 6px 0 4px;
    color: var(--muted);
    font-size: 13px;
}

.next-appointment small {
    color: var(--green-700);
}

.credit-card > strong {
    display: block;
    margin-top: 13px;
    font: 700 38px/1 "Playfair Display", serif;
}

.credit-card > span:not(.eyebrow) {
    color: var(--muted);
    font-size: 12px;
}

.progress {
    height: 7px;
    margin: 18px 0 10px;
    overflow: hidden;
    border-radius: 99px;
    background: var(--green-100);
}

.progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--green-700);
}

.credit-card small,
.goal-card p {
    color: var(--muted);
    font-size: 11px;
}

.goal-card p {
    line-height: 1.6;
}

.goal-progress {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 12px;
}

.student-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
}

.training-note p {
    color: var(--muted);
    line-height: 1.65;
}

.task-box {
    display: grid;
    gap: 5px;
    margin-top: 18px;
    padding: 17px;
    border-left: 3px solid var(--gold);
    border-radius: 0 13px 13px 0;
    background: var(--sand-100);
}

.task-box span,
.task-box small {
    color: var(--muted);
    font-size: 10px;
}

.task-box strong {
    font-size: 13px;
}

.progress-visual {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    min-height: 110px;
    margin-top: 18px;
    padding: 20px;
    border-radius: 17px;
    background: linear-gradient(135deg, var(--green-100), #fff);
}

.progress-visual span {
    color: var(--muted);
}

.progress-visual strong {
    color: var(--green-800);
    font: 700 37px/1 "Playfair Display", serif;
}

.progress-card p {
    color: var(--muted);
    font-size: 12px;
}

.progress-card a {
    font-size: 12px;
    font-weight: 700;
}

/* Profile */

.profile-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
}

.alert-icon {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    border-radius: 50%;
    font-weight: 800;
}

.alert-success {
    color: var(--success);
    background: var(--success-soft);
}

.alert-success .alert-icon {
    color: #fff;
    background: var(--success);
}

.profile-intro {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 28px 32px;
    border-radius: var(--radius-lg);
    color: #fff;
    background:
        radial-gradient(
            circle at 86% 20%,
            rgba(255, 255, 255, .13),
            transparent 24%
        ),
        linear-gradient(
            120deg,
            var(--green-900),
            var(--green-700)
        );
    box-shadow: var(--shadow);
}

.profile-intro::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -115px;
    width: 320px;
    height: 220px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    transform: rotate(-14deg);
}

.profile-intro > div {
    position: relative;
    z-index: 1;
}

.profile-intro h2 {
    margin: 8px 0 8px;
    font: 700 30px/1.15 "Playfair Display", serif;
}

.profile-intro p {
    max-width: 660px;
    margin: 0;
    color: rgba(255, 255, 255, .7);
    line-height: 1.65;
}

.profile-status-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
    padding: 15px 17px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 15px;
    background: rgba(255, 255, 255, .08);
}

.profile-status-card strong,
.profile-status-card small {
    display: block;
}

.profile-status-card strong {
    font-size: 13px;
}

.profile-status-card small {
    margin-top: 3px;
    color: rgba(255, 255, 255, .58);
    font-size: 10px;
    line-height: 1.4;
}

.status-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--gold-soft);
    box-shadow: 0 0 0 5px rgba(216, 196, 157, .12);
}

.status-dot.is-active {
    background: #7fd3a9;
    box-shadow: 0 0 0 5px rgba(127, 211, 169, .12);
}

.profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: start;
    gap: 22px;
    margin-top: 22px;
}

.profile-main,
.profile-form,
.profile-aside {
    display: grid;
    gap: 22px;
}

.profile-aside {
    position: sticky;
    top: 122px;
}

.profile-section {
    padding: 28px;
}

.profile-section-head {
    align-items: center;
    margin-bottom: 26px;
}

.section-number {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--gold);
    background: var(--sand-100);
    font-size: 11px;
    font-weight: 800;
}

.form-grid {
    display: grid;
    gap: 20px;
}

.form-grid.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-group {
    min-width: 0;
}

.field-group > label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
}

.field-group input:not([type="checkbox"]):not([type="file"]),
.field-group textarea,
.field-group select {
    width: 100%;
    border: 1px solid #dce4df;
    border-radius: 12px;
    color: var(--ink);
    background: #fff;
    outline: none;
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

.field-group input:not([type="checkbox"]):not([type="file"]),
.field-group select {
    min-height: 49px;
    padding: 0 14px;
}

.field-group textarea {
    min-height: 110px;
    padding: 13px 14px;
    line-height: 1.55;
}

.field-group input:focus,
.field-group textarea:focus,
.field-group select:focus {
    border-color: var(--green-700);
    box-shadow: 0 0 0 3px rgba(40, 99, 77, .10);
    background: #fff;
}

.field-group input::placeholder,
.field-group textarea::placeholder {
    color: #a1ada7;
}

.field-group > small,
.field-meta small,
.field-meta span {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
}

.field-group > small {
    display: block;
    margin-top: 7px;
}

.field-meta {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 7px;
}

.field-error {
    display: block;
    margin-top: 7px;
    color: var(--danger);
    font-size: 10px;
    font-weight: 700;
}

.profile-divider {
    height: 1px;
    margin: 27px 0;
    background: var(--line);
}

.image-upload-layout {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
    gap: 26px;
}

.profile-image-preview {
    display: grid;
    place-items: center;
    width: 150px;
    height: 150px;
    overflow: hidden;
    border: 5px solid #fff;
    border-radius: 50%;
    color: var(--green-900);
    background:
        radial-gradient(
            circle at 30% 25%,
            #fff,
            var(--green-100)
        );
    box-shadow:
        0 0 0 1px var(--line),
        0 15px 35px rgba(17, 49, 38, .12);
    font: 700 40px/1 "Playfair Display", serif;
}

.profile-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-upload-copy strong {
    display: block;
    font-size: 15px;
}

.image-upload-copy p {
    max-width: 520px;
    margin: 8px 0 15px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.image-upload-copy > small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 10px;
}

.file-upload-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 41px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 11px;
    color: var(--green-900);
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.file-upload-button:hover {
    border-color: var(--green-700);
    background: var(--green-050);
}

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

.switch-row {
    display: flex !important;
    align-items: center;
    gap: 9px;
    margin: 14px 0 0 !important;
    color: var(--muted);
    font-size: 11px !important;
    font-weight: 600 !important;
    cursor: pointer;
}

.switch-row input {
    width: 16px;
    height: 16px;
    accent-color: var(--green-700);
}

.remove-image-row {
    color: var(--danger);
}

.visibility-panel {
    margin-top: 24px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--green-050);
}

.visibility-switch {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    cursor: pointer;
}

.visibility-switch > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.visibility-switch-control {
    position: relative;
    width: 46px;
    height: 25px;
    border-radius: 99px;
    background: #cbd5d0;
    transition: background .2s ease;
}

.visibility-switch-control::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .15);
    transition: transform .2s ease;
}

.visibility-switch input:checked + .visibility-switch-control {
    background: var(--green-700);
}

.visibility-switch input:checked + .visibility-switch-control::after {
    transform: translateX(21px);
}

.visibility-switch-copy strong,
.visibility-switch-copy small {
    display: block;
}

.visibility-switch-copy strong {
    font-size: 13px;
}

.visibility-switch-copy small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
}

.profile-save-bar {
    position: sticky;
    bottom: 18px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 18px;
    border: 1px solid rgba(220, 228, 223, .88);
    border-radius: 17px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 18px 45px rgba(17, 49, 38, .12);
    backdrop-filter: blur(15px);
}

.profile-save-bar strong,
.profile-save-bar small {
    display: block;
}

.profile-save-bar strong {
    font-size: 13px;
}

.profile-save-bar small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

.password-section {
    scroll-margin-top: 125px;
}

.password-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.password-actions small {
    color: var(--muted);
    font-size: 10px;
}

.profile-preview-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.profile-preview-cover {
    height: 105px;
    background:
        radial-gradient(
            circle at 75% 25%,
            rgba(255, 255, 255, .16),
            transparent 24%
        ),
        linear-gradient(
            135deg,
            var(--green-700),
            var(--green-950)
        );
}

.profile-preview-content {
    padding: 0 23px 24px;
}

.profile-preview-avatar {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    margin-top: -46px;
    overflow: hidden;
    border: 5px solid #fff;
    border-radius: 50%;
    color: var(--green-900);
    background: var(--sand-100);
    box-shadow: 0 10px 25px rgba(17, 49, 38, .16);
    font: 700 27px/1 "Playfair Display", serif;
}

.profile-preview-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-preview-label {
    display: block;
    margin-top: 17px;
    color: var(--gold);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.profile-preview-content h3 {
    margin: 7px 0 6px;
    font: 700 24px/1.15 "Playfair Display", serif;
}

.profile-preview-headline {
    min-height: 38px;
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

.profile-preview-facts {
    display: grid;
    gap: 10px;
    margin-top: 20px;
    padding-top: 17px;
    border-top: 1px solid var(--line);
}

.profile-preview-facts div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.profile-preview-facts span {
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
}

.profile-preview-facts strong {
    max-width: 190px;
    font-size: 10px;
    text-align: right;
}

.profile-preview-button {
    display: grid;
    place-items: center;
    min-height: 41px;
    margin-top: 20px;
    border-radius: 11px;
    color: #fff;
    background: var(--green-800);
    font-size: 11px;
    font-weight: 700;
}

.profile-completeness {
    padding: 20px;
}

.completeness-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.completeness-head span strong,
.completeness-head span small {
    display: block;
}

.completeness-head span strong {
    font-size: 12px;
}

.completeness-head span small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
}

.completeness-head > strong {
    color: var(--green-800);
    font: 700 21px/1 "Playfair Display", serif;
}

.profile-progress {
    margin-bottom: 0;
}

/* Login */

.auth-page {
    min-height: 100vh;
    background: var(--surface);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns:
        minmax(430px, 1.05fr)
        minmax(430px, .95fr);
}

.auth-visual {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 38px 46px 52px;
    color: #fff;
    background:
        linear-gradient(
            rgba(13, 42, 32, .72),
            rgba(13, 42, 32, .90)
        ),
        radial-gradient(
            circle at 75% 18%,
            rgba(255, 255, 255, .18),
            transparent 26%
        ),
        linear-gradient(
            135deg,
            #2e6651,
            #0d2a20
        );
}

.auth-visual::before,
.auth-visual::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
}

.auth-visual::before {
    width: 520px;
    height: 240px;
    right: -190px;
    bottom: 50px;
    transform: rotate(-18deg);
}

.auth-visual::after {
    width: 380px;
    height: 165px;
    right: -105px;
    bottom: 96px;
    transform: rotate(-18deg);
}

.auth-brand {
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-brand strong,
.auth-brand small {
    display: block;
}

.auth-brand strong {
    font: 700 24px/1 "Playfair Display", serif;
}

.auth-brand small {
    margin-top: 4px;
    color: rgba(255, 255, 255, .58);
    font-size: 9px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.auth-visual-content {
    z-index: 1;
    max-width: 580px;
    margin: auto 0 0;
}

.auth-visual-content h1 {
    max-width: 520px;
    margin: 12px 0 18px;
    font: 700 50px/1.05 "Playfair Display", serif;
}

.auth-visual-content > p {
    max-width: 520px;
    color: rgba(255, 255, 255, .72);
    font-size: 16px;
    line-height: 1.65;
}

.auth-proof {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
    margin-top: 40px;
}

.auth-proof div {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
}

.auth-proof strong,
.auth-proof span {
    display: block;
}

.auth-proof strong {
    font-size: 13px;
}

.auth-proof span {
    margin-top: 4px;
    color: rgba(255, 255, 255, .54);
    font-size: 10px;
}

.auth-form-panel {
    display: grid;
    place-items: center;
    padding: 40px;
}

.auth-form-wrap {
    width: min(420px, 100%);
}

.auth-form-wrap h2 {
    margin: 8px 0 8px;
    font: 700 31px/1.15 "Playfair Display", serif;
}

.auth-form {
    display: grid;
    gap: 17px;
    margin-top: 28px;
}

.auth-form label > span {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 700;
}

.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    height: 49px;
    padding: 0 14px;
    border: 1px solid #dce4df;
    border-radius: 12px;
    color: var(--ink);
    background: #fff;
    outline: none;
}

.auth-form input:focus {
    border-color: var(--green-700);
    box-shadow: 0 0 0 3px rgba(40, 99, 77, .10);
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.form-row a,
.checkbox {
    font-size: 11px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
}

.checkbox span {
    margin: 0 !important;
    font-weight: 500 !important;
}

.alert {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 11px;
    font-size: 12px;
}

.alert-error {
    color: var(--danger);
    background: var(--danger-soft);
}

.demo-access {
    display: grid;
    gap: 5px;
    margin-top: 24px;
    padding: 14px;
    border-radius: 12px;
    color: var(--muted);
    background: var(--canvas);
    font-size: 10px;
}

.demo-access strong {
    color: var(--ink);
}

.empty-state {
    max-width: 620px;
    margin: 70px auto;
    text-align: center;
}

.empty-state h1 {
    font: 700 34px/1.2 "Playfair Display", serif;
}

@media (max-width: 1180px) {
    .profile-layout {
        grid-template-columns: minmax(0, 1fr) 290px;
    }
}

@media (max-width: 1100px) {
    .app-shell {
        grid-template-columns: 230px minmax(0, 1fr);
    }

    .sidebar {
        padding-inline: 17px;
    }

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

    .student-summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .goal-card {
        grid-column: 1 / -1;
    }

    .auth-visual-content h1 {
        font-size: 41px;
    }

    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-aside {
        position: static;
        grid-template-columns: minmax(260px, 360px) minmax(260px, 1fr);
        align-items: start;
    }
}

@media (max-width: 820px) {
    .app-shell {
        display: block;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: 270px;
        transform: translateX(-105%);
        transition: transform .22s ease;
        box-shadow: 20px 0 50px rgba(0, 0, 0, .18);
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 25;
        display: block;
        visibility: hidden;
        opacity: 0;
        background: rgba(9, 26, 20, .48);
        transition:
            opacity .2s ease,
            visibility .2s ease;
    }

    .sidebar-overlay.is-visible {
        visibility: visible;
        opacity: 1;
    }

    .menu-button {
        display: inline-grid;
        place-items: center;
    }

    .topbar {
        padding: 18px 20px;
    }

    .topbar-actions .icon-button {
        display: none;
    }

    .page-content {
        padding: 22px 20px 36px;
    }

    .dashboard-grid,
    .student-grid {
        grid-template-columns: 1fr;
    }

    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        min-height: 380px;
        padding: 28px;
    }

    .auth-form-panel {
        padding: 42px 24px;
    }

    .auth-proof {
        display: none;
    }

    .profile-intro {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-status-card {
        width: 100%;
        min-width: 0;
    }

    .profile-aside {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .form-grid.two-columns {
        grid-template-columns: 1fr;
    }

    .image-upload-layout {
        grid-template-columns: 1fr;
    }

    .profile-image-preview {
        width: 125px;
        height: 125px;
    }

    .profile-save-bar {
        align-items: stretch;
        flex-direction: column;
        bottom: 10px;
    }

    .profile-save-bar .btn {
        width: 100%;
    }

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

@media (max-width: 580px) {
    .topbar {
        min-height: 80px;
    }

    .topbar h1 {
        font-size: 22px;
    }

    .topbar-actions .btn {
        min-height: 39px;
        padding: 0 12px;
        font-size: 11px;
    }

    .welcome-panel,
    .student-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 24px;
    }

    .welcome-panel h2,
    .student-hero h2 {
        font-size: 27px;
    }

    .weather-chip {
        width: 100%;
        min-width: 0;
    }

    .stats-grid,
    .student-summary-grid {
        grid-template-columns: 1fr;
    }

    .goal-card {
        grid-column: auto;
    }

    .schedule-item {
        grid-template-columns: 46px 2px minmax(0, 1fr);
    }

    .status-pill {
        display: none;
    }

    .card-shell {
        padding: 20px;
    }

    .profile-section {
        padding: 20px;
    }

    .profile-intro {
        padding: 24px;
    }

    .profile-intro h2 {
        font-size: 26px;
    }

    .profile-section-head {
        margin-bottom: 22px;
    }

    .auth-visual {
        min-height: 330px;
    }

    .auth-visual-content h1 {
        font-size: 34px;
    }

    .auth-form-wrap h2 {
        font-size: 27px;
    }
}

/* =========================================================
   Golfissimo Dashboard 2.0
   ========================================================= */

.dashboard-page {
    display: grid;
    gap: 22px;
}

.dashboard-welcome {
    align-items: stretch;
}

.dashboard-welcome-copy {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    min-width: 0;
}

.dashboard-welcome-copy p {
    max-width: 760px;
    line-height: 1.65;
}

.dashboard-next-card {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    min-width: 275px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 17px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(8px);
}

.dashboard-next-label {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, .58);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.dashboard-next-card strong {
    color: #fff;
    font-size: 16px;
}

.dashboard-next-card small {
    margin-top: 5px;
    color: rgba(255, 255, 255, .68);
    font-size: 11px;
    line-height: 1.5;
}

/* KPI-Karten */

.dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-stat-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background:
        linear-gradient(
            145deg,
            #fff,
            #fbfcfb
        );
    box-shadow: var(--shadow-soft);
}

.dashboard-stat-card::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -45px;
    width: 105px;
    height: 85px;
    border: 1px solid rgba(40, 99, 77, .06);
    border-radius: 50%;
    transform: rotate(-14deg);
}

.dashboard-stat-card.is-attention {
    border-color: #ead9b7;
    background:
        linear-gradient(
            145deg,
            #fff,
            #fbf6eb
        );
}

.dashboard-stat-card.is-warning {
    border-color: #e9d9d3;
    background:
        linear-gradient(
            145deg,
            #fff,
            #fcf4f1
        );
}

.dashboard-stat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dashboard-stat-head > span:first-child {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .03em;
}

.dashboard-stat-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 11px;
    color: var(--green-800);
    background: var(--green-100);
    font-size: 16px;
    font-weight: 800;
}

.dashboard-stat-card.is-attention .dashboard-stat-icon {
    color: #8c692d;
    background: #f5ead3;
}

.dashboard-stat-card.is-warning .dashboard-stat-icon {
    color: var(--danger);
    background: var(--danger-soft);
}

.dashboard-stat-card > strong {
    position: relative;
    z-index: 1;
    display: block;
    margin: 18px 0 7px;
    color: var(--ink);
    font: 700 33px/1 "Playfair Display", serif;
}

.dashboard-stat-card > small {
    position: relative;
    z-index: 1;
    display: block;
    min-height: 30px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
}

/* Grundlayout */

.dashboard-main-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.55fr)
        minmax(310px, .72fr);
    gap: 20px;
    align-items: start;
}

.dashboard-main-column,
.dashboard-side-column {
    display: grid;
    gap: 20px;
    min-width: 0;
}

.dashboard-side-column {
    position: sticky;
    top: 122px;
}

/* Tagesplan */

.dashboard-schedule-card {
    overflow: hidden;
}

.dashboard-schedule-list {
    display: grid;
    margin-top: 20px;
}

.dashboard-schedule-item {
    display: grid;
    grid-template-columns:
        68px
        5px
        minmax(0, 1fr)
        auto;
    gap: 15px;
    align-items: center;
    min-height: 84px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.dashboard-schedule-item:first-child {
    padding-top: 0;
}

.dashboard-schedule-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.dashboard-schedule-time {
    display: grid;
    text-align: right;
}

.dashboard-schedule-time strong {
    color: var(--ink);
    font-size: 14px;
}

.dashboard-schedule-time span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
}

.dashboard-schedule-color {
    align-self: stretch;
    min-height: 48px;
    border-radius: 999px;
    background: var(--appointment-color);
}

.dashboard-schedule-copy {
    display: grid;
    min-width: 0;
}

.dashboard-schedule-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.dashboard-schedule-title strong {
    min-width: 0;
    overflow: hidden;
    color: var(--ink);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-series-badge {
    display: grid;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    place-items: center;
    border-radius: 50%;
    color: var(--green-800);
    background: var(--green-100);
    font-size: 11px;
    font-weight: 800;
}

.dashboard-schedule-copy > span {
    margin-top: 5px;
    overflow: hidden;
    color: var(--green-800);
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-schedule-copy > small {
    margin-top: 4px;
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-schedule-meta {
    display: grid;
    justify-items: end;
    gap: 6px;
}

.dashboard-status-confirmed {
    color: var(--success);
    background: var(--success-soft);
}

.dashboard-status-reserved {
    color: #8b682d;
    background: #f5ead5;
}

.dashboard-status-completed {
    color: #52615a;
    background: #edf0ee;
}

.dashboard-status-cancelled,
.dashboard-status-no_show {
    color: var(--danger);
    background: var(--danger-soft);
}

.dashboard-report-hint {
    color: var(--danger);
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

/* Leere Zustände */

.dashboard-empty-state {
    display: grid;
    min-height: 280px;
    place-items: center;
    align-content: center;
    padding: 36px 20px;
    text-align: center;
}

.dashboard-empty-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin-bottom: 10px;
    place-items: center;
    border-radius: 19px;
    color: var(--green-800);
    background: var(--green-100);
    font-size: 24px;
}

.dashboard-empty-state strong {
    font-size: 16px;
}

.dashboard-empty-state p {
    max-width: 430px;
    margin: 7px 0 16px;
    color: var(--muted);
    font-size: 12px;
}

.dashboard-inline-empty {
    margin-top: 18px;
    padding: 22px;
    border-radius: 14px;
    color: var(--muted);
    background: var(--canvas);
    font-size: 12px;
    text-align: center;
}

/* Wochenübersicht */

.dashboard-week-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
}

.dashboard-week-day {
    display: grid;
    min-width: 0;
    padding: 12px 9px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--ink);
    background: #fff;
    text-align: center;
    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease;
}

.dashboard-week-day:hover {
    border-color: #cbd8d2;
    background: var(--green-050);
    transform: translateY(-2px);
}

.dashboard-week-day.is-today {
    border-color: var(--green-700);
    background:
        linear-gradient(
            180deg,
            var(--green-050),
            #fff
        );
    box-shadow: inset 0 0 0 1px rgba(40, 99, 77, .08);
}

.dashboard-week-bar-wrap {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 74px;
    margin-bottom: 11px;
    overflow: hidden;
    border-radius: 9px;
    background:
        linear-gradient(
            180deg,
            #f8faf9,
            var(--green-050)
        );
}

.dashboard-week-bar {
    display: block;
    width: 16px;
    height: var(--week-bar-height);
    min-height: 6px;
    max-height: 100%;
    border-radius: 999px 999px 5px 5px;
    background:
        linear-gradient(
            180deg,
            var(--gold-soft),
            var(--green-700)
        );
}

.dashboard-week-day strong {
    font-size: 12px;
}

.dashboard-week-day > span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

.dashboard-week-day small {
    display: block;
    margin-top: 7px;
    overflow: hidden;
    color: var(--muted);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-week-day small + small {
    margin-top: 2px;
    color: var(--green-700);
    font-weight: 700;
}

/* Gruppen */

.dashboard-group-list {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.dashboard-group-item {
    display: grid;
    grid-template-columns:
        5px
        minmax(0, 1fr)
        auto
        28px;
    gap: 13px;
    align-items: center;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--ink);
    background: #fff;
    transition:
        border-color .18s ease,
        background .18s ease,
        transform .18s ease;
}

.dashboard-group-item:hover {
    border-color: #c9d6d0;
    background: var(--green-050);
    transform: translateX(2px);
}

.dashboard-group-color {
    align-self: stretch;
    min-height: 46px;
    border-radius: 999px;
    background: var(--group-color);
}

.dashboard-group-copy {
    display: grid;
    min-width: 0;
}

.dashboard-group-copy > span {
    color: var(--gold);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dashboard-group-copy strong {
    margin-top: 4px;
    overflow: hidden;
    color: var(--ink);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-group-copy small {
    margin-top: 5px;
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-group-arrow {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 9px;
    color: var(--green-800);
    background: var(--green-100);
    font-weight: 800;
}

/* Coaching-Fokus */

.dashboard-focus-card .section-head {
    align-items: flex-start;
}

.dashboard-student-list {
    display: grid;
    gap: 13px;
    margin-top: 20px;
}

.dashboard-student-item {
    display: grid;
    grid-template-columns:
        42px
        minmax(0, 1fr)
        34px;
    gap: 11px;
    align-items: center;
    min-width: 0;
}

.dashboard-student-item > div {
    display: grid;
    min-width: 0;
}

.dashboard-student-item > div > a {
    overflow: hidden;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-student-item small {
    margin-top: 3px;
    overflow: hidden;
    color: var(--muted);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-student-item div > span {
    margin-top: 3px;
    overflow: hidden;
    color: var(--green-700);
    font-size: 9px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-student-add {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--green-800);
    background: #fff;
    font-size: 18px;
    font-weight: 700;
    transition:
        color .18s ease,
        border-color .18s ease,
        background .18s ease;
}

.dashboard-student-add:hover {
    border-color: var(--green-700);
    color: #fff;
    background: var(--green-700);
}

.dashboard-focus-empty {
    display: grid;
    min-height: 210px;
    margin-top: 18px;
    place-items: center;
    align-content: center;
    padding: 25px;
    border-radius: 15px;
    background: var(--green-050);
    text-align: center;
}

.dashboard-focus-empty > span {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    place-items: center;
    border-radius: 50%;
    color: var(--success);
    background: var(--success-soft);
    font-size: 19px;
    font-weight: 800;
}

.dashboard-focus-empty strong {
    font-size: 13px;
}

.dashboard-focus-empty p {
    max-width: 260px;
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
}

/* Schnellzugriff */

.dashboard-quick-card h3,
.dashboard-status-card h3 {
    margin: 6px 0 0;
}

.dashboard-action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}

.dashboard-action-grid a {
    display: grid;
    align-content: start;
    min-height: 115px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--ink);
    background: #fff;
    transition:
        border-color .18s ease,
        background .18s ease,
        transform .18s ease;
}

.dashboard-action-grid a:hover {
    border-color: #c9d6d0;
    background: var(--green-050);
    transform: translateY(-2px);
}

.dashboard-action-grid a > span {
    display: grid;
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
    place-items: center;
    border-radius: 11px;
    color: var(--green-800);
    background: var(--green-100);
    font-size: 17px;
    font-weight: 800;
}

.dashboard-action-grid strong {
    font-size: 11px;
}

.dashboard-action-grid small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.45;
}

/* Schülerstatus */

.dashboard-status-list {
    display: grid;
    margin-top: 18px;
}

.dashboard-status-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}

.dashboard-status-list a:last-child {
    border-bottom: 0;
}

.dashboard-status-list span {
    color: var(--muted);
    font-size: 11px;
}

.dashboard-status-list strong {
    display: grid;
    min-width: 31px;
    height: 31px;
    place-items: center;
    border-radius: 10px;
    color: var(--green-800);
    background: var(--green-100);
    font-size: 12px;
}

/* Student Status Badges auch auf dem Dashboard */

.dashboard-page .student-status {
    display: inline-flex;
    align-items: center;
    width: max-content;
    min-height: 27px;
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--green-800);
    background: var(--green-100);
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.dashboard-page .student-status-active {
    color: var(--success);
    background: var(--success-soft);
}

.dashboard-page .student-status-planned {
    color: #8b682d;
    background: #f5ead5;
}

/* Responsive */

@media (max-width: 1380px) {
    .dashboard-stat-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .dashboard-stat-card:nth-child(4),
    .dashboard-stat-card:nth-child(5) {
        grid-column: auto;
    }
}

@media (max-width: 1180px) {
    .dashboard-main-grid {
        grid-template-columns:
            minmax(0, 1fr)
            300px;
    }

    .dashboard-week-grid {
        gap: 7px;
    }

    .dashboard-week-day {
        padding-inline: 6px;
    }
}

@media (max-width: 1000px) {
    .dashboard-main-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-side-column {
        position: static;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .dashboard-focus-card {
        grid-row: span 2;
    }
}

@media (max-width: 820px) {
    .dashboard-welcome {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-next-card {
        width: 100%;
        min-width: 0;
    }

    .dashboard-stat-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .dashboard-week-grid {
        overflow-x: auto;
        grid-template-columns:
            repeat(7, minmax(92px, 1fr));
        padding-bottom: 5px;
    }

    .dashboard-side-column {
        grid-template-columns: 1fr;
    }

    .dashboard-focus-card {
        grid-row: auto;
    }
}

@media (max-width: 640px) {
    .dashboard-page {
        gap: 16px;
    }

    .dashboard-stat-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-stat-card {
        padding: 18px;
    }

    .dashboard-stat-card > strong {
        font-size: 29px;
    }

    .dashboard-schedule-item {
        grid-template-columns:
            54px
            4px
            minmax(0, 1fr);
        gap: 11px;
    }

    .dashboard-schedule-time {
        text-align: left;
    }

    .dashboard-schedule-meta {
        display: none;
    }

    .dashboard-schedule-copy > span,
    .dashboard-schedule-copy > small {
        white-space: normal;
    }

    .dashboard-group-item {
        grid-template-columns:
            5px
            minmax(0, 1fr)
            28px;
    }

    .dashboard-group-item .student-status {
        display: none;
    }

    .dashboard-action-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 430px) {
    .dashboard-action-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-action-grid a {
        min-height: 92px;
    }
}

/* =========================================================
   Golfissimo – verbindlicher Mobile-Shell- und Dashboard-Fix
   Muss ganz am Ende der app.css stehen
   ========================================================= */

@media (max-width: 820px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    /*
     * Wichtig:
     * Die Sidebar darf mobil keine Grid-Spalte mehr reservieren.
     */
    .app-shell {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        grid-template-columns: none !important;
    }

    .main-area {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .sidebar {
        position: fixed !important;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 50;
        width: min(290px, 86vw) !important;
        height: 100dvh;
        margin: 0;
        transform: translateX(-105%);
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    .topbar {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        min-height: 72px;
        padding: 12px 16px;
    }

    .topbar h1 {
        font-size: 21px;
    }

    .topbar-kicker {
        font-size: 8px;
    }

    .topbar-actions {
        gap: 7px;
    }

    .topbar-actions .btn {
        min-height: 36px;
        padding: 0 11px;
        border-radius: 10px;
        font-size: 9px;
        white-space: nowrap;
    }

    .menu-button {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        margin-right: 9px;
    }

    .page-content {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding: 14px 14px 32px;
    }

    .dashboard-page {
        width: 100%;
        min-width: 0;
        gap: 14px;
    }

    /* Hero kompakter und besser lesbar */

    .dashboard-welcome {
        display: grid;
        gap: 16px;
        width: 100%;
        min-width: 0;
        padding: 21px 19px;
        border-radius: 19px;
    }

    .dashboard-welcome-copy {
        width: 100%;
    }

    .dashboard-welcome-copy h2 {
        margin: 6px 0 7px;
        font-size: 25px;
        line-height: 1.12;
    }

    .dashboard-welcome-copy p {
        max-width: none;
        font-size: 11px;
        line-height: 1.6;
    }

    .dashboard-welcome .eyebrow {
        font-size: 8px;
    }

    .dashboard-next-card {
        width: 100%;
        min-width: 0;
        padding: 14px 15px;
        border-radius: 14px;
    }

    .dashboard-next-label {
        margin-bottom: 6px;
        font-size: 8px;
    }

    .dashboard-next-card strong {
        font-size: 13px;
    }

    .dashboard-next-card small {
        font-size: 9px;
    }

    /*
     * KPIs auf Smartphones zweispaltig.
     * Die letzte Karte nimmt bei fünf Karten die volle Breite ein.
     */
    .dashboard-stat-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
    }

    .dashboard-stat-card {
        min-height: 128px;
        padding: 15px;
        border-radius: 15px;
    }

    .dashboard-stat-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        min-height: 108px;
    }

    .dashboard-stat-head {
        align-items: flex-start;
        gap: 8px;
    }

    .dashboard-stat-head > span:first-child {
        font-size: 9px;
        line-height: 1.35;
    }

    .dashboard-stat-icon {
        width: 29px;
        height: 29px;
        flex-basis: 29px;
        border-radius: 9px;
        font-size: 13px;
    }

    .dashboard-stat-card > strong {
        margin: 14px 0 5px;
        font-size: 27px;
    }

    .dashboard-stat-card > small {
        min-height: 0;
        font-size: 8px;
        line-height: 1.4;
    }

    /* Hauptbereiche wirklich einspaltig */

    .dashboard-main-grid,
    .dashboard-main-column,
    .dashboard-side-column {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        gap: 14px;
    }

    .dashboard-side-column {
        position: static !important;
        top: auto;
    }

    .card-shell {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        padding: 18px;
        border-radius: 18px;
    }

    .section-head {
        align-items: flex-start;
        gap: 12px;
    }

    .section-head h3,
    .card-shell h3 {
        margin-top: 4px;
        font-size: 18px;
    }

    .section-head > a {
        flex: 0 0 auto;
        font-size: 9px;
        white-space: nowrap;
    }

    /* Tagesplan als echte mobile Karten */

    .dashboard-schedule-list {
        gap: 10px;
        margin-top: 16px;
    }

    .dashboard-schedule-item {
        display: grid;
        grid-template-columns: 48px 4px minmax(0, 1fr);
        gap: 10px;
        min-height: 0;
        padding: 13px;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: var(--green-050);
    }

    .dashboard-schedule-item:first-child,
    .dashboard-schedule-item:last-child {
        padding: 13px;
    }

    .dashboard-schedule-time {
        align-self: start;
        text-align: left;
    }

    .dashboard-schedule-time strong {
        font-size: 12px;
    }

    .dashboard-schedule-time span {
        font-size: 8px;
    }

    .dashboard-schedule-color {
        min-height: 48px;
    }

    .dashboard-schedule-title {
        align-items: flex-start;
    }

    .dashboard-schedule-title strong {
        overflow: visible;
        font-size: 12px;
        line-height: 1.35;
        white-space: normal;
    }

    .dashboard-schedule-copy > span {
        margin-top: 4px;
        overflow: visible;
        font-size: 9px;
        line-height: 1.4;
        white-space: normal;
    }

    .dashboard-schedule-copy > small {
        margin-top: 4px;
        overflow: visible;
        font-size: 8px;
        line-height: 1.45;
        white-space: normal;
    }

    .dashboard-schedule-meta {
        display: none;
    }

    /* Woche horizontal scrollbar statt sieben gequetschte Spalten */

    .dashboard-week-card {
        overflow: hidden;
    }

    .dashboard-week-grid {
        display: flex;
        gap: 9px;
        width: auto;
        margin: 16px -18px 0;
        padding: 0 18px 8px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: inline proximity;
        scrollbar-width: none;
    }

    .dashboard-week-grid::-webkit-scrollbar {
        display: none;
    }

    .dashboard-week-day {
        width: 92px;
        min-width: 92px;
        padding: 10px 8px;
        scroll-snap-align: start;
    }

    .dashboard-week-bar-wrap {
        height: 55px;
    }

    /* Gruppen */

    .dashboard-group-list {
        margin-top: 15px;
    }

    .dashboard-group-item {
        grid-template-columns: 4px minmax(0, 1fr) 27px;
        gap: 10px;
        padding: 12px;
    }

    .dashboard-group-item .student-status {
        display: none;
    }

    .dashboard-group-copy strong {
        white-space: normal;
    }

    .dashboard-group-copy small {
        line-height: 1.45;
        white-space: normal;
    }

    /* Coaching-Fokus */

    .dashboard-student-list {
        margin-top: 15px;
    }

    .dashboard-student-item {
        grid-template-columns: 38px minmax(0, 1fr) 32px;
        gap: 9px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--line);
    }

    .dashboard-student-item:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .dashboard-student-item .avatar {
        width: 38px;
        height: 38px;
    }

    /* Schnellzugriff als kompakte Liste */

    .dashboard-action-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 15px;
    }

    .dashboard-action-grid a {
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr);
        grid-template-rows: auto auto;
        column-gap: 11px;
        min-height: 0;
        padding: 12px;
    }

    .dashboard-action-grid a > span {
        grid-row: 1 / 3;
        width: 38px;
        height: 38px;
        margin: 0;
    }

    .dashboard-action-grid strong {
        align-self: end;
        font-size: 11px;
    }

    .dashboard-action-grid small {
        align-self: start;
        margin-top: 2px;
        font-size: 8px;
    }
}

@media (max-width: 390px) {
    .page-content {
        padding-inline: 11px;
    }

    .topbar {
        padding-inline: 11px;
    }

    .topbar-actions .btn {
        padding-inline: 9px;
    }

    .dashboard-welcome {
        padding: 19px 17px;
    }

    .dashboard-stat-grid {
        gap: 8px;
    }

    .dashboard-stat-card {
        min-height: 122px;
        padding: 13px;
    }

    .card-shell {
        padding: 16px;
    }

    .dashboard-week-grid {
        margin-inline: -16px;
        padding-inline: 16px;
    }
}

/* =========================================================
   Mobile Lesbarkeit – Golfissimo App
   ========================================================= */

@media (max-width: 760px) {
    body {
        font-size: 15px;
    }

    .page-content {
        padding-inline: 16px;
    }

    .topbar-kicker,
    .eyebrow,
    .nav-section-label {
        font-size: 11px;
    }

    .btn {
        min-height: 46px;
        font-size: 14px;
    }

    .field-group > label,
    .field-group > span {
        font-size: 13px;
    }

    .field-group input:not([type="checkbox"]):not([type="file"]),
    .field-group select {
        min-height: 50px;
        font-size: 15px;
    }

    .field-group textarea {
        font-size: 15px;
        line-height: 1.6;
    }

    .field-group > small,
    .field-meta small,
    .field-meta span,
    .field-error {
        font-size: 12px;
        line-height: 1.45;
    }

    .card-shell p,
    .card-shell li,
    .alert {
        font-size: 14px;
        line-height: 1.55;
    }

    .status-pill,
    .date-badge {
        font-size: 11px;
    }
}

/* =========================================================
   Golfissimo Login
   ========================================================= */

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(440px, 0.92fr);
    overflow: hidden;
    background: #f4f7f5;
}

/* ---------------------------------------------------------
   Linke Bildseite
   --------------------------------------------------------- */

.auth-visual {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 42px 54px 34px;
    color: #ffffff;
    background:
        linear-gradient(
            112deg,
            rgba(4, 42, 31, 0.97) 0%,
            rgba(7, 58, 42, 0.91) 42%,
            rgba(8, 69, 49, 0.70) 100%
        ),
        url("/assets/img/login-training.png") center center / cover no-repeat;
}

.auth-visual::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        radial-gradient(
            circle at 72% 22%,
            rgba(226, 190, 118, 0.16),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            rgba(4, 30, 23, 0.08) 0%,
            rgba(4, 30, 23, 0.03) 45%,
            rgba(4, 30, 23, 0.48) 100%
        );
    pointer-events: none;
}

.auth-visual::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 420px;
    height: 420px;
    right: -220px;
    bottom: -190px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 50%;
    box-shadow:
        0 0 0 70px rgba(255, 255, 255, 0.025),
        0 0 0 140px rgba(255, 255, 255, 0.018);
    pointer-events: none;
}

.auth-brand {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    width: fit-content;
}

.auth-brand .brand-mark {
    width: 49px;
    height: 49px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 49px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 50%;
    color: #0d4f3a;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: 700;
}

.auth-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.auth-brand-copy strong {
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}

.auth-brand-copy small {
    color: rgba(255, 255, 255, 0.68);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.auth-visual-content {
    position: relative;
    z-index: 2;
    width: min(720px, 100%);
    margin: auto 0;
    padding: 70px 0 58px;
}

.auth-visual-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 23px;
    color: #e8c98c;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.auth-visual-kicker > span {
    width: 32px;
    height: 1px;
    display: block;
    background: #d9b873;
}

.auth-visual-content h1 {
    max-width: 690px;
    margin: 0;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(44px, 5.1vw, 72px);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.auth-visual-content > p {
    max-width: 630px;
    margin: 27px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 16px;
    line-height: 1.75;
}

.auth-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
    margin-top: 44px;
}

.auth-proof-item {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.075);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.auth-proof-icon {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 34px;
    border-radius: 50%;
    color: #edcf93;
    background: rgba(255, 255, 255, 0.09);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.auth-proof-item > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.auth-proof-item strong {
    color: #ffffff;
    font-size: 12px;
    font-weight: 750;
}

.auth-proof-item small {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.58);
    font-size: 9px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-visual-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.auth-visual-footer-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #d5b36f;
}

/* ---------------------------------------------------------
   Rechte Loginseite
   --------------------------------------------------------- */

.auth-form-panel {
    position: relative;
    min-width: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    overflow: auto;
    padding: 48px 56px;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(26, 94, 69, 0.055),
            transparent 28%
        ),
        #f7f9f8;
}

.auth-form-panel::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(13, 79, 58, 0.05);
    border-radius: 0 0 0 100%;
    pointer-events: none;
}

.auth-form-wrap {
    position: relative;
    z-index: 1;
    width: min(100%, 480px);
}

.auth-security-badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 34px;
    padding: 8px 12px;
    border: 1px solid rgba(18, 83, 61, 0.10);
    border-radius: 999px;
    color: #557168;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 5px 18px rgba(20, 59, 46, 0.035);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.035em;
}

.auth-security-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2d8a64;
    box-shadow: 0 0 0 4px rgba(45, 138, 100, 0.10);
}

.auth-form-heading .eyebrow {
    display: block;
    margin-bottom: 12px;
    color: #b08343;
    font-size: 10px;
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.auth-form-heading h2 {
    margin: 0;
    color: #14241e;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 3.2vw, 45px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.auth-form-heading > p {
    max-width: 420px;
    margin: 16px 0 0;
    color: #71837c;
    font-size: 13px;
    line-height: 1.65;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 19px;
    margin-top: 34px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}

.auth-field > span {
    color: #2d4139;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.025em;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 16px;
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    color: #82958e;
    transform: translateY(-50%);
    pointer-events: none;
}

.auth-input-icon svg {
    width: 18px;
    height: 18px;
}

.auth-input-wrap input {
    width: 100%;
    height: 54px;
    box-sizing: border-box;
    margin: 0;
    padding: 0 16px 0 48px;
    border: 1px solid #dce5e1;
    border-radius: 13px;
    outline: none;
    color: #183027;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(21, 64, 49, 0.035);
    font-family: inherit;
    font-size: 13px;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

.auth-input-wrap input::placeholder {
    color: #a4b1ac;
}

.auth-input-wrap input:hover {
    border-color: #c7d7d1;
}

.auth-input-wrap input:focus {
    border-color: #34795f;
    background: #ffffff;
    box-shadow:
        0 0 0 4px rgba(52, 121, 95, 0.10),
        0 8px 22px rgba(20, 60, 46, 0.055);
}

.auth-input-wrap:focus-within .auth-input-icon {
    color: #1d6a4f;
}

.auth-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: -2px;
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    cursor: pointer;
}

.auth-checkbox input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #14543d;
}

.auth-checkbox span {
    color: #61756d;
    font-size: 10px;
    font-weight: 650;
}

.auth-forgot-link {
    color: #14543d;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}

.auth-forgot-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-submit {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 5px;
    border: 0;
    border-radius: 13px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #0c4b36 0%,
            #176649 100%
        );
    box-shadow:
        0 14px 30px rgba(12, 75, 54, 0.20),
        inset 0 1px rgba(255, 255, 255, 0.10);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.02em;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

.auth-submit svg {
    width: 18px;
    height: 18px;
    transition: transform 160ms ease;
}

.auth-submit:hover {
    background:
        linear-gradient(
            135deg,
            #0a402f 0%,
            #145b42 100%
        );
    box-shadow:
        0 17px 34px rgba(12, 75, 54, 0.24),
        inset 0 1px rgba(255, 255, 255, 0.10);
    transform: translateY(-1px);
}

.auth-submit:hover svg {
    transform: translateX(3px);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-trust-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
    padding: 0 2px;
}

.auth-trust-icon {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 18px;
    margin-top: 1px;
    border-radius: 50%;
    color: #1e7656;
    background: #e6f1ec;
    font-size: 9px;
    font-weight: 900;
}

.auth-trust-note p {
    margin: 0;
    color: #82938c;
    font-size: 9px;
    line-height: 1.55;
}

/* ---------------------------------------------------------
   Demo-Zugänge
   --------------------------------------------------------- */

.demo-access {
    margin-top: 30px;
    padding: 17px;
    border: 1px solid #dfe8e4;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 9px 26px rgba(20, 60, 46, 0.04);
}

.demo-access-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 13px;
}

.demo-access-heading > span {
    color: #233c33;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.03em;
}

.demo-access-heading small {
    color: #899a94;
    font-size: 8px;
}

.demo-access-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.demo-access-item {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 11px 12px;
    border: 1px solid #e5ece9;
    border-radius: 11px;
    background: #f7faf8;
}

.demo-access-item strong {
    color: #9b743b;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.demo-access-item span {
    overflow: hidden;
    color: #29473c;
    font-size: 9px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.demo-access-item small {
    color: #7d9189;
    font-size: 8px;
}

/* ---------------------------------------------------------
   Fehlermeldung
   --------------------------------------------------------- */

.auth-form-wrap .alert {
    margin-top: 24px;
    border-radius: 12px;
    font-size: 11px;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 1100px) {
    .auth-shell {
        grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
    }

    .auth-visual {
        padding: 36px 38px 30px;
    }

    .auth-proof {
        grid-template-columns: 1fr;
        max-width: 340px;
    }

    .auth-proof-item {
        padding: 12px 14px;
    }

    .auth-form-panel {
        padding: 42px;
    }
}

@media (max-width: 840px) {
    .auth-shell {
        display: block;
        overflow: visible;
    }

    .auth-visual {
        min-height: 480px;
        padding: 28px;
        background-position: center 48%;
    }

    .auth-visual-content {
        width: min(620px, 100%);
        padding: 76px 0 50px;
    }

    .auth-visual-content h1 {
        font-size: clamp(39px, 8vw, 58px);
    }

    .auth-proof {
        max-width: none;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-top: 34px;
    }

    .auth-form-panel {
        min-height: auto;
        padding: 60px 28px;
    }
}

@media (max-width: 620px) {
    .auth-visual {
        min-height: 430px;
        padding: 23px 20px;
    }

    .auth-brand .brand-mark {
        width: 43px;
        height: 43px;
        flex-basis: 43px;
        font-size: 22px;
    }

    .auth-brand-copy strong {
        font-size: 22px;
    }

    .auth-visual-content {
        padding: 66px 0 30px;
    }

    .auth-visual-content h1 {
        font-size: 39px;
    }

    .auth-visual-content > p {
        margin-top: 19px;
        font-size: 13px;
        line-height: 1.6;
    }

    .auth-proof {
        display: none;
    }

    .auth-visual-footer {
        display: none;
    }

    .auth-form-panel {
        padding: 46px 20px 54px;
    }

    .auth-security-badge {
        margin-bottom: 27px;
    }

    .auth-form-heading h2 {
        font-size: 35px;
    }

    .auth-form {
        margin-top: 29px;
    }

    .auth-form-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .demo-access-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .demo-access-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Login-Korrektur: moderne Schrift + Proof-Karten
   Ganz ans Ende der app.css setzen
   ========================================================= */

/* Gerade, moderne Schrift im gesamten Login */
.auth-shell,
.auth-shell button,
.auth-shell input,
.auth-shell label,
.auth-shell a {
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
}

/* Bisherige Serifenschriften überschreiben */
.auth-brand-copy strong,
.auth-visual-content h1,
.auth-form-heading h2 {
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
}

/* Überschrift links etwas moderner und weniger schwer */
.auth-visual-content h1 {
    max-width: 680px;
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.045em;
}

/* Login-Überschrift rechts */
.auth-form-heading h2 {
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

/* Logo-Schrift ebenfalls gerade */
.auth-brand-copy strong {
    font-weight: 750;
    letter-spacing: -0.025em;
}

/* ---------------------------------------------------------
   Alte Proof-Regeln vollständig neutralisieren
   --------------------------------------------------------- */

.auth-visual .auth-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 44px;
}

.auth-visual .auth-proof .auth-proof-item {
    min-width: 0;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 13px;
    box-sizing: border-box;
    padding: 15px 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 15px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.075);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/*
 * Wichtig:
 * Alte Regeln wie ".auth-proof div" erzeugen sonst
 * einen zweiten Kasten um den Text.
 */
.auth-visual .auth-proof .auth-proof-item > div {
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: inherit;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Nummer wirklich als Kreis */
.auth-visual .auth-proof .auth-proof-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: #efd49d;
    background: rgba(255, 255, 255, 0.10);
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.04em;
}

/* Text innerhalb der Karten */
.auth-visual .auth-proof .auth-proof-item strong {
    display: block;
    margin: 0;
    padding: 0;
    color: #ffffff;
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
}

.auth-visual .auth-proof .auth-proof-item small {
    display: block;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.62);
    font-size: 9px;
    font-weight: 500;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 1100px) {
    .auth-visual .auth-proof {
        grid-template-columns: 1fr;
        max-width: 350px;
    }
}

@media (max-width: 840px) {
    .auth-visual .auth-proof {
        max-width: none;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .auth-visual .auth-proof {
        display: none;
    }

    .auth-visual-content h1 {
        font-size: 38px;
        letter-spacing: -0.035em;
    }
}
/* Kontoaktivierung und Passwort-Reset */
.auth-secondary-link {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.auth-secondary-link a {
    color: #153d2f;
    font-weight: 700;
    text-decoration: none;
}

.auth-secondary-link a:hover {
    text-decoration: underline;
}
