/* Bruderinfo-Aktuell – Farben und Formen nach dem bisherigen Wix-Auftritt.
   Schriften liegen auf dem eigenen Server (assets/fonts, SIL Open Font License), keine externen Schriften (DSGVO). */
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/roboto-condensed-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url(fonts/source-serif-4-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 200 900; font-display: swap; src: url(fonts/source-serif-4-latin-wght-italic.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap; src: url(fonts/source-sans-3-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 200 900; font-display: swap; src: url(fonts/source-sans-3-latin-wght-italic.woff2) format("woff2"); }
:root {
  --blue: #569cbe;
  --blue-dark: #1386be;
  --blue-deep: #0f6a96;
  --teal: #23b29e;
  --bg: #f7f7f7;
  --paper: #ffffff;
  --ink: #1e2a32;
  --muted: #5d6b74;
  --line: #dde3e7;
  --ok: #1d8a4e;
  --bad: #c0392b;
  --warn-bg: #fff6e0;
  --head: "Roboto Condensed", "Arial Narrow", sans-serif;
  --body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  /* Schrift der Artikel – in der Verwaltung unter Einstellungen → Schrift änderbar (font_css()) */
  --read: "Source Serif 4", Georgia, serif;
  --read-size: 19px;
  --read-line: 1.7;
  --read-head: var(--head);
  --read-h2: 30px;
  --read-head-color: var(--blue-dark);
  --read-head-weight: 500;
  --radius: 6px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 var(--body); color: var(--ink); background: var(--bg); }
img, video { max-width: 100%; height: auto; }
a { color: var(--blue-dark); }
a:hover { color: var(--blue-deep); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 500; line-height: 1.2; letter-spacing: .01em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.section { padding: 32px 16px 56px; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: #000; color: #fff; padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }
.muted, .meta, .hint { color: var(--muted); }
.meta { font-size: 14px; }
.hint { font-size: 14px; margin: 4px 0 12px; }
.hp { position: absolute; left: -5000px; }
mark { background: #ffe58a; padding: 0 2px; }
:focus-visible { outline: 3px solid var(--blue-dark); outline-offset: 2px; }

/* ---------- Kopf */
.topbar { background: var(--paper); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--blue-dark); }
.brand strong { display: block; font: 600 26px/1.05 var(--head); }
.brand small { display: block; color: var(--blue); font-size: 13px; border-top: 1px solid var(--blue); padding-top: 2px; margin-top: 2px; }
.account { display: flex; align-items: center; gap: 12px; }
.account-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; font-size: 15px; }
.badge { background: var(--bad); color: #fff; border-radius: 99px; font-size: 12px; padding: 0 7px; }
.is-home .topbar { background: var(--teal); border: 0; }
.is-home .topbar .brand { visibility: hidden; }
.is-home .account-link { color: #fff; }

.hero { background: #1d3a52 url(/assets/hero.jpg) center/cover no-repeat; color: #fff; text-align: center; padding: 72px 16px 64px; }
.hero h1 { margin: 0; font-size: clamp(44px, 9vw, 100px); color: #d9e2ea; font-weight: 500; display: inline-block; border-bottom: 2px solid rgba(255,255,255,.75); padding: 0 24px 6px; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero p { font: 500 clamp(17px, 2.4vw, 22px)/1.4 var(--head); letter-spacing: .12em; margin: 18px 0 0; }

.mainnav { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.is-home .mainnav { background: var(--blue); border: 0; }
.mainnav-inner { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.mainnav ul { list-style: none; margin: 0; padding: 0; }
#menu { display: flex; flex-wrap: wrap; gap: 2px; flex: 1; }
#menu > li { position: relative; }
#menu > li > a { display: block; padding: 12px 14px; text-decoration: none; color: var(--ink); font: 500 17px var(--head); border-left: 1px solid var(--line); }
#menu > li:first-child > a { border-left: 0; }
.is-home #menu > li > a { color: #fff; border-color: rgba(255,255,255,.3); }
#menu > li.active > a { color: var(--blue-dark); background: #eaf3f8; }
.is-home #menu > li.active > a { background: rgba(255,255,255,.18); color: #fff; }
#menu .sub { display: none; position: absolute; left: 0; top: 100%; min-width: 240px; background: var(--paper); box-shadow: 0 8px 24px rgba(0,0,0,.12); border-radius: 0 0 var(--radius) var(--radius); padding: 6px 0; z-index: 30; }
#menu .sub a { display: block; padding: 9px 16px; text-decoration: none; color: var(--ink); }
#menu .sub a:hover { background: #eaf3f8; }
#menu li.has-sub:hover .sub, #menu li.has-sub:focus-within .sub { display: block; }
#menu > li.has-sub > a::after { content: ""; display: inline-block; width: 0; height: 0; margin-left: 7px; vertical-align: 3px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid currentColor; opacity: .6; transition: transform .15s; }
#menu > li.has-sub:hover > a::after, #menu > li.has-sub:focus-within > a::after { transform: rotate(180deg); }
.search input { width: 220px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 99px; font: inherit; font-size: 15px; }
.nav-toggle { display: none; }

/* ---------- Bänder auf der Startseite */
.band { padding: 44px 0; }
.band-light { background: #e9ecee; }
.band-teal { background: var(--teal); color: #10332d; }
.band-blue { background: var(--blue); color: #fff; }
.band-blue a { color: #fff; }
.band-title { text-align: center; font-size: 38px; margin: 0 0 24px; color: var(--blue); }
.band-teal .band-title { color: #173d38; }
.band-blue .band-title { color: #fff; }

/* ---------- Karten */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.card { background: var(--paper); display: flex; flex-direction: column; border: 1px solid var(--line); }
.card-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #dfe7ec; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.03); }
.card-img-empty { display: block; height: 100%; background: linear-gradient(135deg, var(--blue), var(--teal)); }
.card-body { padding: 16px 20px 8px; flex: 1; }
.card-body .meta { margin: 0 0 8px; font-size: 13px; }
.card h3 { margin: 0 0 10px; font-size: 22px; }
.card h3 a { color: var(--blue-dark); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.excerpt { margin: 0; font-size: 15px; color: #3d4a52; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; gap: 16px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.card-foot span { display: inline-flex; align-items: center; gap: 4px; }
.card-foot .likes { margin-left: auto; color: #d0455c; }

/* ---------- Seiten & Artikel */
.page-title { font-size: 40px; color: var(--blue-dark); margin: 8px 0 20px; }
.post { padding-top: 28px; padding-bottom: 56px; }
.post-box { background: var(--paper); border: 1px solid var(--line); padding: 36px clamp(16px, 6vw, 72px); max-width: 940px; margin: 0 auto 28px; }
.post-title { font-size: clamp(30px, 4.5vw, 42px); color: var(--blue-dark); margin: 6px 0 10px; }
.prose { font-family: var(--read); font-size: var(--read-size); line-height: var(--read-line); }
.prose p { margin: 0 0 1em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--read-head); font-weight: var(--read-head-weight); color: var(--read-head-color); }
.prose h2 { font-size: var(--read-h2); margin: 1.4em 0 .5em; }
.prose h3 { font-size: calc(var(--read-h2) * .8); margin: 1.2em 0 .4em; }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--blue); color: #33444f; }
.prose img { display: block; margin: 1.2em auto; }
.prose figure { margin: 1.2em 0; text-align: center; }
.prose figcaption { font: 14px var(--body); color: var(--muted); }
.prose table { border-collapse: collapse; width: 100%; font: 15px/1.45 var(--body); margin: 1em 0; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 8px; vertical-align: top; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose a { word-break: break-word; }
.video-embed { position: relative; aspect-ratio: 16 / 9; background: #111 center/cover no-repeat; margin: 1.2em 0; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); overflow: hidden; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed button { background: rgba(0,0,0,.72); color: #fff; border: 0; border-radius: var(--radius); padding: 14px 18px; font: 15px var(--body); cursor: pointer; max-width: 85%; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 5px 12px; border: 1px solid var(--blue); border-radius: 99px; text-decoration: none; color: var(--blue-dark); background: var(--paper); font-size: 14px; }
.chip.active, .chip:hover { background: var(--blue); color: #fff; }
.chip-cat { border-color: var(--teal); color: #117a6b; }
.post-cats { margin-top: 28px; }
.post-stats { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 14px; color: var(--muted); font-size: 15px; }
.post-stats form { margin-left: auto; }
.like { display: inline-flex; gap: 6px; align-items: center; background: none; border: 1px solid #e3a5b0; color: #c0394f; border-radius: 99px; padding: 6px 14px; font: inherit; cursor: pointer; }
.like.is-liked { background: #fdecef; }
.related { max-width: 940px; margin: 0 auto 28px; }
.related h2 { font-size: 26px; }
.crumbs { font-size: 15px; margin: 0 0 8px; }
.prevnext { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); margin-top: 28px; padding-top: 14px; }

/* ---------- Kommentare */
.comments h2 { font-size: 28px; margin-top: 0; }
.notice { background: #eef5f9; padding: 14px 18px; border-radius: var(--radius); }
.comment-form textarea { width: 100%; }
.comment-list { list-style: none; padding: 0; margin: 24px 0 0; }
.comment { padding: 16px 0; border-top: 1px solid var(--line); }
.comment.is-pending { background: var(--warn-bg); padding-left: 12px; padding-right: 12px; }
.replies { margin: 6px 0 0 22px; padding-left: 16px; border-left: 2px solid #d6e6ef; }
/* lange Antwortketten aus Wix: ab der dritten Ebene nicht weiter einrücken */
.replies .replies .replies { margin-left: 0; padding-left: 0; border-left: 0; }
.replies .comment:first-child { border-top: 0; }
.comment-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }
.comment-head .meta { text-decoration: none; }
.tag-pending { font-size: 13px; background: #f1c86b; padding: 1px 8px; border-radius: 99px; }
.comment-body { margin: 6px 0 0 44px; overflow-wrap: anywhere; }
.comment-body p { margin: 0 0 .7em; }
.comment-body img { max-height: 420px; width: auto; }
.comment-body blockquote { margin: .5em 0; padding-left: 12px; border-left: 3px solid var(--line); color: #44535c; }
.comment-actions { margin: 4px 0 0 44px; display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; font-size: 14px; }
.report form { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; max-width: 380px; }
.reply-form { margin: 12px 0 0 44px; }

/* ---------- Formulare & Knöpfe */
.form { display: flex; flex-direction: column; gap: 6px; max-width: 640px; }
.form label { font-weight: 600; margin-top: 8px; }
.form .check { font-weight: normal; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), textarea, select { font: inherit; padding: 10px 12px; border: 1px solid #b9c5cc; border-radius: var(--radius); background: #fff; width: 100%; }
textarea { min-height: 110px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; }
.check input { margin-top: 5px; width: 20px; height: 20px; flex: none; }
.inline-check { display: inline-flex; margin-right: 18px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px 14px; margin: 12px 0; }
legend { font-weight: 600; padding: 0 6px; }
.btn { display: inline-block; background: var(--blue-dark); color: #fff; border: 2px solid var(--blue-dark); border-radius: var(--radius); padding: 10px 20px; font: 600 16px var(--body); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.btn-small { padding: 5px 12px; font-size: 14px; }
.btn-wide { width: 100%; margin-top: 12px; }
.btn-ghost { background: transparent; color: var(--blue-dark); }
.btn-ghost:hover { background: #eaf3f8; color: var(--blue-deep); }
.btn-light { background: #fff; color: var(--blue-dark); border-color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-go { background: var(--ok); border-color: var(--ok); }
.btn-go:hover { background: #156b3c; border-color: #156b3c; }
.btn-danger { background: var(--bad); border-color: var(--bad); }
.btn-danger:hover { background: #962d22; border-color: #962d22; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--blue-dark); font: inherit; cursor: pointer; text-decoration: underline; }
.linkbtn.danger, a.danger { color: var(--bad); }
.inline { display: inline; }
.flash { padding: 12px 16px; border-radius: var(--radius); margin: 14px 0; border-left: 5px solid; background: #fff; }
.flash-success { border-color: var(--ok); background: #eaf7ef; }
.flash-error { border-color: var(--bad); background: #fdeeec; }
.flash-info { border-color: var(--blue); background: #eef5f9; }
.auth { max-width: 520px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 20px; }
.danger-zone { border: 1px solid #f0c4be; background: #fff8f7; padding: 14px 18px; border-radius: var(--radius); }
.bigsearch { display: flex; gap: 8px; margin: 0 0 20px; }
.bigsearch.small input { padding: 7px 10px; }
.results { list-style: none; padding: 0; }
.results li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.results li.unread strong { color: var(--blue-dark); }
.snip { font-size: 15px; color: #3d4a52; }
.pager { display: flex; gap: 18px; align-items: center; justify-content: center; margin: 32px 0 0; }

/* ---------- Glossar */
.lead { font-size: 18px; }
.az { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 18px; }
.az a { min-width: 38px; text-align: center; padding: 6px 8px; border: 1px solid var(--line); background: #fff; text-decoration: none; border-radius: var(--radius); font-weight: 600; }
.az a.active, .az a:hover { background: var(--blue-dark); color: #fff; border-color: var(--blue-dark); }
.letter { font-size: 34px; color: var(--blue); margin: 10px 0; }
.glossary-list { columns: 3 260px; column-gap: 32px; padding: 0; list-style: none; }
.glossary-list li { break-inside: avoid; padding: 4px 0; }
.cats { font-size: 12px; color: var(--muted); }
.glossary-sections { margin-top: 32px; }
.glossary-entry .post-title { margin-top: 12px; }

/* ---------- Fuß */
.site-footer { background: #2d3a42; color: #c9d3d9; padding: 22px 0; font-size: 15px; }
.site-footer a { color: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.site-footer nav, .social { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Rollen-Ansicht */
.viewas-banner { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #fff2cc; border: 1px solid #e6c463; border-radius: var(--radius); padding: 10px 16px; margin: 0 0 18px; }
.viewas-public { border-radius: 0; margin: 0; border-width: 0 0 1px; justify-content: center; }
.view-switch { display: inline-flex; align-items: center; gap: 8px; }
.view-switch label { color: #fff; font-size: 14px; }
.view-switch select { width: auto; padding: 5px 8px; font-size: 14px; }

/* ---------- Verwaltung */
body.admin { background: #eef2f4; font-size: 17px; }
.admin-top { background: var(--blue-dark); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 10px 20px; }
.admin-top .brand { color: #fff; font: 600 22px var(--head); }
.admin-user { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 15px; }
.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 58px); }
.admin-nav { background: #fff; border-right: 1px solid var(--line); padding: 16px 10px; display: flex; flex-direction: column; gap: 4px; }
.admin-nav a { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 500; }
.admin-nav a:hover { background: #eaf3f8; }
.admin-nav a.active { background: var(--blue-dark); color: #fff; }
.admin-nav a.primary { border: 2px solid var(--ok); color: var(--ok); margin-bottom: 8px; justify-content: center; font-weight: 700; }
.admin-nav a.primary.active { background: var(--ok); color: #fff; }
.admin-main { padding: 24px clamp(16px, 3vw, 40px) 80px; min-width: 0; }
.admin-main h1 { font-size: 34px; margin: 0 0 16px; color: var(--blue-deep); }
.head-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.head-row h1 { margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin: 0 0 28px; }
.tile { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 2px solid var(--line); border-radius: 10px; padding: 22px; text-decoration: none; color: var(--ink); }
.tile strong { font-size: 20px; color: var(--blue-deep); }
.tile span { color: var(--muted); }
.tile:hover { border-color: var(--blue); }
.tile-primary { border-color: var(--ok); }
.tile-primary strong { color: var(--ok); }
.tile-alert { border-color: #e2a400; background: #fffaf0; }
.list { list-style: none; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.list li { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.list li:last-child { border: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px; }
.filters input[type=search] { width: auto; flex: 1; min-width: 200px; max-width: 320px; padding: 6px 12px; }
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); font-size: 16px; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { background: #f4f7f9; font-weight: 600; }
.nowrap { white-space: nowrap; }
.pill { display: inline-block; font-size: 13px; padding: 2px 10px; border-radius: 99px; background: #e5eaed; white-space: nowrap; }
.pill-ok { background: #d8f0e2; color: #136238; }
.pill-bad { background: #f9d9d5; color: #8c2219; }
.empty { background: #fff; border: 1px dashed var(--line); padding: 28px; text-align: center; color: var(--muted); border-radius: var(--radius); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 14px 0; }
.sticky-actions { position: sticky; bottom: 0; background: #eef2f4; padding: 12px 0; border-top: 1px solid var(--line); z-index: 5; }
.danger-inline { margin-top: 18px; }
.mod-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 14px; }
.mod-card header { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.mod-body { font: 17px/1.55 var(--body); margin: 8px 0; max-height: 360px; overflow: auto; }
.reason { background: var(--warn-bg); border-left: 4px solid #e2a400; padding: 6px 10px; margin: 8px 0; font-size: 15px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.media-item { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.media-item img, .media-item video { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #dde3e7; display: block; }
.media-item figcaption { padding: 8px 10px; font-size: 14px; display: flex; flex-direction: column; gap: 2px; }
.row { display: flex; gap: 10px; align-items: center; }
.big-label { font-size: 18px; }
.title-input { font: 600 24px var(--head) !important; }
.steps { padding-left: 1.3em; }
.steps li { margin: 4px 0; }
.switch { background: #f7f9fa; border-radius: var(--radius); padding: 10px 12px; }
.more { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 16px 0; }
.more summary { cursor: pointer; font-weight: 600; }

/* ---------- Editor */
.editor { border: 1px solid #b9c5cc; border-radius: var(--radius); background: #fff; }
.toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); background: #f4f7f9; position: sticky; top: 0; z-index: 4; border-radius: var(--radius) var(--radius) 0 0; }
.toolbar button { font: 15px var(--body); padding: 7px 11px; border: 1px solid #c9d3d9; background: #fff; border-radius: 5px; cursor: pointer; min-height: 38px; }
.toolbar button:hover { background: #eaf3f8; border-color: var(--blue); }
.toolbar .sep { width: 1px; background: #c9d3d9; margin: 2px 4px; }
.editor-area { min-height: 420px; padding: 28px clamp(16px, 4vw, 56px); outline: none; }
.editor-area:empty::before { content: "Hier den Text schreiben …"; color: #9aa7af; }
.picker { width: min(900px, 94vw); border: 0; border-radius: 10px; padding: 0; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.picker::backdrop { background: rgba(10,25,35,.55); }
.picker-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.picker-upload, .picker-video { padding: 12px 18px; border-bottom: 1px solid var(--line); }
.picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; padding: 18px; max-height: 60vh; overflow: auto; }
.picker-grid button { border: 2px solid transparent; padding: 0; background: #eef2f4; cursor: pointer; border-radius: 6px; overflow: hidden; }
.picker-grid button:hover { border-color: var(--blue-dark); }
.picker-grid img, .picker-grid video { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.picker-grid span { display: block; font-size: 12px; padding: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ---------- Schmale Bildschirme */
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 14px; font: inherit; }
  .is-home .nav-toggle { color: #fff; border-color: rgba(255,255,255,.5); }
  .mainnav-inner { flex-wrap: wrap; padding: 6px 16px; }
  #menu { display: none; flex-direction: column; width: 100%; order: 3; }
  #menu.open { display: flex; }
  #menu > li > a { border-left: 0; border-top: 1px solid var(--line); }
  #menu .sub { position: static; display: block; box-shadow: none; padding-left: 16px; background: transparent; }
  #menu > li.has-sub > a::after { display: none; }
  .is-home #menu .sub a { color: #fff; }
  .search { flex: 1; }
  .search input { width: 100%; }
  .brand strong { font-size: 21px; }
  .brand small { display: none; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); }
  .table { display: block; overflow-x: auto; }
  .comment-body, .comment-actions, .reply-form { margin-left: 0; }
  .replies { margin-left: 6px; padding-left: 10px; }
  .prose { font-size: calc(var(--read-size) - 1px); }
  .prose h2 { font-size: calc(var(--read-h2) * .85); }
}

/* ---------- Wartungsmodus */
body.maintenance { background: #1d3a52 url(/assets/hero.jpg) center/cover no-repeat fixed; min-height: 100vh; }
.maint { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.maint-box { background: rgba(255,255,255,.96); max-width: 620px; width: 100%; padding: 36px clamp(20px, 5vw, 48px); border-radius: 10px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.maint-site { font: 600 22px var(--head); color: var(--blue-dark); margin: 8px 0 0; }
.maint h1 { font-size: clamp(34px, 6vw, 48px); color: var(--blue-deep); margin: 8px 0 16px; }
.maint-text { font-size: 18px; text-align: left; }
.maint-links { font-size: 14px; margin-top: 28px; color: var(--muted); }
.editor-small { min-height: 140px; }
.editor-area .video-embed { aspect-ratio: auto; min-height: 90px; background: #33444f; color: #fff; font: 15px var(--body); }
.editor-area .video-embed::after { content: "▶ YouTube-Video " attr(data-youtube); }
.comments-cell form { margin-top: 2px; }
.table th .sortlink { color: inherit; text-decoration: none; white-space: nowrap; }
.table th .sortlink:hover { text-decoration: underline; }
.table th[aria-sort] { background: #e8eef2; }
.invite-box { border-color: var(--blue); background: #eef5f9; }
.copy-row { display: flex; gap: 8px; flex-wrap: wrap; }
.copy-row input { flex: 1; min-width: 220px; font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
/* Verwaltung: Knöpfe in Formularen nicht über die ganze Breite ziehen */
body.admin .form > button, body.admin .form > .btn, body.admin .form > .actions .btn { align-self: flex-start; width: auto; }
.intro-text { margin: 4px 0 14px; padding: 12px 16px; background: #f7f9fa; border-left: 4px solid var(--blue); border-radius: 4px; white-space: normal; }
.reg-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.reg-head h2 { margin: 0; }
.reg-unverified { opacity: .75; }
.ai-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin: 0 0 14px; background: #fff; }
.ai-box p { margin: 4px 0; }
.sim-table { margin: 0 0 8px; font-size: 15px; }
.pill-warn { background: #fdecc8; color: #7a4d00; }
.intro-questions { margin: 0 0 4px; padding-left: 20px; }

/* Bilder im Artikel: Größe und Position (Editor → Bild anklicken) */
.prose { display: flow-root; }
.prose img { max-width: 100%; height: auto; }
.prose img.img-s { width: 33%; }
.prose img.img-m { width: 50%; }
.prose img.img-l { width: 75%; }
.prose img.img-full { width: 100%; }
.prose img.img-left { float: left; margin: .3em 1.4em .8em 0; }
.prose img.img-right { float: right; margin: .3em 0 .8em 1.4em; }
.prose img.img-center { display: block; margin: 1.2em auto; float: none; }
.prose h2, .prose h3, .prose hr { clear: both; }
.prose img.img-left, .prose img.img-right, .prose img.img-s, .prose img.img-m, .prose img.img-l { border-radius: 4px; }
@media (max-width: 600px) {
  /* Auf dem Handy: kleine Bilder dürfen umflossen werden, größere stehen allein */
  .prose img.img-s { width: 40%; }
  .prose img.img-m, .prose img.img-l { width: 100%; float: none; margin: 1em 0; }
}
/* Editor: Bild-Menü */
.editor { position: relative; }
.editor-area img { cursor: pointer; }
.editor-area img.img-selected { outline: 3px solid var(--blue); outline-offset: 2px; }
.img-bar { position: absolute; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; max-width: min(100%, 720px); padding: 6px 8px; background: #fff; border: 1px solid #c9d3d9; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.15); font: 14px var(--body); }
.img-bar[hidden] { display: none; }
.img-bar button { font: 14px var(--body); padding: 5px 9px; border: 1px solid #c9d3d9; background: #fff; border-radius: 5px; cursor: pointer; }
.img-bar button:hover { background: #eaf3f8; border-color: var(--blue); }
.img-bar button.on { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.img-bar .img-bar-del { color: var(--bad); border-color: #e3b5ae; margin-left: 6px; }
.img-bar-label { color: var(--muted); font-size: 12px; margin: 0 2px 0 8px; }
.img-bar-label:first-child { margin-left: 0; }

/* Aufklappbare Abschnitte (FAQ) */
.prose details { border-bottom: 1px solid var(--line); padding: 2px 0; }
.prose details:first-of-type { border-top: 1px solid var(--line); }
.prose summary { cursor: pointer; list-style: none; font: 600 19px/1.4 var(--body); color: var(--blue-dark); padding: 12px 0 12px 1.4em; position: relative; }
.prose summary::-webkit-details-marker { display: none; }
.prose summary::before { content: "▸"; position: absolute; left: 0; transition: transform .15s; }
.prose details[open] > summary::before { transform: rotate(90deg); }
.prose details > :not(summary) { margin-left: 1.4em; }
.editor-area details { border-left: 3px solid #c9d3d9; padding-left: 8px; }
.editor-area summary { cursor: text; }

/* Editor so breit wie der Artikel auf der Website (.post-box: 940px) */
.form.editor-form { max-width: 940px; }
.form.editor-form .editor { width: 100%; }

/* Schrift-Einstellungen mit Vorschau */
.font-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 18px; }
.font-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.panel .font-grid input[type=color] { height: 38px; padding: 2px; width: 80px; }
.font-preview { background: #fff; border: 1px solid var(--line); padding: 20px 28px; margin: 12px 0; }

/* Vorschau aus dem Editor */
.preview-bar { position: sticky; top: 0; z-index: 50; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 8px 16px; background: #ffd83d; color: #3a2f00; font: 15px/1.4 var(--body); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.preview-switch { display: inline-flex; border: 1px solid #a68b00; border-radius: 6px; overflow: hidden; }
.preview-switch a { padding: 3px 12px; color: #3a2f00; text-decoration: none; background: #fff3b0; }
.preview-switch a.on { background: #3a2f00; color: #fff; }
.preview-hint { font-size: 13px; }
body.preview-phone { background: #5d6b74; min-height: 100vh; }
.phone-frame { width: 390px; max-width: 100%; height: calc(100vh - 90px); margin: 20px auto; border: 10px solid #1e2a32; border-radius: 28px; overflow: hidden; background: #fff; }
.phone-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Kategorien-Verwaltung */
.icon-btn { font: 13px var(--body); padding: 3px 8px; border: 1px solid #c9d3d9; background: #fff; border-radius: 5px; cursor: pointer; }
.icon-btn:disabled { opacity: .35; cursor: default; }
.cat-rename, .cat-merge { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cat-rename input { flex: 1; min-width: 180px; padding: 5px 8px; }
.cat-merge select { max-width: 200px; padding: 5px 6px; }
.cat-cleanup-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 6px 0; }
.cat-cleanup-row span { flex: 1; min-width: 240px; }
.filters .sep { width: 1px; align-self: stretch; background: #c9d3d9; margin: 0 6px; }
.admin-footer { margin-top: 48px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.changelog h2 { font-size: 22px; margin: 18px 0 6px; color: var(--blue-deep); }
.changelog h2:first-child { margin-top: 0; }
.changelog ul { margin: 0 0 8px; padding-left: 1.3em; }

/* Podcast – Liste wie auf der alten Seite: runder Knopf, Titel, Dauer, feine Linien */
.pod-list { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid #b9d3e1; }
.pod-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 18px; padding: 14px 4px; border-bottom: 1px solid #b9d3e1; }
.pod-item.is-active { background: #f2f8fb; }
.pod-play { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #9fb3bf; background: #fff; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; padding: 0; }
.pod-play:hover { border-color: var(--blue-dark); color: var(--blue-dark); }
.pod-play .i-pause, .pod-item.is-playing .pod-play .i-play { display: none; }
.pod-item.is-playing .pod-play .i-pause { display: block; }
.pod-item.is-playing .pod-play { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.pod-js .pod-play { display: inline-flex; }
.pod-js .pod-audio { display: none; }
.pod-main { min-width: 0; }
.pod-title { font: 18px/1.35 var(--body); }
.pod-desc { margin: 2px 0 0; font-size: 15px; color: var(--muted); }
.pod-dur { color: var(--muted); font-variant-numeric: tabular-nums; }
.pod-audio { width: 100%; margin-top: 8px; }
.pod-progress { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.pod-progress[hidden] { display: none; }
.pod-time { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pod-seek { flex: 1; min-width: 0; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 3px; cursor: pointer;
  background: linear-gradient(to right, var(--blue-dark) var(--pct, 0%), #d3dee5 var(--pct, 0%)); }
.pod-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--blue-dark); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--blue-dark); }
.pod-seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--blue-dark); border: 2px solid #fff; }
@media (max-width: 600px) {
  .pod-item { gap: 4px 12px; }
  .pod-title { font-size: 16px; }
  .pod-progress { flex-wrap: wrap; }
}

/* Verwaltung → Podcast */
.upload-progress { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 14px; }
.upload-progress[hidden] { display: none; }
.upload-progress progress { width: 260px; }
.pod-admin { list-style: none; padding: 0; margin: 16px 0; max-width: 900px; }
.pod-admin > li { display: flex; gap: 16px; margin-bottom: 12px; }
.pod-admin > li.is-hidden { opacity: .65; }
.pod-order { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pod-admin-main { flex: 1; min-width: 0; }
.pod-edit { display: flex; flex-direction: column; gap: 8px; }
.pod-edit label { display: flex; flex-direction: column; gap: 3px; font-weight: 600; font-size: 15px; }
.pod-edit-row { display: flex; gap: 12px; flex-wrap: wrap; }
.pod-edit-row label:first-child { flex: 1; min-width: 220px; }
.pod-dur-field input { width: 110px; }
.pod-edit audio { width: 100%; max-width: 520px; }
.pod-admin-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pod-list .pod-item input.pod-seek[type=range] { border: 0; padding: 0; margin: 0; width: auto; box-shadow: none; border-radius: 3px; height: 6px;
  background: linear-gradient(to right, var(--blue-dark) var(--pct, 0%), #d3dee5 var(--pct, 0%)); }

/* Hausregeln */
.rules-table td input { padding: 6px 8px; }
.rules-table td .meta { font-size: 12px; margin-top: 3px; }
.rules-table tr.rule-removed { opacity: .4; }
.rules-table tr.rule-removed td { text-decoration: line-through; }

/* Textprüfung: Prüf-Fenster neben dem Text */
.toolbar .tb-check { margin-left: auto; background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; font-weight: 600; }
.toolbar .tb-check:disabled { opacity: .6; }
.form.editor-form.has-check { max-width: 1340px; }
.check-layout { display: grid; grid-template-columns: minmax(0, 940px) minmax(300px, 380px); gap: 18px; align-items: start; }
.check-panel { position: sticky; top: 12px; max-height: calc(100vh - 24px); display: flex; flex-direction: column; background: #fff; border: 1px solid #b9c5cc; border-radius: 8px; font: 15px/1.45 var(--body); }
.check-panel[hidden] { display: none; }
.form.editor-form:not(.has-check) .check-layout { display: block; }
.cp-head { padding: 12px 14px 8px; border-bottom: 1px solid var(--line); position: relative; }
.cp-head h2 { margin: 0; font: 600 17px var(--body); color: var(--ink); }
.cp-count { font-weight: 400; font-size: 13px; color: var(--muted); margin-left: 6px; }
.cp-close { position: absolute; top: 8px; right: 8px; border: 0; background: none; font-size: 16px; cursor: pointer; color: var(--muted); padding: 4px 8px; }
.cp-meta { font-size: 13px; color: var(--muted); margin-top: 3px; }
.cp-err { color: var(--bad); }
.cp-spin { display: inline-block; width: 12px; height: 12px; border: 2px solid #c9d3d9; border-top-color: var(--blue-dark); border-radius: 50%; animation: cpspin .8s linear infinite; vertical-align: -1px; margin-right: 4px; }
@keyframes cpspin { to { transform: rotate(360deg); } }
.cp-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.cp-chip { font: 12px var(--body); padding: 3px 9px; border-radius: 20px; border: 1px solid var(--line); background: #fff; cursor: pointer; display: inline-flex; gap: 5px; align-items: center; }
.cp-chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.cp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--k); }
.cp-typo { margin: 10px 12px 0; padding: 9px 11px; background: #f2f8fb; border: 1px solid #cfe3ee; border-radius: 6px; font-size: 13px; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.cp-typo[hidden] { display: none; }
.cp-typo button { font: 12px var(--body); padding: 4px 9px; border-radius: 5px; border: 1px solid var(--blue-dark); background: #fff; color: var(--blue-dark); cursor: pointer; white-space: nowrap; }
.cp-list { overflow: auto; padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; min-height: 40px; }
.cp-empty { color: var(--ok); margin: 6px 2px; }
.cp-card { border: 1px solid var(--line); border-left: 4px solid var(--k); padding: 8px 10px; cursor: pointer; font-size: 14px; background: #fff; border-radius: 0; }
.cp-card.active { background: #fffdf0; border-color: #e8c547; border-left-color: var(--k); }
.cp-card.done { opacity: .55; }
.cp-card.stale { border-style: dashed; }
.cp-kind { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--k); font-weight: 700; }
.cp-chg { margin: 4px 0; font-size: 15px; overflow-wrap: anywhere; }
.cp-chg del { color: #9a3b30; background: #fbe9e6; padding: 0 3px; }
.cp-chg ins { color: #1c6b3b; background: #e2f4e8; text-decoration: none; padding: 0 3px; }
.cp-why { color: var(--muted); font-size: 13px; }
.cp-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.cp-btns button { font: 12px var(--body); padding: 4px 10px; border-radius: 5px; border: 1px solid #c9d3d9; background: #fff; cursor: pointer; }
.cp-btns .cp-apply { background: var(--blue-dark); color: #fff; border-color: var(--blue-dark); }
.cp-btns .cp-del { color: var(--bad); border-color: #e3b5ae; }
.cp-ok { color: var(--ok); font-size: 13px; }
.cp-foot { padding: 8px 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.k-content { --k: #b03a7a; } .k-spelling { --k: #c0392b; } .k-grammar { --k: #7b4fc4; } .k-punctuation { --k: #1d7fa8; } .k-house { --k: #c27a00; } .k-quote { --k: #5d6b74; }
::highlight(chk-content) { background-color: rgba(176, 58, 122, .13); text-decoration: underline wavy #b03a7a; }
::highlight(chk-spelling) { background-color: rgba(192, 57, 43, .12); text-decoration: underline wavy #c0392b; }
::highlight(chk-grammar) { background-color: rgba(123, 79, 196, .12); text-decoration: underline wavy #7b4fc4; }
::highlight(chk-punctuation) { background-color: rgba(29, 127, 168, .14); text-decoration: underline wavy #1d7fa8; }
::highlight(chk-house) { background-color: rgba(194, 122, 0, .14); text-decoration: underline wavy #c27a00; }
::highlight(chk-quote) { background-color: rgba(93, 107, 116, .10); text-decoration: underline dotted #5d6b74; }
::highlight(chk-active) { background-color: #ffe98a; }
@media (max-width: 1250px) {
  .check-layout { grid-template-columns: minmax(0, 1fr); }
  .check-panel { position: static; max-height: 70vh; }
}
.cost-note { background: var(--warn-bg); border: 1px solid #ecd9a6; border-radius: 6px; padding: 10px 14px; font-size: 14px; margin-top: 10px; }
.cost-note ul { margin: 4px 0 6px; padding-left: 1.2em; }
.cost-note .meta { font-size: 13px; }

/* ---------- Kontaktkarte */
.lead-text { color: var(--muted); max-width: 760px; margin: -8px 0 18px; }
.lbl { display: block; font-weight: 600; margin-top: 10px; }
.map-help { background: #eef7fb; border: 1px solid #cfe4ef; border-radius: 8px; padding: 12px 18px; margin: 0 0 18px; }
.map-help summary { cursor: pointer; font-weight: 600; color: var(--blue-deep); }
.map-help summary::after { content: ' – zum Zuklappen anklicken'; font-weight: normal; font-size: 13px; color: var(--muted); }
.map-help:not([open]) summary::after { content: ' – zum Aufklappen anklicken'; }
.map-help-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.map-help h3 { font-size: 17px; margin: 14px 0 4px; }
.map-help ul { margin: 6px 0 4px; padding-left: 20px; font-size: 15px; }
.map-help li { margin-bottom: 6px; }
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.map-box { height: 620px; border-radius: 8px; border: 1px solid var(--line); background: #e8eef1; z-index: 0; }
.map-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.map-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 2px #fff, 0 0 0 3px #1a7f71; vertical-align: -1px; margin-right: 2px; }
.map-dot.me { background: #f39c12; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #b56f00; }
.map-pin { width: 22px; height: 22px; border-radius: 50%; background: var(--teal); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.45); }
.map-pin.me { background: #f39c12; }
.map-side .panel { padding: 16px 18px; margin: 0 0 14px; }
.map-side .hint { margin: 4px 0 10px; }
.map-state { color: #8a5a00; }
.map-near label { font-weight: 600; display: block; margin-bottom: 4px; }
.map-near-row { display: flex; gap: 8px; }
.map-near-row input { flex: 1; min-width: 0; }
.map-near-row select { width: 96px; }
.map-near-help { font-size: 13px; color: var(--muted); margin: 10px 0 0; line-height: 1.45; }
.map-near-list { margin-top: 12px; max-height: 340px; overflow: auto; }
.map-near-item { display: block; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 9px 0; font: inherit; color: var(--ink); cursor: pointer; }
.map-near-item:hover strong, .map-near-item:focus strong { color: var(--blue-dark); }
.map-near-item small { display: block; color: var(--muted); font-size: 13px; }
.leaflet-container { font: 14px/1.45 var(--body); }
.leaflet-popup-content { margin: 14px 16px; min-width: 240px; }
.pp-name { font-weight: 700; font-size: 17px; color: var(--ink); }
.pp-where { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.pp-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 8px; }
.pp-chip { font-size: 12px; background: #e3f5f2; color: #14705f; border-radius: 20px; padding: 2px 9px; }
.pp-text { margin: 0 0 10px !important; white-space: pre-line; }
.pp-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pp-actions .btn { color: #fff; }
.pp-foot { margin-top: 8px; font-size: 12px; color: var(--muted); }
.pp-report { font-size: 12px; color: var(--muted); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--blue-dark); text-decoration: underline; cursor: pointer; }
.marker-cluster { background: rgba(19,134,190,.28); border-radius: 50%; background-clip: padding-box; }
.marker-cluster div { width: 30px; height: 30px; margin: 5px 0 0 5px; border-radius: 50%; background: var(--blue-dark); color: #fff; font: 700 13px/30px var(--body); text-align: center; }
.leaflet-popup-content-wrapper, .leaflet-popup-content { font-family: var(--body); }
.map-dialog { border: 0; border-radius: 10px; padding: 22px 24px; max-width: 520px; width: calc(100% - 32px); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.map-dialog::backdrop { background: rgba(20,30,40,.45); }
.map-dialog h2 { margin-top: 0; font-size: 24px; }
.map-dialog textarea { width: 100%; }
.map-dialog label:not(.check) { display: block; font-weight: 600; margin: 8px 0 4px; }
.map-locked { position: relative; min-height: 460px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.map-locked-bg { position: absolute; inset: 0; background: radial-gradient(circle at 30% 40%, #cfe3d8 0 12%, transparent 13%), radial-gradient(circle at 62% 58%, #d7e6ef 0 18%, transparent 19%), linear-gradient(135deg, #e7efe6, #dde9f1); filter: blur(4px); }
.map-locked-box { position: relative; max-width: 460px; margin: 70px auto; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,.15); }
.map-status { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 8px; background: var(--warn-bg); margin: 0 0 16px; font-size: 15px; }
.map-status.ok { background: #e5f5ec; }
.map-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.map-form { padding: 18px 22px; }
.map-form input:not([type=checkbox]):not([type=radio]), .map-form select, .map-form textarea { width: 100%; }
.map-form .hint { margin-top: 2px; }
.map-where-row { display: grid; grid-template-columns: 150px 100px 1fr; gap: 8px; margin: 4px 0 6px; }
.map-abroad { grid-column: 2 / -1; align-self: center; font-size: 15px; }
.map-pick { margin: 6px 0 10px; }
#pick-map { height: 260px; border: 1px solid var(--line); border-radius: var(--radius); background: #e8eef2; cursor: crosshair; }
#pick-hint.error { color: #a33; }
.map-kinds { display: flex; flex-wrap: wrap; gap: 0 18px; }
.map-kinds .check { margin: 4px 0; }
.map-radio-card { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 6px 0; cursor: pointer; font-weight: normal !important; }
.map-radio-card:has(input:checked) { border-color: var(--blue-dark); background: #f0f8fc; }
.map-radio-card input { margin-top: 4px; }
.map-radio-card small { display: block; color: var(--muted); font-size: 13px; }
.map-preview { background: #fff; border-radius: 10px; box-shadow: 0 3px 14px rgba(0,0,0,.2); padding: 14px 16px; font-size: 14px; margin: 6px 0 14px; }
.map-data-box { background: #fafbfc; border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; font-size: 14px; }
.map-data-box ul { margin: 6px 0 8px; padding-left: 20px; }
.map-delete { margin-top: 18px; }
.msg-earlier { border-left: 3px solid var(--line); padding: 4px 0 4px 14px; margin: 0 0 14px; color: var(--muted); }
.msg-earlier.mine { border-left-color: var(--blue); }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.row-actions form { display: flex !important; gap: 6px; align-items: center; flex-wrap: wrap; margin: 0; }
.row-actions .inline-input { width: 260px !important; max-width: 100%; flex: 0 1 260px; padding: 5px 8px !important; font-size: 14px; margin: 0 !important; }
.quote-box { background: #f6f8f9; border-left: 3px solid var(--blue); padding: 8px 12px; margin: 8px 0; white-space: pre-line; }
.map-admin-item { margin: 0 0 12px; }
.map-admin-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.tag { font-size: 12px; padding: 1px 8px; border-radius: 99px; background: #eef2f4; }
.tag-pending { background: #f1c86b; }
.tag-approved { background: #d6f0e0; color: var(--ok); }
.tag-rejected, .tag-hidden { background: #fde2df; color: var(--bad); }
@media (max-width: 900px) {
  .map-layout, .map-form-grid, .map-help-cols { grid-template-columns: 1fr; gap: 0 18px; }
  .map-box { height: 480px; }
  .map-where-row { grid-template-columns: 1fr 1fr; }
  .map-where-row select#place { grid-column: 1 / -1; }
}

/* Verwaltung: Statistik */
.stats-range { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.stats-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.stats-tiles .panel { margin-bottom: 20px; }
.stats-num { font-family: var(--head); font-size: 40px; font-weight: 700; color: var(--ink); line-height: 1.1; margin: 4px 0; }
.stats-chart { width: 100%; height: auto; display: block; }
.stats-chart .grid { stroke: var(--line); stroke-width: 1; }
.stats-chart .axis { font-size: 12px; fill: var(--muted); font-family: var(--body); }
.stats-chart .fill { fill: var(--blue-dark); }
.stats-chart .hit { fill: transparent; }
.stats-chart .bar:hover .hit { fill: #eef4f8; }
.stats-chart .bar:hover .fill { fill: var(--blue-deep); }
.stats-cols { display: grid; grid-template-columns: 3fr 2fr; gap: 20px; align-items: start; }
@media (max-width: 800px) { .stats-cols { grid-template-columns: 1fr; } }
.stats-list td { position: relative; }
.stats-list td a { position: relative; z-index: 1; }
.stats-share { display: block; height: 4px; border-radius: 2px; background: var(--blue); margin-top: 4px; max-width: 100%; }
.table .num, .table th.num { text-align: right; white-space: nowrap; }
.activity-filters { gap: 14px; align-items: flex-end; }
.activity-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
.activity-filters select { width: auto; }
.contact-card .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.contact-card.is-done { opacity: .75; }

/* Verwaltung: Symbole im Menü */
.admin-nav .nav-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.admin-nav a.active .nav-icon, .admin-nav a.primary .nav-icon { opacity: 1; }
