/* Kachel "Meldungen" – helles Glas-Design, Farben über Variablen anpassbar */
.km-kachel {
  --km-glas: rgba(255, 255, 255, 0.62);
  --km-rand: rgba(255, 255, 255, 0.75);
  --km-text: #0f172a;
  --km-leise: #64748b;
  --km-linie: rgba(15, 23, 42, 0.08);
  --km-akzent: #0d9488;
  --km-akzent-hell: rgba(13, 148, 136, 0.12);
  --km-region: #2563eb;
  --km-region-hell: rgba(37, 99, 235, 0.10);

  background: var(--km-glas);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--km-rand);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  color: var(--km-text);
  padding: 18px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.km-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.km-titel {
  font-size: 1.05rem;
  font-weight: 650;
  margin: 0;
  letter-spacing: -0.01em;
}

/* Segment-Umschalter */
.km-tabs {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.km-tab {
  border: 0;
  background: transparent;
  color: var(--km-leise);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.km-tab:hover { color: var(--km-text); }
.km-tab.is-aktiv {
  background: #fff;
  color: var(--km-text);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}
.km-tab:focus-visible { outline: 2px solid var(--km-akzent); outline-offset: 2px; }

.km-pane[hidden] { display: none; }

.km-items { list-style: none; margin: 0; padding: 0; }
.km-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--km-linie);
}
.km-item:last-child { border-bottom: 0; }

.km-link {
  color: var(--km-text);
  text-decoration: none;
  font-weight: 560;
  font-size: 0.93rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.km-link:hover { color: var(--km-akzent); }

.km-meta {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--km-leise);
}

.km-badge {
  background: var(--km-akzent-hell);
  color: var(--km-akzent);
  font-weight: 650;
  padding: 1px 8px;
  border-radius: 999px;
}
.km-badge--region {
  background: var(--km-region-hell);
  color: var(--km-region);
}

.km-teaser {
  margin: 6px 0 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #334155;
}

.km-leer {
  margin: 8px 0;
  font-size: 0.88rem;
  color: var(--km-leise);
}

.km-quelle {
  margin: 4px 0 0;
  font-size: 0.72rem;
  color: var(--km-leise);
}
.km-quelle a { color: inherit; }

.km-mehr {
  align-self: flex-start;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--km-akzent);
  text-decoration: none;
}
.km-mehr:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .km-kachel { padding: 14px 14px 12px; border-radius: 16px; }
  .km-kopf { flex-direction: column; align-items: stretch; }
  .km-tabs { width: 100%; }
  .km-tab { flex: 1; }
}
