:root {
    color-scheme: light;
    --blue: #03a9f4;
    --blue-dark: #026e9f;
    --orange: #f79007;
    --ink: #222222;
    --muted: #777777;
    --soft: #f7f7f7;
    --line: #e5e5e5;
    --paper: #ffffff;
    --footer: #111111;
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--paper);
    color: var(--ink);
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    font-size: 16px;
}

a {
    color: var(--blue);
    font-weight: 600;
    text-decoration: none;
}

a:hover {
    color: var(--blue-dark);
}

.site-header {
    background: var(--paper);
    position: relative;
    z-index: 5;
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}

.top-bar {
    background: #111111;
    color: #ffffff;
    font-size: 13px;
}

.top-bar__inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 38px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}

.top-bar a {
    color: #ffffff;
    font-weight: 400;
}

.main-nav {
    width: min(1180px, calc(100% - 32px));
    min-height: 86px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.logo-link img {
    width: min(310px, 46vw);
    height: auto;
    display: block;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
}

.nav-links a {
    color: #333333;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 11px;
    font-size: 14px;
    font-weight: 700;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--blue);
}

.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 64px;
}

.embed-page {
    min-height: auto;
    background: transparent;
}

.embed-page .page-shell {
    width: 100%;
    padding: 0;
}

.embed-page .signup-form {
    border: 0;
    box-shadow: none;
}

.embed-page .result-card {
    width: 100%;
    margin: 0;
    border: 0;
    box-shadow: none;
    background: #ffffff;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    margin-bottom: 34px;
    min-height: 280px;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.18)),
        url("https://rc-allemannia.de/wp-content/uploads/2024/02/cropped-135_6957-scaled-2.jpg") center / cover;
    color: #ffffff;
}

.hero__copy {
    padding: clamp(30px, 5vw, 56px) clamp(24px, 5vw, 56px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h1,
h2 {
    margin: 0;
    letter-spacing: 0;
}

h1 {
    max-width: 650px;
    font-size: clamp(34px, 4.6vw, 56px);
    line-height: 1.12;
    font-weight: 700;
}

.hero p {
    max-width: 620px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(16px, 1.7vw, 19px);
    line-height: 1.6;
    font-weight: 400;
}

.form-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.signup-form,
.result-card {
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.admin-shell {
    width: min(1400px, calc(100% - 32px));
    margin: 0 auto;
    padding: 30px 0 70px;
}

/* Reminder-Verwaltung bewusst breiter als die normale Admin-Ansicht */
.reminder-shell {
    width: min(1600px, calc(100% - 48px));
}

.admin-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.admin-header h1 {
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.12;
}

.admin-subtitle {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 16px;
}

.admin-login,
.admin-create-form,
.admin-table-wrap,
.admin-toolbar,
.admin-message {
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.07);
}

.admin-login {
    width: min(460px, 100%);
    padding: 28px;
}

.admin-login button {
    margin-top: 18px;
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 14px;
    padding: 12px 14px;
}

.admin-toolbar nav,
.admin-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.admin-button,
.link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid #d8e3e8;
    border-radius: 999px;
    padding: 0 16px;
    background: #ffffff;
    color: #333333;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.admin-button:hover,
.admin-button.is-active,
.link-button:hover {
    border-color: var(--blue);
    background: #f2fbff;
    color: var(--blue-dark);
    box-shadow: 0 7px 18px rgba(3, 169, 244, 0.12);
    transform: translateY(-1px);
}

.admin-button--danger:hover,
.admin-button--danger.is-active {
    border-color: #b44716;
    background: #fff8ef;
    color: #8d3410;
}

.admin-button--primary:hover,
.admin-button--primary.is-active {
    border-color: var(--blue);
    background: var(--blue);
    color: #ffffff;
}

.admin-button--subtle {
    min-height: 34px;
    color: var(--blue-dark);
}

.link-button {
    max-width: 100%;
    min-height: 32px;
    padding: 0 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.link-button--small {
    margin-top: 7px;
    min-height: 28px;
    font-size: 12px;
}

.admin-actions form {
    margin: 0;
}

.admin-actions button {
    min-height: 40px;
    padding: 0 14px;
}

.admin-message {
    margin: 0 0 16px;
    padding: 14px 16px;
    color: var(--blue-dark);
    font-weight: 700;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 14px;
}

.stats-grid--wide {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.stat-card {
    min-height: 82px;
    padding: 14px 15px;
    border: 1px solid var(--line);
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.045);
}

.stat-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.25;
    font-weight: 800;
    text-transform: uppercase;
}

.stat-card strong {
    display: block;
    margin-top: 8px;
    color: var(--ink);
    font-size: 30px;
    line-height: 1;
}

.stat-card--warning {
    border-color: #ffd59c;
    background: #fff8ef;
}

.stat-card--success {
    border-color: #bce5ca;
    background: #f3fbf5;
}

.age-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.age-stat-card small {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    font-weight: 700;
}

.age-stats-table-wrap {
    box-shadow: none;
}

.reminder-shell .age-stats-table {
    min-width: 880px;
}

.stats-chart {
    margin: 18px 0 18px;
    padding: 22px 24px;
    border: 1px solid var(--line);
    background: #ffffff;
    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.07);
}

.stats-chart__header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.stats-chart__header h2 {
    font-size: 24px;
    line-height: 1.2;
}

.stats-chart__header p,
.stats-chart__empty {
    margin: 6px 0 0;
    color: var(--muted);
}

.stats-chart__legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 16px;
    color: #444444;
    font-size: 13px;
    font-weight: 800;
}

.stats-chart__legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.chart-key {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.chart-key--open,
.stats-chart__segment--open {
    background: var(--blue);
}

.chart-key--entered,
.stats-chart__segment--entered {
    background: #31a24c;
}

.chart-key--no-interest,
.stats-chart__segment--no-interest {
    background: #d94b3d;
}

.stats-chart__rows {
    display: grid;
    gap: 14px;
}

.stats-chart__row {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) 130px;
    gap: 14px;
    align-items: center;
}

.stats-chart__year {
    font-size: 16px;
    font-weight: 800;
}

.stats-chart__bar {
    display: flex;
    height: 22px;
    overflow: hidden;
    border: 1px solid #dfe5e8;
    border-radius: 999px;
    background: #f5f7f8;
}

.stats-chart__segment {
    min-width: 3px;
    height: 100%;
}

.stats-chart__total {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 5px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.stats-chart__total strong {
    color: var(--ink);
    font-size: 20px;
}

.year-bar-chart {
    display: flex;
    align-items: end;
    gap: 12px;
    min-height: 340px;
    padding: 10px 4px 0;
    overflow-x: auto;
}

.year-bar-chart__item {
    flex: 1 0 150px;
    display: grid;
    grid-template-rows: 28px 178px 26px auto;
    gap: 8px;
    align-items: end;
    text-align: center;
}

.year-bar-chart__value {
    color: var(--ink);
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
}

.year-bar-chart__track {
    height: 178px;
    padding: 8px;
    border-radius: 10px;
    background:
        linear-gradient(to top, rgba(0, 0, 0, 0.06) 1px, transparent 1px) 0 0 / 100% 25%,
        #f5f7f8;
    border: 1px solid #dfe5e8;
    overflow: hidden;
}

.year-bar-chart__bars {
    display: flex;
    align-items: stretch;
    gap: 5px;
    height: 100%;
    width: 100%;
}

.year-bar-chart__bar {
    display: grid;
    grid-template-rows: 18px minmax(0, 1fr);
    align-items: end;
    flex: 1 1 0;
    height: 100%;
    min-width: 0;
    width: 100%;
}

.year-bar-chart__bar-value {
    color: #333333;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
}

.year-bar-chart__segment {
    display: block;
    width: 100%;
    justify-self: stretch;
    min-height: 3px;
    border-radius: 5px 5px 0 0;
}

.year-bar-chart__segment--open {
    background: var(--blue);
}

.year-bar-chart__segment--entered {
    background: #31a24c;
}

.year-bar-chart__segment--no-interest {
    background: #d94b3d;
}

.year-bar-chart__year {
    color: #333333;
    font-size: 12px;
    font-weight: 800;
}

.year-bar-chart__year strong,
.year-bar-chart__year span {
    display: block;
}

.year-bar-chart__year span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    white-space: nowrap;
}

.year-bar-chart__item--empty .year-bar-chart__value,
.year-bar-chart__item--empty .year-bar-chart__year,
.year-bar-chart__item--empty .year-bar-chart__bar-value {
    color: #9aa3a8;
}

.month-age-matrix {
    width: 100%;
    border-collapse: collapse;
    color: #333333;
    font-size: 10px;
    line-height: 1.15;
    text-align: center;
}

.month-age-matrix th,
.month-age-matrix td {
    padding: 3px 2px;
    border-top: 1px solid #e5e5e5;
}

.month-age-matrix thead th {
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
}

.month-age-matrix th:first-child {
    text-align: left;
    font-weight: 800;
}

.month-age-matrix td {
    font-weight: 800;
}

.stats-table {
    min-width: 980px;
}

.stats-table th,
.stats-table td {
    text-align: right;
}

.stats-table th:first-child,
.stats-table td:first-child {
    text-align: left;
    width: 110px;
}

.admin-create-form {
    padding: clamp(22px, 3vw, 34px);
}

.form-header--compact {
    margin-bottom: 24px;
}

.field-hint {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.manual-slots {
    margin-top: 24px;
}

.manual-guardian {
    margin: 24px 0 0;
    padding: 22px;
    border: 1px solid var(--line);
    background: var(--soft);
}

.manual-guardian legend {
    padding: 0 8px;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1180px;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid var(--line);
    padding: 11px 12px;
    text-align: left;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

.admin-table th {
    background: #f5f7f8;
    color: #333333;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-table small {
    color: var(--muted);
}

.status-light {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 2px 8px 0 0;
    border-radius: 50%;
    vertical-align: top;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}

.status-light--eingetreten {
    background: #31a24c;
}

.status-light--kein_interesse {
    background: #d94b3d;
}

.status-text {
    display: inline-block;
}

.date-col {
    width: 92px;
}

.select-col {
    width: 82px;
}

.cleanup-check {
    width: 20px;
    height: 20px;
    min-height: auto;
    accent-color: var(--blue);
}

.cleanup-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.button-danger {
    border-color: #b44716;
    border-radius: 8px;
    background: #b44716;
}

.button-danger:hover {
    border-color: #8d3410;
    background: #8d3410;
}

.button-secondary {
    border: 1px solid #d8e3e8;
    border-radius: 999px;
    background: #ffffff;
    color: var(--blue-dark);
    box-shadow: none;
}

.button-secondary:hover {
    border-color: var(--blue);
    background: #f2fbff;
    color: var(--blue-dark);
}

/* Reminder-Tabelle: saubere Spalten und korrekte Überschriftenzeile */
.reminder-shell .admin-table {
    min-width: 1500px;
    table-layout: fixed;
}

.reminder-shell .admin-table th,
.reminder-shell .admin-table td {
    padding: 13px 12px;
}

.reminder-shell .admin-table th:nth-child(1),
.reminder-shell .admin-table td:nth-child(1),
.reminder-shell .admin-table th:nth-child(5),
.reminder-shell .admin-table td:nth-child(5),
.reminder-shell .admin-table th:nth-child(6),
.reminder-shell .admin-table td:nth-child(6),
.reminder-shell .admin-table th:nth-child(7),
.reminder-shell .admin-table td:nth-child(7) {
    white-space: nowrap;
}

.reminder-shell .admin-table--open th:nth-child(2),
.reminder-shell .admin-table--open td:nth-child(2),
.reminder-shell .admin-table--done th:nth-child(2),
.reminder-shell .admin-table--done td:nth-child(2) {
    white-space: nowrap;
}

.reminder-shell .admin-table--open th:nth-child(1),
.reminder-shell .admin-table--open td:nth-child(1),
.reminder-shell .admin-table--done th:nth-child(1),
.reminder-shell .admin-table--done td:nth-child(1) {
    width: 105px;
}

.reminder-shell .admin-table--open th:nth-child(2),
.reminder-shell .admin-table--open td:nth-child(2),
.reminder-shell .admin-table--done th:nth-child(2),
.reminder-shell .admin-table--done td:nth-child(2) {
    width: 155px;
}

.reminder-shell .admin-table--open th:nth-child(3),
.reminder-shell .admin-table--open td:nth-child(3),
.reminder-shell .admin-table--done th:nth-child(3),
.reminder-shell .admin-table--done td:nth-child(3) {
    width: 240px;
}

.reminder-shell .admin-table--open th:nth-child(4),
.reminder-shell .admin-table--open td:nth-child(4),
.reminder-shell .admin-table--done th:nth-child(4),
.reminder-shell .admin-table--done td:nth-child(4) {
    width: 235px;
}

.reminder-shell .admin-table--open th:nth-child(5),
.reminder-shell .admin-table--open td:nth-child(5),
.reminder-shell .admin-table--done th:nth-child(5),
.reminder-shell .admin-table--done td:nth-child(5) {
    width: 155px;
}

.reminder-shell .admin-table--open th:nth-child(6),
.reminder-shell .admin-table--open td:nth-child(6),
.reminder-shell .admin-table--done th:nth-child(6),
.reminder-shell .admin-table--done td:nth-child(6) {
    width: 120px;
}

.reminder-shell .admin-table--done th:nth-child(7),
.reminder-shell .admin-table--done td:nth-child(7) {
    width: 195px;
}

.reminder-shell .admin-table--done th:last-child,
.reminder-shell .admin-table--done td:last-child {
    width: 185px;
}

.reminder-shell .admin-table--open th:last-child,
.reminder-shell .admin-table--open td:last-child {
    width: 440px;
}

.reminder-shell .stats-table {
    min-width: 1120px;
    table-layout: auto;
}

.reminder-shell .admin-table--cleanup {
    min-width: 1380px;
}

.reminder-shell .admin-table--cleanup th:nth-child(1),
.reminder-shell .admin-table--cleanup td:nth-child(1) {
    width: 80px;
}

.reminder-shell .admin-table--cleanup th:nth-child(2),
.reminder-shell .admin-table--cleanup td:nth-child(2) {
    width: 105px;
}

.reminder-shell .admin-table--cleanup th:nth-child(3),
.reminder-shell .admin-table--cleanup td:nth-child(3) {
    width: 150px;
}

.reminder-shell .admin-table--cleanup th:nth-child(4),
.reminder-shell .admin-table--cleanup td:nth-child(4) {
    width: 240px;
}

.reminder-shell .admin-table--cleanup th:nth-child(5),
.reminder-shell .admin-table--cleanup td:nth-child(5) {
    width: 235px;
}

.reminder-shell .admin-table--cleanup th:nth-child(6),
.reminder-shell .admin-table--cleanup td:nth-child(6) {
    width: 155px;
}

.reminder-shell .admin-table--cleanup th:nth-child(7),
.reminder-shell .admin-table--cleanup td:nth-child(7) {
    width: 120px;
}

.reminder-shell .admin-table--cleanup th:nth-child(8),
.reminder-shell .admin-table--cleanup td:nth-child(8) {
    width: 195px;
}

/* Aktionsformular: Grund, Datum und Button in einer sauberen Reihe */
.inline-form {
    margin: 0;
    display: grid;
    grid-template-columns: 130px 140px 130px;
    align-items: flex-end;
    gap: 8px;
}

.complete-controls {
    display: contents;
    align-items: flex-end;
}

.complete-controls label {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.complete-controls label:first-child {
    width: 130px;
}

.complete-controls label:last-child {
    width: 140px;
}

.complete-controls label span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
}

.complete-controls select,
.complete-controls input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 40px;
    min-height: 40px;
    padding: 7px 10px;
    font-size: 14px;
    line-height: 1.2;
}

.inline-form button {
    width: 130px;
    height: 40px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    white-space: nowrap;
    align-self: flex-end;
    line-height: 1;
    font-size: 13px;
}

.inline-form--single {
    display: block;
}

.inline-form--single button {
    width: auto;
    min-width: 150px;
    height: 34px;
    min-height: 34px;
    padding: 0 14px;
    font-size: 12px;
    text-transform: none;
}

.status-form select {
    min-width: 138px;
    min-height: 38px;
}

.signup-form {
    padding: clamp(24px, 3.5vw, 40px);
    border-radius: 0;
}

.signup-form .form-control,
.signup-form .form-select,
.admin-create-form .form-control,
.admin-create-form .form-select {
    min-height: 48px;
    border-color: #d8d8d8;
    border-radius: 6px;
    color: var(--ink);
    font: inherit;
}

.signup-form textarea.form-control,
.admin-create-form textarea.form-control {
    min-height: 120px;
}

.signup-form .form-control:focus,
.signup-form .form-select:focus,
.signup-form .form-check-input:focus,
.admin-create-form .form-control:focus,
.admin-create-form .form-select:focus,
.admin-create-form .form-check-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 0.22rem rgba(3, 169, 244, 0.18);
}

.signup-form .form-check-input,
.admin-create-form .form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    min-width: 1.1rem;
    min-height: 1.1rem;
    margin: 0;
    padding: 0;
    border-color: #c7d0d6;
}

.signup-form .form-check-input:checked,
.admin-create-form .form-check-input:checked {
    border-color: var(--blue);
    background-color: var(--blue);
}

.form-header {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    padding-bottom: 26px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.form-header h2 {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
}

.form-header p {
    max-width: 555px;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
}

label,
legend {
    color: #333333;
    font-weight: 700;
}

label span,
legend {
    display: block;
    margin-bottom: 8px;
}

input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid #d8d8d8;
    border-radius: 0;
    padding: 12px 13px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
    font-weight: 400;
}

textarea {
    resize: vertical;
    line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(3, 169, 244, 0.28);
    border-color: var(--blue);
}

.guardian-block {
    display: none;
    margin: 24px 0 0;
    padding: 22px;
    border: 1px solid var(--line);
    background: var(--soft);
}

.guardian-block.is-visible {
    display: block;
}

.checkbox-group,
fieldset.checkbox-group {
    margin: 24px 0 0;
    padding: 20px 0 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.checkbox-group legend {
    margin-bottom: 12px;
    color: #333333;
    font-size: 15px;
}

.checkbox-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wide-field {
    display: block;
    margin-top: 24px;
}

.checks {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.check-row {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 15px;
    border: 1px solid var(--line);
    background: #fbfbfb;
    font-weight: 600;
}

.check-row input {
    min-height: auto;
    margin-top: 2px;
    accent-color: var(--blue);
}

.check-row--compact {
    display: inline-flex;
    width: auto;
    min-height: 40px;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border-color: #dfe5e8;
    border-radius: 6px;
    background: #ffffff;
    color: #333333;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.check-row--compact:hover {
    border-color: rgba(3, 169, 244, 0.52);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.check-row--compact:has(input:checked) {
    border-color: var(--blue);
    background: #f7fcff;
    box-shadow: inset 0 0 0 1px rgba(3, 169, 244, 0.16);
}

.check-row--compact span {
    display: inline-block;
    margin: 0;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
}

.check-row--compact input {
    appearance: none;
    flex: 0 0 17px;
    display: grid;
    place-items: center;
    width: 17px;
    height: 17px;
    min-width: 17px;
    min-height: 17px;
    margin: 0;
    border: 2px solid #c7d0d6;
    border-radius: 4px;
    background: #ffffff;
}

.check-row--compact input::before {
    content: "";
    width: 8px;
    height: 4px;
    border-left: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    opacity: 0;
    transform: rotate(-45deg) translate(1px, -1px);
}

.check-row--compact input:checked {
    border-color: var(--blue);
    background: var(--blue);
}

.check-row--compact input:checked::before {
    opacity: 1;
}

.legal-note {
    margin-top: 24px;
    padding: 17px 18px;
    border-left: 4px solid var(--orange);
    background: #fff8ef;
    color: #5f4a24;
    line-height: 1.6;
}

.legal-note p,
.form-status {
    margin: 0;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-top: 30px;
}

button {
    min-height: 50px;
    border: 2px solid var(--blue);
    border-radius: 0;
    padding: 0 25px;
    background: var(--blue);
    color: white;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

button:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
}

button:disabled {
    border-color: #cfcfcf;
    background: #cfcfcf;
    cursor: not-allowed;
}

.signup-form .btn {
    border-radius: 999px;
    padding-right: 24px;
    padding-left: 24px;
    text-transform: none;
}

.signup-form .btn-primary {
    border-color: var(--blue);
    background: var(--blue);
    font-weight: 800;
}

.signup-form .btn-primary:hover {
    border-color: var(--blue-dark);
    background: var(--blue-dark);
}

.form-status {
    margin-top: 16px;
    color: #b44716;
    font-weight: 700;
}

.hp-field {
    position: absolute;
    left: -9999px;
}

.site-footer {
    background: var(--footer);
    color: #999999;
}

.site-footer__inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0 34px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.site-footer h2 {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.3;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.site-footer p {
    margin: 0;
    line-height: 1.8;
}

.site-footer a {
    color: #999999;
    font-weight: 400;
}

.site-footer a:hover {
    color: #ffffff;
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px;
    text-align: center;
    color: #777777;
    font-size: 14px;
}

.result-card {
    width: min(680px, calc(100% - 32px));
    margin: 12vh auto;
    padding: clamp(28px, 6vw, 54px);
}

.result-card h1 {
    font-size: clamp(36px, 7vw, 62px);
    line-height: 1.08;
    margin-bottom: 18px;
}

.result-card p {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}

.success-kicker {
    color: var(--blue) !important;
    font-weight: 700;
    text-transform: uppercase;
}

@media (max-width: 1200px) {
    .reminder-shell {
        width: min(100% - 32px, 1500px);
    }

    .stats-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .stats-grid--wide {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .stats-chart__header {
        display: grid;
    }

    .stats-chart__legend {
        justify-content: flex-start;
    }

    .reminder-shell .admin-table {
        min-width: 1500px;
    }
}

@media (max-width: 930px) {
    .main-nav {
        align-items: flex-start;
        flex-direction: column;
        padding: 17px 0;
        gap: 14px;
    }

    .nav-links {
        justify-content: flex-start;
    }

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

    .form-header,
    .field-grid,
    .site-footer__inner {
        grid-template-columns: 1fr;
        display: grid;
    }
}

@media (max-width: 760px) {
    .admin-shell,
    .reminder-shell {
        width: min(100% - 22px, 1500px);
        padding-top: 22px;
    }

    .admin-header {
        display: grid;
        gap: 12px;
    }

    .admin-toolbar {
        align-items: stretch;
    }

    .admin-toolbar nav {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .admin-button {
        width: 100%;
    }

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

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

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

    .stats-chart {
        padding: 18px;
    }

    .stats-chart__row {
        grid-template-columns: 1fr;
        gap: 7px;
        padding: 12px 0;
        border-top: 1px solid var(--line);
    }

    .stats-chart__row:first-child {
        border-top: 0;
        padding-top: 0;
    }

    .stats-chart__total {
        justify-content: flex-start;
    }

    .year-bar-chart {
        gap: 10px;
        min-height: 210px;
    }

    .year-bar-chart__item {
        flex-basis: 72px;
        grid-template-rows: 26px 145px 26px;
    }

    .year-bar-chart__track {
        height: 145px;
    }

    .stat-card {
        min-height: 72px;
    }

    .stat-card strong {
        font-size: 25px;
    }

    .admin-table-wrap {
        overflow: visible;
        border: 0;
        box-shadow: none;
        background: transparent;
    }

    .admin-table,
    .reminder-shell .admin-table {
        min-width: 0;
        width: 100%;
        table-layout: auto;
        border-collapse: separate;
        border-spacing: 0 12px;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table tbody,
    .admin-table tr,
    .admin-table td {
        display: block;
        width: 100% !important;
    }

    .admin-table tr {
        border: 1px solid var(--line);
        background: #ffffff;
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
    }

    .admin-table td,
    .reminder-shell .admin-table td {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 7px;
        align-items: start;
        border-bottom: 1px solid var(--line);
        padding: 12px 14px;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .reminder-shell .admin-table td:nth-child(3),
    .reminder-shell .admin-table td:nth-child(4) {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .admin-table td:last-child {
        border-bottom: 0;
    }

    .admin-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 12px;
        line-height: 1.35;
        font-weight: 800;
        text-transform: uppercase;
    }

    .admin-table td[data-label="Auswahl"] {
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .admin-table td[data-label="Auswahl"]::before {
        grid-column: 1;
    }

    .admin-table td[data-label="Auswahl"] input {
        grid-column: 2;
    }

    .admin-table td[data-label="Aktion"] {
        display: block;
    }

    .admin-table td[data-label="Aktion"]::before {
        display: block;
        margin-bottom: 10px;
    }

    .admin-table .empty-row td {
        display: block;
    }

    .admin-table .empty-row td::before {
        content: none;
    }

    .link-button {
        width: 100%;
        justify-content: flex-start;
    }

    .cleanup-actions {
        justify-content: stretch;
    }

    .cleanup-actions button {
        width: 100%;
    }

    .inline-form {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .complete-controls {
        width: 100%;
        display: contents;
    }

    .complete-controls label:first-child,
    .complete-controls label:last-child {
        width: 100%;
    }

    .inline-form button {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .top-bar__inner,
    .main-nav,
    .page-shell,
    .site-footer__inner {
        width: min(100% - 22px, 1180px);
    }

    .nav-links a {
        padding: 0 8px 0 0;
        min-height: 34px;
    }

    .page-shell {
        padding-top: 26px;
    }

    .hero {
        min-height: auto;
    }

    h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 17px;
    }

    .signup-form,
    .hero__copy {
        padding: 22px;
    }
}
