/* HPS widgets styling */

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(25px, 3cqi, 36px); margin-top: 8px; }

.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--free); display: inline-block; position: relative; flex: none; }
.live-dot::after { content:""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--free); opacity: .5; animation: live-pulse 1.8s ease-out infinite; }
@keyframes live-pulse { 0%{transform:scale(.6);opacity:.6} 100%{transform:scale(1.8);opacity:0} }
.live-meta { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); background: var(--bg-grey); padding: 9px 14px; border-radius: 999px; }
.live-meta strong { color: var(--free); }

/* ---------- parking ---------- */
.park-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.park-card { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.park-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.park-card h3 { font-size: 19px; line-height: 1.18; }
.park-card-top > div { min-width: 0; }
.park-adr { display: flex; align-items: center; gap: 6px; font-size: 14px; margin-top: 7px; }
.park-adr svg { color: var(--mint-600); flex: none; }
.park-figures { display: flex; align-items: center; gap: 18px; }
.park-free { display: flex; flex-direction: column; line-height: 1; flex: none; }
.park-free-num { font-size: 38px; font-weight: 800; letter-spacing: -.02em; }
.park-free-lbl { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.cap { flex: 1; display: flex; align-items: center; gap: 10px; }
.cap-track { flex: 1; height: 10px; background: var(--bg-grey); border-radius: 999px; overflow: hidden; }
.cap-fill { height: 100%; border-radius: 999px; transition: width .6s ease, background .4s; }
.cap-pct { font-size: 13px; color: var(--text-2); min-width: 34px; text-align: right; }
.park-meta { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.park-meta span { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-2); }
.park-meta svg { color: var(--mint-600); }
.park-actions { display: flex; gap: 10px; }
.park-actions .btn-ghost { flex: none; width: 52px; padding: 0; }

/* ---------- departure monitor ---------- */
.depmon { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 6px; box-shadow: var(--shadow); overflow: hidden; }
.depmon-dark { background: var(--petrol-600); border-color: rgba(255,255,255,.12); }
.depmon-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 14px; }
.depmon-title { display: flex; align-items: center; gap: 12px; }
.depmon-title > svg { color: var(--mint); flex: none; }
.depmon-kicker { display: block; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--mint-600); }
.depmon-dark .depmon-kicker { color: var(--mint); }
.depmon-stop { border: none; background: none; font-family: inherit; font-size: 18px; font-weight: 700; color: var(--petrol); cursor: pointer; padding: 2px 0; max-width: 230px; }
.depmon-dark .depmon-stop { color: #fff; }
.depmon-clock { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: var(--petrol); }
.depmon-dark .depmon-clock { color: #fff; }
.depmon-list { display: flex; flex-direction: column; max-height: 360px; overflow-y: auto; }
.depmon-row { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-top: 1px solid var(--line); }
.depmon-dark .depmon-row { border-color: rgba(255,255,255,.1); }
.depmon-dest { font-weight: 600; font-size: 16px; color: var(--text); }
.depmon-dark .depmon-dest { color: #fff; }
.depmon-rt { margin-left: 2px; }
.depmon-min { margin-left: auto; font-weight: 700; font-size: 16px; color: var(--petrol); min-width: 64px; text-align: right; }
.depmon-dark .depmon-min { color: var(--mint); }

/* ---------- ortsteil finder ---------- */
.otf { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.otf-dark { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); }
.otf-label { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; color: var(--petrol); margin-bottom: 14px; }
.otf-dark .otf-label { color: #fff; }
.otf-label svg { color: var(--mint-600); }
.otf-dark .otf-label svg { color: var(--mint); }
.otf-control { position: relative; }
.otf-control select {
  width: 100%; appearance: none; font-family: inherit; font-size: 17px; font-weight: 500;
  padding: 15px 48px 15px 16px; border-radius: 12px; border: 2px solid var(--line);
  background: var(--bg-grey); color: var(--text); cursor: pointer;
}
.otf-control select:focus-visible { border-color: var(--mint); }
.otf-caret { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--text-2); pointer-events: none; }
.otf-dark .otf-control select { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }
.otf-result { margin-top: 18px; animation: hps-fade .25s ease; }
.otf-result-h { font-size: 15px; color: var(--text-2); margin-bottom: 10px; }
.otf-dark .otf-result-h { color: var(--text-on-dark-2); }
.otf-result-h strong { color: var(--petrol); }
.otf-dark .otf-result-h strong { color: #fff; }
.otf-lines { display: flex; flex-direction: column; gap: 8px; }
.otf-lines li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--bg-mint); border-radius: 12px; }
.otf-dark .otf-lines li { background: rgba(255,255,255,.08); }
.otf-route { font-weight: 600; color: var(--text); }
.otf-dark .otf-route { color: #fff; }
.otf-takt { margin-left: auto; font-size: 14px; }
.otf-go { width: 40px; height: 40px; border-radius: 10px; background: #fff; display: grid; place-items: center; color: var(--petrol); flex: none; }
.otf-go:hover { background: var(--mint); color: #fff; }
.otf-dark .otf-go { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- quick search ---------- */
.qs { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.qs-tabs { display: flex; gap: 0; background: var(--bg-grey); padding: 6px; }
.qs-tab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 14px; border: none; background: none; border-radius: 12px; font-weight: 700; font-size: 16px; color: var(--text-2); }
.qs-tab.is-active { background: #fff; color: var(--petrol); box-shadow: var(--shadow-sm); }
.qs-tab svg { color: var(--mint-600); }
.qs-body { padding: 20px; }
.qs-form { display: flex; gap: 12px; align-items: stretch; }
.qs-form-bus { flex-wrap: wrap; }
.qs-field { flex: 1; min-width: 180px; display: flex; align-items: center; gap: 12px; padding: 10px 16px; border: 2px solid var(--line); border-radius: 12px; background: var(--bg); }
.qs-field:focus-within { border-color: var(--mint); }
.qs-field > svg { color: var(--mint-600); flex: none; }
.qs-field label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); }
.qs-field input { border: none; outline: none; font-family: inherit; font-size: 16px; width: 100%; background: none; color: var(--text); padding: 2px 0; }
.qs-submit { flex: none; }

/* ---------- service tiles ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.svc-tile { display: flex; flex-direction: column; gap: 12px; padding: 20px; position: relative; }
.svc-ic { width: 52px; height: 52px; border-radius: 14px; background: var(--bg-mint); color: var(--petrol); display: grid; place-items: center; }
.svc-tile:hover .svc-ic { background: var(--mint); color: #fff; }
.svc-txt { display: flex; flex-direction: column; gap: 2px; }
.svc-txt strong { font-size: 16px; color: var(--petrol); }
.svc-txt .muted { font-size: 13px; }
.svc-arr { position: absolute; top: 20px; right: 18px; color: var(--line); transition: color .15s, transform .15s; }
.svc-tile:hover .svc-arr { color: var(--mint); transform: translateX(3px); }

/* ---------- responsive widgets ---------- */
@container site (max-width: 1000px) {
  .park-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
@container site (max-width: 640px) {
  .park-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .qs-form { flex-direction: column; }
  .qs-submit { width: 100%; }
  .sec-head { align-items: flex-start; }
}
