/* HPS Startseite — Layout (Hero, Kacheln, Live, Kennzahlen, News, Teaser) */

.eyebrow-light { color: #86D8CB; }
.eyebrow-light::before { background: var(--mint); }

/* mint-outline button (auf dunklem Hero) */
.btn-mint-outline { background: transparent; color: #A7E4D9; border-color: var(--mint); }
.btn-mint-outline:hover { background: var(--mint); color: #03332e; border-color: var(--mint); }

/* image placeholder */
.img-ph { position: relative; overflow: hidden; width: 100%; }
.img-ph-tag {
  position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 7px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; font-weight: 600;
  background: rgba(255,255,255,.85); color: var(--petrol); padding: 6px 10px; border-radius: 8px; backdrop-filter: blur(2px);
}

/* notice banner */
.notice { background: var(--petrol-600); color: #fff; }
.notice-inner { display: flex; align-items: center; gap: 14px; padding: 13px 24px; }
.notice-badge { display: inline-flex; align-items: center; gap: 6px; flex: none; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 13px; padding: 5px 11px; border-radius: 999px; }
.notice-inner p { font-size: 15px; color: rgba(255,255,255,.92); }
.notice-inner p strong { color: var(--accent); }
.notice-inner > a { flex: none; color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.notice-x { margin-left: auto; flex: none; border: none; background: rgba(255,255,255,.12); color: #fff; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; }
.notice-x:hover { background: rgba(255,255,255,.24); }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 560px; display: flex; align-items: center; padding: 84px 0; overflow: hidden; background: var(--petrol); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(95deg, rgba(0,42,48,.94) 32%, rgba(0,42,48,.74) 66%, rgba(0,42,48,.52)); }
.hero-inner { position: relative; max-width: 760px; }
.hero-inner h1 { color: #fff; font-size: clamp(40px, 6cqi, 66px); line-height: 1.02; margin: 16px 0 18px; }
.hero-inner p { color: var(--text-on-dark-2); font-size: 19px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

/* ---------- Schnellzugriff-Kacheln ---------- */
.quicktiles-wrap { margin-top: -62px; position: relative; z-index: 5; }
.quicktiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.qtile { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 26px 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; overflow: hidden; transition: transform .18s, box-shadow .18s; }
.qtile:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.qtile-line { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--mint); transform: scaleX(0); transform-origin: left; transition: transform .22s; }
.qtile:hover .qtile-line { transform: scaleX(1); }
.qtile-ic { width: 62px; height: 62px; border-radius: 16px; background: var(--bg-mint); color: var(--petrol); display: grid; place-items: center; transition: background .16s, color .16s; }
.qtile:hover .qtile-ic { background: var(--mint); color: #fff; }
.qtile h3 { font-size: 21px; }
.qtile p { color: var(--text-2); font-size: 15.5px; flex: 1; }
.qtile-cta { display: inline-flex; align-items: center; gap: 8px; color: var(--petrol); font-weight: 700; font-size: 15.5px; margin-top: 4px; }
.qtile-cta svg { transition: transform .15s; }
.qtile:hover .qtile-cta svg { transform: translateX(4px); }

/* ---------- shared section head ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(26px, 3.2cqi, 38px); 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); }

/* ---------- Live-Widget (Ampel-Liste) ---------- */
.livepark { padding: 4px; overflow: hidden; }
.livepark-head, .livepark-row { display: grid; grid-template-columns: 1fr 150px 220px 128px; gap: 16px; align-items: center; }
.livepark-head { padding: 16px 22px 14px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-2); }
.livepark ul { display: flex; flex-direction: column; }
.livepark-row { padding: 15px 22px; border-top: 1px solid var(--line); }
.livepark-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.livepark-name strong { font-size: 16.5px; color: var(--text); }
.livepark-name .muted { font-size: 13.5px; }
.livepark-free { display: flex; align-items: center; gap: 12px; }
.livepark-num { font-size: 25px; font-weight: 800; min-width: 44px; }
.livepark-bar { flex: 1; height: 8px; background: var(--bg-grey); border-radius: 99px; overflow: hidden; }
.livepark-bar span { display: block; height: 100%; border-radius: 99px; transition: width .6s, background .4s; }
.livepark-route { justify-self: end; }

/* ---------- Kennzahlen-Band ---------- */
.statsband { background: var(--petrol); padding: 58px 0; position: relative; }
.statsband-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.statsband-grid li { text-align: center; display: flex; flex-direction: column; gap: 8px; padding: 6px 10px; position: relative; }
.statsband-grid li:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 18%; height: 64%; width: 1px; background: rgba(255,255,255,.16); }
.statsband-grid span { font-size: clamp(38px, 5cqi, 58px); font-weight: 800; color: #fff; letter-spacing: -.02em; line-height: 1; }
.statsband-grid small { color: var(--text-on-dark-2); font-size: 15px; font-weight: 600; }

/* ---------- Aktuelles ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { overflow: hidden; display: flex; flex-direction: column; }
.news-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-meta { display: flex; align-items: center; gap: 12px; }
.news-tag { background: var(--bg-mint); color: var(--petrol); font-weight: 700; font-size: 12px; padding: 4px 11px; border-radius: 999px; }
.news-meta time { color: var(--text-2); font-size: 13.5px; }
.news-card h3 { font-size: 19px; }
.news-body p { color: var(--text-2); font-size: 15px; flex: 1; }
.news-more { display: inline-flex; align-items: center; gap: 7px; color: var(--mint-600); font-weight: 700; font-size: 15px; }
.news-more svg { transition: transform .15s; }
.news-card:hover .news-more svg { transform: translateX(3px); }

/* ---------- Teaser ---------- */
.teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
/* min-width:0: Grid-Kinder (z. B. Abfahrtsmonitor) dürfen schmaler werden als ihr
   min-content — sonst sprengt der Teaser auf Mobilbreite das Layout. */
.teaser > * { min-width: 0; }
.teaser-copy h2 { font-size: clamp(26px, 3.2cqi, 38px); margin: 14px 0 14px; }
.teaser-copy p { color: var(--text-2); font-size: 17px; }
.teaser-feats { display: flex; flex-direction: column; gap: 11px; margin: 20px 0 26px; }
.teaser-feats li { display: flex; align-items: center; gap: 11px; font-weight: 600; color: var(--petrol); }
.teaser-feats svg { color: var(--mint-600); flex: none; }
.teaser-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.teaser-media { position: relative; }

/* mini Innenstadtkarte */
.minimap { position: absolute; right: -18px; bottom: -24px; width: 250px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); }
.minimap-canvas { position: relative; height: 148px; background:
  repeating-linear-gradient(0deg, #e6efec 0 1px, transparent 1px 26px),
  repeating-linear-gradient(90deg, #e6efec 0 1px, transparent 1px 30px), #f4f7f6; }
.minimap-pin { position: absolute; width: 26px; height: 26px; border-radius: 50% 50% 50% 2px; background: var(--mint); color: #fff; display: grid; place-items: center; transform: translate(-50%,-50%) rotate(-45deg); box-shadow: 0 3px 8px rgba(0,40,46,.28); }
.minimap-pin svg { transform: rotate(45deg); }
.minimap-tag { position: absolute; left: 10px; top: 10px; font-size: 11px; color: var(--text-2); background: rgba(255,255,255,.82); padding: 3px 8px; border-radius: 6px; }
.minimap-foot { display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-size: 13.5px; font-weight: 600; color: var(--petrol); }
.minimap-foot svg:last-child { margin-left: auto; color: var(--mint-600); }

/* ---------- responsive ---------- */
@container site (max-width: 980px) {
  .quicktiles { grid-template-columns: 1fr; }
  .quicktiles-wrap { margin-top: -48px; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .teaser { grid-template-columns: 1fr; gap: 32px; }
  .teaser-bus .teaser-media { order: -1; }
  .minimap { position: relative; right: 0; bottom: 0; width: 100%; margin-top: 16px; }
}
@container site (max-width: 760px) {
  .livepark-head { display: none; }
  .livepark-row { grid-template-columns: 1fr auto; grid-template-areas: "name status" "free free" "act act"; gap: 10px 14px; padding: 16px 16px; }
  .livepark-name { grid-area: name; }
  .livepark-row > .pill { grid-area: status; justify-self: end; align-self: start; }
  .livepark-free { grid-area: free; }
  .livepark-route { grid-area: act; justify-self: stretch; }
  .livepark-route { width: 100%; }
  .news-grid { grid-template-columns: 1fr; }
}
@container site (max-width: 560px) {
  .hero { min-height: 0; padding: 56px 0; }
  .hero-cta .btn { flex: 1; }
  .statsband-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .statsband-grid li:nth-child(2)::after { display: none; }
}
