@font-face { font-family: "Grandstander"; src: url("fonts/grandstander.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("fonts/atkinson-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("fonts/atkinson-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --papier: #fafbf5; --flaeche: #ffffff; --tinte: #1c3426; --muted: #566a5b; --linie: #d6decb;
  --wiese: #3e7b3a; --wiese-tief: #24502a; --zelt: #f2b705; --see: #2b6c8c; --beere: #b8436e; --warn: #9a5b00;
  --display: "Grandstander", "Comic Neue", "Trebuchet MS", sans-serif;
  --text: "Atkinson", "Segoe UI", system-ui, sans-serif;
  --r: 12px; --wrap: 72rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --papier: #122019; --flaeche: #1a2a21; --tinte: #e6eedf; --muted: #9db0a2; --linie: #2f4236;
    --wiese: #86c27a; --wiese-tief: #0d2416; --zelt: #f5c842; --see: #79b4d3; --beere: #e07aa3; --warn: #f0b45c;
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: env(safe-area-inset-top, 0px); }
body { margin: 0; background: var(--papier); color: var(--tinte); font: 1.0625rem/1.6 var(--text); padding-bottom: env(safe-area-inset-bottom, 0px); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--see); text-underline-offset: .15em; }
:focus-visible { outline: 3px solid var(--zelt); outline-offset: 2px; border-radius: 4px; }
small, .muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--zelt); color: #1c3426; padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; top: calc(env(safe-area-inset-top, 0px) + .5rem); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Buttons */
.btn, .btn-ghost, .btn-small { display: inline-block; font: 700 1rem/1.2 var(--text); border-radius: 999px; padding: .8em 1.4em; cursor: pointer; text-decoration: none; border: 2px solid var(--tinte); }
.btn { background: var(--zelt); color: #1c3426; border-color: #1c3426; box-shadow: 3px 3px 0 #1c3426; transition: transform .1s, box-shadow .1s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #1c3426; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #1c3426; }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-small { padding: .45em 1em; font-size: .9rem; background: var(--tinte); color: var(--papier); border-color: var(--tinte); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--see); font: inherit; font-size: .92rem; text-decoration: underline; text-underline-offset: .15em; cursor: pointer; }
.danger { color: var(--beere); }
.x { background: none; border: 0; color: var(--muted); font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 0 .3rem; }
.x:hover { color: var(--beere); }
form.inline { display: inline; }

/* Öffentliche Seite */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + .75rem) max(1.25rem, calc((100% - var(--wrap)) / 2)) .75rem; background: color-mix(in srgb, var(--papier) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linie); }
.logo { display: inline-flex; align-items: center; gap: .6rem; font: 700 1.35rem/1 var(--display); color: var(--tinte); text-decoration: none; }
.logo img { width: 3rem; height: 3rem; border-radius: 50%; background: #fff; flex: none; }
.sidenav .logo img { width: 3.4rem; height: 3.4rem; }
.topbar nav { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }
.topbar nav a { color: var(--tinte); text-decoration: none; font-weight: 700; }
.topbar nav a:not(.btn-ghost):hover { text-decoration: underline; }
.topbar .btn-ghost { padding: .4em 1em; }

.hero { position: relative; padding: 0 max(1.25rem, calc((100% - var(--wrap)) / 2)) clamp(3rem, 8vw, 6rem); overflow: hidden; }
.wimpelkette { display: block; width: calc(100% + 2.5rem); margin: 0 -1.25rem; height: clamp(56px, 9vw, 96px); color: var(--muted); }
.wimpel { transform-box: fill-box; transform-origin: 50% 0; animation: wehen 2.4s ease-out both; animation-delay: calc(var(--i) * 60ms); }
@keyframes wehen { 0% { transform: rotate(0) scaleY(0); } 40% { transform: rotate(8deg) scaleY(1.05); } 70% { transform: rotate(-4deg); } 100% { transform: rotate(0); } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; }
.hero-logo { width: clamp(14rem, 26vw, 21rem); height: auto; border-radius: 50%; background: #fff; margin-top: 2rem; }
@media (max-width: 52rem) { .hero-grid { grid-template-columns: 1fr; } .hero-logo { order: -1; width: 7rem; margin-top: 1rem; } }
.hero-text { max-width: 46rem; padding-top: clamp(1.5rem, 5vw, 3.5rem); }
.hero h1 { font-size: clamp(2.5rem, 7vw, 5rem); line-height: 1.02; letter-spacing: -.01em; margin-bottom: .4em; }
.lead { font-size: clamp(1.15rem, 2vw, 1.35rem); max-width: 38rem; }
.when { font-size: 1.05rem; border-left: 4px solid var(--zelt); padding-left: .8rem; }
.note { max-width: 38rem; }
.cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.75rem; }

.band { padding: clamp(2.5rem, 6vw, 4.5rem) max(1.25rem, calc((100% - var(--wrap)) / 2)); }
.band.narrow { max-width: 34rem; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.band-wiese { background: var(--wiese-tief); color: #eef4e8; }
.band-wiese .intro, .band-wiese small { color: #b9cdb6; }
.band-zelt { background: var(--zelt); color: #1c3426; }
.band-zelt a { color: #1c3426; }
.band-zelt .btn { background: #1c3426; color: #fafbf5; box-shadow: 3px 3px 0 #fafbf5; }
.intro { max-width: 40rem; }
.cols3 { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.cols3 p { max-width: 34ch; }
.fact { font: 600 1.4rem var(--display); margin-top: 1.5rem; }
.two { display: grid; gap: 3rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }

.days { display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin-top: 1.5rem; }
.day h3 { color: var(--zelt); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 3.4rem 1fr; gap: .5rem; padding: .35rem 0; border-top: 1px solid rgba(255,255,255,.14); }
.timeline time, .plan time { font-family: var(--display); }
.timeline time { font-variant-numeric: tabular-nums; color: #b9cdb6; }
.timeline .k-frei span { color: #b9cdb6; font-style: italic; }

.rules { padding-left: 1.3rem; }
.rules li { margin-bottom: .7rem; }
.packliste { columns: 1; padding-left: 1.1rem; }
.packliste li { margin-bottom: .35rem; }

.faq details { border-top: 1px solid var(--linie); padding: .9rem 0; max-width: 46rem; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: .6rem 0 0; }

.sitefoot { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; padding: 2rem max(1.25rem, calc((100% - var(--wrap)) / 2)) calc(2rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--linie); color: var(--muted); font-size: .95rem; }
.sitefoot nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.prose h2 { font-size: 1.3rem; margin-top: 1.8rem; }

/* Formulare */
.form { display: grid; gap: 1rem; max-width: 46rem; }
.form.compact { gap: .7rem; }
.form > button { justify-self: start; }
.sidenav { align-self: start; }
label { display: grid; gap: .3rem; font-weight: 700; font-size: .95rem; }
label small { font-weight: 400; }
input, select, textarea { font: 400 1rem/1.4 var(--text); color: var(--tinte); background: var(--flaeche); border: 2px solid var(--linie); border-radius: 8px; padding: .6rem .7rem; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--see); outline: none; }
.band-zelt input, .band-zelt textarea { background: #fffdf3; color: #1c3426; border-color: #1c3426; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 700; margin-bottom: .4rem; }
.choice { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }
.choice legend { width: 100%; }
.choice label, label.check { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; }
input[type=radio], input[type=checkbox] { width: 1.2rem; height: 1.2rem; margin: .15rem 0 0; accent-color: var(--wiese); flex: none; }
.grid2, .grid3, .grid4 { display: grid; gap: 1rem; }
.grid2 { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.grid3 { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.grid4 { grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); }
.grid2.top { align-items: start; }
.err { color: var(--beere); font-weight: 700; font-size: .9rem; }
.band-zelt .err { color: #7a0f3a; }
.has-error input[type=checkbox] { outline: 2px solid var(--beere); }
.hp { position: absolute; left: -5000px; }

.flash { margin: 1rem auto; max-width: var(--wrap); padding: .8rem 1rem; border-radius: 8px; border-left: 5px solid var(--wiese); background: color-mix(in srgb, var(--wiese) 14%, var(--papier)); }
.form-msg { margin: 0 0 1.5rem; max-width: 46rem; font-weight: 700; color: #1c3426; background: #fffdf3; }
.public > .flash { margin: 1rem max(1.25rem, calc((100% - var(--wrap)) / 2)); }
.flash-err { border-color: var(--beere); background: color-mix(in srgb, var(--beere) 12%, var(--papier)); }

/* Interner Bereich */
.shell { display: grid; grid-template-columns: 15rem 1fr; min-height: 100vh; }
.sidenav { background: var(--wiese-tief); color: #eef4e8; padding: calc(env(safe-area-inset-top, 0px) + 1.25rem) 1rem 1.5rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidenav .logo { color: #f5c842; font-size: 1.6rem; }
.sidenav .sub { font-size: .85rem; color: #b9cdb6; margin: .3rem 0 1.25rem; }
.sidenav nav a, .sidenav .linkbtn { display: block; color: #eef4e8; text-decoration: none; padding: .45rem .7rem; border-radius: 8px; font-weight: 700; text-align: left; width: 100%; }
.sidenav nav a:hover { background: rgba(255,255,255,.08); }
.sidenav nav a[aria-current] { background: #f5c842; color: #1c3426; }
.sidenav .linkbtn { font-weight: 400; font-size: .9rem; color: #b9cdb6; }
.sidenav hr { border: 0; border-top: 1px solid rgba(255,255,255,.15); margin: 1rem 0; }
.navtoggle { display: none; }
.content { padding: calc(env(safe-area-inset-top, 0px) + 2rem) clamp(1.25rem, 4vw, 3rem) 4rem; max-width: 60rem; min-width: 0; }
.content > .flash { margin: 0 0 1rem; }
.content h2 { font-size: 1.4rem; margin-top: 2rem; }
.panel { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r); padding: 1rem 1.2rem; margin: 0 0 1rem; }
.panel h2 { margin-top: 0; font-size: 1.2rem; }
.panel.orga { border-left: 5px solid var(--zelt); }
details > summary { cursor: pointer; }
details.panel > summary + * { margin-top: 1rem; }
.callout { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; background: color-mix(in srgb, var(--zelt) 22%, var(--papier)); border: 2px solid var(--zelt); border-radius: var(--r); padding: .9rem 1.2rem; margin-bottom: 1rem; }
.callout p { margin: 0; font-weight: 700; }
.stats { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin: 1rem 0 1.5rem; }
.stats p { margin: 0; color: var(--muted); }
.stats strong { display: block; font: 700 1.9rem/1.1 var(--display); color: var(--tinte); }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: .5rem 0; border-top: 1px solid var(--linie); }
.list li:first-child { border-top: 0; }
.list.small { font-size: .9rem; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: .1em .6em; border-radius: 999px; background: color-mix(in srgb, var(--tinte) 9%, transparent); color: var(--tinte); white-space: nowrap; vertical-align: .1em; }
.tag-warn { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.tag-favorit, .tag-zugesagt { background: color-mix(in srgb, var(--wiese) 22%, transparent); color: var(--wiese); }
.tag-verworfen, .tag-abgesagt { background: color-mix(in srgb, var(--beere) 15%, transparent); color: var(--beere); }
.tag-neu { background: var(--zelt); color: #1c3426; }
.row { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.filter a { padding: .35em .9em; border-radius: 999px; border: 2px solid var(--linie); text-decoration: none; color: var(--tinte); font-weight: 700; font-size: .92rem; }
.filter a[aria-current] { border-color: var(--tinte); background: var(--tinte); color: var(--papier); }
blockquote { margin: .5rem 0 1rem; padding-left: 1rem; border-left: 3px solid var(--linie); }

.tablewrap { overflow-x: auto; margin-bottom: 1.5rem; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
th { font-size: .85rem; color: var(--muted); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.neg { color: var(--beere); font-weight: 700; }
.pos { color: var(--wiese); font-weight: 700; }
tr.inactive { opacity: .5; }

.dayplan h2 { border-bottom: 3px solid var(--zelt); padding-bottom: .3rem; display: inline-block; }
.plan { list-style: none; padding: 0; margin: 0; }
.plan > li { display: grid; grid-template-columns: 7.8rem 1fr; gap: .8rem; padding: .7rem 0; border-top: 1px solid var(--linie); }
.plan time { font-variant-numeric: tabular-nums; color: var(--muted); padding-top: .1rem; }
.plan .k-mahlzeit strong::before { content: "🍲 "; }
.plan .k-frei { color: var(--muted); }
.duty { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: .45rem 0 0; }
.who { display: inline-flex; align-items: center; gap: .2rem; padding: .15em .7em; border-radius: 999px; background: color-mix(in srgb, var(--see) 14%, transparent); font-size: .9rem; }
.who.me { background: var(--zelt); color: #1c3426; font-weight: 700; }
.who.empty { background: none; border: 2px dashed var(--linie); color: var(--muted); }
.edit { margin-top: .5rem; font-size: .9rem; }
.edit > summary { color: var(--see); }
.edit .form { margin: .7rem 0; }

.checklist { list-style: none; padding: 0; margin: 0 0 1rem; }
.checklist li { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; padding: .55rem 0; border-top: 1px solid var(--linie); }
.checklist li > span:first-of-type { flex: 1 1 12rem; }
.checklist li.done > span:first-of-type { color: var(--muted); }
.tick { width: 1.6rem; height: 1.6rem; border-radius: 6px; border: 2px solid var(--tinte); background: var(--flaeche); color: var(--wiese); font-weight: 700; cursor: pointer; line-height: 1; }
.checklist li.done .tick { background: var(--wiese); color: var(--papier); border-color: var(--wiese); }

.idea { display: grid; grid-template-columns: 3.4rem 1fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--linie); }
.idea.s-verworfen { opacity: .55; }
.idea h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.idea .meta { font-size: .85rem; color: var(--muted); margin-bottom: .4rem; }
.vote button { display: grid; justify-items: center; width: 3.2rem; padding: .35rem 0; border: 2px solid var(--linie); border-radius: 10px; background: var(--flaeche); color: var(--muted); cursor: pointer; font: inherit; }
.vote button[aria-pressed=true] { border-color: var(--wiese); background: var(--wiese); color: var(--papier); }
.vote strong { font: 700 1.2rem var(--display); }
.comment { font-size: .95rem; margin: .5rem 0; }

@media (max-width: 52rem) {
  .shell { grid-template-columns: 1fr; }
  .sidenav { position: sticky; height: auto; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: calc(env(safe-area-inset-top, 0px) + .6rem) 1rem .6rem; }
  .sidenav .sub { display: none; }
  .navtoggle { display: block; background: none; color: #eef4e8; border: 2px solid #eef4e8; border-radius: 999px; padding: .35em 1em; font: 700 .95rem var(--text); }
  #navlist { display: none; width: 100%; padding-top: .7rem; }
  #navlist.open { display: block; }
  .content { padding-top: 1.5rem; }
  .plan > li { grid-template-columns: 1fr; gap: .1rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
