/* Prüßsee-Verein Güster e.V. – Stylesheet
   Farben aus dem Logo: Seeblau, Nachtblau, Gold (Wappen), Lindengrün */
:root {
  --navy: #0f3d5c;
  --lake: #1d6fa5;
  --lake-light: #e8f2f9;
  --gold: #f2c230;
  --gold-soft: #fbefc4;
  --green: #1e6b34;
  --green-soft: #e6f2e8;
  --ink: #1b2630;
  --muted: #5b6874;
  --line: #dde3e8;
  --bg: #fbfaf6;
  --white: #fff;
  --danger: #b3261e;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 61, 92, .06), 0 8px 24px rgba(15, 61, 92, .08);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-gutter: stable; overflow-y: scroll; } /* Bildlaufleiste immer einplanen → keine Breitensprünge */
body { margin: 0; font: 400 1.0625rem/1.65 var(--sans); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lake); text-underline-offset: .18em; }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }
h3 { font-size: 1.12rem; }
code { background: var(--lake-light); padding: .1em .35em; border-radius: 5px; font-size: .92em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(1160px, 100% - 2.5rem); } /* alle Seiten so breit wie die Startseite */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-tint { background: var(--lake-light); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.empty { color: var(--muted); font-style: italic; }
.right { text-align: right; }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--navy); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; font-family: var(--serif); }
.brand-text strong { font-size: 1.3rem; }
.brand-text span { font-size: .95rem; color: var(--muted); }
.main-nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.main-nav a { display: block; padding: .55rem .9rem; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; }
.main-nav a:hover { background: var(--lake-light); color: var(--navy); }
.main-nav a[aria-current="page"] { background: var(--navy); color: #fff; }
.main-nav .nav-intern { border: 1px solid var(--line); }
.nav-toggle { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 2px; background: var(--navy); position: relative; content: ""; }
.bars::before { position: absolute; top: -7px; } .bars::after { position: absolute; top: 7px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; inset: 76px 0 auto 0; background: var(--white); border-bottom: 1px solid var(--line); display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: .75rem 1.25rem 1.25rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background:
  radial-gradient(1200px 500px at 85% -10%, rgba(242, 194, 48, .28), transparent 60%),
  linear-gradient(160deg, var(--navy) 0%, #13507a 55%, var(--lake) 100%); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; padding-block: clamp(3rem, 8vw, 6rem) clamp(5rem, 10vw, 7rem); }
.hero-logo { width: clamp(140px, 22vw, 240px); filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .3)); }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; }
.hero .lead { color: #e3eef6; max-width: 46rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--gold); margin: 0 0 .5rem; }
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 60px; fill: var(--bg); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
@media (max-width: 700px) { .hero-inner { grid-template-columns: 1fr; text-align: center; } .hero-logo { margin-inline: auto; } .hero-actions { justify-content: center; } }

.lead { font-size: 1.18rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .4rem; background: var(--gold); color: var(--navy); border: 2px solid var(--gold); border-radius: 999px; padding: .6rem 1.3rem; font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { background: #ffd54d; color: var(--navy); transform: translateY(-1px); }
.btn-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--navy); }
.btn-ghost:hover { background: var(--lake-light); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #8f1d17; color: #fff; }
.btn-small { padding: .35rem .85rem; font-size: .9rem; }

/* ---------- Karten & Listen ---------- */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.25rem; }
.section-head h2 { margin: 0; }
.grid.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.5rem; }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.card-media { aspect-ratio: 16 / 9; background: var(--lake-light); display: block; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-placeholder { display: grid; place-items: center; height: 100%; background: linear-gradient(160deg, var(--lake-light), var(--gold-soft)); }
.card-placeholder img { width: 72px; height: 72px; transform: none !important; opacity: .9; }
.card-body { padding: 1.25rem 1.4rem 1.5rem; }
.card-body h3 { margin: .2rem 0 .5rem; }
.card-body h3 a { color: var(--navy); text-decoration: none; }
.card-body h3 a:hover { color: var(--lake); text-decoration: underline; }
.card-body p { margin: 0; color: var(--muted); }
.meta { color: var(--muted); font-size: .92rem; margin: 0; }

.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.info-box { background: var(--white); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); border-top: 5px solid var(--green); }
.link-list { padding-left: 1.1rem; }
.link-list li { margin: .35rem 0; }

.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.event-item { display: flex; gap: 1rem; align-items: center; background: var(--white); border-radius: 12px; padding: .8rem 1rem; box-shadow: var(--shadow); }
.event-title { font-weight: 600; color: var(--navy); text-decoration: none; }
.event-title:hover { text-decoration: underline; }
.date-badge { flex: 0 0 56px; height: 60px; border-radius: 10px; background: var(--navy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.date-badge .d { font: 700 1.45rem var(--serif); }
.date-badge .m { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin-top: 3px; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: .1rem .55rem; border-radius: 999px; background: var(--gold-soft); color: #6b5300; vertical-align: middle; }
.tag-ok { background: var(--green-soft); color: var(--green); }

/* ---------- Seitenkopf & Artikel ---------- */
.page-head { background: linear-gradient(180deg, var(--lake-light), var(--bg)); padding-block: clamp(2rem, 5vw, 3.5rem) 1rem; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: .75rem; }
.crumbs a { color: var(--muted); }
.prose { font-size: 1.08rem; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose blockquote { margin: 1.5rem 0; padding: .5rem 1.25rem; border-left: 4px solid var(--gold); background: var(--white); border-radius: 0 10px 10px 0; }
.prose img { border-radius: 10px; margin-block: 1rem; }
.prose li { margin: .25rem 0; }
.article-image { margin: 0 0 1.5rem; }
.article-image img { border-radius: var(--radius); width: 100%; }
.back { margin-top: 2.5rem; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.25rem; background: var(--white); padding: 1.25rem 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.facts dt { font-weight: 700; color: var(--navy); }
.facts dd { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.pager { display: flex; justify-content: center; gap: 1.5rem; margin-top: 2.5rem; align-items: center; }

/* ---------- Kalender ---------- */
.events-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 960px) { .events-layout { grid-template-columns: 1fr; } }
.calendar { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.cal-head h2 { margin: 0; }
.cal-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal-table th { font-size: .8rem; color: var(--muted); padding: .4rem; text-transform: uppercase; letter-spacing: .06em; }
.cal-table td { vertical-align: top; height: 92px; border: 1px solid var(--line); padding: .3rem; font-size: .85rem; }
.cal-table td.out { background: #f6f7f8; color: #a9b2ba; }
.cal-table td.today .num { background: var(--gold); color: var(--navy); border-radius: 999px; padding: 0 .45rem; font-weight: 700; }
.cal-table .num { display: inline-block; margin-bottom: .2rem; }
.cal-ev { display: block; background: var(--lake); color: #fff; border-radius: 6px; padding: .1rem .35rem; margin-bottom: 2px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .78rem; }
.cal-ev:hover { background: var(--navy); color: #fff; }
.cal-ev.internal { background: var(--green); }
@media (max-width: 600px) {
  .cal-table td { height: 54px; }
  .cal-ev { font-size: 0; width: 8px; height: 8px; padding: 0; border-radius: 50%; display: inline-block; }
}

/* ---------- Dateien ---------- */
table.files, table.list { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.files th, .files td, .list th, .list td { padding: .75rem 1rem; border-bottom: 1px solid var(--line); text-align: left; }
.files th, .list th { background: #f3f6f8; font-size: .85rem; color: var(--muted); font-weight: 600; }
.files td.right, .list td.right { text-align: right; }
.file { text-decoration: none; font-weight: 500; padding-left: 1.7rem; position: relative; display: inline-block; }
.file::before { content: ""; position: absolute; left: 0; top: .15em; width: 1.15rem; height: 1.25rem; border-radius: 3px; background: var(--lake-light); border: 1.5px solid var(--lake); }
.file.folder::before { background: var(--gold-soft); border-color: #c79a00; border-radius: 2px 6px 3px 3px; height: 1rem; top: .3em; }
.file.ext-pdf::before { border-color: var(--danger); background: #fdecea; }
.inactive td { opacity: .55; }
@media (max-width: 640px) { .hide-sm { display: none; } }

/* ---------- Formulare ---------- */
.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: .35rem; font-weight: 600; color: var(--navy); font-size: .95rem; }
.form label small { font-weight: 400; color: var(--muted); }
.form label.check { display: flex; align-items: center; gap: .55rem; font-weight: 500; color: var(--ink); }
input, textarea, select { font: inherit; font-weight: 400; color: var(--ink); width: 100%; padding: .65rem .8rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
input[type="checkbox"] { width: 1.15rem; height: 1.15rem; accent-color: var(--lake); }
input[type="file"] { padding: .5rem; background: #f7f9fa; }
input:focus, textarea:focus, select:focus { border-color: var(--lake); outline: 3px solid rgba(29, 111, 165, .18); }
textarea { resize: vertical; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .95rem; }
fieldset { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; display: grid; gap: .6rem; }
legend { font-weight: 700; color: var(--navy); padding: 0 .4rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } }
.counter { color: var(--muted); font-size: .82rem; margin-top: -.6rem; }
.md-help { background: var(--lake-light); border-radius: 10px; padding: .6rem 1rem; font-size: .9rem; }
.md-help summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.thumb { max-width: 260px; border-radius: 10px; }
.danger-zone { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px dashed var(--line); }

.auth-box { max-width: 440px; }

/* ---------- Meldungen ---------- */
.flashes { padding-top: 1rem; }
.flash { padding: .8rem 1.1rem; border-radius: 10px; margin: 0 0 1rem; border-left: 5px solid var(--lake); background: var(--lake-light); }
.flash p { margin: .2rem 0; }
.flash-success { border-color: var(--green); background: var(--green-soft); }
.flash-error { border-color: var(--danger); background: #fdecea; }
.flash-warning { border-color: #c79a00; background: var(--gold-soft); }

.error-page { text-align: center; }
.error-code { font: 700 5rem/1 var(--serif); color: var(--gold); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--navy); color: #cfdde8; margin-top: 4rem; padding-bottom: 1.5rem; }
.footer-wave { position: absolute; top: -59px; left: 0; width: 100%; height: 60px; fill: var(--navy); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-top: 2.5rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.footer-title { font: 700 1.1rem var(--serif); color: var(--gold); margin-bottom: .5rem; }
.copyright { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 2rem; padding-top: 1rem; font-size: .88rem; }

/* ---------- Interner Bereich ---------- */
body.admin { background: #f3f6f8; }
.admin-top { display: flex; justify-content: space-between; align-items: center; padding: .6rem 1.25rem; background: var(--navy); color: #fff; }
.brand-small { color: #fff; font-weight: 600; }
.brand-small:hover { color: var(--gold); }
.admin-user { display: flex; align-items: center; gap: .75rem; }
.admin-user .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .4); }
.admin-user .btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 56px); }
.admin-nav { background: var(--white); border-right: 1px solid var(--line); padding: 1rem .75rem; }
.admin-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.admin-nav a { display: block; padding: .55rem .85rem; border-radius: 8px; text-decoration: none; color: var(--ink); }
.admin-nav a:hover { background: var(--lake-light); }
.admin-nav a[aria-current="page"] { background: var(--navy); color: #fff; }
.admin-main { padding: clamp(1.25rem, 3vw, 2.5rem); max-width: 1000px; }
.admin-main h1 { font-size: 1.9rem; margin: 0; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.tile { background: var(--white); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); border-top: 4px solid var(--lake); }
.tile strong { display: block; font: 700 1.8rem var(--serif); color: var(--navy); }
.tile:hover { border-top-color: var(--gold); }
.quick { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 2rem; }
.panel { background: var(--white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.file-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.5rem; }
.inline-form { background: var(--white); padding: 1.25rem; border-radius: var(--radius); box-shadow: var(--shadow); align-content: start; }
.secret { font-size: 1.05rem; letter-spacing: .05em; word-break: break-all; }
.steps li { margin-bottom: .75rem; }
@media (max-width: 800px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav { border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-nav ul { display: flex; flex-wrap: wrap; }
  .file-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .hero-wave, .btn { display: none !important; } body { background: #fff; } }

/* Vorstand: Hinweiszeile klein und einzeilig */
.prose-vorstand > p:last-of-type em { font-size: .85rem; color: var(--muted); }
@media (max-width: 480px) { .prose-vorstand > p:last-of-type em { font-size: .72rem; letter-spacing: -.01em; } }
.site-footer .footer-legal { margin-top: .75rem; }
.row-actions { display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; }
