.themen-header .page-heading { margin-bottom: .85rem; }
.themen-suchleiste { display: flex; gap: .5rem; align-items: stretch; max-width: 720px; }
.themen-suchleiste input { flex: 1 1 0; background: var(--paper); }
.themen-beispiele { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .65rem; }
.themen-beispiele button { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: .31rem .64rem; color: var(--accent-dark); font-size: .86rem; }
.themen-beispiele button:hover { background: var(--accent-light); }
.themen-status { min-height: 2.8rem; padding: .75rem .12rem .6rem; }
.themen-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 25%); gap: 1rem; align-items: start; }
.netz {
  background: #102538;
  background-image: radial-gradient(ellipse at 50% 52%, #1c4259, transparent 74%);
  color: #edf7ff;
  border: 1px solid #264458;
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 0;
}
.netz-kopf, .netz-fuss { padding: .8rem 1rem; }
.netz-kopf { display: flex; flex-wrap: wrap; gap: .45rem .65rem; justify-content: space-between; align-items: center; border-bottom: 1px solid #345368; }
.netz-kopf h2 { min-width: 0; overflow-wrap: anywhere; }
.netz-bedienung { display: flex; flex-wrap: wrap; gap: .33rem; }
.netz-bedienung button { background: #204259; color: #eef8ff; border: 1px solid #48677a; border-radius: 6px; padding: .28rem .55rem; min-width: 33px; min-height: 33px; font-size: .84rem; }
.netz-bedienung button:hover { background: #305972; }
#netz-canvas { display: block; width: 100%; height: clamp(320px, 45vw, 475px); cursor: grab; touch-action: none; }
#netz-canvas:active { cursor: grabbing; }
#netz-canvas:focus-visible { outline-offset: -4px; }
.netz-fuss { color: #c4d9e8; border-top: 1px solid #345368; font-size: .83rem; }
.netz-fusszeile { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .25rem .7rem; }
.netz-fundstellen { border: 0; background: transparent; color: #d5f5ff; font-size: inherit; padding: .15rem 0; text-underline-offset: .2em; text-decoration: underline; }
.netz-legende { display: flex; flex-wrap: wrap; gap: .35rem 1rem; list-style: none; padding: 0; margin: .35rem 0 0; }
.netz-legende li { display: inline-flex; align-items: center; gap: .4rem; }
.netz-punkt { display: inline-block; border-radius: 50%; width: .58rem; height: .58rem; background: #788ba0; flex: 0 0 auto; }
.netz-punkt[data-bereich="funk"] { background: #46b8ad; }
.netz-punkt[data-bereich="netz"] { background: #7ea7e8; }
.netz-punkt[data-bereich="regulierung"] { background: #d89f63; }
.netz-punkt[data-bereich="anwendung"] { background: #b997dc; }
.themen-auswahl .card-heading { padding: .85rem 1rem; }
.themen-liste, .themen-quellen { list-style: none; padding: 0; margin: 0; }
.themen-liste li + li { border-top: 1px solid var(--line); }
.themen-liste button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .54rem .78rem; text-align: left; color: var(--ink); background: transparent; border: 0; border-left: 3px solid transparent; font-size: .91rem; }
.themen-liste button:focus-visible { outline-offset: -3px; }
.themen-liste button:hover { background: #f4f8fc; }
.themen-liste button[aria-pressed="true"] { background: var(--accent-light); border-left-color: var(--accent); color: var(--accent-dark); }
.themen-name { display: flex; align-items: center; gap: .5rem; min-width: 0; overflow-wrap: anywhere; font-weight: 620; }
.themen-anzahl { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.themen-belege { margin-top: 1rem; }
.themen-belegkopf { display: flex; justify-content: space-between; align-items: flex-start; gap: .7rem; flex-wrap: wrap; padding: .95rem 1.1rem; border-bottom: 1px solid var(--line); }
.themen-belegkopf .muted { margin-top: .22rem; }
.themen-aktionen { display: flex; flex-wrap: wrap; gap: .4rem; }
.themen-aktionen .outline { min-height: 36px; font-size: .87rem; padding: .39rem .62rem; }
.themen-quellen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.themen-quellen li { padding: .95rem 1.1rem; min-width: 0; }
.themen-quellen li + li { border-left: 1px solid var(--line); }
.themen-quellen a { font-weight: 650; text-underline-offset: .18em; overflow-wrap: anywhere; }
.themen-quellen .themen-ort { margin: .25rem 0; color: var(--muted); font-size: .82rem; }
.themen-quellen .auszug { color: var(--muted); font-size: .91rem; overflow-wrap: anywhere; }

@media (max-width: 940px) {
  .themen-layout { grid-template-columns: minmax(0, 1fr); }
  .themen-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .themen-liste li + li { border-top: none; }
  .themen-liste li { border-bottom: 1px solid var(--line); }
  .themen-quellen { grid-template-columns: minmax(0, 1fr); }
  .themen-quellen li + li { border-left: none; border-top: 1px solid var(--line); }
}

@media (max-width: 440px) {
  .themen-suchleiste { flex-wrap: wrap; }
  .themen-suchleiste input { flex-basis: 160px; }
  .themen-liste { grid-template-columns: minmax(0, 1fr); }
  .netz-kopf, .netz-fuss { padding: .65rem .7rem; }
  #netz-canvas { height: 354px; }
}
