:root {
    --ml-primary: #84a829;
    --ml-primary-dark: #6a8721;
    --ml-accent: #bcc0c2;
    --ml-text: #2b2b2b;
    --ml-muted: #757575;
    --ml-bg: #f4f4f4;
    --ml-surface: #ffffff;
    --ml-border: #e8e8e8;
    --ml-error: #cf2e2e;
}

* {
    box-sizing: border-box;
}

html,
body {
    /* Verhindert, dass der einreihige, horizontal scrollbare Produktkatalog
       (bzw. andere breite Inhalte) die Seitenbreite aufbläht und rechts einen
       GAP erzeugt. Der Katalog scrollt weiterhin in seinem eigenen Container. */
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ml-text);
    background-color: var(--ml-bg);
    line-height: 1.5;
}

.ml-footer {
    padding: 20px 24px;
    text-align: center;
    color: var(--ml-muted);
    font-size: 0.85rem;
}

.ml-footer-link {
    color: var(--ml-muted);
    text-decoration: none;
}

.ml-footer-link + .ml-footer-link {
    margin-left: 16px;
}

.ml-footer-link:hover {
    color: var(--ml-primary);
    text-decoration: underline;
}

.ml-footer-version {
    display: block;
    margin-top: 8px;
    color: var(--ml-muted);
    font-size: 0.8rem;
}

.ml-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background-color: var(--ml-surface);
    border-bottom: 1px solid var(--ml-border);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.ml-header a {
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    transition: opacity 0.15s ease;
}

.ml-header a:hover .ml-logo {
    opacity: 0.85;
}

.ml-header img.ml-logo {
    height: 44px;
    width: auto;
    display: block;
    transition: opacity 0.15s ease;
}

.ml-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* --- Benutzer-Menü (Avatar + Abmelden) --- */
.ml-user-menu {
    position: relative;
}

.ml-user-menu > summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 6px 12px;
    border: 1px solid var(--ml-border);
    border-radius: 999px;
    background-color: var(--ml-bg);
    cursor: pointer;
    user-select: none;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.ml-user-menu > summary::-webkit-details-marker {
    display: none;
}

.ml-user-menu[open] > summary,
.ml-user-menu > summary:hover {
    border-color: var(--ml-primary);
    background-color: var(--ml-surface);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ml-avatar {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--ml-primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.ml-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.25;
    min-width: 0;
}

.ml-user-name {
    font-weight: 600;
    color: var(--ml-text);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ml-account-status {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ml-muted);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ml-account-status--pending {
    color: #d32f2f;
}

.ml-demo-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    background-color: var(--ml-accent);
    border-radius: 10px;
}

.ml-profile-email {
    margin: 16px 0 24px;
}

.ml-profile-email .ml-account-status {
    display: inline-block;
    max-width: none;
    margin-left: 8px;
}

.ml-profile-email-label {
    color: var(--ml-muted);
    margin-right: 4px;
}

.ml-user-caret {
    color: var(--ml-muted);
    font-size: 0.8rem;
    transition: transform 0.15s ease;
}

.ml-user-menu[open] .ml-user-caret {
    transform: rotate(180deg);
}

.ml-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    padding: 8px;
    border: 1px solid var(--ml-border);
    border-radius: 8px;
    background-color: var(--ml-surface);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 20;
}

.ml-user-dropdown form {
    margin: 0;
}

.ml-user-logout {
    width: 100%;
}

.ml-user-resend {
    width: 100%;
    margin-bottom: 8px;
}

.ml-user-link {
    display: block;
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 8px;
    border-radius: 6px;
    color: var(--ml-text);
    font-weight: 600;
    text-decoration: none;
}

.ml-user-link:hover {
    background-color: var(--ml-bg);
}

.ml-quota {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 6px 16px;
    border: 1px solid var(--ml-border);
    border-left: 4px solid var(--ml-accent);
    border-radius: 8px;
    background-color: var(--ml-bg);
    line-height: 1.2;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.ml-quota:hover {
    border-color: var(--ml-accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ml-quota-number {
    flex: 0 0 auto;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--ml-primary-dark);
}

.ml-quota-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.ml-quota-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ml-muted);
    white-space: nowrap;
}

.ml-quota-detail {
    font-size: 0.85rem;
    color: var(--ml-primary-dark);
    white-space: nowrap;
}

.ml-saved {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    text-align: right;
    height: 52px;
    padding: 6px 16px;
    border: 1px solid var(--ml-border);
    border-left: 4px solid var(--ml-accent);
    border-radius: 8px;
    background-color: var(--ml-bg);
    line-height: 1.3;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.ml-saved:hover {
    border-color: var(--ml-accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ml-saved-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ml-muted);
}

.ml-saved-value {
    font-size: 1.1rem;
    color: var(--ml-primary-dark);
}

.ml-saved-value strong {
    font-size: 1.4rem;
    color: var(--ml-accent);
}

.ml-main {
    width: 100%;
    /* Einheitliche, vernünftige Maximalbreite für den gesamten Portal-Content.
       Keine Seite wird breiter als 1200px; auf schmaleren Viewports skaliert
       der Container über die 100%-Breite mit. */
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 clamp(16px, 4vw, 48px);
}

.ml-main--narrow {
    max-width: 440px;
}

.ml-main--medium {
    max-width: 720px;
}

.ml-main--wide {
    max-width: 960px;
}

/* --- Einheitlicher "Zurück"-Link (immer oben links, modern & unaufdringlich) --- */
.ml-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    padding: 6px 4px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ml-muted);
    text-decoration: none;
    background: none;
    border: none;
    border-radius: 6px;
    transition: color 0.15s ease, transform 0.15s ease;
}

.ml-back:hover,
.ml-back:focus-visible {
    color: var(--ml-primary);
}

.ml-back-icon {
    display: inline-block;
    font-size: 1.05em;
    line-height: 1;
    transition: transform 0.15s ease;
}

.ml-back:hover .ml-back-icon,
.ml-back:focus-visible .ml-back-icon {
    transform: translateX(-3px);
}

.ml-card {
    background-color: var(--ml-surface);
    border: 1px solid var(--ml-border);
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

h1 {
    color: var(--ml-primary-dark);
    font-size: 1.6rem;
    margin-top: 0;
}

p {
    color: var(--ml-text);
}

label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    color: var(--ml-text);
}

input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 16px;
    border: 1px solid var(--ml-border);
    border-radius: 6px;
    font-size: 1rem;
}

input:focus {
    outline: none;
    border-color: var(--ml-primary);
    box-shadow: 0 0 0 3px rgba(132, 168, 41, 0.15);
}

button {
    background-color: var(--ml-primary);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

button:hover {
    background-color: var(--ml-primary-dark);
}

.ml-error {
    color: var(--ml-error);
    font-weight: 600;
}

.ml-success {
    color: var(--ml-primary-dark);
    font-weight: 600;
}

/* --- mobiLabel Design (energieausweisartig, angelehnt an mobiLabel) --- */
.ml-label {
    max-width: 850px;
    margin: 24px auto;
    padding: 24px 28px 20px;
    border: 1px solid var(--ml-border);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

/* --- Kopfzeile: "Standort bewertet von" + Logo ------------------------- */
.ml-label-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.ml-label-header-text {
    font-size: clamp(1.8rem, 5.2vw, 2.7rem);
    font-weight: 400;
    color: #333333;
    white-space: nowrap;
}

.ml-label-header-logo {
    height: clamp(46px, 9vw, 74px);
    width: auto;
    object-fit: contain;
    margin-left: auto;
}

/* --- Reihe: abwechselnd Icon und farbiger Noten-Kreis ----------------- */
.ml-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 12px 0 18px;
}

.ml-label-cell {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 2.5vw, 20px);
}

/* Klickbare Kategorie-Zellen (blenden Detail-Panel ein/aus) */
.ml-label-cell--tab {
    position: relative;
    font: inherit;
    color: inherit;
    background: none;
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 6px 8px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.ml-label-cell--tab:hover {
    border-color: var(--ml-border);
    background-color: var(--ml-bg);
}

.ml-label-cell--tab:focus-visible {
    outline: 2px solid var(--ml-primary);
    outline-offset: 2px;
}

.ml-label-cell--tab.is-active {
    border-color: var(--ml-primary);
    background-color: var(--ml-bg);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.ml-row-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    /* Feste Boxbreite (wie der Noten-Kreis), damit der horizontale Abstand
       zwischen Icon und zugehörigem Buchstaben in allen Kategorien gleich
       ist – unabhängig von der tatsächlichen Icon-Breite. */
    width: clamp(52px, 11vw, 78px);
    flex: 0 0 auto;
}

.ml-row-icon-img {
    height: clamp(52px, 11vw, 78px);
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Die drei Icons haben stark unterschiedliche Seitenverhältnisse (ÖV nahezu
   quadratisch, Aktive Mobilität breiter, Individualverkehr am flachsten).
   Bei gleicher Höhe wirkt das ÖV-Icon groß und das Auto-Icon klein. Damit alle
   Icons gleich groß *wirken*, wird ihre sichtbare Fläche angeglichen: je flacher
   (breiter) das Icon, desto geringer die Höhe (~1/sqrt(Seitenverhältnis)). */
.ml-row-icon-img--oev {
    height: clamp(52px, 11vw, 78px);
}

.ml-row-icon-img--am {
    height: clamp(42px, 8.8vw, 62px);
}

.ml-row-icon-img--iv {
    height: clamp(37px, 7.9vw, 56px);
}

.ml-row-grade {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(52px, 11vw, 78px);
    height: clamp(52px, 11vw, 78px);
    border-radius: 50%;
    font-size: clamp(2.1rem, 5.8vw, 3.3rem);
    line-height: 1;
    font-weight: 700;
    color: #ffffff;
    flex: 0 0 auto;
}

.ml-row-grade--empty {
    background-color: var(--ml-border);
    color: var(--ml-muted);
}

/* --- Fußzeile: Standort/Adresse und Abfragemonat ---------------------- */
.ml-label-foot {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 16px;
    color: #333333;
    font-size: clamp(0.95rem, 2.6vw, 1.35rem);
}

.ml-foot-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
}

.ml-foot-key {
    white-space: nowrap;
}

.ml-foot-val {
    text-align: right;
}

/* Fußzeile "Standort bewertet von mobiLabel" (unaufdringlich, unten rechts) */
.ml-label-brand {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid var(--ml-border);
}

.ml-label-brand-text {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--ml-muted);
}

.ml-label-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--ml-muted);
    letter-spacing: 0.2px;
}

.ml-label-brand-logo-img {
    height: 18px;
    width: auto;
    object-fit: contain;
}

.ml-label-brand-logo-text strong {
    color: var(--ml-primary);
    font-weight: 700;
}

/* Kategorien nebeneinander (wie im Beispiel) */
.ml-label-categories {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.ml-label-category {
    border: 1px solid var(--ml-border);
    border-radius: 16px;
    padding: 24px 18px;
    background-color: var(--ml-bg);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ml-label-category:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.ml-category-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.ml-category-icon {
    color: var(--ml-text);
    line-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 96px;
    width: 96px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px var(--ml-border);
}

.ml-category-icon-img {
    max-height: 72px;
    max-width: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.ml-category-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ml-primary-dark);
    min-height: 2.4em;
    display: flex;
    align-items: center;
}

.ml-category-grade {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    font-size: 3rem;
    line-height: 1;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    background-clip: padding-box;
    border: 4px solid rgba(255, 255, 255, 0.85);
}

.ml-category-grade::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
    pointer-events: none;
}

.ml-category-grade--empty {
    background-color: var(--ml-border);
    color: var(--ml-muted);
    text-shadow: none;
    box-shadow: none;
}

/* Registerkarten-Verhalten: Kategorie-Karten als Tabs */
button.ml-label-category {
    font: inherit;
    text-align: inherit;
    width: 100%;
    background-color: var(--ml-bg);
}

.ml-label-category--tab {
    cursor: pointer;
    position: relative;
}

/* Deutlicher Klick-Hinweis: zeigt an, dass die Karte mehr Informationen liefert */
.ml-label-category--tab .ml-category-head {
    margin-bottom: 12px;
}

.ml-label-category--tab::after {
    content: "Mehr erfahren \203A";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    margin-top: auto;
    padding: 6px 14px;
    border-radius: 999px;
    background-color: rgba(106, 135, 33, 0.08);
    color: var(--ml-primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ml-label-category--tab:hover::after,
.ml-label-category--tab:focus-visible::after {
    background-color: var(--ml-primary);
    color: #ffffff;
}

.ml-label-category--tab:focus-visible {
    outline: 2px solid var(--ml-primary);
    outline-offset: 2px;
}

/* Aktive Registerkarte hervorheben */
.ml-label-category--tab.is-active {
    border-color: var(--ml-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Im geöffneten Zustand signalisiert der Hinweis das Schließen */
.ml-label-category--tab.is-active::after {
    content: "Weniger anzeigen \2039";
    background-color: var(--ml-primary);
    color: #ffffff;
}

/* Volle-Breite-Detailbereich: standardmäßig nichts sichtbar */
.ml-label-details {
    margin-bottom: 28px;
}

.ml-category-details-panel {
    display: none;
    position: relative;
    border: 1px solid var(--ml-primary);
    border-radius: 16px;
    padding: 24px;
    background-color: var(--ml-bg);
}

/* Nur das Panel der aktiven Registerkarte anzeigen */
.ml-category-details-panel.is-open {
    display: block;
}

.ml-category-details-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ml-border);
    border-radius: 50%;
    background-color: #ffffff;
    color: var(--ml-muted);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.ml-category-details-close:hover {
    color: var(--ml-primary);
    border-color: var(--ml-primary);
}

.ml-category-details-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.ml-category-details-grade {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    flex: 0 0 auto;
}

.ml-category-details-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ml-primary-dark);
}

.ml-category-info-text {
    margin: 0 0 16px;
    font-size: 0.95rem;
    color: var(--ml-muted);
}

.ml-category-scale-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ml-scale-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    opacity: 0.55;
}

.ml-scale-list-item.is-active {
    opacity: 1;
    font-weight: 700;
}

.ml-scale-list-grade {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #ffffff;
    font-size: 0.8rem;
}

.ml-scale-list-text {
    flex: 1 1 auto;
}

/* Gesamte 7-teilige Skala (A–G) mit schwarzen Trennstrichen (wie Vorlage) */
.ml-label-scale {
    display: flex;
    gap: 0;
    margin-bottom: 4px;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    overflow: hidden;
}

.ml-scale-step {
    flex: 1 1 0;
    text-align: center;
    padding: clamp(10px, 2.5vw, 16px) 0;
    font-weight: 800;
    font-size: clamp(1.6rem, 4.6vw, 2.6rem);
    line-height: 1;
    color: #ffffff;
    border-right: 1px solid #1a1a1a;
}

.ml-scale-step:last-child {
    border-right: none;
}

/* Fußzeile mit Standort und Datum */
.ml-label-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--ml-text);
    font-size: 0.95rem;
}

.ml-label-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.ml-label-meta-label {
    color: var(--ml-muted);
    font-weight: 600;
}

.ml-label-meta-value {
    text-align: right;
    font-weight: 600;
}

@media (max-width: 640px) {
    .ml-main {
        margin: 20px auto;
    }

    .ml-card {
        padding: 20px;
    }

    .ml-header {
        padding: 12px 16px;
    }

    .ml-quota,
    .ml-saved {
        align-items: flex-start;
        text-align: left;
    }
}

/* --- Bestell-Hero / Call-To-Action --- */
.ml-order-hero {
    position: relative;
    overflow: hidden;
    margin: 8px 0 28px;
    padding: 32px;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--ml-primary-dark) 0%, var(--ml-primary) 55%, var(--ml-accent) 140%);
    box-shadow: 0 12px 32px rgba(106, 135, 33, 0.25);
}

.ml-order-hero-summary {
    display: block;
    position: relative;
    list-style: none;
    cursor: pointer;
    padding-right: 32px;
}

.ml-order-hero-summary::-webkit-details-marker {
    display: none;
}

/* Ausklapp-Indikator (Pfeil), der sich beim Öffnen dreht. */
.ml-order-hero-summary::after {
    content: "";
    position: absolute;
    top: 6px;
    right: 4px;
    width: 12px;
    height: 12px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.ml-order-hero[open] .ml-order-hero-summary::after {
    transform: rotate(-135deg);
}

.ml-order-hero-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.18);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ml-order-hero-title {
    margin: 0 0 12px;
    font-size: 1.9rem;
    line-height: 1.2;
    color: #ffffff;
}

.ml-order-hero-lead {
    margin: 0 0 24px;
    max-width: 60ch;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.92);
}

.ml-order-hero-lead strong {
    color: #ffffff;
}

.ml-order-benefits {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.ml-order-benefits li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(2px);
}

.ml-order-benefit-title {
    font-weight: 700;
    color: #ffffff;
}

.ml-order-benefit-title::before {
    content: "✓ ";
    color: #ffffff;
}

.ml-order-benefit-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.88);
}

.ml-order-hero-cta {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
}

@media (max-width: 640px) {
    .ml-order-hero {
        padding: 24px 20px;
    }

    .ml-order-hero-title {
        font-size: 1.5rem;
    }
}

/* USPs auf der Checkout-Seite */
.ml-checkout-usps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin: 16px 0;
    padding: 0;
    list-style: none;
    font-weight: 600;
    color: var(--ml-primary-dark);
}

/* In der Bestellzusammenfassung stehen die USPs untereinander. */
.ml-package-summary .ml-checkout-usps {
    flex-direction: column;
    gap: 8px;
    margin: 12px 0 0;
    font-size: 0.9rem;
}

/* --- Produktkatalog (Bestellung) --- */
.ml-catalog {
    margin: 24px 0;
}

/* Registerkarten via CSS-only Radiobuttons */
.ml-catalog-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ml-catalog-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 2px solid var(--ml-border);
    margin-bottom: 24px;
}

.ml-catalog-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    padding: 12px 24px;
    font-weight: 700;
    color: var(--ml-muted);
    cursor: pointer;
    border: 2px solid transparent;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.ml-catalog-tab:hover {
    color: var(--ml-primary-dark);
    background-color: var(--ml-bg);
}

/* Panels standardmäßig ausgeblendet */
.ml-catalog-panel {
    display: none;
}

/* Aktive Registerkarte + zugehöriges Panel anzeigen */
.ml-catalog-radio--ONE_TIME:checked ~ .ml-catalog-tabs .ml-catalog-tab--ONE_TIME,
.ml-catalog-radio--MONTHLY:checked ~ .ml-catalog-tabs .ml-catalog-tab--MONTHLY {
    color: var(--ml-primary-dark);
    background-color: var(--ml-surface);
    border-color: var(--ml-border);
    border-bottom: 2px solid var(--ml-surface);
    margin-bottom: -2px;
}

.ml-catalog-radio--ONE_TIME:checked ~ .ml-catalog-panels .ml-catalog-panel--ONE_TIME,
.ml-catalog-radio--MONTHLY:checked ~ .ml-catalog-panels .ml-catalog-panel--MONTHLY {
    display: block;
}

.ml-catalog-tab:focus-visible,
.ml-catalog-radio:focus-visible + .ml-catalog-tabs .ml-catalog-tab {
    outline: 2px solid var(--ml-primary);
    outline-offset: 2px;
}

/* Zeile mit Einzelpaketen (links, 3/4) und Demo-Hinweis (rechts, 1/4). */
.ml-single-packages-row {
    display: flex;
    align-items: stretch;
    gap: 16px;
    margin-bottom: 24px;
}

.ml-single-packages-row > .ml-single-packages {
    flex: 3 1 0;
    margin-bottom: 0;
}

.ml-single-packages-row > .ml-demo-cta {
    flex: 1 1 0;
}

/* Einzelpakete (Einmal-Zahlung, Kontingentgröße 1) oberhalb der Registerkarten.
   Jedes Paket in einer eigenen Zeile, Informationen horizontal angeordnet. */
.ml-single-packages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.ml-single-package {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    /* Doppelt so hohe Darstellung wie die übrigen Zeilen (vertikales
       Padding von 16px auf 32px verdoppelt). */
    padding: 32px 20px;
    border: 1px solid var(--ml-border);
    border-left: 4px solid var(--ml-primary);
    border-radius: 12px;
    background-color: var(--ml-surface);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ml-single-package:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.ml-single-package-main {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    flex: 1 1 auto;
}

.ml-single-package-title {
    margin: 0;
    font-size: 1.05rem;
    color: var(--ml-primary-dark);
}

.ml-single-package-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.ml-single-package-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.ml-single-package-price-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ml-text);
}

.ml-single-package-price-note {
    font-size: 0.85rem;
    color: var(--ml-muted);
}

.ml-single-package-fact {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ml-single-package-action {
    flex: 0 0 auto;
}

/* Hinweis-Bereich mit Call-To-Action für das kostenlose Demo-Label.
   Steht rechts neben den Einzelpaketen und nimmt 1/4 der Breite ein –
   daher vertikal (Titel, Text, Aktion untereinander) angeordnet. */
.ml-demo-cta {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    border-left-color: var(--ml-accent);
    background: linear-gradient(135deg, rgba(132, 168, 41, 0.06) 0%, rgba(188, 192, 194, 0.08) 100%);
}

.ml-demo-cta .ml-single-package-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.ml-demo-cta-text {
    margin: 0;
    max-width: 46ch;
    font-size: 0.95rem;
    color: var(--ml-muted);
}

.ml-demo-cta-action {
    background-color: var(--ml-accent);
    box-shadow: 0 4px 12px rgba(188, 192, 194, 0.25);
}

/* --- Koordinaten-Abruf (Schritt 1) – moderne Gestaltung --- */
.ml-lookup {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.ml-lookup-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px 28px;
    border-radius: 16px;
    border-left: 4px solid var(--ml-primary);
    background: linear-gradient(135deg, rgba(132, 168, 41, 0.06) 0%, rgba(188, 192, 194, 0.08) 100%);
}

.ml-lookup-eyebrow {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--ml-primary);
}

.ml-lookup-title {
    margin: 0;
}

.ml-lookup-lead {
    margin: 0;
    max-width: 60ch;
    color: var(--ml-muted);
}

/* Zwei Spalten: links das Formular, rechts der Demo-Hinweis. */
.ml-lookup-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    align-items: stretch;
    gap: 24px;
}

.ml-lookup-form-card {
    padding: 28px;
    border: 1px solid var(--ml-border);
    border-radius: 16px;
    background-color: var(--ml-surface);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ml-lookup-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

/* Der wiederverwendete Demo-Hinweis füllt die Aside-Spalte vollständig. */
.ml-lookup-aside {
    display: flex;
}

.ml-lookup-aside > .ml-demo-cta,
.ml-lookup-aside > .ml-package-summary {
    flex: 1 1 auto;
}

/* Bestellzusammenfassung als eigenständige Karte in der Aside-Spalte */
.ml-lookup-aside > .ml-package-summary {
    margin: 0;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Zusammenfassungs-Aside: Paketkarte (wie in der Produktauswahl) + USP-Liste
   untereinander, Karte füllt die volle Spaltenbreite. */
.ml-lookup-aside--summary {
    flex-direction: column;
    gap: 16px;
}

.ml-lookup-aside--summary > .ml-package-card {
    flex: 0 0 auto;
    width: 100%;
}

.ml-lookup-aside--summary .ml-checkout-usps {
    flex-direction: column;
    gap: 8px;
    margin: 0;
    font-size: 0.9rem;
}

.ml-lookup-back {
    margin: 0;
}

@media (max-width: 720px) {
    .ml-lookup-grid {
        grid-template-columns: 1fr;
    }
}

/* Bestätigungs-Screen für ein JustImmo-Objekt (Objekt-Vorschau) */
.ml-justimmo-object {
    max-width: 960px;
    margin: 20px auto 24px;
    padding: 24px;
    border: 1px solid var(--ml-border);
    border-radius: 16px;
    background-color: var(--ml-surface);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

/* Kopfbereich: kleines Bild links, großer Titel rechts */
.ml-justimmo-object-head {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ml-justimmo-object-image {
    flex: 0 0 auto;
}

.ml-justimmo-object-image img {
    display: block;
    width: 96px;
    height: 96px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--ml-border);
}

.ml-justimmo-object-heading {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.ml-justimmo-object-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ml-primary);
}

.ml-justimmo-object-title {
    margin: 0;
    font-size: 1.75rem;
    line-height: 1.2;
    font-weight: 800;
    color: var(--ml-text);
}

.ml-justimmo-object-status {
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 999px;
    background-color: var(--ml-bg);
    border: 1px solid var(--ml-border);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ml-muted);
}

.ml-justimmo-object-details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 16px;
    margin: 20px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--ml-border);
}

.ml-justimmo-object-details dt {
    font-weight: 600;
    color: var(--ml-muted, #6b7780);
}

.ml-justimmo-object-details dd {
    margin: 0;
    color: var(--ml-text);
}

.ml-justimmo-object-coords {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--ml-border);
}

.ml-justimmo-object-coords .ml-location-panel-eyebrow {
    display: block;
    margin-bottom: 10px;
}

.ml-justimmo-object-nocoords {
    margin: 0;
    color: var(--ml-muted);
}

/* Adresse im Justimmo-Bestätigungs-Screen prominent hervorheben */
.ml-justimmo-object-details dd {
    font-size: 1.05rem;
    font-weight: 600;
}

/* ---------------------------------------------------------------------------
   Schritt 2: "Ermittelte Position prüfen" (Bestätigungs-Screen der
   Adress-/Koordinaten-Suche) – im Card-Stil, passend zum Eingabe-Schritt
   und zum Justimmo-Bestätigungs-Screen.
   --------------------------------------------------------------------------- */
.ml-verify-panel {
    max-width: 960px;
    margin: 20px auto 24px;
    padding: 24px;
    border: 1px solid var(--ml-border);
    border-radius: 16px;
    background-color: var(--ml-surface);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.ml-verify-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 40px;
    margin-bottom: 20px;
}

.ml-verify-address,
.ml-verify-coords {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.ml-verify-address {
    flex: 1 1 260px;
}

.ml-verify-address-value {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ml-text);
}

.ml-verify-map {
    position: relative;
    width: 100%;
    height: 360px;
    margin: 0;
    border-radius: 12px;
    border: 1px solid var(--ml-border);
    overflow: hidden;
}

.ml-verify-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 24px;
    max-width: 960px;
    margin: 0 auto 24px;
}

.ml-verify-actions form {
    margin: 0;
}

.ml-verify-back-link {
    font-weight: 600;
    color: var(--ml-muted);
}

/* Adresse in der Standort-Card der Detailseite */
.ml-location-address {
    flex: 1 1 100%;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ml-text);
}

/* Adresse in der mobiLabel-Meta (Label-Fußzeile) hervorheben */
.ml-label-meta-row--address .ml-label-meta-value {
    font-weight: 700;
}

/* Adresse in der Kachel-Übersicht */
.ml-label-tile-location-address {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ml-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .ml-justimmo-object-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .ml-justimmo-object-title {
        font-size: 1.4rem;
    }
}

/* Spalten für den Vergleich der Pakete – alle Pakete in einer Zeile,
   bei Platzmangel horizontal scrollbar mit deutlich sichtbarer Scroll-Leiste. */
.ml-catalog-scroll {
    position: relative;
    max-width: 100%;
}

.ml-catalog-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    /* Platz für die dauerhaft sichtbare Scroll-Leiste + Fade-Hinweis */
    padding: 4px 4px 16px;
    scroll-snap-type: x proximity;
    /* Firefox: Scroll-Leiste einfärben und einblenden */
    scrollbar-width: thin;
    scrollbar-color: var(--ml-primary) var(--ml-border);
}

.ml-catalog-grid > .ml-package-card {
    flex: 0 0 250px;
    scroll-snap-align: start;
}

/* WebKit/Blink: Scroll-Leiste dauerhaft und deutlich darstellen */
.ml-catalog-grid::-webkit-scrollbar {
    height: 10px;
}

.ml-catalog-grid::-webkit-scrollbar-track {
    background: var(--ml-border);
    border-radius: 999px;
}

.ml-catalog-grid::-webkit-scrollbar-thumb {
    background: var(--ml-primary);
    border-radius: 999px;
}

.ml-catalog-grid::-webkit-scrollbar-thumb:hover {
    background: var(--ml-primary-dark);
}

/* Rechter Fade-Hinweis, dass horizontal weitergescrollt werden kann */
.ml-catalog-scroll::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 16px;
    width: 40px;
    pointer-events: none;
    background: linear-gradient(to right, rgba(244, 244, 244, 0), var(--ml-bg));
    border-radius: 0 12px 12px 0;
}

/* Expliziter Text-Hinweis auf die Scroll-Möglichkeit */
.ml-catalog-scroll-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ml-primary-dark);
}

.ml-catalog-scroll-hint::after {
    content: "→";
    display: inline-block;
    animation: ml-scroll-hint 1.4s ease-in-out infinite;
}

@keyframes ml-scroll-hint {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}

.ml-package-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--ml-border);
    border-top: 4px solid var(--ml-primary);
    border-radius: 12px;
    padding: 24px 20px;
    background-color: var(--ml-surface);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ml-package-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.ml-package-card--soon {
    border-top-color: var(--ml-accent);
    background-color: var(--ml-bg);
}

.ml-badge-soon {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background-color: var(--ml-accent);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ml-package-card-badge {
    align-self: flex-start;
    margin-bottom: 12px;
}

.ml-package-title {
    margin: 0 0 12px;
    font-size: 1.1rem;
    color: var(--ml-primary-dark);
}

.ml-package-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 16px;
}

.ml-package-price-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--ml-text);
}

/* Dezimalstellen (Cent) deutlich kleiner als die ganzen Euro-Beträge */
.ml-package-price-decimals {
    font-size: 0.55em;
    font-weight: 700;
    vertical-align: super;
    margin-left: 1px;
}

.ml-package-price-note {
    font-size: 0.85rem;
    color: var(--ml-muted);
}

.ml-package-quota {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-bottom: 16px;
    padding: 16px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(132, 168, 41, 0.08) 0%, rgba(188, 192, 194, 0.10) 100%);
    border: 1px solid var(--ml-border);
    text-align: center;
}

.ml-package-quota-value {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--ml-primary-dark);
}

.ml-package-quota-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ml-muted);
}

.ml-package-facts {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
}

.ml-package-facts li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--ml-border);
    font-size: 0.9rem;
}

.ml-package-fact-label {
    color: var(--ml-muted);
    font-weight: 600;
}

.ml-package-fact-value {
    text-align: right;
    font-weight: 700;
    color: var(--ml-text);
}

.ml-package-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    text-decoration: none;
    background-color: var(--ml-primary);
    color: #ffffff;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(132, 168, 41, 0.25);
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.ml-package-action:hover {
    background-color: var(--ml-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(106, 135, 33, 0.32);
}

.ml-package-action-arrow {
    display: inline-block;
    transition: transform 0.15s ease;
}

.ml-package-action:hover .ml-package-action-arrow {
    transform: translateX(4px);
}

.ml-package-action--waitlist {
    background-color: var(--ml-accent);
}

.ml-package-action--waitlist:hover {
    background-color: #5f8600;
}

.ml-catalog-soon-note {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
    border: 1px solid var(--ml-border);
    border-left: 4px solid var(--ml-accent);
    border-radius: 8px;
    background-color: var(--ml-bg);
    font-size: 0.92rem;
    color: var(--ml-text);
}

/* Zusammenfassung des gewählten Pakets (Checkout / Warteliste) */
.ml-package-summary {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 20px;
    margin: 20px 0;
    border: 1px solid var(--ml-border);
    border-left: 4px solid var(--ml-primary);
    border-radius: 8px;
    background-color: var(--ml-bg);
}

.ml-package-summary--soon {
    border-left-color: var(--ml-accent);
}

.ml-package-summary-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ml-primary-dark);
}

.ml-package-summary-meta {
    font-size: 0.9rem;
    color: var(--ml-muted);
}

/* Kopfbereich der Bestellübersicht mit deutlichem Call-To-Action */
.ml-order-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-bottom: 8px;
}

.ml-order-header h1 {
    margin-bottom: 4px;
}

/* Call-To-Action "Neue Bestellung" */
.ml-order-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 12px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ml-primary) 0%, var(--ml-accent) 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(132, 168, 41, 0.28);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ml-order-cta:hover {
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(132, 168, 41, 0.38);
    transform: translateY(-2px);
}

.ml-order-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.25);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

/* Leerzustand mit prominentem CTA */
.ml-order-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
    padding: 40px 24px;
    text-align: center;
    border: 1px dashed var(--ml-border);
    border-radius: 16px;
    background-color: var(--ml-bg);
}

.ml-order-empty p {
    margin: 0;
    color: var(--ml-muted);
}

/* Bestellübersicht – klar strukturierte Karten (Kopf / Body / Fakten) */
.ml-order-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin: 24px 0;
}

.ml-order-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--ml-border);
    border-left: 6px solid var(--ml-primary);
    border-radius: 12px;
    background-color: var(--ml-surface);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ml-order-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    transform: translateY(-3px);
}

/* Kopf: Titel links, Status-Badge rechts */
.ml-order-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--ml-border);
}

.ml-order-title {
    margin: 0;
    font-size: 1.05rem;
    color: var(--ml-primary-dark);
}

.ml-order-status {
    flex: 0 0 auto;
    padding: 4px 12px;
    border-radius: 999px;
    background-color: var(--ml-primary);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* Status-Badge samt Info-Icon nebeneinander */
.ml-order-status-wrap {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Info-Icon neben dem Status: sichtbar, solange die Zahlung nicht eingegangen ist */
.ml-order-status-info {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background-color: var(--ml-primary);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    font-style: italic;
    font-family: Georgia, "Times New Roman", serif;
    cursor: help;
    user-select: none;
}

.ml-order-status-info::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 10;
    width: max-content;
    max-width: 240px;
    padding: 8px 10px;
    border-radius: 8px;
    background-color: var(--ml-text, #1f2933);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 500;
    font-style: normal;
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.35;
    white-space: normal;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.ml-order-status-info:hover::after,
.ml-order-status-info:focus::after {
    opacity: 1;
    visibility: visible;
}

/* Body: Preis und Kontingent gleichwertig nebeneinander */
.ml-order-body {
    display: flex;
    gap: 1px;
    background-color: var(--ml-border);
}

.ml-order-metric {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 20px;
    background-color: var(--ml-surface);
}

.ml-order-metric--quota {
    background: linear-gradient(135deg, rgba(132, 168, 41, 0.06) 0%, rgba(188, 192, 194, 0.08) 100%);
}

.ml-order-metric-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ml-muted);
}

.ml-order-metric-value {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--ml-text);
}

.ml-order-metric-decimals {
    font-size: 0.55em;
    font-weight: 700;
    vertical-align: super;
    margin-left: 1px;
}

.ml-order-metric-note {
    font-size: 0.82rem;
    color: var(--ml-muted);
}

/* Fakten: Label/Wert-Paare als ruhige Fußzeile */
.ml-order-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 32px;
    margin: 0;
    padding: 14px 20px;
    background-color: var(--ml-bg);
    border-top: 1px solid var(--ml-border);
}

.ml-order-fact {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ml-order-fact dt {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ml-muted);
}

.ml-order-fact dd {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ml-text);
}

/* Statusabhängige Akzentfarben */
.ml-order-card--paid {
    border-left-color: var(--ml-accent);
}

.ml-order-card--paid .ml-order-status {
    background-color: var(--ml-accent);
}

.ml-order-card--cancelled {
    border-left-color: var(--ml-muted);
    opacity: 0.9;
}

.ml-order-card--cancelled .ml-order-status {
    background-color: var(--ml-muted);
}

/* ---------------------------------------------------------------------------
   mobiLabel-Detailseite: Standort prominent, Token-Link unauffällig
   --------------------------------------------------------------------------- */

/* Standort als ruhige, eingebettete Karte im Card-Stil der übrigen Seiten */
.ml-location-panel {
    max-width: 960px;
    margin: 0 auto 24px;
    padding: 20px 24px 24px;
    background-color: var(--ml-surface);
    border: 1px solid var(--ml-border);
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.ml-location-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.ml-location-panel-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ml-primary);
}

/* Koordinaten als dezente Chips */
.ml-location-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ml-location-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background-color: var(--ml-bg);
    border: 1px solid var(--ml-border);
}

.ml-location-chip-key {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ml-muted);
}

.ml-location-chip-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ml-text);
}

/* Ist eine Adresse vorhanden, steht diese im Fokus und die Koordinaten
   treten als dezente, kleinere Angabe in den Hintergrund. Ohne Adresse
   bleiben die Koordinaten prominent (Standarddarstellung oben). */
.ml-location-chips--muted {
    gap: 6px;
}

.ml-location-chips--muted .ml-location-chip {
    padding: 3px 10px;
    background-color: transparent;
    border-color: transparent;
}

.ml-location-chips--muted .ml-location-chip-key {
    color: var(--ml-muted);
}

.ml-location-chips--muted .ml-location-chip-val {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ml-muted);
}

/* Karte über die volle Breite, ruhig eingebettet */
.ml-location-map {
    position: relative;
    width: 100%;
    height: 240px;
    margin: 0;
    border-radius: 12px;
    border: 1px solid var(--ml-border);
    overflow: hidden;
    outline: none;
    transition: height 0.25s ease, box-shadow 0.25s ease;
}

/* Steuer-Buttons als Icons rechts oben in der Karte */
.ml-location-map-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1000;
    display: flex;
    gap: 0.35rem;
}

.ml-map-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    color: var(--ml-text);
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--ml-border);
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.ml-map-button:hover {
    background-color: #fff;
}

.ml-map-button[hidden] {
    display: none;
}

/* In der verkleinerten Kartenansicht alle Steuerelemente ausblenden */
.ml-location-map:not(.ml-location-map--focused) .leaflet-control-container {
    display: none;
}

/* Vergrößerte Kartenansicht */
.ml-location-map--focused {
    height: min(78vh, 760px);
    box-shadow: 0 0 0 3px var(--ml-accent);
    /* Im vergrößerten Modus wird die Karte als erstes Tile oben angezeigt,
       der Standort erscheint darunter. */
    order: -1;
}

/* Isochronen-Bedienfeld – als schwebende Karte links unten */
.ml-iso-controls {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    min-width: 210px;
    padding: 16px 18px;
    background-color: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--ml-border);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
    font-size: 0.9rem;
    backdrop-filter: blur(6px);
}

.ml-iso-controls-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: var(--ml-text);
}

/* Info-Icon neben dem Titel – erklärt die 30-Minuten-Erreichbarkeit */
.ml-iso-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--ml-primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    font-style: italic;
    line-height: 1;
    cursor: help;
    user-select: none;
}

.ml-iso-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    color: var(--ml-text);
    font-weight: 600;
    line-height: 1.2;
}

/* Größere, farblich abgestimmte Checkbox */
.ml-iso-option input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--ml-primary);
    cursor: pointer;
}

/* Farbmarker – einheitliches Quadrat für alle Isochronen-Typen */
.ml-iso-swatch {
    display: inline-block;
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.ml-iso-option-text {
    flex: 1 1 auto;
}

/* Isochronen-Bedienfeld nur in der vergrößerten Karte anzeigen */
.ml-location-map:not(.ml-location-map--focused) .ml-iso-controls {
    display: none;
}

/* Hinweis-Button "Isochronen anzeigen" – nur in der Mini-Karte sichtbar */
.ml-iso-hint {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 10px 18px;
    background-color: var(--ml-primary);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.ml-iso-hint:hover {
    transform: translateX(-50%) translateY(-1px);
}

/* Hinweis nur in der verkleinerten Karte anzeigen */
.ml-location-map--focused .ml-iso-hint {
    display: none;
}

/* ---------------------------------------------------------------------------
   Standort-Zeile: Fokus auf Standort + Kategorien, Karte klein daneben
   --------------------------------------------------------------------------- */

/* Zweispaltige Zeile: Standort-Infos prominent links, Mini-Karte rechts */
.ml-location-row {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 960px;
    margin: 0 auto 20px;
}

.ml-location-info {
    flex: 1 1 320px;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 28px 32px;
    background-color: var(--ml-surface);
    border: 1px solid var(--ml-border);
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.ml-location-eyebrow {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ml-primary);
}

.ml-location-info .ml-location-address {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ml-text);
}

/* Chips großzügiger und mit Abstand zur Adresse */
.ml-location-info .ml-location-chips {
    gap: 12px;
    margin-top: auto;
}

.ml-location-info .ml-location-chips--muted .ml-location-chip {
    padding: 8px 14px;
    background-color: var(--ml-bg);
    border-color: var(--ml-border);
}

.ml-location-info .ml-location-chips--muted .ml-location-chip-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ml-text);
}

/* Justimmo-Panel darf nicht höher werden als das reine Standort-Panel.
   Objektinfos kompakt (kleines Bild links, Text rechts) und Höhe an der
   Mini-Karte ausrichten. */
.ml-location-info--justimmo .ml-justimmo-object-body {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-height: 0;
    overflow: hidden;
}

.ml-location-info--justimmo .ml-justimmo-object-image {
    flex: 0 0 116px;
    width: 116px;
    height: 116px;
    border-radius: 10px;
    overflow: hidden;
}

.ml-location-info--justimmo .ml-justimmo-object-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ml-location-info--justimmo .ml-justimmo-object-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.ml-location-info--justimmo .ml-justimmo-object-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ml-text);
}

.ml-location-info--justimmo .ml-justimmo-object-status {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ml-primary);
}

/* Adresse und Koordinaten treten in den Hintergrund: kleiner und gedämpft. */
.ml-location-info--justimmo .ml-location-address {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ml-muted);
}

/* Adresse und Koordinaten nebeneinander, damit das Panel nicht höher wird
   als ein reines Standort-Panel. */
.ml-location-info--justimmo .ml-justimmo-object-meta {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 4px;
}

.ml-location-info--justimmo .ml-justimmo-object-meta .ml-location-address {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.ml-location-info--justimmo .ml-location-chips {
    margin-top: 0;
    flex: 0 0 auto;
}

.ml-location-info--justimmo .ml-location-chips .ml-location-chip {
    padding: 4px 10px;
}

.ml-location-info--justimmo .ml-location-chips .ml-location-chip-key {
    font-size: 0.7rem;
}

.ml-location-info--justimmo .ml-location-chips .ml-location-chip-val {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ml-muted);
}

/* Karte klein an der Seite; wächst beim Vergrößern über die volle Breite */
.ml-location-map--mini {
    flex: 0 0 260px;
    width: 260px;
    height: auto;
    min-height: 210px;
}

.ml-location-map--mini.ml-location-map--focused {
    flex-basis: 100%;
    width: 100%;
    height: min(78vh, 760px);
}

@media (max-width: 640px) {
    .ml-location-map--mini {
        flex-basis: 100%;
        width: 100%;
        height: 200px;
    }
}

/* ---------------------------------------------------------------------------
   Übersicht "Meine mobiLabels": modernes Karten-Grid mit Mini-Vorschau
   --------------------------------------------------------------------------- */

/* Wiederverwendbarer Button-Look für Links */
.ml-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.ml-button--primary {
    background-color: var(--ml-primary);
    color: #ffffff;
}

.ml-button--primary:hover {
    background-color: var(--ml-primary-dark);
}

.ml-button--secondary {
    background-color: transparent;
    color: var(--ml-primary);
    box-shadow: inset 0 0 0 1px var(--ml-border);
}

.ml-button--secondary:hover {
    background-color: var(--ml-bg);
    box-shadow: inset 0 0 0 1px var(--ml-primary);
}

.ml-list-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.ml-list-header h1 {
    margin: 0 0 6px;
}

.ml-list-intro {
    margin: 0;
    color: var(--ml-muted);
    max-width: 60ch;
}

.ml-list-new {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* Vorschau der zuletzt erstellten mobiLabels auf der Startseite */
.ml-recent-labels {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--ml-border);
}

.ml-recent-labels-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.ml-recent-labels-header h2 {
    margin: 0;
}

.ml-recent-labels-grid {
    margin-top: 16px;
}

/* Grid der mobiLabel-Kacheln */
.ml-label-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.ml-label-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 18px;
    border: 1px solid var(--ml-border);
    border-radius: 16px;
    background-color: var(--ml-surface);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.ml-label-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border-color: var(--ml-primary);
}

/* Demo-Badge als Overlay – beeinflusst das Layout der Kachel nicht */
.ml-demo-badge--overlay {
    position: absolute;
    top: 8px;
    right: 12px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Hinweis-Badge für mobiLabels, die für ein Justimmo-Objekt erstellt wurden. */
.ml-justimmo-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    background-color: var(--ml-primary);
    border-radius: 10px;
}

/* Justimmo-Badge als Overlay – wird links oben angezeigt, damit es sich
   nicht mit dem Demo-Badge (rechts oben) überschneidet. */
.ml-justimmo-badge--overlay {
    position: absolute;
    top: 8px;
    left: 12px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.ml-label-tile-date {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ml-muted);
}

/* Mini-Vorschau der 3 Kategorien */
.ml-label-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 14px 8px;
    border-radius: 12px;
    background-color: var(--ml-bg);
}

.ml-preview-category {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.ml-preview-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px var(--ml-border);
}

.ml-preview-icon img {
    max-width: 34px;
    max-height: 34px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Prominenter Standort-Block je Kachel.
   Die Zeile ist immer gleich hoch – unabhängig davon, ob eine Adresse
   vorhanden ist oder nicht. */
.ml-label-tile-location {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 8px 12px;
    border-radius: 10px;
    background-color: var(--ml-bg);
    border-left: 4px solid var(--ml-accent);
    box-sizing: border-box;
    min-height: 60px;
}

.ml-label-tile-location-icon {
    font-size: 1.4rem;
    line-height: 1;
    flex: 0 0 auto;
}

/* Text-Spalte (Adresse + Koordinaten) neben dem Icon; das Icon bleibt
   dadurch immer vertikal mittig zum gesamten Textblock. */
.ml-label-tile-location-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1 1 auto;
}

.ml-label-tile-location-coords {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
}

.ml-label-tile-location-pair {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.ml-label-tile-location-key {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ml-muted);
}

.ml-label-tile-location-val {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ml-text);
}

/* Kachel mit Adresse: Adresse steht im Fokus, Koordinaten werden dezent
   und kompakt in einer Zeile unter der Adresse dargestellt. */
.ml-label-tile-location--has-address .ml-label-tile-location-coords {
    gap: 2px 12px;
}

.ml-label-tile-location--has-address .ml-label-tile-location-pair {
    flex-direction: row;
    align-items: baseline;
    gap: 4px;
}

.ml-label-tile-location--has-address .ml-label-tile-location-key {
    font-size: 0.6rem;
}

.ml-label-tile-location--has-address .ml-label-tile-location-val {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ml-muted);
}

.ml-preview-grade {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.85);
}

.ml-preview-grade--empty {
    background-color: var(--ml-border);
    color: var(--ml-muted);
    text-shadow: none;
    box-shadow: none;
}

.ml-label-preview--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    font-size: 0.85rem;
    color: var(--ml-muted);
}

.ml-label-tile-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--ml-border);
}

.ml-label-tile-cta {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ml-primary);
    white-space: nowrap;
}

/* Leerzustand */
.ml-list-empty {
    margin: 32px 0;
    padding: 40px 24px;
    text-align: center;
    border: 1px dashed var(--ml-border);
    border-radius: 16px;
    background-color: var(--ml-bg);
}

.ml-list-empty p {
    margin: 0 0 16px;
    color: var(--ml-muted);
}

.ml-list-back {
    margin-top: 24px;
}

@media (max-width: 480px) {
    .ml-list-new {
        width: 100%;
    }
}

/* ---------------------------------------------------------------------------
   mobiLabel-Detailseite: Kopfbereich mit integrierter Aktionsleiste
   (Als JPG herunterladen + Link kopieren)
   --------------------------------------------------------------------------- */

.ml-detail-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 24px;
    max-width: 960px;
    margin: 0 auto 4px;
}

.ml-detail-heading {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ml-detail-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ml-primary);
}

.ml-detail-title {
    margin: 0;
}

/* Dezente Werkzeugleiste: Download + Link kopieren als unaufdringliche Icon-Buttons */
.ml-detail-tools {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.ml-tool {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
    color: var(--ml-muted);
    text-decoration: none;
    background: none;
    border: 1px solid var(--ml-border);
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.ml-tool:hover,
.ml-tool:focus-visible {
    color: var(--ml-primary);
    border-color: var(--ml-primary);
    background-color: var(--ml-bg);
}

.ml-tool svg {
    flex: 0 0 auto;
}

.ml-tool.is-copied {
    color: var(--ml-accent);
    border-color: var(--ml-accent);
    background-color: rgba(188, 192, 194, 0.08);
}

@media (max-width: 640px) {
    .ml-detail-header {
        align-items: flex-start;
    }
}

/* ---------------------------------------------------------------------------
   mobiLabel-Abruf: Registerkarten (Adresse / JustImmo-Objekt / Koordinaten)
   CSS-only über versteckte Radiobuttons – analog zum Produktkatalog.
   --------------------------------------------------------------------------- */
.ml-abruf {
    margin-top: 8px;
}

.ml-abruf-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ml-abruf-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 2px solid var(--ml-border);
    margin-bottom: 24px;
}

.ml-abruf-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    padding: 12px 24px;
    font-weight: 700;
    color: var(--ml-muted);
    cursor: pointer;
    border: 2px solid transparent;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.ml-abruf-tab:hover {
    color: var(--ml-primary-dark);
    background-color: var(--ml-bg);
}

/* Panels standardmäßig ausgeblendet */
.ml-abruf-panel {
    display: none;
}

/* Aktive Registerkarte + zugehöriges Panel anzeigen */
.ml-abruf-radio--address:checked ~ .ml-abruf-tabs .ml-abruf-tab--address,
.ml-abruf-radio--justimmo:checked ~ .ml-abruf-tabs .ml-abruf-tab--justimmo,
.ml-abruf-radio--coordinates:checked ~ .ml-abruf-tabs .ml-abruf-tab--coordinates {
    color: var(--ml-primary-dark);
    background-color: var(--ml-surface);
    border-color: var(--ml-border);
    border-bottom: 2px solid var(--ml-surface);
    margin-bottom: -2px;
}

.ml-abruf-radio--address:checked ~ .ml-abruf-panels .ml-abruf-panel--address,
.ml-abruf-radio--justimmo:checked ~ .ml-abruf-panels .ml-abruf-panel--justimmo,
.ml-abruf-radio--coordinates:checked ~ .ml-abruf-panels .ml-abruf-panel--coordinates {
    display: block;
}

.ml-abruf-tab:focus-visible,
.ml-abruf-radio:focus-visible + .ml-abruf-tabs .ml-abruf-tab {
    outline: 2px solid var(--ml-primary);
    outline-offset: 2px;
}

.ml-abruf-panel-title {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.3rem;
    color: var(--ml-primary-dark);
}

/* Hinweis, dass die Adress-Variante noch nicht verfügbar ist */
.ml-abruf-soon {
    margin: 0;
    color: var(--ml-muted);
}

/* Informations-/Kontakt-Block, wenn JustImmo nicht aktiv ist */
.ml-abruf-info p {
    margin: 0 0 20px;
    max-width: 60ch;
    color: var(--ml-muted);
}

/* --- Adress-Autocomplete (Registerkarte "Adresse eingeben") --- */
.ml-address-field {
    position: relative;
}

/* Vorschlagsliste: schwebt unter dem Eingabefeld. Da das Eingabefeld einen
   unteren Außenabstand (margin-bottom) besitzt, wird die Liste etwas nach oben
   gezogen, damit sie direkt am Feld anschließt. */
.ml-address-suggestions {
    position: absolute;
    top: calc(100% - 12px);
    left: 0;
    right: 0;
    z-index: 30;
    margin: 0;
    padding: 4px;
    list-style: none;
    background-color: var(--ml-surface);
    border: 1px solid var(--ml-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: 280px;
    overflow-y: auto;
}

.ml-address-suggestions[hidden] {
    display: none;
}

.ml-address-suggestion {
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.95rem;
    color: var(--ml-text);
    cursor: pointer;
}

.ml-address-suggestion:hover,
.ml-address-suggestion.is-active {
    background-color: var(--ml-bg);
    color: var(--ml-primary-dark);
}

/* --- Cookie-Banner (technisch notwendige Cookies) --- */
.ml-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background-color: var(--ml-surface);
    border-top: 1px solid var(--ml-border);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
    padding: 16px 24px;
}

.ml-cookie-banner[hidden] {
    display: none;
}

.ml-cookie-banner__inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.ml-cookie-banner__text {
    margin: 0;
    flex: 1 1 320px;
    color: var(--ml-text);
    font-size: 0.9rem;
}

.ml-cookie-banner__button {
    flex: 0 0 auto;
    padding: 12px 28px;
    font-weight: 700;
    color: #ffffff;
    background-color: var(--ml-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.ml-cookie-banner__button:hover {
    background-color: var(--ml-primary-dark);
}

.ml-cookie-banner__button:focus-visible {
    outline: 2px solid var(--ml-primary-dark);
    outline-offset: 2px;
}

/* ---------------------------------------------------------------------------
   Profil-Einstellungen: moderner Hero-Header, Banner und Sektionskarten
   --------------------------------------------------------------------------- */
.ml-profile {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Zweispaltiges Layout: links Übersichts-Karte, rechts Einstellungen */
.ml-profile-layout {
    display: grid;
    grid-template-columns: minmax(240px, 300px) 1fr;
    align-items: start;
    gap: 24px;
}

.ml-profile-overview {
    position: sticky;
    top: 88px;
}

.ml-profile-overview-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 28px 24px;
    border: 1px solid var(--ml-border);
    border-radius: 16px;
    background:
        radial-gradient(120% 80% at 50% -10%, rgba(132, 168, 41, 0.12), transparent 60%),
        var(--ml-surface);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.ml-profile-avatar {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    font-size: 1.9rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.03em;
    background: linear-gradient(135deg, var(--ml-primary), var(--ml-primary-dark));
    box-shadow: 0 6px 18px rgba(132, 168, 41, 0.28);
}

.ml-profile-name {
    margin: 8px 0 0;
    font-size: 1.35rem;
    line-height: 1.2;
}

.ml-profile-email {
    margin: 0;
    color: var(--ml-muted);
    font-size: 0.9rem;
    word-break: break-word;
}

/* Kennzahlen-Übersicht */
.ml-profile-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin: 18px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--ml-border);
}

.ml-profile-stat {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.ml-profile-stat dt {
    color: var(--ml-muted);
    font-size: 0.85rem;
}

.ml-profile-stat dd {
    margin: 0;
    font-weight: 700;
    color: var(--ml-text);
}

.ml-profile-stat-total {
    color: var(--ml-muted);
    font-weight: 600;
}

.ml-profile-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

/* Status-Badges */
.ml-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

.ml-badge.ml-badge--success {
    color: var(--ml-primary-dark);
    background-color: rgba(132, 168, 41, 0.14);
}

.ml-badge.ml-badge--pending {
    color: #b3261e;
    background-color: rgba(207, 46, 46, 0.12);
    max-width: none;
    overflow: visible;
}

/* Hinweis-Banner */
.ml-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid var(--ml-border);
    font-size: 0.95rem;
}

.ml-banner p {
    margin: 4px 0 0;
    color: inherit;
}

.ml-banner-icon {
    font-weight: 700;
    line-height: 1.4;
}

.ml-banner--success {
    color: var(--ml-primary-dark);
    background-color: rgba(132, 168, 41, 0.1);
    border-color: rgba(132, 168, 41, 0.35);
    font-weight: 600;
}

.ml-banner--error {
    color: var(--ml-error);
    background-color: rgba(207, 46, 46, 0.08);
    border-color: rgba(207, 46, 46, 0.3);
    font-weight: 600;
}

.ml-banner--warning {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    color: #7a4f00;
    background-color: rgba(255, 176, 32, 0.12);
    border-color: rgba(255, 176, 32, 0.4);
}

.ml-banner--warning form {
    margin: 0;
    flex: 0 0 auto;
}

.ml-banner--info {
    color: var(--ml-text);
    background-color: var(--ml-bg);
}

.ml-profile-section {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 1px solid var(--ml-border);
    border-radius: 14px;
    background-color: var(--ml-surface);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

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

.ml-profile-section-head h2 {
    margin: 0 0 4px;
    font-size: 1.15rem;
    color: var(--ml-primary-dark);
}

.ml-profile-section-head p {
    margin: 0;
    color: var(--ml-muted);
    font-size: 0.9rem;
}

.ml-profile-form {
    margin: 0;
}

.ml-profile-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

/* Liste der Konto-Einstellungen */
.ml-profile-settings {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ml-profile-setting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid var(--ml-border);
    border-radius: 10px;
    background-color: var(--ml-bg);
}

.ml-profile-setting-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ml-profile-setting-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ml-muted);
}

.ml-profile-setting-value {
    color: var(--ml-text);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ml-profile-setting .ml-button {
    flex: 0 0 auto;
    padding: 8px 16px;
    font-size: 0.9rem;
}

@media (max-width: 780px) {
    .ml-profile-layout {
        grid-template-columns: 1fr;
    }

    .ml-profile-overview {
        position: static;
        top: auto;
    }
}
