/* Reisbou – Arbeitsfläche des Planers: Reiseverlauf, Karte, Preisleiste (Mockup „Planer – eine Ansicht“) */
:root {
  --k-stay: #2B5680; --k-stay-l: #E4ECF5;
  --k-food: #73395A; --k-food-l: #F3E6EE;
  --k-exp: #3B6527;  --k-exp-l: #E7F0E0;
  --k-tra: #A4521F;  --k-tra-l: #F6E9DC; --k-tra-i: #8A4A15;
  --k-dark: #14211F;
  /* von Vorschau und geteiltem Link mitgenutzt */
  --k-stay-i: #24496D; --k-food-i: #5E2E4A; --k-exp-i: #2E5E38; --k-route: #1E5A55;
}

/* Kopf */
.phead { width: 100%; max-width: 1440px; margin: 0 auto; padding: 20px 24px 14px; box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.phead-t { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.phead h1 { font-size: 30px; }
.phead-m { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 14px; color: var(--ink-2); }
.psep { width: 1px; height: 14px; background: var(--line-strong); }
.pflight { display: inline-flex; align-items: center; gap: 5px; color: #6E3A10; }
.phead-l { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; }
.phead-l .linkbtn { min-height: 32px; font-weight: 600; text-decoration: none; }
.phead-l .linkbtn:hover { text-decoration: underline; }
.phead-a { display: flex; flex-wrap: wrap; gap: 8px; }
.phead-a .btn { font-weight: 500; }
.pnotice { width: min(1392px, calc(100% - 48px)); margin: 0 auto 12px; box-sizing: border-box; }

/* Arbeitsfläche: Liste links, Karte rechts; zusammen etwa eine Bildschirmhöhe über der Preisleiste */
/* Seite füllt das Fenster: Kopf oben, Preisleiste unten, dazwischen die Arbeitsfläche (body.is-plan setzt planer.js) */
body.is-plan #app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.pwork { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 24px 16px; box-sizing: border-box; display: flex; gap: 16px; align-items: stretch; flex: 1 1 0; min-height: 420px; }
.plist { flex: 0 0 clamp(380px, 35%, 500px); min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; }
.pmap { flex: 1 1 auto; min-width: 0; display: flex; }

/* Reiseverlauf */
.plist-h { flex: none; padding: 14px 18px 12px; border-bottom: 1px solid #E8EBE5; display: flex; flex-direction: column; gap: 10px; }
.plist-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.plist-h h2 { margin: 0; font-size: 20px; }
.pprog { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-2); }
.pprog-bar { flex: 1; display: grid; gap: 3px; }
.pprog-bar i { display: block; height: 6px; border-radius: 3px; background: var(--primary); }
.pprog-bar i.open { background: var(--accent); }
.pfilter { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-sm { min-height: 36px; font-size: 13px; padding: 0 12px; font-weight: 600; }
.chip-warn[aria-pressed="false"] { border-color: var(--warn-line); background: var(--warn-soft); color: var(--warn-ink); }
.chip-warn:disabled { opacity: .55; cursor: default; }
.pbadge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box; border-radius: 9px; background: var(--warn); color: #fff; font-size: 11px; }
.chip-warn[aria-pressed="true"] .pbadge { background: #fff; color: var(--ink); }
.plist-b { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 14px; scrollbar-width: thin; }
.btn-ink { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }

.pst { padding: 12px 18px; display: flex; flex-direction: column; gap: 8px; transition: background-color .15s ease; }
.pst.is-hi { background: #F7F8F5; }
.pst.is-focus { background: var(--primary-soft); box-shadow: inset 0 0 0 2px var(--primary-line); }
.pst-h { display: flex; align-items: center; gap: 10px; }
.pst-open { font: inherit; color: inherit; flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 4px 0; text-align: left; cursor: pointer; min-height: 44px; }
.pst-open:hover .pst-n strong { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.pnum { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 8px; box-sizing: border-box; border-radius: 14px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; }
.pnum.plane { background: #ECE9E2; color: var(--k-tra-i); padding: 0; }
.pnum.big { min-width: 38px; height: 38px; border-radius: 19px; font-size: 15px; background: var(--primary); }
.pst.is-focus .pnum { background: var(--primary); box-shadow: 0 0 0 3px var(--accent); }
.pst-t { display: flex; flex-direction: column; min-width: 0; }
.pst-n { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.pst-n strong { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.pst-n span, .pst-d { font-size: 13px; color: var(--ink-2); }
.pok { color: var(--primary); display: inline-flex; flex: none; }
.pcount { flex: none; font-size: 12px; font-weight: 600; color: var(--warn-ink); background: var(--warn-soft); border: 1px solid var(--warn-line); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.pst-b { margin-left: 40px; display: flex; flex-direction: column; gap: 6px; }
.pst-b:empty { display: none; }
.pedit { margin-left: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }

.pitem { font: inherit; color: inherit; width: 100%; box-sizing: border-box; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; background: #F7F8F5; border: 1px solid transparent; text-align: left; cursor: pointer; min-height: 44px; }
.pitem:hover { border-color: var(--line-strong); }
.pst.is-focus .pitem { background: #fff; }
.pitem.static { cursor: default; }
.pitem.static:hover { border-color: transparent; }
.pitem.bad { background: #FBEDE4; border-color: #E8B9A0; }
.pic { flex: none; width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.c-stay .pic { background: var(--k-stay-l); color: var(--k-stay); }
.c-exp .pic { background: var(--k-exp-l); color: var(--k-exp); }
.c-food .pic { background: var(--k-food-l); color: var(--k-food); }
.c-tra .pic { background: var(--k-tra-l); color: var(--k-tra-i); }
.pitem-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pitem-n { font-size: 14px; font-weight: 500; line-height: 1.3; }
.pitem-m { font-size: 12.5px; color: var(--ink-2); }
.pwhy { font-size: 12.5px; color: var(--danger); font-weight: 600; }
.pprice { font-family: var(--font); font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; }
.pmiss { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 10px; border-radius: 10px; background: var(--warn-soft); border: 1px dashed #D9AE85; min-height: 44px; box-sizing: border-box; }
.pmiss .pic { background: #fff; color: var(--k-stay); border: 1px dashed var(--k-stay); }
.pmiss-t { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--warn-ink); }
.pmiss.bad { background: #FBEDE4; border: 1px solid #E8B9A0; }
.pmiss.bad .pic { color: var(--danger); border-color: var(--danger); }
.pmiss.bad .pmiss-t { color: var(--danger); font-weight: 500; font-size: 13.5px; }
.padds { display: flex; flex-wrap: wrap; gap: 6px; }
.padd[aria-expanded="true"] { border-style: solid; border-color: var(--ink); }
.pend-list { display: flex; flex-direction: column; gap: 6px; }
.pitem.unfit { background: #FAFAF8; }
.pitem .btn { flex: none; }
.padd { font: inherit; display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 10px; border-radius: 8px; border: 1px dashed var(--line-strong); background: #fff; font-size: 13px; font-weight: 500; cursor: pointer; }
.padd:hover { border-style: solid; }
.padd.c-exp { color: var(--k-exp); } .padd.c-food { color: var(--k-food); } .padd.c-tra { color: var(--k-tra-i); }

.pconn { display: flex; align-items: center; gap: 10px; padding: 4px 18px 4px 31px; font-size: 13px; color: #6A4A2F; min-height: 40px; }
.pconn > svg { color: var(--k-tra-i); flex: none; }
.pconn-line { flex: none; width: 2px; align-self: stretch; min-height: 28px; background: repeating-linear-gradient(#C8A68A 0 3px, transparent 3px 6px); }
.pconn.air .pconn-line { background: repeating-linear-gradient(#C8A68A 0 2px, transparent 2px 7px); }
.pconn-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pconn.bad { background: #FBEDE4; }
.pconn.bad .pconn-t strong { color: var(--danger); }
.pconn .linkbtn { font-size: 13px; padding: 10px 0; }
.psug { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 12px; border-radius: 10px; background: #F7F8F5; font-size: 13px; color: #2F3936; }
.pst.is-focus .psug { background: #fff; }
.psug-ic { color: var(--primary); flex: none; }
.psug-t { flex: 1 1 180px; min-width: 0; }
.psug-t strong { color: var(--ink); font-weight: 600; }
.psug-a { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.psug-wrap { padding: 6px 18px 6px 58px; }
.pconn + .psug { margin: 0 18px 6px 58px; }
.pslot { font: inherit; display: flex; align-items: center; justify-content: center; gap: 6px; margin: 4px 18px 4px 58px; min-height: 36px; border-radius: 10px; border: 1.5px dashed var(--primary-line); background: #fff; color: var(--primary); font-size: 13px; font-weight: 600; cursor: pointer; }
.pslot:hover { background: var(--primary-soft); }
.pslot.wide { margin: 14px 18px 4px; min-height: 44px; }
.pempty { margin: 18px; color: var(--ink-2); font-size: 14px; }

/* Ortsansicht */
.plist-h.focus { gap: 12px; }
.pback { font: inherit; align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 8px 0 0; border: 0; background: none; color: var(--primary); font-size: 13px; font-weight: 600; cursor: pointer; }
.pfocus-h { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.pfocus-t { flex: 1; min-width: 160px; display: flex; flex-direction: column; }
.pfocus-t h2 { margin: 0; font-size: 24px; line-height: 1.1; }
.pissues { margin: 0; padding: 8px 12px 8px 28px; background: var(--warn-soft); border-radius: 10px; color: var(--warn-ink); font-size: 13px; max-height: 96px; overflow-y: auto; }
.pissues .linkbtn { font-size: 13px; }
.pdays { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; max-height: clamp(64px, 22vh, 210px); overflow-y: auto; scrollbar-width: thin; }
.pday { font: inherit; color: inherit; text-align: left; display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; border-radius: 10px; border: 1px solid #E1E5DE; background: #fff; cursor: pointer; min-height: 44px; }
.pday:hover { border-color: var(--line-strong); }
.pday.is-sel { border: 2px solid var(--primary); padding: 7px 9px; background: var(--primary-soft); }
.pday.over { border-color: var(--danger); }
.pday-h { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.pday.is-sel .pday-h { color: var(--primary); }
.pday-e { font-size: 12px; color: #6A4A2F; }
.pday-w { font-size: 12.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pday-bar { display: block; height: 5px; border-radius: 3px; background: #E6E9E3; overflow: hidden; margin-top: 2px; }
.pday-bar span { display: block; height: 100%; border-radius: 3px; background: var(--k-tra); }
.pday.over .pday-bar span { background: var(--danger); }
.pday-f { font-size: 11.5px; color: var(--muted); }
.pday.over .pday-f { color: var(--danger); font-weight: 600; }
.ptabs { flex: none; display: flex; gap: 2px; padding: 4px 12px 0; border-bottom: 1px solid #E8EBE5; overflow-x: auto; scrollbar-width: none; }
.ptab { font: inherit; display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ink-2); font-size: 14px; cursor: pointer; white-space: nowrap; }
.ptab[aria-pressed="true"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.pdot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.c-stay .pdot { background: var(--k-stay); } .c-exp .pdot { background: var(--k-exp); } .c-food .pdot { background: var(--k-food); } .c-tra .pdot { background: var(--k-tra); }
.ptab-n { font-size: 12px; color: var(--ink-2); font-weight: 500; }
.ptab-n.warn { color: var(--warn-ink); font-weight: 600; }
.pfor { margin: 12px 18px 8px; }
.poffer { display: flex; margin: 0 18px 10px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.poffer.added { border-color: var(--primary-line); box-shadow: inset 0 0 0 1px var(--primary-line); }
.poffer.unfit { background: #FAFAF8; }
.poffer-img { position: relative; flex: none; width: 112px; min-height: 96px; display: flex; align-items: center; justify-content: center; }
.c-stay .poffer-img { background: var(--k-stay-l); color: var(--k-stay); } .c-exp .poffer-img { background: var(--k-exp-l); color: var(--k-exp); }
.c-food .poffer-img { background: var(--k-food-l); color: var(--k-food); } .c-tra .poffer-img { background: var(--k-tra-l); color: var(--k-tra-i); }
.poffer-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poffer.unfit .poffer-img { opacity: .72; }
.poffer-ph { opacity: .7; display: flex; }
.pletter { position: absolute; left: 8px; top: 8px; z-index: 1; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid currentColor; box-sizing: border-box; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.poffer-b { flex: 1; min-width: 0; padding: 10px 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.poffer-n { font: inherit; text-align: left; background: none; border: 0; padding: 2px 0; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; }
.poffer-n:hover { text-decoration: underline; text-underline-offset: 3px; }
.poffer-m { font-size: 13px; color: var(--ink-2); }
.pyes { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--primary); }
.poffer .linkbtn { font-size: 13px; padding: 4px 0; }
.poffer-f { align-self: stretch; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.poffer-f .pprice { flex: 1; color: var(--ink); }

/* Preisleiste */
.pbar { position: sticky; bottom: 0; z-index: 30; background: var(--ink); color: #F5F6F2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; padding: 12px 24px; box-shadow: 0 -6px 18px rgba(20,33,31,.18); }
.pbar-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.pbar-total { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.01em; line-height: 1.15; }
.pbar-sub, .pbar-pay { font-size: 13px; color: #B9C4C1; }
.pbar-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 16px; }
.pbar-pay strong { color: #F5F6F2; font-weight: 600; }
.pbar-over strong { color: #F4B98A; }
.pbar-link { font: inherit; font-size: 13px; color: #B9C4C1; background: none; border: 0; padding: 8px 0; text-decoration: underline; cursor: pointer; }
.pbar-link:hover { color: #F5F6F2; }
.pbar-act { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 14px; }
.pbar-why { font-size: 13px; color: #B9C4C1; max-width: 380px; }
@media (min-width: 1100px) {
  /* eine Zeile: Preis | Zahlung (bricht in sich um) | Hinweis + Knopf */
  .pbar { flex-wrap: nowrap; }
  .pbar-pay { flex: 1; min-width: 0; }
  .pbar-act { flex-wrap: nowrap; flex: 0 1 auto; }
  .pbar-why { max-width: 240px; line-height: 1.35; }
  .pbar-btn { white-space: nowrap; }
}
.pbar-why.warn { color: #F4D6B4; }
.pbar-why.bad { color: #F6C4A8; }
.pbar-btn { min-height: 46px; padding: 0 20px; background: var(--accent); color: var(--ink); border-color: var(--accent); font-weight: 700; font-size: 15px; }
.pbar-btn:hover:not(:disabled) { background: #EDB574; }
.pbar-btn:disabled { background: #3A4744; color: #B9C4C1; border-color: #3A4744; opacity: 1; }
.pcomp { position: absolute; right: 24px; bottom: calc(100% + 8px); z-index: 31; width: min(340px, calc(100vw - 32px)); box-sizing: border-box; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(20,33,31,.2); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.pcomp-budget, .pcomp-pay { border-top: 1px solid var(--line); padding-top: 10px; font-size: 13.5px; display: flex; flex-direction: column; gap: 4px; }
.kcomp { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; }
.kcomp-dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 7px; }
.kcomp-bar { display: block; height: 4px; background: #F1EEE7; border-radius: 2px; overflow: hidden; }
.kcomp-bar span { display: block; height: 100%; }
.k-transport { background: var(--k-tra); } .k-accommodation { background: var(--k-stay); } .k-experience { background: var(--k-exp); } .k-food { background: var(--k-food); }

/* Bedienelemente in Liste und Dialogen */
.kstepper { display: flex; align-items: center; border: 1px solid #DCD7CC; border-radius: 10px; background: #fff; overflow: hidden; }
.kstepper button { font: inherit; width: 40px; height: 40px; border: 0; background: transparent; font-size: 18px; font-weight: 700; padding: 0; cursor: pointer; color: var(--ink); }
.kstepper button:hover:not(:disabled) { background: #F1EEE7; }
.kstepper button:disabled { opacity: .35; cursor: default; }
.kstepper span { min-width: 74px; text-align: center; font-size: 13px; font-weight: 700; }
.kicon-btn { font: inherit; width: 36px; height: 36px; border-radius: 8px; border: 0; background: transparent; padding: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); font-size: 17px; flex: none; }
.kicon-btn:disabled { opacity: .3; cursor: default; }
.kicon-btn.danger { color: var(--k-tra-i); }
.kicon-btn:hover:not(:disabled) { background: #F1EEE7; }
.ktag { font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #5B6460; background: #ECE9E2; padding: 3px 6px; border-radius: 6px; white-space: nowrap; }
.ktag.ok { color: var(--primary); background: #E3EEEA; }

/* Karte */
.kmap { position: relative; flex: 1; min-height: 0; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: #DCE6E6; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.kmap.dragging { cursor: grabbing; }
.kmap > * { position: absolute; }
.kmap-missing { flex: 1; display: flex; align-items: center; justify-content: center; border-radius: 16px; border: 1px dashed var(--line-strong); background: #fff; padding: 24px; color: var(--ink-2); text-align: center; }
.kbase { max-width: none; height: auto; pointer-events: none; }
.kroutes { inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.kroutes path, .klegend line { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.kl-under { stroke: #fff; stroke-width: 7; }
.kl-under.air { stroke-width: 6; }
.kl-road { stroke: var(--k-tra); stroke-width: 3.4; }
.kl-rail { stroke: var(--k-tra); stroke-width: 3.4; stroke-dasharray: 9 5; stroke-linecap: butt !important; }
.kl-air { stroke: var(--k-tra); stroke-width: 2.4; stroke-dasharray: .5 7; }
.kl-boat { stroke: #2A7FA6; stroke-width: 3.4; stroke-dasharray: 2 4; }
.kl-hi { stroke: var(--primary); stroke-width: 4.4; stroke-opacity: .85; }
.kl-ghost { stroke: var(--primary); stroke-width: 3; stroke-dasharray: 2 6; }
.klegend line { stroke-width: 3.2; }

.klabel { transform: translate(-50%, -50%); white-space: nowrap; pointer-events: none; }
.kind-country { font-size: 12px; font-weight: 700; letter-spacing: .18em; color: #8C918E; text-transform: uppercase; }
.kind-region { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; color: #A39985; text-transform: uppercase; }
.kind-nature { font-size: 12.5px; font-weight: 500; color: #A08B62; font-style: italic; }
.kind-water { font-size: 11.5px; font-weight: 500; color: #5E8C95; font-style: italic; }
.kind-sea { font-size: 13px; font-weight: 500; letter-spacing: .06em; color: #6F9096; font-style: italic; }
.kind-big { font-size: 15px; font-weight: 800; letter-spacing: .4em; color: #B5A98F; text-transform: uppercase; }
.kother { display: flex; align-items: center; gap: 6px; transform: translate(-5px, -50%); pointer-events: none; font-size: 12px; font-weight: 500; color: #5B6460; white-space: nowrap; }
.kother-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; border: 2px solid #9AA29E; flex: none; display: inline-block; }

.kmark { font: inherit; transform: translate(-50%, -50%); z-index: 7; min-width: 26px; height: 26px; padding: 0 6px; box-sizing: border-box; border-radius: 13px; border: 3px solid #fff; background: var(--k-dark); color: #fff; font-size: 11.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(28,36,33,.35); cursor: pointer; }
.kmark.sel { min-width: 34px; height: 34px; border-radius: 17px; background: var(--primary); font-size: 13.5px; box-shadow: 0 0 0 4px var(--accent), 0 4px 10px rgba(28,36,33,.35); z-index: 9; }
.kmark.end { background: #fff; color: var(--k-tra-i); border-color: var(--k-tra-l); cursor: default; }
.kmark:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.kmark-open { transform: translate(4px, -17px); width: 11px; height: 11px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; z-index: 10; pointer-events: none; }
.kname { transform: translate(18px, -50%); z-index: 6; display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--ink); background: rgba(255,255,255,.95); border-radius: 7px; padding: 2px 8px; box-shadow: 0 1px 4px rgba(28,36,33,.16); white-space: nowrap; pointer-events: none; }
.kname.left { transform: translate(calc(-100% - 18px), -50%); }
.kname.sel { transform: translate(-50%, -46px); background: var(--primary); color: #fff; font-size: 13.5px; padding: 4px 10px; z-index: 11; }
.kname-ic { color: var(--k-tra-i); }
.kname.sel .kname-ic { color: #fff; }
.kpulse { width: 26px; height: 26px; border-radius: 50%; background: var(--primary); transform: translate(-50%, -50%); animation: kPulse 1.3s ease-out infinite; pointer-events: none; z-index: 6; }
.kpill { font: inherit; transform: translate(-50%, -50%); z-index: 5; display: flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 6px; border: 0; background: #fff; color: #6A3A12; font-size: 12px; font-weight: 600; box-shadow: 0 1px 3px rgba(28,36,33,.22); min-height: 22px; cursor: pointer; white-space: nowrap; }
.kpill.hi { background: var(--primary); color: #fff; }
.kpill.bad { background: #FBEDE4; color: var(--danger); box-shadow: 0 0 0 1.5px var(--danger); }
.kpill:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.kaddp { font: inherit; transform: translate(-12px, -50%); z-index: 4; display: flex; align-items: center; gap: 6px; padding: 0; border: 0; background: transparent; min-height: 32px; cursor: pointer; text-align: left; }
.kaddp-dot, .kleg-add { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 1.5px dashed var(--primary); color: var(--primary); display: flex; align-items: center; justify-content: center; flex: none; box-sizing: border-box; box-shadow: 0 1px 4px rgba(28,36,33,.14); transition: background-color .15s ease, color .15s ease; }
.kaddp:hover .kaddp-dot, .kaddp:focus-visible .kaddp-dot { background: var(--primary); color: #fff; }
.kaddp.suggested .kaddp-dot { border-width: 2px; animation: kGlow 2.2s ease-in-out infinite; }
.kaddp-t { display: none; flex-direction: column; background: rgba(255,255,255,.95); border-radius: 8px; padding: 2px 8px; box-shadow: 0 1px 4px rgba(28,36,33,.12); }
.kaddp.suggested .kaddp-t, .kaddp:hover .kaddp-t, .kaddp:focus-visible .kaddp-t { display: flex; }
.kaddp-t strong { font-size: 12.5px; color: var(--k-dark); white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.kaddp-t span { font-size: 11px; color: var(--primary); font-weight: 600; white-space: nowrap; }
.kleg-add { width: 14px; height: 14px; box-shadow: none; display: inline-flex; }

.kframe { border: 1.5px dashed var(--primary); border-radius: 10px; background: rgba(30,90,85,.06); cursor: zoom-in; z-index: 4; }
.kframe-note { transform: translate(10px, -50%); background: #fff; border-radius: 12px; padding: 10px 14px; box-shadow: 0 8px 22px rgba(28,36,33,.14); pointer-events: none; display: flex; flex-direction: column; font-size: 12px; color: #5B6460; z-index: 4; }
.kframe-note strong { font-size: 13px; color: var(--k-dark); }
.kframe-cta { color: var(--primary); font-weight: 600; margin-top: 2px; }

/* Bedienelemente der Karte */
.kseg { left: 14px; top: 14px; z-index: 20; display: flex; gap: 3px; padding: 3px; border-radius: 10px; background: #fff; box-shadow: 0 2px 8px rgba(28,36,33,.14); }
.kseg button { font: inherit; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; border: 0; padding: 0 12px; border-radius: 8px; min-height: 38px; background: transparent; color: var(--ink); cursor: pointer; }
.kseg button[aria-pressed="true"] { background: var(--k-dark); color: #fff; }
.kzoom { right: 14px; top: 14px; z-index: 20; display: flex; flex-direction: column; align-items: center; background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(28,36,33,.14); overflow: hidden; }
.kzoom button { font: inherit; width: 44px; height: 44px; border: 0; background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.kzoom button:hover { background: #F1EEE7; }
.kzoom-dots { display: flex; flex-direction: column; gap: 4px; padding: 6px 0; }
.kzoom-dots i { width: 5px; height: 5px; border-radius: 50%; background: #CCD0CB; }
.kzoom-dots i.on { width: 7px; height: 7px; background: var(--k-dark); margin-left: -1px; }
.klegend { left: 14px; bottom: 14px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; max-width: calc(100% - 200px); background: rgba(255,255,255,.94); border-radius: 10px; padding: 7px 12px; box-shadow: 0 1px 4px rgba(28,36,33,.12); font-size: 12px; color: #2F3936; pointer-events: none; }
.klegend > span { display: flex; align-items: center; gap: 6px; }
.kleg-open { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); display: inline-block; }
.kleg-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; box-sizing: border-box; }
.kleg-dot.full { background: var(--k-stay); } .kleg-dot.ring { border: 2px solid var(--k-exp); background: #fff; }
.kscale { right: 14px; bottom: 14px; z-index: 20; display: flex; flex-direction: column; gap: 4px; background: rgba(255,255,255,.94); border-radius: 10px; padding: 6px 10px; font-size: 11.5px; font-weight: 600; color: #3B4440; pointer-events: none; }
.kscale i { display: block; width: 100%; height: 6px; border: 2px solid #3B4440; border-top: 0; box-sizing: border-box; }

/* Sichtbarkeit je Zoomstufe */
.kmap .z-route, .kmap .z-detail, .kmap .z-india, .kmap .z-frame, .kmap .z-street { display: none; }
.kmap[data-zoom="route"] .z-route, .kmap[data-zoom="route"] .z-detail, .kmap[data-zoom="detail"] .z-detail { display: flex; }
.kmap[data-zoom="wide"] .z-india, .kmap[data-zoom="india"] .z-india, .kmap[data-zoom="india"] .z-frame { display: flex; }
.kmap[data-zoom="india"] .kframe.z-frame { display: block; }
.kmap .klabel.z-detail, .kmap .klabel.z-india { display: none; }
.kmap[data-zoom="route"] .klabel.z-detail, .kmap[data-zoom="detail"] .klabel.z-detail,
.kmap[data-zoom="wide"] .klabel.z-india, .kmap[data-zoom="india"] .klabel.z-india { display: block; }
.kmap[data-zoom="wide"] .kname, .kmap[data-zoom="india"] .kname { display: none; }
.kmap[data-zoom="street"] .z-street { display: flex; }
.kmap[data-zoom="street"] .klegend:not(.kleg-poi) { display: none; }
.kmap:not([data-zoom="street"]) .kleg-poi { display: none; }

/* Google-Karte als Hintergrund (Karten-ID mit Reisbou-Stil); ohne Schlüssel bleibt die Natural-Earth-Karte */
.kgmap { inset: 0; pointer-events: none; z-index: 0; }
.kgmap .gm-style-cc, .kgmap .gm-style a { pointer-events: auto; }
.kmap[data-base="google"] { background: #F4EFE4; }
.kmap[data-base="google"] .kbase,
.kmap[data-base="google"] .klabel,
.kmap[data-base="google"] .kother.z-india { display: none !important; }
/* Google-Logo (unten links) und Hinweise (unten rechts) müssen sichtbar bleiben */
.kmap[data-base="google"] .klegend { bottom: 34px; }
.kmap[data-base="google"] .kscale { bottom: 30px; }

/* Stadtansicht: Unterkünfte, Erlebnisse, Essen und Transfers an ihrer genauen Lage */
.kpoi { transform: translate(-16px, -50%); z-index: 6; align-items: center; gap: 6px; max-width: 240px; padding: 4px 10px 4px 4px; border-radius: 999px; font: inherit; font-size: 12.5px; line-height: 1.2; cursor: pointer; background: #fff; text-align: left; box-shadow: 0 1px 4px rgba(28,36,33,.16); }
.kpoi-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpoi-ic { width: 24px; height: 24px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.kpoi.c-stay { border: 2px solid var(--k-stay); color: var(--k-stay); } .kpoi.c-stay .kpoi-ic { background: var(--k-stay-l); }
.kpoi.c-exp { border: 2px solid var(--k-exp); color: var(--k-exp); } .kpoi.c-exp .kpoi-ic { background: var(--k-exp-l); }
.kpoi.c-food { border: 2px solid var(--k-food); color: var(--k-food); } .kpoi.c-food .kpoi-ic { background: var(--k-food-l); }
.kpoi.c-tra { border: 2px solid var(--k-tra); color: var(--k-tra-i); } .kpoi.c-tra .kpoi-ic { background: var(--k-tra-l); }
.kpoi.on { color: #fff; box-shadow: 0 4px 12px rgba(20,33,31,.22); z-index: 7; padding-right: 12px; max-width: 340px; }
.kpoi.on .kpoi-ic { background: rgba(255,255,255,.2); }
.kpoi.c-stay.on { background: var(--k-stay); } .kpoi.c-exp.on { background: var(--k-exp); } .kpoi.c-food.on { background: var(--k-food); } .kpoi.c-tra.on { background: var(--k-tra); }
.kpoi:hover, .kpoi:focus-visible { z-index: 8; max-width: 360px; }
.kpoi:focus-visible, .kdot:focus-visible { outline: 3px solid var(--k-dark); outline-offset: 2px; }
.kdot { transform: translate(-50%, -50%); z-index: 5; width: 14px; height: 14px; padding: 0; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(28,36,33,.3); cursor: pointer; opacity: .75; }
.kdot:hover { opacity: 1; }
.kdot.c-stay { background: var(--k-stay); } .kdot.c-exp { background: var(--k-exp); } .kdot.c-food { background: var(--k-food); } .kdot.c-tra { background: var(--k-tra); }

/* Dialoge */
.kdlg { width: min(580px, calc(100vw - 32px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.3); overflow: auto; color: var(--ink); }
.kdlg::backdrop { background: rgba(20,33,31,.45); }
.kdlg[open] { animation: kModal .28s cubic-bezier(.2,.8,.2,1) both; }
.kdlg-h { position: relative; padding: 22px 64px 20px 24px; display: flex; gap: 16px; align-items: flex-start; }
.kdlg-h h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin-top: 4px; }
.kdlg-ic { width: 60px; height: 60px; border-radius: 18px; color: #fff; flex: none; display: flex; align-items: center; justify-content: center; }
.kdlg-kick { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.kdlg-h.c-stay { background: var(--k-stay-l); } .kdlg-h.c-stay .kdlg-ic { background: var(--k-stay); } .kdlg-h.c-stay .kdlg-kick { color: var(--k-stay); }
.kdlg-h.c-food { background: var(--k-food-l); } .kdlg-h.c-food .kdlg-ic { background: var(--k-food); } .kdlg-h.c-food .kdlg-kick { color: var(--k-food); }
.kdlg-h.c-exp { background: var(--k-exp-l); } .kdlg-h.c-exp .kdlg-ic { background: var(--k-exp); } .kdlg-h.c-exp .kdlg-kick { color: var(--k-exp); }
.kdlg-h.c-tra { background: var(--k-tra-l); } .kdlg-h.c-tra .kdlg-ic { background: var(--k-tra); } .kdlg-h.c-tra .kdlg-kick { color: var(--k-tra-i); }
.kdlg-h.c-place { background: #E3EEEA; } .kdlg-h.c-place .kdlg-ic { background: var(--primary); } .kdlg-h.c-place .kdlg-kick { color: var(--primary); }
.kdlg-x { position: absolute; right: 14px; top: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.75); display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; color: var(--ink); }
.kdlg-b { padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.kdlg-f { padding: 16px 24px 20px; border-top: 1px solid #ECE9E2; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.kdlg-price { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.kdlg-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; display: block; background: #EEE9DE; }
.kfacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kfacts > div { background: #FAF8F4; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kfacts span { font-size: 11.5px; color: #5B6460; }
.kfacts strong { font-size: 14px; overflow-wrap: anywhere; }
.kdesc { margin: 0; font-size: 14.5px; line-height: 1.55; color: #2C3431; white-space: pre-line; }
.kblock { display: flex; gap: 10px; align-items: flex-start; background: #FBEDE4; color: #8A3D1D; border-radius: 12px; padding: 12px 14px; font-size: 13.5px; }
.kstaynote, .kinroute { background: #FAF8F4; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.kinroute { background: #E3EEEA; color: var(--primary); font-weight: 600; }
.kdays { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.kday, .kopt { font: inherit; color: inherit; text-align: left; border: 1.5px solid #E4E0D7; background: #fff; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; cursor: pointer; font-size: 13px; }
.kday[aria-checked="true"] { border: 2px solid var(--k-dark); background: #FAF8F4; }
.kday:disabled { opacity: .62; cursor: not-allowed; }
.kopts { display: flex; flex-direction: column; gap: 8px; }
.kopt { flex-direction: row; align-items: center; gap: 12px; }
.kopt[aria-checked="true"] { border: 2px solid var(--k-dark); background: #FAF8F4; }
.kopt:disabled { opacity: .62; cursor: not-allowed; }
.kradio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #B7BDB9; flex: none; box-sizing: border-box; }
.kopt[aria-checked="true"] .kradio { border: 6px solid var(--k-dark); }
.knights { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: #FAF8F4; border-radius: 12px; padding: 12px 14px; }

/* Rückmeldung mit Rückgängig */
.ktoast { position: fixed; left: 50%; bottom: calc(var(--pbar-h, 80px) + 16px); transform: translate(-50%, 20px); z-index: 90; display: flex; align-items: center; gap: 14px; background: var(--k-dark); color: #fff; border-radius: 14px; padding: 12px 16px; font-size: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; width: max-content; max-width: calc(100vw - 32px); box-sizing: border-box; }
.ktoast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.ktoast.bad { background: #4A2A1C; }
.ktoast button { font: inherit; font-weight: 700; color: #F2D28E; background: none; border: 0; cursor: pointer; padding: 6px; white-space: nowrap; }

@keyframes kFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes kModal { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes kPulse { 0% { transform: translate(-50%, -50%) scale(1); opacity: .55; } 100% { transform: translate(-50%, -50%) scale(2.8); opacity: 0; } }
@keyframes kGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(30,90,85,.35); } 50% { box-shadow: 0 0 0 7px rgba(30,90,85,0); } }
@media (prefers-reduced-motion: reduce) {
  .kmap *, .kdlg, .ktoast { animation: none !important; transition: none !important; }
}

/* Handy und schmale Fenster: Karte oben, Reiseverlauf darunter, Preisleiste fest unten */
@media (max-width: 899px) {
  .phead { padding: 14px 16px 10px; }
  .phead h1 { font-size: 24px; }
  .phead-a { width: 100%; }
  .phead-a .btn { flex: 1; min-height: 42px; }
  .pnotice { width: calc(100% - 32px); }
  .pwork { flex: none; flex-direction: column; height: auto; min-height: 0; padding: 0 16px calc(var(--pbar-h, 96px) + 16px); gap: 12px; }
  .pmap { order: -1; flex: none; height: min(44vh, 420px); height: min(44dvh, 420px); min-height: 260px; }
  .plist { flex: none; }
  .plist-b { overflow: visible; }
  .pst-b, .pedit { margin-left: 0; }
  .psug-wrap, .pconn + .psug, .pslot { margin-left: 18px; padding-left: 0; }
  .psug-wrap { padding-left: 18px; }
  .pconn { padding-left: 24px; }
  .poffer { margin: 0 12px 10px; }
  .poffer-img { width: 92px; }
  .pdays { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); max-height: none; }
  .pbar { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); gap: 6px 12px; }
  .pbar-why { display: none; }
  /* Anzahlung, Rest und Budget stehen auf dem Handy in der Zusammensetzung */
  .pbar-pay > span { display: none; }
  .pbar-link { padding: 4px 0; }
  .pbar-why.bad { display: block; order: 3; flex-basis: 100%; font-size: 12px; }
  .pbar-total { font-size: 22px; }
  .pbar-act { gap: 8px; }
  .pbar-btn { min-height: 46px; padding: 0 16px; }
  .pcomp { right: 16px; left: 16px; width: auto; }
  /* Wischen nach oben und unten scrollt die Seite; seitlich verschiebt es die Karte */
  .kmap { touch-action: pan-y; }
  .klegend { display: none; }
  /* Fahrzeiten stehen im Reiseverlauf; auf der kleinen Karte würden sie Namen verdecken */
  .kmap .kpill { display: none !important; }
  .kseg button { min-height: 36px; padding: 0 10px; }
  .kfacts { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .pbar-sub { display: none; }
}

/* ---------- Reise über mehrere Länder (Partner je Land, Länderwechsel, Preis je Partner) ---------- */
.ppartner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 10px 18px 2px; padding: 6px 10px; border-left: 4px solid var(--k-tra-i, #B86E1D); background: #F5F6F2; border-radius: 0 8px 8px 0; font-size: 13px; color: #3B4440; }
.ppartner.s1 { border-left-color: #2B5680; }
.ppartner.s2 { border-left-color: #1E5A55; }
.ppartner.s3 { border-left-color: #8A3E6B; }
.ppartner-c { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #55615E; }
.ppartner-p { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13px; }
.pconn.cross { background: #F0F6F5; border-top: 2px dashed #A9C9C3; border-bottom: 2px dashed #A9C9C3; }
.pconn.cross .pconn-t strong { color: #1E5A55; }
.pconn.cross.bad { background: #FBEDE4; }
.kself { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line, #DDE1DA); padding-top: 12px; }
.pbar-parts { display: grid; grid-template-columns: auto auto; column-gap: 22px; row-gap: 2px; margin: 0; font-size: 13.5px; }
.pbar-parts dt { display: inline-flex; align-items: center; gap: 8px; color: #C9D2CF; min-width: 0; }
.pbar-parts dd { margin: 0; text-align: right; font-weight: 600; white-space: nowrap; }
.pbar-dot { width: 14px; height: 4px; border-radius: 2px; flex: none; background: #E3A55F; }
.pbar-dot.s1 { background: #8FB4DA; }
.pbar-dot.s2 { background: #A9C9C3; }
.pbar-dot.s3 { background: #D9A5C4; }
.pbar-dot.s0 { background: #E3A55F; }
.pbar.multi .pbar-price { flex-direction: column; align-items: flex-start; gap: 0; border-left: 1px solid #3B4A47; padding-left: 22px; }
@media (max-width: 760px) {
  .pbar-parts { display: none; }
  .pbar.multi .pbar-price { border-left: 0; padding-left: 0; }
}

/* ---------- Kopf im Schritt Planen (Stufe 1 der Überarbeitung, 24.10.2026) ----------
   Dunkel wie die Schritte 1–3: Schrittleiste in der Kopfleiste, darunter Titel und genau drei Aktionen.
   Reiserahmen, Partner und „Neu planen“ stehen im Menü „Reise“. */
.pkopf { background: var(--nacht); color: var(--hell); margin-bottom: 14px; }
.pkopf .topbar { background: var(--nacht-2); border-bottom: 1px solid rgba(251, 246, 236, 0.08); }
.pkopf .topbar .crumb { display: none; }
.pkopf-in { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.pkopf .phead { max-width: none; padding: 12px 0 16px; }
.pkopf .phead h1 { color: var(--hell); font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.pkopf .phead-m { color: var(--hell-2); }
.pkopf .psep { background: rgba(251, 246, 236, 0.25); }
.pkopf .pflight { color: var(--bernstein-hell); }
.pkopf .phead-t { flex: 1 1 480px; }
.pkopf .phead-a { align-items: center; flex: none; }
.pkopf .phead-a .pkopf-btn {
  min-height: 44px; padding: 0 18px; border-radius: 999px; gap: 8px;
  background: transparent; color: var(--hell); border: 1.5px solid rgba(251, 246, 236, 0.45); font-size: 15px; font-weight: 600;
}
.pkopf .phead-a .pkopf-btn:hover { background: rgba(251, 246, 236, 0.1); }
.pkopf .phead-a .pkopf-btn svg { color: inherit; }
.pkopf .phead-a .pmenu-btn[aria-expanded="true"] { background: var(--hell); color: var(--ink); border-color: var(--hell); }
.pkopf :focus-visible { outline-color: var(--bernstein); }

.pmenu { position: relative; display: flex; }
.pmenu-l {
  position: absolute; z-index: 60; top: calc(100% + 8px); right: 0; width: 300px; max-width: calc(100vw - 32px);
  padding: 8px; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  display: flex; flex-direction: column; gap: 2px;
}
.pmenu-l[hidden] { display: none; }
.pmenu-i { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.pmenu-i:hover, .pmenu-i:focus-visible { background: var(--bg); }
.pmenu-i:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.pmenu-i svg { flex: none; margin-top: 1px; }
.pmenu-t { display: block; font-weight: 600; font-size: 15px; }
.pmenu-s { display: block; font-size: 13.5px; color: var(--ink-2); }
.pmenu-i.danger { color: #A23B2A; }
.pmenu-sep { height: 1px; margin: 6px 4px; background: var(--line); }

@media (max-width: 899px) {
  .pkopf { margin-bottom: 12px; }
  .pkopf-in { padding: 0 16px; }
  .pkopf .phead { padding: 12px 0 14px; }
  .pkopf .phead-a .pkopf-btn { flex: 1; min-height: 44px; padding: 0 12px; }
  .pkopf .pmenu { flex: 1; }
  .pkopf .pmenu-btn { width: 100%; }
  .pkopf .phead-a .pkopf-btn { white-space: nowrap; }
  .pkopf .psep { display: none; }
  .pkopf .phead-m { gap: 2px 14px; }
}
@media (max-width: 480px) {
  .pkopf .previewbtn .lang { display: none; }
}

/* Preise in Plex Sans mit gleich breiten Ziffern statt Schreibmaschinenschrift */
body.is-plan .mono { font-family: var(--font); font-variant-numeric: tabular-nums; font-weight: 600; }

/* Reisebilanz: offene Unterkünfte als Sprungmarken; solange etwas fehlt, ist „Anfragen“ ruhig gestaltet */
.pbar-gaps { display: flex; flex-direction: column; gap: 2px; max-width: 460px; }
.pbar-gaps-t { display: block; font-size: 14px; font-weight: 600; color: #F5F6F2; }
.pbar-gap-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; vertical-align: 1px; border-radius: 50%; background: var(--bernstein); }
.pbar-gap-list { font-weight: 500; }
.pbar-gap { font: inherit; font-weight: 600; color: var(--bernstein-hell); background: none; border: 0; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pbar-gap:hover { color: #fff; }
.pbar-gap:focus-visible { outline: 2px solid var(--bernstein); outline-offset: 2px; border-radius: 4px; }
.pbar-gaps-s { font-size: 13px; color: #B9C4C1; }
.pbar-btn.ruhig { background: transparent; color: #F5F6F2; border: 1.5px solid rgba(245, 246, 242, 0.55); }
.pbar-btn.ruhig:hover:not(:disabled) { background: rgba(245, 246, 242, 0.1); }
.pbar-btn { border-radius: 999px; }
@media (max-width: 899px) {
  .pbar-gaps { order: 3; flex-basis: 100%; }
  .pbar-gaps-s { display: none; }
  .pbar-gaps-t { font-size: 13px; }
}

/* ---------- Stufe 2 (24.10.2026): Reiter Stationen · Route · Ideen, „Als Nächstes“, kompakte Stationen;
   Ortsansicht mit Tagesplan und Filter „Passt zu Tag …“. Der ganze Bereich scrollt als eins. ---------- */
.ltabs { display: flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.ltab { font: inherit; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; }
.ltab:hover { background: #ECEEE9; }
.ltab[aria-selected="true"] { background: var(--ink); color: #fff; }
.ltab-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border-radius: 999px; background: var(--line); color: var(--ink); font-size: 12px; }
.ltab[aria-selected="true"] .ltab-n { background: var(--bernstein); }
.phint { margin: 14px 18px 6px; font-size: 13.5px; color: var(--ink-2); }

.pnext { margin: 14px 18px 8px; padding: 14px; border-radius: 16px; background: #FBF1E2; border: 1px solid #F0D9B5; display: flex; flex-direction: column; gap: 8px; }
.pnext.bad { background: #FBEDE4; border-color: #E8B9A0; }
.pnext.done { background: var(--primary-soft); border-color: var(--primary-line); flex-direction: row; align-items: center; gap: 12px; }
.pnext-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.pnext-ic { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; color: #8A5212; }
.pnext.bad .pnext-ic { color: var(--danger); }
.pnext.done .pnext-ic { color: var(--primary); }
.pnext-t { flex: 1 1 200px; min-width: 0; }
.pnext-t p { margin: 0; }
.pnext-k { font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #8A5212; }
.pnext.bad .pnext-k { color: var(--danger); }
.pnext.done .pnext-k { color: var(--primary); }
.pnext .pnext-h { margin-top: 2px; font-size: 16px; font-weight: 600; }
.pnext-s { font-size: 13.5px; color: var(--ink-2); }
.pnext-btn { min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--bernstein); border-color: var(--bernstein); color: var(--ink); font-weight: 600; font-size: 14.5px; }
.pnext-btn:hover { background: #F0B871; border-color: #F0B871; }
.pnext-m { margin: 0; font-size: 13px; color: var(--ink-2); }

.pst.compact { padding: 4px 14px 4px 18px; }
.pst.compact .pst-open { align-items: flex-start; padding: 8px 0; }
.pst.compact .pnum { margin-top: 1px; }
.pst.compact .pst-t { flex: 1; }
.pst.compact .pok { margin-top: 4px; }
.pst-go { flex: none; color: var(--ink-2); margin-top: 4px; }
.pchips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.pchip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; box-sizing: border-box; padding: 2px 9px; border-radius: 999px; background: #EEF0EB; color: var(--ink-2); font-size: 12.5px; font-weight: 500; }
.pchip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pchip svg { flex: none; }
.pchip.ok { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.pchip.warn { background: var(--warn-soft); color: var(--warn-ink); font-weight: 600; }
.pchip.warn i { width: 7px; height: 7px; border-radius: 50%; background: var(--bernstein); flex: none; }
.pchip.bad { background: #FBEDE4; color: var(--danger); font-weight: 600; }
.pchip.idea { background: transparent; border: 1px solid var(--primary-line); color: var(--primary); font-weight: 600; padding: 1px 8px; }
.pst.route { padding: 10px 18px; gap: 6px; }
.pidea { margin: 10px 18px 0; }
.pidea-w { margin: 0 0 4px; font-size: 12.5px; font-weight: 600; color: var(--primary); }
.pidea .psug { background: #fff; border: 1px solid var(--line); }

.pfocus { padding-bottom: 18px; }
.pnav { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pnav-s { margin-left: auto; display: flex; gap: 6px; min-width: 0; }
.pstep { font: inherit; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; max-width: 150px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 12.5px; cursor: pointer; }
.pstep span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pstep svg { flex: none; }
.pstep:hover { border-color: var(--line-strong); }
.pfocus .pdays { display: flex; overflow-x: auto; max-height: none; padding-bottom: 4px; }
.pfocus .pday { flex: 0 0 132px; }
.pplan { border: 1px solid var(--line); border-radius: 14px; background: #FBFBF9; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.pplan-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.pplan-h h3 { margin: 0; font-family: var(--font); font-size: 15.5px; font-weight: 600; }
.pplan-stay { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 7px 8px 7px 10px; border-radius: 10px; background: var(--warn-soft); }
.pplan-stay.ok { background: var(--k-stay-l); }
.pplan-stay .pic { background: #fff; color: var(--k-stay); }
.pplan-t { flex: 1 1 160px; min-width: 0; font-size: 13.5px; }
.pplan-stay:not(.ok) .pplan-t strong { color: var(--warn-ink); }
.pplan-go { background: var(--bernstein); border-color: var(--bernstein); color: var(--ink); font-weight: 600; border-radius: 999px; }
.pplan-go:hover { background: #F0B871; }
.pplan-ev { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #6A4A2F; }
.pplan-ev svg { flex: none; color: var(--k-tra-i); }
.pplan-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pplan-i { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 4px 4px 8px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.pplan-i.bad { border-color: #E8B9A0; background: #FBEDE4; }
.pplan-i .pic { width: 28px; height: 28px; }
.pplan-i .pplan-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pplan-m { font-size: 12.5px; color: var(--ink-2); }
.pplan-empty { margin: 0; padding: 10px 12px; border-radius: 10px; border: 1.5px dashed var(--line-strong); font-size: 13.5px; color: var(--ink-2); }
.pplan-n { font: inherit; align-self: flex-start; min-width: 0; text-align: left; background: none; border: 0; padding: 2px 0; font-size: 13.5px; font-weight: 500; line-height: 1.3; color: var(--ink); cursor: pointer; overflow-wrap: anywhere; }
.pplan-n:hover { text-decoration: underline; text-underline-offset: 3px; }
.pfocus .ptabs { position: sticky; top: 0; z-index: 2; background: #fff; }
.ptab-ic { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; flex: none; }
.c-stay .ptab-ic { background: var(--k-stay-l); color: var(--k-stay); }
.c-exp .ptab-ic { background: var(--k-exp-l); color: var(--k-exp); }
.c-food .ptab-ic { background: var(--k-food-l); color: var(--k-food); }
.c-tra .ptab-ic { background: var(--k-tra-l); color: var(--k-tra-i); }
.ptab-need { width: 8px; height: 8px; border-radius: 50%; background: var(--bernstein); box-shadow: 0 0 0 3px rgba(227, 165, 95, 0.3); margin-left: 2px; }
.pfit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 12px 18px 0; }
.pfit { font: inherit; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.pfit[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); }
.pfit-box { display: inline-grid; place-items: center; width: 16px; height: 16px; box-sizing: border-box; border-radius: 4px; border: 1.5px solid var(--primary); color: transparent; }
.pfit[aria-pressed="true"] .pfit-box { background: var(--primary); color: #fff; }
@media (max-width: 899px) {
  .pnext { margin: 12px 12px 6px; }
  .pnext-btn { width: 100%; justify-content: center; }
  .pst.compact { padding-left: 12px; padding-right: 10px; }
  .pstep { max-width: 120px; }
}

/* ---------- Stufe 3 (24.10.2026): Zeitband im Kopf, Kartennamen nur bei Auswahl, Handy mit Umschalter Plan/Karte ---------- */
.pband { display: grid; grid-template-columns: repeat(var(--pband-n), minmax(0, 1fr)); column-gap: 4px; row-gap: 6px; padding: 0 0 18px; }
.pband-c { grid-row: 1; display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12.5px; color: var(--hell-2); }
.pband-c > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pband-c strong { color: var(--hell); font-weight: 600; }
.pband-c > i { flex: 1; min-width: 10px; height: 1px; background: rgba(251, 246, 236, 0.18); }
.pband-c > svg { flex: none; color: var(--bernstein-hell); }
.pband-s {
  grid-row: 2; font: inherit; position: relative; display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; height: 52px;
  padding: 0 10px; border: 0; border-radius: 10px; color: var(--ink); text-align: left; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pband-s.t0 { background-color: #F1CD98; --pband-g: #DDB27A; }
.pband-s.t1 { background-color: #DE9277; --pband-g: #C77C62; }
.pband-s.t2 { background-color: #A9C9C3; --pband-g: #8FB3AC; }
.pband-s.t3 { background-color: #D9C3E6; --pband-g: #C2A8D3; }
.pband-s.gap { background-image: repeating-linear-gradient(135deg, transparent 0 7px, var(--pband-g) 7px 10px); }
.pband-s.bad { box-shadow: inset 0 0 0 2px #B4432A; }
.pband-s.sel { box-shadow: 0 0 0 2px var(--nacht), 0 0 0 4px var(--bernstein); }
.pband-s:hover { transform: translateY(-1px); }
.pband-s:focus-visible, .pband-d:focus-visible { outline: 3px solid var(--bernstein); outline-offset: 2px; }
.pband-n { display: flex; align-items: center; gap: 7px; min-width: 0; }
.pband-no { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--hell); font-size: 11.5px; font-weight: 700; }
.pband-name { min-width: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pband-x { margin-left: auto; flex: none; font-size: 12.5px; font-weight: 600; }
.pband-st { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; max-width: 100%; box-sizing: border-box; font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pband-s.gap .pband-st, .pband-s.bad .pband-st { padding: 1px 7px; border-radius: 999px; background: rgba(251, 246, 236, 0.94); color: #8A5212; }
.pband-s.bad .pband-st { color: #8A3B1E; }
.pband-end { grid-row: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; height: 52px; box-sizing: border-box; overflow: hidden; border-radius: 10px; border: 1.5px dashed rgba(251, 246, 236, 0.35); color: var(--hell-3); font-size: 11.5px; }
.pband-d { grid-row: 3; font: inherit; display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; padding: 4px 0; border: 0; border-radius: 8px; background: transparent; color: var(--hell); cursor: pointer; }
.pband-d:hover { background: rgba(251, 246, 236, 0.08); }
.pband-d.sel { background: rgba(227, 165, 95, 0.2); }
.pband-wt { font-size: 11px; color: #9FB0AC; white-space: nowrap; }
.pband-dt { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pband-dn { display: none; }
.pband-m { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; overflow: hidden; font-size: 11px; color: var(--bernstein-hell); white-space: nowrap; }
.pband-m i { flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--bernstein); }
/* Lange Reisen: nur Datum, keine Wochentage und Merktage */
.pband.dense .pband-wt, .pband.dense .pband-m { display: none; }
.pband.dense .pband-dt { font-size: 11.5px; }
.pband.dense .pband-x { display: none; }
@media (max-width: 760px) {
  .pband { column-gap: 2px; row-gap: 5px; padding-bottom: 14px; }
  .pband-p, .pband-c > svg { display: none; }
  .pband-c { font-size: 11.5px; }
  .pband-s { height: 34px; padding: 0; align-items: center; border-radius: 8px; }
  .pband-name, .pband-x, .pband-st { display: none; }
  .pband-end { height: 34px; border-radius: 8px; }
  .pband-end span { display: none; }
  .pband-wt, .pband-dt, .pband-m { display: none; }
  .pband-d { padding: 2px 0; }
  .pband-d.tick .pband-dn { display: block; font-size: 10.5px; color: #9FB0AC; font-variant-numeric: tabular-nums; }
}
@media (prefers-reduced-motion: reduce) {
  .pband-s { transition: none; }
  .pband-s:hover { transform: none; }
}

/* Karte: Namen von Angeboten und hinzufügbaren Orten nur beim Zeigen, beim Fokus oder wenn die Karte in der Liste gezeigt wird */
.kpoi { padding: 4px; }
.kpoi .kpoi-t { display: none; }
.kpoi:hover, .kpoi:focus-visible, .kpoi.hi { padding-right: 10px; }
.kpoi:hover .kpoi-t, .kpoi:focus-visible .kpoi-t, .kpoi.hi .kpoi-t { display: inline; }
.kpoi.hi { z-index: 9; box-shadow: 0 0 0 3px var(--bernstein), 0 4px 12px rgba(20, 33, 31, 0.22); }
.kaddp.suggested .kaddp-t { display: none; }
.kaddp.suggested:hover .kaddp-t, .kaddp.suggested:focus-visible .kaddp-t, .kaddp.hi .kaddp-t { display: flex; }

/* Handy: Umschalter Plan / Karte (auf breiten Fenstern ausgeblendet) */
.pmview { display: none; }
@media (max-width: 899px) {
  .pmview {
    display: flex; position: sticky; top: 0; z-index: 25; gap: 4px; padding: 4px; margin: 0 0 2px; border-radius: 999px;
    background: #fff; border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(20, 33, 31, 0.08);
  }
  .pmview button { font: inherit; flex: 1; min-height: 42px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font-size: 14.5px; font-weight: 600; cursor: pointer; }
  .pmview button[aria-selected="true"] { background: var(--ink); color: #fff; }
  .pmview button:focus-visible { outline: 3px solid var(--bernstein); outline-offset: 2px; }
  .pmview { order: -2; }
  .pwork.m-plan:not(.is-focus) .pmap { display: none; }
  .pwork.m-plan.is-focus .pmap { height: 200px; min-height: 0; }
  /* Kartenband in der Station: nur der gewählte Ort mit Namen, keine Bedienelemente außer „Ganze Route“ */
  .pwork.m-plan.is-focus .kmap :is(.kname:not(.sel), .kaddp, .kother, .klabel, .kzoom, .kscale, .kpill) { display: none !important; }
  .pwork.m-map .plist { display: none; }
  .pwork.m-map .pmap { height: calc(100vh - var(--pbar-h, 96px) - 84px); height: calc(100dvh - var(--pbar-h, 96px) - 84px); min-height: 320px; }
}
/* Niedrige Fenster (z. B. Laptop 1280 × 720): Kopf und Zeitband kompakter, damit die Arbeitsfläche bleibt */
@media (min-width: 900px) and (max-height: 820px) {
  .pkopf .phead { padding: 8px 0 10px; }
  .pkopf .phead h1 { font-size: 26px; }
  .pband { row-gap: 4px; padding-bottom: 10px; }
  .pband-s, .pband-end { height: 40px; }
  .pband-st, .pband-wt, .pband-m { display: none; }
  .pband-d { padding: 1px 0; }
  .pband-dt { font-size: 12px; }
  .pwork { min-height: 360px; }
}
