/* Wildeshausen-App · Karte „Heute in Wildeshausen“
   Eckig, rot-weiß wie der Rest. Unten rechts auf dem Rechner, unten über die
   ganze Breite auf dem Handy. Nicht modal – die Seite bleibt bedienbar. */

.heute {
  position: fixed;
  z-index: 40;                 /* über Inhalten, unter Ortsblatt (60) */
  right: 18px;
  bottom: 18px;
  width: min(380px, calc(100vw - 36px));
  padding: 0;
  background: #fff;
  border: 1px solid var(--line-strong, #d4d4d9);
  border-top: 3px solid var(--accent, #ba092f);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  transform: translateY(14px);
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
}
.heute.ist-da { transform: translateY(0); opacity: 1; }

.heute-kopf {
  position: relative;
  padding: 14px 44px 10px 16px;
  border-bottom: 1px solid var(--line, #e6e6e9);
}
.heute-label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--accent, #ba092f);
}
.heute-datum {
  margin: 3px 0 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink, #161618);
}

.heute-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--ink-2, #4d4e53);
  background: none;
  border: 0;
  cursor: pointer;
}
.heute-close svg { display: block; margin: auto; }
.heute-close:hover { color: var(--accent, #ba092f); }

.heute-liste {
  margin: 0;
  padding: 4px 0;
  list-style: none;
  max-height: 46vh;
  overflow: auto;
}
.heute-zeile {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line, #e6e6e9);
}
.heute-zeile:last-child { border-bottom: 0; }

.heute-zeit {
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent, #ba092f);
  padding-top: 1px;
}
.heute-text { min-width: 0; }
.heute-titel {
  display: block;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink, #161618);
}
.heute-ort {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted, #686971);
}

/* Laufende Veranstaltung: Punkt + Text, Farbe allein reicht nicht. */
.heute-zeile.ist-jetzt { background: #fdf3f4; }
.heute-jetzt {
  display: inline-block;
  margin-top: 5px;
  padding: 1px 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  background: var(--accent, #ba092f);
  text-transform: uppercase;
}

.heute-zusatz {
  margin: 0;
  padding: 8px 16px 0;
  font-size: 12px;
  color: var(--muted, #686971);
}

.heute-fuss {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--line, #e6e6e9);
}
.heute-mehr {
  flex: 1 1 auto;
  min-height: var(--tap, 44px);
  padding: 0 14px;
  font-family: var(--ui, sans-serif);
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  background: var(--accent, #ba092f);
  border: 1px solid var(--accent, #ba092f);
  border-radius: 0;
  cursor: pointer;
}
.heute-mehr:hover { background: var(--accent-ink, #94071f); }
.heute-ruhe {
  min-height: var(--tap, 44px);
  padding: 0 10px;
  font-family: var(--ui, sans-serif);
  font-size: 12.5px;
  color: var(--ink-2, #4d4e53);
  background: none;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  text-decoration: underline;
}
.heute-close:focus-visible,
.heute-mehr:focus-visible,
.heute-ruhe:focus-visible { outline: 2px solid var(--ink, #161618); outline-offset: 2px; }

/* Handy: ganze Breite unten, wie ein Blatt. */
@media (max-width: 620px) {
  .heute {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, .18);
    transform: translateY(100%);
  }
  .heute.ist-da { transform: translateY(0); }
  .heute-liste { max-height: 40vh; }
  .heute-fuss { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .heute, .heute.ist-da { transform: none; transition: none; }
}

@media (forced-colors: active) {
  .heute, .heute-zeile, .heute-kopf, .heute-fuss { border-color: CanvasText; }
  .heute-mehr { background: ButtonFace; color: ButtonText; border: 1px solid ButtonText; }
  .heute-jetzt { background: Highlight; color: HighlightText; }
  .heute-mehr:focus-visible, .heute-close:focus-visible, .heute-ruhe:focus-visible {
    outline: 2px solid Highlight;
  }
}
