/* =====================================================================
   Vendiano – Stylesheet
   Farbwelt aus dem Logo: Navy (#0B2C5F) und Grün (#5AA012)
   Mobile-first: Basis = Smartphone, ab 768px Tablet, ab 1024px Sidebar
   ===================================================================== */

:root {
    --navy-900: #071E42;
    --navy:     #0B2C5F;
    --navy-700: #1A4384;
    --navy-100: #DCE5F2;
    --navy-50:  #EEF2F8;
    --green:    #5AA012;
    --green-700:#478010;
    --green-100:#DDEFC8;
    --green-50: #F0F8E6;

    --text:     #18233A;
    --grey:     #5D6A7E;
    --grey-300: #C9D1DD;
    --line:     #E3E8EF;
    --bg:       #F4F7FB;
    --white:    #FFFFFF;

    --danger:   #C62828;
    --danger-50:#FDECEC;
    --warn:     #D97706;
    --warn-50:  #FFF4E0;
    --blue:     #1F6FD1;
    --purple:   #7445C2;
    --gold:     #C9971C;

    --radius:   14px;
    --radius-sm:10px;
    --shadow-sm: 0 1px 2px rgba(11, 44, 95, .06), 0 1px 3px rgba(11, 44, 95, .06);
    --shadow-md: 0 6px 20px rgba(11, 44, 95, .10);
    --shadow-lg: 0 18px 48px rgba(11, 44, 95, .22);
    --sidebar-width: 264px;
    --bottom-nav-h: 68px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--navy-900); letter-spacing: -.01em; line-height: 1.2; }
h1 { font-size: 1.7rem; font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 750; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { line-height: 1.55; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
code { background: var(--navy-50); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
:focus-visible { outline: 3px solid rgba(90, 160, 18, .55); outline-offset: 2px; }

.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.TextGrey { color: var(--grey); }
.small { font-size: .85rem; }
.req { color: var(--danger); }
.MargTop { margin-top: 16px; }
.MargBottom { margin-bottom: 16px; }
.hide-mobile { display: none !important; }
[hidden] { display: none !important; }

/* =====================================================================
   Buttons
   ===================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 12px 22px;
    font: inherit; font-size: 1rem; font-weight: 650;
    border: none; border-radius: 12px; cursor: pointer;
    transition: background .15s ease, box-shadow .15s ease, transform .1s ease;
    text-decoration: none !important; white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: .92rem; border-radius: 10px; }
.btn-lg { min-height: 54px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn { max-width: 100%; }
@media (max-width: 599px) { .btn-sm { white-space: normal; text-align: center; } }
.btn-primary { background: var(--green); color: var(--white); box-shadow: 0 4px 12px rgba(90, 160, 18, .30); }
.btn-primary:hover { background: var(--green-700); }
.btn-secondary { background: var(--white); color: var(--navy); border: 1.5px solid var(--navy-100); }
.btn-secondary:hover { border-color: var(--navy-700); background: var(--navy-50); }
.btn-success { background: var(--navy); color: var(--white); }
.btn-success:hover { background: var(--navy-700); }
.btn-light { background: rgba(255,255,255,.14); color: var(--white); border: 1.5px solid rgba(255,255,255,.35); }
.btn-light:hover { background: rgba(255,255,255,.24); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-link-danger { background: none; border: none; color: var(--danger); font: inherit; font-weight: 600; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; padding: 8px 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 10px; border: none; background: transparent;
    color: var(--grey); cursor: pointer;
}
.icon-btn:hover { background: var(--navy-50); color: var(--navy); }
.inline-form { display: inline; }

/* =====================================================================
   Formulare
   ===================================================================== */
.form-stack { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.label-input { font-size: .82rem; font-weight: 700; color: var(--grey); text-transform: uppercase; letter-spacing: .04em; }
input[type=text], input[type=password], input[type=email], input[type=tel], input[type=number],
input[type=date], input[type=time], input[type=search], select, textarea {
    width: 100%; min-height: 48px; padding: 11px 14px;
    font: inherit; font-size: 1rem; /* 16px verhindert Zoom auf iOS */
    color: var(--text); background: var(--white);
    border: 1.5px solid var(--grey-300); border-radius: 12px;
    transition: border-color .15s ease, box-shadow .15s ease;
    -webkit-appearance: none; appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235D6A7E' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
select[multiple] { background-image: none; padding-right: 14px; min-height: 140px; }
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(90, 160, 18, .15); }
input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: var(--danger); }
.form-grid-2, .form-grid-3, .settings-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.plz-ort { display: grid; grid-template-columns: minmax(84px, 120px) 1fr; gap: 10px; }
.form-subtitle { font-size: .95rem; color: var(--navy-900); margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.sticky-actions {
    position: sticky; bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 8px); z-index: 20;
    background: rgba(244, 247, 251, .92); backdrop-filter: blur(8px);
    padding: 10px; margin: 0 -10px; border-radius: 14px;
}
.sticky-actions .btn { flex: 1; }
.form-inline-row { display: flex; flex-direction: column; gap: 10px; }

/* Segmentierte Auswahl (Radio als Buttons) */
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; flex: 1 1 auto; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
    display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px 14px;
    border: 1.5px solid var(--grey-300); border-radius: 12px; background: var(--white);
    font-weight: 600; color: var(--grey); cursor: pointer; text-align: center; user-select: none;
}
.seg input:checked + span { border-color: var(--navy); background: var(--navy); color: var(--white); }
.seg input:focus-visible + span { outline: 3px solid rgba(90, 160, 18, .55); }
.seg-interesse .seg-heiss input:checked + span { background: var(--danger); border-color: var(--danger); }
.seg-interesse .seg-warm input:checked + span  { background: var(--warn); border-color: var(--warn); }
.seg-interesse .seg-kalt input:checked + span  { background: var(--blue); border-color: var(--blue); }
.seg-sm span { min-height: 36px; padding: 6px 10px; font-size: .85rem; border-radius: 9px; }
.seg-ergebnis .seg-gekauft input:checked + span { background: var(--green); border-color: var(--green); }
.seg-ergebnis .seg-kein_interesse input:checked + span { background: var(--grey); border-color: var(--grey); }

/* Skala 1–10 */
.scale { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.scale label { position: relative; }
.scale input { position: absolute; opacity: 0; }
.scale span { display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 10px; border: 1.5px solid var(--grey-300); background: var(--white); font-weight: 700; color: var(--grey); cursor: pointer; }
.scale .scale-tief input:checked + span   { background: var(--danger); border-color: var(--danger); color: #fff; }
.scale .scale-mittel input:checked + span { background: var(--warn); border-color: var(--warn); color: #fff; }
.scale .scale-hoch input:checked + span   { background: var(--green); border-color: var(--green); color: #fff; }
.scale .scale-none input:checked + span   { background: var(--navy-50); border-color: var(--navy-100); color: var(--navy); }

/* Mehrfachauswahl als Chips */
.chip-select { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; }
.chip-check span { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--grey-300); background: var(--white); font-size: .92rem; font-weight: 600; color: var(--grey); cursor: pointer; }
.chip-check input:checked + span { background: var(--green-50); border-color: var(--green); color: var(--green-700); }
.chip-check input:checked + span::before { content: "✓"; margin-right: 6px; }

/* Schalter */
.switch-item { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; min-height: 44px; }
.switch { position: relative; width: 50px; height: 30px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider { position: absolute; inset: 0; background: var(--grey-300); border-radius: 999px; transition: .2s; }
.switch-slider::before { content: ""; position: absolute; width: 24px; height: 24px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + .switch-slider { background: var(--green); }
.switch input:checked + .switch-slider::before { transform: translateX(20px); }
.switch input:focus-visible + .switch-slider { outline: 3px solid rgba(90, 160, 18, .55); }
.check-inline { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; cursor: pointer; min-height: 40px; }
.check-inline input { width: 20px; height: 20px; accent-color: var(--green); }

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 84px; }
.pw-toggle { position: absolute; right: 6px; top: 6px; bottom: 6px; padding: 0 12px; border: none; background: var(--navy-50); color: var(--navy); border-radius: 9px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }

/* =====================================================================
   Meldungen
   ===================================================================== */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.alert.success { border-color: var(--green-100); background: var(--green-50); }
.alert.error { border-color: #F3C7C7; background: #FFF7F7; }
.alert.info { border-color: var(--navy-100); background: var(--navy-50); }
.alert-icon { display: flex; width: 20px; height: 20px; margin-top: 1px; }
.alert-icon svg { width: 100%; height: 100%; }
.alert.success .alert-icon { color: var(--green-700); }
.alert.error .alert-icon { color: var(--danger); }
.alert.info .alert-icon { color: var(--navy); }
.alert-content { flex: 1; font-size: .95rem; }
.alert-close { border: none; background: none; width: 28px; height: 28px; border-radius: 8px; cursor: pointer; color: var(--grey); display: flex; align-items: center; justify-content: center; }
.alert-close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.alert.is-weg { opacity: 0; transform: translateY(-4px); transition: .2s ease; }

/* =====================================================================
   Toasts (Bestätigungen) – Handy: unten über der Navigation, Desktop: oben rechts
   ===================================================================== */
.toast-stack {
    position: fixed; z-index: 1000; left: 12px; right: 12px;
    bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 12px);
    display: flex; flex-direction: column-reverse; align-items: center; gap: 8px; pointer-events: none;
}
.toast {
    position: relative; overflow: hidden; pointer-events: auto;
    width: 100%; max-width: 420px;
    display: flex; align-items: center; gap: 12px;
    padding: 12px 10px 14px 14px; border-radius: 14px;
    background: var(--navy-900); color: #fff;
    box-shadow: 0 12px 32px rgba(7, 30, 66, .35);
    font-size: .95rem; line-height: 1.4;
    opacity: 0; transform: translateY(16px) scale(.98);
    transition: opacity .22s ease, transform .22s ease;
}
.toast.is-sichtbar { opacity: 1; transform: none; }
.toast.is-weg { opacity: 0; transform: translateY(8px) scale(.98); }
.toast-icon { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; }
.toast-icon .ico { width: 16px; height: 16px; stroke: #fff; stroke-width: 2.6; }
.toast-error .toast-icon { background: var(--danger); }
.toast-text { flex: 1; min-width: 0; }
.toast-close { flex-shrink: 0; width: 32px; height: 32px; border: none; border-radius: 8px; background: transparent; color: rgba(255,255,255,.7); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.toast-close:hover { background: rgba(255,255,255,.1); color: #fff; }
.toast-close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.toast-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--green); transform-origin: left; transform: scaleX(1); }
@media (min-width: 1024px) {
    .toast-stack { left: auto; right: 24px; bottom: auto; top: 84px; width: 400px; flex-direction: column; align-items: stretch; }
    .toast { transform: translateX(24px); }
    .toast.is-weg { transform: translateX(24px); }
}
@media (prefers-reduced-motion: reduce) {
    .toast, .toast.is-weg { transform: none; }
    .toast-bar { display: none; }
}

/* =====================================================================
   Login / Setup
   ===================================================================== */
body.landing { background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy) 55%, #164A2A 130%); }
.login-wrapper { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; gap: 18px; }
.login-card { width: 100%; max-width: 440px; background: var(--white); border-radius: 20px; padding: 28px 22px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 14px; }
.login-logo img { width: 210px; display: block; margin: 0 auto 6px; }
.login-title { text-align: center; font-size: 1.45rem; }
.login-sub { text-align: center; color: var(--grey); font-size: .95rem; }
.login-footer { color: rgba(255,255,255,.8); font-size: .85rem; display: flex; align-items: center; gap: 8px; }
.login-swiss { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 18px 0 0; font-size: .74rem; font-weight: 600; letter-spacing: .04em; color: var(--grey, #5e6a72); text-decoration: none; opacity: .7; transition: opacity .2s; }
.login-swiss img { width: 16px; height: 16px; display: block; }
.login-swiss:hover, .login-swiss:focus-visible { opacity: 1; }

/* =====================================================================
   Layout: Sidebar (ab 1024px), Topbar, Inhalt, untere Navigation (mobil)
   ===================================================================== */
.sidebar { display: none; }
.main-content { min-height: 100vh; padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 16px); }
.top-bar {
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; gap: 12px;
    padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
    background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.top-logo img { width: 36px; height: 30px; display: block; }
.page-title { font-size: 1.15rem; font-weight: 750; color: var(--navy-900); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-menu { display: flex; align-items: center; gap: 10px; }
.initials-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; text-decoration: none !important; }
.content-area { padding: 16px; max-width: 1280px; margin: 0 auto; }
.content-area.narrow { max-width: 760px; }
.footer { display: none; }

.bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    height: calc(var(--bottom-nav-h) + var(--safe-bottom)); padding-bottom: var(--safe-bottom);
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
    background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(11, 44, 95, .07);
}
.bn-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0; color: var(--grey); font-size: .72rem; font-weight: 600; text-decoration: none !important; background: none; border: none; font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bn-item .ico { width: 24px; height: 24px; }
.bn-item.active { color: var(--navy); }
.bn-item.active .ico { stroke: var(--green); }
.bn-badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--danger); color: #fff; font-size: .7rem; display: flex; align-items: center; justify-content: center; }
.bn-plus { justify-self: center; width: 58px; height: 58px; margin-top: -26px; border-radius: 50%; border: 4px solid var(--bg); background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(90, 160, 18, .45); cursor: pointer; }
.bn-plus .ico { width: 28px; height: 28px; stroke-width: 2.5; }

/* =====================================================================
   Karten & Bausteine
   ===================================================================== */
.card { background: var(--white); border-radius: var(--radius); padding: 18px 16px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); margin-bottom: 14px; }
.card-title { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.card-title .ico { color: var(--green); }
.card.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 70%, #2F6B2A 140%);
    color: #fff; border: none; display: flex; flex-direction: column; gap: 16px; padding: 22px 18px;
}
.card.hero h2 { color: #fff; font-size: 1.45rem; }
.card.hero p { color: rgba(255,255,255,.88); }
.hero-datum { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; opacity: .8; }
.hero-aktionen { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-aktionen .btn { flex: 1; }
.hero-small { padding: 18px 16px; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 14px; flex-wrap: wrap; }
.head-actions { display: flex; gap: 8px; }
.page-head { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--grey); font-weight: 600; font-size: .92rem; }
.link-more { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: .9rem; }
.link-more .ico { width: 16px; height: 16px; }
.group-title { margin: 22px 0 10px; display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.group-title span { background: var(--navy-50); color: var(--navy); border-radius: 999px; padding: 1px 9px; font-size: .8rem; }
.group-title.rot { color: var(--danger); }
.group-title.rot span { background: var(--danger-50); color: var(--danger); }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 0 14px; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow-sm); color: inherit; text-decoration: none !important; }
a.kpi:hover { border-color: var(--navy-100); box-shadow: var(--shadow-md); }
.kpi-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--grey); }
.kpi-wert { font-size: 1.9rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.kpi-hint { font-size: .8rem; color: var(--grey); }
.kpi-rot { border-color: #F3C7C7; background: #FFF9F9; }
.kpi-rot .kpi-wert { color: var(--danger); }

/* Badges */
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; background: var(--navy-50); color: var(--navy); white-space: nowrap; }
.badge.big { font-size: .95rem; padding: 5px 14px; }
/* Status: dezent – neutraler Grund, Farbe nur als kleiner Punkt */
.badge-status { background: #F2F4F7; color: #4A5568; font-weight: 600; }
.badge-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--grey-300)); margin-right: 2px; }
.badge-interessentin { --dot: #8AA6C8; }
.badge-kundin        { --dot: var(--green); }
.badge-gastgeberin   { --dot: #A58BD3; }
.badge-inaktiv       { --dot: var(--grey-300); color: var(--grey); }
.badge-grey { background: #EEF0F3; color: var(--grey); }
/* Interesse: Bedeutungsfarbe bleibt, aber gedämpft */
.badge-heiss { background: #FBEFEF; color: #A63A3A; font-weight: 600; }
.badge-warm  { background: #FCF4E6; color: #8F5A10; font-weight: 600; }
.badge-kalt  { background: #EFF2F6; color: #55677F; font-weight: 600; }
.badge-model { background: var(--navy); color: #fff; }
.badge-gold { background: #FBF3DC; color: #8A6510; }
.badge-warn { background: var(--warn-50); color: #9A5B00; }
.star { display: inline-flex; color: var(--gold); vertical-align: -3px; }
.star .ico { width: 18px; height: 18px; fill: var(--gold); stroke: var(--gold); }

/* Avatar */
.avatar { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 750; font-size: .95rem; flex-shrink: 0; background: var(--navy-50); color: var(--navy); }
.avatar-interessentin { background: #EDF1F6; color: #4E6584; }
.avatar-kundin { background: var(--green-50); color: var(--green-700); }
.avatar-gastgeberin { background: #F2EEF9; color: #6F5A99; }
.avatar-inaktiv { background: #EEF0F3; color: var(--grey); }
.avatar-lg { width: 64px; height: 64px; font-size: 1.3rem; }
.avatar-xl { width: 88px; height: 88px; font-size: 1.6rem; }
.avatar-xxl { width: 132px; height: 132px; font-size: 2.3rem; }
.avatar img, .initials-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.avatar.has-photo, .initials-avatar.has-photo { background: var(--navy-50); overflow: hidden; }

/* Foto-Auswahl (Kamera/Galerie) */
.foto-feld { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 8px; }
.foto-pick { position: relative; cursor: pointer; display: inline-flex; border-radius: 50%; -webkit-tap-highlight-color: transparent; }
.foto-pick .avatar { box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--navy-100); }
.foto-pick:hover .avatar, .foto-pick:focus-within .avatar { box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--green); }
.foto-badge { position: absolute; right: -2px; bottom: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; border: 3px solid var(--white); box-shadow: var(--shadow-sm); }
.foto-badge .ico { width: 17px; height: 17px; }
.foto-feld.is-neu .foto-hint { color: var(--green-700); font-weight: 600; }
.avatar-btn { position: relative; border: none; background: none; padding: 0; cursor: pointer; border-radius: 50%; align-self: start; }
.avatar-btn .foto-badge { width: 26px; height: 26px; border-width: 2px; right: -4px; bottom: -4px; }
.avatar-btn .foto-badge .ico { width: 13px; height: 13px; }
.profil-foto-form { display: flex; flex-direction: column; align-items: center; gap: 14px; }

/* Schnellaktionen (Anruf, WhatsApp, E-Mail) */
.quick-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.qa { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; border-radius: 10px; background: var(--navy-50); color: var(--navy); font-weight: 600; font-size: .88rem; text-decoration: none !important; }
.qa:hover { background: var(--navy-100); }
.qa .ico { width: 18px; height: 18px; }
.qa-wa { background: #E7F7EC; color: #1C7C3A; }
.contact-row .qa span, .wv-card .qa span { display: none; }
.contact-row .qa, .wv-card .qa { width: 42px; height: 42px; padding: 0; justify-content: center; }

/* Wiedervorlage-Karte mit Gesprächsvorbereitung */
.wv-card { background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--green); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px; }
.wv-card.is-ueber { border-left-color: var(--warn); }
.wv-card.is-rot { border-left-color: var(--danger); background: #FFFBFB; }
.wv-head { display: flex; gap: 12px; align-items: center; }
.wv-title { min-width: 0; flex: 1; }
.wv-name { font-weight: 750; font-size: 1.05rem; color: var(--navy-900); }
.wv-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 2px; font-size: .86rem; color: var(--grey); }
.wv-anlass { font-weight: 700; color: var(--navy); }
.wv-zeit.rot { color: var(--danger); font-weight: 700; }
.prep { display: flex; flex-direction: column; gap: 8px; }
.prep-hindernis { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--warn-50); color: #8A4B00; font-size: .92rem; }
.prep-hindernis .ico { color: var(--warn); }
.prep-hindernis-big { margin-bottom: 14px; padding: 14px 16px; font-size: 1rem; border: 1px solid #F5D49A; }
.prep-hinweis { padding: 8px 12px; border-radius: 10px; background: var(--green-50); color: var(--green-700); font-size: .9rem; font-weight: 600; }
.prep-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.prep-facts div { min-width: 0; }
.prep-facts dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--grey); font-weight: 700; }
.prep-facts dd { font-size: .92rem; overflow-wrap: anywhere; }
.prep-note { font-size: .9rem; color: var(--text); background: var(--bg); border-radius: 10px; padding: 8px 12px; }
.wv-actions { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.wv-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.wv-buttons .btn { flex: 1; }

/* Dashboard */
.dash-raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.side-card h3 { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.side-card h3 .ico { color: var(--green); }
.side-link { display: block; color: inherit; text-decoration: none !important; }
.side-link:hover { box-shadow: var(--shadow-md); }
.mini-list { list-style: none; display: flex; flex-direction: column; }
.mini-list li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .92rem; flex-wrap: wrap; }
.mini-list li:last-child { border-bottom: none; }
.mini-list li span { color: var(--grey); }
.mini-list li.is-bald { font-weight: 700; }
.mini-list li.is-bald span { color: var(--green-700); }
.rank-list { list-style: none; counter-reset: r; margin-bottom: 8px; }
.rank-list li { counter-increment: r; display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.rank-list li::before { content: counter(r); width: 24px; height: 24px; border-radius: 50%; background: var(--navy-50); color: var(--navy); font-size: .8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.rank-list li a { flex: 1; }
.rank-list b { color: var(--green-700); }

/* Leere Ansicht */
.empty { text-align: center; padding: 28px 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty-icon { width: 54px; height: 54px; border-radius: 50%; background: var(--green-50); color: var(--green); display: flex; align-items: center; justify-content: center; }
.empty-icon .ico { width: 28px; height: 28px; }
.empty p { color: var(--grey); max-width: 420px; }
.empty .btn { margin-top: 8px; }

/* Filter & Chips */
.filter-bar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.search-field { position: relative; }
.search-field .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--grey); }
.search-field input { padding-left: 44px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; list-style: none; flex-wrap: nowrap; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 14px; border-radius: 999px; background: var(--white); border: 1.5px solid var(--line); color: var(--grey); font-weight: 600; font-size: .9rem; white-space: nowrap; text-decoration: none !important; cursor: pointer; font-family: inherit; }
.chip small { background: var(--navy-50); color: var(--navy); padding: 0 7px; border-radius: 999px; font-size: .75rem; }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip.active small { background: rgba(255,255,255,.2); color: #fff; }
.chip .ico { width: 16px; height: 16px; }
.chip.static { cursor: default; font-size: .82rem; }
.card .chips { flex-wrap: wrap; }
.filter-selects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.filter-selects select { min-height: 42px; font-size: .9rem; padding: 8px 32px 8px 10px; background-position: right 8px center; }

/* Kontaktliste */
.contact-list { list-style: none; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; }
.card .contact-list { border: none; box-shadow: none; }
.contact-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: none; }
.contact-link { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: inherit; text-decoration: none !important; }
.contact-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.contact-main strong { color: var(--navy-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contact-sub { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.contact-sub .ico { width: 14px; height: 14px; vertical-align: -2px; }
.contact-row .quick-actions { flex-shrink: 0; }
.contact-row .quick-actions .qa:not(:first-child) { display: none; }

/* Listen-Karten */
.list-cards { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.contact-list { margin-bottom: 16px; }
/* Innerhalb einer Karte am Ende kein zusätzlicher Abstand */
.card .list-cards:last-child, .card .contact-list:last-child { margin-bottom: 0; }
.list-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; color: inherit; text-decoration: none !important; box-shadow: var(--shadow-sm); cursor: pointer; }
a.list-card:hover, label.list-card:hover { border-color: var(--navy-100); }
.list-card > .ico { color: var(--grey); }
.list-card input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--green); flex-shrink: 0; }
.lc-date { width: 54px; flex-shrink: 0; text-align: center; font-size: .72rem; color: var(--grey); line-height: 1.2; text-transform: uppercase; }
.lc-date b { display: block; font-size: 1.4rem; color: var(--navy); }
.lc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; color: inherit; text-decoration: none !important; }
.lc-main .TextGrey { font-size: .88rem; }
.lc-side { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.lc-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.lc-icon.ok { background: var(--green-50); color: var(--green); }
.list-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }

/* Kontaktprofil */
.profile-head { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.profile-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.profile-main h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-buttons { grid-column: 1 / -1; display: flex; gap: 8px; }
.profile-buttons .btn { flex: 1; }
.facts { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 8px; }
.facts div { display: grid; grid-template-columns: 140px 1fr; gap: 10px; }
.facts dt { color: var(--grey); font-size: .88rem; }
.facts dd { font-weight: 600; overflow-wrap: anywhere; }
.note-box { background: var(--bg); padding: 10px 14px; border-radius: 10px; font-size: .95rem; }
.score-row { display: flex; gap: 12px; margin-bottom: 14px; }
.score { flex: 1; border-radius: 12px; padding: 10px; text-align: center; background: var(--bg); }
.score b { display: block; font-size: 1.8rem; line-height: 1; }
.score span { font-size: .8rem; color: var(--grey); }
.score-hoch b { color: var(--green); } .score-mittel b { color: var(--warn); } .score-tief b { color: var(--danger); }
.quote { border-left: 4px solid var(--green); background: var(--green-50); padding: 12px 14px; border-radius: 0 12px 12px 0; font-style: italic; }
.quote footer { font-style: normal; font-size: .8rem; color: var(--green-700); margin-top: 8px; display: flex; gap: 6px; align-items: center; }
.quote.is-locked { border-left-color: var(--grey-300); background: #F5F6F8; }
.quote.is-locked footer { color: var(--grey); }
.card-danger { border-color: #F3C7C7; }
.card-danger h3 { color: var(--danger); }
.card-privacy .card-title .ico { color: var(--navy); }

/* Tabs */
.tabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 14px; border-bottom: 2px solid var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab-button { flex-shrink: 0; background: none; border: none; font: inherit; font-weight: 650; font-size: .95rem; color: var(--grey); padding: 12px 14px; border-bottom: 3px solid transparent; margin-bottom: -2px; cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.tab-button.active { color: var(--navy); border-bottom-color: var(--green); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade .15s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* Aufklappbare Abschnitte */
.collapsible > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.collapsible > summary::-webkit-details-marker { display: none; }
.collapsible > summary .card-title { margin-bottom: 0; }
.collapsible > summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--grey); border-bottom: 2px solid var(--grey); transform: rotate(45deg); transition: transform .2s; margin-right: 6px; }
.collapsible[open] > summary::after { transform: rotate(-135deg); }
.collapsible[open] > summary { margin-bottom: 14px; }
.collapsible-plain summary { cursor: pointer; font-weight: 600; color: var(--navy-700); padding: 6px 0; }
.collapsible-plain[open] summary { margin-bottom: 8px; }
.show-for { display: none; }
.kontakt-form[data-status="interessentin"] .show-for[data-show-status~="interessentin"],
.kontakt-form[data-status="kundin"] .show-for[data-show-status~="kundin"],
.kontakt-form[data-status="gastgeberin"] .show-for[data-show-status~="gastgeberin"],
.kontakt-form[data-status="inaktiv"] .show-for[data-show-status~="inaktiv"] { display: block; }

/* Zeitleiste (Kontaktverlauf) */
.timeline { list-style: none; position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; }
.tl-dot { position: absolute; left: -22px; top: 18px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--bg); background: var(--navy); }
.tl-whatsapp { background: #25A55A; } .tl-email { background: var(--blue); } .tl-persoenlich { background: var(--green); }
.tl-body { padding: 12px 14px; }
.tl-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.tl-head form { margin-left: auto; }
.tl-body p { margin-top: 6px; font-size: .95rem; }

/* Käufe */
.kauf-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.kauf-buttons { display: flex; }

/* Empfehlungen */
.empf-card { display: flex; flex-direction: column; gap: 10px; border-left: 5px solid var(--navy-100); }
.empf-gekauft { border-left-color: var(--green); }
.empf-termin { border-left-color: var(--warn); }
.empf-kein_interesse { border-left-color: var(--grey-300); }
.empf-flow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 700; }
.empf-flow a.is-self { color: var(--green-700); }
.empf-arrow { color: var(--green); display: flex; }
.empf-form { display: flex; flex-direction: column; gap: 8px; }
.rank-cards { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.rank-card { display: grid; grid-template-columns: 40px 1fr; gap: 4px 12px; align-items: center; background: var(--white); padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.rank-card.is-top { border-color: #EAD49A; background: #FFFCF3; }
.rank-nr { grid-row: span 3; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.rank-card.is-top .rank-nr { background: var(--gold); }
.rank-name { font-weight: 750; }
.rank-stats { font-size: .88rem; color: var(--grey); }
.rank-stats b { color: var(--green-700); font-size: 1rem; }
.rank-bar, .bar-track { height: 8px; border-radius: 999px; background: var(--navy-50); overflow: hidden; position: relative; }
.rank-bar i { position: absolute; inset: 0 auto 0 0; background: var(--green); border-radius: 999px; }

/* Präsentationen: Gäste-Schnellerfassung */
.gast-zeilen { display: flex; flex-direction: column; gap: 12px; }
.gast-zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; background: var(--bg); border-radius: 12px; }
.gast-zeile .check-inline { grid-column: span 1; }
.multi-select { width: 100%; }

/* Auswertung */
.bars { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.bars li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; }
.bar-label { font-weight: 600; font-size: .92rem; }
.bar-val { font-size: .85rem; color: var(--grey); }
.bar-track { grid-column: 1 / -1; height: 12px; }
.bar-a, .bar-b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; }
.bar-a { background: var(--navy-100); }
.bar-b { background: var(--green); }
.legend { margin-top: 12px; font-size: .82rem; color: var(--grey); display: flex; align-items: center; gap: 6px; }
.legend span { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.lg-a { background: var(--navy-100); } .lg-b { background: var(--green); margin-left: 10px; }
.columns { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 10px; }
.columns .col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; font-size: .7rem; color: var(--grey); }
.columns .col i { width: 100%; max-width: 34px; background: linear-gradient(180deg, var(--green), var(--green-700)); border-radius: 6px 6px 2px 2px; }
.columns .col b { color: var(--navy); font-size: .78rem; }

/* =====================================================================
   Dialoge (auf dem Smartphone als Bottom-Sheet)
   ===================================================================== */
.modal {
    border: none; padding: 0; margin: auto auto 0; width: 100%; max-width: 100%;
    /* dvh = tatsächlich sichtbare Höhe (iOS Safari: vh zählt die Bereiche hinter den Leisten mit) */
    max-height: 92vh; max-height: 92dvh; border-radius: 20px 20px 0 0; background: var(--white); color: var(--text);
    box-shadow: var(--shadow-lg); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
}
.modal[open] { display: flex; flex-direction: column; animation: sheet .22s ease; }
.modal > form { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
@keyframes sheet { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.modal::backdrop { background: rgba(7, 30, 66, .5); backdrop-filter: blur(2px); }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal-header h2 { font-size: 1.15rem; }
.modal-close { width: 40px; height: 40px; border: none; background: var(--navy-50); border-radius: 50%; font-size: 1.5rem; line-height: 1; color: var(--navy); cursor: pointer; }
.modal-body { padding: 16px 18px; overflow-y: auto; flex: 1 1 auto; min-height: 0; -webkit-overflow-scrolling: touch; }
.modal-header, .modal-footer { flex-shrink: 0; }
/* Falls der Inhalt doch länger ist als das Fenster: Kopf (mit ×) und Fuss bleiben stehen */
.modal-header { position: sticky; top: 0; z-index: 2; background: var(--white); }
.modal-footer { position: sticky; bottom: 0; z-index: 2; }
.modal-footer { display: flex; gap: 10px; padding: 12px 18px calc(12px + var(--safe-bottom)); border-top: 1px solid var(--line); background: var(--white); }
.modal-footer .btn { flex: 1; }
.modal-sm .modal-body .form-actions { margin-top: 16px; }
.next-box { background: var(--bg); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.sheet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-bottom: calc(18px + var(--safe-bottom)); }
.sheet-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 10px; border-radius: 14px; background: var(--bg); color: var(--navy); font-weight: 700; text-decoration: none !important; }
.sheet-tile .ico { width: 30px; height: 30px; color: var(--green); }
.sheet-list { display: flex; flex-direction: column; padding-bottom: calc(18px + var(--safe-bottom)); }
.sheet-list a { display: flex; align-items: center; gap: 14px; padding: 14px 6px; border-bottom: 1px solid var(--line); color: var(--text); font-weight: 600; text-decoration: none !important; }
.sheet-list a .ico { color: var(--navy); }

/* =====================================================================
   Tablet (ab 600px / 768px)
   ===================================================================== */
@media (min-width: 600px) {
    .form-grid-2, .settings-grid { grid-template-columns: 1fr 1fr; }
    .form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
    .span-2 { grid-column: span 2; }
    .span-3 { grid-column: 1 / -1; }
    .kpis { grid-template-columns: repeat(4, 1fr); }
    .scale { grid-template-columns: repeat(11, 1fr); }
    .gast-zeile { grid-template-columns: 1fr 1fr 1fr 1.3fr 0.9fr auto; align-items: center; }
    .form-inline-row { flex-direction: row; }
    .form-inline-row input { flex: 1; }
    .wv-actions { flex-direction: row; justify-content: space-between; align-items: center; }
    .wv-buttons .btn { flex: none; }
    .contact-row .quick-actions .qa:not(:first-child) { display: inline-flex; }
    .prep-facts { grid-template-columns: repeat(3, 1fr); }
    .facts-3 { grid-template-columns: 1fr 1fr; }
    .modal { margin: auto; width: calc(100% - 48px); max-width: 640px; border-radius: 20px; max-height: 88vh; max-height: 88dvh; }
    .modal-sm { max-width: 460px; }
    .modal-footer { justify-content: flex-end; }
    .modal-footer .btn { flex: none; }
    .sticky-actions .btn { flex: none; }
    .sticky-actions { justify-content: flex-end; }
    .hero-aktionen .btn { flex: none; }
    .card { padding: 20px 22px; }
    .profile-head { grid-template-columns: auto 1fr auto; }
    .profile-buttons { grid-column: auto; flex-direction: column; }
    .page-head { flex-direction: row; align-items: center; gap: 16px; }
    .page-head h2 { margin-left: auto; }
    .page-head h2:first-child { margin-left: 0; }
    .content-area { padding: 22px; }
    .hide-mobile { display: inline-flex !important; }
    .facts div { grid-template-columns: 170px 1fr; }
    .filter-selects { grid-template-columns: repeat(3, minmax(0, 220px)); }
}

/* =====================================================================
   Desktop (ab 1024px): Sidebar statt unterer Navigation
   ===================================================================== */
@media (min-width: 1024px) {
    body.std { display: flex; }
    .sidebar {
        display: flex; flex-direction: column; gap: 18px;
        position: fixed; top: 0; bottom: 0; left: 0; width: var(--sidebar-width);
        padding: 22px 16px; background: var(--white); border-right: 1px solid var(--line); overflow-y: auto; z-index: 50;
    }
    .sidebar-header { padding: 4px 8px 4px; }
    .sidebar-header img { width: 100%; max-width: 200px; display: block; }
    .sidebar-cta { min-height: 46px; }
    .nav-section { display: flex; flex-direction: column; gap: 3px; }
    .nav-section-label { margin: 16px 12px 6px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); }
    .nav-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--text); font-weight: 600; text-decoration: none !important; }
    .nav-item:hover { background: var(--navy-50); }
    .nav-item.active { background: var(--navy); color: #fff; }
    .nav-item.active .ico { stroke: #A9DB6B; }
    .nav-icon { display: flex; }
    .nav-text { flex: 1; }
    .nav-badge { background: var(--danger); color: #fff; border-radius: 999px; min-width: 22px; height: 22px; padding: 0 7px; font-size: .75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
    .sidebar-bottom { margin-top: auto; }
    .main-content { flex: 1; margin-left: var(--sidebar-width); padding-bottom: 0; min-width: 0; display: flex; flex-direction: column; }
    .main-content > .content-area { width: 100%; }
    .top-bar { padding: 14px 28px; }
    .top-logo { display: none; }
    .page-title { font-size: 1.3rem; }
    .bottom-nav, #schnell-modal, #mehr-modal { display: none !important; }
    .content-area { padding: 26px 28px; }
    .footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 28px 26px; color: var(--grey); font-size: .82rem; max-width: 1280px; width: 100%; margin: auto auto 0; }
    .trust-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--green-700); font-weight: 600; }
    .trust-badge .ico { width: 16px; height: 16px; }
    .sticky-actions { bottom: 12px; }
    .dash-raster { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
    .dash-side { position: sticky; top: 90px; }
    .grid-2 { grid-template-columns: 1fr 1fr; }
    .card.hero { flex-direction: row; justify-content: space-between; align-items: center; padding: 26px 30px; }
    .card.hero h2 { font-size: 1.65rem; }
    .kpi-wert { font-size: 2.2rem; }
    .facts-3 { grid-template-columns: 1fr 1fr 1fr; }
    .facts-3 div { grid-template-columns: 1fr; gap: 2px; }
}

/* =====================================================================
   Kalender
   Typ-Farben: Wiedervorlage = Grün, Präsentation = Navy, Geburtstag = Gold
   ===================================================================== */
.t-wv    { --tc: var(--green); --tc-bg: var(--green-50); }
.t-praes { --tc: var(--navy-700); --tc-bg: var(--navy-50); }
.t-geb   { --tc: var(--gold); --tc-bg: #FBF5E4; }
.t-done  { --tc: var(--grey-300); --tc-bg: #F2F4F7; }

.cal-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.cal-nav { display: flex; align-items: center; gap: 6px; }
.cal-nav h2 { min-width: 0; flex: 1; text-align: center; font-size: 1.25rem; }
.chip-toggle { position: relative; }
.chip-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.chip-toggle i { width: 10px; height: 10px; border-radius: 50%; background: var(--tc); }
.chip-toggle:has(input:not(:checked)) { opacity: .45; text-decoration: line-through; }
.chip-toggle:has(input:focus-visible) { outline: 3px solid rgba(90, 160, 18, .55); }

.cal-layout { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; }
.cal-grid-card { padding: 8px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cal-wd { text-align: center; font-size: .72rem; font-weight: 700; color: var(--grey); text-transform: uppercase; padding: 6px 0; }
.cal-day {
    position: relative; min-height: 52px; padding: 6px 2px 8px; border: none; border-radius: 10px;
    background: transparent; font: inherit; color: var(--text); cursor: pointer;
    display: flex; flex-direction: column; align-items: center; gap: 3px; -webkit-tap-highlight-color: transparent;
}
.cal-day:hover { background: var(--navy-50); }
.cal-day.is-other { color: var(--grey-300); }
.cal-day.is-weekend .cal-num, .cal-day.is-holiday .cal-num { color: var(--grey); }
.cal-num { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 650; font-size: .95rem; }
.cal-day.is-today .cal-num { background: var(--navy); color: #fff; }
.cal-day.is-selected { background: var(--green-50); box-shadow: inset 0 0 0 2px var(--green); }
.cal-day.has-rot .cal-num { box-shadow: 0 0 0 2px var(--danger); }
.cal-hol, .cal-chips { display: none; }
.cal-dots { display: flex; gap: 3px; height: 6px; }
.cal-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--tc); }
.cal-dots i.is-done { background: var(--grey-300); }

.cal-agenda .section-head { margin-top: 0; }
.ag-day { margin-bottom: 14px; }
.ag-day.is-empty { display: none; }
.ag-day h4 { font-size: .85rem; font-weight: 750; color: var(--navy-900); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 8px; }
.ag-day.is-today h4 { color: var(--green-700); }
.ag-day.is-past:not(.is-today) { opacity: .7; }
.ag-item { display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--tc); border-radius: 12px; padding: 10px 8px 10px 12px; margin-bottom: 8px; box-shadow: var(--shadow-sm); }
.ag-item.is-done { border-left-color: var(--grey-300); }
.ag-item.is-done .ag-main strong { color: var(--grey); text-decoration: line-through; text-decoration-color: var(--grey-300); }
.ag-item.is-rot { border-left-color: var(--danger); background: #FFFBFB; }
.ag-time { width: 54px; flex-shrink: 0; font-size: .82rem; font-weight: 700; color: var(--navy); }
.ag-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; color: inherit; text-decoration: none !important; }
.ag-main strong { color: var(--navy-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-main span { font-size: .86rem; color: var(--grey); }
.ag-main small { font-size: .8rem; color: var(--grey); }
.ag-actions { display: flex; gap: 2px; flex-shrink: 0; }
/* Smartphone: Aktionen einer Agenda-Zeile unter den Text statt daneben (sonst zu breit) */
@media (max-width: 599px) {
    .ag-item { flex-wrap: wrap; row-gap: 6px; }
    .ag-main { flex-basis: calc(100% - 66px); }
    .ag-actions { margin-left: 66px; flex-wrap: wrap; }
}
.ics-btn { color: var(--green-700); background: var(--green-50); }
.ics-btn:hover { background: var(--green-100); color: var(--green-700); }
.btn-icon { padding: 8px 10px; }
.cal-tipp { display: flex; gap: 8px; align-items: flex-start; margin-top: 6px; }
.cal-tipp .ico { width: 18px; height: 18px; color: var(--green); }

/* Filter: ausgeblendete Typen */
.cal-wrap.hide-wv .ag-item.t-wv, .cal-wrap.hide-wv .cal-chip.t-wv, .cal-wrap.hide-wv .cal-dots i.t-wv,
.cal-wrap.hide-praes .ag-item.t-praes, .cal-wrap.hide-praes .cal-chip.t-praes, .cal-wrap.hide-praes .cal-dots i.t-praes,
.cal-wrap.hide-geb .ag-item.t-geb, .cal-wrap.hide-geb .cal-chip.t-geb, .cal-wrap.hide-geb .cal-dots i.t-geb,
.cal-wrap.hide-done .ag-item.is-done, .cal-wrap.hide-done .cal-chip.is-done, .cal-wrap.hide-done .cal-dots i.is-done { display: none; }

@media (min-width: 1024px) {
    .cal-head { flex-direction: row; align-items: center; justify-content: space-between; }
    .cal-nav h2 { flex: none; min-width: 200px; }
    .cal-layout { grid-template-columns: minmax(0, 1fr) 360px; }
    .cal-agenda { position: sticky; top: 84px; max-height: calc(100vh - 110px); overflow-y: auto; padding-right: 4px; }
    .cal-grid { gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
    .cal-wd { background: var(--white); }
    .cal-day { min-height: 112px; border-radius: 0; background: var(--white); align-items: stretch; padding: 4px 5px 6px; }
    .cal-day.is-other { background: #FAFBFC; }
    .cal-day:hover { background: var(--navy-50); }
    .cal-day.is-selected { background: var(--green-50); box-shadow: inset 0 0 0 2px var(--green); }
    .cal-num { width: 26px; height: 26px; font-size: .85rem; align-self: flex-start; }
    .cal-hol { display: block; font-size: .66rem; color: var(--grey); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .cal-dots { display: none; }
    .cal-chips { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
    .cal-chip { display: block; text-align: left; font-size: .72rem; line-height: 1.3; padding: 2px 6px; border-radius: 5px; background: var(--tc-bg); color: var(--navy-900); border-left: 3px solid var(--tc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .cal-chip b { font-weight: 700; color: var(--grey); }
    .cal-chip.is-done { opacity: .55; text-decoration: line-through; }
    .cal-chip.is-rot { border-left-color: var(--danger); background: #FDEEEE; }
    .cal-more { font-size: .7rem; color: var(--grey); text-align: left; padding-left: 4px; }
}

/* =====================================================================
   Kontexthilfe (Off-Canvas) – Aufbau und Gestaltung nach Vorlage bluefiles,
   Farben an Vendiano angepasst (übernommen aus visotax), Icons als Inline-SVG statt Icon-Schrift.
   ===================================================================== */
.help-drawer, .help-drawer-backdrop {
    --primary-color: var(--navy-700);
    --border-color: #e3ecee;
    --text-color: var(--text);
    --text-muted: var(--grey);
    --surface-color: #ffffff;
    --radius: 12px;
}
.help-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 280;
    background: rgba(8, 20, 33, 0.38);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.help-drawer-backdrop.is-open {
    opacity: 1;
}

.help-drawer {
    --help-ease: cubic-bezier(0.22, 1, 0.36, 1);
    position: fixed;
    top: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 290;
    display: flex;
    flex-direction: column;
    width: min(460px, calc(100vw - 24px));
    overflow: hidden;
    border-radius: 22px;
    background: var(--surface-color);
    box-shadow: 0 30px 80px rgba(7, 30, 66, 0.35), 0 0 0 1px rgba(11, 44, 95, 0.08);
    transform: translateX(calc(100% + 24px));
    transition: transform 0.55s var(--help-ease);
}

.help-drawer[hidden] {
    display: none;
}

.help-drawer.is-open {
    transform: translateX(0);
}

/* Kopf: Markenverlauf mit weichem Lichtschein und feinem Punktraster. */
.help-drawer-hero {
    position: relative;
    flex: 0 0 auto;
    padding: 18px 22px 24px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1.4px) 0 0 / 14px 14px,
        linear-gradient(135deg, var(--navy-900) 0%, var(--navy) 45%, var(--navy-700) 80%, #2F6B2A 130%);
}

.help-drawer-hero-glow {
    position: absolute;
    top: -90px;
    right: -60px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(169, 219, 107, 0.5), transparent 65%);
    filter: blur(6px);
    animation: help-glow-drift 9s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes help-glow-drift {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(-60px, 40px) scale(1.15); }
}

.help-drawer-hero-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.help-drawer-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.help-drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.3s var(--help-ease);
}

.help-drawer-close:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: rotate(90deg);
}

.help-drawer-hero-main {
    position: relative;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.help-drawer-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 10px 24px rgba(0, 0, 0, 0.18);
    font-size: 22px;
    backdrop-filter: blur(8px);
}

.help-drawer-heading {
    min-width: 0;
}

.help-drawer-title {
    color: #fff; /* sonst greift die globale Überschriften-Farbe (Navy) */
    margin: 2px 0 6px;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.help-drawer-summary {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

.help-drawer-summary:empty {
    display: none;
}

.help-drawer-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 22px 22px 8px;
}

/* Lade-Platzhalter, solange help.php antwortet. */
.help-drawer-skeleton {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.help-drawer.is-loading .help-drawer-skeleton {
    display: flex;
}

.help-drawer.is-loading .help-drawer-view .help-content {
    display: none;
}

.help-drawer-skeleton span {
    height: 14px;
    border-radius: 7px;
    background: linear-gradient(90deg, #edf2f7 25%, #f7fafc 50%, #edf2f7 75%) 0 0 / 200% 100%;
    animation: help-shimmer 1.2s linear infinite;
}

.help-drawer-skeleton span:nth-child(1) { width: 45%; height: 18px; }
.help-drawer-skeleton span:nth-child(2) { width: 92%; }
.help-drawer-skeleton span:nth-child(3) { width: 80%; }
.help-drawer-skeleton span:nth-child(4) { width: 86%; }

@keyframes help-shimmer {
    to { background-position: -200% 0; }
}

/* Gerenderter Hilfetext (auch für die Editor-Vorschau). */
.help-content {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--text-color);
}

.help-content > * {
    animation: help-fade-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.help-content > *:nth-child(2) { animation-delay: 0.05s; }
.help-content > *:nth-child(3) { animation-delay: 0.1s; }
.help-content > *:nth-child(4) { animation-delay: 0.15s; }
.help-content > *:nth-child(n+5) { animation-delay: 0.2s; }

@keyframes help-fade-up {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.help-content p {
    margin: 0 0 14px;
}

.help-content h3,
.help-content h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 22px 0 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.help-content h4 {
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-color);
}

.help-content h3::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(11, 44, 95, 0.25), transparent);
}

.help-content > h3:first-child,
.help-content > h4:first-child {
    margin-top: 0;
}

/* Aufzählung: Karten mit Häkchen. */
.help-content ul {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.help-content ul li {
    position: relative;
    padding: 11px 14px 11px 46px;
    border-radius: 12px;
    background: #f6f9fc;
    border: 1px solid #e6eef5;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.help-content ul li:hover {
    border-color: rgba(11, 44, 95, 0.3);
    box-shadow: 0 6px 16px rgba(11, 44, 95, 0.08);
    transform: translateX(-2px);
}

.help-content ul li::before {
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2C5F' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 11px;
    position: absolute;
    top: 13px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(11, 44, 95, 0.1);
    color: var(--primary-color);
    font-size: 10px;
    line-height: 1;
}

/* Nummerierte Liste: Schritte mit Verbindungslinie. */
.help-content ol {
    list-style: none;
    counter-reset: help-step;
    margin: 0 0 16px;
    padding: 0;
}

.help-content ol li {
    position: relative;
    counter-increment: help-step;
    min-height: 30px;
    padding: 3px 0 18px 46px;
}

.help-content ol li::before {
    content: counter(help-step);
    position: absolute;
    top: 0;
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--green), var(--navy-700));
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(11, 44, 95, 0.28);
}

.help-content ol li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 34px;
    bottom: 2px;
    left: 14.5px;
    width: 1px;
    background: linear-gradient(rgba(11, 44, 95, 0.35), rgba(11, 44, 95, 0.05));
}

.help-content ol li:last-child {
    padding-bottom: 6px;
}

.help-content a {
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(11, 44, 95, 0.35);
    text-underline-offset: 3px;
}

.help-content code {
    padding: 1px 6px;
    border-radius: 6px;
    background: #eef3f8;
    font-size: 0.9em;
}

.help-content strong {
    font-weight: 700;
    color: #0f2233;
}

.help-tip {
    display: flex;
    gap: 12px;
    margin: 4px 0 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff8e6, #fff3d1);
    border: 1px solid #f6e2a8;
    color: #6b4e00;
    font-size: 13.5px;
}

.help-tip > svg {
    flex: 0 0 auto;
    margin-top: 3px;
    color: #e0a100;
}

/* Fuss: Meta-Infos bzw. Editor-Aktionen. */
.help-drawer-footer {
    flex: 0 0 auto;
    padding: 14px 22px;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(#fff, #f8fafc);
}

.help-drawer-footer-view,
.help-drawer-footer-edit {
    display: flex;
    align-items: center;
    gap: 10px;
}

.help-drawer-footer-view[hidden],
.help-drawer-footer-edit[hidden] {
    display: none;
}

.help-drawer-footer .btn {
    padding: 8px 14px;
    font-size: 14px;
}

.help-drawer-meta {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    color: var(--text-muted);
}

.help-drawer-meta i {
    margin-right: 4px;
}

.help-drawer-kbd {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

.help-drawer-kbd kbd {
    display: inline-block;
    min-width: 20px;
    padding: 1px 6px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    border-bottom-width: 2px;
    background: #fff;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.help-drawer-footer-spacer {
    flex: 1;
}

.help-drawer-reset {
    border: none;
    background: none;
    padding: 6px 4px;
    color: var(--text-muted);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.help-drawer-reset[hidden] {
    display: none;
}

.help-drawer-reset:hover {
    color: #d32f2f;
}

/* Editor (nur mit hilfe.manage). */
.help-editor[hidden],
.help-drawer-view[hidden] {
    display: none;
}

.help-editor {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: help-fade-up 0.35s ease both;
}

.help-editor-scopes {
    display: flex;
    padding: 4px;
    border-radius: 12px;
    background: #eef3f8;
}

.help-editor-scopes:empty {
    display: none;
}

.help-editor-scopes button {
    flex: 1;
    padding: 8px 10px;
    border: none;
    border-radius: 9px;
    background: none;
    color: var(--text-muted);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.help-editor-scopes button.is-active {
    background: #fff;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.help-editor-scopes button small {
    display: block;
    font-size: 11px;
    font-weight: 500;
    opacity: 0.75;
}

/* Überschreibt die globale label-Optik (Versalien, grau). */
.help-editor-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-color);
    text-transform: none;
    letter-spacing: 0;
}

.help-editor-field > span {
    font-size: 13px;
    font-weight: 600;
}

.help-editor-field small {
    font-weight: 400;
    color: var(--text-muted);
}

.help-editor-field input,
.help-editor-field textarea {
    width: 100%;
    font: inherit;
    font-size: 14px;
}

.help-editor-tabs {
    display: flex;
    gap: 18px;
    border-bottom: 1px solid var(--border-color);
}

.help-editor-tabs button {
    margin-bottom: -1px;
    padding: 6px 0 9px;
    border: none;
    border-bottom: 2px solid transparent;
    background: none;
    color: var(--text-muted);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.help-editor-tabs button.is-active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.help-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.help-editor-toolbar[hidden] {
    display: none;
}

.help-editor-toolbar button {
    width: 32px;
    height: 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.help-editor-toolbar button:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.help-editor-field textarea.help-editor-body {
    min-height: 260px;
    resize: vertical;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 13px;
    line-height: 1.6;
}

.help-editor-preview {
    min-height: 260px;
    padding: 16px;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius);
}

.help-editor-preview[hidden],
.help-editor-body[hidden] {
    display: none;
}

.help-editor-hint {
    margin: 0;
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.9;
}

.help-editor-hint code {
    white-space: nowrap;
    padding: 1px 5px;
    border-radius: 5px;
    background: #eef3f8;
}

.help-drawer-error {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fdecea;
    color: #9b1c1c;
    font-size: 13.5px;
}

@media (max-width: 640px) {
    .help-drawer {
        top: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        border-radius: 0;
    }

    .help-drawer-scroll,
    .help-drawer-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .help-drawer-hero {
        padding: 16px 16px 22px;
    }

    .help-drawer-kbd {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .help-drawer,
    .help-drawer-backdrop,
    .help-content > *,
    .help-drawer-hero-glow {
        transition: none;
        animation: none;
    }
}


/* Inline-SVG-Icons im Hilfe-Fenster */
.help-drawer svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.help-drawer-eyebrow svg { width: 13px; height: 13px; }
.help-drawer-close svg { width: 16px; height: 16px; }
.help-drawer-icon svg { width: 26px; height: 26px; }
.help-tip > svg { width: 18px; height: 18px; color: #e0a100; }
.help-editor-toolbar button { display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.help-editor-toolbar button svg { width: 15px; height: 15px; }
.help-drawer-edit-btn, .help-drawer-reset { display: inline-flex; align-items: center; gap: 7px; }
.help-drawer-edit-btn svg, .help-drawer-reset svg { width: 15px; height: 15px; }
.help-drawer-footer .btn { padding: 10px 18px; font-size: .9rem; }
body.help-open { overflow: hidden; }

/* ?-Button in der Kopfleiste */
.help-trigger {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; padding: 0; border-radius: 50%;
    border: 1.5px solid var(--navy-100); background: var(--navy-50); color: var(--navy-700);
    font: inherit; font-size: 15px; font-weight: 800; cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}
.help-trigger:hover, .help-trigger[aria-expanded="true"] {
    background: var(--navy-700); border-color: var(--navy-700); color: #fff; transform: rotate(-12deg) scale(1.06);
}
@media print { .help-trigger, .help-drawer, .help-drawer-backdrop { display: none !important; } }

/* Häkchen der Hilfe-Aufzählung: Farbe und SVG gemeinsam setzen (die Kurzschreibweise der Vorlage überschreibt sonst das Bild) */
.help-content ul li::before { background: rgba(11, 44, 95, 0.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2C5F' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat; }

/* ?-Button oben rechts: gleiche Grösse und Form wie das Profilbild (.initials-avatar) */
.user-menu .help-trigger {
    width: 46px; height: 46px; flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid var(--navy-100);
    background: var(--navy-50);
    color: var(--navy-700);
    font-size: 1.15rem; font-weight: 700; line-height: 1;
    transform: none;
    transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.user-menu .help-trigger:hover,
.user-menu .help-trigger[aria-expanded="true"] {
    background: linear-gradient(135deg, var(--navy-700), var(--green));
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 0 0 3px var(--navy-100);
    transform: none;
}
.user-menu .help-trigger:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--navy-100); }


/* Kopfzeile: Hilfe, Profilbild und Abmelden in einer Höhe (38px) */
.user-menu { gap: 8px; }
.user-menu .help-trigger { width: 38px; height: 38px; font-size: 1.05rem; border-width: 1.5px; }
.user-menu .btn-logout { min-height: 38px; height: 38px; padding: 0 10px; gap: 6px; border-radius: 10px; font-size: .9rem; color: var(--grey); }
.user-menu .btn-logout:hover { color: var(--danger); border-color: #F3C7C7; background: #FFF7F7; }
.user-menu .btn-logout .ico { width: 18px; height: 18px; }
@media (min-width: 600px) { .user-menu .btn-logout { padding: 0 14px; } }

/* =====================================================================
   Nachrichten aus Vorlagen + Einstellungen E-Mail-Vorlagen
   ===================================================================== */
.qa-msg { background: #FBF5E4; color: #8A6510; border: none; font: inherit; cursor: pointer; }
.qa-msg:hover { background: #F6EBCB; }
.msg-btn { color: #8A6510; background: #FBF5E4; }
.msg-btn:hover { background: #F6EBCB; color: #8A6510; }
.msg-btn-sm { width: 30px; height: 30px; vertical-align: middle; margin-left: 4px; }
.msg-btn-sm .ico { width: 16px; height: 16px; }
.btn-light.qa-msg, .hero-aktionen .qa-msg { background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.na-footer { flex-wrap: wrap; }
.na-footer .is-disabled { opacity: .45; cursor: not-allowed; }
.na-footer button:disabled { opacity: .45; cursor: not-allowed; }
.na-hinweis { display: flex; gap: 8px; align-items: flex-start; padding: 9px 12px; border-radius: 10px; background: var(--warn-50); color: #7A4A00; font-size: .88rem; }
.na-hinweis .ico { flex-shrink: 0; margin-top: 2px; }
#na-kopie-zeile[hidden], #na-einw[hidden] { display: none; }
.mail-protokoll { margin-top: 12px; max-height: 420px; overflow: auto; background: var(--navy-900); color: #DCE6F2; padding: 14px 16px; border-radius: 10px; font-size: .78rem; line-height: 1.5; white-space: pre-wrap; word-break: break-all; }
#na-text { min-height: 220px; font-size: .95rem; line-height: 1.5; }
/* Vorlagen als aufklappbare Abschnitte: Titel + Beschreibung links, Status rechts, Pfeil ganz rechts */
.vorlage-card { padding-top: 16px; padding-bottom: 16px; scroll-margin-top: 80px; } /* nicht unter der festen Kopfzeile verschwinden */
.vorlage-card > summary { gap: 12px; }
.vorlage-card > summary:hover .card-title { color: var(--green-700); }
.vorlage-sum { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.vorlage-sum .card-title { margin-bottom: 0; }
.vorlage-card > summary .badge { flex-shrink: 0; }
.vorlage-card[open] > summary { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.platzhalter { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip-sm { min-height: 30px; padding: 3px 10px; font-size: .8rem; font-family: ui-monospace, Consolas, monospace; font-weight: 600; color: var(--navy-700); }
.chip-sm:hover { border-color: var(--green); color: var(--green-700); }
.vorlage-vorschau summary { cursor: pointer; font-weight: 600; color: var(--navy-700); font-size: .9rem; }
.vorschau-mail { margin-top: 10px; padding: 14px 16px; border: 1px dashed var(--grey-300); border-radius: 12px; background: var(--bg); font-size: .95rem; }
.vorschau-mail strong { display: block; margin-bottom: 10px; color: var(--navy-900); }
.vorschau-mail div { white-space: pre-wrap; }

/* =====================================================================
   Präsentation: Info-Fenster / Karten
   ===================================================================== */
.praes-info .modal-header > div { min-width: 0; }
.praes-info .modal-header p { margin-top: 2px; }
.praes-info .modal-footer { flex-wrap: wrap; }
.pi-block { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.pi-block:first-child { padding-top: 0; }
.pi-block:last-child { border-bottom: none; padding-bottom: 0; }
.pi-block h3 { display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.pi-block h3 .ico { color: var(--green); }
.pi-notiz h3 .ico { color: var(--warn); }
.pi-notiz textarea { min-height: 76px; background: #FFFDF6; border-color: #EBD9A6; }
.pi-notiz-text { background: #FFFBEF; border: 1px solid #F1E2B5; border-radius: 10px; padding: 10px 12px; }
.pi-host { display: flex; gap: 14px; align-items: flex-start; }
.pi-host > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pi-host h3 a { color: var(--navy-900); }
.pi-gaeste { list-style: none; display: flex; flex-direction: column; }
.pi-gaeste li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pi-gaeste li:last-child { border-bottom: none; }
.pi-gaeste li .TextGrey { flex-basis: 100%; }
.pi-flag { color: #9A5B00; font-weight: 700; }
.pi-notiz-kurz { display: flex; gap: 6px; align-items: flex-start; font-size: .88rem; color: #8A4B00; background: var(--warn-50); border-radius: 8px; padding: 6px 10px; margin: 8px 0; }
.pi-notiz-kurz .ico { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.side-card .btn { margin-top: 6px; }
.praes-info-karte .pi-block:first-child { padding-top: 0; }

/* Personen kompakt (Präsentation): Details über ⓘ im Fenster */
.pi-person { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pi-person-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.pi-person-main strong a { color: var(--navy-900); font-size: 1.05rem; }
.pi-person-main h2 { font-size: 1.15rem; }
.pi-rolle { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--grey); }
.pi-person-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pi-person-actions .quick-actions .qa span { display: none; }
.pi-person-actions .quick-actions .qa { width: 40px; height: 40px; padding: 0; justify-content: center; }
.pi-gaeste li { flex-wrap: nowrap; justify-content: space-between; }
.pi-gast { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.pi-gast .avatar { width: 34px; height: 34px; font-size: .8rem; }
.pi-info-btn { position: relative; color: var(--navy-700); background: var(--navy-50); flex-shrink: 0; }
.pi-info-btn:hover { background: var(--navy-100); color: var(--navy); }
.pi-info-btn.has-unv { color: #8A4B00; background: var(--warn-50); }
.pi-unv-dot { position: absolute; top: 5px; right: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 2px var(--white); }
.pi-unv-hinweis { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 600; color: #8A4B00; background: var(--warn-50); padding: 3px 10px; border-radius: 999px; }
.pi-unv-hinweis .ico { width: 14px; height: 14px; color: var(--warn); }
.pi-block h3 { flex-wrap: wrap; }
.person-info .modal-header .avatar { width: 48px; height: 48px; }
.person-info .modal-footer { justify-content: flex-end; }

/* =====================================================================
   Team (Teamleitung)
   ===================================================================== */
.team-lesehinweis { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 14px; border-radius: 12px; background: var(--navy-50); color: var(--navy); font-size: .92rem; }
.team-lesehinweis .ico { color: var(--navy-700); flex-shrink: 0; }
.team-kopf { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.team-kopf .profile-main { flex: 1; min-width: 200px; }
.team-kpis { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 600px) { .team-kpis { grid-template-columns: repeat(4, 1fr); } }
.team-hinweise ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.team-hinweise li { padding: 7px 12px 7px 30px; border-radius: 10px; font-size: .9rem; position: relative; }
.team-hinweise li::before { content: ""; position: absolute; left: 12px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; }
.th-rot { background: #FDEEEE; color: #8E1F1F; } .th-rot::before { background: var(--danger); }
.th-gelb { background: var(--warn-50); color: #7A4A00; } .th-gelb::before { background: var(--warn); }
.th-person { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.th-person:last-child { border-bottom: none; }
.th-zahl { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--warn); color: #fff; font-size: .72rem; font-weight: 700; align-items: center; justify-content: center; }
.team-podium { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.team-podium li { display: grid; grid-template-columns: 32px 44px 1fr; grid-template-rows: auto auto; align-items: center; gap: 0 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.team-podium li .avatar { grid-row: span 2; }
.team-podium li a { font-weight: 700; color: var(--navy-900); }
.tp-platz { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; background: var(--grey-300); }
.tp-1 { background: #FFF8E6; } .tp-1 .tp-platz { background: var(--gold); }
.tp-2 .tp-platz { background: #9AA6B5; } .tp-3 .tp-platz { background: #B97D4B; }
.tp-werte { font-size: .85rem; color: var(--grey); } .tp-werte b { color: var(--green-700); }
.table-wrap { overflow-x: auto; margin: 0 -4px; -webkit-overflow-scrolling: touch; }
.team-tabelle { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 860px; }
.team-tabelle th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--grey); padding: 8px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.team-tabelle td { padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.team-tabelle td.zahl, .team-tabelle th:not(:first-child) { text-align: right; }
.team-tabelle td.rot { color: var(--danger); font-weight: 700; }
.team-tabelle tr.is-ich td { background: var(--navy-50); }
.team-tabelle tbody tr:hover td { background: var(--green-50); }
.mini-list li.is-rot span { color: var(--danger); font-weight: 600; }
.rot-text { color: var(--danger); }

/* =====================================================================
   Rechtliches (Impressum, Datenschutz)
   ===================================================================== */
.login-legal a, .legal-public-foot a { color: rgba(255,255,255,.9); text-decoration: underline; text-underline-offset: 3px; }
.login-legal { margin-top: -8px; }
.footer-links a { color: var(--grey); }
.footer-links a:hover { color: var(--navy); }
.sheet-list .sheet-legal { padding: 16px 6px 0; font-size: .85rem; color: var(--grey); border: 0; }
.sheet-list .sheet-legal a { display: inline; padding: 0; border: 0; font-weight: 500; color: var(--grey); text-decoration: underline !important; }
.legal-grid { display: grid; gap: 14px; margin-bottom: 14px; }
@media (min-width: 900px) { .legal-grid { grid-template-columns: repeat(3, 1fr); } }
.legal-grid .card { margin-bottom: 0; }
.legal-grid .card p { line-height: 1.6; }
.legal-grid .facts div { grid-template-columns: 1fr; gap: 2px; }
.legal-text h3 { margin: 22px 0 8px; font-size: 1.05rem; }
.legal-text h3:first-child { margin-top: 0; }
.legal-text p, .legal-text li { line-height: 1.65; color: var(--text); }
.legal-text p + p { margin-top: 8px; }
.legal-text ul, .legal-kurz ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; margin: 6px 0; }
.legal-kurz { border-left: 4px solid var(--green); margin-bottom: 14px; }
.legal-fehlt { display: inline-block; padding: 0 8px; border-radius: 6px; background: var(--warn-50); color: #7A4A00; font-size: .85em; font-weight: 600; border: 1px dashed var(--warn); }
.legal-public { max-width: 980px; margin: 0 auto; padding: 18px 16px 32px; }
.legal-public-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; margin-bottom: 18px; background: var(--white); border-radius: 16px; box-shadow: var(--shadow-lg); }
.legal-public-logo img { height: 34px; width: auto; display: block; }
.legal-public .content-area { padding: 0; }
.legal-public .section-head h2 { color: #fff; }
.legal-public .section-head .TextGrey { color: rgba(255,255,255,.75); }
.legal-public-foot { justify-content: center; margin-top: 18px; }

/* =====================================================================
   Schnellsuche (Kopfzeile)
   ===================================================================== */
.top-suche { position: relative; }
.ts-form { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 10px 0 14px; border-radius: 999px; background: var(--bg); border: 2px solid var(--line); transition: border-color .15s ease, background .15s ease, width .2s ease; width: 300px; }
.ts-form .ico { color: var(--grey); flex-shrink: 0; width: 18px; height: 18px; }
.ts-form input { border: 0; background: transparent; padding: 0; height: 100%; min-width: 0; flex: 1; font-size: .95rem; box-shadow: none !important; outline: none; }
.ts-form input::-webkit-search-cancel-button { display: none; }
.top-suche.is-fokus .ts-form { border-color: var(--navy-100); background: var(--white); box-shadow: 0 0 0 3px var(--navy-50); width: 380px; }
.top-suche.is-laedt .ts-form .ico { animation: ts-puls .8s ease-in-out infinite alternate; }
@keyframes ts-puls { to { color: var(--green); } }
.ts-kbd { font: 600 .72rem/1 inherit; color: var(--grey); border: 1px solid var(--line); border-radius: 6px; padding: 3px 6px; background: var(--white); }
.top-suche.is-fokus .ts-kbd { display: none; }
.ts-zu { display: none; border: 0; background: none; font-size: 1.5rem; line-height: 1; color: var(--grey); cursor: pointer; padding: 0 4px; }
.ts-knopf { display: none; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--navy-100); background: var(--navy-50); color: var(--navy-700); align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.ts-knopf .ico { width: 20px; height: 20px; }
.ts-liste { position: absolute; top: calc(100% + 8px); right: 0; width: 440px; max-height: min(70vh, 560px); overflow-y: auto; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 60; }
.ts-gruppe + .ts-gruppe { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.ts-titel { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--grey); padding: 8px 10px 4px; }
.ts-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--text); text-decoration: none !important; }
.ts-item:hover, .ts-item.is-aktiv { background: var(--navy-50); }
.ts-item .avatar { width: 36px; height: 36px; font-size: .8rem; }
.ts-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ts-text b { font-weight: 650; color: var(--navy-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-text small { color: var(--grey); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-ico { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--green-50); color: var(--green-700); flex-shrink: 0; }
.ts-ico .ico { width: 18px; height: 18px; }
.ts-ico.ts-praes { background: #FFF4E5; color: #9A5B00; }
.ts-ico.ts-rot { background: #FDEEEE; color: var(--danger); }
.ts-kalender .ts-ico { background: var(--navy-50); color: var(--navy); }
.ts-mehr { font-size: .88rem; font-weight: 600; color: var(--navy-700); justify-content: flex-start; }
.ts-leer { padding: 14px 12px; color: var(--grey); font-size: .92rem; }
.ts-leer .ts-mehr { margin-top: 8px; padding-left: 0; }
@media (max-width: 1180px) and (min-width: 1024px) { .ts-form { width: 230px; } .top-suche.is-fokus .ts-form { width: 300px; } }
/* Smartphone / Tablet: Lupe; bei Tippen legt sich das Suchfeld über die ganze Kopfzeile */
@media (max-width: 1023px) {
    .ts-knopf { display: inline-flex; }
    .top-suche { position: static; }
    .ts-form { display: none; }
    .top-suche.is-offen .ts-form { display: flex; position: absolute; left: 10px; right: 10px; top: 50%; transform: translateY(-50%); width: auto !important; z-index: 61; background: var(--white); border-color: var(--navy-100); }
    .top-suche.is-offen .ts-zu { display: block; }
    .ts-kbd { display: none; }
    .ts-liste { position: fixed; left: 8px; right: 8px; top: calc(66px + env(safe-area-inset-top)); width: auto; max-height: calc(100vh - 160px); }
}
@media print { .top-suche, .ts-knopf { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
    .sidebar, .bottom-nav, .top-bar, .footer, .wv-actions, .btn { display: none !important; }
    .main-content { margin: 0; }
}

/* Einstellungen: Zahl mit Einheit und Umrechnung, Erklärung, Schalter */
.s-zahl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.s-zahl input[type=number] { width: 110px; flex: 0 0 auto; }
.s-einheit { font-weight: 600; color: var(--navy); }
.s-umrechnung { color: #3F7A0B; font-weight: 600; font-size: .9rem; }
.s-umrechnung:empty { display: none; }
.s-erkl { display: block; color: #5B6577; font-size: .85rem; line-height: 1.4; margin-top: 4px; }
.s-schalter { min-height: 48px; }


/* Pakete */
.paket-nutzung { display: flex; flex-direction: column; gap: 6px; padding: 10px 14px; margin-bottom: 14px; border-radius: 12px; background: var(--navy-50); color: var(--navy); font-size: .9rem; }
.paket-nutzung.is-knapp { background: #FFF6E0; color: #7A5200; }
.paket-nutzung.is-voll { background: #FDECEC; color: #A61B1B; }
.paket-balken { display: block; height: 6px; border-radius: 999px; background: rgba(11, 44, 95, .12); overflow: hidden; }
.paket-balken i { display: block; height: 100%; border-radius: 999px; background: var(--green); }
.is-knapp .paket-balken i { background: #E0A100; }
.is-voll .paket-balken i { background: #C62828; }
.paket-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.badge-paket { background: var(--navy-50); color: var(--navy); }
.badge-paket.paket-profi { background: #E8F3DA; color: #3F7A0B; }
.badge-paket.paket-expert { background: var(--navy); color: #fff; }
.TextRot { color: #C62828; font-weight: 600; }
.paket-wahl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.paket-option { position: relative; cursor: pointer; }
.paket-option input { position: absolute; opacity: 0; }
.paket-option > span { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 12px 10px; border: 2px solid var(--line); border-radius: 12px; text-align: center; }
.paket-option small { color: var(--grey); font-size: .78rem; }
.paket-option input:checked + span { border-color: var(--green); background: #F3F9EC; }
.paket-option input:focus-visible + span { outline: 3px solid rgba(90, 160, 18, .55); }
.paket-zusatz { list-style: none; padding: 0; margin: 4px 0 12px; display: flex; flex-direction: column; gap: 8px; }
.paket-zusatz li { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; }
.paket-zusatz .badge { flex-shrink: 0; }

/* Abo & Paket */
.abo-wahl .paket-option > span { gap: 4px; padding: 14px 8px; }
.abo-preis { font-size: 1.05rem; color: var(--navy); }
.paket-option.is-zu-klein { opacity: .55; cursor: not-allowed; }
.abo-summe { font-size: 1.05rem; margin: 4px 0 0; }
.tabelle-einfach { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 6px 0 12px; }
.tabelle-einfach th, .tabelle-einfach td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.tabelle-einfach th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--grey); }
.anleitung { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: .92rem; }
.anleitung code, .facts code { font-size: .82rem; word-break: break-all; }
.badge-paket.paket-ohne { background: #FDECEC; color: #A61B1B; }
@media (max-width: 420px) {
    .abo-wahl { grid-template-columns: 1fr; }
    .abo-wahl .paket-option > span { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 10px; row-gap: 2px; text-align: left; padding: 12px 14px; }
    .abo-wahl .paket-option > span > b { grid-column: 1; }
    .abo-wahl .paket-option > span > .abo-preis { grid-column: 2; text-align: right; }
    .abo-wahl .paket-option > span > small { grid-column: 1 / -1; }
    .abo-wahl .paket-option > span > small:first-of-type { display: none; }  /* «pro Monat» steht im Total */
}

/* AGB-Zustimmung */
.agb-zustimmung .card-title { font-size: 1.25rem; }
.agb-punkte { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; margin: 10px 0 14px; }
.agb-check { align-items: flex-start; gap: 10px; font-weight: 600; line-height: 1.4; }
.agb-check input { margin-top: 3px; width: 20px; height: 20px; flex-shrink: 0; }

/* KI-Empfehlungen */
.ki-banner { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 16px; border-radius: 14px; background: linear-gradient(135deg, #0B2C5F, #164a8f); color: #fff; text-decoration: none !important; }
.ki-banner b { display: block; font-size: 1rem; }
.ki-banner small { display: block; opacity: .85; font-size: .85rem; line-height: 1.35; }
.ki-banner > span:nth-child(2) { flex: 1; min-width: 0; }
.ki-banner-ico { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.14); display: grid; place-items: center; flex-shrink: 0; color: #9BD15A; }
.ki-banner > svg:last-child, .ki-banner > .ico:last-child { flex-shrink: 0; opacity: .8; }
.ki-ergebnis h3 { margin: 18px 0 6px; color: var(--navy); font-size: 1.1rem; }
.ki-ergebnis h3:first-of-type { margin-top: 4px; }
.ki-ergebnis h4 { margin: 12px 0 4px; }
.ki-ergebnis ul, .ki-ergebnis ol { padding-left: 20px; display: flex; flex-direction: column; gap: 5px; }
.ki-ergebnis p { line-height: 1.55; }
.ki-hinweis { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 16px; }
.ki-verlauf { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ki-verlauf a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--navy-50); color: var(--navy); font-size: .88rem; text-decoration: none !important; }
.ki-verlauf a.aktiv { background: var(--navy); color: #fff; }
.ki-teaser ul { padding-left: 20px; display: flex; flex-direction: column; gap: 5px; }

/* KI-Empfehlungen – strukturierte Darstellung */
.ki-start-form { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ki-start-text { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 3px; }
.ki-start-text small { color: var(--grey); font-size: .85rem; line-height: 1.4; }
.ki-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 4px 2px 10px; }
.ki-verlauf-wahl summary { cursor: pointer; color: var(--navy); font-weight: 600; font-size: .88rem; }
.ki-verlauf-wahl .ki-verlauf { margin-top: 8px; }
.ki-fazit { position: relative; overflow: hidden; padding: 22px 22px 20px; margin-bottom: 14px; border-radius: 20px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #1d5aa8 0%, #0B2C5F 55%, #08224a 100%); box-shadow: 0 12px 30px rgba(11, 44, 95, .25); }
.ki-fazit::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(90, 160, 18, .18); }
.ki-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9BD15A; }
.ki-eyebrow svg { width: 16px; height: 16px; }
.ki-fazit h3 { margin: 6px 0 8px; font-size: 1.35rem; line-height: 1.25; color: #fff; position: relative; z-index: 1; }
.ki-fazit p { margin: 0; line-height: 1.55; opacity: .92; position: relative; z-index: 1; }
.ki-hebel { position: relative; z-index: 1; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); }
.ki-hebel span { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9BD15A; margin-bottom: 2px; }
.ki-hebel b { font-size: 1rem; line-height: 1.4; }
.ki-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 10px; }
.ki-kpi { background: var(--white); border-radius: 16px; padding: 14px 14px 12px; box-shadow: 0 1px 3px rgba(11,44,95,.08); border-top: 4px solid #cfd6e0; display: flex; flex-direction: column; gap: 4px; }
.ki-kpi.ki-gut { border-top-color: #5AA012; }
.ki-kpi.ki-mittel { border-top-color: #E0A100; }
.ki-kpi.ki-kritisch { border-top-color: #C62828; }
.ki-kpi-wert { font-size: 1.45rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.ki-kpi-label { font-size: .82rem; color: var(--grey); line-height: 1.35; }
.ki-datenbasis { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem; color: var(--grey); margin: 0 2px 14px; }
.ki-datenbasis svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.ki-block .card-title { display: flex; align-items: center; gap: 8px; }
.ki-block .card-title svg { width: 20px; height: 20px; color: var(--green); }
.ki-punkte { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
@media (min-width: 900px) { .ki-punkte { grid-template-columns: 1fr 1fr; } }
.ki-punkt { display: flex; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg); border-left: 4px solid #cfd6e0; }
.ki-punkt p { margin: 3px 0 0; font-size: .9rem; line-height: 1.5; color: var(--text); }
.ki-punkt b { display: block; color: var(--navy); }
.ki-punkt-ico { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: #fff; }
.ki-punkt-ico svg { width: 17px; height: 17px; }
.ki-tag { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }
.ki-staerke { border-left-color: #5AA012; } .ki-staerke .ki-punkt-ico, .ki-staerke .ki-tag { color: #3F7A0B; }
.ki-chance  { border-left-color: #1d5aa8; } .ki-chance .ki-punkt-ico, .ki-chance .ki-tag { color: #1d5aa8; }
.ki-warnung { border-left-color: #E0A100; background: #FFF9EA; } .ki-warnung .ki-punkt-ico, .ki-warnung .ki-tag { color: #9A6A00; }
.ki-praxis  { border-left-color: #8A95A8; } .ki-praxis .ki-punkt-ico, .ki-praxis .ki-tag { color: #5B6577; }
.ki-timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.ki-timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.ki-timeline li { position: relative; display: grid; grid-template-columns: 150px 1fr; gap: 6px 16px; padding: 8px 0 12px 28px; }
.ki-timeline li::before { content: ""; position: absolute; left: 1px; top: 13px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--green); box-sizing: border-box; }
.ki-wann { font-weight: 700; color: var(--navy); font-size: .9rem; padding-top: 2px; }
.ki-timeline b { color: var(--text); }
.ki-timeline p { margin: 2px 0 0; font-size: .9rem; line-height: 1.5; color: var(--grey); }
@media (max-width: 600px) { .ki-timeline li { grid-template-columns: 1fr; } .ki-wann { display: inline-block; background: var(--navy-50); border-radius: 999px; padding: 2px 10px; justify-self: start; } }
.ki-einst { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ki-einst li { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; background: var(--bg); }
.ki-einst-text { flex: 1; min-width: 200px; }
.ki-einst-text p { margin: 3px 0 0; font-size: .88rem; color: var(--grey); line-height: 1.45; }
.ki-einst-werte { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.ki-einst-werte svg { width: 16px; height: 16px; color: var(--grey); }
.ki-alt-wert { color: var(--grey); text-decoration: line-through; }
.ki-neu-wert { color: #fff; background: var(--green); border-radius: 8px; padding: 2px 9px; }
.ki-schritte { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ki-schritte li { display: flex; gap: 12px; align-items: flex-start; }
.ki-nr { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--navy); color: #fff; font-weight: 800; font-size: .9rem; }
.ki-schritte p { margin: 2px 0 0; font-size: .9rem; color: var(--grey); line-height: 1.5; }
.ki-prio { background: #FDECEC; color: #A61B1B; font-size: .7rem; vertical-align: middle; }
.ki-schritte-box { border: 2px solid #E8F3DA; }
.ki-hinweis { display: flex; gap: 8px; align-items: flex-start; margin: 6px 2px 0; }
.ki-hinweis svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.ki-ergebnis .ki-punkte, .ki-ergebnis .ki-timeline, .ki-ergebnis .ki-einst, .ki-ergebnis .ki-schritte { padding-left: 0; }

/* KI: Beispieltexte (Gesprächseinstiege, Social Media) */
.ki-texte { display: grid; gap: 12px; }
@media (min-width: 900px) { .ki-texte { grid-template-columns: 1fr 1fr; } }
.ki-text-karte { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.ki-text-karte header { display: flex; flex-direction: column; gap: 4px; }
.ki-text-karte header b { color: var(--navy); line-height: 1.3; }
.ki-kanal { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #3F7A0B; background: #E8F3DA; border-radius: 999px; padding: 3px 10px; }
.ki-kanal svg { width: 14px; height: 14px; }
.ki-social .ki-kanal { color: #1d5aa8; background: #E3EDF9; }
.ki-text-karte blockquote { margin: 0; padding: 12px 14px; background: #fff; border-radius: 12px; border-left: 3px solid var(--green); font-size: .93rem; line-height: 1.55; color: var(--text); white-space: normal; }
.ki-social blockquote { border-left-color: #1d5aa8; }
.ki-text-tipp { display: flex; gap: 6px; align-items: flex-start; margin: 0; font-size: .84rem; color: var(--grey); line-height: 1.45; }
.ki-text-tipp svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; }
.ki-text-karte .btn { align-self: flex-start; margin-top: auto; }

/* KI-Empfehlungen – ruhige Darstellung im Stil der übrigen Seiten (ersetzt die frühere Variante) */
.ki-fazit { position: static; padding: 18px 20px; margin-bottom: 14px; border-radius: var(--radius); color: var(--text); background: var(--white); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.ki-fazit::after { display: none; }
.ki-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--grey); }
.ki-fazit h3 { margin: 4px 0 8px; font-size: 1.2rem; color: var(--navy); }
.ki-fazit p { margin: 0 0 8px; line-height: 1.55; opacity: 1; }
.ki-hebel { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: #F3F9EC; border: 0; color: var(--text); }
.ki-hebel b { color: #3F7A0B; font-size: inherit; }
.ki-datenbasis { margin: 10px 0 0 !important; display: block; }
.ki-kpis { margin-bottom: 14px; }
@media (min-width: 900px) { .ki-kpis { grid-template-columns: repeat(4, 1fr); } }
.ki-kpis .kpi-wert { font-size: 1.5rem; }
.ki-abschnitt { margin-bottom: 12px; }
.ki-abschnitt > summary .card-title { font-size: 1.02rem; }
.ki-abschnitt > summary .TextGrey { margin-left: auto; margin-right: 12px; }
.ki-abschnitt-inhalt { padding-top: 12px; }
.ki-liste { list-style: none; padding: 0; margin: 0; }
.ki-liste li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ki-liste li:last-child { border-bottom: 0; }
.ki-liste p, .ki-schritte p { margin: 3px 0 0; font-size: .92rem; line-height: 1.5; color: var(--grey); }
.ki-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; margin-top: 7px; background: #8A95A8; }
.ki-dot.ki-staerke { background: #5AA012; } .ki-dot.ki-chance { background: #1d5aa8; } .ki-dot.ki-warnung { background: #D08A00; }
.ki-art { font-size: .78rem; color: var(--grey); font-weight: 500; }
.ki-wichtig { color: #A61B1B; }
.ki-schritte { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.ki-schritte li::marker { font-weight: 700; color: var(--navy); }
.ki-timing { margin: 0; }
.ki-timing > div { display: grid; grid-template-columns: 170px 1fr; gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ki-timing > div:last-child { border-bottom: 0; }
.ki-timing dt { font-weight: 700; color: var(--navy); font-size: .92rem; }
.ki-timing dd { margin: 0; }
.ki-timing dd p { margin: 2px 0 0; font-size: .92rem; line-height: 1.5; color: var(--grey); }
@media (max-width: 600px) { .ki-timing > div { grid-template-columns: 1fr; } }
.ki-text-karte { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px; gap: 8px; }
.ki-text-kopf { margin: 0; }
.ki-text-kopf small { color: var(--grey); margin-left: 4px; }
.ki-zitat { padding: 10px 12px; background: var(--bg); border-radius: 8px; font-size: .93rem; line-height: 1.55; }
.ki-text-tipp { margin: 0; font-size: .85rem; color: var(--grey); line-height: 1.45; }
.ki-einst li { background: transparent; padding: 10px 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.ki-einst li:last-child { border-bottom: 0; }
.ki-einst-werte { font-weight: 500; color: var(--grey); white-space: nowrap; }
.ki-einst-werte b { color: var(--navy); }
.ki-ergebnis .ki-schritte { list-style: decimal; padding-left: 22px; display: block; }
.ki-ergebnis .ki-schritte li { display: list-item; padding: 6px 0; }
.ki-ergebnis .ki-schritte li + li { border-top: 1px solid var(--line); }
.ki-ergebnis .ki-liste { padding-left: 0; display: block; }
.ki-abschnitt > summary .TextGrey { white-space: nowrap; }
@media (max-width: 480px) { .ki-abschnitt > summary .TextGrey { display: none; } }
.ki-badge-wichtig { background: #FDECEC; color: #A61B1B; font-size: .72rem; margin-left: 6px; vertical-align: 2px; }
.ki-badge { font-size: .72rem; margin-left: 6px; vertical-align: 2px; }
.ki-badge-staerke { background: #E8F3DA; color: #3F7A0B; }
.ki-badge-chance { background: #E3EDF9; color: #1d5aa8; }
.ki-badge-warnung { background: #FFF3D6; color: #8A5E00; }
.ki-badge-praxis { background: #EEF1F5; color: #5B6577; }

/* =====================================================================
   Online-Terminvereinbarung
   ===================================================================== */
/* Kalender: Typen «Online-Termine» und «Freie Zeiten» */
.t-buch { --tc: #1d5aa8; --tc-bg: #E3EDF9; }
.t-frei { --tc: #7DB43A; --tc-bg: #F3F9EC; }
.cal-wrap.hide-buch .ag-item.t-buch, .cal-wrap.hide-buch .cal-chip.t-buch, .cal-wrap.hide-buch .cal-dots i.t-buch,
.cal-wrap.hide-frei .ag-item.t-frei, .cal-wrap.hide-frei .cal-chip.t-frei, .cal-wrap.hide-frei .cal-dots i.t-frei { display: none; }
.cal-chip.t-frei { border-left-style: dashed; color: #3F7A0B; }
.cal-chip.is-anfrage, .ag-item.is-anfrage { --tc: #D08A00; --tc-bg: #FFF6E0; }
.ag-item.t-frei { background: #FAFDF6; box-shadow: none; border-style: dashed; border-left-style: solid; }
.ag-item.t-frei .ag-main strong { color: #3F7A0B; font-weight: 600; }
.ag-actions form { display: inline-flex; margin: 0; }
.cal-online { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; order: 2; }
.cal-head:has(.cal-online) { flex-wrap: wrap; }
.cal-head:has(.cal-online) .cal-filter { order: 3; width: 100%; }
@media (min-width: 1024px) { .cal-head:has(.cal-online) .cal-online { margin-left: auto; } }
.cal-online .nav-badge { position: static; margin-left: 4px; }

/* Fenster «Zeiten freigeben» */
.frei-vorlagen { display: flex; gap: 8px; flex-wrap: wrap; }
.frei-vorlagen .chip { cursor: pointer; border: 1px solid var(--line); background: var(--white); font: inherit; font-size: .85rem; }
.frei-vorlagen .chip:hover { border-color: var(--green); }
.frei-zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.frei-zeile .form-group { margin: 0; }

/* Seite «Online-Termine» */
.ot .section-head { margin-top: 18px; }
.ot .collapsible { margin-top: 14px; }
.ot-inhalt { padding-top: 12px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.ot-inhalt.form-stack, .ot-inhalt .form-grid-2 { align-items: stretch; width: 100%; }
.ot-sum-info { margin-left: auto; margin-right: 12px; }
.ot-link { display: flex; flex-direction: column; gap: 12px; }
.ot-link-kopf { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.ot-link-kopf .card-title { margin-bottom: 2px; }
.ot-link-kopf p { margin: 0; }
.ot-aktiv { margin: 0; }
.ot-link-zeile { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ot-link-zeile code { flex: 1 1 260px; min-width: 0; padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-size: .88rem; overflow-wrap: anywhere; color: var(--navy); }
.ot-link-neu { margin: 0; }
.ot-link-neu .btn-link { display: inline-flex; gap: 6px; align-items: center; color: var(--grey); background: none; border: 0; padding: 4px 0; font: inherit; font-size: .85rem; cursor: pointer; }
.ot-link-neu .btn-link:hover { color: var(--navy); text-decoration: underline; }
.ot-link-neu .ico { width: 15px; height: 15px; }
.ot-liste { display: grid; gap: 12px; }
@media (min-width: 900px) { .ot-liste { grid-template-columns: 1fr 1fr; } }
.ot-buchung { display: flex; flex-direction: column; gap: 10px; margin: 0; border-left: 4px solid #1d5aa8; }
.ot-buchung.is-anfrage { border-left-color: #D08A00; }
.ot-buchung.is-alt { border-left-color: var(--line); }
.ot-buchung.is-alt h4 { color: var(--grey); }
.ot-badge-alt { background: var(--bg); color: var(--grey); font-size: .72rem; margin-left: 4px; vertical-align: 2px; }
.tab-zahl.is-neu, .tab-button.active .tab-zahl.is-neu { background: var(--red, #C62828); color: #fff; }
.tab-zahl { display: inline-block; margin-left: 4px; min-width: 20px; padding: 1px 6px; border-radius: 10px; background: var(--bg); color: var(--grey); font-size: .75rem; text-align: center; }
.tab-button.active .tab-zahl { background: #E8F3DA; color: #3F7A0B; }
.ot-b-kopf { display: flex; gap: 14px; align-items: flex-start; }
.ot-b-zeit { display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 8px 6px; border-radius: 10px; background: var(--bg); line-height: 1.2; }
.ot-b-zeit b { color: var(--navy); font-size: 1.05rem; }
.ot-b-zeit span { color: var(--grey); font-size: .85rem; }
.ot-b-text h4 { margin: 0 0 2px; font-size: 1rem; color: var(--navy); }
.ot-b-text p { margin: 0; font-size: .9rem; }
.ot-badge-anfrage { background: #FFF3D6; color: #8A5E00; font-size: .72rem; margin-left: 4px; vertical-align: 2px; }
.ot-badge-fest { background: #E8F3DA; color: #3F7A0B; font-size: .72rem; margin-left: 4px; vertical-align: 2px; }
.ot-b-nachricht { margin: 0; padding: 8px 12px; border-radius: 8px; background: var(--bg); font-size: .9rem; color: var(--text); }
.ot-b-kontakt { display: flex; gap: 6px; flex-wrap: wrap; }
.ot-b-entscheid { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ot-b-antwort summary { cursor: pointer; font-size: .85rem; color: var(--grey); }
.ot-b-antwort textarea { margin-top: 6px; width: 100%; }
.ot-b-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; }
.ot-fenster, .ot-arten { list-style: none; margin: 0; padding: 0; width: 100%; }
.ot-fenster li { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ot-fenster li:last-child, .ot-arten li:last-child { border-bottom: 0; }
.ot-f-tag { min-width: 190px; font-weight: 600; color: var(--navy); font-size: .92rem; }
.ot-f-zeiten { display: flex; gap: 6px; flex-wrap: wrap; }
.ot-f-chip { display: inline-flex; align-items: center; gap: 2px; margin: 0; padding: 3px 4px 3px 10px; border-radius: 999px; background: #F3F9EC; color: #3F7A0B; font-size: .85rem; font-weight: 600; }
.ot-f-chip button { border: 0; background: transparent; color: #3F7A0B; font-size: 1.1rem; line-height: 1; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; }
.ot-f-chip button:hover { background: #E2F0D2; }
.ot-arten li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ot-arten li p { margin: 2px 0 0; }
.ot-arten li.is-inaktiv b { color: var(--grey); }
.ot-teaser p { max-width: 640px; }

/* Öffentliche Buchungsseite */
.buch-seite { max-width: 640px; margin: 0 auto; padding: 18px 16px 32px; }
.buch-hero { text-align: center; color: #fff; margin: 10px 0 22px; }
.buch-foto { width: 132px; height: 132px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--green); color: #fff; font-weight: 700; font-size: 2.6rem; border: 4px solid rgba(255,255,255,.9); box-shadow: 0 10px 30px rgba(0,0,0,.28); }
.buch-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.buch-hero h1 { margin: 0; font-size: 1.05rem; font-weight: 500; line-height: 1.3; color: rgba(255,255,255,.82); }
.buch-hero h1 span { display: inline-block; margin-top: 2px; font-size: 1.85rem; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.buch-powered { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 26px; font-size: .78rem; color: rgba(255,255,255,.55); }
.buch-powered a { color: rgba(255,255,255,.6); text-decoration: none; }
.buch-powered a:hover { color: #fff; }
.buch-powered-marke { display: inline-flex; align-items: center; gap: 5px; letter-spacing: .02em; }
.buch-powered-marke img { height: 11px; width: auto; filter: brightness(0) invert(1); opacity: .6; }
@media (min-width: 640px) { .buch-foto { width: 150px; height: 150px; } .buch-hero h1 span { font-size: 2.2rem; } }
.buch-karte { padding: 22px 20px; border-radius: 18px; box-shadow: var(--shadow-lg); }
.buch-karte h1 { font-size: 1.35rem; margin: 0; color: var(--navy); line-height: 1.25; }
.buch-person { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.buch-avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 700; font-size: 1.2rem; flex-shrink: 0; }
.buch-gruss { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--bg); line-height: 1.55; }
.buch-falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.buch-schritt { border: 0; margin: 0; padding: 18px 0 6px; box-shadow: 0 -1px 0 var(--line); scroll-margin-top: 12px; min-width: 0; }
.buch-schritt:first-of-type, .buch-schritt[hidden] + .buch-schritt { box-shadow: none; padding-top: 4px; }
.buch-schritt > legend { float: left; width: 100%; }
.buch-schritt > legend ~ * { clear: both; }
.buch-schritt legend { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); font-size: 1.02rem; padding: 0; margin-bottom: 10px; }
.buch-nr { width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: .8rem; }
.buch-arten { display: grid; gap: 10px; }
.buch-art { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.buch-art input { margin-top: 3px; accent-color: var(--green); width: 18px; height: 18px; flex-shrink: 0; }
.buch-art:has(input:checked) { border-color: var(--green); background: #F7FBF2; }
.buch-art.is-voll { opacity: .55; cursor: default; }
.buch-art-inhalt { display: flex; flex-direction: column; gap: 2px; }
.buch-art-inhalt b { color: var(--navy); }
.buch-art-meta { font-size: .85rem; color: var(--grey); font-weight: 600; }
.buch-art-text { font-size: .88rem; color: var(--grey); line-height: 1.45; }
.buch-tage { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.buch-zeiten { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.buch-chip { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 12px; min-height: 48px; border: 2px solid var(--line); border-radius: 12px; background: var(--white); font: inherit; color: var(--navy); cursor: pointer; scroll-snap-align: start; flex-shrink: 0; transition: border-color .15s, background .15s; }
.buch-tage .buch-chip { min-width: 92px; }
.buch-chip b { font-size: .98rem; }
.buch-chip small { font-size: .74rem; color: var(--grey); white-space: nowrap; }
.buch-chip:hover { border-color: var(--green); }
.buch-chip.is-aktiv { border-color: var(--green); background: var(--green); color: #fff; }
.buch-chip.is-aktiv small { color: rgba(255,255,255,.85); }
.buch-auswahl { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #F3F9EC; color: #2F5E08; font-weight: 600; font-size: .92rem; }
.buch-plzort { grid-template-columns: 110px 1fr; }
.buch-check { align-items: flex-start; margin: 4px 0 10px; font-size: .9rem; line-height: 1.45; }
.buch-check input { margin-top: 3px; flex-shrink: 0; }
.buch-senden { margin-top: 8px; min-height: 50px; font-size: 1.02rem; }
.buch-fuss { margin: 10px 0 0; text-align: center; }
.buch-seite .is-fehler { border-color: var(--danger) !important; }
.buch-leer { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; background: var(--bg); }
.buch-leer .ico { width: 28px; height: 28px; color: var(--grey); flex-shrink: 0; }
.buch-leer p { margin: 0; line-height: 1.5; }
.buch-status-kopf { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.buch-status-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #FFF3D6; color: #8A5E00; flex-shrink: 0; }
.buch-status-ico .ico { width: 24px; height: 24px; }
.buch-status.is-bestaetigt .buch-status-ico { background: #E8F3DA; color: #3F7A0B; }
.buch-status.is-abgelehnt .buch-status-ico, .buch-status.is-storniert .buch-status-ico { background: #FDECEC; color: #A61B1B; }
.buch-hinweis-ok { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: #F3F9EC; font-size: .9rem; }
.buch-hinweis-ok .ico { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; color: #3F7A0B; }
.buch-details { margin: 14px 0; border-top: 1px solid var(--line); }
.buch-details > div { display: grid; grid-template-columns: 100px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.buch-details dt { color: var(--grey); font-size: .88rem; }
.buch-details dd { margin: 0; font-weight: 600; color: var(--navy); }
.buch-aktionen { display: flex; gap: 10px; flex-wrap: wrap; }
.buch-aktionen form { margin: 0; }
@media (max-width: 520px) {
    .buch-karte { padding: 18px 16px; }
    .buch-aktionen > *, .buch-aktionen .btn { width: 100%; justify-content: center; }
}

/* Werbeseite für nicht gebuchte Zusatzpakete */
.zw { display: flex; flex-direction: column; gap: 18px; }
.zw-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr; gap: 26px; align-items: center; padding: 30px 22px; border-radius: 20px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #1A4384 0%, rgba(26,67,132,0) 55%), linear-gradient(135deg, #0B2C5F 0%, #071E42 100%); box-shadow: var(--shadow-lg); }
.zw-hero::after { content: ""; position: absolute; width: 340px; height: 340px; right: -120px; bottom: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(90,160,18,.35), rgba(90,160,18,0) 70%); pointer-events: none; }
.zw-hero-text { position: relative; z-index: 1; }
.zw-eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.12); color: #CFE7B3; font-size: .8rem; font-weight: 700; letter-spacing: .02em; }
.zw-eyebrow svg { width: 15px; height: 15px; }
.zw-hero h2 { color: #fff; font-size: clamp(1.6rem, 4.6vw, 2.3rem); line-height: 1.15; margin: 14px 0 10px; letter-spacing: -.01em; }
.zw-hero p { color: rgba(255,255,255,.82); font-size: 1.04rem; line-height: 1.55; max-width: 520px; margin: 0; }
.zw-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.btn-gross { padding: 14px 24px; font-size: 1.02rem; }
.zw-preis { display: flex; flex-direction: column; line-height: 1.2; }
.zw-preis b { font-size: 1.25rem; }
.zw-preis small { font-size: .8rem; opacity: .75; }
.zw-info { font-size: .92rem; opacity: .85; }

/* Vorschau-Karte im Hero */
.zw-mock { position: relative; z-index: 1; background: #fff; color: var(--text); border-radius: 16px; padding: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.35); max-width: 360px; width: 100%; justify-self: center; transform: rotate(-1.5deg); }
.zw-mock-tag { position: absolute; top: -10px; right: 14px; background: var(--green); color: #fff; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; }
.zw-mock-titel { display: block; color: var(--navy); margin-bottom: 12px; }
.zw-balken { display: grid; grid-template-columns: 92px 1fr 42px; align-items: center; gap: 8px; font-size: .82rem; margin-bottom: 8px; color: var(--grey); }
.zw-balken i { display: block; height: 10px; border-radius: 999px; background: var(--navy-50); position: relative; overflow: hidden; }
.zw-balken i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--green), #7FC23A); }
.zw-balken em { font-style: normal; font-weight: 700; color: var(--navy); text-align: right; }
.zw-tipp { display: flex; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--green-50); font-size: .82rem; line-height: 1.4; color: var(--text); }
.zw-tipp svg { flex: none; width: 16px; height: 16px; color: var(--green-700); margin-top: 1px; }
.zw-mock-kopf { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.zw-mock-kopf small { display: block; color: var(--grey); font-size: .75rem; }
.zw-mock-kopf b { color: var(--navy); }
.zw-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-weight: 700; }
.zw-mock-tagname { display: block; font-weight: 700; color: var(--navy); font-size: .82rem; margin-bottom: 8px; }
.zw-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.zw-slots span { text-align: center; padding: 8px 0; border-radius: 8px; border: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--navy); }
.zw-slots .is-wahl { background: var(--navy); border-color: var(--navy); color: #fff; }
.zw-mock-btn { display: block; text-align: center; padding: 10px; border-radius: 10px; background: var(--green); color: #fff; font-weight: 700; font-size: .9rem; }

/* Vorteile, Schritte, Abschluss */
.zw-vorteile { display: grid; grid-template-columns: 1fr; gap: 12px; }
.zw-vorteil { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
.zw-vorteil:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.zw-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--green-50); color: var(--green-700); margin-bottom: 10px; }
.zw-icon svg { width: 22px; height: 22px; }
.zw-vorteil b { display: block; color: var(--navy); margin-bottom: 4px; }
.zw-vorteil p { margin: 0; color: var(--grey); font-size: .92rem; line-height: 1.45; }
.zw-schritte { background: var(--navy-50); border-radius: var(--radius); padding: 20px; }
.zw-schritte h3 { margin: 0 0 12px; color: var(--navy); font-size: 1.05rem; }
.zw-schritte ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.zw-schritte li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--text); }
.zw-schritte li span { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: .9rem; }
.zw-abschluss { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px; border-radius: var(--radius); background: #fff; border: 2px solid var(--green-100); }
.zw-abschluss b { font-size: 1.15rem; color: var(--navy); }
.zw-abschluss p { display: flex; gap: 6px; align-items: flex-start; margin: 4px 0 0; color: var(--grey); font-size: .9rem; max-width: 420px; }
.zw-abschluss p svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--green-700); }
.zw-abschluss .zw-cta { margin-top: 0; }
.zw-abschluss .zw-preis small { opacity: 1; color: var(--grey); }
.zw-abschluss .zw-preis b { color: var(--navy); }
@media (min-width: 720px) {
  .zw-hero { grid-template-columns: 1.15fr .85fr; padding: 40px 36px; }
  .zw-vorteile { grid-template-columns: repeat(2, 1fr); }
  .zw-schritte ol { grid-template-columns: repeat(3, 1fr); }
}

.zw-punkte { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 6px; }
.zw-punkte li { position: relative; padding-left: 28px; color: #fff; font-weight: 600; font-size: .95rem; }
.zw-punkte li::before { content: "\2713"; position: absolute; left: 0; top: 2px; width: 19px; height: 19px; border-radius: 50%; background: var(--green); color: #fff; font-size: .72rem; display: grid; place-items: center; }
.zw-hebel { background: var(--navy); color: #fff; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.zw-hebel small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: #CFE7B3; font-weight: 700; }
.zw-hebel b { font-size: .92rem; }
.zw-mock-ki .zw-mock-tagname { display: flex; align-items: center; gap: 5px; }
.zw-mock-ki .zw-mock-tagname svg { width: 14px; height: 14px; color: var(--green-700); }
.zw-bubble { background: #E7F6DA; border-radius: 12px 12px 12px 3px; padding: 10px 12px; font-size: .84rem; line-height: 1.45; margin-bottom: 12px; }
.zw-mock-aktionen { display: flex; align-items: center; gap: 8px; }
.zw-mock-aktionen .zw-mock-btn { flex: 1; padding: 8px; font-size: .82rem; }
.zw-mock-chip { font-size: .75rem; font-weight: 700; color: var(--navy); background: var(--navy-50); border-radius: 999px; padding: 6px 10px; white-space: nowrap; }
.zw-beispiele h3 { margin: 4px 0 4px; color: var(--navy); font-size: 1.15rem; }
.zw-beispiele > p { margin: 0 0 12px; font-size: .92rem; }
.zw-beispiel-grid { display: grid; gap: 12px; }
.zw-beispiel { margin: 0; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.zw-beispiel figcaption { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--green-700); margin-bottom: 8px; }
.zw-beispiel blockquote { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--text); }
@media (min-width: 720px) { .zw-beispiel-grid { grid-template-columns: 1fr 1fr; } }

/* Profil: Mein Paket */
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.card-title-row .card-title { margin: 0; display: flex; align-items: center; gap: 8px; }
.paket-zw-titel { margin: 16px 0 8px; font-size: .95rem; color: var(--navy); }
.paket-zw { display: grid; gap: 10px; margin-bottom: 12px; }
.paket-zw-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--text); text-decoration: none !important; transition: border-color .15s, box-shadow .15s; }
.paket-zw-item:hover { border-color: var(--green); box-shadow: var(--shadow-sm); }
.paket-zw-item.is-aktiv { background: var(--green-50); border-color: var(--green-100); }
.paket-zw-icon { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--navy-50); color: var(--navy); }
.paket-zw-item.is-aktiv .paket-zw-icon { background: var(--green); color: #fff; }
.paket-zw-icon svg { width: 20px; height: 20px; }
.paket-zw-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.paket-zw-text b { color: var(--navy); }
.paket-zw-text small { color: var(--grey); font-size: .84rem; }
.paket-zw-item:not(.is-aktiv) .paket-zw-text small { color: var(--green-700); font-weight: 600; }
.paket-zw-item .badge { flex: none; }
.paket-zw { grid-template-columns: minmax(0, 1fr); }
.paket-zw-item { box-sizing: border-box; min-width: 0; }
.paket-zw-text b { overflow-wrap: anywhere; }
@media (max-width: 480px) { .paket-zw-item:not(.is-aktiv) .badge { display: none; } }

/* Kontakt festhalten: Erinnerung */
.vl-erinnern { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--navy-50); }
.vl-wv-felder { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.vl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vl-chip { border: 1px solid var(--grey-300); background: #fff; color: var(--navy); border-radius: 999px; padding: 6px 12px; font-size: .85rem; font-weight: 600; cursor: pointer; font-family: inherit; }
.vl-chip:hover { border-color: var(--navy); }
.vl-chip.is-wahl { background: var(--navy); border-color: var(--navy); color: #fff; }

/* =====================================================================
   Zwei-Faktor-Anmeldung
   ===================================================================== */
.zf-karte { max-width: 480px; }
.zf-kopf { display: flex; align-items: center; gap: 12px; }
.zf-kopf h2 { margin: 0 0 2px; font-size: 1.15rem; }
.zf-schild { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: var(--green-50); color: var(--green-700); display: inline-flex; align-items: center; justify-content: center; }
.zf-schild svg { width: 24px; height: 24px; }
.zf-kicker { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green-700); }
.zf-titel { margin: 0; font-size: 1.3rem; }
.zf-text { color: var(--grey); font-size: .95rem; margin: 0; }
.zf-code-input { font-size: 1.5rem !important; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.zf-link-form { margin: 0; text-align: center; }
.zf-link { background: none; border: 0; padding: 6px; color: var(--navy-700); font: inherit; font-size: .9rem; text-decoration: underline; cursor: pointer; }
.zf-link:hover { color: var(--navy); }
.zf-link-reihe { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 16px; }
.zf-abbrechen { border-top: 1px solid var(--line); padding-top: 8px; }
.zf-notfall { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; font-size: .92rem; }
.zf-notfall summary, .zf-schluessel summary, .zf-aktion summary { cursor: pointer; color: var(--navy-700); font-weight: 600; }
.zf-notfall[open] { display: flex; flex-direction: column; gap: 10px; }
.zf-klein { font-size: .82rem; color: var(--grey); margin: 0; }
.zf-wahl { display: flex; flex-direction: column; gap: 10px; }
.zf-option { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.zf-option:has(input:checked) { border-color: var(--green); background: var(--green-50); }
.zf-option input { margin-top: 4px; accent-color: var(--green); }
.zf-option-body { display: flex; flex-direction: column; gap: 4px; }
.zf-option-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.zf-option-text { font-size: .88rem; color: var(--grey); line-height: 1.45; }
.zf-schritte { margin: 0; padding-left: 20px; font-size: .92rem; display: flex; flex-direction: column; gap: 6px; }
.zf-qr { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.zf-qr svg { width: 200px; height: 200px; max-width: 100%; background: #fff; padding: 8px; border: 1px solid var(--line); border-radius: 12px; }
.zf-schluessel { font-size: .88rem; text-align: center; }
.zf-schluessel code { display: inline-block; margin-top: 6px; padding: 6px 10px; background: var(--navy-50); border-radius: 8px; font-size: .95rem; letter-spacing: .05em; word-break: break-all; }
.zf-aktion { margin-top: 6px; }
.zf-aktion[open] summary { margin-bottom: 10px; }
.zf-hinweis-oben { padding-bottom: 0 !important; }
.zf-codes-karte { border: 2px solid var(--green); }
.zf-codes { list-style: none; margin: 14px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.zf-codes li { font-family: ui-monospace, Consolas, monospace; font-size: 1.05rem; font-weight: 700; letter-spacing: .08em; text-align: center; padding: 8px; background: var(--navy-50); border-radius: 8px; }
.zf-codes-warnung { font-size: .9rem; background: var(--warn-50); border-radius: var(--radius-sm); padding: 10px 12px; }
@media print {
	body:has(.zf-codes-karte) .sidebar, body:has(.zf-codes-karte) .top-bar, body:has(.zf-codes-karte) .bottom-nav, body:has(.zf-codes-karte) .zf-codes-karte .btn-row { display: none !important; }
}

/* =====================================================================
   Kalender-Abo
   ===================================================================== */
.cal-tipp a { color: var(--navy-700); text-decoration: underline; }
.kal-abo-kopf { flex-direction: row !important; align-items: center; gap: 12px !important; }
.kal-abo-kopf h2 { margin: 0 !important; }
.kal-abo-seite { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.kal-abo-seite .card { margin: 0; }
.kal-abo-seite .card-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.kal-abo-seite p { margin: 0 0 12px; line-height: 1.55; }
.kal-abo-seite p:last-child { margin-bottom: 0; }
.kal-abo-nr { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--green-50); color: var(--green); font-size: .85rem; font-weight: 700; flex: none; }
.kal-abo-liste { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 6px; color: var(--grey); font-size: .92rem; }
.kal-abo-wege { display: grid; gap: 12px; }
.kal-abo-weg { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.kal-abo-weg h4 { margin: 0; }
.kal-abo-weg p { margin: 0 0 8px; flex: 1; }
.kal-abo-manuell { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.kal-abo-manuell summary { cursor: pointer; color: var(--navy-700); font-weight: 600; font-size: .9rem; }
.kal-abo-manuell[open] summary { margin-bottom: 10px; }
.kal-abo-details { display: grid; gap: 10px; margin-bottom: 12px; }
.kal-abo-details .radio-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.kal-abo-details .radio-item:has(input:checked) { border-color: var(--green); background: var(--green-50); }
.kal-abo-details .radio-item span { display: flex; flex-direction: column; gap: 2px; }
.kal-abo-details input { accent-color: var(--green); margin-top: 3px; }
.kal-abo-sicher { background: var(--warn-50); }
.kal-abo-sicher .btn-row { gap: 8px; }
@media (min-width: 700px) { .kal-abo-wege { grid-template-columns: 1fr 1fr; } }

/* =====================================================================
   Kontakt-Import
   ===================================================================== */
.imp-start .form-stack { margin-bottom: 10px; }
.imp-drop { display: block; position: relative; border: 2px dashed var(--grey-300); border-radius: var(--radius); padding: 26px 16px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.imp-drop:hover, .imp-drop:focus-within { border-color: var(--green); background: var(--green-50); }
.imp-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.imp-drop span { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--navy); pointer-events: none; }
.imp-drop svg { width: 28px; height: 28px; }
.imp-drop small { color: var(--grey); }
.imp-drop.has-datei span b { color: var(--green-700); }
.imp-wege { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 12px; }
.imp-wege > div { background: var(--bg); border-radius: var(--radius-sm); padding: 12px 14px; }
.imp-wege h4 { margin: 0 0 4px; font-size: .95rem; color: var(--navy); }
.imp-wege p { margin: 0; font-size: .86rem; color: var(--grey); line-height: 1.45; }
.imp-hilfe .TextGrey svg { width: 15px; height: 15px; vertical-align: -3px; }
.imp-form { display: flex; flex-direction: column; gap: 16px; }
.imp-form > .card { margin: 0; }
.imp-kopf { margin: 6px 0 12px; }
.imp-spalten { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.imp-spalte { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; min-width: 0; }
.imp-spalte.is-zugeordnet { border-color: var(--green); background: var(--green-50); }
.imp-spalte .label-input { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imp-spalte small { overflow-wrap: anywhere; }
.imp-einw { display: flex; gap: 10px; align-items: flex-start; margin-top: 6px; cursor: pointer; }
.imp-einw input { margin-top: 4px; accent-color: var(--green); width: 18px; height: 18px; flex: 0 0 auto; }
.imp-zahlen { display: flex; flex-wrap: wrap; gap: 6px; }
.imp-tabelle { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 760px; }
.imp-tabelle th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--grey); padding: 8px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.imp-tabelle td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.imp-tabelle td small { display: block; color: var(--grey); font-size: .78rem; }
.imp-tabelle td small.imp-hinweis { color: var(--warn); }
.imp-status { font-weight: 600; white-space: nowrap; }
.imp-neu .imp-status { color: var(--green-700); }
.imp-doppelt td, .imp-fehler td, .imp-limit td { color: var(--grey); }
.imp-fehler .imp-status, .imp-limit .imp-status { color: var(--danger); }
.imp-aktionen { justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
@media (max-width: 600px) {
	.imp-aktionen { flex-direction: column-reverse; align-items: stretch; }
	.imp-aktionen .btn { width: 100%; justify-content: center; }
	.imp-spalten { grid-template-columns: 1fr 1fr; }
	.imp-spalte { padding: 8px; }
	.imp-spalte select { font-size: .85rem; padding-right: 26px; }
}

/* Hinweis Zwei-Faktor-Anmeldung auf «Heute» */
.zf-hinweis { display: flex; gap: 14px; align-items: flex-start; border-left: 4px solid var(--green); }
.zf-hinweis-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--green-50); color: var(--green); }
.zf-hinweis-icon svg { width: 22px; height: 22px; }
.zf-hinweis p { margin: 4px 0 12px; }
.zf-hinweis .btn-row { gap: 8px; flex-wrap: wrap; }
.zf-hinweis form { margin: 0; }

/* =====================================================================
   Rundmail
   ===================================================================== */
.rm-seite { display: flex; flex-direction: column; gap: 16px; max-width: 860px; }
.rm-seite .card { margin: 0; }
.rm-seite .card-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.rm-filter { display: grid; gap: 10px 12px; grid-template-columns: 1fr 1fr; align-items: end; margin-bottom: 16px; }
.rm-filter .form-group { margin: 0; }
.rm-top { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; font-size: .92rem; }
.rm-wahl-kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); }
.rm-wahl-knoepfe { display: flex; gap: 14px; }
.rm-seite .btn-link { background: none; border: 0; padding: 2px 0; font: inherit; font-size: .88rem; color: var(--navy-700); font-weight: 600; cursor: pointer; }
.rm-suche { width: 100%; margin: 4px 0 8px; }
.rm-liste { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.rm-liste li + li { border-top: 1px solid var(--line); }
.rm-liste label { display: flex; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer; }
.rm-liste label:hover { background: var(--bg); }
.rm-liste input { accent-color: var(--green); width: 18px; height: 18px; flex: none; }
.rm-name { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.rm-name small { color: var(--grey); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-tags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.rm-hinweis { margin: 10px 0 0; }
.rm-erklaerung { display: flex; gap: 10px; align-items: flex-start; background: var(--green-50); border-radius: var(--radius-sm); padding: 12px 14px; margin: 0 0 14px; font-size: .92rem; }
.rm-erklaerung svg { width: 20px; height: 20px; flex: none; color: var(--green); margin-top: 1px; }
.rm-pakete { display: grid; gap: 10px; }
.rm-paket { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.rm-paket > span { display: flex; flex-direction: column; flex: 1; min-width: 160px; }
.rm-paket small { color: var(--grey); }
.rm-vermerk { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.rm-vermerk p { margin: 0 0 8px; }
@media (max-width: 640px) {
	.rm-filter { grid-template-columns: 1fr; }
	.rm-liste label { flex-wrap: wrap; }
	.rm-tags { width: 100%; justify-content: flex-start; padding-left: 30px; }
	.rm-paket .btn { flex: 1 1 100%; justify-content: center; }
}
.rm-senden { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.rm-senden p { margin: 0; }
.rm-senden .check-item { display: flex; gap: 8px; align-items: center; font-size: .92rem; }
.rm-alternativ { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.rm-alternativ summary { cursor: pointer; color: var(--navy-700); font-weight: 600; font-size: .9rem; }
.rm-alternativ[open] summary { margin-bottom: 10px; }
@media (max-width: 640px) { .rm-senden .btn { width: 100%; justify-content: center; } }

/* Rundmail: Assistent in Schritten */
.rm-stepper { display: flex; list-style: none; margin: 0; padding: 0; gap: 6px; counter-reset: none; }
.rm-stepper li { flex: 1; display: flex; align-items: center; }
.rm-stepper li + li::before { content: ""; flex: 0 0 18px; height: 2px; background: var(--line); margin-right: 6px; border-radius: 2px; }
.rm-stepper button { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px 6px 6px; font: inherit; font-size: .9rem; font-weight: 600; color: var(--grey); cursor: pointer; }
.rm-stepper button:disabled { cursor: default; opacity: .6; }
.rm-st-nr { flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--bg); color: var(--grey); font-size: .85rem; }
.rm-st-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-stepper button.aktiv { border-color: var(--navy); color: var(--navy); box-shadow: var(--shadow-sm); }
.rm-stepper button.aktiv .rm-st-nr { background: var(--navy); color: var(--white); }
.rm-stepper button.fertig { color: var(--green-700); }
.rm-stepper button.fertig .rm-st-nr { background: var(--green-100); color: var(--green-700); }
.rm-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); width: 100%; }
.rm-nav .btn svg { width: 18px; height: 18px; }
.rm-senden .rm-nav { margin-top: 6px; }
.rm-pruefen { display: grid; gap: 8px; margin: 0 0 14px; }
.rm-pruefen > div { display: flex; gap: 12px; align-items: baseline; }
.rm-pruefen dt { flex: 0 0 92px; color: var(--grey); font-size: .85rem; }
.rm-pruefen dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.rm-pruefen .btn-link { margin-left: 6px; }
.rm-vorschau { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; }
.rm-vorschau-kopf { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 10px 14px; background: var(--bg); font-size: .82rem; color: var(--grey); border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.rm-vorschau-text { padding: 14px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 320px; overflow-y: auto; font-size: .94rem; }
.rm-vorschau-fuss { padding: 10px 14px; border-top: 1px dashed var(--line); font-size: .8rem; color: var(--grey); }
@media (max-width: 560px) {
	.rm-stepper li + li::before { flex-basis: 8px; margin-right: 4px; }
	.rm-stepper button { justify-content: center; padding: 6px; }
	.rm-stepper button:not(.aktiv) .rm-st-txt { display: none; }
	.rm-stepper li { flex: 0 1 auto; }
	.rm-stepper li:has(.aktiv) { flex: 1; }
	.rm-nav .btn { padding-left: 12px; padding-right: 12px; min-width: 0; white-space: normal; text-align: left; }
	.rm-nav .btn-secondary { flex: 0 0 auto; width: auto; }
	.rm-nav .btn-primary { flex: 1 1 auto; width: auto; justify-content: center; text-align: center; }
	.rm-zurueck-txt { display: none; }
}

/* Rundmail: Ausgewählte als Chips, Suche zum Hinzufügen */
.rm-chips { display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; max-height: 168px; overflow-y: auto; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); margin-bottom: 14px; }
.rm-chips p { margin: 0; }
.rm-chip { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 3px 4px 3px 12px; font-size: .86rem; font-weight: 600; color: var(--navy); }
.rm-chip.ohne-einw { border-color: var(--warn); background: var(--warn-50); }
.rm-chip button { border: 0; background: none; width: 24px; height: 24px; border-radius: 50%; font-size: 1.05rem; line-height: 1; color: var(--grey); cursor: pointer; flex: none; }
.rm-chip button:hover { background: var(--danger-50); color: var(--danger); }
.rm-suche-box .label-input { display: block; margin-bottom: 6px; }
.rm-treffer-kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .86rem; color: var(--grey); margin: 0 0 6px; }
.rm-liste { max-height: 320px; }
.rm-liste-knopf { margin-top: 2px; }
.rm-mehr { grid-column: 1 / -1; }
.rm-mehr summary { cursor: pointer; color: var(--navy-700); font-weight: 600; font-size: .9rem; padding: 2px 0; }
.rm-mehr-felder { display: grid; gap: 10px 12px; grid-template-columns: 1fr 1fr; margin-top: 10px; }
.rm-mehr-felder .form-group { margin: 0; }
@media (max-width: 560px) { .rm-mehr-felder { grid-template-columns: 1fr; } }
.rm-filter > .form-group { grid-column: 1 / -1; }

/* Events: Anmeldung über Link (intern) */
.badge-green { background: var(--green-100); color: var(--green-700); }
.ev-anm-feld { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px 16px; margin: 0; }
.ev-anm-feld > p { margin: 0 0 4px; }
.ev-anm-feld #ev-anm-felder { margin-top: 10px; }
.ev-plaetze-feld { max-width: 160px; }
.ev-sichtbar { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; background: var(--navy-50); border-radius: var(--radius-sm); font-size: .86rem; color: var(--text); }
.ev-sichtbar svg { width: 18px; height: 18px; flex: none; color: var(--navy-700); margin-top: 1px; }
.ev-link-karte .section-head h3, .ev-link-aus h3 { display: flex; align-items: center; gap: 8px; }
.ev-link-karte .section-head h3 svg, .ev-link-aus h3 svg { width: 20px; height: 20px; color: var(--green); }
.ev-belegt { margin: 0 0 8px; }
.ev-balken { height: 8px; background: var(--bg); border-radius: 999px; overflow: hidden; margin-bottom: 14px; }
.ev-balken span { display: block; height: 100%; background: var(--green); border-radius: 999px; }
.ev-link-zeile { display: flex; gap: 8px; margin-bottom: 10px; }
.ev-link-zeile input { flex: 1; min-width: 0; font-size: .88rem; background: var(--bg); }
.ev-link-zeile .btn { flex: none; }
.ev-teilen { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ev-teilen .btn svg, .ev-link-zeile .btn svg { width: 16px; height: 16px; }
.ev-qr summary { cursor: pointer; color: var(--navy-700); font-weight: 600; font-size: .9rem; }
.ev-qr-bild { padding: 14px 0 4px; }
.ev-qr-bild svg { width: 200px; height: 200px; background: #fff; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.ev-link-aktionen { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.ev-link-aktionen .btn-link { background: none; border: 0; padding: 4px 0; font: inherit; font-size: .86rem; color: var(--grey); cursor: pointer; }
.ev-link-aktionen .btn-link:hover { color: var(--navy); }
.ev-link-aus { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ev-link-aus h3 { margin: 0 0 2px; }
.ev-link-aus p { margin: 0; }
.ev-anm-liste { list-style: none; margin: 0; padding: 0; }
.ev-anm { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.ev-anm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ev-anm-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ev-anm-main small { color: var(--grey); overflow-wrap: anywhere; }
.ev-anm-nachricht { margin: 6px 0 0; padding: 8px 10px; background: var(--bg); border-radius: var(--radius-sm); font-size: .88rem; }
.ev-anm-aktionen { display: flex; align-items: center; gap: 4px; flex: none; }
.ev-anm.is-gast .ev-anm-name b { color: var(--grey); }
.ev-flag { color: var(--green-700); font-weight: 700; }

/* Events: öffentliche Anmeldeseite */
.ev-info { margin-bottom: 14px; }
.ev-titel { margin: 0; font-size: 1.45rem; color: var(--navy); line-height: 1.25; }
.ev-beschreibung { margin: 4px 0 0; white-space: normal; line-height: 1.55; }
.ev-form-titel { margin: 0 0 14px; font-size: 1.15rem; color: var(--navy); }
.ev-form .form-group { margin-bottom: 12px; }

/* Events: Anmeldelink einklappbar */
.ev-link-karte { padding-top: 0; padding-bottom: 0; }
.ev-link-kopf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 16px 0; cursor: pointer; list-style: none; }
.ev-link-kopf::-webkit-details-marker { display: none; }
.ev-link-titel { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-size: 1.02rem; margin-right: auto; }
.ev-link-titel svg { width: 20px; height: 20px; color: var(--green); }
.ev-link-kurz { color: var(--grey); font-size: .88rem; }
.ev-link-pfeil { width: 9px; height: 9px; border-right: 2px solid var(--grey); border-bottom: 2px solid var(--grey); transform: rotate(45deg); margin: -4px 4px 0 4px; transition: transform .15s; flex: none; }
.ev-link-karte[open] .ev-link-pfeil { transform: rotate(-135deg); margin-top: 4px; }
.ev-link-inhalt { padding-bottom: 16px; }

/* Events: Eventbild */
.ev-bild-feld { align-items: stretch; margin-bottom: 0; }
.ev-bild-pick { display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ev-bild-vorschau { display: block; aspect-ratio: 16 / 9; max-height: 260px; width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--bg); border: 2px dashed var(--grey-300); }
.ev-bild-vorschau.has-photo { border: 0; }
.ev-bild-vorschau img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-bild-pick:hover .ev-bild-vorschau, .ev-bild-pick:focus-within .ev-bild-vorschau { border-color: var(--green); }
.ev-bild-leer { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--grey); text-align: center; padding: 12px; }
.ev-bild-leer svg { width: 30px; height: 30px; color: var(--navy-700); margin-bottom: 4px; }
.ev-bild-leer b { color: var(--navy); }
.ev-bild-leer small { font-size: .8rem; }
.ev-bild-feld .check-inline { align-self: flex-start; }
.card.hero.ev-hero-bild { background-color: var(--navy); background-size: cover; background-position: center; background-repeat: no-repeat; min-height: 230px; justify-content: flex-end; }
@media (min-width: 1024px) {
	/* Computer: Text links, Knöpfe rechts – beides am unteren Bildrand */
	.card.hero.ev-hero-bild { justify-content: space-between; align-items: flex-end; }
}
.card.hero.ev-hero-bild h2, .card.hero.ev-hero-bild p { text-shadow: 0 1px 3px rgba(0,0,0,.35); }
/* öffentliche Anmeldeseite: Titelbild als Banner über die ganze Breite (max. 300 px),
   Profilbild der Beratung und Karten liegen überlappend darauf */
.ev-titelbild { position: relative; width: 100%; height: 300px; overflow: hidden; background: var(--navy); }
.ev-titelbild img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.ev-titelbild::after { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(180deg, rgba(8,32,74,0) 0%, rgba(8,32,74,.95) 100%); pointer-events: none; }
.buch-seite.ev-mit-titelbild { position: relative; margin-top: -150px; padding-top: 0; }
.buch-hero.ev-hero-mit-bild { margin-top: 0; }
.buch-hero.ev-hero-mit-bild .buch-foto { box-shadow: 0 0 0 4px #fff, 0 8px 24px rgba(0,0,0,.3); }
.buch-hero.ev-hero-mit-bild h1, .buch-hero.ev-hero-mit-bild h1 span { text-shadow: 0 1px 6px rgba(0,0,0,.45); }
@media (max-width: 639px) {
	.ev-titelbild { height: 220px; }
	.buch-seite.ev-mit-titelbild { margin-top: -110px; }
	.buch-hero.ev-hero-mit-bild .buch-foto { width: 104px; height: 104px; }
}

/* Portal-Tour */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tour { position: fixed; inset: 0; z-index: 9000; }
.tour-spot { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(7, 20, 45, .62), 0 0 0 3px var(--green); transition: left .25s ease, top .25s ease, width .25s ease, height .25s ease; pointer-events: none; }
.tour.tour-mitte .tour-spot { left: 50% !important; top: 50% !important; width: 0 !important; height: 0 !important; box-shadow: 0 0 0 9999px rgba(7, 20, 45, .62); }
.tour-karte { position: fixed; width: min(360px, calc(100vw - 24px)); background: var(--white); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 20px 20px 16px; transition: left .25s ease, top .25s ease; }
.tour.tour-mitte .tour-karte { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); width: min(420px, calc(100vw - 24px)); padding: 26px 24px 18px; }
.tour-titel { margin: 0 28px 8px 0; font-size: 1.12rem; color: var(--navy); line-height: 1.3; }
.tour.tour-mitte .tour-titel { font-size: 1.35rem; }
.tour-text { margin: 0 0 16px; color: var(--text); line-height: 1.5; font-size: .95rem; }
.tour-fuss { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tour-punkte { color: var(--grey); font-size: .82rem; font-weight: 600; }
.tour-knoepfe { display: flex; gap: 8px; }
.tour-zu { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; font-size: 1.4rem; line-height: 1; color: var(--grey); cursor: pointer; }
.tour-zu:hover { background: var(--bg); color: var(--navy); }
body.tour-aktiv { overflow: hidden; }

/* Checkliste «Erste Schritte» */
.es-karte { border: 1px solid var(--green-100); }
.es-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.es-kopf h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 2px; }
.es-kopf h3 svg { width: 20px; height: 20px; color: var(--green); }
.es-kopf p { margin: 0; }
.es-zahl { font-weight: 800; font-size: 1.3rem; color: var(--green-700); }
.es-balken { height: 8px; background: var(--bg); border-radius: 999px; overflow: hidden; margin: 12px 0 6px; }
.es-balken span { display: block; height: 100%; background: var(--green); border-radius: 999px; transition: width .4s ease; }
.es-liste { list-style: none; margin: 0; padding: 0; }
.es-schritt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.es-schritt:first-child { border-top: 0; }
.es-nr { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--grey); font-weight: 700; font-size: .85rem; }
.es-nr svg { width: 16px; height: 16px; }
.es-schritt.is-aktuell .es-nr { background: var(--navy); color: #fff; }
.es-schritt.is-erledigt .es-nr { background: var(--green-100); color: var(--green-700); }
.es-schritt.is-erledigt b { color: var(--grey); font-weight: 600; text-decoration: line-through; text-decoration-color: var(--grey-300); }
.es-inhalt { flex: 1; min-width: 0; padding-top: 3px; }
.es-inhalt p { margin: 3px 0 8px; color: var(--grey); font-size: .9rem; }
.es-links { display: flex; flex-wrap: wrap; gap: 8px; }
.es-fuss { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); }
.es-fuss .btn-link { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px 0; font: inherit; font-size: .86rem; color: var(--navy-700); font-weight: 600; cursor: pointer; text-decoration: none; }
.es-fuss form .btn-link { color: var(--grey); font-weight: 500; }
.es-fuss .btn-link svg { width: 16px; height: 16px; }
