/* V8 (BOOTE-ROUTEN, Doku/19_BOOTE_ROUTENPLANER.md): Routenplaner, Bootsauswahl, Bootsliste. Rund, rote Kopfzeile, rote Akzente, weiße fette Schrift auf Rot, kein Blau als Kopffarbe. Tippziele ≥ 44 px. */
#ui .rpl-sheet { --rpl-rot: #D92D20; --rpl-rot2: #B42318; --rpl-hell: #FEF0EE; border-radius: 24px 24px 0 0; box-shadow: 0 -8px 28px rgba(120, 20, 10, .28); }
#ui .rpl-sheet .sheet-handle { background: var(--rpl-rot); margin: 0 -12px; height: 18px; }
#ui .rpl-sheet .sheet-handle::before { background: rgba(255, 255, 255, .6); }
#ui .rpl-sheet .sheet-head { margin: 0 -12px; }
#ui .rpl-kopf { display: flex; align-items: center; gap: 10px; background: var(--rpl-rot); color: #fff; font-weight: 800; padding: 2px 12px 10px; min-height: 48px; }
#ui .rpl-kopf .ico, #ui .rpl-kopf .ic { color: #fff; flex: none; }
#ui .rpl-kopf-t { flex: 1 1 auto; min-width: 0; }
#ui .rpl-kopf-titel { font-size: 18px; font-weight: 800; line-height: 1.15; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ui .rpl-kopf-unter { font-size: 12.5px; font-weight: 700; color: #fff; opacity: .95; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ui .rpl-zu { background: rgba(255, 255, 255, .22); color: #fff; box-shadow: none; flex: none; }
#ui .rpl-zu .ic { color: #fff; }
#ui .btn.rpl-rot { background: var(--rpl-rot); color: #fff; font-weight: 800; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18), 0 2px 6px rgba(180, 35, 24, .35); }
#ui .btn.rpl-rot .ic { color: #fff; }
#ui .btn.rpl-off { opacity: .55; filter: grayscale(.5); }
#ui .rpl-planer .sheet-body { padding-top: 8px; }
#ui .rpl-planer .sheet-foot .btn { min-height: 46px; }
/* Karte */
#ui .rpl-karte { position: relative; border-radius: 16px; overflow: hidden; margin-bottom: 10px; line-height: 0; width: 100%; }
#ui .rpl-svg { display: block; width: 100%; height: auto; touch-action: manipulation; }
#ui .rpl-meer { fill: #E9F2F2; stroke: var(--rpl-rot); stroke-opacity: .25; stroke-width: 1.5; }
#ui .rpl-linie { fill: none; stroke: var(--rpl-rot); stroke-width: 2.5; stroke-linecap: round; opacity: .72; }
#ui .rpl-linie.sel { stroke-width: 4.5; opacity: 1; }
#ui .rpl-linie.aus { stroke: #8D8A97; stroke-dasharray: 5 5; opacity: .8; }
#ui .rpl-linie.entwurf { stroke: var(--rpl-rot2); stroke-dasharray: 7 5; stroke-width: 3; opacity: 1; }
#ui .rpl-pfeil { fill: var(--rpl-rot); stroke: #fff; stroke-width: 1; }
#ui .rpl-pfeil.sel { fill: var(--rpl-rot2); }
#ui .rpl-pfeil.aus { fill: #8D8A97; }
#ui .rpl-pfeil.rueck { opacity: .85; }
#ui .rpl-fang { fill: none; stroke: transparent; stroke-width: 26; pointer-events: stroke; cursor: pointer; }
#ui .rpl-insel { cursor: pointer; }
#ui .rpl-treffer { fill: transparent; }
#ui .rpl-land { fill: #E9C46A; stroke: #7A5C20; stroke-width: 1.5; }
#ui .rpl-insel.fremd .rpl-land { fill: #CFCBD6; stroke: #8D8A97; }
#ui .rpl-insel.von .rpl-land, #ui .rpl-insel.nach .rpl-land { fill: var(--rpl-rot); stroke: #fff; stroke-width: 2; }
#ui .rpl-name { font: 700 11px system-ui, sans-serif; fill: #2B2A33; text-anchor: middle; paint-order: stroke; stroke: rgba(255, 255, 255, .85); stroke-width: 3px; pointer-events: none; }
#ui .rpl-marke { font: 800 11px system-ui, sans-serif; fill: #fff; text-anchor: middle; pointer-events: none; }
#ui .rpl-leer { font: 700 13px system-ui, sans-serif; fill: #6A6775; text-anchor: middle; }
#ui .rpl-bootpunkt { fill: #fff; stroke: var(--rpl-rot2); stroke-width: 2.5; pointer-events: none; }
#ui .rpl-karte-hinweis { position: absolute; left: 8px; top: 8px; right: 8px; line-height: 1.25; pointer-events: none; }
#ui .rpl-karte-hinweis:not(.hidden) { display: inline-block; width: fit-content; max-width: calc(100% - 16px); background: var(--rpl-rot); color: #fff; font-size: 12.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
/* Übersicht */
#ui .rpl-neu { margin-bottom: 10px; }
#ui .rpl-route { background: var(--card2, #fff); border: 2px solid rgba(217, 45, 32, .16); border-radius: 16px; padding: 10px; margin-bottom: 8px; }
#ui .rpl-route.sel { border-color: var(--rpl-rot); background: var(--rpl-hell); }
#ui .rpl-route-kopf { display: flex; gap: 8px; align-items: flex-start; }
#ui .rpl-route-kopf .ico { color: var(--rpl-rot); flex: none; }
#ui .rpl-klartext { font-size: 14.5px; font-weight: 700; line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }
#ui .rpl-status { font-size: 12.5px; color: var(--ink2, #5A5866); margin: 4px 0 8px 30px; min-height: 16px; overflow-wrap: anywhere; }
#ui .rpl-status.wartet { color: var(--rpl-rot2); font-weight: 800; }
#ui .rpl-status.aus { color: #6A6775; font-style: italic; }
#ui .rpl-aktionen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
#ui .rpl-aktionen .btn { min-height: 44px; padding: 0 4px; font-size: 12.5px; gap: 4px; min-width: 0; }
#ui .rpl-aktionen .btn .btn-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ui .rpl-loeschen { color: var(--rpl-rot2); }
#ui .rpl-fuss { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
#ui .rpl-fuss .btn { min-height: 44px; padding: 0 6px; font-size: 13px; min-width: 0; }
/* Entwurf */
#ui .rpl-sek { margin-bottom: 12px; }
#ui .rpl-sek-titel { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 800; margin-bottom: 6px; }
#ui .rpl-sek-sub { font-size: 12px; font-weight: 600; color: var(--ink2, #5A5866); }
#ui .rpl-nr { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--rpl-rot); color: #fff; font-size: 13px; font-weight: 800; flex: none; }
#ui .rpl-boot { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 6px 10px; margin-bottom: 6px; border: 2px solid rgba(43, 42, 51, .12); border-radius: 14px; background: var(--card2, #fff); color: inherit; text-align: left; font: inherit; cursor: pointer; }
#ui .rpl-boot.sel { border-color: var(--rpl-rot); background: var(--rpl-hell); }
#ui .rpl-boot.off { opacity: .55; cursor: default; }
#ui .rpl-boot.fest { cursor: default; }
#ui .rpl-boot .ico { flex: none; }
#ui .rpl-boot-text { display: block; min-width: 0; flex: 1 1 auto; }
#ui .rpl-boot-name { display: block; font-size: 14.5px; font-weight: 800; }
#ui .rpl-boot-sub { display: block; font-size: 12px; color: var(--ink2, #5A5866); overflow-wrap: anywhere; line-height: 1.25; }
#ui .rpl-felder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#ui .rpl-feld { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 6px; border: 2px solid transparent; border-radius: 12px; }
#ui .rpl-feld.aktiv { border-color: var(--rpl-rot); background: var(--rpl-hell); }
#ui .rpl-feld-name { font-size: 12px; font-weight: 800; color: var(--rpl-rot2); }
#ui .rpl-feld-wert { font-size: 14px; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
#ui .rpl-sheet .select { min-height: 44px; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
#ui .rpl-richtung { background: var(--card2, #fff); border-radius: 14px; padding: 8px; margin-bottom: 8px; border: 1px solid rgba(43, 42, 51, .1); }
#ui .rpl-richtung-titel { font-size: 13.5px; font-weight: 800; margin-bottom: 6px; overflow-wrap: anywhere; }
#ui .rpl-ware { padding: 6px 0; border-top: 1px solid rgba(43, 42, 51, .08); }
#ui .rpl-ware-oben { display: flex; align-items: center; gap: 6px; min-width: 0; }
#ui .rpl-ware-oben .select { flex: 1 1 auto; }
#ui .rpl-ware-oben .ico { flex: none; }
#ui .rpl-lager { flex: none; font-size: 11.5px; font-weight: 700; color: var(--ink2, #5A5866); }
#ui .rpl-ware-unten { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
#ui .rpl-menge { flex: 1 1 auto; width: 0; min-width: 0; min-height: 44px; box-sizing: border-box; text-align: center; font-size: 16px; font-weight: 800; border: 2px solid rgba(43, 42, 51, .16); border-radius: 12px; background: #fff; color: inherit; }
#ui .rpl-ware-unten .btn-round { width: 44px; height: 44px; min-height: 44px; flex: none; }
#ui .rpl-weg { color: var(--rpl-rot2); }
#ui .rpl-dazu { min-height: 44px; margin-top: 6px; width: 100%; }
#ui .rpl-alt-regel { display: flex; align-items: center; gap: 6px; font-size: 13px; padding: 6px 0; flex-wrap: wrap; }
#ui .rpl-kap { font-size: 12.5px; font-weight: 700; color: var(--ink2, #5A5866); }
#ui .rpl-kap.zuviel { color: var(--rpl-rot2); font-weight: 800; }
#ui .rpl-schalter { display: flex; align-items: center; gap: 8px; min-height: 56px; margin-top: 8px; }
#ui .rpl-vorschau { background: var(--rpl-hell); border-left: 4px solid var(--rpl-rot); border-radius: 10px; padding: 8px 10px; font-size: 14.5px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
#ui .rpl-warten-text { display: block; margin-top: 6px; line-height: 1.3; }
/* Bootsauswahl */
#ui .bw-sheet.auto { max-height: 62%; }
#ui .bw-sheet .sheet-body { padding-top: 8px; }
#ui .bw-zeile { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
#ui .bw-ziel { font-weight: 700; }
#ui .bw-route { background: var(--card2, #fff); border: 2px solid rgba(217, 45, 32, .2); border-radius: 12px; padding: 8px; margin-bottom: 8px; }
#ui .bw-route.pausiert { border-color: var(--rpl-rot); background: var(--rpl-hell); }
#ui .bw-route-text { font-size: 13.5px; font-weight: 700; overflow-wrap: anywhere; }
#ui .bw-route-status { font-size: 12.5px; font-weight: 700; color: var(--rpl-rot2); margin: 2px 0 0; overflow-wrap: anywhere; }
#ui .bw-fortsetzen { margin-top: 6px; }
#ui .bw-tipp { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; color: var(--ink2, #5A5866); margin-bottom: 8px; line-height: 1.3; }
#ui .bw-tipp .ic { flex: none; color: var(--rpl-rot); }
#ui .bw-knoepfe { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; margin-bottom: 6px; }
#ui .bw-knoepfe .btn { min-height: 44px; padding: 0 6px; font-size: 13px; min-width: 0; }
#ui .bw-knoepfe .btn .btn-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ui .bw-wege .bw-planer { grid-column: 1 / -1; }
#ui .bw-gruende { font-size: 12px; color: var(--ink2, #5A5866); margin-bottom: 6px; line-height: 1.3; }
/* Bootsliste */
#ui .bl-sheet .sheet-body { padding-top: 8px; }
#ui .bl-zeile { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 6px 10px; margin-bottom: 6px; border: 2px solid rgba(217, 45, 32, .16); border-radius: 14px; background: var(--card2, #fff); color: inherit; text-align: left; font: inherit; cursor: pointer; }
#ui .bl-zeile:active { background: var(--rpl-hell); }
#ui .bl-ic { flex: none; line-height: 0; }
#ui .bl-text { display: block; flex: 1 1 auto; min-width: 0; }
#ui .bl-name { display: block; font-size: 14.5px; font-weight: 800; }
#ui .bl-sub { display: block; font-size: 12px; color: var(--ink2, #5A5866); overflow-wrap: anywhere; line-height: 1.25; }
#ui .bl-pfeil { flex: none; line-height: 0; color: var(--rpl-rot); }
#ui .bl-fuss { margin-top: 8px; }
/* Einstiege aus den alten Menüs */
#ui .btn.rt-zum-planer { min-height: 44px; margin: 0 0 6px; }
#ui .btn.werft-planer { margin-top: 6px; }
#ui .boot-waehlbar { cursor: pointer; }
/* Weltkarte: Richtungspfeil und gewählte Route */
#ui .wm-route.sel { stroke: #FF5A4F; stroke-width: 4px; stroke-dasharray: none; }
#ui .wm-routepfeil { fill: rgba(255, 255, 255, .92); stroke: rgba(120, 20, 10, .55); stroke-width: 1; pointer-events: none; }
#ui .wm-routepfeil.inactive { fill: rgba(255, 255, 255, .4); }
#ui .wm-routepfeil.sel { fill: #FF5A4F; stroke: #fff; }
#ui .wm-planer { min-height: 44px; flex: none; background: #D92D20; color: #fff; font-weight: 800; }
#ui .wm-planer .ic { color: #fff; }
@media (max-width: 400px) {
  #ui .rpl-sheet .sheet-handle, #ui .rpl-sheet .sheet-head { margin-left: -8px; margin-right: -8px; }
  #ui .wm-planer .btn-label { display: none; }
  #ui .wm-planer { width: 44px; padding: 0; }
}
