/* ==========================================================================
   Sonnensee – Gestaltung
   Grosse Schrift (Grundgrösse 20 px), starke Kontraste, grosse Schaltflächen.
   Schrift: Atkinson Hyperlegible Next (Braille Institute) – für gute Lesbarkeit
   bei nachlassender Sehkraft entwickelt. Liegt auf dem eigenen Server.
   ========================================================================== */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/ahn-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/ahn-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/ahn-800.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}

:root {
  --see: #0F4C5C;          /* Seetürkis – Hauptfarbe */
  --see-tief: #0A3642;
  --see-hell: #D6E7E6;
  --schilf: #4F7336;       /* Schilfgrün */
  --schilf-hell: #E2ECD8;
  --sonne: #F2B705;        /* Sonnengelb – nur für Akzente, nie für Text */
  --sonne-hell: #FDF0C4;
  --wasser: #EEF4F2;       /* Seitenhintergrund */
  --papier: #FFFFFF;
  --tinte: #17262B;        /* Text */
  --grau: #4A5A5E;         /* Nebentext, Kontrast 7:1 auf Weiss */
  --linie: #C3D3D0;
  --rot: #9E2A1F;
  --rot-hell: #F8E3E0;

  --font: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --radius-s: 0.4rem;
  --radius-m: 0.75rem;
  --radius-l: 1.25rem;
  --gutter: clamp(0.8rem, 3vw, 2rem);
  color-scheme: light;
}

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

[hidden] { display: none !important; }

html {
  font-size: 125%;          /* 20 px */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--tinte);
  background: var(--wasser);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; outline: none; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.4rem); color: var(--see-tief); }
h2 { font-size: 1.45rem; color: var(--see-tief); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

a { color: var(--see); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: var(--see-tief); text-decoration-thickness: 0.14em; }

:focus-visible {
  outline: 4px solid var(--sonne);
  outline-offset: 2px;
  box-shadow: 0 0 0 7px var(--tinte);
  border-radius: 0.2rem;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--sonne); color: var(--tinte); padding: 0.6rem 1rem; font-weight: 700;
  border-radius: var(--radius-s);
}
.skip:focus { top: 1rem; }

/* ---------- Kopfbereich ---------- */

.masthead { background: var(--see); color: #fff; }
.masthead-inner {
  max-width: 64rem; margin: 0 auto; padding: 0.7rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: #fff; text-decoration: none; padding: 0.2rem 0;
}
.brand:hover { color: #fff; }
.brand-sun { width: 3.2rem; height: 2rem; flex: none; }
.brand-sun circle { fill: var(--sonne); }
.brand-sun .wave { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; }
.brand-sun .wave + .wave { opacity: 0.55; }
.brand-name { font-size: 1.5rem; font-weight: 800; letter-spacing: 0.01em; }

.masthead-user { display: flex; align-items: center; gap: 0.5rem; }
.user-link, .menu-toggle {
  display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 2.6rem; padding: 0.3rem 0.8rem;
  color: #fff; background: transparent; border: 2px solid rgba(255,255,255,0.55);
  border-radius: 999px; font: inherit; font-size: 0.9rem; font-weight: 700;
  text-decoration: none; cursor: pointer;
}
.user-link:hover, .menu-toggle:hover { color: #fff; background: var(--see-tief); border-color: #fff; }
.user-link[aria-current] { background: var(--see-tief); border-color: var(--sonne); }
.user-link svg, .menu-toggle svg {
  width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round;
}
.menu-toggle { display: none; }

.mainnav { background: var(--papier); border-bottom: 1px solid var(--linie); }
.mainnav ul {
  list-style: none; margin: 0 auto; padding: 0 var(--gutter);
  max-width: 64rem; display: flex; flex-wrap: wrap; gap: 0 0.3rem;
}
.mainnav a {
  display: block; padding: 0.75rem 0.7rem 0.6rem;
  color: var(--tinte); font-weight: 700; text-decoration: none;
  border-bottom: 6px solid transparent;
}
.mainnav a:hover { color: var(--see); border-bottom-color: var(--see-hell); }
.mainnav a[aria-current] { color: var(--see-tief); border-bottom-color: var(--sonne); }
.mainnav .nav-admin { margin-left: auto; }
.mainnav .nav-admin a { color: var(--schilf); }

@media (max-width: 52rem) {
  .has-js .menu-toggle { display: inline-flex; }
  .has-js .mainnav { display: none; }
  .has-js .mainnav.is-open { display: block; }
  .mainnav ul { flex-direction: column; padding-top: 0.3rem; padding-bottom: 0.6rem; }
  .mainnav a { border-bottom: 0; border-left: 6px solid transparent; padding: 0.7rem 0.8rem; }
  .mainnav a[aria-current] { border-left-color: var(--sonne); background: var(--sonne-hell); }
  .mainnav .nav-admin { margin-left: 0; border-top: 1px solid var(--linie); margin-top: 0.3rem; padding-top: 0.3rem; }
  .user-link span { display: none; }
  .user-link { padding: 0.3rem 0.55rem; }
  .menu-toggle { padding: 0.3rem 0.7rem; }
  .masthead-inner { gap: 0.5rem; }
  .brand { gap: 0.4rem; min-width: 0; }
  .brand-sun { width: 2.3rem; height: 1.45rem; }
  .brand-name { font-size: 1.2rem; }
}
@media (max-width: 22rem) {
  .brand-name { font-size: 1.05rem; }
}

/* ---------- Begrüssung auf der Startseite (der eine grosse Moment) ---------- */

.welcome {
  position: relative; overflow: hidden;
  background: var(--see);
  color: #fff;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.welcome::before {          /* die aufgehende Sonne */
  content: ""; position: absolute;
  right: clamp(-6rem, 8vw - 4rem, 4rem); bottom: -9rem;
  width: 18rem; height: 18rem; border-radius: 50%;
  background: var(--sonne);
  animation: sunrise 1.6s cubic-bezier(.2,.7,.2,1) both;
}
.welcome::after {           /* Wasserlinien vor der Sonne */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.6rem;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='64' viewBox='0 0 120 64'%3E%3Cpath d='M0 20q15-10 30 0t30 0 30 0 30 0' fill='none' stroke='%23ffffff' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M0 44q15-10 30 0t30 0 30 0 30 0' fill='none' stroke='%23ffffff' stroke-opacity='.5' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x left bottom / 6rem 3.2rem,
    var(--see);
}
.welcome-inner {
  position: relative; z-index: 1;
  max-width: 64rem; margin: 0 auto;
  padding: clamp(1.6rem, 4vw, 2.8rem) var(--gutter) 4.4rem;
}
.welcome h1 { color: #fff; margin: 0; font-size: clamp(2rem, 1.3rem + 3vw, 3.2rem); max-width: 22ch; }
.welcome-date { margin: 0 0 0.3rem; font-size: 1.1rem; color: var(--sonne-hell); font-weight: 700; }

@keyframes sunrise {
  from { transform: translateY(5rem); }
  to   { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .welcome::before { animation: none; }
}

/* ---------- Grundgerüst der Seiten ---------- */

.page { max-width: 64rem; margin: 0 auto; padding: clamp(1.4rem, 4vw, 2.4rem) var(--gutter) 3rem; }
.page.narrow { max-width: 42rem; }
.page + .page { padding-top: 0; }

.page-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem 1.5rem; margin-bottom: 1.6rem;
}
.page-head h1 { margin-bottom: 0.2rem; }
.page-head .lead { margin: 0; }
.head-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.lead { font-size: 1.15rem; color: var(--grau); max-width: 38em; }
.meta { color: var(--grau); font-size: 0.9rem; }
.crumb { margin: 0 0 0.4rem; font-weight: 700; font-size: 0.95rem; }
.crumb a { color: var(--schilf); }
.empty { color: var(--grau); font-style: normal; }
.hint { color: var(--grau); font-size: 0.9rem; margin: 0.35rem 0 0; }
.opt { font-weight: 400; color: var(--grau); font-size: 0.85em; }
.section-title { margin-top: 2rem; }
.warn-text { color: var(--rot); font-weight: 700; }

.flashes { max-width: 64rem; margin: 1rem auto 0; padding: 0 var(--gutter); }
.flash {
  margin: 0 0 0.5rem; padding: 0.9rem 1.1rem 0.9rem 1rem;
  background: var(--schilf-hell); border-left: 6px solid var(--schilf);
  border-radius: var(--radius-s); font-weight: 700;
}
.flash-warn { background: var(--sonne-hell); border-left-color: #B88600; }

.notice {
  background: var(--sonne-hell); border-radius: var(--radius-m);
  padding: 0.9rem 1.1rem; border: 2px solid var(--sonne);
}
.notice p { margin: 0.2rem 0; font-weight: 700; }
.notice-quiet { background: var(--papier); border: 1px solid var(--linie); }
.notice-quiet p { font-weight: 400; }

/* ---------- Schaltflächen ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 3rem; padding: 0.55rem 1.2rem;
  font: inherit; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none;
  color: var(--see); background: var(--papier);
  border: 2px solid var(--see); border-radius: var(--radius-m);
  cursor: pointer;
}
.btn:hover { background: var(--see-hell); color: var(--see-tief); text-decoration: none; }
.btn-primary { background: var(--see); color: #fff; }
.btn-primary:hover { background: var(--see-tief); color: #fff; }
.btn-quiet { border-color: var(--linie); color: var(--see-tief); }
.btn-quiet:hover { border-color: var(--see); }
.btn-danger { color: var(--rot); border-color: var(--rot); background: var(--papier); }
.btn-danger:hover { background: var(--rot-hell); color: var(--rot); }
.btn-small { min-height: 2.5rem; padding: 0.35rem 0.9rem; font-size: 0.9rem; }
.btn-big { min-height: 3.4rem; padding: 0.7rem 1.6rem; font-size: 1.1rem; }
.btn-sun {
  background: var(--sonne); color: var(--tinte); border-color: var(--sonne);
}
.btn-sun:hover { background: #FFC93C; color: var(--tinte); }
.btn-huge {
  width: 100%; min-height: 4.4rem; font-size: 1.45rem; border-radius: var(--radius-l);
  box-shadow: 0 0.25rem 0 #B88600;
}
@media (max-width: 30rem) {
  .btn-huge { font-size: 1.25rem; min-height: 4rem; padding-inline: 0.8rem; }
  .btn-huge svg { width: 1.6rem; height: 1.6rem; }
}
.btn-huge:active { transform: translateY(0.15rem); box-shadow: 0 0.1rem 0 #B88600; }
.btn-huge svg { width: 2rem; height: 2rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.linklike {
  background: none; border: 0; padding: 0; font: inherit; color: var(--see);
  text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer;
}

.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; margin-top: 1.4rem; }
.inline-form { display: inline; margin: 0; }
.editor-actions { padding-top: 1.2rem; border-top: 1px solid var(--linie); margin-top: 2rem; }

/* ---------- Formulare ---------- */

.form { margin: 0; }
.field { margin: 0 0 1.3rem; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend, .field .label, .field > summary {
  display: block; font-weight: 700; margin-bottom: 0.35rem; padding: 0;
}
.field > summary { cursor: pointer; color: var(--see); margin-bottom: 0.8rem; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0 1rem; }

input[type="text"], input:not([type]), input[type="email"], input[type="tel"], input[type="search"],
input[type="date"], input[type="time"], input[type="password"], textarea, select {
  width: 100%; font: inherit; color: var(--tinte);
  background: var(--papier);
  border: 2px solid #7D9693; border-radius: var(--radius-s);
  padding: 0.6rem 0.75rem; min-height: 3rem;
}
textarea { line-height: 1.5; resize: vertical; }
input:hover, textarea:hover { border-color: var(--see); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--rot); background: #FFF8F7; }
.field-error { color: var(--rot); font-weight: 700; margin: 0.4rem 0 0; }
.field-error::before { content: "! "; }
.static { margin: 0; }

.check {
  display: flex; align-items: flex-start; gap: 0.7rem; cursor: pointer;
  padding: 0.35rem 0; font-weight: 400;
}
.check input {
  flex: none; width: 1.6rem; height: 1.6rem; margin: 0.05rem 0 0;
  accent-color: var(--see);
}
.check-small { font-size: 0.85rem; gap: 0.4rem; }
.check-small input { width: 1.2rem; height: 1.2rem; }

.choice-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; min-height: 3rem; padding: 0.5rem 1.1rem;
  border: 2px solid var(--linie); border-radius: 999px; background: var(--papier); font-weight: 700;
}
.choice input:checked + span { background: var(--see); border-color: var(--see); color: #fff; }
.choice input:checked + span::before { content: "✓"; margin-right: 0.45rem; }
.choice input:focus-visible + span { outline: 4px solid var(--sonne); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; }

.file-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; cursor: pointer; }
.file-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-pick input:focus-visible + .btn { outline: 4px solid var(--sonne); outline-offset: 2px; }
.file-hint { color: var(--grau); }
.thumbs { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.7rem; }
.thumbs li { width: 7.5rem; }
.thumbs img { width: 7.5rem; height: 5.6rem; object-fit: cover; border-radius: var(--radius-s); }

.format-help { margin-top: 0.5rem; font-size: 0.9rem; }
.format-help summary { cursor: pointer; color: var(--see); font-weight: 700; }
.format-help ul { margin: 0.5rem 0 0; padding-left: 1.2rem; color: var(--grau); }

.form-card {
  background: var(--papier); border-radius: var(--radius-m);
  padding: clamp(1rem, 3vw, 1.6rem); margin: 0 0 1.4rem;
  border: 1px solid var(--linie);
}
.form-card > h2 { font-size: 1.25rem; }

.danger-zone {
  margin-top: 2.4rem; padding-top: 1.2rem; border-top: 2px dashed var(--linie);
  display: flex; flex-direction: column; gap: 1rem; align-items: flex-start;
}
.inline-fields { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.inline-fields input { flex: 1 1 12rem; width: auto; }
.inline-fields label { width: 100%; font-weight: 700; }
.delete-member label { display: block; margin-bottom: 0.4rem; }

/* ---------- Anmelden / Einrichten ---------- */

.gate { padding: clamp(1.5rem, 6vw, 4rem) var(--gutter) 3rem; }
.gate-card {
  max-width: 34rem; margin: 0 auto; background: var(--papier);
  border-radius: var(--radius-l); padding: clamp(1.3rem, 5vw, 2.4rem);
  box-shadow: 0 1.2rem 2.5rem -1.5rem rgba(10, 54, 66, 0.35);
}
.gate-card::before {
  content: ""; display: block; width: 4.2rem; height: 2.6rem; margin-bottom: 1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 40'%3E%3Ccircle cx='32' cy='30' r='17' fill='%23F2B705'/%3E%3Crect x='0' y='29' width='64' height='11' fill='%23fff'/%3E%3Cpath d='M2 31q7.5-5 15 0t15 0 15 0 15 0' fill='none' stroke='%230F4C5C' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M2 37q7.5-5 15 0t15 0 15 0 15 0' fill='none' stroke='%230F4C5C' stroke-opacity='.5' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left center / contain;
}
.gate-wide { max-width: 40rem; }

/* Willkommensseite: Foto vom See als Hintergrund */
main:has(.gate-welcome) { display: flex; flex-direction: column; }
.gate-welcome {
  flex: 1;
  min-height: 70vh;
  background:
    linear-gradient(rgba(10, 54, 66, 0.10), rgba(10, 54, 66, 0.35)),
    url("willkommen-see-1200.jpg") center 45% / cover no-repeat var(--see-tief);
}
@media (min-width: 60rem) {
  .gate-welcome {
    background:
      linear-gradient(rgba(10, 54, 66, 0.10), rgba(10, 54, 66, 0.35)),
      url("willkommen-see-2048.jpg") center 45% / cover no-repeat var(--see-tief);
  }
}
.gate-welcome .gate-card { box-shadow: 0 1.5rem 3rem -1rem rgba(0, 0, 0, 0.5); }
.gate h1 { font-size: clamp(1.7rem, 1.3rem + 2vw, 2.2rem); }
.passkey-box { margin: 1.8rem 0 1.2rem; }
.passkey-box .check { margin-top: 0.9rem; }
.passkey-status { margin: 0.8rem 0 0; font-weight: 700; min-height: 1.6em; }
.passkey-status.is-error {
  color: var(--rot); background: var(--rot-hell); padding: 0.8rem 1rem; border-radius: var(--radius-s);
}
.explain { border-top: 1px solid var(--linie); padding-top: 0.9rem; margin-top: 0.6rem; }
.explain summary { cursor: pointer; font-weight: 700; color: var(--see); padding: 0.3rem 0; }
.explain p { margin: 0.6rem 0 0; }
.gate-note { margin: 1.2rem 0 0; color: var(--grau); }
.gate-links { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.4rem; }
.gate-links .btn { width: 100%; }

.steps { padding-left: 1.6rem; margin: 1.2rem 0; }
.steps li { margin-bottom: 0.6rem; padding-left: 0.3rem; }
.steps li::marker { font-weight: 800; color: var(--see); }

/* ---------- Startseite ---------- */

.home-grid {
  display: grid; gap: 2rem 2.4rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "events ads" "news ads";
  align-items: start;
}
.home-events { grid-area: events; }
.home-ads { grid-area: ads; }
.home-news { grid-area: news; }
@media (max-width: 50rem) {
  .home-grid { grid-template-columns: 1fr; grid-template-areas: "events" "ads" "news"; }
}
.home-block h2 {
  font-size: 1.35rem; padding-bottom: 0.4rem; border-bottom: 3px solid var(--see);
}
.more { display: inline-block; margin-top: 0.8rem; font-weight: 700; }
.block-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: 0.4rem; }
.block-actions .more { margin-top: 0; }

.news-teaser { display: grid; grid-template-columns: 6rem 1fr; gap: 0.9rem; padding: 0.9rem 0; border-bottom: 1px solid var(--linie); }
.news-teaser:not(:has(img)) { grid-template-columns: 1fr; }
.news-teaser img { width: 6rem; height: 6rem; object-fit: cover; border-radius: var(--radius-s); }
.news-teaser h3 { margin: 0 0 0.1rem; font-size: 1.1rem; }
.news-teaser h3 a { color: var(--tinte); }
.news-teaser .meta { margin: 0 0 0.3rem; }
.news-teaser p:last-child { margin: 0; }

.ad-mini-list { list-style: none; margin: 0; padding: 0; }
.ad-mini-list a {
  display: grid; grid-template-columns: 4.8rem 1fr; gap: 0.9rem; align-items: center;
  padding: 0.7rem 0; border-bottom: 1px solid var(--linie); color: var(--tinte); text-decoration: none;
}
.ad-mini-list a:hover strong { text-decoration: underline; }
.ad-mini-list img, .ad-mini-noimg { width: 4.8rem; height: 4.8rem; object-fit: cover; border-radius: var(--radius-s); }
.ad-mini-noimg { display: block; background: var(--see-hell); }
.ad-mini-text { display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem; }

/* ---------- Veranstaltungen ---------- */

.event-list { list-style: none; margin: 0; padding: 0; }
.event-item a {
  display: grid; grid-template-columns: 4.4rem 1fr; gap: 1rem; align-items: center;
  padding: 0.7rem 0; color: var(--tinte); text-decoration: none; border-bottom: 1px solid var(--linie);
}
.event-item a:hover strong { text-decoration: underline; }
.event-text { display: flex; flex-direction: column; }
.event-text strong { font-size: 1.1rem; }
.datebadge {
  display: grid; justify-items: center; line-height: 1;
  background: var(--papier); border: 2px solid var(--see); border-radius: var(--radius-m);
  padding: 0.35rem 0 0.45rem; overflow: hidden;
}
.db-wd { font-size: 0.75rem; font-weight: 700; color: var(--grau); }
.db-d { font-size: 1.6rem; font-weight: 800; color: var(--see-tief); margin: 0.12rem 0; }
.db-m { font-size: 0.8rem; font-weight: 700; color: var(--see); }
.event-list-wide .event-item a { padding: 0.9rem 0; }

.month { margin-bottom: 2rem; }
.month-title { font-size: 1.2rem; color: var(--schilf); margin-bottom: 0.3rem; }

.event-facts { margin: 0 0 1.2rem; display: grid; gap: 0.6rem; }
.event-facts div, .facts div { display: grid; grid-template-columns: 5rem 1fr; gap: 0.6rem; }
.event-facts dt, .facts dt { font-weight: 700; color: var(--grau); }
.event-facts dd, .facts dd { margin: 0; font-weight: 700; }
.event-facts {
  background: var(--papier); padding: 1rem 1.1rem; border-radius: var(--radius-m);
  border-left: 6px solid var(--sonne);
}
.facts { margin: 0 0 1.5rem; display: grid; gap: 0.4rem; }
.facts div { grid-template-columns: 11rem 1fr; }
@media (max-width: 30rem) { .facts div { grid-template-columns: 1fr; gap: 0; } }
.review-section { background: var(--schilf-hell); padding: 1.1rem 1.2rem 0.4rem; border-radius: var(--radius-m); margin-bottom: 1.6rem; }
.review-fieldset { background: var(--schilf-hell); padding: 1rem; border-radius: var(--radius-m); }

.review-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}
.review-card { display: block; color: var(--tinte); text-decoration: none; }
.review-card img, .review-noimg {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-m);
}
.review-noimg { display: block; background: var(--see-hell); }
.review-text { display: flex; flex-direction: column; padding-top: 0.5rem; }
.review-card:hover strong { text-decoration: underline; }

/* ---------- Neuigkeiten, Tipps ---------- */

.post-list { border-top: 3px solid var(--see); }
.post-row {
  display: grid; grid-template-columns: 11rem 1fr; gap: 1.2rem;
  padding: 1.2rem 0; border-bottom: 1px solid var(--linie);
}
.post-row:not(:has(.post-row-img)) { grid-template-columns: 1fr; }
.post-row-img img { width: 11rem; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-s); }
.post-row h2 { font-size: 1.3rem; margin-bottom: 0.15rem; }
.post-row h2 a { color: var(--tinte); }
.post-row .meta { margin-bottom: 0.4rem; }
.post-row p:last-child { margin: 0; }
.post-row.is-pinned { background: linear-gradient(to right, var(--sonne-hell), transparent 70%); padding-left: 0.8rem; }
@media (max-width: 34rem) {
  .post-row { grid-template-columns: 1fr; }
  .post-row-img img { width: 100%; }
}
.pin { margin: 0 0 0.2rem; font-weight: 800; color: #7A5800; font-size: 0.9rem; }
.pin-quiet { color: var(--schilf); }

.topic-tiles {
  list-style: none; margin: 0 0 1rem; padding: 0;
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}
.topic-tile {
  display: flex; flex-direction: column; gap: 0.3rem; padding: 1.2rem;
  background: var(--papier); border-radius: var(--radius-l); text-decoration: none; color: var(--tinte);
  border: 2px solid transparent;
}
.topic-tile:hover { border-color: var(--see); color: var(--tinte); }
.topic-icon { width: 3rem; height: 3rem; fill: none; stroke: var(--see); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.topic-wandern .topic-icon { stroke: var(--see); }
.topic-gesundheit .topic-icon { stroke: var(--rot); }
.topic-garten .topic-icon { stroke: var(--schilf); }
.topic-name { font-size: 1.3rem; font-weight: 800; }

.article h1 { margin-bottom: 0.3rem; }
.article > .meta { margin-bottom: 1.4rem; }
.prose { font-size: 1.05rem; max-width: 38em; }
.prose p, .prose ul { margin: 0 0 1em; }
.prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.3rem; }
.prose h3 { margin-top: 1.5em; color: var(--see-tief); }

.gallery { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); margin: 0 0 1.6rem; }
.gallery-single { grid-template-columns: 1fr; }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-s); }
.gallery-single .gallery-item img { aspect-ratio: auto; max-height: 34rem; object-fit: contain; background: var(--see-hell); border-radius: var(--radius-m); }

.lightbox {
  border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
  background: rgba(10, 30, 36, 0.96);
}
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: rgba(10, 30, 36, 0.9); }
.lightbox img { flex: 1; min-height: 0; width: 100%; object-fit: contain; padding: 1rem; }
.lightbox-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.8rem 1rem 1.2rem; color: #fff; font-weight: 700;
}

/* ---------- Schwarzes Brett ---------- */

.filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.4rem; }
.filter a {
  display: inline-flex; align-items: center; min-height: 2.7rem; padding: 0.3rem 1rem;
  border: 2px solid var(--linie); border-radius: 999px; background: var(--papier);
  font-weight: 700; text-decoration: none; color: var(--tinte);
}
.filter a:hover { border-color: var(--see); }
.filter a[aria-current] { background: var(--see); border-color: var(--see); color: #fff; }

.tag {
  display: inline-block; font-size: 0.8rem; font-weight: 800; line-height: 1.2;
  padding: 0.22rem 0.6rem; border-radius: var(--radius-s);
  background: var(--see-hell); color: var(--see-tief);
}
.tag-suche { background: var(--schilf-hell); color: #2F4A1E; }
.tag-verschenke { background: var(--sonne-hell); color: #5E4300; }
.tag-done { background: #E5E5E5; color: #333; }

.board {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
}
.note a {
  display: flex; flex-direction: column; height: 100%;
  background: var(--papier); color: var(--tinte); text-decoration: none;
  border-radius: var(--radius-s); overflow: hidden;
  border-top: 0.45rem solid var(--see);
  box-shadow: 0 0.15rem 0 var(--linie);
}
.note-suche a { border-top-color: var(--schilf); }
.note-verschenke a { border-top-color: var(--sonne); }
.note a:hover { box-shadow: 0 0 0 2px var(--see); }
.note img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.note-body { display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; padding: 0.8rem 0.9rem 1rem; }
.note-title { font-size: 1.1rem; line-height: 1.3; }
.note-price { font-weight: 800; color: var(--see-tief); }

.price { font-size: 1.4rem; font-weight: 800; color: var(--see-tief); margin: -0.2rem 0 0.4rem; }

.contact-card {
  margin: 1.6rem 0; padding: 1.2rem; background: var(--see-hell); border-radius: var(--radius-m);
}
.contact-card h2 { font-size: 1.2rem; }
.contact-card p:last-child { margin-bottom: 0; }
.contact-name { font-weight: 700; }

.mine-list { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--see); }
.mine-item { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--linie); }
.mine-item:not(:has(img)) { grid-template-columns: 1fr; }
.mine-item img { width: 6rem; height: 6rem; object-fit: cover; border-radius: var(--radius-s); }
.mine-item h2 { font-size: 1.2rem; margin: 0.3rem 0 0.1rem; }
.mine-item.is-done { opacity: 0.75; }
.mine-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }

.empty-box {
  background: var(--papier); border-radius: var(--radius-m); padding: 1.6rem;
  border: 2px dashed var(--linie); text-align: left;
}

.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.6rem; flex-wrap: wrap; }

/* ---------- Konto und Verwaltung ---------- */

.passkey-list { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.passkey-list > li {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem;
  padding: 0.8rem 0; border-bottom: 1px solid var(--linie);
}
.pk-main { display: flex; align-items: center; gap: 0.8rem; }
.pk-main svg { width: 1.8rem; height: 1.8rem; fill: none; stroke: var(--see); stroke-width: 2; flex: none; }
.pk-main div { display: flex; flex-direction: column; }
.pk-more { width: 100%; }
.pk-more summary { cursor: pointer; color: var(--see); font-weight: 700; font-size: 0.9rem; }
.pk-more form { margin-top: 0.6rem; }
.device-options { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }

.qr-box { margin: 1rem 0; display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.qr { width: min(17rem, 80vw); background: #fff; padding: 0.4rem; border: 3px solid var(--tinte); border-radius: var(--radius-s); }
.qr svg { width: 100%; height: auto; display: block; }
.qr-box figcaption { width: 100%; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.qr-link { flex: 1 1 14rem; font-size: 0.8rem !important; }

.admin-list { list-style: none; margin: 0; padding: 0; }
.admin-list > li {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem;
  padding: 0.9rem 0; border-bottom: 1px solid var(--linie);
}
.admin-list > li > div:first-child { display: flex; flex-direction: column; }
.admin-actions { display: flex; gap: 0.5rem; }
.note-quote { margin: 0.4rem 0 0; padding-left: 0.8rem; border-left: 3px solid var(--linie); color: var(--grau); }
.search-row { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.admin-table th { text-align: left; color: var(--grau); font-size: 0.85rem; border-bottom: 2px solid var(--see); padding: 0.4rem 0.6rem 0.4rem 0; }
.admin-table td { padding: 0.6rem 0.6rem 0.6rem 0; border-bottom: 1px solid var(--linie); vertical-align: top; }
.admin-table .is-blocked td { color: var(--grau); }

.help-list { list-style: none; margin: 0; padding: 0; }
.help-list .is-done { opacity: 0.7; }
.help-list h2 { font-size: 1.2rem; }
.contact-line { font-size: 0.95rem; }

/* ---------- Fussbereich ---------- */

.sitefoot { background: var(--see-tief); color: #E3EEEC; margin-top: 2rem; }
.sitefoot-inner { max-width: 64rem; margin: 0 auto; padding: 1.6rem var(--gutter) 2rem; font-size: 0.9rem; }
.sitefoot p { margin: 0 0 0.4rem; }
.sitefoot a, .sitefoot .linklike { color: #fff; }
.sitefoot-links { display: flex; gap: 1.4rem; margin-top: 0.8rem; font-weight: 700; }

@media print {
  .masthead-user, .mainnav, .sitefoot, .actions, .editor-actions, .danger-zone { display: none; }
  body { background: #fff; }
}

/* ---------- Tipps: Einreichen, Prüfen, Rubriken ---------- */

.notice .notice-sub { font-weight: 400; }
.editor-bar { margin-bottom: 1.4rem; }
.plain-list { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.category-list { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.category-item { display: flex; flex-direction: column; gap: 0.8rem; }
.category-tools { gap: 0.5rem; }
.category-tools .inline-form { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.btn[disabled] { opacity: 0.45; cursor: default; }

/* ---------- Knopfleiste über Textfeldern ---------- */

.editor-bar-tools {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  padding: 0.45rem; margin-bottom: -2px;
  background: var(--see-hell); border: 2px solid var(--linie); border-bottom: 0;
  border-radius: var(--radius-s) var(--radius-s) 0 0;
}
.editor-bar-tools .tool {
  min-height: 2.6rem; padding: 0.3rem 0.85rem;
  font: inherit; font-weight: 700; color: var(--see-tief);
  background: var(--papier); border: 2px solid var(--linie); border-radius: var(--radius-s);
  cursor: pointer;
}
.editor-bar-tools .tool:hover { border-color: var(--see); }
.editor-bar-tools .tool[disabled] { opacity: 0.45; cursor: default; }
.editor-bar-tools .tool-preview { margin-left: auto; }
.editor-bar-tools .tool[aria-pressed="true"] { background: var(--see); border-color: var(--see); color: #fff; }
.editor-bar-tools + textarea { border-top-left-radius: 0; border-top-right-radius: 0; }
.editor-preview {
  min-height: 12rem; padding: 0.9rem 1.1rem;
  background: var(--papier); border: 2px solid var(--linie);
  border-radius: 0 0 var(--radius-s) var(--radius-s);
}

/* ---------- Benachrichtigungen (Mein Konto) ---------- */

.push-box {
  background: var(--see-hell); border-radius: var(--radius-m);
  padding: 1rem 1.2rem; margin: 1rem 0 1.6rem;
}
.push-box h3 { margin-top: 0; }
.push-box .actions { flex-wrap: wrap; }
.push-help { background: var(--papier); border-radius: var(--radius-s); padding: 0.8rem 1rem; margin-top: 0.8rem; }
.share-icon svg { width: 1.2em; height: 1.2em; vertical-align: -0.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
