/* MES.News – Ergänzungen zu mes.css (Designvorgaben CI 2.4, unverändert unter produktseite/_mes). Farben nur über die
   Variablen aus mes.css, damit Hell und Dunkel stimmen; die alten Namen bleiben als Verweise, damit die Bausteine der
   Anwendung (aus MES.Work übernommen) ohne Umbau weiterlaufen. Keine eigenen Farben, kein eigener Kopf. */
:root {
    --bg: var(--flaeche);
    --panel: var(--grund);
    --muted: var(--gedimmt);
    --line: var(--karte-linie);
    --primary: var(--akzent);
    --primary-2: color-mix(in srgb, var(--akzent) 82%, var(--text));
    --primary-soft: color-mix(in srgb, var(--akzent) 10%, var(--grund));
    --danger: var(--fehler);
    --success: var(--erfolg);
    --warning: var(--warnung);
}

* {
    box-sizing: border-box;
}

body.news-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--flaeche);
    font-size: 16px;
}

a {
    color: var(--primary);
}

/* Sprunglink „Zum Inhalt springen“ (CI 26.3); fehlt noch in mes.css (offener Punkt der Designvorgaben). */
.news-sprung {
    position: absolute;
    left: var(--space-4);
    top: -100px;
    z-index: 100;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius);
    background: var(--akzent);
    color: var(--akzent-text);
}

.news-sprung:focus {
    top: var(--space-2);
}

html {
    scroll-padding-top: calc(var(--kopf-hoehe, 64px) + var(--space-4));
}

/* Ausnahme zu mes.css: Abmelden und „Alle Sitzungen beenden“ sind Formulare im Kopf bzw. Menü. */
.mes-seitenkopf .mes-abmelden {
    flex: none;
}

.mes-benutzer {
    margin-left: auto;
}

.mes-menue ul {
    display: flex;
    gap: var(--space-6);
    margin: 0;
    padding: 0;
    list-style: none;
}

.mes-menue a {
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
}

.mes-menue a[aria-current="page"],
.mes-burger-feld a[aria-current="page"] {
    color: var(--akzent);
    font-weight: 600;
}

/* Bereiche der Verwaltung: Leiste unter dem Kopf, im Inhalt (CI 23, App-Kopf). */
.news-bereiche {
    background: var(--grund);
    border-bottom: 1px solid var(--linie);
}

.news-bereiche .mes-inhalt {
    display: flex;
    gap: var(--space-2);
    overflow-x: auto;
}

.news-bereiche a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 var(--space-3);
    border-bottom: 3px solid transparent;
    color: var(--gedimmt);
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
}

.news-bereiche a:hover {
    color: var(--text);
}

.news-bereiche a[aria-current="page"] {
    border-bottom-color: var(--akzent);
    color: var(--akzent);
    font-weight: 600;
}

.mes-seitenfuss {
    background: var(--grund);
}

.page {
    flex: 1;
    width: min(var(--breite), calc(100% - 2 * var(--rand, 16px)));
    margin: var(--space-8) auto var(--abstand);
}

.page:focus {
    outline: none;
}

.d-flex { display: flex; }
.align-items-center { align-items: center; }
.align-items-end { align-items: flex-end; }
.justify-content-between { justify-content: space-between; }
.text-end { text-align: right; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-danger { color: var(--danger); }
.fw-semibold { font-weight: 600; }
.small { font-size: 0.875rem; }
.h3 { font-size: 1.65rem; }
.w-100 { width: 100%; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--karte-radius);
}

.card-body {
    padding: 20px;
}

.shadow-sm {
    box-shadow: 0 1px 2px rgb(16 24 40 / 8%);
}

.table-responsive {
    overflow-x: auto;
}

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

.table th,
.table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
    white-space: nowrap;
}

.table th {
    text-align: left;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.table-hover tbody tr:hover {
    background: var(--karte-grund);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 var(--space-4);
    border: 1px solid transparent;
    border-radius: var(--pill);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--akzent-text);
}

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

.btn:disabled,
.btn.is-loading {
    opacity: 0.68;
    cursor: wait;
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--grund);
}

.btn-outline-secondary {
    border-color: var(--gedimmt);
    color: var(--text);
    background: var(--grund);
}

.btn-lg {
    min-height: 48px;
    padding: 0 var(--space-6);
}

.btn-group {
    display: inline-flex;
    gap: 6px;
}

.btn-group-sm .btn {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 0.82rem;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.text-bg-success { color: var(--akzent-text); background: var(--success); }
.text-bg-warning { color: var(--text); background: color-mix(in srgb, var(--warnung) 30%, var(--grund)); }
.text-bg-secondary { color: var(--akzent-text); background: var(--gedimmt); }

.alert {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 16px;
    background: var(--grund);
}

.alert-danger {
    border-color: color-mix(in srgb, var(--fehler) 40%, var(--grund));
    color: var(--danger);
    background: color-mix(in srgb, var(--fehler) 8%, var(--grund));
}

.alert-light {
    background: var(--flaeche);
}

.alert-success {
    border-color: color-mix(in srgb, var(--erfolg) 45%, var(--grund));
    color: var(--success);
    background: color-mix(in srgb, var(--erfolg) 8%, var(--grund));
}

.border {
    border: 1px solid var(--line);
}

.row {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
}

.g-3 {
    gap: 16px;
}

.col-md-3,
.col-md-4,
.col-md-6,
.col-md-8 {
    grid-column: span 12;
}

@media (min-width: 760px) {
    .col-md-3 { grid-column: span 3; }
    .col-md-4 { grid-column: span 4; }
    .col-md-6 { grid-column: span 6; }
    .col-md-8 { grid-column: span 8; }
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.form-control,
.form-select {
    display: block;
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--gedimmt);
    border-radius: var(--radius);
    background: var(--grund);
    color: var(--text);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-check-input {
    width: 16px;
    height: 16px;
}

.login-shell {
    min-height: calc(100vh - 130px);
    display: grid;
    place-items: center;
}

.login-card {
    width: min(420px, 100%);
    background: var(--grund);
    border: 1px solid var(--line);
    border-radius: var(--karte-radius);
    padding: 28px;
    box-shadow: 0 12px 32px rgb(16 24 40 / 12%);
}

.login-logo {
    width: 180px;
    max-height: 54px;
    object-fit: contain;
    margin-bottom: 18px;
}

.login-card h1 {
    margin: 0 0 8px;
    font-size: 1.5rem;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 36px;
    align-items: center;
    min-height: min(620px, calc(100vh - 118px));
    padding: 46px 0 38px;
}

.landing-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    gap: 42px;
    align-items: center;
    min-height: min(660px, calc(100vh - 116px));
    padding: 52px 0 42px;
}

.landing-hero::after {
    content: "";
    position: absolute;
    left: 50%;
    right: -120px;
    bottom: 18px;
    height: 130px;
    z-index: -1;
    background: var(--karte-grund);
    border-radius: 46% 54% 0 0 / 70% 62% 0 0;
    transform: rotate(-1deg);
}

.landing-hero__copy {
    max-width: 650px;
}

.landing-hero h1,
.config-hero h1 {
    margin: 0;
    font-size: 3rem;
    line-height: 1.05;
    letter-spacing: 0;
}

.landing-hero p,
.config-hero p {
    max-width: 670px;
    margin: 20px 0 0;
    color: var(--gedimmt);
    font-size: 1.08rem;
    line-height: 1.65;
}

.dashboard-stack {
    position: relative;
    min-height: 430px;
}

.wave-shape {
    position: absolute;
    inset: 18px -10px auto 18%;
    height: 250px;
    background: var(--karte-grund);
    border-radius: 34% 66% 52% 48% / 38% 32% 68% 62%;
    transform: rotate(8deg);
}

.mock-window {
    position: absolute;
    background: rgb(255 255 255 / 94%);
    border: 1px solid var(--karte-linie);
    border-radius: var(--karte-radius);
    box-shadow: 0 18px 44px rgb(16 24 40 / 14%);
}

.mock-window--main {
    top: 46px;
    left: 0;
    right: 0;
    padding: 18px;
}

.mock-window--float {
    left: 14%;
    right: 8%;
    bottom: 18px;
    padding: 16px;
}

.mock-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--linie);
    font-size: 0.9rem;
}

.mock-head span {
    color: var(--primary);
    background: var(--primary-soft);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.78rem;
    font-weight: 700;
}

.mock-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding-top: 14px;
}

.mock-tile {
    min-height: 126px;
    padding: 16px;
    border-radius: var(--radius);
}

.mock-tile--blue { background: color-mix(in srgb, var(--akzent) 10%, var(--grund)); }
.mock-tile--green { background: color-mix(in srgb, var(--erfolg) 10%, var(--grund)); }
.mock-tile--rose { background: color-mix(in srgb, var(--fehler) 8%, var(--grund)); }

.mock-tile span,
.source-list span {
    display: block;
    color: var(--gedimmt);
    font-size: 0.84rem;
}

.mock-tile strong {
    display: block;
    margin-top: 14px;
    font-size: 2rem;
}

.mock-tile small {
    color: var(--muted);
}

.source-list {
    display: grid;
    gap: 10px;
    padding-top: 14px;
}

.source-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 10px;
    background: var(--karte-grund);
    border-radius: var(--radius);
}

.landing-band {
    margin-top: 32px;
    padding: 38px 0;
    border-top: 1px solid var(--line);
}

.landing-band--mint {
    margin-left: calc((100vw - min(1160px, calc(100vw - 32px))) / -2);
    margin-right: calc((100vw - min(1160px, calc(100vw - 32px))) / -2);
    padding-left: calc((100vw - min(1160px, calc(100vw - 32px))) / 2);
    padding-right: calc((100vw - min(1160px, calc(100vw - 32px))) / 2);
    background: var(--flaeche);
}

.landing-band--split,
.config-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.product-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.product-row article {
    background: var(--grund);
    border: 1px solid var(--line);
    border-radius: var(--karte-radius);
    padding: 20px;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-row article:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 28px rgb(16 24 40 / 10%);
}

.product-row article.is-coming-soon {
    border-style: dashed;
    background: var(--karte-grund);
    color: var(--gedimmt);
}

.product-row article.is-coming-soon:hover {
    transform: none;
    box-shadow: none;
}

.product-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.coming-soon-badge {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 4px 9px;
    background: var(--flaeche);
    color: var(--gedimmt);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.product-row h3 {
    margin: 0 0 10px;
    font-size: 1.08rem;
}

.product-row p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.product-row--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.config-hero {
    padding: 36px 0 18px;
}

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

.config-panel,
.quote-panel {
    background: var(--grund);
    border: 1px solid var(--line);
    border-radius: var(--karte-radius);
    padding: 24px;
    box-shadow: 0 14px 34px rgb(16 24 40 / 9%);
}

.billing-toggle {
    display: inline-flex;
    gap: 6px;
    padding: 5px;
    margin-bottom: 24px;
    background: var(--flaeche);
    border-radius: 999px;
}

.billing-toggle button {
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    background: transparent;
    color: var(--gedimmt);
    cursor: pointer;
    font-weight: 700;
}

.billing-toggle button.is-active {
    background: var(--grund);
    color: var(--primary);
    box-shadow: 0 4px 10px rgb(16 24 40 / 10%);
}

.range-field {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
    margin-bottom: 22px;
    font-weight: 700;
}

.range-field input {
    grid-column: 1 / -1;
    accent-color: var(--primary);
}

.range-field strong {
    color: var(--primary);
}

.addon-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.addon-grid label {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    padding: 13px;
    border: 1px solid var(--karte-linie);
    border-radius: var(--radius);
    background: var(--karte-grund);
    font-weight: 700;
}

.addon-grid label.addon-disabled {
    border-style: dashed;
    background: var(--flaeche);
    color: var(--gedimmt);
}

.addon-grid label.addon-disabled input,
.addon-grid label.addon-disabled span {
    cursor: not-allowed;
}

.addon-grid label span {
    display: grid;
    gap: 4px;
}

.addon-grid small {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.35;
}

.addon-grid input {
    margin-top: 2px;
    accent-color: var(--primary);
}

.quote-panel {
    position: sticky;
    top: 86px;
    background: linear-gradient(180deg, var(--grund) 0, var(--karte-grund) 100%);
}

.quote-panel > span {
    display: block;
    color: var(--muted);
    font-size: 0.84rem;
    margin-bottom: 6px;
}

.quote-panel h2 {
    margin: 0 0 12px;
    font-size: 1.8rem;
}

.quote-price {
    margin-bottom: 18px;
}

.quote-price strong {
    font-size: 2.2rem;
}

.quote-price small {
    color: var(--muted);
    margin-left: 6px;
}

.quote-panel ul {
    margin: 0 0 20px;
    padding-left: 20px;
    color: var(--gedimmt);
    line-height: 1.7;
}

.wizard-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    margin-top: 24px;
}

.wizard-steps,
.wizard-card {
    background: var(--grund);
    border: 1px solid var(--line);
    border-radius: var(--karte-radius);
    box-shadow: 0 14px 34px rgb(16 24 40 / 8%);
}

.wizard-steps {
    position: sticky;
    top: 86px;
    padding: 22px;
}

.wizard-steps strong {
    display: block;
    margin-bottom: 14px;
    font-size: 1.05rem;
}

.wizard-steps ol {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: wizard;
}

.wizard-steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gedimmt);
    font-size: 0.92rem;
    line-height: 1.35;
    counter-increment: wizard;
}

.wizard-steps li::before {
    content: counter(wizard);
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: var(--karte-grund);
    color: var(--gedimmt);
    font-size: 0.78rem;
    font-weight: 700;
}

.wizard-steps li.is-active {
    color: var(--primary);
    font-weight: 700;
}

.wizard-steps li.is-active::before {
    background: var(--primary);
    color: var(--akzent-text);
}

.wizard-steps--compact li {
    align-items: flex-start;
}

.wizard-steps--compact small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.35;
}

.wizard-card {
    overflow: hidden;
}

.wizard-card__head {
    padding: 26px 28px 22px;
    border-bottom: 1px solid var(--line);
    background:
        var(--karte-grund);
}

.wizard-card__head span {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.wizard-card__head h2 {
    margin: 0 0 8px;
    font-size: 1.7rem;
}

.wizard-card__head p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

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

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

.form-grid label {
    display: grid;
    gap: 7px;
    color: var(--text);
    font-weight: 700;
}

.form-control {
    width: 100%;
    height: 42px;
    padding: 8px 11px;
    border: 1px solid var(--gedimmt);
    border-radius: var(--radius);
    background: var(--grund);
    color: var(--text);
    font: inherit;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgb(22 100 217 / 16%);
    outline: none;
}

.wizard-notice {
    padding: 15px 16px;
    border: 1px solid var(--karte-linie);
    border-radius: var(--radius);
    background: var(--karte-grund);
    color: var(--gedimmt);
    line-height: 1.5;
}

.wizard-code-field {
    display: grid;
    gap: 7px;
    max-width: 320px;
    color: var(--text);
    font-weight: 700;
}

.wizard-code-field input {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 5px;
    text-align: center;
}

.wizard-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wizard-checkbox {
    align-items: center;
    font-weight: 700;
}

.payment-options {
    display: grid;
    gap: 12px;
}

.payment-option {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 15px;
    border: 1px solid var(--karte-linie);
    border-radius: var(--radius);
    background: var(--karte-grund);
    cursor: pointer;
}

.payment-option input {
    margin-top: 3px;
    accent-color: var(--primary);
}

.payment-option span {
    display: grid;
    gap: 4px;
}

.payment-option small {
    color: var(--muted);
    line-height: 1.45;
}

.payment-details {
    display: grid;
    gap: 14px;
}

.busy-dialog {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    background: rgb(15 23 42 / 35%);
}

.busy-dialog__box {
    display: grid;
    justify-items: center;
    gap: 10px;
    width: min(360px, calc(100% - 36px));
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--karte-radius);
    background: var(--grund);
    box-shadow: 0 24px 70px rgb(16 24 40 / 28%);
    text-align: center;
}

.busy-dialog__box small {
    color: var(--muted);
}

.busy-spinner {
    width: 34px;
    height: 34px;
    border: 4px solid var(--karte-linie);
    border-top-color: var(--primary);
    border-radius: 999px;
    animation: busy-spin 800ms linear infinite;
}

@keyframes busy-spin {
    to { transform: rotate(360deg); }
}

.legal-consent-box {
    padding: 16px;
    border: 1px solid var(--karte-linie);
    border-radius: var(--radius);
    background: var(--grund);
}

.legal-consent-box strong {
    display: block;
    margin-bottom: 5px;
}

.legal-consent-box p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.5;
}

.legal-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.legal-link-row button {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-dialog {
    width: min(720px, calc(100% - 32px));
    border: 1px solid var(--line);
    border-radius: var(--karte-radius);
    padding: 28px;
    color: var(--text);
    box-shadow: 0 24px 70px rgb(16 24 40 / 28%);
}

.legal-dialog::backdrop {
    background: rgb(15 23 42 / 45%);
}

.legal-dialog h2 {
    margin: 0 36px 14px 0;
    font-size: 1.45rem;
}

.legal-dialog p {
    margin: 0 0 12px;
    color: var(--gedimmt);
    line-height: 1.6;
}

.legal-dialog__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--grund);
    color: var(--text);
    cursor: pointer;
    font-weight: 700;
}

.privacy-request-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 22px;
    align-items: start;
    margin-top: 24px;
}

.privacy-request-info {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--karte-radius);
    background: linear-gradient(180deg, var(--grund) 0, var(--karte-grund) 100%);
    box-shadow: 0 14px 34px rgb(16 24 40 / 8%);
}

.privacy-request-info h2 {
    margin: 0 0 14px;
    font-size: 1.35rem;
}

.privacy-request-info ul {
    margin: 0;
    padding-left: 20px;
    color: var(--gedimmt);
    line-height: 1.7;
}

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

.hero__content {
    max-width: 720px;
}

.eyebrow {
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.hero h1 {
    margin: 0;
    font-size: 3.1rem;
    line-height: 1.04;
    letter-spacing: 0;
}

.hero p {
    max-width: 660px;
    margin: 20px 0 0;
    color: var(--gedimmt);
    font-size: 1.08rem;
    line-height: 1.65;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero__panel {
    display: grid;
    gap: 14px;
    padding: 22px;
    background: var(--grund);
    border: 1px solid var(--line);
    border-radius: var(--karte-radius);
    box-shadow: 0 18px 42px rgb(16 24 40 / 12%);
}

.metric {
    padding: 18px;
    border: 1px solid var(--karte-linie);
    border-radius: var(--radius);
    background: var(--karte-grund);
}

.metric span,
.price-card span {
    display: block;
    color: var(--muted);
    font-size: 0.84rem;
    margin-bottom: 6px;
}

.metric strong {
    display: block;
    font-size: 1.08rem;
}

.section-band {
    margin-top: 26px;
    padding: 34px 0;
    border-top: 1px solid var(--line);
}

.section-head {
    max-width: 780px;
    margin-bottom: 22px;
}

.section-head h2,
.section-band h2 {
    margin: 0 0 10px;
    font-size: 1.7rem;
}

.section-head p,
.section-band > div > p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

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

.feature,
.price-card {
    background: var(--grund);
    border: 1px solid var(--line);
    border-radius: var(--karte-radius);
    padding: 20px;
}

.feature h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
}

.feature p,
.price-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.section-band--split {
    display: grid;
    grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1.45fr);
    gap: 26px;
    align-items: start;
}

.section-band--setup {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.price-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.9rem;
}

.price-card strong::after {
    content: " / Monat";
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 400;
}

.price-card--highlight {
    border-color: var(--akzent);
    background: var(--primary-soft);
}

.wizard-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.wizard-preview article {
    background: var(--grund);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
}

.wizard-preview span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 700;
}

.wizard-preview h2 {
    margin: 0 0 8px;
    font-size: 1.08rem;
}

.wizard-preview p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.newsletter-editor {
    display: grid;
    gap: 18px;
}

.editor-section {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--karte-radius);
    background: var(--grund);
    box-shadow: 0 1px 2px rgb(16 24 40 / 6%);
}

.editor-section__head {
    margin-bottom: 18px;
}

.editor-section__head h2 {
    margin: 0 0 6px;
    font-size: 1.25rem;
}

.editor-section__head p,
.editor-field small,
.option-card small {
    color: var(--muted);
    line-height: 1.45;
}

.editor-section__head p,
.editor-field small {
    margin: 0;
}

.editor-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
}

.editor-field {
    display: grid;
    gap: 6px;
    grid-column: span 4;
}

.editor-field--wide {
    grid-column: span 8;
}

.editor-field--full {
    grid-column: 1 / -1;
}

.editor-field > span {
    font-weight: 700;
}

.newsletter-description {
    min-height: 170px;
    resize: vertical;
}

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

.option-card {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-height: 78px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--karte-grund);
}

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

.option-card strong {
    margin-bottom: 4px;
}

.editor-actions {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}

.editor-actions--inline {
    margin-top: 14px;
}

.editor-section--details summary {
    cursor: pointer;
    font-weight: 700;
}

.tenant-editor {
    display: grid;
    gap: 18px;
}

.tenant-editor__section {
    border-radius: var(--radius);
}

.tenant-editor__section-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.tenant-editor__section-head h2 {
    margin: 0 0 4px;
    font-size: 1.2rem;
}

.tenant-editor__section-head p {
    margin: 0;
    color: var(--muted);
}

.tenant-radio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.tenant-choice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--karte-grund);
    cursor: pointer;
}

.tenant-choice input {
    margin-top: 4px;
}

.tenant-choice strong,
.tenant-choice small {
    display: block;
}

.tenant-choice small {
    margin-top: 4px;
    color: var(--muted);
    line-height: 1.35;
}

.tenant-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tenant-checks label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--grund);
}

.tenant-selfservice {
    padding: 12px 14px 12px 2.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--karte-grund);
}

.tenant-editor__actions {
    display: flex;
    justify-content: flex-start;
}

.setup-panel-open {
    overflow: hidden;
}

.setup-panel-backdrop {
    display: none;
}

.setup-panel-backdrop.is-open {
    position: fixed;
    inset: 0;
    z-index: 1040;
    display: block;
    background: rgba(15, 23, 42, 0.48);
}

.setup-detail-panel {
    display: none;
}

.setup-detail-panel.is-open {
    position: fixed;
    top: 48px;
    left: 50%;
    z-index: 1050;
    display: block;
    width: min(980px, calc(100vw - 32px));
    max-height: calc(100vh - 96px);
    overflow: auto;
    transform: translateX(-50%);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.setup-detail-panel--compact.is-open {
    padding: 18px 22px;
    background: var(--grund);
}

.setup-detail-panel__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.setup-form-grid {
    display: grid;
    gap: 16px;
}

.setup-form-grid--context {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.setup-form-grid--billing {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
}

.setup-form-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.setup-form-field .form-label {
    margin-bottom: 0;
    line-height: 1.25;
}

.setup-form-field .form-control,
.setup-form-field .form-select {
    min-width: 0;
}

.setup-form-field--wide {
    grid-column: 1 / -1;
}

.setup-form-field--span-2 {
    grid-column: span 2;
}

.setup-form-field--span-4 {
    grid-column: span 4;
}

.setup-form-field--span-6 {
    grid-column: span 6;
}

.setup-form-field--span-8 {
    grid-column: span 8;
}

.setup-task-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.setup-task {
    display: grid;
    gap: 6px;
    min-height: 132px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--grund);
    color: var(--text);
    text-decoration: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.setup-task:hover {
    border-color: var(--akzent);
    color: var(--text);
    text-decoration: none;
}

.setup-task__badge {
    justify-self: start;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.setup-task__title {
    font-weight: 800;
}

.setup-task__text {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.35;
}

.setup-task__meta {
    align-self: end;
    color: var(--muted);
    font-size: 0.8rem;
}

.setup-task--done {
    border-color: color-mix(in srgb, var(--erfolg) 45%, var(--grund));
    background: color-mix(in srgb, var(--erfolg) 8%, var(--grund));
}

.setup-task--done .setup-task__badge {
    color: var(--text);
    background: color-mix(in srgb, var(--erfolg) 22%, var(--grund));
}

.setup-task--open {
    border-color: color-mix(in srgb, var(--fehler) 40%, var(--grund));
    background: color-mix(in srgb, var(--fehler) 8%, var(--grund));
}

.setup-task--open .setup-task__badge {
    color: var(--text);
    background: color-mix(in srgb, var(--fehler) 22%, var(--grund));
}

.setup-task--pending {
    border-color: var(--karte-linie);
    background: var(--karte-grund);
}

.setup-task--pending .setup-task__badge {
    color: var(--text);
    background: var(--flaeche);
}

.setup-task-dialog__status {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.setup-task-dialog__status--done {
    color: var(--text);
    background: color-mix(in srgb, var(--erfolg) 22%, var(--grund));
}

.setup-task-dialog__status--open {
    color: var(--text);
    background: color-mix(in srgb, var(--fehler) 18%, var(--grund));
}

.setup-task-dialog__status--pending {
    color: var(--text);
    background: var(--flaeche);
}

.list-filter {
    border-radius: var(--radius);
}

.list-summary,
.list-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.9rem;
}

.list-pager {
    margin-top: 14px;
}

.list-pager .disabled {
    pointer-events: none;
    opacity: 0.55;
}

.native-modal {
    width: min(980px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    padding: 0;
    border: 0;
    border-radius: var(--karte-radius);
    color: var(--text);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.native-modal::backdrop {
    background: rgba(15, 23, 42, 0.48);
}

.native-modal__head,
.native-modal__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
}

.native-modal__head {
    border-bottom: 1px solid var(--line);
}

.native-modal__head h2 {
    margin: 0;
    font-size: 1.35rem;
}

.native-modal__head p {
    margin: 4px 0 0;
    color: var(--muted);
}

.native-modal__body {
    max-height: calc(100vh - 210px);
    overflow: auto;
    padding: 22px;
}

.native-modal__foot {
    border-top: 1px solid var(--line);
    background: var(--flaeche);
}

.modal-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.modal-form-fieldset {
    min-width: 0;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.modal-form-fieldset legend {
    float: none;
    width: auto;
    margin: 0 0 8px;
    padding: 0 4px;
    font-size: 0.95rem;
    font-weight: 700;
}

.modal-form-check {
    align-self: end;
    margin: 0;
    padding: 10px 0 0 1.6rem;
}

.modal-form-check--top {
    align-self: center;
    padding-top: 0;
}

.modal-form-panel {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--karte-grund);
}

.modal-form-panel--wide {
    grid-column: 1 / -1;
}

.modal-form-panel[hidden] {
    display: none;
}

.modal-form-note {
    align-self: center;
    color: var(--muted);
    font-size: 0.92rem;
}

.modal-form-note--wide {
    grid-column: 1 / -1;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--karte-grund);
}

.table th a {
    color: var(--text);
    text-decoration: none;
}

.table th a:hover {
    color: var(--primary);
}

@media (max-width: 760px) {
    .native-modal__head,
    .native-modal__foot {
        align-items: stretch;
        flex-direction: column;
    }

    .setup-task-grid,
    .modal-form-grid,
    .setup-form-grid--context,
    .setup-form-grid--billing {
        grid-template-columns: 1fr;
    }

    .setup-form-field,
    .setup-form-field--wide,
    .setup-form-field--span-2,
    .setup-form-field--span-4,
    .setup-form-field--span-6,
    .setup-form-field--span-8 {
        grid-column: 1 / -1;
    }
}

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

.admin-dashboard__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
    gap: 22px;
    align-items: stretch;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--karte-radius);
    background: linear-gradient(135deg, var(--grund) 0%, var(--karte-grund) 58%, var(--karte-grund) 100%);
}

.admin-dashboard__hero h1 {
    margin: 6px 0 10px;
    font-size: 2.2rem;
}

.admin-dashboard__hero p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.status-panel,
.metric-card,
.dashboard-panel {
    border: 1px solid var(--line);
    border-radius: var(--karte-radius);
    background: var(--grund);
}

.status-panel {
    padding: 20px;
}

.status-pill {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
}

.status-pill--zahlung-offen {
    background: color-mix(in srgb, var(--warnung) 15%, var(--grund));
    color: var(--text);
}

.status-pill--testmodus {
    background: color-mix(in srgb, var(--akzent) 12%, var(--grund));
    color: var(--akzent);
}

.status-panel dl,
.compact-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.status-panel dl div,
.compact-list div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
}

.status-panel dt,
.compact-list dt {
    color: var(--muted);
}

.status-panel dd,
.compact-list dd {
    margin: 0;
    font-weight: 700;
    text-align: right;
}

.metric-grid,
.dashboard-grid {
    display: grid;
    gap: 16px;
}

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

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

.metric-card,
.dashboard-panel {
    padding: 20px;
}

.metric-card span,
.metric-card small {
    display: block;
    color: var(--muted);
}

.metric-card strong {
    display: block;
    margin: 10px 0 6px;
    font-size: 2rem;
}

.dashboard-panel h2 {
    margin: 0 0 14px;
    font-size: 1.2rem;
}

.dashboard-panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.quota-line {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.quota-line strong {
    font-size: 2rem;
}

.quota-line span {
    color: var(--muted);
}

.quota-bar {
    height: 10px;
    margin-top: 16px;
    border-radius: 999px;
    background: var(--linie);
    overflow: hidden;
}

.quota-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--primary);
}

.action-list {
    display: grid;
    gap: 10px;
}

.action-list a {
    display: block;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
}

.action-list a:hover {
    border-color: var(--akzent);
    color: var(--primary);
    background: var(--primary-soft);
}

/* Buttons in der Aktionsliste bleiben Buttons (Pill, Text in akzent-text auf akzent). */
.action-list a.btn {
    display: inline-flex;
    justify-self: start;
    border-radius: var(--pill);
}

.action-list a.btn-primary,
.action-list a.btn-primary:hover {
    border-color: transparent;
    background: var(--primary);
    color: var(--akzent-text);
}

.portal-shell,
.portal-dashboard {
    width: min(1160px, calc(100% - 32px));
    margin: 34px auto 56px;
}

.portal-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 24px;
    align-items: start;
}

.portal-hero,
.portal-dashboard__head {
    border: 1px solid var(--line);
    border-radius: var(--karte-radius);
    background: linear-gradient(135deg, var(--grund) 0%, var(--karte-grund) 72%, var(--karte-grund) 100%);
}

.portal-hero {
    padding: 34px;
}

.portal-hero h1,
.portal-dashboard__head h1 {
    margin: 4px 0 10px;
}

.portal-hero p,
.portal-dashboard__head p,
.muted {
    color: var(--muted);
    line-height: 1.55;
}

.portal-dashboard {
    display: grid;
    gap: 18px;
}

.portal-dashboard__head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
}

.portal-card {
    border: 1px solid var(--line);
    border-radius: var(--karte-radius);
    background: var(--grund);
    padding: 24px;
}

.portal-card--wide {
    width: 100%;
}

.portal-card h2 {
    margin: 0 0 12px;
    font-size: 1.25rem;
}

.portal-card label {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
    font-weight: 700;
}

.portal-card input,
.portal-card select,
.portal-card textarea {
    width: 100%;
    border: 1px solid var(--gedimmt);
    border-radius: var(--radius);
    padding: 11px 12px;
    font: inherit;
    color: var(--text);
    background: var(--grund);
}

.portal-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.portal-field--wide {
    grid-column: 1 / -1;
}

.portal-grid,
.portal-list {
    display: grid;
    gap: 14px;
}

.portal-list-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--karte-grund);
}

.portal-list-item--compact {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.portal-list-item strong,
.portal-list-item span,
.portal-list-item small {
    display: block;
}

.portal-list-item span,
.portal-list-item small {
    color: var(--muted);
}

.portal-list-item p {
    margin: 8px 0;
    color: var(--muted);
    line-height: 1.45;
}

.portal-actions {
    display: grid;
    gap: 10px;
}

.portal-actions form {
    display: grid;
    gap: 8px;
}

.primary-button,
.secondary-button,
.danger-button {
    border: 1px solid transparent;
    border-radius: var(--pill);
    padding: 11px 16px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.primary-button {
    background: var(--primary);
    color: var(--akzent-text);
}

.secondary-button {
    border-color: var(--gedimmt);
    background: var(--grund);
    color: var(--text);
}

.danger-button {
    border-color: color-mix(in srgb, var(--fehler) 55%, var(--grund));
    background: color-mix(in srgb, var(--fehler) 8%, var(--grund));
    color: var(--fehler);
}

.secondary-link {
    display: inline-block;
    margin-left: 10px;
    color: var(--primary);
}

.mandatory-note,
.validation-summary {
    color: var(--text);
    font-weight: 700;
}

.site-footer {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto 28px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 18px;
    color: var(--muted);
    font-size: 0.9rem;
}

.site-footer a {
    color: var(--muted);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--primary);
}

@media (max-width: 900px) {
    .hero,
    .landing-hero,
    .section-band--split,
    .landing-band--split,
    .config-hero,
    .configurator,
    .admin-dashboard__hero,
    .portal-shell,
    .portal-list-item,
    .dashboard-grid,
    .editor-grid,
    .wizard-shell,
    .privacy-request-shell {
        grid-template-columns: 1fr;
    }

    .landing-band--split,
    .config-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero h1,
    .landing-hero h1,
    .config-hero h1 {
        font-size: 2.2rem;
    }

    .feature-grid,
    .price-grid,
    .wizard-preview,
    .metric-grid,
    .option-grid,
    .tenant-radio-grid,
    .product-row,
    .product-row--compact {
        grid-template-columns: 1fr 1fr;
    }

    .section-band--setup {
        align-items: flex-start;
        flex-direction: column;
    }

    .wizard-steps {
        position: static;
    }
}

@media (max-width: 620px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 14px 16px;
    }

    .brand img {
        width: 128px;
    }

    .topnav {
        flex-wrap: wrap;
        gap: 12px;
    }

    .feature-grid,
    .price-grid,
    .wizard-preview,
    .metric-grid,
    .option-grid,
    .tenant-radio-grid,
    .product-row,
    .product-row--compact,
    .mock-grid,
    .addon-grid {
        grid-template-columns: 1fr;
    }

    .editor-field,
    .editor-field--wide {
        grid-column: 1 / -1;
    }

    .hero,
    .landing-hero {
        padding-top: 28px;
    }

    .dashboard-stack {
        min-height: 560px;
    }

    .mock-window,
    .mock-window--main,
    .mock-window--float {
        position: relative;
        inset: auto;
        margin-bottom: 14px;
    }

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

    .portal-dashboard__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .portal-form-grid,
    .portal-list-item--compact {
        grid-template-columns: 1fr;
    }

    .wave-shape {
        display: none;
    }
}

/* Admin (MES.News E2.3): Felder, die nur MES ändern darf, stehen in einem gesperrten fieldset ohne eigenes Layout. */
.admin-fieldset {
    display: contents;
    margin: 0;
    padding: 0;
    border: 0;
}
