/* rhöncloud Live-Servicestatus – isolated from WordPress/Elementor theme styles. */
#rclsw, #rclsw * { box-sizing: border-box; }
#rclsw {
  --rclsw-navy: #12365a;
  --rclsw-navy-deep: #0d2540;
  --rclsw-blue: #2870a9;
  --rclsw-gold: #f3bf44;
  --rclsw-green: #21ba83;
  --rclsw-yellow: #efa624;
  --rclsw-red: #e7525a;
  --rclsw-gray: #8795a4;
  --rclsw-state: var(--rclsw-gray);
  position: fixed;
  z-index: 10050;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  font-family: inherit, sans-serif;
  font-size: 14px;
  color: #162a40;
  line-height: 1.45;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
#rclsw[data-state="operational"] { --rclsw-state: var(--rclsw-green); }
#rclsw[data-state="maintenance"],
#rclsw[data-state="warning"] { --rclsw-state: var(--rclsw-yellow); }
#rclsw[data-state="outage"] { --rclsw-state: var(--rclsw-red); }
#rclsw [hidden] { display: none !important; }
#rclsw button, #rclsw a { -webkit-tap-highlight-color: transparent; }
#rclsw button { font: inherit; cursor: pointer; }
#rclsw button:focus-visible, #rclsw a:focus-visible {
  outline: 3px solid var(--rclsw-gold);
  outline-offset: 3px;
}
#rclsw .rclsw-trigger {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 66px;
  height: 77px;
  padding: 9px 5px;
  background: linear-gradient(145deg, #1b4b77 0%, #102d4d 65%, #0d2540 100%);
  color: #fff;
  border: 1px solid rgba(243,191,68,.72);
  border-radius: 17px;
  box-shadow: 0 10px 30px rgba(10, 27, 48, .25), 0 2px 8px rgba(10, 27, 48, .16);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
#rclsw .rclsw-trigger:hover {
  transform: translateX(-3px);
  border-color: var(--rclsw-gold);
  box-shadow: 0 12px 32px rgba(10, 27, 48, .3);
}
#rclsw .rclsw-trigger-icon { height: 29px; display: flex; align-items: center; justify-content: center; }
#rclsw .rclsw-trigger-label {
  font-size: 9px;
  line-height: 1;
  font-weight: 760;
  letter-spacing: 1.25px;
  color: #fff;
}
/* Problems are visible at a glance, even if visitors never open the drawer. */
#rclsw[data-state="outage"] .rclsw-trigger::before,
#rclsw[data-state="warning"] .rclsw-trigger::before,
#rclsw[data-state="maintenance"] .rclsw-trigger::before {
  position: absolute;
  right: calc(100% + 9px);
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 10px;
  color: #fff;
  border-radius: 8px;
  background: #b76f1a;
  font-size: 10px;
  font-weight: 780;
  letter-spacing: .6px;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 5px 15px rgba(8,25,44,.20);
}
#rclsw[data-state="outage"] .rclsw-trigger::before { content: "STÖRUNG"; background: #c83649; }
#rclsw[data-state="warning"] .rclsw-trigger::before { content: "EINSCHRÄNKUNG"; }
#rclsw[data-state="maintenance"] .rclsw-trigger::before { content: "WARTUNG"; }
#rclsw .rclsw-trigger-indicator {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 15px;
  height: 15px;
  border: 3px solid var(--rclsw-navy-deep);
  border-radius: 50%;
  background-color: var(--rclsw-state);
  transition: background-color .18s ease;
}
#rclsw[data-state="outage"] .rclsw-trigger-indicator::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 2px solid var(--rclsw-red);
  border-radius: 50%;
  animation: rclsw-pulse 2s ease-out infinite;
}
@keyframes rclsw-pulse {
  0% { opacity: .7; transform: scale(.55); }
  100% { opacity: 0; transform: scale(1.6); }
}
#rclsw .rclsw-panel {
  position: absolute;
  top: 50%;
  right: calc(100% + 13px);
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: min(390px, calc(100vw - 110px));
  max-height: min(78vh, 730px);
  background: #fff;
  border: 1px solid #dce5ec;
  border-radius: 19px;
  box-shadow: 0 23px 60px rgba(9, 29, 52, .26), 0 4px 10px rgba(9, 29, 52, .08);
  color: #19334d;
}
#rclsw .rclsw-panel-header {
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 14px 17px 12px;
  background: linear-gradient(130deg, #102a47, #164574);
  border-bottom: 3px solid var(--rclsw-gold);
}
#rclsw .rclsw-brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: #fff; }
#rclsw .rclsw-brand-icon { display: flex; align-items: center; flex: 0 0 auto; }
#rclsw .rclsw-brand-text {
  display: flex;
  flex-direction: column;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -.6px;
  font-weight: 350;
  color: #fff;
}
#rclsw .rclsw-brand-text > span { display: contents; font-weight: 750; }
#rclsw .rclsw-brand-text small {
  display: block;
  margin-top: 5px;
  color: #b7d3e7;
  font-size: 9px;
  font-weight: 740;
  line-height: 1;
  letter-spacing: 1.85px;
}
#rclsw .rclsw-close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.09);
  color: #fff;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 11px;
  transition: background-color .15s ease;
}
#rclsw .rclsw-close:hover { background: rgba(255,255,255,.22); }
#rclsw .rclsw-overview {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 13px;
  padding: 15px 19px;
  background: #f5f8fb;
  border-bottom: 1px solid #e2e9ef;
}
#rclsw .rclsw-overview-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--rclsw-state);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--rclsw-state) 14%, transparent);
  flex: 0 0 auto;
}
#rclsw .rclsw-overview-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#rclsw #rclsw-headline { display: block; color: #19334d; font-size: 14px; font-weight: 750; overflow-wrap: anywhere; }
#rclsw #rclsw-subheadline { display: block; color: #516578; font-size: 12px; overflow-wrap: anywhere; }
#rclsw .rclsw-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
#rclsw .rclsw-section { padding: 15px 19px 13px; border-bottom: 1px solid #e9eef2; }
#rclsw .rclsw-section-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  color: #172f49;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .9px;
  text-transform: uppercase;
  font-weight: 800;
}
#rclsw .rclsw-count { display: inline-block; padding: 2px 6px; background: #eaf1f6; color: #426079; border-radius: 7px; font-size: 10px; letter-spacing: 0; }
#rclsw .rclsw-list, #rclsw .rclsw-service-list { list-style: none; margin: 0; padding: 0; }
#rclsw .rclsw-event {
  padding: 10px 11px;
  border-left: 3px solid var(--rclsw-yellow);
  border-radius: 8px;
  background: #fff9eb;
  margin: 0 0 8px;
}
#rclsw .rclsw-event[data-kind="outage"] { background: #fff4f4; border-left-color: var(--rclsw-red); }
#rclsw .rclsw-event[data-kind="warning"] { background: #fff9eb; }
#rclsw .rclsw-event-title { display: block; font-size: 12px; line-height: 1.4; font-weight: 740; overflow-wrap: anywhere; }
#rclsw .rclsw-event-description { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.45; color: #526475; overflow-wrap: anywhere; }
#rclsw .rclsw-group { margin: 0 0 12px; }
#rclsw .rclsw-group-heading {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #47708a;
  font-size: 11px;
  font-weight: 760;
  margin: 0 0 5px;
}
#rclsw .rclsw-group-heading::before { content: ''; flex: 0 0 3px; height: 11px; border-radius: 3px; background: var(--rclsw-gold); }
#rclsw .rclsw-service {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 5px 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #243b51;
}
#rclsw .rclsw-service[data-child="true"] { padding-left: 17px; color: #52667b; font-size: 12px; }
#rclsw .rclsw-service-dot { display: inline-block; width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--rclsw-gray); margin-top: 5px; }
#rclsw .rclsw-service[data-status="operational"] .rclsw-service-dot { background: var(--rclsw-green); }
#rclsw .rclsw-service[data-status="maintenance"] .rclsw-service-dot { background: var(--rclsw-yellow); }
#rclsw .rclsw-service[data-status="warning"] .rclsw-service-dot { background: var(--rclsw-yellow); }
#rclsw .rclsw-service[data-status="outage"] .rclsw-service-dot { background: var(--rclsw-red); }
#rclsw .rclsw-service-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
#rclsw .rclsw-service-condition { font-size: 10px; color: #a44a20; font-weight: 700; flex: 0 0 auto; }
#rclsw .rclsw-service[data-status="outage"] .rclsw-service-condition { color: #bc3043; }
#rclsw .rclsw-service[data-status="unknown"] .rclsw-service-condition { color: #667889; }
#rclsw .rclsw-empty { font-size: 12px; color: #708394; margin: 0; }
#rclsw .rclsw-more { margin: 9px 0 0; font-size: 11px; color: #627789; }
#rclsw .rclsw-footer {
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 12px 17px;
  background: #f8fafc;
}
#rclsw .rclsw-updated { font-size: 10.5px; color: #6a7c8c; }
#rclsw .rclsw-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  justify-content: center;
  gap: 4px;
  padding: 8px 10px;
  background: var(--rclsw-navy);
  color: #fff;
  border-radius: 9px;
  text-decoration: none;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 760;
  transition: background-color .15s ease;
}
#rclsw .rclsw-link:hover { background: var(--rclsw-blue); color: #fff; text-decoration: none; }
@media (max-width: 640px) {
  #rclsw { top: auto; bottom: 20px; right: 13px; transform: none; }
  #rclsw .rclsw-trigger { width: 59px; height: 64px; border-radius: 16px; }
  #rclsw .rclsw-panel {
    position: absolute;
    top: auto;
    right: 0;
    bottom: calc(100% + 12px);
    transform: none;
    width: min(390px, calc(100vw - 26px));
    max-height: min(72vh, 610px);
    border-radius: 17px;
  }
  #rclsw .rclsw-trigger-icon svg { width: 24px; height: 24px; }
  #rclsw .rclsw-trigger-label { font-size: 8px; }
}
@media (max-width: 360px) {
  #rclsw .rclsw-footer { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  #rclsw *, #rclsw *::before, #rclsw *::after { animation: none !important; transition: none !important; }
}

/* v1.0.1: Originalmarke aus WordPress-Mediathek / Theme, keine Logo-Nachzeichnung. */
#rclsw .rclsw-brand { flex-direction:column; align-items:flex-start; gap:3px; }
#rclsw .rclsw-official-logo { display:block; width:auto; height:auto; max-width:205px; max-height:37px; object-fit:contain; object-position:left center; }
#rclsw .rclsw-brand-wordmark { color:#fff; font-size:23px; line-height:1.12; font-weight:350; letter-spacing:-.6px; }
#rclsw .rclsw-brand-wordmark strong { font-weight:750; }
#rclsw .rclsw-brand-subtitle { color:#b7d3e7; font-size:9px; font-weight:740; line-height:1.2; letter-spacing:1.75px; }

/* v1.0.2 — Mobile visibility: keep the launcher clear of bottom cookie/chat controls.
   Elementor and optimization plugins may apply global mobile rules. */
@media (max-width: 640px) {
  body #rclsw {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    top: 48% !important;
    bottom: auto !important;
    right: max(10px, env(safe-area-inset-right, 0px)) !important;
    left: auto !important;
    transform: translateY(-50%) !important;
    z-index: 2147483000 !important;
    pointer-events: auto !important;
  }
  body #rclsw .rclsw-trigger {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 54px;
    height: 62px;
  }
  body #rclsw .rclsw-panel {
    position: absolute;
    top: 50%;
    bottom: auto;
    right: calc(100% + 8px);
    transform: translateY(-50%);
    width: min(350px, calc(100vw - 78px));
    max-height: min(76vh, 620px);
  }
}
