/* ehmig.online – Basis-Styles (kein Framework) */

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --text: #17202c;
  --muted: #5a6677;
  --border: #dce2ea;
  --accent: #aa002d;
  --accent-strong: #7d0021;
  --accent-soft: #fbe8ec;
  --on-accent: #ffffff;
  --ok: #17713f;
  --ok-soft: #e1f3e8;
  --warn: #7f5200;
  --warn-soft: #fbefd6;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(16 24 40 / 0.05), 0 6px 18px rgb(16 24 40 / 0.06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1120px;
  --gutter: clamp(16px, 4vw, 32px);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e131a;
    --surface: #151c26;
    --surface-2: #1c2531;
    --text: #e5eaf1;
    --muted: #9ba7b7;
    --border: #2a3442;
    --accent: #ff7d95;
    --accent-strong: #ffa8b8;
    --accent-soft: #3d1420;
    --on-accent: #1c050b;
    --ok: #68d39a;
    --ok-soft: #12301f;
    --warn: #f0c068;
    --warn-soft: #362a10;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3);
  }
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2.4vw, 2.9rem); }
h2 { font-size: clamp(1.3rem, 1.15rem + 0.8vw, 1.65rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

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

.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 100;
  padding: 8px 14px; background: var(--accent); color: var(--on-accent);
  border-radius: var(--radius-sm); text-decoration: none; transition: top 0.15s;
}
.skip-link:focus { top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }

.brand {
  display: inline-flex; align-items: center; gap: 2px;
  color: var(--text); text-decoration: none;
}
.brand-logo { display: inline-flex; border-radius: 8px; }
.brand-logo img { height: 40px; width: auto; }
.brand-tld {
  align-self: flex-end; margin-bottom: 3px;
  font-size: 1.2rem; font-weight: 800; font-style: italic; letter-spacing: -0.01em;
  color: var(--accent);
}
@media (prefers-color-scheme: dark) {
  /* Logo hat schwarze Schrift – im Dark Mode auf hellem Grund */
  .brand-logo { background: #fff; padding: 4px 8px; }
  .brand-logo img { height: 32px; }
}

.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a {
  padding: 8px 14px; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-weight: 500;
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--accent-strong); background: var(--accent-soft); }
.site-nav-logout {
  padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--text); font: inherit; font-weight: 500; cursor: pointer;
}
.site-nav-logout:hover { background: var(--surface-2); }
.site-nav-logout[hidden] { display: none; }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); cursor: pointer;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  display: block; width: 18px; height: 2px; margin-inline: auto;
  background: currentColor; border-radius: 2px; position: relative; content: "";
}
.nav-toggle-bar::before { position: absolute; top: -6px; }
.nav-toggle-bar::after { position: absolute; top: 6px; }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; padding: 8px var(--gutter) 16px;
    background: var(--bg); border-bottom: 1px solid var(--border);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { border-radius: var(--radius-sm); padding: 12px 14px; }
  .site-nav-logout { border-radius: var(--radius-sm); padding: 12px 14px; text-align: left; }
}

/* ---------- Main ---------- */
main { flex: 1; padding-block: 40px 64px; }
main[aria-busy="true"] { opacity: 0.6; transition: opacity 0.2s 0.15s; }

.hero { padding-block: clamp(24px, 6vw, 64px) 16px; max-width: 760px; }
.eyebrow {
  margin-bottom: 12px; color: var(--accent); font-weight: 600;
  font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.lead { font-size: 1.125rem; color: var(--muted); max-width: 68ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.page-head { margin-bottom: 8px; max-width: 760px; }
.section { margin-top: 48px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Buttons & Links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 20px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-family: inherit; font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { color: var(--text); border-color: var(--muted); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); }

.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- Grid & Cards ---------- */
.grid { display: grid; gap: 20px; margin-top: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }

.card {
  position: relative; display: flex; flex-direction: column;
  padding: 22px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.card p { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.card-title { margin: 0 0 8px; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; font-size: 0.875rem; }

/* gesamte Karte klickbar */
.card-link { transition: border-color 0.15s, transform 0.15s; }
.card-link:hover { border-color: var(--accent); transform: translateY(-2px); }
.card-link .card-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

.entry .text-link, .entry .badge { margin-top: auto; align-self: flex-start; }
.entry.is-soon { background: var(--surface-2); box-shadow: none; }

.ext { margin-left: 4px; font-size: 0.85em; color: var(--muted); }

/* ---------- Badges, Tags, Chips ---------- */
.badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600;
  background: var(--accent-soft); color: var(--accent-strong);
}
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: auto 0 0; padding-top: 4px; }
.tags li {
  padding: 2px 9px; border-radius: 6px; font-size: 0.8rem;
  background: var(--surface-2); color: var(--muted);
}
.page-head .tags { margin-top: 8px; }

.filters { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.search input {
  width: 100%; max-width: 420px; min-height: 46px; padding: 10px 16px;
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 999px;
}
.search input:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 36px; padding: 6px 14px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 0.9rem; font-weight: 500;
  background: var(--surface); color: var(--muted); border: 1px solid var(--border);
}
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

#tool-count { margin: 20px 0 0; }

/* ---------- Detail & Prose ---------- */
.breadcrumb { margin-bottom: 20px; font-size: 0.9rem; color: var(--muted); }
.breadcrumb a { text-decoration: none; }

.modules { counter-reset: m; list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; max-width: 760px; }
.modules li {
  counter-increment: m; display: flex; gap: 14px; align-items: baseline;
  padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.modules li::before { content: counter(m, decimal-leading-zero); font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }

.notice {
  padding: 14px 18px; border-radius: var(--radius-sm);
  background: var(--warn-soft); color: var(--text); border-left: 4px solid var(--warn);
}

.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.8em; font-size: 1.25rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); font-size: 0.9rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px; }
.footer-inner p { margin: 0; }
.footer-inner nav { display: flex; gap: 18px; }
.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

.back-link { margin-top: 40px; }

/* ---------- Landing ---------- */
.steps { list-style: none; padding: 0; }
.step-no {
  display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 12px;
  border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700;
}
.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: 28px; border-radius: var(--radius); background: var(--accent-soft);
}
.cta-band h2 { margin-bottom: 4px; }
.cta-band p { margin: 0; }

/* ---------- Code-Eingabe ---------- */
.access { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-block: clamp(16px, 6vw, 56px); }
.access-card { width: 100%; max-width: 460px; padding: clamp(22px, 5vw, 36px); }
.access-card h1 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.1rem); }
#access-form { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
#access-form label { font-weight: 600; }
#access-form input {
  min-height: 50px; padding: 10px 14px; font: inherit; font-size: 1.15rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
}
#access-form input::placeholder { letter-spacing: 0.04em; color: var(--muted); }
#access-form input:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
#access-form input[aria-invalid="true"] { border-color: var(--accent); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.form-msg { min-height: 1.5em; margin: 0; color: var(--accent-strong); font-weight: 500; }

/* ---------- Teilnehmerbereich ---------- */
.portal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.portal-head h1 { margin-bottom: 4px; }
.portal-head > div { flex: 1 1 0; min-width: 0; }
.portal-head > .btn { flex: none; }
.btn-small { min-height: 38px; padding: 6px 16px; font-size: 0.9rem; }
.portal-tabs {
  display: flex; gap: 4px; margin: 24px 0 28px; padding-bottom: 2px;
  border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none;
}
.portal-tabs a {
  flex: none; padding: 10px 14px; margin-bottom: -3px; color: var(--muted); text-decoration: none;
  font-weight: 500; border-bottom: 3px solid transparent; white-space: nowrap;
}
.portal-tabs a:hover { color: var(--text); }
.portal-tabs a[aria-current="page"] { color: var(--accent-strong); border-bottom-color: var(--accent); }
.portal-body > h2:first-child { margin-top: 0; }
.section-tight { max-width: 760px; }
.facts { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 0; }
.facts dt { font-size: 0.85rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.plain-list { margin: 0; padding-left: 1.1em; color: var(--muted); }
.plain-list li + li { margin-top: 4px; }
.link-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; max-width: 760px; }
.link-list .card { padding: 18px 22px; }
.url { word-break: break-all; }
.quick { font-weight: 600; text-decoration: none; color: var(--text); transition: border-color 0.15s; }
.quick:hover { border-color: var(--accent); color: var(--accent-strong); }
.portal-tabs::-webkit-scrollbar { display: none; }
/* Startseite Teilnehmerbereich */
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.start-grid { margin: 24px 0 8px; }
.start-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--text); }
.start-card .eyebrow { margin: 0; }
.start-card p { margin: 0; }
a.start-card:hover { border-color: var(--accent); }
.start-title { font-size: 1.25rem; font-weight: 700; margin: 0; }
.start-docs { border-color: var(--accent); background: var(--accent-soft); }
.start-docs .start-title { color: var(--accent-strong); }
.steps-list { margin: 0; padding-left: 1.4em; display: grid; gap: 4px; }
.news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.news-card { border-left: 4px solid var(--accent); }
.news-card .card-title { margin: 2px 0 6px; }
.news-text { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.agenda-card .card-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 8px; }
.contact .card p { margin: 4px 0 0; }
.contact .eyebrow { color: var(--accent); margin: 0; }
.contact p.start-title { color: var(--text); }

/* ---------- Kursunterlagen (Dokumentation aus Confluence) ---------- */
.docs { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) {
  .docs { grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: 40px; }
  .docs-side { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
}
.docs-search { display: flex; gap: 8px; margin-bottom: 16px; }
.docs-search input {
  flex: 1; min-width: 0; min-height: 38px; padding: 6px 12px; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.docs-search input:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.docs-nav summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
@media (min-width: 900px) { .docs-nav summary { pointer-events: none; list-style: none; } .docs-nav summary::-webkit-details-marker { display: none; } }
.docs-nav ul { list-style: none; margin: 0; padding: 0; }
.docs-nav ul ul { padding-left: 14px; border-left: 1px solid var(--border); margin-left: 4px; }
.docs-nav li { margin: 0; }
.docs-nav a { display: block; padding: 4px 8px; border-radius: var(--radius-sm); color: var(--muted); text-decoration: none; font-size: 0.93rem; }
.docs-nav a:hover { color: var(--text); background: var(--surface-2); }
.docs-nav a[aria-current="page"] { color: var(--accent-strong); background: var(--accent-soft); font-weight: 600; }
.docs-main { min-width: 0; }
.docs-main > h2:first-of-type { margin-top: 0; }
.docs-results { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.docs-results .card { padding: 16px 20px; }
.docs-results p { margin: 6px 0 0; }
.docs-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--border); }
.docs-pager a { max-width: 48%; text-decoration: none; color: var(--text); font-weight: 600; }
.docs-pager a:hover { color: var(--accent-strong); }
.docs-pager .next { margin-left: auto; text-align: right; }

.md { max-width: 78ch; overflow-wrap: anywhere; }
.md h3 { margin-top: 1.8em; font-size: 1.3rem; }
.md h4 { margin-top: 1.5em; font-size: 1.1rem; }
.md h5, .md h6 { margin-top: 1.3em; font-size: 1rem; }
.md img { display: block; max-width: 100%; height: auto; margin: 16px 0; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.md code { padding: 1px 6px; font-size: 0.9em; background: var(--surface-2); border-radius: 4px; }
.md pre {
  margin: 16px 0; padding: 14px 16px; overflow-x: auto; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius-sm); line-height: 1.5;
}
.md pre code { padding: 0; background: none; font-size: 0.88rem; overflow-wrap: normal; }
.md blockquote { margin: 16px 0; padding: 10px 18px; background: var(--surface); border-left: 4px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.md blockquote > :first-child { margin-top: 0; }
.md blockquote > :last-child { margin-bottom: 0; }
.md ul, .md ol { padding-left: 1.4em; }
.md li + li { margin-top: 4px; }
.md hr { margin: 32px 0; border: 0; border-top: 1px solid var(--border); }
.md .table-wrap { margin: 16px 0; overflow-x: auto; }
.md table { border-collapse: collapse; min-width: 100%; font-size: 0.93rem; }
.md th, .md td { padding: 8px 12px; text-align: left; vertical-align: top; border: 1px solid var(--border); }
.md th { background: var(--surface-2); }
.md em:only-child { color: var(--muted); }

/* ---------- Verwaltung (/admin) ---------- */
.admin-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 16px 0 8px; }
.admin-bar select, .admin-rename input {
  min-height: 38px; padding: 6px 10px; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.admin-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.admin-row { padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.admin-row.is-hidden { background: var(--surface-2); }
.admin-row.depth-1 { margin-left: 20px; }
.admin-row.depth-2 { margin-left: 40px; }
.admin-row.depth-3 { margin-left: 60px; }
.admin-row.depth-4 { margin-left: 80px; }
.admin-row.depth-5 { margin-left: 100px; }
.admin-row.depth-6 { margin-left: 120px; }
.admin-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 10px; }
.admin-check { display: inline-flex; align-items: center; gap: 6px; }
.admin-move { display: inline-flex; gap: 6px; }
.admin-rename { display: flex; flex: 1 1 280px; gap: 8px; }
.admin-rename input { flex: 1; min-width: 0; }
.admin input:focus-visible, .admin select:focus-visible { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.admin-login { display: grid; gap: 8px; max-width: 360px; margin-top: 16px; }
.admin-login input {
  min-height: 44px; padding: 8px 12px; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.admin-login .btn { justify-self: start; }
.admin-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.admin-tabs a { padding: 8px 14px; border-radius: var(--radius-sm); color: var(--muted); text-decoration: none; font-weight: 500; }
.admin-tabs a:hover { color: var(--text); background: var(--surface-2); }
.admin-tabs a[aria-current="page"] { color: var(--accent-strong); background: var(--accent-soft); }
.admin-tabs .btn { margin-left: auto; }
.admin h2 { margin-top: 32px; }
.admin-notes { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.admin-notes .notice { margin: 0; }
.notice-warn { border-color: var(--warn); }
.admin-table { border-collapse: collapse; min-width: 100%; font-size: 0.93rem; }
.admin-table th, .admin-table td { padding: 8px 12px; text-align: left; vertical-align: top; border: 1px solid var(--border); }
.admin-table th { background: var(--surface-2); }
.table-wrap { overflow-x: auto; }
.admin-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 16px; max-width: 760px; }
.admin-field { display: grid; gap: 4px; }
.admin-field-wide { grid-column: 1 / -1; margin: 0; }
.admin-form input, .admin-form select, .admin-rename input[type="date"], .admin-code textarea {
  min-height: 44px; padding: 8px 12px; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.admin-rename label { align-self: center; }
.admin-row form.admin-rename[data-action="until"] { flex-wrap: wrap; }
.admin-facts { margin: 6px 0 0; }
.admin-code { margin: 16px 0; padding: 16px; border: 2px solid var(--accent); border-radius: var(--radius-sm); background: var(--surface); display: grid; gap: 8px; }
.admin-code p { margin: 0; }
.admin-code-value { font: 600 1.6rem/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.06em; overflow-wrap: anywhere; }
.admin-code textarea { width: 100%; resize: vertical; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-details { margin: 16px 0; }
.admin-details summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.admin-details[open] summary { margin-bottom: 12px; }
#det-form, .admin-field-text { max-width: 760px; }
.admin-field-text { margin-bottom: 12px; }
.admin textarea, .admin input[type="url"], .admin input[type="email"], .admin input[type="tel"], .admin input[type="time"], .agenda-day input[type="date"] {
  min-height: 44px; padding: 8px 12px; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.admin textarea { width: 100%; resize: vertical; }
.admin-form input, .admin-form select, .admin-field-text input { width: 100%; min-width: 0; box-sizing: border-box; }
.admin textarea:focus-visible { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.agenda-day { margin: 0 0 12px; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.agenda-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 8px; }
.agenda-head .admin-field { flex: 0 1 auto; }
.agenda-head .btn { margin-left: auto; }
.admin-save { margin-top: 16px; }
.news-body { margin: 6px 0 0; white-space: pre-line; }
