/* The Digital Bubble. Nav, Buttons und Footer kommen aus landing.css,
   hier steht der Newsroom: Aufmacher, Filter, Masonry-Raster und das
   Overlay fuer den einzelnen Beitrag. */

.db [id] { scroll-margin-top: 120px; }

/* --- Hero --------------------------------------------------------------- */

.db-hero { max-width: var(--seitenbreite); margin: 0 auto; padding: 88px 24px 40px; }
.db-hero .label-klein { margin-bottom: 20px; }
.db-hero h1 {
  font-size: var(--fs-h1); font-weight: 500;
  letter-spacing: -0.03em; line-height: 1.05;
  margin: 0 0 22px; max-width: 900px;
}
.db-lead {
  font-size: var(--fs-body-l); line-height: 1.6;
  color: var(--text-2); max-width: 680px; margin: 0;
}

/* --- Aufmacher ---------------------------------------------------------- */

.db-featured { max-width: var(--seitenbreite); margin: 0 auto; padding: 0 24px 40px; }
.db-feature {
  display: grid; grid-template-columns: 1.2fr 1fr;
  background: var(--schwarz); color: var(--offwhite);
  border-radius: var(--r-block); overflow: hidden;
  transition: transform var(--wipe), box-shadow var(--wipe);
}
.db-feature:hover { transform: translateY(-3px); box-shadow: 0 20px 48px rgba(11, 11, 11, 0.18); }
.db-feature-text {
  padding: clamp(32px, 4vw, 56px);
  display: flex; flex-direction: column; gap: 18px;
}
.db-feature-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 0; }
.db-badge {
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; background: var(--gelb); color: var(--schwarz);
  border-radius: var(--r-pill); padding: 6px 13px;
}
.db-feature h2 {
  font-size: clamp(24px, 21px + 0.8vw, 38px); font-weight: 500;
  letter-spacing: -0.02em; line-height: 1.2; margin: 0; text-wrap: pretty;
}
.db-feature-teaser {
  font-size: 14.5px; line-height: 1.65;
  color: var(--n-300); max-width: 520px; margin: 0;
}
.db-feature-text > p:last-child { margin: auto 0 0; }
.db-feature-bild { min-height: 260px; position: relative; background: var(--n-900); }
.db-feature-bild svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* --- Filter ------------------------------------------------------------- */

.db-filterleiste {
  max-width: var(--seitenbreite); margin: 0 auto;
  padding: 0 24px 32px; display: flex; gap: 10px; flex-wrap: wrap;
}
.db-filterleiste[hidden] { display: none; }
.db-filter {
  font-family: inherit; font-size: 13px; font-weight: 500;
  padding: 10px 20px; border-radius: var(--r-pill); cursor: pointer;
  background: #ffffff; border: 1px solid var(--n-150); color: var(--schwarz);
  transition: background var(--wipe), border-color var(--wipe);
}
.db-filter:hover { border-color: var(--n-300); }
.db-filter.aktiv { background: var(--gelb); border-color: var(--gelb); }

/* --- Beitragsraster -----------------------------------------------------
   Mauerwerk ueber CSS-Spalten: Die Karten sind unterschiedlich hoch, weil
   die Platzhalter je Beitrag eine eigene Hoehe mitbringen. */

.db-stories { max-width: var(--seitenbreite); margin: 0 auto; padding: 0 24px 88px; }
.db-grid { columns: 3; column-gap: 20px; }

.db-karte {
  background: #ffffff; border: 1px solid var(--n-150);
  border-radius: var(--r-card); padding: 16px 24px 24px;
  display: flex; flex-direction: column; gap: 14px;
  min-width: 0; break-inside: avoid; margin-bottom: 20px;
  transition: transform var(--wipe), box-shadow var(--wipe);
  animation: db-auf 0.55s var(--ease) backwards;
  animation-delay: calc(var(--i) * 70ms);
}
.db-karte:hover { transform: translateY(-3px); box-shadow: var(--schatten-hover); }
.db-karte:focus-within { box-shadow: var(--schatten-hover); }
@keyframes db-auf {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .db-karte { animation: none; } }

.db-media {
  position: relative; border-radius: 12px; overflow: hidden;
  background: var(--n-75); height: var(--h, 200px); margin-bottom: 4px;
}
.db-media img { display: block; width: 100%; height: auto; }
.db-media.hat-bild { height: auto; }
.db-media.hat-bild .db-ph { display: none; }
.db-ph {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
}
.db-ph-punkt { width: 34px; height: 34px; border-radius: 50%; background: var(--gelb); }
.db-ph-text {
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--n-600);
}

.db-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0; }
.db-cat {
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--n-700);
  background: var(--n-75); border-radius: var(--r-pill); padding: 6px 13px;
}
.db-date { font-size: 12px; color: var(--n-600); }
.db-feature .db-date { color: var(--n-500); }

.db-karte h3 {
  font-size: 18px; font-weight: 600; letter-spacing: -0.015em;
  line-height: 1.35; margin: 0; text-wrap: pretty;
}
.db-teaser { font-size: 13.5px; font-weight: 300; line-height: 1.6; color: var(--text-2); margin: 0; }

.db-autor { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 12.5px; color: var(--n-700); }
.db-karte .db-autor { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--n-100); }
.db-feature .db-autor { color: var(--n-300); }
.db-ini {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: var(--gelb); color: var(--schwarz);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600;
}
.db-feature .db-ini, .db-autor-gross .db-ini { width: 34px; height: 34px; font-size: 12px; }
.db-autor-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Die ganze Karte ist klickbar, die Schaltflaeche traegt die Bedienung -
   so bleibt der Beitrag auch mit der Tastatur erreichbar. */
.db-mehr {
  margin-left: auto; font-size: 13px; font-weight: 500; white-space: nowrap;
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: inherit; color: var(--schwarz);
}
.db-karte { cursor: pointer; }

.db-hinweis { font-size: 14px; color: var(--n-600); margin: 0; }

/* --- Overlay ------------------------------------------------------------ */

.db-overlay {
  width: min(820px, 100%); max-height: min(760px, 90vh);
  padding: 0; border: none; border-radius: var(--r-block);
  background: var(--offwhite); color: var(--schwarz);
  box-shadow: 0 30px 70px rgba(11, 11, 11, 0.25);
  flex-direction: column; overflow: hidden;
}
.db-overlay[open] { display: flex; }
.db-overlay::backdrop { background: rgba(11, 11, 11, 0.55); backdrop-filter: blur(4px); }

.db-overlay-kopf {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 28px 32px 0; flex: none;
}
.db-schliessen {
  margin-left: auto; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--n-200); background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 18px; flex: none; font-family: inherit;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.db-schliessen:hover { background: var(--gelb); border-color: var(--gelb); }

.db-overlay-inhalt { overflow-y: auto; padding: 20px 32px 36px; scrollbar-width: thin; }
.db-overlay-inhalt::-webkit-scrollbar { width: 8px; }
.db-overlay-inhalt::-webkit-scrollbar-thumb { background: var(--n-200); border-radius: var(--r-pill); }
.db-overlay-inhalt .db-media { margin-bottom: 20px; height: 220px; }
.db-overlay h2 {
  font-size: clamp(24px, 22px + 0.6vw, 34px); font-weight: 500;
  letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 16px; text-wrap: pretty;
}
.db-autor-gross {
  font-size: 13.5px; margin-bottom: 24px;
  padding-bottom: 20px; border-bottom: 1px solid var(--n-100);
}
.db-o-teaser {
  font-size: 16px; font-weight: 500; line-height: 1.7;
  max-width: 680px; margin: 0 0 20px;
}
/* Verweis auf den vollstaendigen Beitrag. Sichtbar vor allem bei den
   Eintraegen, deren Volltext noch nicht in inhalte/<sprache>/ steht. */
.db-o-link { margin: 28px 0 0; }

/* pre-line, weil die Absaetze im JSON als Leerzeilen stehen. */
.db-o-body {
  font-size: 15.5px; line-height: 1.75; color: var(--text-2);
  max-width: 680px;
}
/* Der Volltext besteht jetzt aus echten Absätzen und Zwischenüberschriften,
   nicht mehr aus einem Block mit pre-line. */
.db-o-body p { margin: 0 0 16px; }
.db-o-body h3 {
  font-size: 19px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--schwarz); margin: 32px 0 10px;
}
.db-o-body h3:first-child { margin-top: 0; }
.db-o-body ul { margin: 0 0 16px; padding-left: 22px; }
.db-o-body li { margin-bottom: 6px; }
.db-o-body > :last-child { margin-bottom: 0; }

/* --- Mobil -------------------------------------------------------------- */

@media (max-width: 1080px) { .db-grid { columns: 2; } }

@media (max-width: 900px) {
  .db-feature { grid-template-columns: 1fr; }
  .db-feature-bild { min-height: 200px; }
}

@media (max-width: 700px) { .db-grid { columns: 1; } }

@media (max-width: 560px) {
  .db-hero { padding: 64px 24px 32px; }
  .db-overlay { max-height: 94vh; }
  .db-overlay-kopf { padding: 20px 20px 0; }
  .db-overlay-inhalt { padding: 16px 20px 28px; }
}
