/* heute-screen.css — HANIHO Heute-Tab v1 */

/* --- HEUTE v2 Akzentfarben (Section/Card Kicker) --- */
:root {
  --accent-weather: #4A90E2;
  --accent-blaulicht: #DC2626;
  --accent-signal: #FBBF24;
  --accent-event: #F97316;
  --accent-news: #94A3B8;
}

.heute-screen {
  max-width: 680px;
  margin: 0 auto;
  padding: 16px 12px 120px;
}

/* --- Section (Welt / Ort) --- */

.heute-section {
  margin-bottom: 8px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0 8px;
}

.section-icon {
  font-size: 20px;
  line-height: 1;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text, #e0e0e0);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --- Strich Slots (Zone 1) --- */

.strich {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.slot {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--surface, #0b0f19);
  border: 1px solid var(--border, #1a1a2e);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}

.slot:hover {
  border-color: var(--accent, #3b82f6);
}

.slot-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.label-news {
  background: #1e3a5f;
  color: #93c5fd;
}

.label-meldung {
  background: #4a2020;
  color: #fca5a5;
}

.label-event {
  background: #1a3a2a;
  color: #86efac;
}

.label-food {
  background: #3d2e10;
  color: #fcd34d;
}

.slot-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text, #e0e0e0);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.slot-meta {
  font-size: 11px;
  color: var(--text-muted, #666);
  white-space: nowrap;
  flex-shrink: 0;
}

.slot--empty .slot-title {
  color: var(--text-muted, #666);
  font-style: italic;
}

/* --- Divider (Trennlinie) --- */

.divider {
  height: 1px;
  background: var(--border, #1a1a2e);
  margin: 16px 0;
}

/* --- Cluster Feed (Zone 2) --- */

.cluster-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* --- Heute Toast --- */

.heute-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #222;
  color: #eee;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}

.heute-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- Onboarding Card --- */

.onboarding-card {
  max-width: 420px;
  margin: 60px auto 0;
  padding: 32px 24px 24px;
  background: var(--surface, #0b0f19);
  border: 1px solid var(--border, #1a1a2e);
  border-radius: 16px;
  text-align: center;
}

.onboarding-headline {
  margin-bottom: 28px;
}

.onboarding-logo {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--text, #e0e0e0);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.onboarding-tagline {
  font-size: 16px;
  color: var(--text-muted, #888);
  line-height: 1.5;
}

.onboarding-body {
  text-align: left;
}

.onboarding-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #e0e0e0);
  margin-bottom: 10px;
}

.onboarding-search {
  position: relative;
}

.onboarding-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border, #1a1a2e);
  background: var(--surface2, #161b22);
  color: var(--text, #eee);
  font-size: 15px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.onboarding-input:focus {
  border-color: var(--accent, #3b82f6);
}

.onboarding-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface2, #161b22);
  border: 1px solid var(--border, #1a1a2e);
  border-top: none;
  border-radius: 0 0 10px 10px;
  max-height: 240px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}

.onboarding-suggestions.visible {
  display: block;
}

.onboarding-sug-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: var(--text, #eee);
  font-size: 14px;
  cursor: pointer;
  text-align: left;
}

.onboarding-sug-item:hover {
  background: var(--accent, #3b82f6);
  color: #fff;
}

.onboarding-sug-name {
  font-weight: 600;
}

.onboarding-sug-sub {
  font-size: 12px;
  color: var(--text-muted, #666);
}

.onboarding-sug-item:hover .onboarding-sug-sub {
  color: rgba(255, 255, 255, 0.7);
}

.onboarding-sug-empty {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-muted, #666);
}

.onboarding-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--text-muted, #555);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.onboarding-divider::before,
.onboarding-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border, #1a1a2e);
}

.onboarding-geo-btn {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border, #1a1a2e);
  background: var(--surface2, #161b22);
  color: var(--text, #eee);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.onboarding-geo-btn:hover {
  border-color: var(--accent, #3b82f6);
  background: rgba(59, 130, 246, 0.08);
}

.onboarding-geo-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

.onboarding-skip {
  display: inline-block;
  margin-top: 20px;
  padding: 8px 0;
  border: none;
  background: transparent;
  color: var(--text-muted, #666);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.15s;
}

.onboarding-skip:hover {
  color: var(--text, #eee);
}

/* --- Heimatort CTA Card (skip path) --- */

.heimatort-cta-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 10px;
  margin-bottom: 16px;
}

.heimatort-cta-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.heimatort-cta-text {
  flex: 1;
  font-size: 13px;
  color: var(--text, #e0e0e0);
  line-height: 1.4;
}

.heimatort-cta-btn {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--accent, #3b82f6);
  background: transparent;
  color: var(--accent, #3b82f6);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.heimatort-cta-btn:hover {
  background: rgba(59, 130, 246, 0.12);
}

/* iOS Safari Native Pull-to-Refresh deaktivieren —
   sonst überlagert sich der native Refresh-Indicator mit dem unsrigen UND
   der native Reload löst beim Pull-Down einen kompletten Page-Reload aus,
   der den User aus dem HEUTE-Tab wirft (Default-Tab nach Reload ist threads/
   community via mobile-ui.js, nicht heute). Mit overscroll-behavior:contain
   bleibt der native Reload aus, und unser Custom-PTR (siehe heute-screen.js)
   ist die einzige Pull-to-Refresh Quelle. */
html, body {
  overscroll-behavior-y: contain;
}

/* Pull-to-Refresh Styles entfernt — wird zentral von mobile-ui.js gehandhabt
   (Indicator-Element #mobile-pull-refresh-indicator wird dort inline gestylt). */

/* --- HEUTE v2 Reader-View (Schritt 6) --- */

body.heute-reader-open {
  overflow: hidden;
}

.heute-reader-overlay {
  position: fixed;
  inset: 0;
  z-index: 12050;
  background: rgba(0, 0, 0, 0.72);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: heute-reader-fade 0.18s ease-out;
}

@keyframes heute-reader-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.heute-reader-close {
  position: fixed;
  /* Respektiert iOS Safe Area (Notch / Status Bar im PWA-Mode), sonst 14px */
  top: calc(14px + env(safe-area-inset-top, 0px));
  left: calc(14px + env(safe-area-inset-left, 0px));
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 12060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.heute-reader-close:hover {
  background: rgba(0, 0, 0, 0.85);
}

.heute-reader {
  width: min(680px, 100%);
  margin: 48px auto 40px;
  background: var(--bg, #0b0f19);
  border: 1px solid var(--border, #1a1a2e);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.heute-reader-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface2, #161b22);
  overflow: hidden;
}

.heute-reader-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.heute-reader-content {
  /* padding-top: Platz für den fixed ×-Button (42px + safe-area + margin)
     padding-bottom: Platz für die fixed Bottom-Bar + Mobile-Tabs */
  padding: 26px 28px 130px;
}

/* Wenn kein Hero-Bild → mehr Top-Padding damit × nicht auf Titel liegt */
.heute-reader:not(:has(.heute-reader-hero)) .heute-reader-content {
  padding-top: 56px;
}

.heute-reader-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  color: var(--accent-news);
  display: flex;
  align-items: center;
  gap: 8px;
}

.heute-reader-favicon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 3px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
}

.heute-reader-overlay--blaulicht .heute-reader-kicker { color: var(--accent-blaulicht); }
.heute-reader-overlay--signal    .heute-reader-kicker { color: var(--accent-signal); }
.heute-reader-overlay--event     .heute-reader-kicker { color: var(--accent-event); }
.heute-reader-overlay--news      .heute-reader-kicker { color: var(--accent-news); }
.heute-reader-overlay--weather   .heute-reader-kicker { color: var(--accent-weather); }

/* === Activity / Food Reader =================================== */
.heute-reader--activity {
  /* gleicher Container wie Standard-Reader, nur ohne Hero-Bild */
}

.heute-reader-activity-icon-big {
  font-size: 64px;
  line-height: 1;
  text-align: center;
  padding: 36px 24px 8px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.08), transparent);
}

.heute-reader-overlay--food .heute-reader-activity-icon-big {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.10), transparent);
}

.heute-reader-overlay--activities .heute-reader-activity-icon-big {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.10), transparent);
}

.heute-reader-activity-meta {
  font-size: 14px;
  color: var(--text-muted, #888);
  margin: 0 0 14px;
  line-height: 1.5;
}

.heute-reader-activity-hours {
  font-size: 13px;
  color: var(--text-muted, #a8a8a8);
  margin: 0 0 16px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  display: inline-block;
}

.heute-reader-activity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 24px;
}

.heute-reader--activity .heute-reader-headline {
  text-align: center;
  margin-top: 8px;
}

.heute-reader--activity .heute-reader-lead {
  text-align: center;
  font-style: normal;
  margin-bottom: 18px;
}

.heute-reader-overlay--food .heute-reader-btn--primary {
  background: #f59e0b;
  border-color: #f59e0b;
}

.heute-reader-overlay--food .heute-reader-btn--primary:hover {
  background: #d97706;
}

/* === OSM / Quelle-Attribution (ODbL Pflicht) ================== */
.heute-block-attribution {
  font-size: 11px;
  color: var(--text-muted, #666);
  text-align: center;
  padding: 12px 16px 4px;
  line-height: 1.5;
}

.heute-block-attribution a {
  color: var(--text-muted, #888);
  text-decoration: underline;
}

.heute-block-attribution a:hover {
  color: var(--text, #ccc);
}

.heute-reader-attribution {
  font-size: 11px;
  color: var(--text-muted, #666);
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--border, #1a1a2e);
  line-height: 1.5;
}

.heute-reader-attribution a {
  color: var(--text-muted, #888);
  text-decoration: underline;
}

.heute-reader-headline {
  font-family: Charter, "Iowan Old Style", Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.22;
  color: var(--text, #e0e0e0);
  margin: 0 0 12px;
}

.heute-reader-meta {
  font-size: 13px;
  color: var(--text-muted, #888);
  margin-bottom: 20px;
}

.heute-reader-lead {
  font-family: Charter, "Iowan Old Style", Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-muted, #a8a8a8);
  margin: 0 0 24px;
  font-style: italic;
}

.heute-reader-body {
  font-family: Charter, "Iowan Old Style", Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text, #e0e0e0);
  margin: 0 0 24px;
  white-space: pre-wrap;
}

.heute-reader-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--border, #1a1a2e);
}

.heute-reader-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid var(--border, #1a1a2e);
  background: transparent;
  color: var(--text, #e0e0e0);
  transition: background 0.15s, border-color 0.15s;
}

.heute-reader-btn--primary {
  background: var(--accent, #3b82f6);
  border-color: var(--accent, #3b82f6);
  color: #fff;
}

.heute-reader-btn--primary:hover {
  background: #2563eb;
}

.heute-reader-btn--ghost:hover {
  border-color: #666;
  background: rgba(255, 255, 255, 0.04);
}

/* Bottom Back-Bar — fixed unten, immer erreichbar.
   Respektiert iOS Safe Area unten (Home-Indicator). */
.heute-reader-bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12061;
  background: rgba(11, 15, 25, 0.96);
  border-top: 1px solid var(--border, #1a1a2e);
  /* Extra Padding unten für Mobile-Tabs (56px) + Safe-Area */
  padding: 12px 16px calc(68px + env(safe-area-inset-bottom, 0px));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.heute-reader-back {
  display: block;
  width: 100%;
  padding: 14px 18px;
  background: var(--accent, #3b82f6);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.heute-reader-back:hover,
.heute-reader-back:active {
  background: #2563eb;
}

@media (max-width: 640px) {
  .heute-reader-overlay {
    padding: 0;
  }
  .heute-reader {
    margin: 0;
    border-radius: 0;
    border: none;
    min-height: 100vh;
  }
  .heute-reader-content {
    /* Extra padding-bottom damit die Bottom-Bar nichts verdeckt
       (Bar ist ca. 80-120px hoch inkl. Safe-Area + Button) */
    padding: 22px 18px calc(120px + env(safe-area-inset-bottom, 0px));
  }
  .heute-reader-headline {
    font-size: 22px;
  }
  .heute-reader-body {
    font-size: 17px;
    line-height: 1.6;
  }
  .heute-reader-close {
    /* Auch im Mobile Safe-Area respektieren — sonst kollidiert der X
       mit dem iOS Status-Bar im PWA-Mode */
    top: calc(10px + env(safe-area-inset-top, 0px));
    left: calc(10px + env(safe-area-inset-left, 0px));
  }
}

/* --- HEUTE v2 Live Widgets (Schritt 5) --- */

.heute-live-widgets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 20px;
}

.heute-live-widget {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface, #0b0f19);
  border: 1px solid var(--border, #1a1a2e);
  border-left: 3px solid var(--accent-news);
}

.heute-live-weather {
  border-left-color: var(--accent-weather);
}

.heute-live-weather--warn {
  border-left-color: #ef4444;
  background: rgba(220, 38, 38, 0.08);
  animation: heute-pulse-dot 2s ease-in-out infinite;
}

.heute-live-weather--warn .heute-live-sub {
  color: #fca5a5;
  font-weight: 700;
}

.heute-live-blaulicht {
  border-left-color: var(--accent-blaulicht);
  background: rgba(220, 38, 38, 0.06);
}

.heute-live-signals {
  border-left-color: var(--accent-signal);
}

.heute-live-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.heute-live-main {
  font-size: 14px;
  font-weight: 500;
  color: var(--text, #e0e0e0);
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}

.heute-live-main strong {
  font-weight: 700;
}

.heute-live-sub {
  font-size: 12px;
  color: var(--text-muted, #888);
  font-weight: 400;
  margin-top: 3px;
}

.heute-live-sub-inline {
  color: var(--text-muted, #888);
  font-weight: 400;
  font-size: 12px;
}

.heute-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: heute-pulse 1.5s ease-in-out infinite;
}

.heute-live-dot--blaulicht {
  background: var(--accent-blaulicht);
  box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6);
}

.heute-live-dot--signal {
  background: var(--accent-signal);
  animation-duration: 2s;
}

@keyframes heute-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(1.2); }
}

/* --- HEUTE v2 Cluster Section Header (Schritt 4) --- */

.cluster-section {
  margin-bottom: 28px;
  border-top: 3px solid var(--accent-news);
  padding-top: 14px;
}

.cluster-section--blaulicht { border-top-color: var(--accent-blaulicht); }
.cluster-section--signal    { border-top-color: var(--accent-signal); }
.cluster-section--event     { border-top-color: var(--accent-event); }
.cluster-section--news      { border-top-color: var(--accent-news); }
.cluster-section--weather   { border-top-color: var(--accent-weather); }

/* Cluster-Section-Header Styles entfernt — die Headers selbst werden seit
   User-Wunsch nicht mehr gerendert. Items fließen direkt unter dem
   farbigen border-top des .cluster-section Containers. */

/* --- HEUTE v2 Card (Schritt 3 Redesign) --- */

.heute-card {
  display: block;
  background: var(--surface, #0b0f19);
  border: 1px solid var(--border, #1a1a2e);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.heute-card:hover {
  border-color: var(--accent, #3b82f6);
}

.heute-card:active {
  transform: scale(0.995);
}

.heute-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface2, #161b22);
  overflow: hidden;
  position: relative;
}

.heute-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text-only Card (kein Hero-Image): Focus-Style — selber Container, kein Schmuck.
   Card wird automatisch kompakt, weil das 16:9-Image-Element nicht gerendert wird.
   Modifier-Klasse für künftige Feinjustierung verfügbar. */
.heute-card--no-image {
  /* aktuell keine Overrides nötig */
}

.heute-card-body {
  padding: 14px 16px 16px;
}

.heute-card-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-news);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  /* sitzt jetzt rechts in der Meta-Row, max 65% damit Time links nicht verdrängt wird */
  max-width: 65%;
  justify-content: flex-end;
}

.heute-card-favicon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 3px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
}

.heute-card-time {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-muted, #666);
  white-space: nowrap;
}

.heute-card--news .heute-card-kicker { color: var(--accent-news); }
.heute-card--event .heute-card-kicker { color: var(--accent-event); }
.heute-card--meldung .heute-card-kicker { color: var(--accent-blaulicht); }
.heute-card--food .heute-card-kicker { color: var(--accent-signal); }

.heute-card-headline {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text, #e0e0e0);
  /* margin-top: 0 weil headline jetzt das erste Element im Body ist;
     margin-bottom etwas größer (12px) damit Meta-Row visuell abgesetzt ist */
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.heute-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted, #666);
}

/* --- Loading / Error --- */

.heute-loading {
  text-align: center;
  padding: 40px 0;
  color: var(--text-muted, #666);
  font-size: 14px;
}

.heute-error {
  text-align: center;
  padding: 20px;
  color: #fca5a5;
  font-size: 13px;
}

/* --- HEUTE v3 Hero + Blocks (Restruktur) --- */

.heute-hero {
  margin: 8px 0 24px;
  padding: 20px 4px 16px;
  text-align: left;
}

.heute-hero-emoji {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 8px;
}

.heute-hero-title {
  font-family: Charter, "Iowan Old Style", Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text, #e0e0e0);
  margin: 0;
}

.heute-hero-title strong {
  color: var(--accent, #3b82f6);
  font-weight: 800;
}

.heute-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.heute-hero-share {
  flex-shrink: 0;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border, #1a1a2e);
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted, #888);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.heute-hero-share:hover {
  border-color: var(--accent, #3b82f6);
  color: var(--text, #e0e0e0);
}

/* Wetter im Hero */
.heute-hero-weather {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 6px;
}

.heute-hero-weather strong {
  font-size: 20px;
}

/* Hero Foto-Credit (Unsplash Attribution) */
.heute-hero-credit {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 8px;
}

.heute-hero-credit a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

/* Timestamp im Hero */
.heute-hero-time {
  opacity: 0.5;
  font-size: 11px;
}

/* Scroll-to-Top Button */
.heute-scroll-top {
  position: fixed;
  bottom: 72px;
  right: 16px;
  z-index: 9000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent, #3b82f6);
  border: none;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: opacity 0.2s, transform 0.2s;
}

.heute-scroll-top:hover {
  transform: scale(1.1);
}

.heute-scroll-top.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Live-Counter unter Hero */
.heute-hero-counter {
  font-size: 13px;
  color: var(--text-muted, #888);
  margin-top: 8px;
  line-height: 1.4;
}

/* Daily Vibe — Gold-Design */
.heute-daily-vibe {
  margin: 16px 0;
  padding: 16px 18px;
  background: linear-gradient(135deg, #181510, #1a1612);
  border: 1px solid rgba(214, 167, 92, 0.2);
  border-radius: 12px;
}

.heute-vibe-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d6a75c;
  margin-bottom: 10px;
}

.heute-vibe-quote {
  font-family: Charter, "Iowan Old Style", Georgia, serif;
  font-size: 16px;
  line-height: 1.5;
  color: #fff4db;
  margin: 0 0 10px;
  padding: 0;
  font-style: italic;
  border: none;
}

.heute-vibe-author {
  font-size: 13px;
  color: #d6be8a;
}

.heute-vibe-origin {
  color: #a89060;
  font-size: 12px;
}

/* Empty-State (wenn alle Blocks leer) */
.heute-empty-state {
  text-align: center;
  padding: 40px 20px;
}

.heute-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.heute-empty-text {
  font-size: 17px;
  color: var(--text, #e0e0e0);
  font-weight: 600;
  margin-bottom: 8px;
}

.heute-empty-hint {
  font-size: 14px;
  color: var(--text-muted, #888);
  line-height: 1.5;
}

/* Live Radar Card */
.heute-live-radar {
  margin: 12px 0;
  padding: 12px 16px;
  background: linear-gradient(135deg, #0d1117, #111822);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 10px;
}

.heute-radar-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #3b82f6;
  margin-bottom: 6px;
}

.heute-radar-stats {
  font-size: 13px;
  color: var(--text-muted, #a0a0a0);
  line-height: 1.6;
}

/* Community Card */
.heute-community-card {
  margin-top: 20px;
  padding: 16px;
  background: var(--surface, #0b0f19);
  border: 1px solid var(--border, #1a1a2e);
  border-top: 3px solid #8b5cf6;
  border-radius: 10px;
}

.heute-community-post {
  padding: 8px 0;
  border-bottom: 1px solid var(--border, #1a1a2e);
}

.heute-community-post:last-child {
  border-bottom: none;
}

.heute-community-text {
  font-family: Charter, "Iowan Old Style", Georgia, serif;
  font-size: 14px;
  color: var(--text, #e0e0e0);
  line-height: 1.5;
  font-style: italic;
}

.heute-community-meta {
  font-size: 12px;
  color: var(--text-muted, #888);
  margin-top: 4px;
}

/* Stamp-Card im JETZT-Block */
.heute-card--stamp {
  border-left: 3px solid #8b5cf6;
  background: linear-gradient(135deg, #0f0b19, #12101e);
}

.heute-stamp-header {
  font-size: 13px;
  font-weight: 700;
  color: #c4b5fd;
  margin-bottom: 4px;
}

.heute-stamp-text {
  font-family: Charter, "Iowan Old Style", Georgia, serif;
  font-size: 14px;
  color: var(--text, #e0e0e0);
  font-style: italic;
  line-height: 1.4;
  margin-bottom: 6px;
}

.heute-stamp-image {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
}

.heute-stamp-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* === JETZT-Block: visuell dominanter === */
.heute-block--blaulicht .heute-card {
  border-left: 3px solid var(--accent-blaulicht, #ef4444);
  background: linear-gradient(135deg, #1a0a0a, #0b0f19);
}

.heute-block--blaulicht .heute-card-headline {
  font-size: 18px;
}

.heute-block--blaulicht .heute-card-time {
  font-size: 14px;
  font-weight: 700;
  color: #ef4444;
}

/* Erste Card in jedem Block ist Hero-Card (größer) */
.heute-block-items > .heute-card:first-child {
  border-left: 3px solid var(--accent, #3b82f6);
}

.heute-block-items > .heute-card:first-child .heute-card-headline {
  font-size: 19px;
  -webkit-line-clamp: 3;
}

.heute-block[data-block="live_now"] .heute-block-items > .heute-card:first-child {
  border-left-color: #ef4444;
}

.heute-block[data-block="live_now"] .heute-block-items > .heute-card:first-child .heute-card-headline {
  font-size: 20px;
}

/* Pulsierender Dot für den JETZT-Block Header */
@keyframes heute-pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.heute-block[data-block="live_now"] > div:first-child span:first-child {
  animation: heute-pulse-dot 1.5s ease-in-out infinite;
}

/* Feature-Showcase Banner (nicht-eingeloggte User) */
.heute-showcase-banner {
  margin-top: 24px;
  padding: 20px;
  background: linear-gradient(135deg, #0d1420, #111a2e);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 14px;
  text-align: center;
}

.heute-showcase-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.heute-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.heute-showcase-item {
  font-size: 13px;
  color: var(--text-muted, #a0a0a0);
  padding: 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.heute-showcase-cta {
  width: 100%;
  padding: 14px;
  background: var(--accent, #3b82f6);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.heute-showcase-cta:hover {
  background: #2563eb;
}

/* Info-Widgets Bar (Strom, Luft etc.) */
.heute-info-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 14px;
  margin: 8px 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-muted, #a0a0a0);
}

.heute-info-bar strong {
  color: var(--text, #e0e0e0);
}

/* DWD Wetterwarnungen Banner */
.heute-dwd-banner {
  margin: 10px 0;
  padding: 12px 14px;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-left: 3px solid #ef4444;
  border-radius: 10px;
}

.heute-dwd-label {
  font-size: 12px;
  font-weight: 700;
  color: #fca5a5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.heute-dwd-item {
  font-size: 13px;
  color: var(--text, #e0e0e0);
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.heute-dwd-item:last-child {
  border-bottom: none;
}

.heute-dwd-item span {
  font-size: 11px;
  color: var(--text-muted, #888);
}

/* Lade-Skeleton (statt langweiliger Text) */
@keyframes heute-shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.heute-skeleton {
  padding: 16px;
}

.heute-skel-hero,
.heute-skel-widget,
.heute-skel-block {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 800px 100%;
  animation: heute-shimmer 1.5s infinite ease-in-out;
  border-radius: 10px;
  margin-bottom: 12px;
}

.heute-skel-hero {
  height: 80px;
}

.heute-skel-widget {
  height: 52px;
  width: 70%;
}

.heute-skel-block {
  height: 64px;
}

.heute-skel-short {
  width: 50%;
}

/* Lazy-Load: News-Cards die noch nicht sichtbar sind */
.heute-card--lazy {
  display: none !important;
}

/* Block Container */
.heute-block {
  margin-bottom: 28px;
  border-top: 3px solid var(--accent-news);
  padding-top: 14px;
}

.heute-block--blaulicht  { border-top-color: var(--accent-blaulicht); }
.heute-block--signal     { border-top-color: var(--accent-signal); }
.heute-block--event      { border-top-color: var(--accent-event); }
.heute-block--news       { border-top-color: var(--accent-news); }
.heute-block--weather    { border-top-color: var(--accent-weather); }
.heute-block--activities { border-top-color: var(--accent, #3b82f6); }
.heute-block--food       { border-top-color: #f59e0b; }

/* Block-Header — klar sichtbar */
.heute-block-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-top: 4px;
  font-size: 17px;
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.heute-block-icon {
  font-size: 20px;
  line-height: 1;
}

.heute-block-label {
  flex: 1;
}

.heute-block-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --- Activities Block A --- */

/* === Kategorie-Chips (horizontal scrollbar, kleine Buttons) === */
.heute-cat-chips {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: 6px;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.heute-cat-chips::-webkit-scrollbar { display: none; }

.heute-cat-chip {
  flex-shrink: 0;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border, #1a1a2e);
  border-radius: 20px;
  background: transparent;
  color: var(--text-muted, #888);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.heute-cat-chip:hover {
  border-color: var(--accent, #3b82f6);
  color: var(--text, #e0e0e0);
}

.heute-cat-chip--active {
  background: var(--accent, #3b82f6);
  border-color: var(--accent, #3b82f6);
  color: #fff;
}

.heute-block--food .heute-cat-chip--active {
  background: #f59e0b;
  border-color: #f59e0b;
}

/* === Kompakte vertikale Liste (1 Item pro Zeile) === */
.heute-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Top-N Limit: Items jenseits Top-N werden per JS-Klasse .heute-list-hidden
   versteckt (nicht per nth-child, weil das mit Kategorie-Filter kollidiert). */
.heute-list-item.heute-list-hidden {
  display: none !important;
}

.heute-list.show-all > .heute-list-item.heute-list-hidden {
  display: flex !important;
}

.heute-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface, #0b0f19);
  border: 1px solid var(--border, #1a1a2e);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.heute-list-item:hover {
  border-color: var(--accent, #3b82f6);
}

.heute-list-item:active {
  background: rgba(255, 255, 255, 0.02);
}

.heute-list-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}

.heute-list-body {
  flex: 1;
  min-width: 0;
}

.heute-list-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #e0e0e0);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.heute-list-sub {
  font-size: 12px;
  color: var(--text-muted, #888);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.heute-list-dist {
  color: var(--accent, #3b82f6);
  font-weight: 600;
}

.heute-list-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.heute-list-btn {
  font-size: 18px;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.15s;
  padding: 4px;
}

.heute-list-btn:hover {
  opacity: 1;
}

/* ♡ Merken-Button (auf Cards + im Reader) */
.heute-save-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 4px;
  opacity: 0.5;
  transition: opacity 0.15s, transform 0.15s;
}

.heute-save-btn:hover,
.heute-save-btn--active {
  opacity: 1;
}

@keyframes heute-save-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.heute-save-btn--pulse {
  animation: heute-save-pulse 0.3s ease-out;
}

.heute-activity-body {
  flex: 1;
  min-width: 0;
}

.heute-activity-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text, #e0e0e0);
  line-height: 1.25;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.heute-activity-short {
  font-size: 12px;
  color: var(--text-muted, #888);
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.heute-activity-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.heute-activity-distance {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent, #3b82f6);
  flex-shrink: 0;
}

.heute-activity-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.heute-activity-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted, #999);
  text-transform: lowercase;
}

/* "Mehr anzeigen" Button */
.heute-activities-more {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 12px 16px;
  background: transparent;
  border: 1px solid var(--border, #1a1a2e);
  border-radius: 10px;
  color: var(--accent, #3b82f6);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.heute-activities-more:hover {
  background: rgba(59, 130, 246, 0.06);
  border-color: var(--accent, #3b82f6);
}

/* --- Mobile (<=980px) --- */

@media (max-width: 980px) {
  .heute-screen {
    padding: 10px 8px 80px;
  }

  .slot {
    padding: 7px 8px;
  }

  .slot-title {
    font-size: 13px;
  }

  .heute-hero {
    margin: 4px 0 20px;
    padding: 16px 4px 12px;
  }

  .heute-hero-title {
    font-size: 22px;
  }

  /* Mobile: Listen-Items etwas kompakter */
  .heute-list-item {
    padding: 8px 10px;
    gap: 8px;
  }

  .heute-list-icon {
    font-size: 20px;
    width: 30px;
  }

  .heute-list-name {
    font-size: 13px;
  }

  .heute-list-sub {
    font-size: 11px;
  }

  .heute-cat-chip {
    padding: 10px 16px;
    font-size: 13px;
    min-height: 42px;
    display: flex;
    align-items: center;
  }
}
