:root {
  --ground: #F1F3EE;
  --ground-2: #E9ECE6;
  --card: #FFFFFF;
  --text: #1E2B26;
  --text-soft: #3B4A43;
  --muted: #4A5B53;
  --line: #D3DACF;
  --line-soft: #E3E8DF;
  --accent: #2F5A4A;
  --accent-dark: #1E3D31;
  --accent-soft: #E3EBE4;
  --danger: #9B2C2C;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
}
img { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--text); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Kopfzeile ---------- */
.site-header { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-top: 24px; padding-bottom: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 24px; color: var(--text); text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.85); }
.brand.light { color: #fff; }
.brand.light:hover { color: #fff; }
.nav { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; font-size: 16px; }
.nav a.plain { color: #fff; text-decoration: none; }
.nav.dark a.plain { color: var(--text); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px; border-radius: 999px; border: 2px solid var(--accent); background: var(--accent); color: #fff; font: inherit; font-size: 16px; font-weight: 500; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn.light { background: #fff; border-color: #fff; color: var(--text); }
.btn.light:hover { background: var(--ground); color: var(--text); }
.btn.ghost { background: #fff; border: 1px solid #C9D2C5; color: var(--text); font-size: 15px; padding: 8px 16px; }
.btn.ghost:hover { background: var(--ground); }
.btn.danger { background: #fff; border: 1px solid #E2B4B4; color: var(--danger); font-size: 15px; padding: 8px 16px; }
.btn.small { font-size: 15px; padding: 8px 16px; }

/* ---------- Fotoflächen ---------- */
.photo { position: relative; background-size: cover; background-position: center; }
.photo::before { content: ""; position: absolute; inset: 0; background: rgba(14, 22, 19, .38); }
.photo > * { position: relative; }
.bg-kueste { background-image: url(../img/kueste.jpg); background-position: center 60%; }
.bg-weg { background-image: url(../img/waldweg.jpg); background-position: center 40%; }
.bg-weg::before { background: rgba(14, 22, 19, .25); }
.bg-promenade { background-image: url(../img/promenade.jpg); background-position: center 35%; }
.bg-promenade::before { background: rgba(14, 22, 19, .40); }
.bg-strand { background-image: url(../img/strand.jpg); background-attachment: scroll; }
.bg-strand::before { display: none; }

/* ---------- Startseite ---------- */
.hero { min-height: 92vh; display: flex; flex-direction: column; color: #fff; }
.hero-body { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 24px; padding-bottom: 96px; }
.hero-text { flex: 999 1 420px; min-width: 0; }
.hero-text h1 { font-size: clamp(40px, 6vw, 62px); margin: 0 0 24px; }
.hero-text p { font-size: 20px; max-width: 600px; margin: 0 0 18px; }
.hero-text p.hero-cta { margin: 28px 0 0; }
.member-hero-body .text p { margin: 0 0 12px; }
.book-card .text p:not(.eyebrow) { color: var(--text-soft); margin: 0 0 16px; }
.portrait { flex: 1 1 260px; max-width: 340px; margin: 0 auto; }
.portrait img { display: block; width: 100%; height: auto; border-radius: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }

.book-section { padding: 110px 0; }
.book-card { max-width: 820px; margin: 0 auto; background: rgba(255,255,255,.96); border-radius: 28px; padding: 48px 40px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; color: var(--text); }
.book-card img { width: 200px; height: auto; border-radius: 6px; box-shadow: 0 14px 34px rgba(0,0,0,.22); margin: 0 auto; }
.book-card .text { flex: 999 1 320px; min-width: 0; }
.eyebrow { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin: 0 0 10px; }
.book-card h2 { font-size: 38px; margin: 0 0 14px; }
.book-card p { color: var(--text-soft); margin: 0 0 24px; }

.site-footer { padding: 32px 0 48px; font-size: 15px; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.footer-links { display: flex; gap: 24px; }

/* ---------- Audio-Seite ---------- */
.listen { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 28px 16px 40px; }
.listen .brand { font-size: 20px; margin-bottom: 64px; }
.listen .brand img { width: 40px; height: 40px; border-color: #fff; }
.player { width: 100%; max-width: 480px; background: rgba(255,255,255,.93); border-radius: 32px; padding: 40px 28px; text-align: center; }
.player .art { display: block; width: 100%; height: auto; border-radius: 20px; margin: 0 0 28px; }
.player h1 { font-size: 30px; margin: 0 0 28px; }
.player audio { width: 100%; }
.listen .hint { max-width: 420px; text-align: center; font-size: 14px; background: rgba(255,255,255,.85); border-radius: 12px; padding: 10px 16px; margin: 28px 0 0; }

/* ---------- Mitglieder ---------- */
.member-hero { color: #fff; }
.member-hero-body { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 24px; padding-bottom: 96px; }
.member-hero-body .text { flex: 999 1 420px; min-width: 0; }
.member-hero-body h1 { font-size: clamp(36px, 5vw, 48px); margin: 0 0 12px; }
.member-hero-body p { font-size: 20px; max-width: 560px; margin: 0; }
.member-hero-body figure { flex: 1 1 220px; max-width: 260px; margin: 0 auto; }
.member-hero-body figure img { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.member-grid { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; margin-top: -40px; position: relative; }
.card { background: var(--card); border-radius: 28px; padding: 32px 28px; }
.member-grid .tracks-card { flex: 999 1 520px; min-width: 0; }
.member-grid .contact-card { flex: 1 1 340px; min-width: 0; }
.member-grid .login-card, .member-grid .register-card { flex: 1 1 340px; min-width: 0; }
.member-grid .account-card { flex: 1 1 100%; min-width: 0; }
.flash-area { flex: 1 1 100%; }
.flash-area:empty { display: none; }
.flash-area .flash { margin: 0; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
label.check { display: flex; gap: 10px; align-items: center; font-weight: 400; margin-top: 12px; }
label.check input { width: 22px; height: 22px; accent-color: var(--accent); }
.account-card details form { margin-top: 8px; max-width: 420px; }
.card h2 { font-size: 28px; margin: 0 0 8px; }
.card .lead { margin: 0; font-size: 16px; color: var(--muted); }
.card-head { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin-bottom: 20px; }
.card-head img { width: 110px; height: auto; border-radius: 6px; box-shadow: 0 10px 28px rgba(0,0,0,.18); }
.card-head > div { flex: 1 1 220px; min-width: 0; }
.track-list { list-style: none; margin: 0; padding: 0; }
.track-list a { display: flex; gap: 16px; align-items: center; padding: 14px 4px; border-top: 1px solid var(--line-soft); text-decoration: none; color: var(--text); }
.track-list a:hover { background: var(--ground); }
.play-dot { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.track-list small { display: block; font-size: 13px; color: var(--muted); }

form.stack { display: flex; flex-direction: column; gap: 6px; }
form.stack label { font-size: 15px; font-weight: 500; margin-top: 10px; }
input[type=text], input[type=email], input[type=password], input[type=number], textarea, select {
  font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #C9D2C5; border-radius: 12px; background: #FAFBF8; color: var(--text); width: 100%;
}
.pw-wrap { position: relative; display: block; width: 100%; }
.pw-wrap input { padding-right: 52px; }
.pw-toggle { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--muted); cursor: pointer; border-radius: 10px; }
.pw-toggle:hover { color: var(--text); background: var(--ground); }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
textarea { resize: vertical; }
form.stack .btn { margin-top: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.flash { border-radius: 14px; padding: 12px 16px; margin: 0 0 20px; font-size: 16px; }
.flash-ok { background: var(--accent-soft); color: var(--accent-dark); }
.flash-err { background: #F6E3E3; color: #7A2121; }

.login-box { max-width: 440px; margin: 0 auto; }

/* ---------- Verwaltung ---------- */
body.admin { background: var(--ground-2); font-size: 16px; line-height: 1.5; }
.admin-bar { background: var(--text); color: var(--ground); }
.admin-bar .wrap { max-width: 1200px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-top: 16px; padding-bottom: 16px; }
.admin-bar .title { display: flex; gap: 12px; align-items: center; font-family: var(--serif); font-size: 20px; }
.admin-bar .title img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.admin-bar a { color: var(--ground); }
.admin-main { max-width: 1200px; margin: 0 auto; padding: 32px 24px 64px; }
.admin-main h1 { font-size: 32px; margin: 0 0 4px; }
.admin-main h2 { font-size: 24px; margin: 0 0 12px; }
.section-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; }
.section-head p { margin: 0; color: var(--muted); }
.panel { background: #fff; border-radius: 20px; padding: 24px; margin-bottom: 28px; }
.table-scroll { overflow-x: auto; background: #fff; border-radius: 20px; margin-bottom: 28px; }
.tracks-table { width: 100%; min-width: 860px; border-collapse: collapse; }
.tracks-table th { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
.tracks-table td { padding: 16px; border-bottom: 1px solid #EEF1EB; vertical-align: top; }
.tracks-table .nr { font-family: var(--serif); font-size: 22px; white-space: nowrap; }
.qr-box { width: 96px; height: 96px; border: 1px solid #C9D2C5; border-radius: 8px; padding: 4px; background: #fff; }
.qr-box canvas { width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.link-text { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.inline-form input[type=text] { max-width: 260px; padding: 8px 12px; }
.file-label { font-size: 14px; }
details summary { cursor: pointer; color: var(--accent); font-size: 15px; margin-top: 6px; }
.status { font-size: 14px; }
.status.ok { color: var(--accent); }
.status.missing { color: var(--danger); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 16px; align-items: end; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 500; }
.note { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.msg { border-top: 1px solid var(--line-soft); padding: 14px 0; }
.msg:first-of-type { border-top: 0; }
.msg-meta { font-size: 14px; color: var(--muted); }
.msg-body { white-space: pre-wrap; margin: 6px 0 0; }

/* ---------- Textseiten ---------- */
.text-page { max-width: 760px; margin: 0 auto; padding: 24px 24px 64px; }
.text-page h1 { font-size: 40px; }
.placeholder { background: #FFF6DB; padding: 0 4px; border-radius: 4px; }

@media (max-width: 600px) {
  body { font-size: 17px; }
  .book-card, .card { padding: 28px 20px; }
  .player { padding: 28px 18px; }
  .listen .brand { margin-bottom: 36px; }
}

/* ---------- Mitgliederverwaltung ---------- */
.badge { display: inline-block; font-family: var(--sans); font-size: 14px; font-weight: 600; background: var(--accent); color: #fff; border-radius: 999px; padding: 2px 10px; vertical-align: middle; }
.member-group { font-family: var(--sans); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 24px 0 4px; }
.member-row { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.member-row > div:first-child { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
.pw-show { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 20px; letter-spacing: .05em; background: var(--accent-soft); padding: 2px 8px; border-radius: 6px; user-select: all; }

/* ---------- Bereiche ---------- */
.tiles-section { flex: 1 1 100%; min-width: 0; }
.tiles-title { font-size: 28px; margin: 0 0 16px; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.tile { display: flex; flex-direction: column; background: var(--card); border-radius: 22px; overflow: hidden; text-decoration: none; color: var(--text); box-shadow: 0 6px 22px rgba(0,0,0,.06); transition: transform .15s ease, box-shadow .15s ease; }
.tile:hover { color: var(--text); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.tile-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ground-2); }
.tile-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-badge { position: absolute; left: 12px; top: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.tile-text { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; }
.tile-text strong { font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.25; }
.tile-text small { font-size: 15px; color: var(--muted); }
.tile-text .tile-meta { color: var(--accent); margin-top: 6px; }
.badge-light { background: rgba(255,255,255,.92); color: var(--text); }

.section-hero { background-size: cover; background-position: center; }
.section-hero::before { background: rgba(14, 22, 19, .45); }
.section-hero .cover-figure { flex: 1 1 260px; max-width: 320px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
.section-hero .cover-figure img { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.pdf-btn { justify-content: center; }
.section-body { display: flex; flex-direction: column; gap: 28px; margin-top: -40px; position: relative; }
.section-body > .flash { margin: 0; }
.section-body .card h2, .gallery-section h2 { font-size: 28px; margin: 0 0 14px; }
.prose p { margin: 0 0 14px; font-size: 18px; color: var(--text-soft); }
.prose p:last-child { margin-bottom: 0; }

.gallery-section { background: var(--card); border-radius: 28px; padding: 28px; }
.gallery { columns: 3 260px; column-gap: 14px; }
.g-item { break-inside: avoid; margin: 0 0 14px; background: var(--ground); border-radius: 14px; overflow: hidden; }
.g-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.g-item img, .g-item video { display: block; width: 100%; height: auto; }
.g-item video { background: #000; }
.g-item figcaption { padding: 10px 12px 12px; font-size: 15px; display: flex; flex-direction: column; gap: 2px; }
.g-item figcaption span { color: var(--muted); }

.media-columns { display: flex; flex-wrap: wrap; gap: 28px; }
.media-columns > .card { flex: 1 1 340px; min-width: 0; }
.audio-item { padding: 14px 0; border-top: 1px solid var(--line-soft); }
.audio-item:first-of-type { border-top: 0; padding-top: 0; }
.audio-item audio { width: 100%; margin-top: 8px; }
.audio-item .lead { margin: 2px 0 0; }
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list a { display: flex; gap: 14px; align-items: center; padding: 12px 4px; border-top: 1px solid var(--line-soft); text-decoration: none; color: var(--text); }
.doc-list li:first-child a { border-top: 0; }
.doc-list small { display: block; font-size: 14px; color: var(--muted); }
.doc-icon { flex: none; width: 46px; height: 56px; border-radius: 6px; background: #F6E3E3; color: #8A2626; font-size: 12px; font-weight: 700; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; }

.pinnwand .posts { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.post { background: var(--ground); border-radius: 16px; padding: 12px 16px; }
.post-admin { background: var(--accent-soft); }
.post-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: 15px; }
.post-head time { color: var(--muted); font-size: 14px; }
.post-head form { margin-left: auto; }
.post-text p { margin: 6px 0 0; overflow-wrap: anywhere; }
.link-btn { border: 0; background: none; color: var(--danger); font: inherit; font-size: 14px; cursor: pointer; padding: 6px 0; min-height: 32px; }
.empty { color: var(--muted); }
.post-form { margin-top: 18px; }

.lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(10,14,12,.94); color: #fff; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; flex-direction: column; }
.lightbox::backdrop { background: rgba(10,14,12,.94); }
.lightbox img { max-width: 92vw; max-height: 80vh; object-fit: contain; border-radius: 6px; }
.lb-caption { margin: 14px 16px 0; text-align: center; font-size: 16px; max-width: 700px; }
.lb-close, .lb-prev, .lb-next { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* Verwaltung Bereiche */
.area-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.area-link { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line-soft); border-radius: 14px; text-decoration: none; color: var(--text); }
.area-link:hover { background: var(--ground); color: var(--text); }
.area-link img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; }
.area-link small { display: block; color: var(--muted); font-size: 13px; }
.block-label { display: block; font-size: 15px; font-weight: 500; margin: 16px 0 6px; }
.panel textarea { width: 100%; }
.panel > form > .btn { margin-top: 12px; }
.cover-admin { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.cover-admin > img { width: 180px; height: auto; border-radius: 12px; box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.stack-gap { flex: 1 1 300px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.stack-gap hr { width: 100%; border: 0; border-top: 1px solid var(--line-soft); margin: 6px 0; }
.stack-gap p { margin: 0; }
.admin-media { display: flex; flex-direction: column; }
.am-item { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.am-thumb { position: relative; width: 96px; height: 96px; flex: none; border-radius: 10px; overflow: hidden; background: var(--ground); display: flex; align-items: center; justify-content: center; }
.am-thumb img { width: 100%; height: 100%; object-fit: cover; }
.am-type { font-weight: 700; font-size: 13px; color: var(--muted); }
.am-cover { position: absolute; left: 4px; bottom: 4px; font-size: 11px; padding: 1px 6px; }
.am-form { flex: 1 1 260px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.am-form input, .am-form textarea { padding: 8px 10px; font-size: 15px; }
.am-form .btn { align-self: flex-start; }
.admin-bar .nav { gap: 16px; }

/* ---------- Reisen / Treffen ---------- */
.entries-section h2 { font-size: 28px; margin: 0 0 16px; }
.entries { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.entry-card { display: flex; flex-direction: column; background: var(--card); border-radius: 24px; overflow: hidden; text-decoration: none; color: var(--text); box-shadow: 0 6px 22px rgba(0,0,0,.07); transition: transform .15s ease, box-shadow .15s ease; }
.entry-card:hover { color: var(--text); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,.13); }
.entry-cover { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ground-2); }
.entry-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.entry-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px 4px 0; }
.entry-thumbs img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; border-radius: 6px; }
.entry-text { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px 20px; }
.entry-text strong { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.2; }
.entry-date { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.entry-kurz { color: var(--text-soft); font-size: 16px; }
.eyebrow-light { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; margin: 0 0 10px !important; opacity: .9; }
.entry-count { font-size: 15px !important; opacity: .85; }
.entry-hero .member-hero-body { min-height: 300px; }
.entry-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.entry-admin-row { display: flex; gap: 14px; align-items: center; }
.entry-admin-row .am-thumb { width: 64px; height: 64px; }
.entry-admin-row .msg-meta { display: block; }
.new-entry { margin-top: 18px; border-top: 1px solid var(--line-soft); padding-top: 14px; }
.new-entry summary { font-size: 17px; font-weight: 600; color: var(--accent); }
.new-entry form { margin-top: 12px; }
.new-entry form > input[type=text], .new-entry form > input[type=file] { width: 100%; }
.new-entry form > .btn { margin-top: 14px; }
.stack-gap .form-grid { width: 100%; }

/* ---------- Neu, Herzen, Fortsetzen, Freigabe ---------- */
.badge-neu { background: #B4462E; color: #fff; position: absolute; right: 12px; top: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.badge-inline { position: static; font-size: 12px; padding: 1px 8px; box-shadow: none; }
.post-neu { box-shadow: inset 4px 0 0 #B4462E; }
.herz { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; flex: none; }
.herz svg { fill: none; stroke: currentColor; stroke-width: 2; }
.herz:hover { color: #B4462E; border-color: #E2B4B4; }
.herz.an { color: #B4462E; border-color: #E2B4B4; background: #FBEFEC; }
.herz.an svg { fill: currentColor; }
.herz-n:empty { display: none; }
.g-item figcaption { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 10px; }
.g-item .cap-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.g-item .von { font-size: 13px; color: var(--muted); }
.post-foot { margin-top: 6px; }
.resume { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin: 0 0 12px; }
.audio-item .resume { justify-content: flex-start; margin: 8px 0 0; }
.link-muted { color: var(--muted); }
.panel-hinweis { box-shadow: inset 4px 0 0 #B4462E; }
.pending-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.pending-item { border: 1px solid var(--line-soft); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.pending-thumb { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: var(--ground); border-radius: 10px; overflow: hidden; text-decoration: none; }
.pending-thumb img { width: 100%; height: 100%; object-fit: cover; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.radio-row label.check { margin-top: 0; }
.radio-row label.check input { width: 20px; height: 20px; }

/* ---------- Update 6: Teile, Bilder & Titel, Kapitel-Audio ---------- */
.teil-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.teil-block { margin: 0 0 36px; padding-top: 8px; scroll-margin-top: 16px; }
.teil-block > .section-head h2 { margin-bottom: 2px; }
.teil-block .panel { margin-top: 16px; }
.bild-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.bild-slot { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border: 1px solid var(--line-soft); border-radius: 14px; scroll-margin-top: 16px; }
.bild-slot > img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; flex: none; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.bild-slot .stack-gap { min-width: 0; }
.bild-slot input[type=file] { max-width: 100%; }
.kachel-edit { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line-soft); scroll-margin-top: 16px; }
.kachel-edit:first-of-type { border-top: 0; }
.kachel-cover img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; margin-bottom: 10px; }
.kachel-cover input[type=file] { max-width: 100%; }
.kachel-texte textarea { width: 100%; }
@media (max-width: 640px) { .kachel-edit { grid-template-columns: 1fr; } .kachel-cover img { max-width: 260px; } }
.kapitel-audio audio { width: 100%; margin-top: 8px; }
.audio-wahl { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.kapitel-track + .kapitel-track { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); }

/* ---------- Hintergrundbild wählen ---------- */
.hg-form .radio-row { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin: 8px 0 16px; }
.hg-form .radio-row .check { display: flex; align-items: flex-start; justify-content: flex-start; gap: 10px; text-align: left; margin: 0; }
.hg-form .radio-row .check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; }
.hg-auswahl { margin-bottom: 16px; }
.hg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; max-height: 360px; overflow-y: auto; padding: 4px; }
.hg-foto { position: relative; display: block; cursor: pointer; border-radius: 10px; overflow: hidden; }
.hg-foto input { position: absolute; opacity: 0; pointer-events: none; }
.hg-foto img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border: 3px solid transparent; border-radius: 10px; }
.hg-foto input:checked + img { border-color: var(--accent); box-shadow: 0 0 0 2px #fff inset; }
.hg-foto input:focus-visible + img { outline: 2px solid var(--accent); outline-offset: 2px; }
