:root{
    --bg:#f6f7fb;
    --panel:#ffffff;
    --text:#111827;
    --muted:#6b7280;
    --border:rgba(17,24,39,.12);
    --shadow: 0 18px 45px rgba(17,24,39,.10);
    --accent:#ffb000;
    --accent2:#ff5a1f;
    --radius:18px;
}
html, body{ height:100%; margin:0; background:var(--bg); color:var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}
.kz-shell{ min-height:100vh; height:100vh; display:grid; grid-template-columns: 3fr 1fr; overflow:hidden; }
.kz-mapWrap{ background:#eef2ff; position:relative; }
#map{ height:100%; width:100%; }
.kz-mapVignette{
    pointer-events:none; position:absolute; inset:0; z-index:300;
    background:
            radial-gradient(1200px 600px at 10% 10%, rgba(255,176,0,.10), transparent 55%),
            radial-gradient(900px 600px at 90% 20%, rgba(255,90,31,.08), transparent 55%),
            radial-gradient(1200px 800px at 50% 90%, rgba(17,24,39,.06), transparent 55%);
}

.kz-side{
    background:
            radial-gradient(900px 500px at 0% 0%, rgba(255,176,0,.20), transparent 60%),
            radial-gradient(700px 400px at 100% 20%, rgba(255,90,31,.18), transparent 60%),
            var(--panel);
    border-left:1px solid var(--border);
    padding:18px 18px 34px;
    display:flex;
    flex-direction:column;
    gap:14px;
    overflow-y:auto;
    overflow-x:visible;
}
.kz-card{
    border-radius:var(--radius);
    background:rgba(255,255,255,.92);
    border:1px solid var(--border);
    padding:14px;
    box-shadow: var(--shadow);
}
.kz-card h2{ font-size:16px; margin:0 0 6px 0; font-weight:1000; }
.kz-card p{ margin:0; color:var(--muted); font-size:13px; line-height:1.4; }

.kz-cardActions{ display:flex; gap:10px; margin-top:10px; flex-wrap:wrap; }
.kz-btn{
    border-radius:14px;
    padding:12px 14px;
    font-weight:1000;
    border:1px solid rgba(17,24,39,.14);
    background:#fff;
    cursor:pointer;
    transition: transform .05s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
    box-shadow: 0 10px 25px rgba(17,24,39,.08);
    white-space:nowrap;
}
.kz-btn:hover{
    box-shadow: 0 14px 30px rgba(17,24,39,.10);
    border-color: rgba(255,176,0,.45);
    background:#fff7e6;
}
.kz-btn:active{ transform: translateY(1px); }
.kz-btnPrimary{
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border-color: transparent;
    color:#1b1200;
}
.kz-btnDisabled{ opacity:.55; cursor:not-allowed; box-shadow:none; }

.kz-kpiGrid{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; margin-top:10px; }
.kz-kpi{
    border-radius: 16px;
    border:1px solid rgba(17,24,39,.10);
    background: rgba(255,255,255,.86);
    padding:12px;
}
.kz-kpi .label{ font-size:12px; color:var(--muted); font-weight:900; }
.kz-kpi .value{ font-size:18px; font-weight:1100; margin-top:4px; }

.kz-divider{ height:1px; background:rgba(17,24,39,.10); margin:12px 0; }

.kz-mini{
    display:flex; flex-direction:column; gap:8px; margin-top:10px;
    font-size:13px; color:var(--muted);
}
.kz-row{ display:flex; justify-content:space-between; gap:10px; }
.kz-row b{ color:var(--text); font-weight:1000; }

.kz-note{
    border-radius: 16px;
    border: 1px solid rgba(255,90,31,.30);
    background: rgba(255,90,31,.08);
    padding: 12px;
    margin-top: 10px;
    display:none;
}
.kz-note.is-show{ display:block; }
.kz-note .t{ font-weight:1100; margin:0 0 6px 0; }
.kz-note .d{ margin:0; color: rgba(17,24,39,.85); font-size: 13px; line-height: 1.45; }

.kz-allocWrap{ display:flex; flex-direction:column; gap:10px; margin-top:10px; }
.kz-allocItem{
    border-radius: 16px;
    border: 1px solid rgba(17,24,39,.10);
    background: rgba(255,255,255,.86);
    padding: 12px;
}
.kz-allocTop{
    display:flex; justify-content:space-between; align-items:flex-start; gap:10px;
    margin-bottom: 8px;
}
.kz-allocName{
    font-weight:1100;
    font-size: 13px;
    line-height: 1.2;
    max-width: 75%;
    overflow:hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.kz-allocPct{
    font-weight:1100;
    font-size: 13px;
    color: rgba(17,24,39,.85);
    white-space: nowrap;
}
.kz-allocRange{ width:100%; accent-color: var(--accent2); }
.kz-allocRange.is-disabled{ opacity:.55; pointer-events:none; }
.kz-allocMeta{
    margin-top: 8px;
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:8px;
    font-size: 12px;
    color: var(--muted);
}
.kz-pill{
    display:inline-flex; align-items:center; justify-content:center;
    border-radius: 999px;
    padding: 6px 10px;
    border: 1px solid rgba(17,24,39,.10);
    background: rgba(17,24,39,.03);
    font-weight: 1000;
    color: rgba(17,24,39,.85);
}

/* Modal */
.kz-overlay{
    position:fixed; inset:0; z-index:9999;
    background: rgba(17,24,39,.35);
    backdrop-filter: blur(8px);
    display:flex; align-items:center; justify-content:center;
    padding:18px;
}
.kz-modal{
    width:min(820px, 92vw);
    border-radius:22px;
    background: rgba(255,255,255,.92);
    border:1px solid var(--border);
    box-shadow: 0 30px 90px rgba(17,24,39,.25);
    overflow:hidden;
}
.kz-modalHeader{
    padding:16px 18px;
    display:flex; align-items:center; justify-content:space-between; gap:12px;
    border-bottom:1px solid var(--border);
    background:
            radial-gradient(800px 400px at 10% 20%, rgba(255,176,0,.18), transparent 60%),
            radial-gradient(700px 400px at 95% 25%, rgba(255,90,31,.12), transparent 60%),
            rgba(255,255,255,.96);
}
.kz-brand{ display:flex; align-items:center; gap:10px; min-width:0; }
.kz-dot{
    width:12px;height:12px;border-radius:50%;
    background:linear-gradient(135deg,var(--accent),var(--accent2));
    box-shadow:0 0 0 6px rgba(255,176,0,.16);
    flex:0 0 auto;
}
.kz-title{ font-weight:1000; letter-spacing:.2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.kz-sub{ font-size:12px; color:var(--muted); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.kz-modalBody{ padding:18px; }
.kz-h{ margin:0 0 6px 0; font-size:18px; font-weight:1000; }
.kz-p{ margin:0 0 14px 0; color:var(--muted); font-size:13px; line-height:1.45; }
.kz-label{ display:block; font-size:12px; color:var(--muted); margin-bottom:6px; font-weight:900; }

/* Step 1 Tabs */
.kz-tabs{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:10px; }
.kz-tab{
    border-radius:999px;
    padding:10px 12px;
    border:1px solid rgba(17,24,39,.14);
    background: rgba(255,255,255,.92);
    font-weight:1000;
    cursor:pointer;
    user-select:none;
}
.kz-tab:hover{ background:#fff7e6; border-color: rgba(255,176,0,.45); }
.kz-tab.is-active{
    background: rgba(255,176,0,.20);
    border-color: rgba(255,176,0,.70);
    box-shadow: 0 10px 25px rgba(255,176,0,.15);
}

.kz-inputWrap{ position:relative; }
.kz-input{
    width:100%;
    padding:14px 14px;
    border-radius:14px;
    border:1px solid rgba(17,24,39,.16);
    background:#fff;
    font-size:16px;
    outline:none;
    transition: box-shadow .15s ease, border-color .15s ease;
}
.kz-input:focus{
    border-color: rgba(255,176,0,.65);
    box-shadow: 0 0 0 6px rgba(255,176,0,.18);
}
.kz-suggest{
    position:absolute; top: calc(100% + 8px); left:0; right:0;
    border-radius:14px; background:#fff;
    border:1px solid rgba(17,24,39,.14);
    box-shadow: 0 18px 40px rgba(17,24,39,.14);
    overflow:hidden; display:none; z-index: 10000;
    max-height: 340px; overflow:auto;
}
.kz-suggest.is-open{ display:block; }
.kz-suggestItem{
    padding:12px 12px; cursor:pointer;
    display:flex; flex-direction:column; gap:2px;
    border-bottom:1px solid rgba(17,24,39,.08);
}
.kz-suggestItem:last-child{ border-bottom:0; }
.kz-suggestItem:hover, .kz-suggestItem.is-active{ background: rgba(255,176,0,.16); }
.kz-suggestMain{ font-weight:1000; color: var(--text); font-size:14px; }
.kz-suggestSub{ color: var(--muted); font-size:12px; }

.kz-selected{ display:flex; flex-wrap: wrap; gap:10px; margin-top:12px; }
.kz-chip{
    display:inline-flex; align-items:center; gap:10px;
    padding:10px 12px; border-radius:999px;
    background: rgba(17,24,39,.04);
    border:1px solid rgba(17,24,39,.12);
    color: var(--text);
    font-weight:900; font-size:13px;
}
.kz-chip button{ border:0; background: transparent; cursor:pointer; color: var(--muted); font-weight:1000; line-height:1; padding:0; }
.kz-chip button:hover{ color: #111827; }

.kz-step{ display:none; }
.kz-step.is-active{ display:block; }

.kz-choices{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 10px; }
.kz-choice{
    border-radius: 999px;
    padding: 10px 12px;
    border: 1px solid rgba(17,24,39,.14);
    background: rgba(255,255,255,.92);
    font-weight: 1000;
    cursor:pointer;
    transition: background .15s ease, border-color .15s ease, transform .05s ease;
    user-select:none;
}
.kz-choice:hover{ background:#fff7e6; border-color: rgba(255,176,0,.45); }
.kz-choice.is-selected{
    background: rgba(255,176,0,.20);
    border-color: rgba(255,176,0,.70);
    box-shadow: 0 10px 25px rgba(255,176,0,.15);
}

.kz-budgetRow{
    display:grid;
    grid-template-columns: 1fr 180px;
    gap:12px;
    align-items:center;
    margin-top: 10px;
}
.kz-range{ width:100%; accent-color: var(--accent2); }
.kz-budgetBox{
    border-radius: 14px;
    border: 1px solid rgba(17,24,39,.16);
    background: #fff;
    padding: 12px 12px;
    box-shadow: 0 10px 25px rgba(17,24,39,.06);
}
.kz-budgetBox input{
    width:100%;
    border:0;
    outline:none;
    font-size: 16px;
    font-weight: 1000;
}

.kz-grpGrid{ display:grid; grid-template-columns: 1fr; gap:10px; margin-top: 10px; }
.kz-grpCard{
    border-radius: 16px;
    border: 1px solid rgba(17,24,39,.14);
    background: rgba(255,255,255,.92);
    padding: 12px 12px;
    cursor:pointer;
    transition: background .15s ease, border-color .15s ease, transform .05s ease;
}
.kz-grpCard:hover{ background:#fff7e6; border-color: rgba(255,176,0,.45); }
.kz-grpCard.is-selected{
    background: rgba(255,176,0,.20);
    border-color: rgba(255,176,0,.70);
    box-shadow: 0 10px 25px rgba(255,176,0,.15);
}
.kz-grpTop{ display:flex; justify-content:space-between; align-items:center; gap:10px; }
.kz-grpTitle{ font-weight: 1000; }
.kz-grpTag{
    font-size: 12px; color: var(--muted); font-weight: 1000;
    padding: 4px 8px; border-radius: 999px;
    border: 1px solid rgba(17,24,39,.12);
    background: rgba(17,24,39,.03);
    white-space:nowrap;
}
.kz-grpDesc{ margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.45; }

.kz-actions{
    display:flex; gap:12px;
    justify-content:space-between; align-items:center;
    margin-top:14px;
}
.kz-foot{
    padding:12px 18px;
    border-top:1px solid var(--border);
    color:var(--muted);
    font-size:12px;
    background:rgba(255,255,255,.96);
}

/* Bulk import */
.kz-bulkBox{
    width:100%;
    min-height: 150px;
    resize: vertical;
    padding: 14px 14px;
    border-radius: 14px;
    border: 1px solid rgba(17,24,39,.16);
    outline:none;
    font-size: 14px;
    background:#fff;
}
.kz-bulkMeta{
    margin-top: 10px;
    display:flex;
    justify-content:space-between;
    gap:10px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
    flex-wrap:wrap;
}
.kz-bulkProgress{
    margin-top: 10px;
    color: rgba(17,24,39,.85);
    font-size: 13px;
    font-weight: 1000;
}

.leaflet-control-zoom a{
    border-radius: 12px !important;
    border: 1px solid rgba(17,24,39,.14) !important;
    box-shadow: 0 10px 25px rgba(17,24,39,.10) !important;
}
.leaflet-control-zoom a:hover{
    background: #fff7e6 !important;
    border-color: rgba(255,176,0,.45) !important;
}

/* Pizza slice marker */
.kz-pizzaMarker{
    width: 22px; height: 22px; position: relative;
    transform: rotate(18deg);
    filter: drop-shadow(0 10px 10px rgba(17,24,39,.18));
}
.kz-pizzaMarker .slice{
    width: 0; height: 0;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-top: 20px solid rgba(255,176,0,.95);
    position: absolute; top: 1px; left: 0;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}
.kz-pizzaMarker .crust{
    position:absolute; top:-1px; left:2px;
    width: 18px; height: 6px;
    border-radius: 999px;
    background: rgba(255,90,31,.95);
    box-shadow: 0 0 0 2px rgba(255,90,31,.15);
}
.kz-pizzaMarker .pep{
    position:absolute;
    width: 5px; height: 5px; border-radius: 50%;
    background: rgba(255,90,31,.95);
    top: 9px; left: 8px;
    box-shadow: 6px 3px 0 rgba(255,90,31,.95),
    -5px 5px 0 rgba(255,90,31,.95);
    opacity: .9;
}

/* Loading Screen */
.kz-loading{
    position:fixed;
    inset:0;
    z-index:2147483647 !important;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:18px;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity .22s ease, visibility .22s ease;
}
.kz-loading.is-show{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
}
body.kz-loadingOpen{ overflow:hidden; }
.kz-loadingBackdrop{
    position:absolute; inset:0;
    background:
            radial-gradient(circle at top, rgba(255,176,0,.18), transparent 34%),
            radial-gradient(circle at bottom left, rgba(255,90,31,.16), transparent 32%),
            linear-gradient(135deg, rgba(17,24,39,.78), rgba(17,24,39,.58));
    backdrop-filter: blur(14px);
}
.kz-loadingCard{
    position:relative;
    overflow:hidden;
    width:min(620px, 94vw);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(255,249,243,.95));
    border: 1px solid rgba(255,255,255,.7);
    box-shadow: 0 36px 110px rgba(17,24,39,.34);
    padding: 24px;
}
.kz-loadingGlow{
    position:absolute;
    width:260px; height:260px;
    right:-90px; top:-100px;
    background: radial-gradient(circle, rgba(255,176,0,.26), rgba(255,90,31,0));
    pointer-events:none;
}
.kz-loadingBadge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 12px;
    border-radius:999px;
    font-size:12px;
    font-weight:800;
    letter-spacing:.02em;
    color:#8a3b12;
    background: rgba(255,176,0,.18);
    border:1px solid rgba(255,176,0,.28);
    margin-bottom:14px;
}
.kz-loadingTop{
    display:flex; align-items:flex-start; gap:16px;
}
.kz-spinnerWrap{
    position:relative;
    width:72px; height:72px;
    flex:0 0 auto;
}
.kz-spinner{
    position:absolute; inset:0;
    border-radius: 999px;
    border: 4px solid rgba(17,24,39,.09);
    border-top-color: rgba(255,90,31,.95);
    border-right-color: rgba(255,176,0,.95);
    animation: spin 1s linear infinite;
}
.kz-spinnerCore{
    position:absolute; inset:10px;
    display:flex; align-items:center; justify-content:center;
    border-radius:999px;
    background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,247,237,.96));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 10px 22px rgba(255,90,31,.16);
    font-size:28px;
    animation: kzPulse 1.8s ease-in-out infinite;
}
@keyframes spin{ to { transform: rotate(360deg); } }
@keyframes kzPulse{ 0%,100%{ transform: scale(1);} 50%{ transform: scale(1.06);} }
.kz-loadingEyebrow{
    margin:2px 0 6px 0;
    font-size:12px;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
    color: rgba(138,59,18,.78);
}
.kz-loadingTitle{ font-weight:1100; font-size: 28px; line-height:1.12; margin:0; max-width: 460px; }
.kz-loadingSub{ margin:10px 0 0 0; color: #4b5563; font-size: 15px; line-height: 1.6; max-width: 470px; }
.kz-loadingBar{
    position:relative;
    height:12px;
    border-radius:999px;
    overflow:hidden;
    background: rgba(17,24,39,.08);
    margin-top:18px;
}
.kz-loadingBarFill{
    position:absolute; inset:0;
    width:42%;
    border-radius:999px;
    background: linear-gradient(90deg, rgba(255,90,31,.95), rgba(255,176,0,.95), rgba(255,90,31,.95));
    background-size: 200% 100%;
    animation: kzBarFlow 1.6s linear infinite;
}
@keyframes kzBarFlow{
    0%{ transform: translateX(-40%); background-position:0% 50%; }
    100%{ transform: translateX(170%); background-position:100% 50%; }
}
.kz-loadingPulse{
    display:flex; align-items:center; gap:10px;
    margin-top:14px;
    padding:12px 14px;
    border-radius:18px;
    background: rgba(255,255,255,.7);
    border:1px solid rgba(17,24,39,.08);
}
.kz-loadingPulseDot{
    width:12px; height:12px; border-radius:999px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    box-shadow: 0 0 0 0 rgba(255,176,0,.35);
    animation: kzDotPulse 1.4s ease-out infinite;
    flex:0 0 auto;
}
@keyframes kzDotPulse{
    0%{ box-shadow: 0 0 0 0 rgba(255,176,0,.35);} 100%{ box-shadow: 0 0 0 12px rgba(255,176,0,0);} }
.kz-loadingPulseText{
    color:#374151;
    font-size:14px;
    line-height:1.5;
    font-weight:600;
}
.kz-loadingSteps{
    margin-top: 16px;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    font-size: 13px;
    color: rgba(17,24,39,.82);
}
.kz-loadingStep{
    display:flex; align-items:center; gap:10px;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(17,24,39,.08);
    background: rgba(255,255,255,.74);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.kz-dotSm{
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(17,24,39,.24);
    flex:0 0 auto;
}
.kz-loadingStep.is-on{
    transform: translateY(-1px);
    border-color: rgba(255,176,0,.32);
    box-shadow: 0 10px 22px rgba(255,176,0,.14);
}
.kz-loadingStep.is-on .kz-dotSm{
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    box-shadow: 0 0 0 6px rgba(255,176,0,.16);
}
@media (max-width: 640px){
    .kz-loadingCard{ padding:18px; border-radius:24px; }
    .kz-loadingTop{ flex-direction:column; align-items:flex-start; }
    .kz-loadingTitle{ font-size:22px; max-width:none; }
    .kz-loadingSub{ font-size:14px; max-width:none; }
    .kz-loadingSteps{ grid-template-columns:1fr; }
}
@media (max-width: 992px){
    .kz-shell{ grid-template-columns: 1fr; grid-template-rows: 60vh auto; height:auto; min-height:100vh; }
    .kz-side{ border-left:0; border-top:1px solid var(--border); }
}
#auth-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(240, 242, 245, 0.95), rgba(220, 224, 230, 0.95));
    backdrop-filter: blur(10px); /* Schicker Blur-Effekt */
    z-index: 99999; /* Immer ganz oben */
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.auth-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-logo {
    font-size: 24px;
    font-weight: bold;
    color: #E63946; /* Kartonizza Rot */
    margin-bottom: 20px;
}

.auth-card h2 { margin: 0 0 10px; color: #333; font-size: 22px; }
.auth-card p { margin: 0 0 25px; color: #666; font-size: 14px; line-height: 1.5; }

.auth-card input {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border: 2px solid #e1e4e8;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.auth-card input:focus {
    border-color: #E63946;
    outline: none;
}

.auth-card input#user-code {
    text-align: center;
    letter-spacing: 5px;
    font-size: 24px;
    font-weight: bold;
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: #E63946;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.auth-btn:hover { background: #d62828; }
.auth-btn:disabled { background: #fcb3b8; cursor: not-allowed; }

.auth-error { color: #E63946; font-size: 13px; margin-top: -10px; margin-bottom: 15px; min-height: 15px; }

.text-btn {
    background: none; border: none; color: #007bff; font-size: 14px; cursor: pointer;
    text-decoration: underline; margin-top: 15px;
}
#timer-text { font-weight: bold; color: #E63946; margin-top: 15px; }

.kz-authGate{
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 18, 25, 0.72);
    backdrop-filter: blur(10px);
}

.kz-authCard{
    width: 100%;
    max-width: 560px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.28);
    padding: 28px;
}

.kz-authBadge{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff3e8;
    color: #b95a00;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 14px;
}

.kz-authTitle{
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.1;
}

.kz-authText{
    margin: 0 0 18px;
    color: #5a6472;
    line-height: 1.5;
}

.kz-authField{
    margin-bottom: 14px;
}

.kz-authInfo{
    min-height: 24px;
    margin-top: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #2f6f3e;
}

.kz-authInfo.is-error{
    color: #b42318;
}

.kz-authInfo.is-success{
    color: #027a48;
}

.kz-authActions{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.kz-requestCard{position:relative;overflow:visible;border:1px solid rgba(255,135,0,.18);background:linear-gradient(135deg,rgba(255,140,0,.12),rgba(255,255,255,.96) 42%,rgba(255,176,0,.14));}
.kz-requestGlow{position:absolute;inset:-30% auto auto -10%;width:240px;height:240px;border-radius:999px;background:radial-gradient(circle,rgba(255,165,0,.22),rgba(255,165,0,0));pointer-events:none;filter:blur(6px)}
.kz-requestInner{position:relative;display:flex;gap:18px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.kz-requestEyebrow{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#d96a00;margin-bottom:6px}
.kz-requestMeta{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.7);border:1px solid rgba(255,140,0,.14);font-weight:700;color:#9f4f00;margin-top:10px}
.kz-requestActions{display:flex;align-items:center}
.kz-btnPulse{background:linear-gradient(180deg,#ff8b1a,#ff6e00)!important;color:#fff!important;border-color:#ff7a00!important;box-shadow:0 14px 30px rgba(255,111,0,.22)}
.kz-btnPulse:hover{transform:translateY(-1px)}
.kz-btnPulse{animation:kzPulse 2.2s ease-in-out infinite}
@keyframes kzPulse{0%,100%{box-shadow:0 12px 24px rgba(255,111,0,.18)}50%{box-shadow:0 18px 36px rgba(255,111,0,.32)}}
.kz-cardActions--tight{display:flex;align-items:center;justify-content:space-between;gap:12px}
.kz-savedPlansList{display:grid;gap:10px}
.kz-savedPlanItem{border:1px solid rgba(20,20,20,.08);border-radius:16px;padding:12px 14px;background:#fff}
.kz-savedPlanTop{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;margin-bottom:8px}
.kz-savedPlanTitle{font-weight:800;color:#1e1e1e}
.kz-savedPlanMeta{font-size:12px;color:#6b6b6b}
.kz-savedPlanTags{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.kz-savedTag{display:inline-flex;padding:5px 10px;border-radius:999px;background:#fff4e8;color:#b35a00;font-size:12px;font-weight:700}
.kz-emptyState{padding:14px;border:1px dashed rgba(20,20,20,.12);border-radius:14px;background:#fafafa;color:#666}
@media (max-width: 900px){.kz-requestInner{align-items:flex-start}.kz-requestActions{width:100%}.kz-requestActions .kz-btn{width:100%}}
/* Verifizierungs-Gate muss immer ganz oben liegen */
#kzAuthGate {
    position: fixed !important;
    inset: 0 !important;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999 !important;
    background: rgba(15, 23, 42, 0.72) !important;
}

/* Wenn geöffnet */
body.kz-gateOpen #kzAuthGate {
    display: flex !important;
}

/* Dialog selbst */
#kzAuthGate .kz-auth-card,
#kzAuthGate .kz-auth-dialog,
#kzAuthGate .kz-auth-modal {
    position: relative !important;
    z-index: 1000000 !important;
}

/* Gate bleibt über allen anderen Ebenen, ohne den Planer kaputt zu machen */
.leaflet-pane,
.leaflet-control-container,
.gm-style,
.gm-style * {
    z-index: auto;
}

#kzOverlay { z-index: 9999; }
#kzLoading { z-index: 10050; }

/* Während Gate offen ist, keine anderen Overlays anzeigen */
body.kz-gateLocked #kzOverlay,
body.kz-gateLocked #kzLoading,
body.kz-gateLocked .kz-modal,
body.kz-gateLocked .kz-dialog,
body.kz-gateLocked .kz-result-modal,
body.kz-gateLocked .kz-planner-modal {
    display: none !important;
}

/* Scrollen sperren solange Gate offen ist */
body.kz-gateLocked,
body.kz-gateOpen {
    overflow: hidden !important;
}

.kz-allocItem{display:flex;flex-direction:column;gap:10px;padding:12px 0;border-top:1px solid rgba(17,24,39,.08);}
.kz-allocItem:first-child{border-top:0;padding-top:0;}
.kz-allocTop{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.kz-allocName{font-weight:900;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.kz-allocPct{font-weight:1000;color:#b35a00;}
.kz-allocMeta{display:flex;flex-wrap:wrap;gap:8px;}
.kz-allocRange{width:100%;}
.kz-allocRange.is-disabled{opacity:.55;pointer-events:none;}


.kz-requestMeta.is-success{background:rgba(236,253,243,.96);border-color:rgba(2,122,72,.22);color:#027a48}
.kz-requestMeta.is-error{background:rgba(254,243,242,.96);border-color:rgba(180,35,24,.18);color:#b42318}
.kz-requestMeta.is-neutral{background:rgba(255,255,255,.82);border-color:rgba(255,140,0,.14);color:#9f4f00}
.kz-btn.is-busy{position:relative;pointer-events:none;opacity:.86}
.kz-btn.is-busy::after{content:'';display:inline-block;width:14px;height:14px;margin-left:8px;border-radius:999px;border:2px solid currentColor;border-right-color:transparent;vertical-align:-2px;animation:kzSpin .8s linear infinite}

.kz-loading::before, .kz-loading::after{content:'';position:absolute;border-radius:999px;pointer-events:none;filter:blur(6px);opacity:.7;}
.kz-loading::before{width:220px;height:220px;left:8%;top:10%;background:radial-gradient(circle, rgba(255,176,0,.22), rgba(255,176,0,0));animation:kzFloatGlow 6s ease-in-out infinite;}
.kz-loading::after{width:280px;height:280px;right:6%;bottom:8%;background:radial-gradient(circle, rgba(255,90,31,.2), rgba(255,90,31,0));animation:kzFloatGlow 7.2s ease-in-out infinite reverse;}
.kz-loadingBackdrop{z-index:0;}
.kz-loadingCard{z-index:1;transform:translateY(18px) scale(.97);opacity:.98;transition:transform .26s ease, opacity .26s ease;}
.kz-loading.is-show .kz-loadingCard{transform:translateY(0) scale(1);opacity:1;}
.kz-loadingStep{position:relative;overflow:hidden;}
.kz-loadingStep::after{content:'';position:absolute;inset:0;transform:translateX(-120%);background:linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);}
.kz-loadingStep.is-on::after{animation:kzSweep 1.3s ease;}
.kz-loadingBadge::before{content:'🔥';font-size:13px;}
.kz-loadingBadge{box-shadow:0 8px 24px rgba(255,176,0,.16);}
@keyframes kzSweep{0%{transform:translateX(-120%);}100%{transform:translateX(120%);}}
@keyframes kzFloatGlow{0%,100%{transform:translate3d(0,0,0) scale(1);}50%{transform:translate3d(0,-12px,0) scale(1.05);}}

.kz-modalBackdrop{
    position:fixed;
    inset:0;
    z-index:5000;
    background:rgba(16,18,24,.58);
    backdrop-filter:blur(4px);
    display:none;
    align-items:center;
    justify-content:center;
    padding:24px;
}
.kz-modalBackdrop.is-show{display:flex;}
.kz-modalCard{
    width:min(680px, 100%);
    background:#fff;
    border-radius:24px;
    box-shadow:0 28px 80px rgba(0,0,0,.24);
    padding:28px;
    position:relative;
}
.kz-modalClose{
    position:absolute;
    top:12px;
    right:12px;
    width:40px;
    height:40px;
    border:0;
    border-radius:999px;
    background:#f3f4f6;
    color:#111827;
    font-size:28px;
    line-height:1;
    cursor:pointer;
}
.kz-fairLeadForm{margin-top:18px;}
.kz-fieldRow{display:grid;gap:14px;margin-bottom:14px;}
.kz-fieldRow--2{grid-template-columns:repeat(2,minmax(0,1fr));}
.kz-field label{display:block;font-weight:700;margin:0 0 8px;}
.kz-field input{
    width:100%;
    border:1px solid #d9dde5;
    border-radius:14px;
    padding:13px 14px;
    font:inherit;
    background:#fff;
}
.kz-field input:focus{
    outline:none;
    border-color:#ff6b1a;
    box-shadow:0 0 0 4px rgba(255,107,26,.14);
}
.kz-formHint{min-height:22px;color:#5b6470;line-height:1.45;}
.kz-formHint.is-error{color:#c62828;}
.kz-formHint.is-success{color:#1f7a1f;}
.kz-requestActions--modal{justify-content:flex-end;margin-top:18px;}
body.kz-modalOpen{overflow:hidden;}
@media (max-width: 720px){
    .kz-modalCard{padding:22px 18px;}
    .kz-fieldRow--2{grid-template-columns:1fr;}
}
