/* Health Tech News – heller, freundlicher Stil: Cyan + Nachtblau, viel Weissraum, runde Formen */
:root {
  --cyan: #00a0df;
  --cyan-dark: #0083b8;
  --cyan-soft: #e3f4fb;
  --navy: #1f2452;
  --navy-2: #2c3270;
  --bg: #f3f6f9;
  --surface: #ffffff;
  --ink: #1f2452;
  --text: #2f3445;
  --muted: #6a7085;
  --line: #e2e7ee;
  --shadow: 0 1px 2px rgba(31, 36, 82, .06), 0 8px 24px rgba(31, 36, 82, .06);
  --shadow-hover: 0 2px 4px rgba(31, 36, 82, .08), 0 14px 32px rgba(31, 36, 82, .12);
  --radius: 18px;
  --c-css: #00a0df;
  --c-markt: #e2711d;
  --c-politik: #c8365a;
  --c-versorgung: #2f8f6b;
  --c-tech: #6650c7;
  --c-ki: #c99400;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11142b;
    --surface: #1a1e3d;
    --ink: #f2f4fb;
    --text: #d6d9e6;
    --muted: #9ba0b8;
    --line: #2b3058;
    --cyan-soft: #10324a;
    --navy: #0c0f24;
    --navy-2: #1a1e3d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-hover: 0 2px 4px rgba(0, 0, 0, .35), 0 14px 32px rgba(0, 0, 0, .35);
    --c-css: #3cc0f2;
    --c-markt: #f39a57;
    --c-politik: #ef7593;
    --c-versorgung: #5cc39b;
    --c-tech: #a595f2;
    --c-ki: #e8bd45;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); font-weight: 700; letter-spacing: -0.015em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg.ico, .arr, .totop svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 20px; letter-spacing: -0.02em; white-space: nowrap; }
.brand b { color: var(--cyan); }
.mark { width: 30px; height: 30px; border-radius: 50%; background: var(--cyan); position: relative; flex: none; }
.mark::before, .mark::after { content: ""; position: absolute; background: #fff; border-radius: 2px; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.mark::before { width: 5px; height: 16px; }
.mark::after { width: 16px; height: 5px; }
.mainnav { display: flex; gap: 4px; }
.mainnav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink); padding: 8px 14px; border-radius: 999px; }
.mainnav a:hover { background: var(--cyan-soft); }
.mainnav a.on { background: var(--navy); color: #fff; }

/* Hero */
.hero { position: relative; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 48px 0 104px; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -140px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 160, 223, .55), rgba(0, 160, 223, 0) 70%); }
.hero .wrap { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 10px; font-size: 14px; font-weight: 500; color: #9fdcf5; }
.hero h1 { color: #fff; font-size: clamp(30px, 5vw, 48px); line-height: 1.1; margin: 0 0 14px; max-width: 760px; }
.lead { margin: 0; font-size: 18px; max-width: 640px; color: rgba(255, 255, 255, .85); }
.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 60px; fill: var(--bg); }

/* Cards */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.brief { position: relative; z-index: 2; margin-top: -76px; padding: 28px 32px; }
.brief-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.brief h2 { font-size: 24px; margin: 0; }
.badge-cyan { align-self: flex-start; background: var(--cyan); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.hl { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hl li { display: flex; gap: 14px; align-items: flex-start; }
.num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--cyan-soft); color: var(--cyan-dark); font-weight: 700; font-size: 14px; display: grid; place-items: center; margin-top: 1px; }
@media (prefers-color-scheme: dark) { .num { color: #7fd6f7; } }
.note { margin: 16px 0 0; color: var(--muted); font-size: 14px; }

/* Finder: Themen-Kacheln + Suche */
.finder { margin: 36px 0 8px; }
.tiles { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.chip { --c: var(--navy); font: inherit; text-align: left; cursor: pointer; background: var(--surface); color: var(--ink); border: 2px solid transparent; border-radius: 14px; padding: 14px; box-shadow: var(--shadow); display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 8px 10px; align-items: center; transition: transform .15s, box-shadow .15s, border-color .15s; }
.chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.chip .ico { width: 24px; height: 24px; color: var(--c); grid-row: 1; }
.chip .n { grid-row: 1; justify-self: end; font-size: 13px; font-weight: 700; color: var(--muted); }
.chip .t { grid-column: 1 / -1; font-size: 14px; font-weight: 500; line-height: 1.25; }
.chip.active { border-color: var(--c); }
.chip[data-filter="all"] { --c: var(--cyan); }
.chip.active[data-filter="all"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip.active[data-filter="all"] .n { color: #9fdcf5; }
.search { display: flex; align-items: center; gap: 10px; margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 18px; box-shadow: var(--shadow); max-width: 480px; }
.search .ico { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search input { border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; padding: 12px 0; width: 100%; }
.search:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-soft); }

/* Sections */
.cat { margin: 48px 0; }
.cat-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ico-lg { width: 46px; height: 46px; padding: 11px; border-radius: 50%; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); flex: none; }
.cat h2 { font-size: 26px; margin: 0; line-height: 1.2; }
.cat-head p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; }
.item { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px 20px; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.item:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tag { --c: var(--cyan); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.tag-muted { --c: var(--muted); }
.tag-hot { background: var(--cyan); color: #fff; }
.item h3 { font-size: 19px; line-height: 1.3; margin: 0 0 10px; }
.item h3 a { text-decoration: none; }
.item h3 a:hover { color: var(--cyan-dark); }
@media (prefers-color-scheme: dark) { .item h3 a:hover { color: #7fd6f7; } }
.item p { margin: 0 0 18px; font-size: 15px; }
.foot-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.src { font-weight: 700; color: var(--ink); }
.more { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--cyan-dark); text-decoration: none; }
@media (prefers-color-scheme: dark) { .more { color: #7fd6f7; } }
.arr { width: 18px; height: 18px; transition: transform .15s; }
.more:hover .arr, .arch:hover .arr { transform: translateX(3px); }
.empty { color: var(--muted); margin: 0; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 20px 24px; }
.hidden { display: none !important; }

/* Buttons, Pager, Archiv */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; padding: 11px 20px; border-radius: 999px; }
.btn-ghost { border: 2px solid var(--navy); color: var(--ink); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-ghost { border-color: var(--cyan); } .btn-ghost:hover { background: var(--cyan); color: var(--navy); } }
.pager { display: flex; justify-content: space-between; gap: 12px; margin: 40px 0; }
.archive { list-style: none; padding: 0; margin: -60px 0 40px; position: relative; z-index: 2; display: grid; gap: 14px; }
.arch { display: flex; align-items: center; gap: 16px; padding: 20px 24px; text-decoration: none; }
.arch > div { flex: 1; }
.arch time { font-weight: 700; color: var(--ink); font-size: 18px; }
.arch p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.arch .n { font-size: 13px; font-weight: 700; color: var(--cyan-dark); white-space: nowrap; }
.arch .arr { color: var(--cyan); width: 22px; height: 22px; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .78); margin-top: 56px; padding: 40px 0 28px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr; gap: 32px; }
.site-footer h3 { color: #fff; font-size: 15px; margin: 0 0 10px; }
.site-footer a { display: block; text-decoration: none; padding: 3px 0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p { margin: 8px 0 0; }
.brand-inv { color: #fff; }
.brand-inv b { color: #4dc3f0; }
.built { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 28px !important; padding-top: 16px; font-size: 13px; }
.totop { position: fixed; right: 18px; bottom: 18px; width: 48px; height: 48px; border-radius: 50%; background: var(--cyan); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-hover); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 30; }
.totop svg { width: 22px; height: 22px; }
.totop.show { opacity: 1; pointer-events: auto; }

/* Responsive */
@media (max-width: 1080px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 720px) {
  .tiles { display: flex; overflow-x: auto; gap: 10px; padding: 4px 2px 8px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .tiles::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 132px; scroll-snap-align: start; }
  .search { max-width: none; }
  .foot-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 560px) {
  .bar { height: 60px; }
  .brand { font-size: 17px; }
  .mark { width: 26px; height: 26px; }
  .mainnav a { padding: 7px 10px; font-size: 14px; }
  .mainnav a[href$="feed.xml"] { display: none; }
  .hero { padding: 32px 0 96px; }
  .lead { font-size: 16px; }
  .brief { padding: 22px 20px; }
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .item { padding: 20px; }
  .cat h2 { font-size: 22px; }
}

@media (prefers-color-scheme: dark) {
  .mainnav a.on, .chip.active[data-filter="all"] { background: var(--cyan); border-color: var(--cyan); color: #0c0f24; }
  .chip.active[data-filter="all"] .n, .chip.active[data-filter="all"] .ico { color: #0c0f24; }
}
