:root {
  color-scheme: light;
  --green: #245447;
  --green-dark: #173b31;
  --green-soft: #e7efe9;
  --sand: #f7f3ea;
  --surface: #ffffff;
  --surface-alt: #f0eee6;
  --ink: #1d241f;
  --muted: #4a554c;
  --line: #d8d2c4;
  --error: #a4262c;
  --error-soft: #fbeaea;
  --warning-soft: #fff4d6;
  --warning-ink: #6b4b00;
  --info-soft: #e8f0f7;
  --info-ink: #1e4e6b;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(29, 36, 31, .06);
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand);
}
a { color: var(--green-dark); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--error); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: var(--space-4); top: var(--space-4); background: var(--surface); padding: .6rem var(--space-4); z-index: 10; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 var(--space-4); }
header, nav { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-8); align-items: center; justify-content: space-between; padding: var(--space-4); }
.brand { font-weight: 700; font-size: 1.25rem; }
nav ul { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); list-style: none; margin: 0; padding: 0 var(--space-4) var(--space-4); align-items: center; }
main { max-width: 1100px; margin: var(--space-8) auto var(--space-8); padding: 0 var(--space-4); }
h1, h2, h3 { line-height: 1.25; }
h1 { margin-top: 0; font-size: clamp(1.5rem, 4vw, 2rem); }
h2 { margin: var(--space-8) 0 var(--space-3); font-size: 1.25rem; }
p { margin: 0 0 var(--space-4); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-5); list-style: none; padding: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-5); box-shadow: var(--shadow); }
.card h2 { margin: .25rem 0; font-size: 1.2rem; }
.badge {
  display: inline-flex; align-items: center; gap: var(--space-1);
  border-radius: 999px; padding: .15rem .6rem;
  background: var(--surface-alt); color: var(--muted);
  font-size: .8125rem; font-weight: 600; line-height: 1.4; white-space: nowrap;
}
.badge::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: currentColor; opacity: .75; }
.badges { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.badge--draft { background: var(--warning-soft); color: var(--warning-ink); }
.badge--published, .badge--confirmed { background: var(--green-soft); color: var(--green-dark); }
.badge--archived { background: var(--surface-alt); color: var(--muted); }
.badge--waitlisted, .badge--membersonly { background: var(--info-soft); color: var(--info-ink); }
.badge--cancelled { background: var(--error-soft); color: var(--error); }
.muted { color: var(--muted); }
.event-image { display: block; width: 100%; height: auto; max-height: 22rem; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius); margin: var(--space-4) 0; background: var(--surface-alt); }
.event-card-image { max-height: 10rem; margin: var(--space-3) 0; }
.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; }
dl dt { font-weight: 600; }
dd { margin: 0 0 var(--space-2); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-5); box-shadow: var(--shadow); margin: var(--space-6) 0; }
.panel > :first-child { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--space-4) var(--space-5); }
.field { display: flex; flex-direction: column; gap: var(--space-1); }
.field-wide { grid-column: 1 / -1; }
form label { display: block; font-weight: 600; margin-top: var(--space-3); }
.field label, .checkbox { margin-top: 0; }
.hint { margin: 0; font-size: .875rem; color: var(--muted); }
input, textarea, select { width: 100%; max-width: 40rem; padding: .55rem .65rem; border: 1px solid #6d786f; border-radius: 4px; font: inherit; background: var(--surface); color: var(--ink); }
textarea { min-height: 8rem; }
.checkbox { display: flex; align-items: center; gap: var(--space-2); font-weight: 600; }
.checkbox input { width: auto; max-width: none; }
/* Button-Look für echte Buttons und für Links (GET-Navigation) gemeinsam. */
button, .button {
  background: var(--green); color: #fff; border: 1px solid var(--green);
  border-radius: 4px; padding: .6rem 1.1rem; font: inherit; font-weight: 600;
  cursor: pointer; transition: background-color .15s ease, border-color .15s ease;
}
button:hover, .button:hover { background: var(--green-dark); border-color: var(--green-dark); }
button.secondary, .button.secondary { background: var(--surface); color: var(--green-dark); border-color: var(--line); }
button.secondary:hover, .button.secondary:hover { background: var(--surface-alt); border-color: var(--muted); }
button.danger, .button.danger { background: var(--error); border-color: var(--error); color: #fff; }
button.danger:hover, .button.danger:hover { background: #7e1c21; border-color: #7e1c21; }
button.small, .button.small { padding: .35rem .65rem; font-size: .875rem; }
.button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; line-height: 1.4; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); align-items: center; }
.breadcrumb-nav { margin-bottom: var(--space-4); max-width: 100%; }
.breadcrumbs { display: flex; flex-wrap: nowrap; align-items: center; gap: var(--space-2); list-style: none; margin: 0; padding: 0 0 .15rem; font-size: .875rem; color: var(--muted); white-space: nowrap; overflow-x: auto; scrollbar-width: thin; }
.breadcrumbs li { flex: 0 0 auto; display: inline-flex; align-items: center; gap: var(--space-2); }
.breadcrumbs li + li::before { content: "›"; color: var(--muted); font-weight: 700; }
.breadcrumbs a { color: var(--green-dark); text-decoration-thickness: 1px; text-underline-offset: .15em; }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }
.toolbar { margin: var(--space-4) 0 var(--space-6); }
.actions p { margin: 0; }
.actions form { margin: 0; display: inline; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; min-width: 44rem; border-collapse: collapse; background: var(--surface); }
caption { text-align: left; padding: var(--space-3) var(--space-4); font-weight: 700; border-bottom: 1px solid var(--line); }
th, td { padding: var(--space-3) var(--space-4); text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { background: var(--surface-alt); color: var(--muted); font-size: .8125rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #faf9f5; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: var(--space-5); }
.honeypot { position: absolute; left: -9999px; }
.alert { padding: var(--space-4); border-left: 4px solid var(--error); background: var(--error-soft); border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: var(--space-5); }
.alert ul { margin: 0; padding-left: 1.25rem; }
.notice { padding: var(--space-3) var(--space-4); border-left: 4px solid var(--green); background: var(--green-soft); color: var(--green-dark); border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: var(--space-5); font-weight: 600; }
footer { border-top: 1px solid var(--line); background: var(--surface); padding: var(--space-6) 0; }
@media (max-width: 700px) {
  main { margin-top: var(--space-6); }
  .header-inner { padding: var(--space-3); }
  nav ul { gap: var(--space-2) var(--space-3); padding: 0 var(--space-3) var(--space-3); }
  .panel { padding: var(--space-4); }
  th, td { padding: var(--space-2) var(--space-3); }
  .form-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}