:root {
  --green-950: #0c342c;
  --green-900: #12483d;
  --green-800: #185b4b;
  --green-700: #23715c;
  --green-100: #e9f3ed;
  --green-050: #f4f8f5;
  --lime: #d8e8a4;
  --blue-800: #285d74;
  --blue-100: #e7f2f6;
  --sand: #f4ecdf;
  --paper: #fffdfa;
  --white: #fff;
  --ink: #19302b;
  --text: #334b45;
  --muted: #62766f;
  --line: #dce5df;
  --danger: #a43d36;
  --shadow: 0 14px 40px rgba(18, 72, 61, .1);
  --radius: 18px;
  --radius-sm: 11px;
  --shell: min(1180px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font: 17px/1.68 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body:has(dialog[open]) { overflow: hidden; }
a { color: var(--green-800); text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
a:hover { color: var(--green-950); }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #e5a23d; outline-offset: 3px; }
h1, h2, h3 { color: var(--ink); line-height: 1.13; letter-spacing: -.035em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.45rem, 5vw, 4.9rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1.1em; }
.shell { width: var(--shell); margin-inline: auto; }
.narrow { max-width: 820px; }
.section { padding-block: clamp(64px, 8vw, 108px); }
.section-soft { background: var(--green-050); }
.section-ink { background: var(--green-950); color: #e9f4ef; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; background: var(--white); border-radius: 8px; box-shadow: var(--shadow); }
.skip-link:focus { top: 16px; }
.icon { width: 1.25em; height: 1.25em; flex: 0 0 auto; vertical-align: -.2em; }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,253,250,.95); border-bottom: 1px solid rgba(220,229,223,.9); backdrop-filter: blur(12px); }
.header-inner { min-height: 78px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 1.25rem; white-space: nowrap; }
.brand strong { font-weight: 780; }
.brand em { font-style: normal; color: var(--green-700); font-weight: 520; }
.brand > span:last-child { letter-spacing: -.025em; }
.brand-logo { display: block; flex: 0 0 auto; width: 40px; height: 40px; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.main-nav a { padding: 11px 9px; color: var(--text); text-decoration: none; font-size: .92rem; font-weight: 640; border-radius: 8px; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--green-100); color: var(--green-900); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-link { display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink); border-radius: 50%; }
.icon-link:hover { background: var(--green-100); }
.menu-button { display: none; align-items: center; gap: 8px; margin-left: auto; padding: 10px; border: 0; background: none; color: var(--ink); font-weight: 700; cursor: pointer; }
.menu-lines, .menu-lines::before, .menu-lines::after { content: ""; display: block; width: 24px; height: 2px; background: currentColor; transition: transform .2s; }
.menu-lines { position: relative; }
.menu-lines::before { position: absolute; top: -7px; }
.menu-lines::after { position: absolute; top: 7px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 20px; border: 1px solid transparent; border-radius: 10px; text-decoration: none; font-weight: 750; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.button:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(18,72,61,.14); }
.button-primary { color: var(--white); background: var(--green-700); }
.button-primary:hover { color: var(--white); background: var(--green-800); }
.button-light { color: var(--green-950); background: var(--white); border-color: rgba(255,255,255,.7); }
.button-light:hover { color: var(--green-950); background: #f7fbf9; }
.button-quiet { color: var(--green-900); background: var(--white); border-color: var(--line); }
.button-quiet:hover { color: var(--green-950); background: var(--green-050); }
.button-danger { color: var(--white); background: var(--danger); }
.button-small { min-height: 42px; padding: 8px 14px; font-size: .92rem; }
.button.full, .full { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 750; text-decoration: none; }
.text-link .icon { width: 18px; transition: transform .15s; }
.text-link:hover .icon { transform: translateX(3px); }
.plain-button { padding: 0; border: 0; color: var(--green-800); background: none; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }

.flash { margin-top: 16px; padding: 14px 18px; border: 1px solid; border-radius: var(--radius-sm); font-weight: 650; }
.flash-success { color: #19553e; background: #e7f6ed; border-color: #a8d5b7; }
.flash-error { color: #842d2b; background: #fff0ef; border-color: #e6b4b0; }
.flash-info { color: #28586e; background: #ebf5f8; border-color: #b2d3df; }

.share-tools { position: fixed; right: 22px; bottom: 22px; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.share-action { display: inline-flex; align-items: center; justify-content: flex-start; gap: 10px; width: 196px; min-width: 196px; min-height: 50px; padding: 12px 16px; color: var(--green-950); background: var(--white); border: 1px solid rgba(14,79,65,.16); border-radius: 12px; box-shadow: 0 9px 24px rgba(8,42,35,.16); font: inherit; font-size: .9rem; font-weight: 750; white-space: nowrap; text-decoration: none; cursor: pointer; pointer-events: auto; transition: transform .15s, box-shadow .15s, background .15s; }
.share-action:hover { color: var(--green-950); transform: translateY(-2px); box-shadow: 0 13px 28px rgba(8,42,35,.2); }
.share-action .icon { width: 21px; height: 21px; }
.share-whatsapp { color: var(--white); background: #168a4a; border-color: #168a4a; }
.share-whatsapp:hover { color: var(--white); background: #0f703b; border-color: #0f703b; }
.share-copy.is-copied { color: var(--white); background: var(--green-700); border-color: var(--green-700); }

.hero { min-height: min(740px, calc(100vh - 78px)); position: relative; isolation: isolate; display: grid; align-items: center; overflow: hidden; background: var(--green-950); }
.hero-media, .hero-media img, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: center; }
.hero-shade { z-index: 1; background: linear-gradient(90deg, rgba(8,42,35,.91) 0%, rgba(8,42,35,.73) 35%, rgba(8,42,35,.12) 70%, rgba(8,42,35,.08) 100%); }
.hero-content { position: relative; z-index: 2; padding-block: 80px; color: var(--white); }
.hero-content > * { max-width: 650px; }
.hero h1 { color: var(--white); max-width: 760px; text-wrap: balance; }
.hero-lead { font-size: clamp(1.18rem, 2.1vw, 1.48rem); line-height: 1.52; max-width: 610px; color: #f5fbf8; }
.hero-note { color: var(--lime); font-weight: 700; }
.eyebrow { margin-bottom: 12px; color: var(--green-700); font-size: .78rem; font-weight: 820; letter-spacing: .13em; text-transform: uppercase; }
.hero .eyebrow, .section-ink .eyebrow, .topic-hero .eyebrow { color: var(--lime); }
.hero .button-row { margin-top: 30px; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 36px; }
.section-heading > p { max-width: 540px; margin: 0; color: var(--muted); font-size: 1.05rem; }
.section-heading h2, .section-heading .eyebrow { margin-bottom: 0; }
.section-heading .eyebrow { margin-bottom: 8px; }
.section-heading.light h2 { color: var(--white); }
.section-heading.light > p { color: #bdd0c8; }
.section-heading.compact { margin-bottom: 24px; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.category-card { position: relative; min-height: 325px; padding: 28px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.category-card::after { content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%; right: -75px; top: -75px; background: var(--green-100); opacity: .7; }
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.category-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px; border-radius: 16px; color: var(--green-800); background: var(--green-100); }
.category-icon .icon { width: 30px; height: 30px; }
.category-icon.large { width: 82px; height: 82px; margin: 0; color: var(--green-950); background: var(--lime); border-radius: 23px; }
.category-icon.large .icon { width: 44px; height: 44px; }
.category-e-bike .category-icon { color: var(--blue-800); background: var(--blue-100); }
.category-freizeit .category-icon { color: #865d18; background: #faefd5; }
.category-fitness .category-icon { color: #8a4a42; background: #f9e9e7; }
.category-card h3 { font-size: 1.42rem; }
.category-card p { color: var(--muted); }
.card-actions { margin-top: auto; display: grid; gap: 10px; }
.card-actions a { display: flex; align-items: center; gap: 5px; font-weight: 750; text-decoration: none; }
.card-actions a .icon { width: 18px; }
.card-actions .secondary-link { font-size: .93rem; color: var(--muted); font-weight: 650; }

.about-split { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(40px, 8vw, 110px); }
.about-split > div > p:last-child { max-width: 680px; font-size: 1.08rem; }
.benefit-list { margin: 0; padding: 0; display: grid; gap: 18px; list-style: none; }
.benefit-list li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--white); border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgba(18,72,61,.06); }
.benefit-list .icon { width: 25px; height: 25px; padding: 4px; color: var(--white); background: var(--green-700); border-radius: 50%; }

.community-feature { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 7vw, 90px); align-items: center; }
.round-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 24px; color: var(--white); background: var(--green-700); border-radius: 50%; }
.round-icon .icon { width: 32px; height: 32px; }
.community-intro > p:not(.eyebrow) { font-size: 1.08rem; }
.community-preview { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.community-preview > h3 { padding: 8px 8px 12px; }
.post-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; min-height: 78px; padding: 12px; color: var(--text); text-decoration: none; border-top: 1px solid var(--line); border-radius: 9px; }
.post-row:first-of-type { border-top: 0; }
.post-row:hover { color: var(--text); background: var(--green-050); }
.post-row-icon { display: grid; place-items: center; width: 42px; height: 42px; color: var(--green-700); background: var(--green-100); border-radius: 12px; }
.post-row strong, .post-row small { display: block; }
.post-row strong { color: var(--ink); line-height: 1.35; }
.post-row small { margin-top: 4px; color: var(--muted); }
.post-row > .icon { color: var(--green-700); }
.empty-state { padding: clamp(36px, 6vw, 72px); text-align: center; border: 1px dashed #b8c9c0; border-radius: var(--radius); background: var(--white); }
.empty-state.compact { padding: 36px 24px; }
.empty-state > .icon { width: 48px; height: 48px; margin-bottom: 12px; color: var(--green-700); }
.empty-state p { max-width: 620px; margin-inline: auto; color: var(--muted); }
.empty-state a:not(.button) { font-weight: 750; }
.empty-copy { padding: 24px; color: var(--muted); background: var(--green-050); border-radius: var(--radius-sm); }
.topic-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.topic-links a { display: flex; align-items: center; min-height: 70px; padding: 18px; color: var(--white); text-decoration: none; font-weight: 750; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; background: rgba(255,255,255,.06); }
.topic-links a:hover { background: rgba(255,255,255,.12); }

.breadcrumb { padding-block: 18px; font-size: .9rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #8a9b95; }
.breadcrumb a { color: var(--muted); }
.topic-hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: 440px; overflow: hidden; padding-block: 72px; color: var(--white); background: var(--green-900); }
.topic-hero-media, .topic-hero-media img, .topic-hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.topic-hero-media img { object-fit: cover; object-position: center; }
.topic-hero-shade { z-index: 1; background: linear-gradient(90deg, rgba(8,42,35,.94) 0%, rgba(8,42,35,.83) 34%, rgba(8,42,35,.49) 58%, rgba(8,42,35,.08) 100%); }
.topic-hero h1 { color: var(--white); text-shadow: 0 2px 18px rgba(0,0,0,.22); }
.topic-hero p:not(.eyebrow) { max-width: 660px; margin: 0; color: #f3f8f6; font-size: 1.1rem; text-shadow: 0 1px 12px rgba(0,0,0,.3); }
.topic-hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: auto minmax(0, 690px); gap: 20px 28px; align-items: center; justify-content: start; }
.topic-hero-inner .button { grid-column: 2; width: fit-content; }
.topic-tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.topic-tile { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.topic-tile > span { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 18px; color: var(--white); background: var(--green-700); border-radius: 50%; }
.topic-tile h3 { font-size: 1.12rem; }
.topic-tile p { margin: 0; color: var(--muted); font-size: .95rem; }
.editorial-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 50px; align-items: center; }
.editorial-lead { padding-right: 30px; }
.label { display: inline-flex; width: fit-content; padding: 5px 10px; margin-bottom: 14px; color: var(--green-900); background: var(--lime); border-radius: 99px; font-size: .76rem; font-weight: 820; letter-spacing: .06em; text-transform: uppercase; }
.label-community { color: var(--white); background: var(--blue-800); }
.medical-note { padding: 14px 16px; color: #4b5f59; border-left: 4px solid #9ab6aa; background: #edf3ef; font-size: .92rem; }
.check-card, .sidebar-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 8px 28px rgba(18,72,61,.06); }
.check-card ul { margin: 0; padding-left: 1.2em; }
.check-card li { margin-bottom: 9px; }
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.post-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.post-card > img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-card-body { padding: 24px; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card p { color: var(--muted); }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-bottom: 14px; }
.tag-row .label { margin: 0; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; color: #50665f; background: #edf2ef; border-radius: 99px; font-size: .78rem; font-weight: 700; }
.tag .icon { width: 14px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: .86rem; }
.post-meta.large { font-size: .95rem; }

.page-hero { padding-block: clamp(50px, 7vw, 88px); text-align: center; background: linear-gradient(135deg, var(--green-100), #f7f1e7); }
.page-hero.small { padding-block: 52px; }
.page-hero h1 { font-size: clamp(2.3rem, 4vw, 4rem); }
.page-hero p:not(.eyebrow) { max-width: 760px; margin-inline: auto; font-size: 1.12rem; }
.page-hero-row { display: flex; gap: 36px; align-items: center; justify-content: space-between; text-align: left; }
.page-hero-row p:not(.eyebrow) { margin-inline: 0; }
.community-hero .button { margin-top: 12px; }
.board-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.board-card { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 22px; color: var(--text); text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.board-card:hover { color: var(--text); box-shadow: var(--shadow); transform: translateY(-2px); }
.board-card .category-icon { margin: 0; }
.board-card strong, .board-card small { display: block; }
.board-card strong { color: var(--ink); font-size: 1.18rem; }
.board-card small { margin-top: 5px; color: var(--muted); }
.board-card em { color: var(--green-800); font-size: .84rem; font-style: normal; font-weight: 750; }
.two-column-main, .board-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 42px; align-items: start; }
.sidebar-card { box-shadow: none; }
.sidebar-card + .sidebar-card { margin-top: 18px; }
.sidebar-card h2 { font-size: 1.35rem; }
.sidebar-card h3 { margin-top: 30px; }
.sidebar-card > a { display: inline-flex; align-items: center; gap: 5px; font-weight: 750; }
.sidebar-card .mini-link { display: block; padding: 10px 0; border-top: 1px solid var(--line); font-weight: 650; text-decoration: none; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-cloud span { padding: 5px 9px; background: var(--green-100); border-radius: 99px; font-size: .84rem; }
.small-note, .field-help { color: var(--muted); font-size: .86rem; }
.post-grid.list-mode { grid-template-columns: 1fr; }
.post-grid.list-mode .post-card { display: grid; grid-template-columns: 220px 1fr; }
.post-grid.list-mode .post-card > img { height: 100%; aspect-ratio: auto; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.pagination a { display: grid; place-items: center; min-width: 46px; height: 46px; padding-inline: 12px; text-decoration: none; border: 1px solid var(--line); border-radius: 9px; background: var(--white); }
.pagination a[aria-current="page"] { color: var(--white); background: var(--green-700); border-color: var(--green-700); }
.pagination .next { width: auto; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 50px; align-items: start; }
.article-header h1 { max-width: 850px; font-size: clamp(2.2rem, 4.5vw, 4rem); }
.article-image { margin: 34px 0; overflow: hidden; border-radius: var(--radius); }
.article-image img { width: 100%; max-height: 620px; object-fit: cover; }
.article-copy { margin-block: 38px; color: #263d37; font-size: 1.12rem; line-height: 1.85; }
.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 32px 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--line); }
.fact-grid div { padding: 14px 16px; background: var(--white); }
.fact-grid dt { color: var(--muted); font-size: .78rem; font-weight: 750; text-transform: uppercase; }
.fact-grid dd { margin: 3px 0 0; color: var(--ink); font-weight: 720; }
.article-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-block: 24px; border-block: 1px solid var(--line); }
.article-sidebar { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; scrollbar-width: thin; }
.report-post { margin: 20px; color: var(--muted); font-size: .9rem; }
.comments { margin-top: 60px; }
.ad-placement { position: relative; overflow: hidden; text-align: center; }
.ad-label { display: block; margin-bottom: 6px; color: #87958f; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.ad-placement .adsbygoogle { display: block; width: 100%; }
.ad-placement-horizontal { width: var(--shell); max-width: 1200px; min-height: 116px; margin: 28px auto; }
.ad-placement-horizontal .adsbygoogle { min-height: 90px; }
.ad-placement-inline { width: 100%; max-width: none; margin: 26px 0 30px; }
.ad-placement-vertical { width: 300px; min-height: 626px; margin: 20px 0 0; }
.ad-placement-vertical .adsbygoogle { width: 300px; min-height: 600px; }
.article-copy-title { margin-top: 38px; font-size: clamp(1.7rem, 3vw, 2.35rem); scroll-margin-top: 110px; }
#beitragstitel, #kommentare { scroll-margin-top: 110px; }
.article-toc h2 { font-size: 1.25rem; }
.article-toc ol { margin: 0; padding-left: 1.2rem; }
.article-toc li + li { margin-top: 9px; }
.article-toc a { color: var(--green-800); font-weight: 700; text-decoration: none; }
.article-toc a:hover { text-decoration: underline; text-underline-offset: .2em; }
.comment { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 24px 0; border-top: 1px solid var(--line); }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; color: var(--white); background: var(--green-700); border-radius: 50%; font-weight: 800; }
.comment header { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 8px; }
.comment header span { color: var(--muted); font-size: .86rem; }
.comment p { margin: 0; }
.comment-links { display: flex; gap: 16px; margin-top: 12px; font-size: .84rem; }
.comment-form { margin-top: 30px; }
.signin-prompt { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 24px; margin-top: 24px; background: var(--green-050); border-radius: var(--radius); }
.signin-prompt p { margin: 0; }

.dialog { width: min(560px, calc(100vw - 30px)); padding: 0; border: 0; border-radius: var(--radius); box-shadow: 0 30px 100px rgba(0,0,0,.28); }
.dialog::backdrop { background: rgba(7,28,23,.62); }
.dialog form { padding: 28px; }
.dialog-header { display: flex; justify-content: space-between; align-items: center; }
.dialog-close { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--green-050); font-size: 1.6rem; cursor: pointer; }

.form-shell { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.form-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 8px 30px rgba(18,72,61,.06); }
.large-form { padding: clamp(24px, 4vw, 44px); }
.form-card label, .dialog label { display: block; margin: 18px 0 7px; color: var(--ink); font-weight: 720; }
input, textarea, select { width: 100%; min-height: 50px; padding: 11px 13px; color: var(--ink); background: var(--white); border: 1px solid #aebfb7; border-radius: 9px; }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(35,113,92,.13); outline: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row.three { grid-template-columns: repeat(3,1fr); }
.form-notice { display: flex; gap: 14px; padding: 16px; color: #425c54; background: var(--green-100); border-radius: var(--radius-sm); }
.form-notice .icon { width: 28px; height: 28px; }
.form-notice p { margin: 0; }
.form-heading p { color: var(--muted); }
.optional-fields { margin: 28px 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.optional-fields summary { color: var(--green-900); font-weight: 780; cursor: pointer; }
.optional-fields summary span { color: var(--muted); font-weight: 500; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.choice-grid label { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 10px; margin: 0; }
.choice-grid select { min-height: 44px; }
.choice-grid span { grid-column: 2; grid-row: 1; }
fieldset { padding: 18px; margin-block: 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
legend { padding-inline: 6px; color: var(--ink); font-weight: 750; }
.form-aside { position: sticky; top: 105px; padding: 24px; background: var(--green-050); border-radius: var(--radius); }
.form-aside h2 { font-size: 1.3rem; }
.form-aside ul { padding-left: 1.2em; }
.form-aside li { margin-bottom: 8px; }

.auth-section { min-height: calc(100vh - 78px); display: grid; place-items: center; padding: 48px 20px; background: radial-gradient(circle at 10% 0%, #dceee4, transparent 38%), radial-gradient(circle at 90% 100%, #f1e4cd, transparent 40%), var(--green-050); }
.auth-card { width: min(510px, 100%); padding: clamp(28px, 5vw, 48px); background: var(--white); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.auth-brand { margin-bottom: 34px; }
.auth-card h1 { font-size: clamp(2rem, 5vw, 3rem); }
.auth-card > p { color: var(--muted); }
.auth-card .button { margin-top: 24px; }
.auth-links { display: flex; justify-content: space-between; gap: 20px; margin-top: 22px; font-size: .92rem; }
.auth-links.single { justify-content: center; margin-top: 14px; }
.check-label { display: grid !important; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.check-label input { width: 22px; min-height: 22px; margin-top: 4px; }

.search-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 28px; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 42px; align-items: start; }
.profile-main { display: grid; gap: 60px; }
.notification-list { display: grid; gap: 8px; }
.notification-list a { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 14px; color: var(--text); text-decoration: none; background: var(--green-050); border-radius: 10px; }
.notification-list strong, .notification-list small { display: block; }
.notification-list small { color: var(--muted); }
.manage-list { display: grid; border-top: 1px solid var(--line); }
.manage-list article { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.manage-list h3 { margin: 8px 0 4px; }
.manage-actions { display: flex; gap: 14px; align-items: center; }
.admin-link { margin-top: 16px; }
.danger-zone { margin-top: 24px; padding: 16px; color: #6f3330; border: 1px solid #e8c3bf; border-radius: var(--radius-sm); background: #fff8f7; }
.danger-zone summary { font-weight: 750; cursor: pointer; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-grid div { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.stat-grid strong, .stat-grid span { display: block; }
.stat-grid strong { color: var(--green-800); font-size: 2.2rem; }
.stat-grid span { color: var(--muted); }
.admin-section { margin-top: 54px; }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; background: var(--white); }
th, td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { color: var(--muted); background: var(--green-050); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
td small { display: block; margin-top: 3px; color: var(--muted); }
.table-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.prose { max-width: 820px; }
.prose h2 { margin-top: 2em; font-size: 1.65rem; }
.prose h2:first-child { margin-top: 0; }
.prose li { margin-bottom: 9px; }
.contact-box { display: flex; flex-direction: column; padding: 22px; background: var(--green-050); border-radius: var(--radius-sm); }
.legal-warning { padding: 18px; margin: 28px 0; color: #713f19; background: #fff5df; border: 1px solid #e9cd91; border-radius: var(--radius-sm); }
.rules-list { padding: 0; list-style: none; counter-reset: rules; }
.rules-list li { position: relative; padding: 20px 20px 20px 66px; margin-bottom: 12px; background: var(--green-050); border-radius: var(--radius-sm); counter-increment: rules; }
.rules-list li::before { content: counter(rules); position: absolute; left: 18px; top: 18px; display: grid; place-items: center; width: 34px; height: 34px; color: var(--white); background: var(--green-700); border-radius: 50%; font-weight: 800; }
.rules-list strong, .rules-list span { display: block; }
.rules-list span { margin-top: 4px; color: var(--muted); }

.site-footer { padding-top: 68px; color: #c9d8d2; background: #0a2d26; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3,1fr); gap: 50px; }
.brand-footer { color: var(--white); }
.footer-grid > div:first-child p { max-width: 360px; margin-top: 20px; }
.footer-grid h2 { color: var(--white); font-size: .92rem; letter-spacing: .05em; text-transform: uppercase; }
.footer-grid > div:not(:first-child) a { display: block; margin: 8px 0; color: #d6e2dd; text-decoration: none; }
.footer-grid a:hover { color: var(--lime); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 24px; margin-top: 50px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }

@media (max-width: 1080px) {
  .main-nav a { padding-inline: 6px; font-size: .84rem; }
  .header-actions .button { display: none; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .topic-tile-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 901px) {
  .topic-hero { min-height: 0; aspect-ratio: 1897 / 829; }
}

@media (max-width: 900px) {
  :root { --shell: min(100% - 32px, 760px); }
  .header-inner { min-height: 70px; }
  .menu-button { display: flex; }
  .main-nav { position: absolute; left: 0; right: 0; top: 70px; display: none; padding: 12px 16px 20px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 18px 28px rgba(18,72,61,.12); }
  .main-nav.is-open { display: grid; }
  .main-nav a { padding: 12px; font-size: 1rem; }
  .hero { min-height: 680px; align-items: end; }
  .hero-content { padding-block: 120px 58px; }
  .hero-shade { background: linear-gradient(0deg, rgba(8,42,35,.94) 0%, rgba(8,42,35,.7) 55%, rgba(8,42,35,.05) 100%); }
  .hero-media img { object-position: 63% center; }
  .about-split, .community-feature, .editorial-grid { grid-template-columns: 1fr; }
  .community-feature { gap: 38px; }
  .topic-hero { min-height: 430px; }
  .topic-hero-media img { object-position: 66% center; }
  .topic-hero-shade { background: linear-gradient(90deg, rgba(8,42,35,.95) 0%, rgba(8,42,35,.84) 48%, rgba(8,42,35,.3) 82%, rgba(8,42,35,.16) 100%); }
  .topic-hero-inner { grid-template-columns: auto 1fr; }
  .topic-hero-inner .button { grid-column: 2; width: fit-content; }
  .two-column-main, .board-layout, .article-layout, .form-shell, .profile-grid { grid-template-columns: 1fr; }
  .article-sidebar, .form-aside { position: static; max-height: none; overflow: visible; }
  .ad-placement-vertical { display: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2; }
}

@media (max-width: 660px) {
  body { font-size: 16.5px; }
  body.has-share-tools { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  :root { --shell: calc(100% - 24px); }
  .section { padding-block: 56px; }
  .brand { font-size: 1.06rem; }
  .brand-logo { width: 34px; height: 34px; }
  .menu-button span:last-child { display: none; }
  .header-actions .icon-link { display: none; }
  .hero { min-height: 670px; }
  .hero h1 { font-size: clamp(2.5rem, 14vw, 4.1rem); }
  .hero-lead { font-size: 1.08rem; }
  .button-row { display: grid; }
  .button-row .button { width: 100%; }
  .section-heading { display: block; }
  .section-heading > p, .section-heading > a { margin-top: 14px; }
  .category-grid, .topic-tile-grid, .post-grid, .topic-links, .board-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 290px; }
  .topic-hero { min-height: 560px; align-items: end; padding-block: 210px 44px; }
  .topic-hero-media img { object-position: 68% center; }
  .topic-hero-shade { background: linear-gradient(0deg, rgba(8,42,35,.97) 0%, rgba(8,42,35,.88) 48%, rgba(8,42,35,.28) 78%, rgba(8,42,35,.08) 100%); }
  .topic-hero-inner { grid-template-columns: 1fr; }
  .topic-hero-inner .button { grid-column: 1; width: 100%; }
  .page-hero-row { display: block; }
  .page-hero-row .button, .page-hero-row form { margin-top: 20px; width: 100%; }
  .board-card { grid-template-columns: auto 1fr; }
  .board-card em { grid-column: 2; }
  .post-grid.list-mode .post-card { display: block; }
  .post-grid.list-mode .post-card > img { height: auto; aspect-ratio: 16/9; }
  .fact-grid { grid-template-columns: repeat(2, 1fr); }
  .article-actions { display: grid; }
  .ad-placement-horizontal, .ad-placement-inline { width: min(calc(100% - 24px), 336px); min-height: 300px; margin: 24px auto; }
  .ad-placement-inline { width: min(100%, 336px); }
  .ad-placement-horizontal .adsbygoogle { min-height: 280px; }
  .signin-prompt { display: block; }
  .signin-prompt .button { margin-top: 12px; width: 100%; }
  .form-row, .form-row.three, .choice-grid { grid-template-columns: 1fr; }
  .choice-grid label { grid-template-columns: 100px 1fr; }
  .search-form { grid-template-columns: 1fr; }
  .auth-links, .manage-list article, .manage-actions { align-items: flex-start; flex-direction: column; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .share-tools { left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,253,250,.96); border-top: 1px solid var(--line); box-shadow: 0 -10px 28px rgba(8,42,35,.12); backdrop-filter: blur(12px); }
  .share-action { width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px; justify-content: center; border-radius: 10px; box-shadow: none; font-size: .86rem; }
  .share-action:hover { transform: none; box-shadow: none; }
}

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