:root {
  --bg: #f6f8fb;
  --surface: rgba(255,255,255,.88);
  --surface-solid: #fff;
  --text: #101828;
  --muted: #667085;
  --line: rgba(16,24,40,.12);
  --primary: #3157ff;
  --primary-2: #00b894;
  --dark: #10182f;
  --danger: #e11d48;
  --shadow: 0 18px 48px rgba(16,24,40,.10);
  --radius: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
.skip-link { position: absolute; left: -999px; top: 10px; background: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 1000; }
.skip-link:focus { left: 10px; }
.site-header { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 100; width: min(1160px, calc(100% - 28px)); display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem .8rem; border: 1px solid rgba(255,255,255,.34); background: rgba(255,255,255,.74); backdrop-filter: blur(18px); border-radius: 9px; box-shadow: 0 12px 34px rgba(16,24,40,.11); }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 850; letter-spacing: -.02em; padding: .35rem .65rem; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-2)); }
.main-nav { display: flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .94rem; }
.main-nav a { padding: .7rem .86rem; border-radius: 9px; color: rgba(16,24,40,.82); }
.main-nav a:hover { background: rgba(49,87,255,.08); color: var(--primary); }
.nav-donate { background: var(--dark) !important; color: white !important; }
.nav-toggle { display: none; border: 0; background: #fff; width: 44px; height: 44px; border-radius: 9px; font-size: 1.35rem; }
.donation-ribbon { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; gap: .1rem; padding: .9rem 1.05rem; border-radius: 8px; background: linear-gradient(135deg, #3157ff, #00b894); color: white; box-shadow: 0 18px 46px rgba(49,87,255,.30); }
.donation-ribbon span { font-size: .82rem; opacity: .9; }
main { padding-top: 96px; }
.has-hero main { padding-top: 0; }
.hero { --hero-opacity: 1; --hero-scale: 1; position: relative; min-height: 100svh; overflow: hidden; display: grid; place-items: center; color: white; background: #070b17; }
.hero-video, .hero-glow { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: var(--hero-opacity); transform: scale(var(--hero-scale)); transition: opacity .08s linear, transform .08s linear; }
.hero-video { filter: saturate(1.12) contrast(1.06) brightness(.75); }
.hero-glow { background: radial-gradient(circle at 22% 25%, rgba(49,87,255,.55), transparent 35%), linear-gradient(180deg, rgba(7,11,23,.22), rgba(7,11,23,.82)); }
.hero-content { position: relative; z-index: 2; width: min(1100px, calc(100% - 36px)); padding-top: 70px; }
.hero h1 { max-width: 900px; font-size: clamp(3rem, 7.8vw, 6.2rem); line-height: .95; letter-spacing: -.065em; margin: .08em 0 .2em; }
.hero p { max-width: 640px; font-size: clamp(1.02rem, 1.8vw, 1.25rem); color: rgba(255,255,255,.84); }
.eyebrow { margin: 0 0 .6rem; color: var(--primary); text-transform: uppercase; font-size: .78rem; font-weight: 850; letter-spacing: .15em; }
.hero .eyebrow { color: #86efac; }
.hero-actions, .admin-actions, .row-actions, .publish-row { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2; color: rgba(255,255,255,.82); display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.42); border-radius: 50%; background: rgba(255,255,255,.10); backdrop-filter: blur(10px); animation: scrollHintFloat 1.45s ease-in-out infinite; }
.scroll-hint .scroll-icon { width: 14px; height: 14px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-1px, -1px); }
@keyframes scrollHintFloat { 0%, 100% { translate: 0 0; opacity: .72; } 50% { translate: 0 7px; opacity: 1; } }
.section { width: min(1040px, calc(100% - 36px)); margin: 0 auto; padding: 68px 0; }
.section-wide { width: min(1240px, calc(100% - 36px)); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 24px; }
h1, h2, h3 { letter-spacing: -.035em; line-height: 1.12; }
h1 { font-size: clamp(1.85rem, 3.2vw, 3rem); margin: 0; }
h2 { font-size: clamp(1.42rem, 2.4vw, 2.15rem); margin: 0; }
h3 { font-size: 1.22rem; margin: 0 0 .5rem; }
.btn, button.btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; border: 0; border-radius: 999px; padding: .9rem 1.2rem; font-weight: 850; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: white; background: linear-gradient(135deg, var(--primary), #6d5dfc); box-shadow: 0 14px 30px rgba(49,87,255,.25); }
.btn-dark { color: white; background: var(--dark); }
.btn-ghost { color: var(--dark); background: rgba(16,24,40,.07); }
.btn-danger { color: white; background: var(--danger); }
.btn.small { padding: .55rem .75rem; font-size: .86rem; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card, .card, .empty-state, .admin-post-card, .comment { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(16px); overflow: hidden; }
.post-cover { aspect-ratio: 16 / 10; overflow: hidden; display: block; background: #dbe5ff; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.post-card:hover .post-cover img { transform: scale(1.04); }
.post-card-body { padding: 1.15rem; }
.meta, .muted { color: var(--muted); }
.meta { font-size: .92rem; margin: .3rem 0 .7rem; }
.archive-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.archive-item { border-radius: 9px; background: #fff; border: 1px solid var(--line); padding: .65rem; box-shadow: 0 10px 24px rgba(16,24,40,.07); }
.archive-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; margin-bottom: .55rem; }
.archive-item span { display: block; font-weight: 800; }
.archive-item small { color: var(--muted); }
.donation-cta { text-align: center; background: linear-gradient(135deg, rgba(49,87,255,.12), rgba(0,184,148,.13)); border: 1px solid rgba(49,87,255,.15); border-radius: 8px; padding: 52px 24px; margin-bottom: 72px; }
.page-hero { width: min(1160px, calc(100% - 36px)); margin: 0 auto; padding: 140px 0 36px; }
.page-hero.slim { padding-bottom: 10px; }
.prose { font-size: 1.08rem; line-height: 1.78; }
.prose p, .prose ul, .prose ol { color: #344054; }
.prose a { color: var(--primary); font-weight: 750; text-decoration: underline; text-underline-offset: .18em; }
.prose img, .prose video { border-radius: 9px; box-shadow: 0 14px 34px rgba(16,24,40,.10); margin: 1.2rem 0; }
.blog-title { padding-bottom: 24px; }
.post-map-wrap { width: min(1040px, calc(100% - 36px)); margin: 0 auto 22px; }
.post-map { width: 100%; height: 200px; min-height: 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #e7edf5; }
.post-map .leaflet-control-attribution { font-size: 10px; }
.map-placeholder { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #e7edf5; }
.blog-content { padding-top: 26px; }
.blog-content figure { margin: 1.15rem 0; }
.blog-content figure.post-media { width: min(360px, 100%); }
.blog-content figure.post-media img, .blog-content figure.post-media video { width: 100%; }
.blog-content img { width: min(360px, 100%); height: auto; cursor: zoom-in; }
.blog-content figcaption { color: var(--muted); font-size: .92rem; margin-top: .16rem; line-height: 1.35; }
.gallery-launch { padding-top: 0; }
.comments { padding-top: 30px; }
.comment { padding: 1.1rem 1.25rem; margin-bottom: 1rem; }
.comment time { display: block; color: var(--muted); font-size: .9rem; margin-top: .1rem; }
.comment-form { padding: 1.3rem; margin-top: 1.8rem; }
label { display: grid; gap: .45rem; font-weight: 750; margin-bottom: 1rem; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: .9rem 1rem; font: inherit; background: white; color: var(--text); }
textarea { resize: vertical; }
.form-grid.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.donate-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: start; }
.donate-card, .bank-card, .auth-card, .user-form { padding: 1.45rem; }
.amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 1rem 0; }
.amount-button { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 1rem; font-weight: 900; font-size: 1.2rem; cursor: pointer; }
.amount-button.active { color: white; background: linear-gradient(135deg, var(--primary), var(--primary-2)); }
.selected-amount { font-weight: 900; padding: 1rem; border-radius: 9px; background: rgba(49,87,255,.08); margin: 1rem 0; }
#paypal-button-container { opacity: .35; pointer-events: none; transition: opacity .2s; }
#paypal-button-container.ready { opacity: 1; pointer-events: auto; }
.notice { padding: 1rem; border-radius: 9px; background: #fff7ed; color: #9a3412; }
.bank-details { display: grid; grid-template-columns: 150px 1fr; gap: .7rem 1rem; }
.bank-details dt { color: var(--muted); }
.bank-details dd { margin: 0; font-weight: 800; }
.auth-page { min-height: 68vh; display: grid; place-items: center; }
.auth-card { width: min(480px, 100%); }
.admin-shell { display: grid; grid-template-columns: 230px 1fr; gap: 24px; width: min(1320px, calc(100% - 36px)); padding-top: 130px; }
.admin-nav { position: sticky; top: 105px; align-self: start; display: grid; gap: 8px; padding: 1rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 10px 28px rgba(16,24,40,.07); }
.admin-nav a { padding: .8rem .9rem; border-radius: 8px; font-weight: 800; color: var(--muted); }
.admin-nav a.active, .admin-nav a:hover { background: rgba(49,87,255,.1); color: var(--primary); }
.admin-content { min-width: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 1.3rem 0; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1.25rem; box-shadow: 0 10px 28px rgba(16,24,40,.07); }
.stat-card span { color: var(--muted); font-weight: 750; }
.stat-card strong { display: block; font-size: 1.75rem; margin-top: .35rem; }
.stat-card.wide { margin: 1rem 0; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: 8px; border: 1px solid var(--line); box-shadow: 0 10px 28px rgba(16,24,40,.07); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .9rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: .84rem; text-transform: uppercase; letter-spacing: .08em; }
.admin-title-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.post-list-admin { display: grid; gap: 16px; }
.admin-post-card { display: grid; grid-template-columns: 190px 1fr; gap: 1.1rem; padding: .8rem; }
.admin-post-card img { width: 100%; height: 150px; object-fit: cover; border-radius: 9px; }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.toolbar { position: sticky; top: 96px; z-index: 8; display: flex; flex-wrap: wrap; gap: 6px; padding: .65rem; border: 1px solid var(--line); border-radius: 8px 8px 0 0; background: #fff; }
.toolbar button { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: .55rem .7rem; cursor: pointer; font-weight: 800; }
.wysiwyg { min-height: 560px; padding: 1.4rem; background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 8px 8px; line-height: 1.75; font-size: 1.06rem; outline: none; }
.wysiwyg:focus { box-shadow: 0 0 0 4px rgba(49,87,255,.12); }
.wysiwyg:empty::before { content: attr(data-placeholder); color: var(--muted); }
.wysiwyg figure { margin: 1.2rem 0; }
.wysiwyg figcaption { color: var(--muted); font-size: .92rem; text-align: center; margin-top: .16rem; line-height: 1.35; }
.media-panel { position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1rem; box-shadow: 0 10px 28px rgba(16,24,40,.07); max-height: calc(100vh - 120px); overflow: auto; }
.upload-drop { display: block; text-align: center; padding: 1rem; border: 2px dashed rgba(49,87,255,.35); border-radius: 9px; background: rgba(49,87,255,.06); cursor: pointer; }
.upload-drop input { display: none; }
.upload-progress { color: var(--muted); font-size: .9rem; min-height: 1.4rem; margin: .5rem 0; }
.media-list { display: grid; gap: 12px; }
.media-item { border: 1px solid var(--line); border-radius: 9px; padding: .6rem; background: #f8fafc; }
.media-item img, .media-item video { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 8px; margin-bottom: .45rem; }
.media-item strong { display: block; font-size: .9rem; overflow-wrap: anywhere; }
.media-item small { display: block; color: var(--muted); margin-top: .2rem; }
.compact-actions { margin-top: .55rem; }
.pill { display: inline-flex; border-radius: 999px; padding: .25rem .55rem; font-size: .78rem; font-weight: 850; background: rgba(49,87,255,.1); color: var(--primary); }
.flash { width: min(1040px, calc(100% - 36px)); margin: 104px auto -72px; padding: 1rem; border-radius: 9px; font-weight: 750; }
.flash-success { background: #ecfdf5; color: #065f46; }
.flash-error { background: #fff1f2; color: #9f1239; }
.site-footer { display: flex; justify-content: space-between; gap: 1rem; width: min(1160px, calc(100% - 36px)); margin: 0 auto; padding: 40px 0 80px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-actions { display: flex; gap: 1rem; flex-wrap: wrap; font-weight: 800; }
.slideshow-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(3,7,18,.94); display: grid; grid-template-columns: 72px 1fr 72px; grid-template-rows: 1fr auto; align-items: center; justify-items: center; color: white; }
.slide-stage { grid-column: 2; width: min(1200px, 100%); height: min(78vh, 820px); display: grid; place-items: center; }
.slide-stage img, .slide-stage video { max-width: 100%; max-height: 100%; border-radius: 9px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.slide-caption { grid-column: 1 / -1; padding: 1rem; color: rgba(255,255,255,.8); }
.slide-close, .slide-prev, .slide-next { border: 0; color: white; background: rgba(255,255,255,.14); border-radius: 50%; width: 52px; height: 52px; font-size: 2rem; cursor: pointer; }
.slide-close { position: absolute; right: 24px; top: 24px; }
.empty-state { padding: 2rem; }
.image-lightbox { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 28px; background: rgba(3,7,18,.92); cursor: zoom-out; }
.image-lightbox img { max-width: min(1200px, 96vw); max-height: 90vh; border-radius: 9px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.image-lightbox button { position: fixed; top: 22px; right: 22px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font-size: 2rem; cursor: pointer; }

@media (max-width: 960px) {
  .nav-toggle { display: grid; place-items: center; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 66px; padding: .8rem; background: rgba(255,255,255,.96); border-radius: 8px; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .main-nav.open { display: flex; }
  .post-grid, .donate-layout, .admin-shell, .editor-layout, .stats-grid { grid-template-columns: 1fr; }
  .admin-nav, .media-panel, .toolbar { position: static; }
  .admin-shell { padding-top: 120px; }
  .admin-post-card { grid-template-columns: 1fr; }
  .form-grid.two, .amount-grid { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
}
@media (max-width: 680px) {
  .hero h1 { font-size: 3.15rem; }
  .donation-ribbon { left: 18px; right: 18px; bottom: 14px; }
  .post-map { height: 200px; }
  .slideshow-overlay { grid-template-columns: 54px 1fr 54px; }
  .section-heading { display: block; }
}

/* Feinschliff Juni 2026 */
:root { --radius: 7px; }
#blog { scroll-margin-top: 112px; }
.site-header { border-radius: 7px; }
.main-nav { gap: .22rem; font-size: .91rem; }
.main-nav a { padding: .62rem .72rem; border-radius: 6px; }
.nav-toggle,
.skip-link,
.donation-ribbon,
.archive-item,
.archive-item img,
.donation-cta,
.prose img,
.prose video,
.post-map,
.map-placeholder,
input,
textarea,
select,
.amount-button,
.selected-amount,
.notice,
.admin-nav,
.admin-nav a,
.stat-card,
.table-wrap,
.admin-post-card img,
.toolbar,
.toolbar button,
.wysiwyg,
.media-panel,
.upload-drop,
.media-item,
.media-item img,
.media-item video,
.flash,
.slide-stage img,
.slide-stage video,
.image-lightbox img { border-radius: 6px; }
.post-card, .card, .empty-state, .admin-post-card, .comment { border-radius: var(--radius); }

.post-map-wrap { width: min(1040px, calc(100% - 36px)); margin-left: auto; margin-right: auto; }
.post-map { height: 200px; cursor: grab; touch-action: pan-x pan-y; }
.post-map:active { cursor: grabbing; }
.post-map .leaflet-control-container a { text-decoration: none; }
.route-section { padding-top: 18px; }
.route-map-wrap { width: 100%; margin: 0 auto 14px; }
.route-map { width: 100%; height: 240px; }
.route-actions { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-top: .9rem; }

.blog-title .edit-post-button { margin-top: .8rem; }
.blog-content a,
.wysiwyg a,
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: .18em; font-weight: 750; cursor: pointer; pointer-events: auto; position: relative; z-index: 1; }
.blog-content a:hover,
.wysiwyg a:hover,
.prose a:hover { color: #163bd6; }
.blog-content img { position: relative; z-index: 0; }
.blog-content figure { margin: 1.05rem 0; }
.blog-content figcaption { margin-top: .02rem; line-height: 1.22; }
.wysiwyg figcaption { margin-top: .28rem; line-height: 1.3; }
.wysiwyg figure { margin: 1.05rem 0; }

.sortable-media-list .media-item { position: relative; padding-top: 2.15rem; cursor: grab; transition: transform .12s ease, opacity .12s ease, border-color .12s ease; }
.sortable-media-list .media-item:active { cursor: grabbing; }
.media-item.dragging { opacity: .55; border-color: var(--primary); transform: scale(.985); }
.media-drag-handle { position: absolute; top: .45rem; right: .5rem; width: 1.35rem; height: 1.35rem; display: grid; place-items: center; border-radius: 5px; background: rgba(16,24,40,.08); color: var(--muted); font-weight: 900; user-select: none; }
.media-drag-handle:hover { color: var(--primary); background: rgba(49,87,255,.12); }

@media (max-width: 920px) {
  .route-map { height: 220px; }
  .main-nav a { padding: .72rem .8rem; }
}
