/* Lagebild (docs/design/referenz/07-lagebild.html). Hamish bubble from blocks/hamstern_hinweis_box.css,
   .rail and .chips/.chip from components.css. Classes are prefixed lg- (components.css owns .lvl for the band).
   Mobile first, desktop from 900 px. */

@keyframes lg-pulse { 0% { box-shadow: 0 0 0 0 rgba(242, 112, 63, .55); } 70% { box-shadow: 0 0 0 8px rgba(242, 112, 63, 0); } 100% { box-shadow: 0 0 0 0 rgba(242, 112, 63, 0); } }

.lg-hero { background: var(--brand-soft); padding-block: 18px 28px; border-bottom: 1px solid var(--line); }
.lg-hero.calm { background: var(--pos-soft); }
.lg-stamp { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); margin-top: 14px; }
.lg-hero.calm .lg-stamp { color: var(--pos); }
.lg-stamp .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--t-ro); animation: lg-pulse 2.4s infinite; }
.lg-hero.calm .lg-stamp .dot { background: var(--pos); animation: none; }
.lg-hero h1 { font-size: 44px; font-weight: 900; letter-spacing: -.025em; margin-top: 6px; }
.lg-soon h1 { margin-top: 14px; }
.lg-lede { font-size: 16px; margin-top: 6px; max-width: 36em; }
.lg-sum { display: inline-block; margin-top: 14px; background: var(--surface); border-radius: 999px; padding: 8px 14px; font-size: 14px; }
.lg-sum strong { font-weight: 700; }

/* Kennzahlen rail (template-parts/lagebild/indicators.php): auffällig in the hint colour, never red. */
.lg-kz { padding-top: 24px; }
.lg-kz-head { display: grid; gap: 4px; margin-bottom: 12px; }
.lg-kz-head h2 { font-size: 20px; font-weight: 800; }
.lg-kz-head p { font-size: 13px; color: var(--ink-2); }
.lg-kz-rail { --w: 72%; }
.lg-kz-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.lg-kz-card.is-auffaellig { background: var(--brand-soft); border-color: var(--brand); }
.lg-kz-card.is-veraltet { background: var(--sunk); color: var(--ink-2); }
.lg-kz-card h3 { font-family: var(--f-body); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.lg-kz-val b { font-family: var(--f-display); font-size: 28px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lg-kz-val span { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.lg-kz-card.is-veraltet .lg-kz-val b { color: var(--ink-3); }
.lg-kz-cmp { font-size: 13px; color: var(--ink-2); }
.lg-kz-stale { font-size: 12px; font-weight: 600; }
.lg-kz-exp { font-size: 13px; }
.lg-kz-meta { display: grid; gap: 2px; font-size: 11px; color: var(--ink-3); margin-top: auto; padding-top: 6px; }
.lg-kz-meta a { color: var(--ink-2); }
.lg-kz-guide { font-size: 13px; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--brand); justify-self: start; align-self: flex-start; }

.lg-grid { display: grid; gap: 28px; padding-block: 20px 48px; }
.lg-main { min-width: 0; }
.lg-filters { display: grid; gap: 12px; margin-bottom: 16px; }
.lg-region { display: grid; gap: 4px; }
.lg-region span { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.lg-region select { font: 600 16px var(--f-body); padding: 11px 12px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); width: 100%; }

.lg-notes { display: grid; gap: 12px; }
.lg-note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: grid; gap: 8px; }
.lg-note.lv3, .lg-note.lv4 { background: var(--h-ro); border-color: transparent; }
.lg-note header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lg-src { font-size: 10px; font-weight: 800; letter-spacing: .08em; background: var(--ink); color: var(--bg); border-radius: 4px; padding: 3px 6px; }
.lg-lvl { display: flex; gap: 3px; align-items: flex-end; }
.lg-lvl i { width: 6px; border-radius: 2px; background: rgba(38, 33, 27, .18); }
.lg-lvl i:nth-child(1) { height: 7px; }
.lg-lvl i:nth-child(2) { height: 10px; }
.lg-lvl i:nth-child(3) { height: 13px; }
.lg-lvl i:nth-child(4) { height: 16px; }
.lg-lvl i.on { background: var(--ink); }
.lg-lvl-t { font-size: 12px; font-weight: 600; }
.lg-note h3 { font-size: 20px; font-weight: 800; }
.lg-note > p { font-size: 15px; }
.lg-note .lg-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--ink-2); }
.lg-note.lv3 .lg-meta, .lg-note.lv4 .lg-meta { color: var(--ink); }
.lg-guide { display: grid; gap: 2px; background: var(--bg); border-radius: var(--r); padding: 12px; text-decoration: none; margin-top: 4px; }
.lg-note.lv3 .lg-guide, .lg-note.lv4 .lg-guide { background: var(--surface); }
.lg-guide span { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.lg-guide b { font-family: var(--f-display); font-size: 16px; line-height: 1.25; }
.lg-guide i { font-style: normal; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.lg-guide:hover b { text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.lg-attr { font-size: 12px; color: var(--ink-2); }
.lg-note.lv3 .lg-attr, .lg-note.lv4 .lg-attr { color: var(--ink); }
.lg-orig { font-size: 12px; color: var(--ink-2); }
.lg-attr + .lg-orig { margin-top: -6px; }

.lg-empty { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: start; background: var(--pos-soft); border-radius: var(--r-lg); padding: 16px; }
.lg-empty img { width: 64px; height: 64px; border-radius: 50%; background: var(--avatar); object-fit: cover; }
.lg-empty b { display: block; font-family: var(--f-display); font-size: 18px; }
.lg-empty p { font-size: 14px; margin: 4px 0 10px; }

.lg-others { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 8px; }
.lg-others summary { cursor: pointer; font-weight: 700; font-size: 14px; padding: 8px 0; list-style: none; }
.lg-others summary::-webkit-details-marker { display: none; }
.lg-others summary span { font-weight: 600; color: var(--ink-3); margin-left: 4px; }
.lg-others summary::after { content: " +"; color: var(--ink-3); }
.lg-others[open] summary::after { content: " –"; }
.lg-others .lg-note { opacity: .85; }

.lg-side { display: grid; gap: 16px; align-content: start; min-width: 0; }
.lg-how { background: var(--sunk); border-radius: var(--r-lg); padding: 16px; }
.lg-how h2 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.lg-how ol { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 13px; color: var(--ink-2); }
.lg-how b { color: var(--ink); }
.lg-how-note { font-size: 13px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.lg-how-note a { font-weight: 600; }

.lg-past h2 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.lg-past-list { list-style: none; margin: 0 0 14px; padding: 0; }
.lg-past-list li { display: grid; grid-template-columns: 48px auto minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); }
.lg-past-list time { font-size: 12px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lg-past-list .lg-src { background: var(--sunk); color: var(--ink); }
.lg-past-list p { font-size: 14px; font-weight: 600; }
.lg-past-list a { display: block; font-weight: 500; font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.lg-past-list a::after { content: " →"; }

@container page (min-width: 900px) {
  .lg-hero { padding-block: 32px 40px; }
  .lg-hero h1 { font-size: 72px; }
  .lg-lede { font-size: 20px; }
  .lg-kz { padding-top: 32px; }
  .lg-kz-head { grid-template-columns: auto minmax(0, 1fr); align-items: baseline; column-gap: 16px; }
  .lg-kz-head h2 { font-size: 24px; }
  .lg-kz-rail { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin-inline: 0; padding-inline: 0; gap: 16px; }
  .lg-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding-block: 40px 72px; }
  .lg-side { position: sticky; top: calc(96px + var(--wp-admin--admin-bar--height, 0px)); }
  .lg-filters { grid-template-columns: 260px minmax(0, 1fr); align-items: end; }
  .lg-note { padding: 22px 24px; grid-template-columns: minmax(0, 1fr) 280px; column-gap: 24px; align-items: start; }
  .lg-note > * { grid-column: 1; }
  .lg-note .lg-guide { grid-column: 2; grid-row: 1 / span 7; margin-top: 0; align-self: stretch; align-content: center; }
  .lg-past { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .lg-stamp .dot { animation: none; }
}
