:root {
  --bg: #f3f2ec;
  --paper: #ffffff;
  --paper-2: #f2efe6;
  --paper-warm: #fbf7ed;
  --ink: #141a18;
  --muted: #64706b;
  --line: #ddd7c7;
  --green: #214d3f;
  --green-2: #102820;
  --moss: #788957;
  --gold: #b4772c;
  --clay: #9b6750;
  --red: #a94d42;
  --blue: #315e73;
  --shadow: 0 22px 60px rgba(20, 26, 24, 0.14);
  --shadow-soft: 0 12px 30px rgba(20, 26, 24, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, #e7e4d8 0, var(--bg) 300px, #faf8f2 100%);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(33, 77, 63, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 77, 63, 0.032) 1px, transparent 1px),
    repeating-linear-gradient(115deg, transparent 0 42px, rgba(180, 119, 44, 0.035) 42px 43px, transparent 43px 86px);
  background-size: 34px 34px, 34px 34px, 100% 100%;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 12px; font-size: clamp(34px, 9vw, 48px); line-height: 0.98; letter-spacing: 0; }
h2 { margin-bottom: 8px; font-size: 22px; line-height: 1.12; letter-spacing: 0; }
p { color: var(--muted); }

.app-shell {
  position: relative;
  width: min(100%, 560px);
  min-height: 100vh;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 0 90px rgba(20, 26, 24, 0.16);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(221, 215, 199, 0.86);
  background: rgba(255, 252, 245, 0.92);
  backdrop-filter: blur(18px);
}

body[data-page="admin"] .topbar {
  border-bottom-color: rgba(180, 87, 73, 0.2);
  background: rgba(255, 249, 240, 0.92);
}

.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-icon {
  display: block;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 10px 8px 10px 8px;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), var(--shadow-soft);
  transform: rotate(-2deg);
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; }
.brand small {
  max-width: 210px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-badge {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--red);
  color: white;
  font-size: 12px;
  font-weight: 950;
}

main { padding: 14px 14px 92px; }

.hero-card,
.admin-hero {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  padding: 28px;
  display: grid;
  align-content: end;
  border-radius: 8px;
  color: white;
  background:
    linear-gradient(180deg, rgba(12, 22, 18, 0.18), rgba(12, 22, 18, 0.86)),
    linear-gradient(90deg, rgba(16, 40, 32, 0.72), rgba(16, 40, 32, 0.2) 62%),
    url("./assets/waidpost-hero.png") center / cover no-repeat,
    linear-gradient(138deg, #102820 0%, #214d3f 40%, #596f45 68%, #9b6750 100%);
  box-shadow: var(--shadow);
}

.hero-card::before,
.admin-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    repeating-linear-gradient(108deg, transparent 0 26px, rgba(255,255,255,0.18) 26px 27px, transparent 27px 58px),
    linear-gradient(24deg, transparent 0 70%, rgba(180,119,44,0.3) 70% 71%, transparent 71%);
  background-size: 100% 100%, 132px 132px;
}

.hero-card::after {
  content: "No. 01";
  position: absolute;
  right: 18px;
  top: 18px;
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.78);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
  opacity: 0.9;
}

.admin-hero {
  min-height: 180px;
  background:
    linear-gradient(180deg, rgba(12, 22, 18, 0.08), rgba(12, 22, 18, 0.8)),
    linear-gradient(135deg, #26382f, #8b5741);
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  max-width: 430px;
  align-items: start;
}

.hero-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 310px);
  margin: 0 0 18px;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 16px 42px rgba(12, 22, 18, 0.24);
}

.hero-logo img {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  border-radius: 13px;
  object-fit: cover;
}

.hero-logo span,
.hero-logo strong,
.hero-logo small {
  display: block;
}

.hero-logo strong {
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  font-weight: 950;
}

.hero-logo small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}
.hero-card .kicker, .admin-hero .kicker { color: #e7bd72; }
.hero-card p:not(.kicker), .admin-hero p:not(.kicker) { color: rgba(255, 255, 255, 0.84); }

.hero-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.hero-marks span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 900;
}
.hero-marks img {
  width: 20px;
  height: 20px;
  border-radius: 6px;
}

.news-card,
.swipe-card,
.form-card,
.source-item,
.briefing-card,
.newsletter-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.hero-card,
.admin-hero {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.news-card,
.form-card,
.source-item,
.briefing-card,
.newsletter-card,
.panel {
  padding: 19px;
  margin-bottom: 13px;
}

.briefing-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  background:
    linear-gradient(90deg, rgba(180, 119, 44, 0.12), transparent 36%),
    linear-gradient(180deg, #ffffff, var(--paper-warm));
}

.search-row,
.form-row,
.newsletter-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 18px;
}
.form-row { grid-template-columns: 1fr 1fr; }

input, select, textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 12px;
  box-shadow: inset 0 1px 0 rgba(20, 26, 24, 0.03);
}
textarea { padding: 10px 12px; }
input:focus, select:focus, textarea:focus, button:focus-visible {
  outline: 3px solid rgba(190, 138, 53, 0.28);
  outline-offset: 2px;
}

.primary,
.secondary,
.ghost-button,
.ghost-link {
  min-height: 42px;
  border-radius: 8px;
  font-weight: 900;
}
.primary {
  padding: 0 14px;
  border: 0;
  background: linear-gradient(135deg, var(--green), #1d6a55);
  color: white;
  box-shadow: 0 10px 22px rgba(33, 77, 63, 0.18);
}
.primary:hover { filter: brightness(1.04); }
.secondary,
.ghost-button,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
}
.full { width: 100%; }

.chips,
.admin-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 0;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar, .admin-tabs::-webkit-scrollbar { display: none; }
.chips button,
.admin-tabs button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-weight: 900;
}
.chips button.active,
.admin-tabs button.active,
.admin-tabs button[aria-selected="true"] {
  border-color: var(--green);
  background: linear-gradient(135deg, var(--green), #1d6a55);
  color: white;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 8px 2px 12px;
}
.section-head.compact { margin-top: 0; }
.section-head h2 { margin-bottom: 0; }

.count-pill,
.risk-pill,
.region-pill,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(33, 77, 63, 0.11);
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
}
.tag.amber, .risk-pill.medium { background: rgba(180, 119, 44, 0.15); color: #744d1e; }
.tag.blue { background: rgba(49, 94, 115, 0.14); color: #264f61; }
.risk-pill.high, .source-item.red .tag { background: rgba(180, 87, 73, 0.16); color: var(--red); }
.source-item.yellow .tag { background: rgba(190, 138, 53, 0.18); color: #79551f; }

.feed, .source-list, .event-list { display: grid; gap: 12px; }
.news-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 247, 237, 0.92));
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.news-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--green), var(--gold));
}
.news-card:nth-child(3n + 2)::before { background: linear-gradient(180deg, var(--blue), var(--moss)); }
.news-card:nth-child(3n + 3)::before { background: linear-gradient(180deg, var(--clay), var(--gold)); }
.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(20, 26, 24, 0.12);
}
.news-card h2 { margin-top: 12px; font-size: 21px; }
.topic-visual {
  width: 76px;
  height: 76px;
  align-self: start;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(20, 26, 24, 0.06);
}
.news-card > :not(.topic-visual):not(.card-actions) {
  grid-column: 2;
}
.news-card p, .swipe-card p, .form-card p, .meta, .source-box span, .event-card span, .small-note {
  color: var(--muted);
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 800;
}

.card-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}
.card-actions button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf6;
  color: var(--ink);
  font-weight: 900;
}
.card-actions button:hover,
.secondary:hover,
.ghost-button:hover,
.ghost-link:hover {
  border-color: rgba(33, 77, 63, 0.32);
  background: #f3f6f0;
}

.ghost-button,
.ghost-link,
.secondary,
.card-actions button {
  box-shadow: 0 1px 0 rgba(20, 26, 24, 0.04);
}

.event-card {
  display: grid;
  grid-template-columns: 44px 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 13px;
  border-radius: 8px;
  border: 1px solid rgba(221, 215, 199, 0.72);
  background:
    linear-gradient(90deg, rgba(33, 77, 63, 0.08), transparent 44%),
    var(--paper-warm);
}
.event-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}
.event-card time { color: var(--green); font-weight: 950; }
.event-card strong, .event-card span { display: block; }

.small-note { font-size: 13px; font-weight: 800; }

.admin-tab { display: none; }
.admin-tab.active { display: block; }
[hidden] { display: none !important; }

.risk-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
}
.legend-note {
  flex-basis: 100%;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  font-weight: 750;
}

.swipe-card {
  min-height: 430px;
  padding: 22px;
  display: grid;
  align-content: start;
  touch-action: pan-y;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.card-top, .data-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}
.publish-preview {
  display: grid;
  gap: 7px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(33, 77, 63, 0.18);
  border-radius: 8px;
  background: rgba(33, 77, 63, 0.06);
}
.publish-preview strong {
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}
.publish-preview h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}
.publish-preview p {
  margin: 0;
}
.article-details {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.article-details summary {
  cursor: pointer;
  color: var(--green);
  font-weight: 950;
}
.article-details p {
  margin: 10px 0 0;
  color: var(--ink);
}
.article-details a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--green);
  font-weight: 950;
  text-decoration: none;
}
.article-details a:hover { text-decoration: underline; }
.source-box {
  margin-top: auto;
  padding: 14px;
  border-radius: 8px;
  background: var(--paper-2);
}
.source-box strong, .source-box span { display: block; }
.source-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
}
.source-link:hover { text-decoration: underline; }

.score-grid, .stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-top: 14px;
  border-radius: 8px;
  background: var(--line);
}
.stats-grid { grid-template-columns: repeat(4, 1fr); margin-top: 0; }
.score-grid div, .stats-grid div {
  display: grid;
  justify-items: center;
  padding: 12px 6px;
  background: var(--paper-2);
}
.score-grid strong, .stats-grid strong { font-size: 26px; }
.score-grid span, .stats-grid span { color: var(--muted); font-size: 12px; font-weight: 900; }

.swipe-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}
.swipe-actions button {
  min-height: 54px;
  min-width: 0;
  border: 0;
  border-radius: 8px;
  color: white;
  font-weight: 950;
}
.reject { background: var(--red); }
.later { background: var(--gold); color: #21180b !important; }
.publish { background: var(--green); }

.undo-button {
  width: 100%;
  min-height: 44px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 900;
}
.undo-button:disabled { cursor: not-allowed; opacity: 0.45; }
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

label {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.audit-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 12px 0;
}
.audit-paging {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.audit-paging button { min-height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); }

.user-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.user-item.inactive {
  opacity: 0.62;
}

.role-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(33, 77, 63, 0.1);
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.role-pill.admin {
  background: rgba(151, 57, 46, 0.12);
  color: var(--red);
}

.role-pill.editor {
  background: rgba(193, 133, 43, 0.16);
  color: #7b4d0f;
}

.danger {
  border-color: rgba(151, 57, 46, 0.28) !important;
  color: var(--red) !important;
}

.sr-inline { display: grid; grid-template-columns: 42px 1fr; gap: 8px; align-items: center; margin: 0; }
.audit-list { display: grid; gap: 8px; }
.audit-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.audit-item .meta { margin-top: 0; justify-content: space-between; }
.audit-item .reason { margin-top: 6px; color: var(--muted); font-size: 13px; }

.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.modal-backdrop { position: absolute; inset: 0; background: rgba(12, 22, 18, 0.55); }
.modal-panel {
  position: relative;
  width: min(100%, 520px);
  max-height: min(90vh, 720px);
  overflow: auto;
  padding: 20px;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 28px 80px rgba(12, 22, 18, 0.32);
}
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.modal-field { margin-top: 12px; }
.modal .primary[disabled] { opacity: 0.5; cursor: not-allowed; }
.audit-raw {
  max-height: 360px;
  overflow: auto;
  padding: 12px;
  border-radius: 8px;
  background: #111b17;
  color: #eef6ef;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.tabbar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  min-height: 64px;
  display: flex;
  gap: 6px;
  padding: 8px;
  border-top: 1px solid rgba(221, 215, 199, 0.86);
  background: rgba(255, 252, 245, 0.94);
  backdrop-filter: blur(18px);
}
.tabbar button {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}
.tabbar button.active {
  background: linear-gradient(180deg, #edf2e6, #e5eadb);
  color: var(--green);
}

.empty {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.68);
}

dialog {
  border: 0;
  padding: 0;
  border-radius: 8px;
  background: transparent;
}
dialog::backdrop { background: rgba(12, 22, 18, 0.48); }
.dialog-card {
  width: min(92vw, 420px);
  padding: 18px;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.icon-button {
  width: 40px;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: var(--paper-2);
  color: var(--ink);
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 760px) {
  .app-shell {
    margin-top: 22px;
    margin-bottom: 22px;
    min-height: calc(100vh - 44px);
    border-radius: 18px;
    overflow: hidden;
  }
  .audit-controls { grid-template-columns: 1fr auto; align-items: center; }
}

@media (max-width: 430px) {
  .hero-layout, .briefing-card, .newsletter-form, .search-row { grid-template-columns: 1fr; }
  .news-card { grid-template-columns: 58px minmax(0, 1fr); gap: 11px; }
  .topic-visual { width: 58px; height: 58px; }
  .event-card { grid-template-columns: 38px minmax(0, 1fr); }
  .event-card time { grid-column: 2; }
  .event-icon { width: 38px; height: 38px; grid-row: span 2; }
  .swipe-actions { gap: 7px; }
  .swipe-actions button { font-size: 14px; }
  .brand small { max-width: 170px; }
}

/* --- Responsive Stufen: Design unveraendert, nur Layout. ---
   Mobil loesen sich die Layout-Wrapper auf (display: contents), die
   Reihenfolge bleibt wie gehabt (Briefing direkt unter dem Hero). */
body[data-page="public"] main { display: flex; flex-direction: column; }
.layout, .col-main, .col-side { display: contents; }
body[data-page="public"] .hero-card { order: -2; }
body[data-page="public"] .briefing-card { order: -1; }

/* Tablet: etwas mehr Luft in der Karte. */
@media (min-width: 760px) {
  .app-shell { width: min(100%, 660px); }
}

/* Desktop: vollbreiter Hero, Feed links, Seitenleiste rechts, keine Tabbar. */
@media (min-width: 980px) {
  body[data-page="public"] .app-shell { width: min(100%, 1120px); }
  body[data-page="public"] main { padding: 22px 30px 48px; }
  body[data-page="public"] .tabbar { display: none; }

  body[data-page="public"] .hero-card { padding: 44px 48px; min-height: 420px; }
  body[data-page="public"] .hero-layout > div { max-width: 60ch; }
  body[data-page="public"] .search-row { max-width: 580px; }

  body[data-page="public"] .layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 336px;
    gap: 0 26px;
    align-items: start;
  }
  body[data-page="public"] .col-main,
  body[data-page="public"] .col-side { display: block; min-width: 0; }
  body[data-page="public"] .hero-card,
  body[data-page="public"] .briefing-card { order: 0; }

  /* Admin-Werkbank bekommt am Desktop ebenfalls mehr Platz. */
  body[data-page="admin"] .app-shell { width: min(100%, 880px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
