
html, body {
  margin: 0;
  padding: 0;
  background: #d9dde2;
  font-family: Arial, Helvetica, sans-serif;
  color: #243647;
}

#modern-runtime-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#modern-runtime-app.rt-nav-bottom .rt-menubar { order: 3; border-top: 1px solid #425364; border-bottom: 0; }
#modern-runtime-app.rt-nav-bottom .rt-content { order: 2; }
#modern-runtime-app.rt-nav-bottom .rt-header { order: 1; }

#modern-runtime-app.rt-nav-left {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
}
#modern-runtime-app.rt-nav-left .rt-header { grid-column: 1 / -1; grid-row: 1; }
#modern-runtime-app.rt-nav-left .rt-menubar { grid-column: 1; grid-row: 2; border-bottom: 0; border-right: 1px solid #425364; padding: 8px; }
#modern-runtime-app.rt-nav-left .rt-content { grid-column: 2; grid-row: 2; min-width: 0; }
#modern-runtime-app.rt-nav-left .rt-nav { flex-direction: column; align-items: stretch; gap: 7px; }
#modern-runtime-app.rt-nav-left .rt-nav-spacer { display: none; }
#modern-runtime-app.rt-nav-left .rt-nav-actions { display: flex; flex-direction: column; gap: 7px; }
#modern-runtime-app.rt-nav-left .rt-nav-link,
#modern-runtime-app.rt-nav-left .rt-nav-toggle { width: 100%; justify-content: flex-start; min-width: 0; }
#modern-runtime-app.rt-nav-left .rt-dropdown { position: static; margin-top: 6px; min-width: 0; max-width: none; max-height: 340px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); }

#modern-runtime-app.rt-mode-icons-only .rt-nav-text { display: none; }
#modern-runtime-app.rt-mode-icons-only .rt-nav-link,
#modern-runtime-app.rt-mode-icons-only .rt-nav-toggle { min-width: 42px; padding-left: 10px; padding-right: 10px; }
#modern-runtime-app.rt-mode-icons-only.rt-nav-left .rt-nav-link,
#modern-runtime-app.rt-mode-icons-only.rt-nav-left .rt-nav-toggle { justify-content: center; }
#modern-runtime-app.rt-mode-text-only .rt-nav-icon { display: none; }
#modern-runtime-app .rt-nav-icon { margin-right: 6px; }
#modern-runtime-app.rt-mode-icons-only .rt-nav-icon { margin-right: 0; }

#modern-runtime-app.rt-kiosk {
  display: block;
  min-height: 100vh;
  background: #111;
}
#modern-runtime-app.rt-kiosk .rt-header,
#modern-runtime-app.rt-kiosk .rt-menubar,
#modern-runtime-app.rt-kiosk .rt-footer-row,
#modern-runtime-app.rt-kiosk .rt-legend { display: none !important; }
#modern-runtime-app.rt-kiosk .rt-content { padding: 0; min-height: 100vh; }
#modern-runtime-app.rt-kiosk .rt-page-card { max-width: none; margin: 0; border: 0; border-radius: 0; padding: 0; background: transparent; }
#modern-runtime-app.rt-kiosk .rt-stage-wrap { border-radius: 0; }

#modern-runtime-app .rt-header {
  background: #6b7a8c;
  color: #fff;
  padding: 10px 16px;
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  border-bottom: 1px solid rgba(0,0,0,.12);
}

#modern-runtime-app .rt-header .subline {
  font-size: 11px;
  font-weight: normal;
  color: #e5ebf0;
  margin-left: 8px;
}

/* =========================
   Menü
========================= */

#modern-runtime-app .rt-menubar {
  background: #4e647a;
  border-bottom: 1px solid #425364;
  padding: 6px 8px;
  position: relative;
  z-index: 5000;
  overflow: visible;
}

#modern-runtime-app .rt-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
}

#modern-runtime-app .rt-nav-spacer {
  flex: 1 1 auto;
}

#modern-runtime-app .rt-nav-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#modern-runtime-app .rt-nav-item {
  position: relative;
  overflow: visible;
}

#modern-runtime-app .rt-nav-link,
#modern-runtime-app .rt-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 8px 14px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.14);
  background: #557089;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}

#modern-runtime-app .rt-nav-item.open > .rt-nav-toggle,
#modern-runtime-app .rt-nav-link:hover,
#modern-runtime-app .rt-nav-toggle:hover,
#modern-runtime-app .rt-nav-link.active {
  background: #3f556a;
}

#modern-runtime-app .rt-nav-toggle::after {
  content: "▼";
  font-size: 10px;
  margin-left: 7px;
}

#modern-runtime-app .rt-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 280px;
  max-width: min(92vw, 1100px);
  max-height: calc(100vh - 90px);
  background: #ffffff;
  border: 1px solid #98adc2;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
  z-index: 9999;
  padding: 6px 0;
  overflow-x: hidden;
  overflow-y: auto;
}

#modern-runtime-app .rt-nav-item.open > .rt-dropdown {
  display: block;
}

#modern-runtime-app .rt-nav-item:last-child .rt-dropdown,
#modern-runtime-app .rt-nav-item:nth-last-child(2) .rt-dropdown {
  left: auto;
  right: 0;
}

#modern-runtime-app .rt-dd-link {
  display: block;
  padding: 9px 12px;
  text-decoration: none;
  color: #17324f;
  font-size: 13px;
  font-weight: bold;
  background: #ffffff;
}

#modern-runtime-app .rt-dd-link:hover {
  background: #edf2f6;
  color: #17324f;
}

#modern-runtime-app .rt-dd-link.active {
  background: #5a7187;
  color: #ffffff;
}
#modern-runtime-app .rt-top-dd-link { min-width: 270px; }
#modern-runtime-app .rt-top-dropdown .rt-dd-section-title { background:#f8fafc; border-top:1px solid #edf2f7; }
#modern-runtime-app .rt-top-dropdown .rt-dd-section-title:first-child { border-top:0; }

/* =========================
   Inhalt
========================= */

/* Modern Home SEO V1 · Einführung außerhalb der Anlagen-Zeichenfläche. */
#modern-runtime-app .rt-seo-intro {
  box-sizing: border-box;
  max-width: 1680px;
  margin: 0 auto 12px;
  padding: 14px 18px;
  border: 1px solid #c8cfd6;
  border-radius: 10px;
  background: #f5f7fa;
  color: #243647;
  text-align: left;
}
#modern-runtime-app .rt-seo-intro h1 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
}
#modern-runtime-app .rt-seo-intro p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
#modern-runtime-app.rt-theme-dark .rt-seo-intro {
  background: #1f2937;
  border-color: #374151;
  color: #e5e7eb;
}
#modern-runtime-app.rt-theme-glass .rt-seo-intro {
  background: rgba(255,255,255,.65);
  border-color: rgba(255,255,255,.7);
}
#modern-runtime-app.rt-kiosk .rt-seo-intro,
#modern-runtime-app.rt-popup-mode .rt-seo-intro { display: none; }
@media (max-width: 640px) {
  #modern-runtime-app .rt-seo-intro { margin-bottom: 8px; padding: 12px; }
  #modern-runtime-app .rt-seo-intro h1 { font-size: 18px; }
  #modern-runtime-app .rt-seo-intro p { font-size: 13px; }
}

#modern-runtime-app .rt-content {
  padding: 12px 10px 16px;
  background: #d9dde2;
}

#modern-runtime-app .rt-page-card {
  max-width: calc(var(--modern-rt-stage-width) + 80px);
  margin: 0 auto;
  background: #e6e6e6;
  border: 1px solid #c8cfd6;
  border-radius: 10px;
  padding: 8px;
}

#modern-runtime-app .rt-stage-wrap {
  position: relative;
  width: 100%;
  overflow: auto;
  border-radius: 8px;
  background: #dddddd;
}

#modern-runtime-app .rt-stage {
  position: relative;
  width: var(--modern-rt-stage-width);
  height: var(--modern-rt-stage-height);
  margin: 0 auto;
  background: #dddddd;
}

#modern-runtime-app .rt-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--modern-rt-stage-width);
  height: var(--modern-rt-stage-height);
  display: block;
  user-select: none;
  pointer-events: none;
  z-index: 1;
}

#modern-runtime-app .rt-points-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* =========================
   Punkte / Werte
========================= */

#modern-runtime-app .rt-point {
  position: absolute;
  min-width: 42px;
  --rt-anchor-x: -50%;
  --rt-anchor-y: -50%;
  transform: translate(var(--rt-anchor-x), var(--rt-anchor-y));
  z-index: 3;
}

/* Step 2.3.601 · Persistente Kantenanker.
   Damit bleibt "Links ausrichten" auch dann exakt linksbündig, wenn sich die
   sichtbare Text-/Wertbreite später ändert. Ohne Klasse bleibt das historische
   Mittelpunkt-Verhalten vollständig erhalten. */
#modern-runtime-app .rt-point.rt-anchor-left  { --rt-anchor-x: 0%; }
#modern-runtime-app .rt-point.rt-anchor-right { --rt-anchor-x: -100%; }
#modern-runtime-app .rt-point.rt-anchor-top   { --rt-anchor-y: 0%; }
#modern-runtime-app .rt-point.rt-anchor-bottom{ --rt-anchor-y: -100%; }

#modern-runtime-app .rt-toptext {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: bold;
  color: #32485f;
  white-space: nowrap;
}

#modern-runtime-app .rt-point-btn {
  display: inline-flex;
  align-items: center;
  justify-content: var(--rt-justify-content, center);
  gap: 3px;
  padding: 1px 5px;
  min-height: 18px;
  width: var(--rt-box-width, auto);
  height: var(--rt-box-height, auto);
  background: var(--rt-bg-color, rgba(255,255,255,.9));
  border: 1px solid var(--rt-border-color, #b8c0c8);
  border-radius: 3px;
  color: var(--rt-font-color, #243b63);
  font-size: var(--rt-font-size, 11px);
  font-weight: var(--rt-font-weight, bold);
  line-height: 1;
  text-align: var(--rt-text-align, center);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

#modern-runtime-app .rt-point-btn.rt-static {
  cursor: default;
}

#modern-runtime-app .rt-point-btn.rt-clickable-media {
  cursor: pointer;
}

/* Step 2.3.597 · Lange String-/Textwerte sauber innerhalb der Box umbrechen.
   Gilt bewusst nur für String/Text/Label-Punkte, nicht für Zahlen, Status oder Buttons. */
#modern-runtime-app .rt-point.rt-string .rt-point-btn,
#modern-runtime-app .rt-point.rt-text .rt-point-btn,
#modern-runtime-app .rt-point.rt-label .rt-point-btn{
  white-space:pre-wrap!important;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
  line-height:1.4!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  align-items:flex-start!important;
  flex-wrap:wrap!important;
}
#modern-runtime-app .rt-point.rt-string .rt-point-value,
#modern-runtime-app .rt-point.rt-text .rt-point-value,
#modern-runtime-app .rt-point.rt-label .rt-point-value{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  white-space:pre-wrap!important;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
  line-height:1.4!important;
  box-sizing:border-box!important;
}
#modern-runtime-app .rt-point.rt-string .rt-prefix,
#modern-runtime-app .rt-point.rt-string .rt-point-suffix,
#modern-runtime-app .rt-point.rt-text .rt-prefix,
#modern-runtime-app .rt-point.rt-text .rt-point-suffix,
#modern-runtime-app .rt-point.rt-label .rt-prefix,
#modern-runtime-app .rt-point.rt-label .rt-point-suffix{
  white-space:pre-wrap!important;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
}
/* Bewusster Einzeilenmodus ohne DB-Änderung über CSS-Klasse im Designer. */
#modern-runtime-app .rt-point.rt-text-nowrap .rt-point-btn,
#modern-runtime-app .rt-point.rt-text-nowrap .rt-point-value{
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
}
#modern-runtime-app .rt-point.rt-text-normal .rt-point-btn,
#modern-runtime-app .rt-point.rt-text-normal .rt-point-value{
  white-space:normal!important;
}
#modern-runtime-app .rt-point.rt-text-prewrap .rt-point-btn,
#modern-runtime-app .rt-point.rt-text-prewrap .rt-point-value{
  white-space:pre-wrap!important;
}

#modern-runtime-app .rt-point-btn.modern-btn,
#modern-runtime-app .rt-point-btn.modern-btn-dark {
  border-radius: 10px;
  padding: 0 14px;
  box-shadow: 0 4px 12px rgba(15,23,42,.18);
  letter-spacing: .01em;
}

#modern-runtime-app .rt-point-btn.modern-card-glass {
  border-radius: 12px;
  backdrop-filter: blur(7px);
  box-shadow: 0 8px 22px rgba(15,23,42,.13);
}

#modern-runtime-app .rt-point-btn.modern-badge-warn,
#modern-runtime-app .rt-point-btn.modern-badge-alarm,
#modern-runtime-app .rt-point-btn.modern-badge-ok,
#modern-runtime-app .rt-point-btn.modern-badge-info {
  border-radius: 999px;
  padding: 2px 9px;
}

#modern-runtime-app .rt-point-btn.modern-headline,
#modern-runtime-app .rt-point-btn.modern-small-text {
  padding: 0;
  min-height: 0;
}



/* Step 2.3.104 - Runtime Design-Feintuning: zusätzliche CSS-Klassen aus dem Builder */
#modern-runtime-app .rt-point.mb104-r0 .rt-point-btn,
#modern-runtime-app .rt-point.mb104-r0 .rt-media-box,
#modern-runtime-app .rt-point.mb104-r0 .rt-weather-widget,
#modern-runtime-app .rt-point.mb104-r0 .rt-map-widget,
#modern-runtime-app .rt-point.mb104-r0 .rt-temp-badge-widget,
#modern-runtime-app .rt-point.mb104-r0 .rt-counter-card-widget { border-radius: 0 !important; }
#modern-runtime-app .rt-point.mb104-r4 .rt-point-btn,
#modern-runtime-app .rt-point.mb104-r4 .rt-media-box,
#modern-runtime-app .rt-point.mb104-r4 .rt-weather-widget,
#modern-runtime-app .rt-point.mb104-r4 .rt-map-widget,
#modern-runtime-app .rt-point.mb104-r4 .rt-temp-badge-widget,
#modern-runtime-app .rt-point.mb104-r4 .rt-counter-card-widget { border-radius: 4px !important; }
#modern-runtime-app .rt-point.mb104-r8 .rt-point-btn,
#modern-runtime-app .rt-point.mb104-r8 .rt-media-box,
#modern-runtime-app .rt-point.mb104-r8 .rt-weather-widget,
#modern-runtime-app .rt-point.mb104-r8 .rt-map-widget,
#modern-runtime-app .rt-point.mb104-r8 .rt-temp-badge-widget,
#modern-runtime-app .rt-point.mb104-r8 .rt-counter-card-widget { border-radius: 8px !important; }
#modern-runtime-app .rt-point.mb104-r12 .rt-point-btn,
#modern-runtime-app .rt-point.mb104-r12 .rt-media-box,
#modern-runtime-app .rt-point.mb104-r12 .rt-weather-widget,
#modern-runtime-app .rt-point.mb104-r12 .rt-map-widget,
#modern-runtime-app .rt-point.mb104-r12 .rt-temp-badge-widget,
#modern-runtime-app .rt-point.mb104-r12 .rt-counter-card-widget { border-radius: 12px !important; }
#modern-runtime-app .rt-point.mb104-r16 .rt-point-btn,
#modern-runtime-app .rt-point.mb104-r16 .rt-media-box,
#modern-runtime-app .rt-point.mb104-r16 .rt-weather-widget,
#modern-runtime-app .rt-point.mb104-r16 .rt-map-widget,
#modern-runtime-app .rt-point.mb104-r16 .rt-temp-badge-widget,
#modern-runtime-app .rt-point.mb104-r16 .rt-counter-card-widget { border-radius: 16px !important; }
#modern-runtime-app .rt-point.mb104-r24 .rt-point-btn,
#modern-runtime-app .rt-point.mb104-r24 .rt-media-box,
#modern-runtime-app .rt-point.mb104-r24 .rt-weather-widget,
#modern-runtime-app .rt-point.mb104-r24 .rt-map-widget,
#modern-runtime-app .rt-point.mb104-r24 .rt-temp-badge-widget,
#modern-runtime-app .rt-point.mb104-r24 .rt-counter-card-widget { border-radius: 24px !important; }
#modern-runtime-app .rt-point.mb104-rpill .rt-point-btn,
#modern-runtime-app .rt-point.mb104-rpill .rt-media-box,
#modern-runtime-app .rt-point.mb104-rpill .rt-weather-widget,
#modern-runtime-app .rt-point.mb104-rpill .rt-map-widget,
#modern-runtime-app .rt-point.mb104-rpill .rt-temp-badge-widget,
#modern-runtime-app .rt-point.mb104-rpill .rt-counter-card-widget { border-radius: 999px !important; }

#modern-runtime-app .rt-point.mb104-sh-none .rt-point-btn,
#modern-runtime-app .rt-point.mb104-sh-none .rt-media-box,
#modern-runtime-app .rt-point.mb104-sh-none .rt-weather-widget,
#modern-runtime-app .rt-point.mb104-sh-none .rt-map-widget,
#modern-runtime-app .rt-point.mb104-sh-none .rt-temp-badge-widget,
#modern-runtime-app .rt-point.mb104-sh-none .rt-counter-card-widget { box-shadow: none !important; filter: none !important; }
#modern-runtime-app .rt-point.mb104-sh-soft .rt-point-btn,
#modern-runtime-app .rt-point.mb104-sh-soft .rt-media-box,
#modern-runtime-app .rt-point.mb104-sh-soft .rt-weather-widget,
#modern-runtime-app .rt-point.mb104-sh-soft .rt-map-widget,
#modern-runtime-app .rt-point.mb104-sh-soft .rt-temp-badge-widget,
#modern-runtime-app .rt-point.mb104-sh-soft .rt-counter-card-widget { box-shadow: 0 4px 12px rgba(15,23,42,.13) !important; }
#modern-runtime-app .rt-point.mb104-sh-card .rt-point-btn,
#modern-runtime-app .rt-point.mb104-sh-card .rt-media-box,
#modern-runtime-app .rt-point.mb104-sh-card .rt-weather-widget,
#modern-runtime-app .rt-point.mb104-sh-card .rt-map-widget,
#modern-runtime-app .rt-point.mb104-sh-card .rt-temp-badge-widget,
#modern-runtime-app .rt-point.mb104-sh-card .rt-counter-card-widget { box-shadow: 0 10px 26px rgba(15,23,42,.18) !important; }
#modern-runtime-app .rt-point.mb104-sh-strong .rt-point-btn,
#modern-runtime-app .rt-point.mb104-sh-strong .rt-media-box,
#modern-runtime-app .rt-point.mb104-sh-strong .rt-weather-widget,
#modern-runtime-app .rt-point.mb104-sh-strong .rt-map-widget,
#modern-runtime-app .rt-point.mb104-sh-strong .rt-temp-badge-widget,
#modern-runtime-app .rt-point.mb104-sh-strong .rt-counter-card-widget { box-shadow: 0 18px 45px rgba(15,23,42,.26) !important; }
#modern-runtime-app .rt-point.mb104-glow-blue .rt-point-btn,
#modern-runtime-app .rt-point.mb104-glow-blue .rt-media-box,
#modern-runtime-app .rt-point.mb104-glow-blue .rt-weather-widget,
#modern-runtime-app .rt-point.mb104-glow-blue .rt-map-widget,
#modern-runtime-app .rt-point.mb104-glow-blue .rt-temp-badge-widget,
#modern-runtime-app .rt-point.mb104-glow-blue .rt-counter-card-widget { box-shadow: 0 0 0 2px rgba(59,130,246,.20),0 0 18px rgba(59,130,246,.48) !important; }
#modern-runtime-app .rt-point.mb104-glow-green .rt-point-btn,
#modern-runtime-app .rt-point.mb104-glow-green .rt-media-box,
#modern-runtime-app .rt-point.mb104-glow-green .rt-weather-widget,
#modern-runtime-app .rt-point.mb104-glow-green .rt-map-widget,
#modern-runtime-app .rt-point.mb104-glow-green .rt-temp-badge-widget,
#modern-runtime-app .rt-point.mb104-glow-green .rt-counter-card-widget { box-shadow: 0 0 0 2px rgba(34,197,94,.20),0 0 18px rgba(34,197,94,.48) !important; }
#modern-runtime-app .rt-point.mb104-glow-red .rt-point-btn,
#modern-runtime-app .rt-point.mb104-glow-red .rt-media-box,
#modern-runtime-app .rt-point.mb104-glow-red .rt-weather-widget,
#modern-runtime-app .rt-point.mb104-glow-red .rt-map-widget,
#modern-runtime-app .rt-point.mb104-glow-red .rt-temp-badge-widget,
#modern-runtime-app .rt-point.mb104-glow-red .rt-counter-card-widget { box-shadow: 0 0 0 2px rgba(239,68,68,.22),0 0 18px rgba(239,68,68,.50) !important; }
#modern-runtime-app .rt-point.mb104-sh-soft .rt-battery-widget,
#modern-runtime-app .rt-point.mb104-sh-soft .rt-led-widget { filter: drop-shadow(0 4px 8px rgba(15,23,42,.18)); }
#modern-runtime-app .rt-point.mb104-sh-card .rt-battery-widget,
#modern-runtime-app .rt-point.mb104-sh-card .rt-led-widget { filter: drop-shadow(0 8px 16px rgba(15,23,42,.22)); }
#modern-runtime-app .rt-point.mb104-sh-strong .rt-battery-widget,
#modern-runtime-app .rt-point.mb104-sh-strong .rt-led-widget { filter: drop-shadow(0 12px 28px rgba(15,23,42,.32)); }

#modern-runtime-app .rt-point.mb104-pad-none .rt-point-btn { padding: 0 !important; }
#modern-runtime-app .rt-point.mb104-pad-xs .rt-point-btn { padding: 2px 6px !important; }
#modern-runtime-app .rt-point.mb104-pad-sm .rt-point-btn { padding: 5px 10px !important; }
#modern-runtime-app .rt-point.mb104-pad-md .rt-point-btn { padding: 8px 14px !important; }
#modern-runtime-app .rt-point.mb104-pad-lg .rt-point-btn { padding: 12px 18px !important; }

#modern-runtime-app .rt-point.mb104-bw0 .rt-point-btn { border-width: 0 !important; }
#modern-runtime-app .rt-point.mb104-bw1 .rt-point-btn { border-width: 1px !important; }
#modern-runtime-app .rt-point.mb104-bw2 .rt-point-btn { border-width: 2px !important; }
#modern-runtime-app .rt-point.mb104-bw3 .rt-point-btn { border-width: 3px !important; }
#modern-runtime-app .rt-point.mb104-border-dashed .rt-point-btn { border-style: dashed !important; }

#modern-runtime-app .rt-point.mb104-blur .rt-point-btn,
#modern-runtime-app .rt-point.mb104-blur .rt-media-box,
#modern-runtime-app .rt-point.mb104-blur .rt-weather-widget,
#modern-runtime-app .rt-point.mb104-blur .rt-map-widget { backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
#modern-runtime-app .rt-point.mb104-blur-strong .rt-point-btn,
#modern-runtime-app .rt-point.mb104-blur-strong .rt-media-box,
#modern-runtime-app .rt-point.mb104-blur-strong .rt-weather-widget,
#modern-runtime-app .rt-point.mb104-blur-strong .rt-map-widget { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
#modern-runtime-app .rt-point.mb104-op100 { opacity: 1; }
#modern-runtime-app .rt-point.mb104-op90 { opacity: .90; }
#modern-runtime-app .rt-point.mb104-op75 { opacity: .75; }
#modern-runtime-app .rt-point.mb104-op50 { opacity: .50; }
#modern-runtime-app .rt-point.mb104-hover-lift .rt-point-btn,
#modern-runtime-app .rt-point.mb104-hover-lift .rt-media-box,
#modern-runtime-app .rt-point.mb104-hover-lift .rt-weather-widget,
#modern-runtime-app .rt-point.mb104-hover-lift .rt-map-widget { transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
#modern-runtime-app .rt-point.mb104-hover-lift:hover .rt-point-btn,
#modern-runtime-app .rt-point.mb104-hover-lift:hover .rt-media-box,
#modern-runtime-app .rt-point.mb104-hover-lift:hover .rt-weather-widget,
#modern-runtime-app .rt-point.mb104-hover-lift:hover .rt-map-widget { transform: translateY(-2px); }
#modern-runtime-app .rt-point.mb104-hover-bright:hover .rt-point-btn,
#modern-runtime-app .rt-point.mb104-hover-bright:hover .rt-media-box,
#modern-runtime-app .rt-point.mb104-hover-bright:hover .rt-weather-widget,
#modern-runtime-app .rt-point.mb104-hover-bright:hover .rt-map-widget { filter: brightness(1.07); }

#modern-runtime-app .rt-point-btn:hover {
  background: #ffffff;
  border-color: #8da0b3;
  color: #243b63;
}

#modern-runtime-app .rt-point-btn.rt-static:hover {
  background: var(--rt-bg-color, rgba(255,255,255,.9));
  border-color: var(--rt-border-color, #b8c0c8);
  color: var(--rt-font-color, #243b63);
}

#modern-runtime-app .rt-point.rt-state .rt-point-btn {
  min-width: 28px;
  justify-content: center;
}

#modern-runtime-app .rt-state-on .rt-point-btn {
  color: var(--rt-font-color, #2f6b3d);
  border-color: var(--rt-border-color, #98b4a0);
  background: var(--rt-bg-color, #f4f7f4);
}

#modern-runtime-app .rt-state-off .rt-point-btn {
  color: var(--rt-font-color, #243b63);
  border-color: var(--rt-border-color, #b8c0c8);
  background: var(--rt-bg-color, rgba(255,255,255,.9));
}

#modern-runtime-app .rt-point-loading .rt-point-btn {
  opacity: .65;
}

#modern-runtime-app .rt-label .rt-point-btn {
  cursor: default;
}

#modern-runtime-app .rt-label .rt-point-value {
  display: inline-block;
}

#modern-runtime-app .rt-point-value img {
  display: inline-block;
  vertical-align: middle;
  max-height: 20px;
  max-width: 50px;
}

#modern-runtime-app .rt-inline-icon {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  min-width: 1.15em;
  object-fit: contain;
  vertical-align: -0.18em;
  flex: 0 0 auto;
}

/* 2.3.444: Designer-V3-Icons für normale Wert-/Statuspunkte. */
#modern-runtime-app .rt-runtime-icon {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:1.25em;
  height:1.25em;
  min-width:1.25em;
  line-height:1;
  margin-right:.22em;
  vertical-align:-.18em;
  overflow:hidden;
  font-size:1.05em;
  font-weight:900;
}
#modern-runtime-app .rt-runtime-icon img,
#modern-runtime-app .rt-runtime-icon .rt-runtime-icon-img {
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  display:block;
}
#modern-runtime-app .rt-runtime-icon.rt-icon-hidden { display:none!important; }
/* 2.3.447: Mini-Trend direkt im Wert-/Statusfeld. Der Verlauf nutzt nur Live-Werte seit Seitenaufruf. */
#modern-runtime-app .rt-point-btn:has(.rt-mini-trend) {
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  row-gap: 1px;
}
#modern-runtime-app .rt-mini-trend {
  display: block;
  flex: 0 0 76px;
  width: 76px;
  height: 21px;
  margin: 1px auto 0;
  line-height: 0;
  opacity: .92;
}
#modern-runtime-app .rt-mini-trend canvas {
  display: block;
  width: 76px;
  height: 21px;
}
#modern-runtime-app .rt-mini-trend.empty {
  opacity: .35;
}
#modern-runtime-app .rt-point-btn:has(.rt-runtime-icon) { gap:.22em; align-items:center; }
#modern-runtime-app .rt-runtime-icon:empty { display:none!important; }
#modern-runtime-app .rt-point-btn.modern-btn .rt-inline-icon,
#modern-runtime-app .rt-point-btn.modern-btn-dark .rt-inline-icon {
  width: 1.25em;
  height: 1.25em;
  min-width: 1.25em;
}


#modern-runtime-app .rt-point.rt-animation,
#modern-runtime-app .rt-point.rt-image,
#modern-runtime-app .rt-point.rt-camera,

#modern-runtime-app .rt-point.rt-map_widget{min-width:0;line-height:1;display:block;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
#modern-runtime-app .rt-map-widget{width:var(--rt-box-width,500px);height:var(--rt-box-height,430px);min-width:180px;min-height:140px;background:rgba(20,24,30,.86);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);border:1px solid rgba(255,255,255,.14);border-radius:14px;box-shadow:0 8px 22px rgba(0,0,0,.35);color:#eef3f8;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;overflow:hidden;box-sizing:border-box;font-family:Arial,Helvetica,sans-serif}
#modern-runtime-app .rt-map-head{display:flex;align-items:center;gap:8px;padding:10px 12px;background:rgba(20,24,30,.70);border-bottom:1px solid rgba(255,255,255,.12)}
#modern-runtime-app .rt-map-dot{width:10px;height:10px;border-radius:50%;background:#48d05f;box-shadow:0 0 8px rgba(72,208,95,.7);flex:0 0 10px}#modern-runtime-app .rt-map-widget.invalid .rt-map-dot{background:#ff5b5b;box-shadow:0 0 8px rgba(255,91,91,.7)}
#modern-runtime-app .rt-map-title{font-size:15px;font-weight:900;color:#fff;line-height:1.15}#modern-runtime-app .rt-map-subtitle{font-size:11px;color:#b8c3cf;margin-top:2px}
#modern-runtime-app .rt-map-canvas{display:block;width:100%;height:100%;min-height:140px;background:#1a1f25;overflow:hidden;box-sizing:border-box}
#modern-runtime-app .rt-map-meta{padding:7px 10px;font-size:11px;color:#d8e1ea;line-height:1.4;background:rgba(15,23,42,.56)}#modern-runtime-app .rt-map-meta .label{color:#9fb0c0}
#modern-runtime-app .rt-map-links{padding:0 10px 9px;font-size:11px;background:rgba(15,23,42,.56)}#modern-runtime-app .rt-map-links a{color:#7fc4ff;text-decoration:none}#modern-runtime-app .rt-map-links a:hover{text-decoration:underline}
#modern-runtime-app .rt-map-error{display:none;padding:12px;margin:10px;border:1px solid rgba(255,120,120,.35);border-radius:10px;background:rgba(100,20,20,.28);color:#ffd2d2;font-weight:bold;font-size:12px}#modern-runtime-app .rt-map-widget.invalid .rt-map-error{display:block}#modern-runtime-app .rt-map-widget.invalid .rt-map-canvas,#modern-runtime-app .rt-map-widget.invalid .rt-map-meta,#modern-runtime-app .rt-map-widget.invalid .rt-map-links{display:none}
#modern-runtime-app .custom-car-marker{background:transparent;border:none}#modern-runtime-app .car-marker-dot{width:18px;height:18px;border-radius:50%;background:#2ecc71;border:3px solid #ffffff;box-shadow:0 0 12px rgba(46,204,113,.7);box-sizing:border-box}.leaflet-control-attribution,.leaflet-control-zoom a{font-size:11px}

#modern-runtime-app .rt-point.rt-media_box { min-width:0; line-height:0; display:block; }
#modern-runtime-app .rt-point.rt-iframe { min-width:0; line-height:0; display:block; background:transparent!important; border:0!important; box-shadow:none!important; padding:0!important; }
#modern-runtime-app .rt-point.rt-weather_widget{min-width:0;line-height:1;display:block;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
#modern-runtime-app .rt-weather-widget{width:var(--rt-box-width,300px);height:var(--rt-box-height,250px);min-width:180px;min-height:120px;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;border-radius:14px;background:rgba(255,255,255,.94);border:1px solid rgba(148,163,184,.65);box-shadow:0 8px 22px rgba(15,23,42,.18);box-sizing:border-box;color:#0f172a;font-family:Arial,Helvetica,sans-serif}
#modern-runtime-app .rt-weather-widget.no-frame{border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important}
#modern-runtime-app .rt-weather-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 10px;background:linear-gradient(135deg,rgba(14,165,233,.12),rgba(255,255,255,.68));border-bottom:1px solid rgba(148,163,184,.35);font-size:12px;font-weight:900;line-height:1.2;color:#0f172a}
#modern-runtime-app .rt-weather-widget.no-title{grid-template-rows:minmax(0,1fr) auto}#modern-runtime-app .rt-weather-widget.no-title .rt-weather-head{display:none}
#modern-runtime-app .rt-weather-body{min-width:0;min-height:0;display:block;background:transparent;overflow:hidden}
#modern-runtime-app .rt-weather-body iframe{display:block;width:100%!important;height:100%!important;border:0!important;background:transparent;overflow:hidden}
#modern-runtime-app .rt-weather-foot{display:none;padding:5px 9px;border-top:1px solid rgba(148,163,184,.25);font-size:10px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:rgba(255,255,255,.68)}
#modern-runtime-app .rt-weather-widget.has-foot .rt-weather-foot{display:block}
#modern-runtime-app .rt-weather-empty{height:100%;display:flex;align-items:center;justify-content:center;text-align:center;color:#64748b;font-weight:800;font-size:12px;padding:12px;box-sizing:border-box;background:repeating-linear-gradient(45deg,rgba(14,165,233,.08),rgba(14,165,233,.08) 10px,rgba(148,163,184,.08) 10px,rgba(148,163,184,.08) 20px)}
#modern-runtime-app .rt-point.rt-animation .rt-point-btn,
#modern-runtime-app .rt-point.rt-image .rt-point-btn { display:block; padding:0; min-width:0; min-height:0; background:transparent!important; border-color:transparent!important; box-shadow:none!important; line-height:0; }

/* Kamera: Runtime muss exakt die im Builder gespeicherte Boxgröße verwenden.
   Deshalb werden Breite/Höhe zusätzlich als eigene Kamera-Variablen gesetzt und
   auf Punkt, Button, Frame und iframe/img/video durchgereicht. */
#modern-runtime-app .rt-point.rt-camera {
  width: var(--rt-camera-width, var(--rt-box-width, 420px)) !important;
  height: var(--rt-camera-height, var(--rt-box-height, 260px)) !important;
  overflow: visible;
}
#modern-runtime-app .rt-point.rt-camera .rt-point-btn {
  display: block !important;
  width: var(--rt-camera-width, var(--rt-box-width, 420px)) !important;
  height: var(--rt-camera-height, var(--rt-box-height, 260px)) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  line-height: 0 !important;
  background: var(--rt-bg-color, transparent) !important;
  border: var(--rt-camera-border, 0) !important;
  border-radius: var(--rt-camera-radius, 0) !important;
  box-shadow: none !important;
}
#modern-runtime-app .rt-camera-frame,
#modern-runtime-app .rt-camera-empty {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
#modern-runtime-app .rt-camera-frame iframe,
#modern-runtime-app .rt-camera-frame img,
#modern-runtime-app .rt-camera-frame video {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  background: transparent !important;
}
#modern-runtime-app .rt-camera-frame img,
#modern-runtime-app .rt-camera-frame video {
  object-fit: fill;
}
#modern-runtime-app .rt-camera-frame iframe.rt-camera-iframe-scaled {
  transform-origin: 0 0 !important;
  max-width: none !important;
  max-height: none !important;
}
#modern-runtime-app .rt-camera-empty {
  padding: 12px !important;
  border-radius: var(--rt-camera-radius, 0) !important;
  background: linear-gradient(135deg, #0f172a, #334155) !important;
  color: #e5eef8;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

#modern-runtime-app .rt-camera-open-direct {
  position:absolute;
  left:8px;
  bottom:8px;
  z-index:7;
  display:inline-flex;
  align-items:center;
  gap:5px;
  max-width:calc(100% - 16px);
  min-height:28px;
  padding:5px 8px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.18);
  background:rgba(255,255,255,.88);
  color:#0f172a;
  font-size:11px;
  font-weight:800;
  line-height:1;
  text-decoration:none;
  box-shadow:0 6px 18px rgba(15,23,42,.18);
  opacity:.32;
  transition:opacity .15s ease, transform .15s ease;
}
#modern-runtime-app .rt-camera-open-direct:hover,
#modern-runtime-app .rt-camera-open-direct:focus { opacity:1; transform:translateY(-1px); }
#modern-runtime-app .rt-camera-hint {
  position:absolute;
  right:8px;
  top:8px;
  z-index:7;
  padding:4px 7px;
  border-radius:999px;
  background:rgba(15,23,42,.72);
  color:#fff;
  font-size:10px;
  font-weight:900;
  letter-spacing:.02em;
  opacity:.42;
  pointer-events:none;
}
#modern-runtime-app .rt-camera-img-error .rt-camera-hint { background:#991b1b; opacity:.95; }
#modern-runtime-app .rt-camera-img-error .rt-camera-open-direct { opacity:1; }

/* Step 2.3.142 - Kamera/PTZ Bedienkomfort */
#modern-runtime-app .rt-camera-ptz {
  --ptz-opacity: .82;
  --ptz-btn: 30px;
  --ptz-font: 13px;
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(3, var(--ptz-btn));
  gap: 5px;
  padding: 7px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(15,23,42,.72), rgba(30,41,59,.54));
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 12px 30px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: .16;
  transform: translateY(2px) scale(.98);
  transition: opacity .16s ease, transform .16s ease, background .16s ease;
  pointer-events: auto;
  user-select: none;
  touch-action: manipulation;
}
#modern-runtime-app .rt-camera-ptz.ptz-always { opacity: var(--ptz-opacity); transform: translateY(0) scale(1); }
#modern-runtime-app .rt-camera-ptz.ptz-hidden { display: none; }
#modern-runtime-app .rt-point.rt-camera:hover .rt-camera-ptz,
#modern-runtime-app .rt-camera-ptz:focus-within,
#modern-runtime-app .rt-camera-ptz.ptz-active { opacity: var(--ptz-opacity); transform: translateY(0) scale(1); }
#modern-runtime-app .rt-camera-ptz.ptz-small { --ptz-btn: 26px; --ptz-font: 12px; gap: 4px; padding: 6px; border-radius: 14px; }
#modern-runtime-app .rt-camera-ptz.ptz-large { --ptz-btn: 38px; --ptz-font: 16px; gap: 6px; padding: 8px; border-radius: 18px; }
#modern-runtime-app .rt-camera-ptz.ptz-pos-bottom-left { left: 8px; right: auto; bottom: 8px; top: auto; }
#modern-runtime-app .rt-camera-ptz.ptz-pos-bottom-right { right: 8px; left: auto; bottom: 8px; top: auto; }
#modern-runtime-app .rt-camera-ptz.ptz-pos-top-left { left: 8px; right: auto; top: 8px; bottom: auto; }
#modern-runtime-app .rt-camera-ptz.ptz-pos-top-right { right: 8px; left: auto; top: 8px; bottom: auto; }
#modern-runtime-app .rt-camera-ptz button {
  width: var(--ptz-btn);
  height: calc(var(--ptz-btn) - 2px);
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(226,232,240,.92));
  color: #0f172a;
  font: 900 var(--ptz-font)/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 2px 7px rgba(0,0,0,.22);
  -webkit-tap-highlight-color: transparent;
}
#modern-runtime-app .rt-camera-ptz button:hover { background: #ffffff; transform: translateY(-1px); }
#modern-runtime-app .rt-camera-ptz button:active,
#modern-runtime-app .rt-camera-ptz button.ptz-pressed { background:#bfdbfe; transform:translateY(0); box-shadow: inset 0 1px 4px rgba(15,23,42,.24); }
#modern-runtime-app .rt-camera-ptz .empty { visibility:hidden; }
#modern-runtime-app .rt-camera-ptz .ptz-sep { grid-column: 1 / -1; height: 1px; background: rgba(255,255,255,.18); margin: 2px 0; }
#modern-runtime-app .rt-camera-ptz .ptz-preset { font-size: calc(var(--ptz-font) - 1px); background: linear-gradient(180deg, rgba(219,234,254,.98), rgba(191,219,254,.92)); }
@media (max-width: 700px) {
  #modern-runtime-app .rt-camera-ptz { --ptz-btn: 38px; --ptz-font: 16px; opacity: .58; right: 5px; bottom: 5px; }
  #modern-runtime-app .rt-camera-ptz.ptz-small { --ptz-btn: 34px; --ptz-font: 14px; }
  #modern-runtime-app .rt-camera-ptz.ptz-large { --ptz-btn: 44px; --ptz-font: 17px; }
}

/* Step 2.3.69 - frei platzierbare Medienbox aus dem Builder */
#modern-runtime-app .rt-point.rt-media_box {
  width: var(--rt-box-width, 420px);
  height: var(--rt-box-height, 300px);
}

/* Step 2.3.75d - Batteriewidget Premium: schöneres Symbol + SOC-Text im Symbol */
#modern-runtime-app .rt-point.rt-battery{min-width:0;line-height:1;display:block;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
#modern-runtime-app .rt-battery-widget{width:var(--rt-box-width,90px);height:var(--rt-box-height,130px);min-width:54px;min-height:82px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;box-sizing:border-box;color:var(--rt-font-color,#243b63);font-family:Arial,Helvetica,sans-serif;user-select:none;filter:drop-shadow(0 4px 7px rgba(15,23,42,.24))}
#modern-runtime-app .rt-battery-cap{width:30%;height:7%;min-height:6px;border:2px solid var(--rt-border-color,#263244);border-bottom:0;border-radius:7px 7px 0 0;background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(203,213,225,.86));box-sizing:border-box}
#modern-runtime-app .rt-battery-shell{position:relative;width:68%;height:82%;border:2px solid var(--rt-border-color,#263244);border-radius:15px;background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(226,232,240,.82));box-shadow:inset 0 0 0 1px rgba(255,255,255,.75),0 4px 13px rgba(15,23,42,.18);overflow:hidden;box-sizing:border-box}
#modern-runtime-app .rt-battery-fill{position:absolute;left:5px;right:5px;bottom:5px;height:var(--rt-battery-soc,0%);max-height:calc(100% - 10px);border-radius:10px;background:linear-gradient(180deg,#bbf7d0 0%,#22c55e 55%,#15803d 100%);box-shadow:inset 0 12px 18px rgba(255,255,255,.32),inset 0 -8px 14px rgba(0,0,0,.12);transition:height .45s ease, background .3s ease}
#modern-runtime-app .rt-battery.rt-battery-low .rt-battery-fill{background:linear-gradient(180deg,#fecaca 0%,#ef4444 58%,#991b1b 100%)}
#modern-runtime-app .rt-battery.rt-battery-mid .rt-battery-fill{background:linear-gradient(180deg,#fef3c7 0%,#f59e0b 58%,#b45309 100%)}
#modern-runtime-app .rt-battery-gloss{position:absolute;left:7px;right:50%;top:7px;bottom:7px;border-radius:9px;background:linear-gradient(90deg,rgba(255,255,255,.48),rgba(255,255,255,0));pointer-events:none;z-index:3}
#modern-runtime-app .rt-battery-segments{position:absolute;left:8px;right:8px;top:8px;bottom:8px;border-radius:9px;background:repeating-linear-gradient(to top,transparent 0,transparent calc(20% - 1px),rgba(255,255,255,.50) calc(20% - 1px),rgba(255,255,255,.50) 20%);pointer-events:none;z-index:4;mix-blend-mode:screen}
#modern-runtime-app .rt-battery-percent{position:absolute;inset:0;display:flex!important;align-items:center;justify-content:center;z-index:5;font-weight:900;font-size:18px;letter-spacing:-.5px;color:#0f172a;text-shadow:0 1px 2px rgba(255,255,255,.95),0 -1px 1px rgba(255,255,255,.58);line-height:1;text-align:center;pointer-events:none}
#modern-runtime-app .rt-battery.rt-battery-low .rt-battery-percent{color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.55)}
#modern-runtime-app .rt-battery-power{display:none!important}
#modern-runtime-app .rt-battery-flow{position:absolute;right:-8px;bottom:10px;width:25px;height:25px;border-radius:999px;background:rgba(255,255,255,.94);border:1px solid rgba(15,23,42,.18);display:none;align-items:center;justify-content:center;font-size:16px;text-shadow:none;box-shadow:0 2px 7px rgba(15,23,42,.25);pointer-events:none;z-index:7}
#modern-runtime-app .rt-battery-charging .rt-battery-flow,#modern-runtime-app .rt-battery-discharging .rt-battery-flow{display:flex;animation:rtBatteryPulse var(--rt-animation-speed,1.2s) ease-in-out infinite}
#modern-runtime-app .rt-battery-charging .rt-battery-flow{color:#16a34a}#modern-runtime-app .rt-battery-discharging .rt-battery-flow{color:#ef4444}
@keyframes rtBatteryPulse{0%,100%{opacity:.58;transform:scale(.96)}50%{opacity:1;transform:scale(1.08)}}

/* Step 2.3.77 - Runtime Widgets: Pumpe + Energiefluss */
#modern-runtime-app .rt-point.rt-pump,#modern-runtime-app .rt-point.rt-flow_arrow,#modern-runtime-app .rt-point.rt-valve,#modern-runtime-app .rt-point.rt-status_led{min-width:0;line-height:1;display:block;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
#modern-runtime-app .rt-pump-widget{width:var(--rt-box-width,58px);height:var(--rt-box-height,58px);min-width:28px;min-height:28px;display:flex;align-items:center;justify-content:center;position:relative;box-sizing:border-box;filter:drop-shadow(0 4px 8px rgba(15,23,42,.22));line-height:1}
#modern-runtime-app .rt-pump-body{position:absolute;inset:6%;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff 0,#dbeafe 22%,#60a5fa 58%,#1d4ed8 100%);border:2px solid var(--rt-border-color,#1e3a8a);box-shadow:inset 0 0 0 2px rgba(255,255,255,.45),0 2px 7px rgba(15,23,42,.22)}
#modern-runtime-app .rt-pump-blade{position:absolute;width:72%;height:72%;border-radius:50%;background:conic-gradient(from 20deg,rgba(255,255,255,.92) 0 42deg,transparent 42deg 120deg,rgba(255,255,255,.88) 120deg 162deg,transparent 162deg 240deg,rgba(255,255,255,.82) 240deg 282deg,transparent 282deg 360deg);z-index:2}
#modern-runtime-app .rt-pump-hub{position:absolute;width:24%;height:24%;border-radius:50%;background:#0f172a;border:2px solid rgba(255,255,255,.78);z-index:3}
#modern-runtime-app .rt-pump.rt-pump-on .rt-pump-blade{animation:rtPumpSpin var(--rt-animation-speed,0.9s) linear infinite}#modern-runtime-app .rt-pump.rt-pump-off .rt-pump-widget{opacity:.58;filter:grayscale(.75) drop-shadow(0 2px 5px rgba(15,23,42,.18))}
#modern-runtime-app .rt-pump-state{position:absolute;right:-10px;bottom:-8px;z-index:4;min-width:24px;text-align:center;font-size:10px;font-weight:900;color:#14532d;background:#dcfce7;border:1px solid #86efac;border-radius:999px;padding:2px 5px;box-shadow:0 1px 5px rgba(15,23,42,.18)}#modern-runtime-app .rt-pump.rt-pump-off .rt-pump-state{color:#334155;background:#f1f5f9;border-color:#cbd5e1}@keyframes rtPumpSpin{to{transform:rotate(360deg)}}
#modern-runtime-app .rt-flow-widget{width:var(--rt-box-width,160px);height:var(--rt-box-height,26px);min-width:40px;min-height:12px;position:relative;display:block;line-height:1;filter:drop-shadow(0 2px 6px rgba(15,23,42,.18));box-sizing:border-box}
#modern-runtime-app .rt-flow-line{position:absolute;left:0;right:18px;top:50%;height:6px;transform:translateY(-50%);border-radius:999px;background:linear-gradient(90deg,rgba(59,130,246,.22),#38bdf8,#22c55e);overflow:hidden}#modern-runtime-app .rt-flow-line::after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(90deg,rgba(255,255,255,0) 0 12px,rgba(255,255,255,.85) 12px 24px);animation:rtFlowMove var(--rt-animation-speed,1.0s) linear infinite}#modern-runtime-app .rt-flow-head{position:absolute;right:0;top:50%;transform:translateY(-50%);width:0;height:0;border-top:10px solid transparent;border-bottom:10px solid transparent;border-left:18px solid #22c55e}
#modern-runtime-app .rt-flow-label{position:absolute;left:50%;top:100%;transform:translateX(-50%);margin-top:3px;background:rgba(255,255,255,.86);border:1px solid #cbd5e1;border-radius:999px;padding:2px 7px;font-size:10px;font-weight:800;color:#243647;white-space:nowrap}#modern-runtime-app .rt-flow_arrow.rt-flow-reverse .rt-flow-widget{transform:scaleX(-1)}#modern-runtime-app .rt-flow_arrow.rt-flow-reverse .rt-flow-label{transform:translateX(-50%) scaleX(-1)}#modern-runtime-app .rt-flow_arrow.rt-flow-standby .rt-flow-line{background:#cbd5e1}#modern-runtime-app .rt-flow_arrow.rt-flow-standby .rt-flow-line::after{animation:none;opacity:.25}#modern-runtime-app .rt-flow_arrow.rt-flow-standby .rt-flow-head{border-left-color:#94a3b8}@keyframes rtFlowMove{from{transform:translateX(-24px)}to{transform:translateX(24px)}}

/* Step 2.3.78 - Runtime Widgets: Ventil + Status-LED */
#modern-runtime-app .rt-valve-widget{width:var(--rt-box-width,76px);height:var(--rt-box-height,54px);min-width:42px;min-height:30px;position:relative;display:flex;align-items:center;justify-content:center;line-height:1;box-sizing:border-box;filter:drop-shadow(0 4px 8px rgba(15,23,42,.22))}
#modern-runtime-app .rt-valve-pipe{position:absolute;left:0;right:0;top:50%;height:10px;transform:translateY(-50%);border-radius:999px;background:linear-gradient(180deg,#e2e8f0,#94a3b8);border:1px solid rgba(71,85,105,.55);box-sizing:border-box}
#modern-runtime-app .rt-valve-body{position:absolute;left:50%;top:50%;width:48%;height:58%;transform:translate(-50%,-50%) rotate(45deg);border-radius:9px;background:linear-gradient(135deg,#f8fafc,#60a5fa 55%,#1d4ed8);border:2px solid var(--rt-border-color,#1e3a8a);box-shadow:inset 0 0 0 2px rgba(255,255,255,.36)}
#modern-runtime-app .rt-valve-stem{position:absolute;left:50%;top:2%;width:5px;height:35%;transform:translateX(-50%);border-radius:999px;background:#475569}#modern-runtime-app .rt-valve-handle{position:absolute;left:50%;top:0;width:45%;height:7px;transform:translateX(-50%);border-radius:999px;background:linear-gradient(180deg,#fef3c7,#f59e0b);border:1px solid #92400e}
#modern-runtime-app .rt-valve-badge{position:absolute;right:-12px;bottom:-8px;z-index:4;min-width:28px;text-align:center;font-size:10px;font-weight:900;color:#14532d;background:#dcfce7;border:1px solid #86efac;border-radius:999px;padding:2px 6px;box-shadow:0 1px 5px rgba(15,23,42,.18)}
#modern-runtime-app .rt-valve.rt-valve-closed .rt-valve-body{background:linear-gradient(135deg,#fee2e2,#f87171 55%,#b91c1c);border-color:#991b1b}#modern-runtime-app .rt-valve.rt-valve-closed .rt-valve-handle{transform:translateX(-50%) rotate(90deg)}#modern-runtime-app .rt-valve.rt-valve-closed .rt-valve-badge{color:#7f1d1d;background:#fee2e2;border-color:#fca5a5}#modern-runtime-app .rt-valve.rt-valve-switching .rt-valve-body{animation:rtValvePulse var(--rt-animation-speed,1.2s) ease-in-out infinite}@keyframes rtValvePulse{0%,100%{filter:brightness(1)}50%{filter:brightness(1.28)}}
#modern-runtime-app .rt-led-widget{width:var(--rt-box-width,34px);height:var(--rt-box-height,34px);min-width:16px;min-height:16px;position:relative;display:flex;align-items:center;justify-content:center;line-height:1;box-sizing:border-box;filter:drop-shadow(0 3px 8px rgba(15,23,42,.22))}#modern-runtime-app .rt-led-lamp{position:absolute;inset:9%;border-radius:50%;background:radial-gradient(circle at 35% 28%,#fff,#bbf7d0 24%,#22c55e 58%,#15803d 100%);border:2px solid var(--rt-border-color,#166534);box-shadow:0 0 14px rgba(34,197,94,.42),inset 0 0 0 2px rgba(255,255,255,.38)}#modern-runtime-app .rt-status_led.rt-led-off .rt-led-lamp{background:radial-gradient(circle at 35% 28%,#fff,#e2e8f0 30%,#94a3b8 70%,#475569 100%);border-color:#475569;box-shadow:inset 0 0 0 2px rgba(255,255,255,.28)}#modern-runtime-app .rt-status_led.rt-led-alarm .rt-led-lamp{background:radial-gradient(circle at 35% 28%,#fff,#fecaca 24%,#ef4444 58%,#991b1b 100%);border-color:#991b1b;box-shadow:0 0 16px rgba(239,68,68,.52),inset 0 0 0 2px rgba(255,255,255,.34)}#modern-runtime-app .rt-status_led.rt-led-blink .rt-led-lamp{animation:rtLedBlink var(--rt-animation-speed,1.0s) ease-in-out infinite}#modern-runtime-app .rt-led-label{position:absolute;left:50%;top:100%;transform:translateX(-50%);margin-top:3px;background:rgba(255,255,255,.88);border:1px solid #cbd5e1;border-radius:999px;padding:2px 7px;font-size:10px;font-weight:900;color:#243647;white-space:nowrap}@keyframes rtLedBlink{0%,100%{opacity:.42;transform:scale(.96)}50%{opacity:1;transform:scale(1.06)}}
#modern-runtime-app .rt-point.rt-temp_badge,#modern-runtime-app .rt-point.rt-counter_card{min-width:0;line-height:1;display:block;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
#modern-runtime-app .rt-temp-badge-widget{width:var(--rt-box-width,126px);height:var(--rt-box-height,48px);min-width:80px;min-height:34px;display:grid;grid-template-columns:auto 1fr;gap:7px;align-items:center;padding:6px 10px;border-radius:16px;border:1px solid rgba(148,163,184,.55);background:linear-gradient(135deg,rgba(255,255,255,.94),rgba(224,242,254,.92));box-shadow:0 5px 16px rgba(15,23,42,.16),inset 0 0 0 1px rgba(255,255,255,.5);box-sizing:border-box;line-height:1;color:#0f172a;filter:drop-shadow(0 2px 4px rgba(15,23,42,.12))}#modern-runtime-app .rt-temp-icon{width:26px;height:26px;border-radius:999px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#e0f2fe,#38bdf8);font-size:16px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.55)}#modern-runtime-app .rt-temp-text{min-width:0}#modern-runtime-app .rt-temp-label{font-size:9px;font-weight:800;color:#475569;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-transform:uppercase;letter-spacing:.03em}#modern-runtime-app .rt-temp-value{font-size:18px;font-weight:950;color:#0f172a;white-space:nowrap}#modern-runtime-app .rt-temp_badge.rt-temp-cold .rt-temp-badge-widget{background:linear-gradient(135deg,#eff6ff,#bfdbfe);border-color:#93c5fd}#modern-runtime-app .rt-temp_badge.rt-temp-warm .rt-temp-badge-widget{background:linear-gradient(135deg,#ecfdf5,#bbf7d0);border-color:#86efac}#modern-runtime-app .rt-temp_badge.rt-temp-hot .rt-temp-badge-widget{background:linear-gradient(135deg,#fff7ed,#fed7aa);border-color:#fdba74}#modern-runtime-app .rt-temp_badge.rt-temp-hot .rt-temp-icon{background:linear-gradient(135deg,#ffedd5,#fb923c)}
#modern-runtime-app .rt-counter-card-widget{width:var(--rt-box-width,190px);height:var(--rt-box-height,72px);min-width:120px;min-height:50px;display:grid;grid-template-columns:42px minmax(0,1fr);gap:10px;align-items:center;padding:10px 12px;border-radius:18px;background:linear-gradient(135deg,rgba(15,23,42,.94),rgba(51,65,85,.92));border:1px solid rgba(148,163,184,.55);box-shadow:0 8px 24px rgba(15,23,42,.26),inset 0 0 0 1px rgba(255,255,255,.06);box-sizing:border-box;color:#fff;line-height:1}#modern-runtime-app .rt-counter-icon{width:42px;height:42px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#38bdf8,#2563eb);font-size:20px;box-shadow:0 4px 12px rgba(37,99,235,.28);overflow:hidden}#modern-runtime-app .rt-counter-icon img{max-width:26px;max-height:26px;object-fit:contain}#modern-runtime-app .rt-counter-main{min-width:0}#modern-runtime-app .rt-counter-label{font-size:10px;font-weight:850;color:#cbd5e1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-transform:uppercase;letter-spacing:.04em}#modern-runtime-app .rt-counter-value{font-size:20px;font-weight:950;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}#modern-runtime-app .rt-counter-sub{font-size:10px;color:#94a3b8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}

#modern-runtime-app .rt-point.rt-media_box .rt-media-box {
  display: grid !important;
  grid-template-rows: auto minmax(0,1fr) auto;
  width: var(--rt-box-width, 420px) !important;
  height: var(--rt-box-height, 300px) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  border-radius: 16px !important;
  background: var(--rt-bg-color, rgba(255,255,255,.92)) !important;
  border: 1px solid var(--rt-border-color, #cbd5e1) !important;
  box-shadow: 0 12px 34px rgba(15,23,42,.18) !important;
  color: var(--rt-font-color, #243647) !important;
  font-size: var(--rt-font-size, 13px) !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
  white-space: normal !important;
}
#modern-runtime-app .rt-media-box-head {
  padding: 10px 13px;
  font-weight: 800;
  background: rgba(255,255,255,.72);
  border-bottom: 1px solid rgba(148,163,184,.32);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#modern-runtime-app .rt-media-box-body {
  min-height: 0;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  background: linear-gradient(135deg,#0f172a,#334155);
  overflow: hidden;
}
#modern-runtime-app .rt-media-box-body iframe,
#modern-runtime-app .rt-media-box-body img,
#modern-runtime-app .rt-media-box-body video {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: cover;
  background: transparent !important;
}
#modern-runtime-app .rt-iframe-widget{display:block;width:100%;height:100%;line-height:0;border-radius:18px;overflow:hidden;background:transparent}
#modern-runtime-app .rt-iframe-widget iframe{display:block;width:100%!important;height:100%!important;border:0!important;background:transparent;overflow:hidden;border-radius:inherit}
#modern-runtime-app .rt-iframe-empty{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-width:180px;min-height:90px;padding:10px;border:1px dashed rgba(100,116,139,.45);border-radius:18px;background:rgba(255,255,255,.72);color:#64748b;font-weight:800;text-align:center;line-height:1.35;box-sizing:border-box}
#modern-runtime-app .rt-media-box-empty {
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #e5eef8;
  font-size: 12px;
  padding: 12px;
}
#modern-runtime-app .rt-media-box-foot {
  padding: 8px 13px;
  font-size: 11px;
  color: #64748b;
  background: rgba(255,255,255,.68);
  border-top: 1px solid rgba(148,163,184,.25);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 2.3.442: Animationen gelten jetzt auch für normale Wert-/Statuspunkte. */
#modern-runtime-app .rt-point.rt-anim-active:not(.rt-animation):not(.rt-image) .rt-point-btn {
  will-change: transform, opacity, filter, box-shadow;
}
#modern-runtime-app .rt-point.rt-anim-active[data-animation-type="pulse"]:not(.rt-animation):not(.rt-image) .rt-point-btn {
  animation: rtValuePulse var(--rt-animation-speed,1.2s) ease-in-out infinite;
}
#modern-runtime-app .rt-point.rt-anim-active[data-animation-type="blink"]:not(.rt-animation):not(.rt-image) .rt-point-btn {
  animation: rtBlink var(--rt-animation-speed,1.2s) linear infinite;
}
#modern-runtime-app .rt-point.rt-anim-active[data-animation-type="flow"]:not(.rt-animation):not(.rt-image) .rt-point-btn {
  animation: rtValueFlow var(--rt-animation-speed,1.2s) ease-in-out infinite;
}
#modern-runtime-app .rt-point.rt-anim-active[data-animation-type="rotate"]:not(.rt-animation):not(.rt-image) .rt-point-btn {
  animation: rtValueRotate var(--rt-animation-speed,1.2s) linear infinite;
}
#modern-runtime-app .rt-point.rt-anim-hidden:not(.rt-animation) {
  display: none !important;
}
@keyframes rtValuePulse { 0%,100%{transform:scale(1);filter:brightness(1)} 50%{transform:scale(1.055);filter:brightness(1.14)} }
@keyframes rtValueFlow { 0%,100%{box-shadow:0 2px 8px rgba(15,23,42,.12);filter:brightness(1)} 50%{box-shadow:0 0 0 4px rgba(34,197,94,.16),0 4px 14px rgba(15,23,42,.18);filter:brightness(1.18)} }
@keyframes rtValueRotate { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
#modern-runtime-app .rt-animation-img,
#modern-runtime-app .rt-static-img { display:block; object-fit:contain; transform-origin:50% 50%; vertical-align:top; }
#modern-runtime-app img.rt-image-map-pending { opacity:0; }
#modern-runtime-app img.rt-image-map-ready { opacity:1; }
#modern-runtime-app .rt-animation.rt-anim-hidden,
#modern-runtime-app .rt-point.rt-anim-hidden { display:none!important; }
#modern-runtime-app .rt-point.rt-hidden-by-rule,
#modern-runtime-app .rt-point.rt-visibility-pending { display:none!important; }
#modern-runtime-app .rt-animation.rt-anim-active .rt-anim-rotate { animation:rtSpin var(--rt-animation-speed,1.2s) linear infinite; }
#modern-runtime-app .rt-animation.rt-anim-active .rt-anim-pulse { animation:rtPumpPulse var(--rt-animation-speed,1.2s) ease-in-out infinite; }
#modern-runtime-app .rt-animation.rt-anim-active .rt-anim-blink { animation:rtBlink var(--rt-animation-speed,1.2s) linear infinite; }
#modern-runtime-app .rt-animation.rt-anim-active .rt-anim-flow { animation:rtFlow var(--rt-animation-speed,1.2s) linear infinite; }
@keyframes rtSpin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
@keyframes rtPumpPulse { 0%,100%{transform:scale(1);opacity:.9} 50%{transform:scale(1.08);opacity:1} }
@keyframes rtBlink { 0%,100%{opacity:1} 50%{opacity:.35} }
@keyframes rtFlow { 0%{filter:brightness(1)} 50%{filter:brightness(1.35)} 100%{filter:brightness(1)} }

#modern-runtime-app .rt-point.rt-alarm .rt-point-btn {
  background: #fee2e2 !important;
  border-color: #dc2626 !important;
  color: #991b1b !important;
  box-shadow: 0 0 0 2px rgba(220,38,38,.16), 0 0 12px rgba(220,38,38,.35);
  animation: rtAlarmPulse 1.25s ease-in-out infinite;
}

#modern-runtime-app .rt-alarm-link {
  display: none;
  position: absolute;
  top: -14px;
  right: -14px;
  width: 23px;
  height: 23px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: #dc2626;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.28);
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  z-index: 50;
  cursor: pointer;
}

#modern-runtime-app .rt-point.rt-alarm .rt-alarm-link {
  display: inline-flex;
}

#modern-runtime-app .rt-alarm-summary {
  display: none;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  font-weight: bold;
  text-decoration: none;
}

#modern-runtime-app .rt-alarm-summary.active {
  display: inline-flex;
}

#modern-runtime-app .rt-nav-badge {
  display: none;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: #dc2626;
  color: #fff;
  border: 1px solid rgba(255,255,255,.75);
  font-size: 11px;
  line-height: 16px;
  box-shadow: 0 1px 5px rgba(0,0,0,.22);
}
#modern-runtime-app .rt-nav-badge.active { display: inline-flex; }
#modern-runtime-app.rt-mode-icons-only .rt-nav-badge { position: absolute; top: -6px; right: -6px; margin-left: 0; }
#modern-runtime-app .rt-nav-link { position: relative; }
#modern-runtime-app .rt-nav-link.rt-nav-button { font-family: inherit; }

.rt-point-context-menu {
  position: fixed;
  z-index: 99990;
  display: none;
  min-width: 250px;
  max-width: 320px;
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(148,163,184,.75);
  border-radius: 12px;
  box-shadow: 0 12px 35px rgba(15,23,42,.22);
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.rt-point-context-menu.open { display: block; }
.rt-point-context-head {
  padding: 9px 11px;
  background: #f1f5f9;
  border-bottom: 1px solid #dbe3ec;
  font-weight: bold;
  color: #243647;
  font-size: 13px;
}
.rt-point-context-value {
  display: block;
  margin-top: 3px;
  font-weight: normal;
  color: #64748b;
  font-size: 12px;
}
.rt-point-context-menu button,
.rt-point-context-menu a {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 0;
  border-bottom: 1px solid #edf2f7;
  background: transparent;
  color: #243647;
  text-decoration: none;
  text-align: left;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.rt-point-context-menu button:hover,
.rt-point-context-menu a:hover { background: #eef6ff; }
.rt-point-context-menu button:last-child,
.rt-point-context-menu a:last-child { border-bottom: 0; }

.rt-point-detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99988;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, .34);
  backdrop-filter: blur(3px);
}
.rt-point-detail-backdrop.open { display: flex; }
.rt-point-detail-card {
  width: min(620px, 96vw);
  max-height: 86vh;
  overflow: auto;
  border-radius: 16px;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(148,163,184,.65);
  box-shadow: 0 18px 55px rgba(15,23,42,.28);
}
.rt-point-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  background: #f1f5f9;
  border-bottom: 1px solid #dbe3ec;
}
.rt-point-detail-head strong { display: block; font-size: 16px; color: #0f172a; }
.rt-point-detail-head span { display: block; margin-top: 4px; color: #64748b; font-size: 13px; }
.rt-point-detail-close {
  border: 0;
  border-radius: 10px;
  background: #e2e8f0;
  color: #334155;
  width: 34px;
  height: 34px;
  font-size: 20px;
  line-height: 30px;
  cursor: pointer;
}
.rt-point-detail-body { padding: 14px 16px 16px; }
.rt-point-detail-rows {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}
.rt-point-detail-rows div {
  padding: 9px 10px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
}
.rt-point-detail-rows div:nth-child(odd) {
  background: #f8fafc;
  font-weight: bold;
  color: #475569;
}
.rt-point-detail-rows div:nth-child(even) {
  background: #fff;
  color: #0f172a;
  overflow-wrap: anywhere;
}
.rt-point-detail-rows div:nth-last-child(-n+2) { border-bottom: 0; }
.rt-point-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.rt-point-detail-actions button {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #243647;
  padding: 9px 12px;
  font-weight: bold;
  cursor: pointer;
}
.rt-point-detail-actions button:hover { background: #eef6ff; border-color: #93c5fd; }
#modern-runtime-app.rt-theme-dark ~ .rt-point-detail-backdrop .rt-point-detail-card { background:#1f2937; border-color:#4b5563; }
#modern-runtime-app.rt-theme-dark ~ .rt-point-detail-backdrop .rt-point-detail-head { background:#111827; border-color:#374151; }
#modern-runtime-app.rt-theme-dark ~ .rt-point-detail-backdrop .rt-point-detail-head strong { color:#f9fafb; }
#modern-runtime-app.rt-theme-dark ~ .rt-point-detail-backdrop .rt-point-detail-head span { color:#cbd5e1; }
#modern-runtime-app.rt-theme-dark ~ .rt-point-detail-backdrop .rt-point-detail-rows { border-color:#374151; }
#modern-runtime-app.rt-theme-dark ~ .rt-point-detail-backdrop .rt-point-detail-rows div { border-color:#374151; }
#modern-runtime-app.rt-theme-dark ~ .rt-point-detail-backdrop .rt-point-detail-rows div:nth-child(odd) { background:#111827; color:#cbd5e1; }
#modern-runtime-app.rt-theme-dark ~ .rt-point-detail-backdrop .rt-point-detail-rows div:nth-child(even) { background:#1f2937; color:#f9fafb; }


/* =========================
   Runtime Live-/Verbindungswächter
========================= */
#modern-runtime-app .rt-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-weight: 800;
  line-height: 1.2;
}
#modern-runtime-app .rt-live-pill::before,
#modern-runtime-app .rt-kiosk-live-state::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 2px rgba(255,255,255,.55);
}
#modern-runtime-app .rt-live-pill.online,
#modern-runtime-app .rt-kiosk-live-state.online {
  color: #15803d;
  border-color: #86efac;
  background: #f0fdf4;
}
#modern-runtime-app .rt-live-pill.warn,
#modern-runtime-app .rt-kiosk-live-state.warn {
  color: #b45309;
  border-color: #facc15;
  background: #fefce8;
}
#modern-runtime-app .rt-live-pill.offline,
#modern-runtime-app .rt-kiosk-live-state.offline {
  color: #b91c1c;
  border-color: #fca5a5;
  background: #fef2f2;
}
#modern-runtime-app .rt-live-pill.pending,
#modern-runtime-app .rt-kiosk-live-state.pending {
  color: #475569;
  border-color: #cbd5e1;
  background: #f8fafc;
}
#modern-runtime-app .rt-kiosk-live-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  color: #dbeafe;
  font-weight: 800;
}
#modern-runtime-app .rt-point.rt-point-stale .rt-point-btn {
  opacity: .55;
  filter: grayscale(.18);
}
#modern-runtime-app .rt-point.rt-point-stale::after {
  content: "!";
  position: absolute;
  top: -9px;
  left: -9px;
  z-index: 55;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f59e0b;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 2px 7px rgba(0,0,0,.24);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}
#modern-runtime-app.rt-offline .rt-stage-wrap {
  box-shadow: inset 0 0 0 2px rgba(220,38,38,.28), 0 18px 50px rgba(31, 51, 71, .12);
}
#modern-runtime-app.rt-live-warn .rt-stage-wrap {
  box-shadow: inset 0 0 0 2px rgba(245,158,11,.20), 0 18px 50px rgba(31, 51, 71, .12);
}
#modern-runtime-app.rt-theme-dark .rt-live-pill { background:#111827; color:#e5e7eb; border-color:#374151; }
#modern-runtime-app.rt-theme-dark .rt-live-pill.online { background:#052e16; color:#86efac; border-color:#15803d; }
#modern-runtime-app.rt-theme-dark .rt-live-pill.warn { background:#422006; color:#fde68a; border-color:#b45309; }
#modern-runtime-app.rt-theme-dark .rt-live-pill.offline { background:#450a0a; color:#fecaca; border-color:#b91c1c; }

@media (max-width: 640px) {
  .rt-point-context-menu { min-width: 280px; max-width: calc(100vw - 16px); }
  .rt-point-context-menu button,
  .rt-point-context-menu a { padding: 12px 13px; font-size: 14px; }
  .rt-point-detail-rows { grid-template-columns: 1fr; }
  .rt-point-detail-rows div:nth-child(odd) { border-bottom: 0; padding-bottom: 2px; }
  .rt-point-detail-rows div:nth-child(even) { padding-top: 4px; }
}



/* 2.3.518: globaler Alarmbadge, unabhängig von der aktuell geöffneten Anlagen-Seite */
#modern-runtime-app .rt-global-alarm-badge, .rt-global-alarm-badge{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:12000;
  display:none;
  align-items:center;
  gap:7px;
  min-height:34px;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid rgba(185,28,28,.35);
  background:rgba(254,226,226,.96);
  color:#991b1b;
  font-weight:900;
  font-size:13px;
  text-decoration:none;
  box-shadow:0 12px 34px rgba(15,23,42,.22);
}
#modern-runtime-app .rt-global-alarm-badge.active, .rt-global-alarm-badge.active{display:inline-flex;animation:none}
#modern-runtime-app .rt-global-alarm-badge .cnt, .rt-global-alarm-badge .cnt{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;border-radius:999px;background:#b91c1c;color:#fff;padding:0 6px;font-size:12px}
@keyframes rtAlarmBadgePulse{0%,100%{transform:translateY(0);filter:brightness(1)}50%{transform:translateY(-1px);filter:brightness(1.08)}}
@media(max-width:720px){#modern-runtime-app .rt-global-alarm-badge, .rt-global-alarm-badge{right:10px;bottom:10px;font-size:12px;padding:7px 10px}}

@keyframes rtAlarmPulse {
  0%,100% { filter: brightness(1); }
  50% { filter: brightness(1.16); }
}

#modern-runtime-app .rt-legend {
  margin-top: 10px;
  font-size: 12px;
  color: #4e5e6f;
}

#modern-runtime-app .rt-footer-row {
  margin-top: 8px;
  font-size: 12px;
  color: #5d6a76;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}



/* 2.3.530 · Runtime Mobile Button/Link Fix
   - target_url/targetUrl wird wieder klickbar
   - Smartphone-Darstellung für Button/Link/Page stabilisiert
   - justify-content nutzt gültige Flex-Werte
*/
#modern-runtime-app .rt-point-btn{
  box-sizing:border-box;
  max-width:var(--rt-box-width, none);
  overflow:hidden;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
#modern-runtime-app .rt-point-btn .rt-point-value,
#modern-runtime-app .rt-point-btn .rt-prefix,
#modern-runtime-app .rt-point-btn .rt-point-unit,
#modern-runtime-app .rt-point-btn .rt-point-suffix{
  min-width:0;
}
#modern-runtime-app .rt-point-btn .rt-point-value{
  overflow:hidden;
  text-overflow:ellipsis;
}
/* 2.3.614: Bei festen Boxen bleibt die Einheit lesbar. Nur der Zahlenwert
   darf im Platzmangel schrumpfen; die Boxabmessungen selbst bleiben erhalten. */
#modern-runtime-app .rt-point.rt-value .rt-point-btn .rt-point-unit{
  flex:0 0 auto;
  white-space:nowrap;
}
#modern-runtime-app .rt-point.rt-value .rt-point-btn .rt-point-value{
  min-width:0;
  flex:0 1 auto;
}
#modern-runtime-app .rt-point.rt-value .rt-point-btn .rt-point-unit:empty{
  display:none;
}
/* Step 2.3.615 - 2.3.597/2.3.598 setzte Stringwerte auf 100% Breite.
   Ein separates Einheitenelement wurde dadurch IN DIE NAECHSTE ZEILE gedrueckt.
   Bei expliziter Box-Hoehe (z.B. 18px) wurde diese zweite Zeile abgeschnitten.
   Nur einzeilige NUMERISCHE String-/Textwerte mit tatsaechlich separater Einheit
   verwenden wieder die originale Inline-Anordnung. Lange Texte ohne Einheit
   behalten den seit 2.3.597 gewollten Zeilenumbruch. */
#modern-runtime-app .rt-point.rt-unit-inline.rt-string .rt-point-btn,
#modern-runtime-app .rt-point.rt-unit-inline.rt-text .rt-point-btn{
  display:inline-flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:var(--rt-justify-content, center)!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  line-height:1!important;
}
#modern-runtime-app .rt-point.rt-unit-inline.rt-string .rt-point-btn .rt-point-value,
#modern-runtime-app .rt-point.rt-unit-inline.rt-text .rt-point-btn .rt-point-value{
  display:inline-block!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  flex:0 1 auto!important;
  white-space:nowrap!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  line-height:1!important;
}
#modern-runtime-app .rt-point.rt-unit-inline.rt-string .rt-point-btn .rt-point-unit,
#modern-runtime-app .rt-point.rt-unit-inline.rt-text .rt-point-btn .rt-point-unit{
  flex:0 0 auto!important;
  width:auto!important;
  min-width:max-content!important;
  white-space:nowrap!important;
  line-height:1!important;
}
#modern-runtime-app .rt-point.rt-button .rt-point-btn,
#modern-runtime-app .rt-point.rt-link .rt-point-btn,
#modern-runtime-app .rt-point.rt-page .rt-point-btn{
  display:flex;
  align-items:center;
  justify-content:var(--rt-justify-content, center);
  width:var(--rt-box-width, auto);
  height:var(--rt-box-height, auto);
  min-width:0;
  line-height:1.15;
}
#modern-runtime-app .rt-point-btn.modern-btn,
#modern-runtime-app .rt-point-btn.modern-btn-dark,
#modern-runtime-app .rt-point-btn.modern-btn-green,
#modern-runtime-app .rt-point-btn.modern-btn-orange,
#modern-runtime-app .rt-point-btn.modern-btn-red,
#modern-runtime-app .rt-point-btn.modern-btn-outline{
  border-radius:10px;
  padding:0 14px;
  box-shadow:0 4px 12px rgba(15,23,42,.18);
  letter-spacing:.01em;
}
#modern-runtime-app .rt-point-btn.modern-btn-outline{
  background:transparent;
}
#modern-runtime-app .rt-button-icon{
  flex:0 0 auto;
  line-height:1;
}
#modern-runtime-app .rt-button-icon.right{
  order:10;
}
@media(max-width:720px){
  #modern-runtime-app .rt-point.rt-button,
  #modern-runtime-app .rt-point.rt-link,
  #modern-runtime-app .rt-point.rt-page{
    min-width:0;
  }
  #modern-runtime-app .rt-point.rt-button .rt-point-btn,
  #modern-runtime-app .rt-point.rt-link .rt-point-btn,
  #modern-runtime-app .rt-point.rt-page .rt-point-btn{
    min-width:0;
    max-width:var(--rt-box-width, none);
    white-space:nowrap;
    touch-action:manipulation;
    -webkit-tap-highlight-color:rgba(37,99,235,.18);
  }
  #modern-runtime-app .rt-point-btn.modern-btn,
  #modern-runtime-app .rt-point-btn.modern-btn-dark,
  #modern-runtime-app .rt-point-btn.modern-btn-green,
  #modern-runtime-app .rt-point-btn.modern-btn-orange,
  #modern-runtime-app .rt-point-btn.modern-btn-red,
  #modern-runtime-app .rt-point-btn.modern-btn-outline{
    padding-left:min(14px, max(7px, calc(var(--rt-box-width, 140px) * .07)));
    padding-right:min(14px, max(7px, calc(var(--rt-box-width, 140px) * .07)));
  }
}


/* =========================
   Kiosk Plus / Touch-Bedienung
========================= */
#modern-runtime-app .rt-kiosk-bar,
#modern-runtime-app .rt-kiosk-page-panel,
#modern-runtime-app .rt-kiosk-wake {
  font-family: Arial, Helvetica, sans-serif;
}
#modern-runtime-app .rt-kiosk-bar {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%) translateY(0);
  z-index: 12000;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 24px);
  padding: 8px 10px;
  border-radius: 16px;
  background: rgba(35, 49, 63, .88);
  color: #fff;
  box-shadow: 0 12px 34px rgba(0,0,0,.25);
  backdrop-filter: blur(12px);
  transition: opacity .28s ease, transform .28s ease;
}
#modern-runtime-app .rt-kiosk-bar.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(24px);
}
#modern-runtime-app .rt-kiosk-info {
  display: grid;
  gap: 2px;
  min-width: 190px;
  max-width: 360px;
  padding: 0 6px 0 2px;
}
#modern-runtime-app .rt-kiosk-title {
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#modern-runtime-app .rt-kiosk-sub {
  font-size: 11px;
  color: #d9e4ee;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#modern-runtime-app .rt-kiosk-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
#modern-runtime-app .rt-kiosk-actions a,
#modern-runtime-app .rt-kiosk-actions button,
#modern-runtime-app .rt-kiosk-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 44px;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.12);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}
#modern-runtime-app .rt-kiosk-actions a:hover,
#modern-runtime-app .rt-kiosk-actions button:hover,
#modern-runtime-app .rt-kiosk-close:hover {
  background: rgba(255,255,255,.22);
}
#modern-runtime-app .rt-kiosk-alarm-badge {
  display: none;
  min-width: 18px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  line-height: 1.2;
}
#modern-runtime-app .rt-kiosk-alarm-badge.active { display: inline-flex; }
#modern-runtime-app .rt-kiosk-wake {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 11990;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(35, 49, 63, .76);
  color: #fff;
  font-size: 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  cursor: pointer;
  backdrop-filter: blur(10px);
}
#modern-runtime-app .rt-kiosk-page-panel {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(920px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  transform: translate(-50%, -50%) scale(.98);
  opacity: 0;
  pointer-events: none;
  z-index: 13000;
  background: rgba(248, 250, 252, .96);
  border: 1px solid rgba(148, 163, 184, .65);
  border-radius: 20px;
  box-shadow: 0 18px 60px rgba(0,0,0,.32);
  overflow: hidden;
  backdrop-filter: blur(14px);
  transition: opacity .18s ease, transform .18s ease;
}
#modern-runtime-app .rt-kiosk-page-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
#modern-runtime-app .rt-kiosk-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #334155;
  color: #fff;
}
#modern-runtime-app .rt-kiosk-panel-head strong { font-size: 16px; }
#modern-runtime-app .rt-kiosk-panel-head input {
  flex: 1 1 auto;
  min-width: 120px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,.12);
  color: #fff;
  outline: none;
  font-weight: 700;
}
#modern-runtime-app .rt-kiosk-panel-head input::placeholder { color: rgba(255,255,255,.75); }
#modern-runtime-app .rt-kiosk-pages {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
  max-height: calc(min(760px, 100vh - 28px) - 70px);
  overflow: auto;
}
#modern-runtime-app .rt-kiosk-page-link {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #d4dde7;
  background: #fff;
  color: #1f3347;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(15,23,42,.05);
}
#modern-runtime-app .rt-kiosk-page-link:hover,
#modern-runtime-app .rt-kiosk-page-link.active {
  background: #e8f1ff;
  border-color: #93b5e8;
}
@media (max-width: 700px) {
  #modern-runtime-app .rt-kiosk-bar {
    left: 8px;
    right: 8px;
    bottom: 8px;
    transform: translateY(0);
    flex-direction: column;
    align-items: stretch;
    border-radius: 14px;
  }
  #modern-runtime-app .rt-kiosk-bar.hidden { transform: translateY(24px); }
  #modern-runtime-app .rt-kiosk-info { max-width: none; }
  #modern-runtime-app .rt-kiosk-actions a,
  #modern-runtime-app .rt-kiosk-actions button { flex: 1 1 auto; }
  #modern-runtime-app .rt-kiosk-wake { right: 10px; bottom: 10px; }
}


/* =========================
   Runtime-Themes aus Einstellungen
========================= */
#modern-runtime-app.rt-theme-dark,
#modern-runtime-app.rt-theme-dark .rt-content { background: #111827; color: #e5e7eb; }
#modern-runtime-app.rt-theme-dark .rt-header { background: #0f172a; color: #f8fafc; }
#modern-runtime-app.rt-theme-dark .rt-menubar { background: #1f2937; border-color: #374151; }
#modern-runtime-app.rt-theme-dark .rt-nav-link,
#modern-runtime-app.rt-theme-dark .rt-nav-toggle { background: #374151; border-color: #4b5563; color: #f9fafb; }
#modern-runtime-app.rt-theme-dark .rt-nav-item.open > .rt-nav-toggle,
#modern-runtime-app.rt-theme-dark .rt-nav-link:hover,
#modern-runtime-app.rt-theme-dark .rt-nav-toggle:hover,
#modern-runtime-app.rt-theme-dark .rt-nav-link.active { background: #111827; }
#modern-runtime-app.rt-theme-dark .rt-dropdown { background: #1f2937; border-color: #4b5563; }
#modern-runtime-app.rt-theme-dark .rt-dd-link { background: #1f2937; color: #e5e7eb; }
#modern-runtime-app.rt-theme-dark .rt-dd-link:hover { background: #374151; color: #fff; }
#modern-runtime-app.rt-theme-dark .rt-dd-link.active { background: #2563eb; color: #fff; }
#modern-runtime-app.rt-theme-dark .rt-page-card { background: #1f2937; border-color: #374151; }
#modern-runtime-app.rt-theme-dark .rt-stage-wrap,
#modern-runtime-app.rt-theme-dark .rt-stage { background: #111827; }
#modern-runtime-app.rt-theme-dark .rt-legend,
#modern-runtime-app.rt-theme-dark .rt-footer-row { color: #cbd5e1; }

#modern-runtime-app.rt-theme-glass,
#modern-runtime-app.rt-theme-glass .rt-content { background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 48%, #eef2ff 100%); }
#modern-runtime-app.rt-theme-glass .rt-header { background: rgba(51, 65, 85, .78); backdrop-filter: blur(10px); }
#modern-runtime-app.rt-theme-glass .rt-menubar { background: rgba(78, 100, 122, .62); backdrop-filter: blur(12px); border-color: rgba(255,255,255,.28); }
#modern-runtime-app.rt-theme-glass .rt-nav-link,
#modern-runtime-app.rt-theme-glass .rt-nav-toggle { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.32); color: #fff; box-shadow: 0 2px 10px rgba(15,23,42,.12); }
#modern-runtime-app.rt-theme-glass .rt-nav-link.active,
#modern-runtime-app.rt-theme-glass .rt-nav-link:hover,
#modern-runtime-app.rt-theme-glass .rt-nav-toggle:hover,
#modern-runtime-app.rt-theme-glass .rt-nav-item.open > .rt-nav-toggle { background: rgba(15, 23, 42, .35); }
#modern-runtime-app.rt-theme-glass .rt-page-card { background: rgba(255,255,255,.42); border-color: rgba(255,255,255,.55); box-shadow: 0 12px 35px rgba(15,23,42,.14); backdrop-filter: blur(10px); }
#modern-runtime-app.rt-theme-glass .rt-stage-wrap { background: rgba(255,255,255,.3); }

#modern-runtime-app.rt-theme-minimal,
#modern-runtime-app.rt-theme-minimal .rt-content { background: #f3f4f6; }
#modern-runtime-app.rt-theme-minimal .rt-header { background: #f9fafb; color: #111827; border-bottom: 1px solid #e5e7eb; }
#modern-runtime-app.rt-theme-minimal .rt-header .subline { color: #6b7280; }
#modern-runtime-app.rt-theme-minimal .rt-menubar { background: #f9fafb; border-color: #e5e7eb; }
#modern-runtime-app.rt-theme-minimal .rt-nav-link,
#modern-runtime-app.rt-theme-minimal .rt-nav-toggle { background: #fff; color: #374151; border-color: #d1d5db; }
#modern-runtime-app.rt-theme-minimal .rt-nav-link.active,
#modern-runtime-app.rt-theme-minimal .rt-nav-link:hover,
#modern-runtime-app.rt-theme-minimal .rt-nav-toggle:hover,
#modern-runtime-app.rt-theme-minimal .rt-nav-item.open > .rt-nav-toggle { background: #e5e7eb; color: #111827; }
#modern-runtime-app.rt-theme-minimal .rt-page-card { background: transparent; border: 0; box-shadow: none; }
#modern-runtime-app.rt-theme-minimal .rt-stage-wrap { background: transparent; }



/* =========================
   Seiten-Schnellwahl / Favoriten
========================= */
#modern-runtime-app .rt-page-dropdown {
  min-width: 360px;
  padding: 0;
}
#modern-runtime-app .rt-dd-tools {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 9px;
  background: #f8fafc;
  border-bottom: 1px solid #dbe3ec;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
}
#modern-runtime-app .rt-dd-search {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #b8c7d6;
  border-radius: 8px;
  font-size: 13px;
  color: #17324f;
  background: #fff;
  outline: none;
}
#modern-runtime-app .rt-dd-search:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.16);
}
#modern-runtime-app .rt-current-fav {
  border: 1px solid #d7b35a;
  background: #fff7d6;
  color: #6f4e00;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
}
#modern-runtime-app .rt-current-fav.active {
  background: #facc15;
  color: #422006;
  border-color: #eab308;
}
#modern-runtime-app .rt-dd-section-title {
  padding: 8px 12px 5px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #64748b;
  background: #ffffff;
}
#modern-runtime-app .rt-page-row {
  display: flex;
  align-items: stretch;
  min-width: 0;
  background: #ffffff;
}
#modern-runtime-app .rt-page-row[hidden] {
  display: none !important;
}
#modern-runtime-app .rt-page-row .rt-dd-link {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
#modern-runtime-app .rt-fav-toggle {
  width: 38px;
  flex: 0 0 38px;
  border: 0;
  border-left: 1px solid #edf2f7;
  background: #ffffff;
  color: #94a3b8;
  font-size: 17px;
  cursor: pointer;
}
#modern-runtime-app .rt-menu-entry-icon{display:inline-flex;align-items:center;justify-content:center;min-width:1.6em;margin-right:4px;text-align:center}
#modern-runtime-app .rt-nav-icon img,#modern-runtime-app .rt-menu-entry-icon img{width:1.15em;height:1.15em;object-fit:contain;vertical-align:-.18em;display:inline-block}
#modern-runtime-app .rt-menu-link-spacer{width:38px;flex:0 0 38px;border-left:1px solid #edf2f7;background:#fff}
#modern-runtime-app .rt-kiosk-category-title{grid-column:1/-1;margin:6px 2px 0;color:#64748b;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}
#modern-runtime-app .rt-fav-toggle:hover {
  background: #fff7d6;
  color: #ca8a04;
}
#modern-runtime-app .rt-fav-toggle.active {
  color: #eab308;
}
#modern-runtime-app .rt-dd-empty {
  display: none;
  padding: 14px 12px;
  color: #64748b;
  font-size: 13px;
  background: #fff;
}
#modern-runtime-app .rt-dd-empty.visible {
  display: block;
}
#modern-runtime-app .rt-page-shortcuts {
  padding: 7px 10px;
  border-top: 1px solid #edf2f7;
  color: #64748b;
  font-size: 11px;
  background: #f8fafc;
}
.rt-runtime-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15,23,42,.92);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 10px 30px rgba(15,23,42,.25);
  transition: opacity .18s ease, transform .18s ease;
}
.rt-runtime-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
#modern-runtime-app.rt-theme-dark .rt-dd-tools,
#modern-runtime-app.rt-theme-dark .rt-dd-section-title,
#modern-runtime-app.rt-theme-dark .rt-page-row,
#modern-runtime-app.rt-theme-dark .rt-fav-toggle,
#modern-runtime-app.rt-theme-dark .rt-dd-empty,
#modern-runtime-app.rt-theme-dark .rt-page-shortcuts {
  background: #1f2937;
  color: #e5e7eb;
}
#modern-runtime-app.rt-theme-dark .rt-dd-tools,
#modern-runtime-app.rt-theme-dark .rt-page-shortcuts {
  border-color: #374151;
}
#modern-runtime-app.rt-theme-dark .rt-fav-toggle {
  border-color: #374151;
}
#modern-runtime-app.rt-theme-dark .rt-dd-search {
  background: #111827;
  color: #f9fafb;
  border-color: #4b5563;
}

@media (max-width: 900px) {
  #modern-runtime-app .rt-nav {
    gap: 6px;
  }

  #modern-runtime-app .rt-nav-link,
  #modern-runtime-app .rt-nav-toggle {
    padding: 7px 11px;
    min-width: 60px;
    font-size: 12px;
  }

  #modern-runtime-app .rt-dropdown {
    left: 0;
    right: auto;
    min-width: 190px;
    max-width: 94vw;
  }

  #modern-runtime-app .rt-nav-item:last-child .rt-dropdown,
  #modern-runtime-app .rt-nav-item:nth-last-child(2) .rt-dropdown {
    left: auto;
    right: 0;
  }

  #modern-runtime-app .rt-nav-actions {
    width: 100%;
  }
}


/* Step 2.3.80d - Popup-Optionen */
.modern-popup-close {
  position: fixed;
  z-index: 2147483000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid rgba(15,23,42,.22);
  border-radius: 999px;
  background: rgba(15,23,42,.88);
  color: #fff;
  font: 700 13px/1 Arial, Helvetica, sans-serif;
  box-shadow: 0 12px 30px rgba(15,23,42,.22);
  cursor: pointer;
  user-select: none;
  backdrop-filter: blur(8px);
}
.modern-popup-close.pos-top-right { right: 14px; top: 14px; }
.modern-popup-close.pos-top-left { left: 14px; top: 14px; }
.modern-popup-close.pos-bottom-right { right: 14px; bottom: 14px; }
.modern-popup-close.pos-bottom-left { left: 14px; bottom: 14px; }
.modern-popup-close:hover { background: #b91c1c; border-color: rgba(255,255,255,.22); }
.modern-popup-close:active { transform: translateY(1px); }
#modern-runtime-app.rt-popup-mode .rt-header { padding-right: 190px; }
#modern-runtime-app.rt-popup-mode.popup-close-hidden .rt-header { padding-right: 16px; }


/* Step 2.3.139 - Smartphone Runtime Korrektur
   - keine zweite untere Schnellnavigation im Normalmodus
   - Stage bleibt nach Zoom/Pan bewegbar
*/
#modern-runtime-app .rt-mobile-toolbar {
  display: none !important;
}

@media (max-width: 760px) {
  html, body {
    overflow-x: auto;
    -webkit-text-size-adjust: 100%;
    overscroll-behavior-x: contain;
  }

  #modern-runtime-app {
    min-height: 100svh;
  }

  #modern-runtime-app .rt-header {
    position: sticky;
    top: 0;
    z-index: 6000;
    padding: 8px 12px;
    font-size: 16px;
    line-height: 1.2;
    text-align: left;
    box-shadow: 0 2px 10px rgba(15,23,42,.12);
  }

  #modern-runtime-app .rt-header .subline {
    display: none;
  }

  #modern-runtime-app .rt-menubar {
    position: sticky;
    top: 0;
    z-index: 5990;
    padding: 6px 7px;
    box-shadow: 0 3px 12px rgba(15,23,42,.14);
  }

  #modern-runtime-app .rt-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    gap: 6px;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  #modern-runtime-app .rt-nav::-webkit-scrollbar {
    height: 4px;
  }

  #modern-runtime-app .rt-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.35);
    border-radius: 999px;
  }

  #modern-runtime-app .rt-nav-item,
  #modern-runtime-app .rt-nav-link,
  #modern-runtime-app .rt-nav-toggle,
  #modern-runtime-app .rt-nav-special-link {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  #modern-runtime-app .rt-nav-link,
  #modern-runtime-app .rt-nav-toggle {
    min-width: 0;
    min-height: 44px;
    padding: 9px 12px;
    border-radius: 13px;
    font-size: 13px;
    line-height: 1.15;
  }

  #modern-runtime-app .rt-nav-actions {
    width: auto !important;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 6px;
  }

  #modern-runtime-app .rt-dropdown,
  #modern-runtime-app .rt-nav-item:last-child .rt-dropdown,
  #modern-runtime-app .rt-nav-item:nth-last-child(2) .rt-dropdown {
    position: fixed;
    left: 8px !important;
    right: 8px !important;
    top: 96px;
    bottom: 72px;
    width: auto;
    min-width: 0;
    max-width: none;
    max-height: none;
    border-radius: 18px;
    box-shadow: 0 18px 55px rgba(15,23,42,.28);
    overscroll-behavior: contain;
  }

  #modern-runtime-app .rt-dd-tools {
    grid-template-columns: minmax(0,1fr);
    gap: 8px;
    padding: 10px;
    border-radius: 18px 18px 0 0;
  }

  #modern-runtime-app .rt-dd-search,
  #modern-runtime-app .rt-current-fav {
    min-height: 44px;
    font-size: 16px;
  }

  #modern-runtime-app .rt-dd-link,
  #modern-runtime-app .rt-top-dd-link {
    display: flex;
    align-items: center;
    min-height: 46px;
    min-width: 0;
    padding: 11px 14px;
    font-size: 15px;
    line-height: 1.2;
    box-sizing: border-box;
  }

  #modern-runtime-app .rt-page-row .rt-dd-link {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #modern-runtime-app .rt-fav-toggle,
  #modern-runtime-app .rt-menu-link-spacer {
    width: 48px;
    flex-basis: 48px;
    font-size: 20px;
  }

  #modern-runtime-app .rt-dd-section-title {
    padding: 10px 14px 6px;
    font-size: 12px;
  }

  #modern-runtime-app .rt-page-shortcuts {
    display: none;
  }

  #modern-runtime-app .rt-content {
    padding: 8px 6px 12px;
  }

  #modern-runtime-app .rt-page-card {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding: 4px;
    border-radius: 8px;
  }

  #modern-runtime-app .rt-stage-wrap {
    overflow: auto;
    border-radius: 8px;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y pinch-zoom;
    overscroll-behavior: contain;
  }

  #modern-runtime-app.rt-mobile-fit .rt-stage {
    margin: 0 !important;
    transform: scale(var(--rt-mobile-scale, 1));
    transform-origin: top left;
  }

  #modern-runtime-app .rt-point-btn {
    min-height: 22px;
  }

  #modern-runtime-app .rt-camera-open-direct {
    opacity: .88;
    padding: 8px 10px;
    font-size: 12px;
  }

  #modern-runtime-app .rt-camera-ptz {
    right: 6px;
    bottom: 6px;
    opacity: .78;
    transform: none;
  }

  #modern-runtime-app .rt-camera-ptz button {
    min-width: 38px;
    min-height: 36px;
    font-size: 16px;
  }

  #modern-runtime-app .rt-mobile-toolbar {
    display: none !important;
  }

  .modern-popup-close {
    padding: 10px 13px;
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  #modern-runtime-app .rt-nav-text {
    max-width: 88px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}


/* Step 2.3.288 - Burgermenü Forcefix */
@media (max-width: 1180px), (pointer: coarse) {
  #modern-runtime-app .rt-menubar{display:flex!important;align-items:center!important;gap:8px!important;overflow:visible!important}
  #modern-runtime-app .rt-mobile-burger{display:inline-flex!important}
  #modern-runtime-app.rt-mobile-menu-force:not(.rt-mobile-menu-open) #rtMainNav{display:none!important;visibility:hidden!important;pointer-events:none!important}
  #modern-runtime-app.rt-mobile-menu-force.rt-mobile-menu-open #rtMainNav{
    display:flex!important;visibility:visible!important;pointer-events:auto!important;position:fixed!important;
    left:8px!important;right:8px!important;top:var(--rt-burger-panel-top,58px)!important;
    bottom:calc(env(safe-area-inset-bottom,0px) + 8px)!important;width:auto!important;height:auto!important;
    max-height:none!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important;
    overflow-x:hidden!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;
    overscroll-behavior:contain!important;touch-action:pan-y!important;padding:12px!important;border-radius:20px!important;
    border:1px solid rgba(148,163,184,.45)!important;background:rgba(241,247,253,.99)!important;
    box-shadow:0 22px 65px rgba(15,23,42,.38)!important;z-index:2147483000!important
  }
  #modern-runtime-app.rt-theme-dark.rt-mobile-menu-force.rt-mobile-menu-open #rtMainNav{background:rgba(15,23,42,.99)!important}
  #modern-runtime-app.rt-mobile-menu-force.rt-mobile-menu-open #rtMainNav .rt-nav-actions{display:flex!important;flex-direction:column!important;align-items:stretch!important;width:100%!important;gap:8px!important}
  #modern-runtime-app.rt-mobile-menu-force.rt-mobile-menu-open #rtMainNav .rt-nav-link,
  #modern-runtime-app.rt-mobile-menu-force.rt-mobile-menu-open #rtMainNav .rt-nav-toggle{display:flex!important;width:100%!important;justify-content:flex-start!important;min-height:46px!important;padding:11px 13px!important;box-sizing:border-box!important}
  #modern-runtime-app.rt-mobile-menu-force.rt-mobile-menu-open #rtMainNav .rt-nav-item{width:100%!important}
  #modern-runtime-app.rt-mobile-menu-force.rt-mobile-menu-open #rtMainNav .rt-nav-spacer{display:none!important}
  #modern-runtime-app.rt-mobile-menu-force.rt-mobile-menu-open #rtMainNav .rt-dropdown{position:static!important;display:none;width:100%!important;max-height:min(62vh,520px)!important;overflow-x:hidden!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;touch-action:pan-y!important;overscroll-behavior:contain!important;margin-top:6px!important;border-radius:16px!important}
  #modern-runtime-app.rt-mobile-menu-force.rt-mobile-menu-open #rtMainNav .rt-nav-item.open > .rt-dropdown{display:block!important}
  #modern-runtime-app.rt-mobile-menu-force.rt-mobile-menu-open #rtMainNav .rt-nav-badge.active{margin-left:auto!important}
}


/* Step 2.3.289 - Burger Vollbild/Querformat Anlagen-Fix
   Korrigiert: Im Kiosk/Vollbildmodus versteckte .rt-menubar und im Querformat unsichtbare Anlagen-Auswahl.
*/
@media (max-width: 1180px), (pointer: coarse) {
  /* 2.3.288 wurde im Vollbild/Kiosk durch die ältere Kiosk-Regel display:none überstimmt.
     Diese Regel ist spezifischer und kommt später. */
  #modern-runtime-app.rt-kiosk .rt-menubar {
    display: flex !important;
    position: fixed !important;
    top: calc(env(safe-area-inset-top, 0px) + 6px) !important;
    left: 8px !important;
    right: auto !important;
    width: auto !important;
    max-width: calc(100vw - 16px) !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    z-index: 2147483200 !important;
    pointer-events: auto !important;
  }

  #modern-runtime-app.rt-kiosk .rt-mobile-burger {
    display: inline-flex !important;
    min-height: 42px !important;
    background: rgba(255,255,255,.96) !important;
  }

  #modern-runtime-app.rt-kiosk.rt-theme-dark .rt-mobile-burger {
    background: rgba(15,23,42,.96) !important;
  }

  #modern-runtime-app.rt-kiosk.rt-mobile-menu-force.rt-mobile-menu-open #rtMainNav,
  #modern-runtime-app.rt-mobile-menu-force.rt-mobile-menu-open #rtMainNav {
    top: calc(env(safe-area-inset-top, 0px) + 56px) !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 8px) !important;
    min-height: 180px !important;
  }

  /* Home + Anlagen immer ganz oben im Burger-Panel. */
  #modern-runtime-app.rt-mobile-menu-force #rtMainNav > a.rt-nav-link:first-child {
    order: -30 !important;
  }

  #modern-runtime-app.rt-mobile-menu-force #rtMainNav > .rt-nav-item:first-of-type {
    order: -29 !important;
    display: block !important;
    visibility: visible !important;
  }

  #modern-runtime-app.rt-mobile-menu-force #rtMainNav > .rt-nav-item:first-of-type > .rt-nav-toggle {
    display: flex !important;
    visibility: visible !important;
  }

  #modern-runtime-app.rt-mobile-menu-force.rt-mobile-menu-open #rtPageDropdown {
    display: none;
    max-height: min(62vh, 520px) !important;
    overflow-y: auto !important;
  }

  #modern-runtime-app.rt-mobile-menu-force.rt-mobile-menu-open .rt-nav-item.open > #rtPageDropdown {
    display: block !important;
  }
}

@media (max-width: 1180px) and (orientation: landscape), (pointer: coarse) and (orientation: landscape) {
  #modern-runtime-app.rt-kiosk .rt-menubar {
    top: calc(env(safe-area-inset-top, 0px) + 4px) !important;
    left: 6px !important;
  }

  #modern-runtime-app.rt-kiosk.rt-mobile-menu-force.rt-mobile-menu-open #rtMainNav,
  #modern-runtime-app.rt-mobile-menu-force.rt-mobile-menu-open #rtMainNav {
    top: calc(env(safe-area-inset-top, 0px) + 48px) !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 6px) !important;
    padding: 8px !important;
    gap: 6px !important;
  }

  #modern-runtime-app.rt-mobile-menu-force.rt-mobile-menu-open #rtMainNav .rt-nav-link,
  #modern-runtime-app.rt-mobile-menu-force.rt-mobile-menu-open #rtMainNav .rt-nav-toggle {
    min-height: 38px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  #modern-runtime-app.rt-mobile-menu-force.rt-mobile-menu-open #rtPageDropdown,
  #modern-runtime-app.rt-mobile-menu-force.rt-mobile-menu-open .rt-dropdown {
    max-height: min(54vh, 320px) !important;
  }

  #modern-runtime-app.rt-mobile-menu-force.rt-mobile-menu-open #rtPageDropdown .rt-dd-tools {
    position: sticky !important;
    top: 0 !important;
  }
}


/* Step 2.3.290 - Burger Touch Only + Anlagen Dropdown Fix */
#modern-runtime-app:not(.rt-mobile-burger-enabled) .rt-mobile-burger{display:none!important}
#modern-runtime-app.rt-mobile-burger-enabled .rt-mobile-burger{display:inline-flex!important}
#modern-runtime-app.rt-mobile-burger-enabled .rt-menubar{display:flex!important;align-items:center!important;gap:8px!important;overflow:visible!important;z-index:2147483200!important}
#modern-runtime-app.rt-mobile-burger-enabled:not(.rt-mobile-menu-open) #rtMainNav{display:none!important;visibility:hidden!important;pointer-events:none!important}
#modern-runtime-app.rt-mobile-burger-enabled.rt-mobile-menu-open #rtMainNav{display:flex!important;visibility:visible!important;pointer-events:auto!important;position:fixed!important;left:8px!important;right:8px!important;top:var(--rt-burger-panel-top,58px)!important;bottom:calc(env(safe-area-inset-bottom,0px) + 8px)!important;width:auto!important;height:auto!important;max-height:none!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important;overflow-x:hidden!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important;touch-action:pan-y!important;padding:12px!important;border-radius:20px!important;border:1px solid rgba(148,163,184,.45)!important;background:rgba(241,247,253,.99)!important;box-shadow:0 22px 65px rgba(15,23,42,.38)!important;z-index:2147483000!important;box-sizing:border-box!important}
#modern-runtime-app.rt-theme-dark.rt-mobile-burger-enabled.rt-mobile-menu-open #rtMainNav{background:rgba(15,23,42,.99)!important}
#modern-runtime-app.rt-mobile-burger-enabled.rt-mobile-menu-open #rtMainNav .rt-nav-actions,#modern-runtime-app.rt-mobile-burger-enabled.rt-mobile-menu-open #rtMainNav .rt-nav-item{display:flex!important;flex-direction:column!important;align-items:stretch!important;width:100%!important;gap:8px!important;flex:0 0 auto!important}
#modern-runtime-app.rt-mobile-burger-enabled.rt-mobile-menu-open #rtMainNav .rt-nav-link,#modern-runtime-app.rt-mobile-burger-enabled.rt-mobile-menu-open #rtMainNav .rt-nav-toggle{display:flex!important;width:100%!important;justify-content:flex-start!important;align-items:center!important;min-height:46px!important;padding:11px 13px!important;box-sizing:border-box!important}
#modern-runtime-app.rt-mobile-burger-enabled.rt-mobile-menu-open #rtMainNav .rt-nav-spacer{display:none!important}
#modern-runtime-app.rt-mobile-burger-enabled.rt-mobile-menu-open #rtMainNav .rt-dropdown{position:static!important;display:none!important;visibility:visible!important;pointer-events:auto!important;width:100%!important;min-width:0!important;max-width:none!important;max-height:min(62vh,520px)!important;overflow-x:hidden!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;touch-action:pan-y!important;overscroll-behavior:contain!important;margin-top:6px!important;border-radius:16px!important;box-sizing:border-box!important}
#modern-runtime-app.rt-mobile-burger-enabled.rt-mobile-menu-open #rtMainNav .rt-nav-item.open>.rt-dropdown{display:block!important}
#modern-runtime-app.rt-mobile-burger-enabled.rt-mobile-menu-open #rtPageDropdown{max-height:min(62vh,520px)!important;min-height:130px!important}
#modern-runtime-app.rt-mobile-burger-enabled.rt-mobile-menu-open #rtPageDropdown .rt-dd-tools{position:sticky!important;top:0!important;z-index:2!important}
#modern-runtime-app.rt-mobile-burger-enabled.rt-mobile-menu-open #rtPageDropdown .rt-dd-link,#modern-runtime-app.rt-mobile-burger-enabled.rt-mobile-menu-open #rtPageDropdown .rt-top-dd-link{display:flex!important;min-height:40px!important;align-items:center!important}
#modern-runtime-app.rt-mobile-burger-enabled.rt-kiosk .rt-menubar{display:flex!important;position:fixed!important;top:calc(env(safe-area-inset-top,0px) + 6px)!important;left:8px!important;right:auto!important;width:auto!important;max-width:calc(100vw - 16px)!important;padding:0!important;margin:0!important;background:transparent!important;border:0!important;box-shadow:none!important;pointer-events:auto!important}
@media (orientation:landscape){#modern-runtime-app.rt-mobile-burger-enabled.rt-mobile-menu-open #rtMainNav{top:var(--rt-burger-panel-top,48px)!important;bottom:calc(env(safe-area-inset-bottom,0px) + 6px)!important;padding:8px!important;gap:6px!important}#modern-runtime-app.rt-mobile-burger-enabled.rt-mobile-menu-open #rtMainNav .rt-nav-link,#modern-runtime-app.rt-mobile-burger-enabled.rt-mobile-menu-open #rtMainNav .rt-nav-toggle{min-height:38px!important;padding-top:8px!important;padding-bottom:8px!important}#modern-runtime-app.rt-mobile-burger-enabled.rt-mobile-menu-open #rtMainNav .rt-dropdown,#modern-runtime-app.rt-mobile-burger-enabled.rt-mobile-menu-open #rtPageDropdown{max-height:min(52vh,320px)!important}}


/* Step 2.3.291 - Anlagen Overlay + Fullscreen/Kiosk Wunsch */
#modern-runtime-app.rt-mobile-burger-enabled.rt-page-dropdown-overlay #rtPageDropdown{display:block!important;visibility:visible!important;pointer-events:auto!important;position:fixed!important;left:8px!important;right:8px!important;top:var(--rt-page-dropdown-overlay-top,104px)!important;bottom:calc(env(safe-area-inset-bottom,0px) + 8px)!important;width:auto!important;min-width:0!important;max-width:none!important;max-height:none!important;overflow-x:hidden!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important;touch-action:pan-y!important;z-index:2147483300!important;box-sizing:border-box!important;border-radius:16px!important}
#modern-runtime-app.rt-mobile-burger-enabled.rt-page-dropdown-overlay #rtPageDropdown .rt-dd-tools{position:sticky!important;top:0!important;z-index:3!important;display:flex!important;gap:6px!important;align-items:center!important;padding:6px!important;min-height:0!important}
#modern-runtime-app.rt-mobile-burger-enabled.rt-page-dropdown-overlay #rtPageDropdown .rt-dd-search{min-height:34px!important;height:34px!important;padding:6px 9px!important;font-size:14px!important}
#modern-runtime-app.rt-mobile-burger-enabled.rt-page-dropdown-overlay #rtPageDropdown .rt-current-fav,#modern-runtime-app.rt-mobile-burger-enabled.rt-page-dropdown-overlay #rtPageDropdown .rt-dd-hint,#modern-runtime-app.rt-mobile-burger-enabled.rt-page-dropdown-overlay #rtPageDropdown .rt-dd-subtitle{display:none!important}
#modern-runtime-app.rt-mobile-burger-enabled.rt-page-dropdown-overlay #rtPageDropdown .rt-dd-link,#modern-runtime-app.rt-mobile-burger-enabled.rt-page-dropdown-overlay #rtPageDropdown .rt-top-dd-link{display:flex!important;align-items:center!important;min-height:38px!important;padding-top:8px!important;padding-bottom:8px!important}
@media (orientation:landscape){#modern-runtime-app.rt-mobile-burger-enabled.rt-mobile-menu-open #rtMainNav{padding:7px!important;gap:5px!important}#modern-runtime-app.rt-mobile-burger-enabled.rt-mobile-menu-open #rtMainNav .rt-nav-link,#modern-runtime-app.rt-mobile-burger-enabled.rt-mobile-menu-open #rtMainNav .rt-nav-toggle{min-height:36px!important;padding:7px 10px!important}#modern-runtime-app.rt-mobile-burger-enabled.rt-page-dropdown-overlay #rtPageDropdown{top:var(--rt-page-dropdown-overlay-top,88px)!important}#modern-runtime-app.rt-mobile-burger-enabled.rt-page-dropdown-overlay #rtPageDropdown .rt-dd-tools{padding:4px!important}#modern-runtime-app.rt-mobile-burger-enabled.rt-page-dropdown-overlay #rtPageDropdown .rt-dd-search{height:30px!important;min-height:30px!important}}


/* Step 2.3.293 - Kiosk-Menü Touch/Icon Fix
   Fixes:
   - Kiosk-Menü kommt nach "Ausblenden" nicht bei jedem Touch/Pan wieder.
   - Anlagen-Panel fokussiert die Suche nicht automatisch, Smartphone-Tastatur bleibt zu.
   - Icons/Bilder in der Anlagenliste werden sauber begrenzt.
*/
#modern-runtime-app .rt-kiosk-page-link {
  gap: 8px !important;
  overflow: hidden !important;
}

#modern-runtime-app .rt-kiosk-page-link img,
#modern-runtime-app .rt-kiosk-page-link svg,
#modern-runtime-app .rt-kiosk-actions img,
#modern-runtime-app .rt-kiosk-actions svg {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  object-fit: contain !important;
  flex: 0 0 20px !important;
  display: inline-block !important;
}

#modern-runtime-app .rt-kiosk-page-link .rt-menu-entry-icon,
#modern-runtime-app .rt-kiosk-page-link .rt-nav-icon {
  width: 22px !important;
  max-width: 22px !important;
  flex: 0 0 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

#modern-runtime-app .rt-kiosk-page-panel {
  z-index: 2147483300 !important;
}

@media (pointer: coarse) {
  #modern-runtime-app .rt-kiosk-page-panel {
    width: calc(100vw - 14px) !important;
    max-height: calc(100vh - 14px) !important;
  }

  #modern-runtime-app .rt-kiosk-panel-head {
    padding: 8px !important;
    gap: 8px !important;
  }

  #modern-runtime-app .rt-kiosk-panel-head input {
    font-size: 16px !important;
  }

  #modern-runtime-app .rt-kiosk-pages {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)) !important;
    gap: 8px !important;
    padding: 8px !important;
    max-height: calc(100vh - 82px) !important;
  }

  #modern-runtime-app .rt-kiosk-page-link {
    min-height: 42px !important;
    padding: 8px 10px !important;
    font-size: 13px !important;
    line-height: 1.15 !important;
  }
}

@media (pointer: coarse) and (orientation: landscape) {
  #modern-runtime-app .rt-kiosk-page-panel {
    width: calc(100vw - 10px) !important;
    max-height: calc(100vh - 10px) !important;
  }

  #modern-runtime-app .rt-kiosk-panel-head {
    min-height: 34px !important;
    padding: 6px 8px !important;
  }

  #modern-runtime-app .rt-kiosk-panel-head input {
    display: none !important;
  }

  #modern-runtime-app .rt-kiosk-panel-head strong {
    font-size: 14px !important;
  }

  #modern-runtime-app .rt-kiosk-pages {
    grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)) !important;
    gap: 6px !important;
    padding: 6px !important;
    max-height: calc(100vh - 52px) !important;
  }

  #modern-runtime-app .rt-kiosk-category-title {
    font-size: 11px !important;
    padding: 4px 6px !important;
  }

  #modern-runtime-app .rt-kiosk-page-link {
    min-height: 34px !important;
    padding: 6px 8px !important;
    font-size: 12px !important;
    border-radius: 10px !important;
  }

  #modern-runtime-app .rt-kiosk-page-link img,
  #modern-runtime-app .rt-kiosk-page-link svg,
  #modern-runtime-app .rt-kiosk-actions img,
  #modern-runtime-app .rt-kiosk-actions svg {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    flex-basis: 16px !important;
  }
}

/* Wenn das Kiosk-Menü bewusst ausgeblendet wurde, bleibt nur der kleine Wake-Button aktiv. */
#modern-runtime-app.rt-kiosk-menu-user-hidden .rt-kiosk-bar {
  pointer-events: none !important;
}
#modern-runtime-app.rt-kiosk-menu-user-hidden .rt-kiosk-wake {
  pointer-events: auto !important;
}


/* Step 2.3.294 - PC-Menü/Kiosk-Reset
   Falls localStorage vom Smartphone/Kiosk noch aktiv ist, darf der PC nicht ohne Menü bleiben.
*/
#modern-runtime-app:not(.rt-kiosk):not(.rt-kiosk-wanted) .rt-menubar {
  display: block;
}
@media (hover: hover) and (pointer: fine) {
  #modern-runtime-app:not(.rt-kiosk) .rt-mobile-burger {
    display: none !important;
  }
  #modern-runtime-app:not(.rt-kiosk) #rtMainNav {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}




/* Step 2.3.585 · Smartphone-Menü: Alarmbadge integriert + Ressourcen sichtbar
   - globaler Alarmbadge überlagert auf Touch-Geräten nicht mehr das Burger-Menü
   - Alarmanzahl sitzt direkt im Burger-Button
   - Top-Menügruppen bleiben im Burger-Panel sichtbar
   - Ressourcen wird direkt hinter Home/Anlagen einsortiert
*/
#modern-runtime-app .rt-mobile-alarm-count{
  display:none;
  align-items:center;
  justify-content:center;
  min-width:20px;
  height:20px;
  margin-left:auto;
  padding:0 6px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.8);
  background:#dc2626;
  color:#fff;
  font-size:11px;
  font-weight:900;
  line-height:18px;
  box-sizing:border-box;
}
#modern-runtime-app .rt-mobile-alarm-count.active{display:inline-flex}

/* Step 2.3.586 · Ressourcen ist im Kiosk-Menü ein eigener Hauptbutton.
   Der Button erhält dieselbe Touch-Größe wie Anlagen. */
@media (pointer:coarse){
  #modern-runtime-app.rt-kiosk .rt-kiosk-actions button[data-kiosk-action="resources"],
  #modern-runtime-app.rt-kiosk .rt-kiosk-actions button[data-kiosk-action="misc"]{
    min-width:clamp(104px,22vw,148px)!important;
    min-height:58px!important;
    height:auto!important;
    box-sizing:border-box!important;
    justify-content:center!important;
  }
}
@media (pointer:coarse) and (orientation:portrait){
  #modern-runtime-app.rt-kiosk .rt-kiosk-actions button[data-kiosk-action="resources"],
  #modern-runtime-app.rt-kiosk .rt-kiosk-actions button[data-kiosk-action="misc"]{
    flex:0 0 clamp(104px,22vw,148px)!important;
    width:clamp(104px,22vw,148px)!important;
    max-width:clamp(104px,22vw,148px)!important;
    padding-left:12px!important;
    padding-right:12px!important;
    white-space:nowrap!important;
  }
}

@media (max-width:1180px), (pointer:coarse){
  #modern-runtime-app .rt-global-alarm-badge,
  .rt-global-alarm-badge{
    display:none!important;
  }
  #modern-runtime-app .rt-mobile-burger{
    position:relative!important;
    gap:8px!important;
  }
  #modern-runtime-app .rt-mobile-alarm-count.active{
    display:inline-flex!important;
  }
  #modern-runtime-app.rt-mobile-burger-enabled.rt-mobile-menu-open #rtMainNav{
    padding-bottom:calc(env(safe-area-inset-bottom,0px) + 18px)!important;
    scroll-padding-top:10px!important;
    scroll-padding-bottom:24px!important;
  }
  #modern-runtime-app.rt-mobile-burger-enabled.rt-mobile-menu-open #rtMainNav > .rt-top-menu-group{
    display:flex!important;
    visibility:visible!important;
    flex:0 0 auto!important;
  }
  #modern-runtime-app.rt-mobile-burger-enabled #rtMainNav > .rt-top-menu-group[data-menu-group="ressourcen" i]{
    order:-28!important;
  }
  #modern-runtime-app.rt-mobile-burger-enabled #rtMainNav > .rt-top-menu-group[data-menu-group="resources" i]{
    order:-28!important;
  }
  #modern-runtime-app.rt-mobile-burger-enabled.rt-mobile-menu-open #rtMainNav > .rt-top-menu-group > .rt-nav-toggle{
    display:flex!important;
    visibility:visible!important;
  }
}


/* 2.3.525 · Button-Profi Runtime */
#modern-runtime-app .rt-role-hidden{display:none!important}
#modern-runtime-app .rt-button-icon{display:inline-flex;align-items:center;justify-content:center;line-height:1}
#modern-runtime-app .rt-button-icon.left{margin-right:6px}
#modern-runtime-app .rt-button-icon.right{margin-left:6px;order:3}
#modern-runtime-app .rt-point-btn.rt-action-disabled{opacity:.55;cursor:not-allowed;filter:grayscale(.25)}
#rtButtonActionToast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);z-index:99999;background:#0f172a;color:#fff;border-radius:999px;padding:9px 14px;font-weight:800;font-size:13px;box-shadow:0 12px 32px rgba(15,23,42,.28);opacity:0;pointer-events:none;transition:.18s}
#rtButtonActionToast.show{opacity:1}

