/* Wunderland Bretten
   Farben und Schriften übernommen aus der bisherigen Website. */

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin-wght-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Quicksand";
  src: url("../fonts/quicksand-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --sage: #839f90;
  --sage-dark: #6f8a7c;
  --forest: #38443d;
  --brown: #463e34;
  --gold: #9b7d29;
  --sand: #e3e0d7;
  --mint: #cbe6d7;
  --cream: #f8fffb;
  --white: #ffffff;
  --beige: #f6f0e6;
  --beige-deep: #ece3d3;
  --line: #e0d6c4;
  --error: #a23b2a;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Quicksand", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 32px;
  --radius-sm: 14px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--sage);
  color: var(--brown);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 450;
}

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

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--gold); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 1.4rem + 4.2vw, 4.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 16px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.eyebrow--light { color: var(--mint); }

.lead { font-size: 1.15rem; line-height: 1.55; }
.muted { opacity: 0.7; font-size: 0.9rem; }
.rounded img, img.rounded { border-radius: var(--radius); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5em;
  padding: 0.95rem 1.9rem;
  border: 2px solid var(--brown);
  border-radius: 999px;
  background: var(--brown);
  color: var(--white);
  font: 600 0.95rem/1.2 var(--sans);
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--forest); border-color: var(--forest); color: var(--white); }
.btn[disabled] { opacity: .45; cursor: default; pointer-events: none; }
.btn--secondary { background: var(--forest); border-color: var(--forest); }
.btn--secondary:hover { background: var(--brown); border-color: var(--brown); }
.btn--outline { background: transparent; color: var(--brown); }
.btn--outline:hover { background: var(--brown); border-color: var(--brown); color: var(--white); }
.btn--header { background: var(--brown); border-color: var(--brown); color: var(--white); padding: 0.7rem 1.4rem; }
.btn--header:hover, .btn--header[aria-current="page"] { background: var(--forest); border-color: var(--forest); color: var(--white); }
.btn--small { padding: 0.6rem 1.2rem; font-size: .88rem; }
.btn--confirm { background: #3f6b52; border-color: #3f6b52; }
.btn--confirm:hover { background: #2f523e; border-color: #2f523e; }
.btn--decline { background: transparent; border-color: var(--error); color: var(--error); }
.btn--decline:hover { background: var(--error); border-color: var(--error); color: var(--white); }

.link-arrow {
  display: inline-block; font-weight: 600; color: var(--gold); text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { color: var(--brown); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--sage); border-bottom: 1px solid rgba(255,255,255,.18); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand {
  font-family: var(--serif); font-size: 1.55rem; font-weight: 500; color: var(--white);
  text-decoration: none; text-shadow: 0 0 40px rgba(0,0,0,.2); white-space: nowrap;
}
.brand:hover { color: var(--white); }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: var(--white); text-decoration: none; font-weight: 500; padding-block: 6px; border-bottom: 1px solid transparent; }
.site-nav ul a:hover { color: var(--brown); }
.site-nav ul a[aria-current="page"] { border-bottom-color: var(--white); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle__bar { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 16px;
    background: var(--sage); padding: 8px var(--gutter) 24px;
    border-bottom: 1px solid rgba(255,255,255,.18);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 12px 0; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.15); }
  .site-nav ul a[aria-current="page"] { border-bottom-color: rgba(255,255,255,.15); color: var(--brown); }
  .site-nav__cta { align-self: flex-start; }
}

/* Sections */
.section { padding-block: clamp(48px, 7vw, 96px); }
.section--panel > .container {
  background: var(--beige);
  border-radius: clamp(24px, 4vw, 60px);
  padding: clamp(28px, 5vw, 72px);
  max-width: calc(var(--container) - 0px);
}
.section--panel { padding-inline: var(--gutter); }
.section--panel + .section--panel { padding-top: 0; }
.section__head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head p:last-child { margin-bottom: 0; }
.section:not(.section--panel) { color: var(--white); font-weight: 500; }
.section:not(.section--panel) h2 { color: var(--white); }
.section:not(.section--panel) .eyebrow { color: var(--sand); }

/* Hero */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(48px, 7vw, 96px); color: var(--white); font-weight: 500; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { color: var(--white); }
.hero .eyebrow { color: var(--sand); }
.hero .lead { max-width: 30rem; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: end; }
.hero__img img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.hero__img--main img { aspect-ratio: 3 / 4; }
.hero__img--side img { aspect-ratio: 3 / 4.6; }
.hero__img--side { margin-bottom: 48px; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 560px; }
}

/* Values */
.values { background: var(--forest); color: var(--sand); padding-block: clamp(56px, 8vw, 112px); }
.values__title { color: var(--white); margin-bottom: clamp(32px, 5vw, 56px); }
.values__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.value h3 { color: var(--mint); font-size: 1.3rem; margin-bottom: 0.4em; }
.value p { margin: 0; font-size: 0.98rem; opacity: .9; }
.value__icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--sage); margin-bottom: 20px;
}
.value__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--white); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) { .values__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .values__list { grid-template-columns: 1fr; } }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split__media { max-width: 520px; } }

.course-teaser { list-style: none; padding: 0; margin: 1.5rem 0 2rem; border-top: 1px solid rgba(255,255,255,.3); }
.course-teaser li {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.3); color: var(--white);
}
.course-teaser li a { font-family: var(--serif); font-size: 1.15rem; color: var(--white); text-decoration: none; }
.course-teaser li a:hover { text-decoration: underline; text-underline-offset: 4px; }
.course-teaser li span { color: var(--sand); font-size: 0.95rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.gallery__item--tall { grid-row: span 2; }
.gallery__item:nth-child(2) { grid-column: span 2; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .gallery__item:nth-child(2) { grid-column: auto; }
}

/* CTA band */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.3); padding-top: clamp(32px, 5vw, 56px) !important;
}
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { margin: 0; }

/* Page intro */
.page-intro { padding-block: clamp(40px, 6vw, 80px) clamp(32px, 4vw, 56px); color: var(--white); }
.page-intro h1 { color: var(--white); max-width: 16em; margin-bottom: 0; }
.page-intro .eyebrow { color: var(--sand); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.about__media { position: sticky; top: 108px; }
.about__media img { width: 100%; aspect-ratio: 9 / 14; object-fit: cover; }
.signature { font-family: var(--serif); font-style: italic; font-size: 1.15rem; margin-top: 1.6em; }
.signature span { display: inline-block; margin-top: .4em; color: var(--gold); font-size: 1.5rem; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about__media { position: static; max-width: 380px; }
}
.prose { max-width: 42rem; }
.prose--legal { max-width: none; }
.prose--legal > * { max-width: 46rem; }
.prose--legal h2 { font-size: 1.45rem; margin-top: 2em; }
.prose--legal h2:first-child { margin-top: 0; }
.prose--legal ul { padding-left: 1.2em; }
.prose--legal li { margin-bottom: .6em; }
.todo { background: #fff3c4; padding: 0 .25em; border-radius: 3px; }

/* Courses */
.course-index { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.course-index a {
  color: var(--white); background: var(--forest); text-decoration: none; font-size: .92rem; font-weight: 600;
  padding: 9px 18px; border-radius: 999px;
}
.course-index a:hover { background: var(--brown); color: var(--white); }

.course {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: center;
  scroll-margin-top: 100px;
}
.course + .course { margin-top: clamp(48px, 7vw, 96px); padding-top: clamp(48px, 7vw, 96px); border-top: 1px solid var(--line); }
.course--reverse .course__media { order: 2; }
.course__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.course h2 { color: var(--sage-dark); font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3.2rem); }
.course__facts { display: flex; flex-wrap: wrap; gap: 0; margin: 1.6rem 0 1.8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.course__facts div { flex: 1 1 120px; padding: 14px 18px; }
.course__facts div + div { border-left: 1px solid var(--line); }
.course__facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); font-weight: 600; }
.course__facts dd { margin: 2px 0 0; font-family: var(--serif); font-size: 1.2rem; }
@media (max-width: 860px) {
  .course { grid-template-columns: 1fr; }
  .course--reverse .course__media { order: 0; }
  .course__media img { aspect-ratio: 4 / 3; }
}

/* Schedule */
.schedule { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.schedule__day h3 {
  background: var(--forest); color: var(--white); text-align: center;
  font-size: 1.15rem; padding: 12px; border-radius: var(--radius-sm); margin-bottom: 12px;
}
.schedule__day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.schedule__day li {
  background: var(--beige); color: var(--brown); border-radius: var(--radius-sm); padding: 12px 14px;
  display: flex; flex-direction: column; text-align: center;
}
.schedule--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.schedule--7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.schedule__name { font-weight: 600; line-height: 1.3; color: var(--brown); }
a.schedule__name { text-decoration: underline; text-decoration-color: var(--sage); text-underline-offset: 3px; }
.schedule__time { font-size: .9rem; color: var(--sage-dark); font-weight: 600; }
.schedule__info { font-size: .82rem; opacity: .8; margin-top: 2px; }
.schedule__empty { text-align: center; font-size: .9rem; opacity: .6; }
@media (max-width: 980px) { .schedule, .schedule--6, .schedule--7 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); }
.contact__aside h2 { font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.3rem); }
.contact__direct { margin: 1.6rem 0 2rem; display: grid; gap: 14px; }
.contact__direct dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); font-weight: 600; }
.contact__direct dd { margin: 0; font-size: 1.05rem; word-break: break-word; }
.contact__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
  .contact__img { display: none; }
}

.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field__opt { font-weight: 400; opacity: .65; font-size: .85rem; margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--brown);
  background: var(--white); border: 1px solid #cfc3ad; border-radius: 12px;
  padding: 12px 14px; transition: border-color .15s, background-color .15s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sage); background: var(--white); box-shadow: 0 0 0 3px rgba(131,159,144,.25); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error { color: var(--error); font-size: .88rem; margin: 0; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field--check { grid-template-columns: auto 1fr; align-items: start; column-gap: 12px; }
.field--check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--sage-dark); }
.field--check label { font-weight: 400; font-size: .92rem; line-height: 1.5; }
.field--check .field__error { grid-column: 2; }
.form .btn { justify-self: start; }
.form .btn[disabled] { opacity: .6; cursor: wait; }
.form__alert { background: #f8e9e5; color: var(--error); border-radius: 12px; padding: 14px 16px; font-size: .95rem; }
.form-success { background: var(--white); border-left: 4px solid var(--sage); border-radius: 12px; padding: 24px 28px; }
.form-success h3 { margin-bottom: .4em; }
.form-success p { margin: 0; }

/* Footer */
.site-footer { color: var(--cream); padding-block: 56px 28px; border-top: 1px solid rgba(255,255,255,.25); }
.site-footer__inner { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 32px; }
.site-footer__name { font-family: var(--serif); font-size: 1.6rem; color: var(--white); margin-bottom: .2em; }
.site-footer__claim { margin: 0; color: var(--sand); }
.site-footer__nav, .site-footer__contact { display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--brown); }
.site-footer__legal {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.2);
  font-size: .88rem; color: var(--sand);
}
.site-footer__legal a { margin-left: 18px; }
.site-footer__legal a:first-child { margin-left: 0; }
@media (max-width: 760px) { .site-footer__inner { grid-template-columns: 1fr; } }

.course__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }

/* Buchung */
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.pick__item {
  display: flex; flex-direction: column; background: var(--white); border-radius: 20px; overflow: hidden;
  text-decoration: none; color: var(--brown); border: 1px solid var(--line); transition: border-color .2s, transform .2s;
}
.pick__item:hover { color: var(--brown); border-color: var(--sage); transform: translateY(-2px); }
.pick__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pick__body { display: grid; gap: 4px; padding: 18px 20px 22px; }
.pick__title { font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; }
.pick__facts { font-size: .9rem; opacity: .8; }
.pick__dates { margin-top: 8px; font-weight: 600; color: var(--forest); font-size: .92rem; }

.booking { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.booking__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.booking__aside .course__facts { background: var(--white); margin-top: 20px; }
.booking__aside p { margin: 0 0 .5em; }
@media (max-width: 860px) {
  .booking { grid-template-columns: 1fr; }
  .booking__aside { display: grid; grid-template-columns: 140px 1fr; gap: 0 16px; align-items: start; }
  .booking__img { grid-row: span 3; }
  .booking__aside .course__facts { margin-top: 0; }
  .booking__aside .course__facts div { flex-basis: 90px; padding: 10px 12px; }
}
.link-back { color: var(--forest); font-weight: 600; text-decoration: none; font-size: .92rem; }
.link-back::before { content: "\2190  "; }
.link-back:hover { color: var(--gold); }

.dates { border: 0; padding: 0; margin: 0; gap: 10px; }
.dates legend { font-weight: 600; font-size: .95rem; margin-bottom: 10px; padding: 0; }
.date-option { background: var(--white); border: 1px solid #cfc3ad; border-radius: 14px; padding: 14px 16px; }
.date-option__pick { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; cursor: pointer; }
.date-option:has(input:checked) { border-color: var(--forest); box-shadow: 0 0 0 2px var(--forest) inset; }
.date-option input { width: 20px; height: 20px; accent-color: var(--forest); margin: 0; }
.date-option__body { display: grid; }
.date-option__label { font-weight: 600; }
.date-option__info { font-size: .88rem; opacity: .8; }
.date-option__seats { font-size: .85rem; font-weight: 600; color: #3f6b52; white-space: nowrap; }
.date-option__seats.is-full { color: var(--gold); }
.date-option__all { margin: 10px 0 0 34px; font-size: .9rem; }
.date-option__all summary { cursor: pointer; color: var(--forest); font-weight: 600; }
.date-option__all ol { margin: 8px 0 0; padding-left: 1.4em; columns: 2; column-gap: 24px; }
.dates__more { font-size: .92rem; margin: 4px 0 0; }
@media (max-width: 480px) {
  .date-option__pick { grid-template-columns: auto 1fr; }
  .date-option__seats { grid-column: 2; }
  .date-option__all ol { columns: 1; }
}
.form__hint { font-size: .9rem; margin: 0; opacity: .85; }
.notice { background: var(--white); border-radius: 20px; padding: clamp(24px, 4vw, 40px); }
.notice h2 { font-size: 1.6rem; }

/* Verwaltung */
body.admin { background: var(--beige); }
.admin-login { max-width: 400px; margin: 12vh auto; padding: 40px; background: var(--white); border-radius: 24px; border: 1px solid var(--line); }
.admin-login h1 { font-size: 2rem; margin-bottom: .2em; }
.admin-login > p { margin-bottom: 1.5rem; opacity: .8; }
.admin-login .form__alert { margin-bottom: 16px; }
.admin-bar { background: var(--forest); color: var(--white); }
.admin-bar__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; min-height: 64px; }
.admin-bar__brand { font-family: var(--serif); font-size: 1.25rem; color: var(--white); text-decoration: none; }
.admin-bar__brand:hover { color: var(--white); }
.admin-bar__nav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 22px; }
.admin-bar__nav a, .admin-bar .admin-link { color: var(--white); text-decoration: none; font-weight: 500; }
.admin-bar__nav a[aria-current="page"] { border-bottom: 2px solid var(--mint); }
.admin-bar__nav form { margin: 0; }
.badge { display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--gold); color: var(--white); font-size: .78rem; text-align: center; }
.admin-link { background: none; border: 0; padding: 0; font: inherit; color: var(--forest); text-decoration: underline; cursor: pointer; }
.admin-link--danger { color: var(--error); }
.admin-main { padding-block: 32px 48px; }
.admin-head h1 { font-size: 2rem; margin-bottom: .2em; }
.admin-head p { opacity: .8; }
.admin-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3vw, 32px); margin-bottom: 20px; }
.admin-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-card__head h1 { font-size: 1.8rem; margin: 0; }
.admin-h2 { font-size: 1.3rem; margin-bottom: 16px; }
.admin-h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.admin-flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 20px; font-weight: 500; }
.admin-flash--ok { background: #e3efe7; color: #2f523e; }
.admin-flash--error { background: #f8e9e5; color: var(--error); }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.admin-tabs a { padding: 8px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.admin-tabs a span { opacity: .6; margin-left: 4px; }
.admin-tabs a[aria-current="page"] { background: var(--forest); border-color: var(--forest); color: var(--white); }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.admin-table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); padding: 0 12px 10px; border-bottom: 1px solid var(--line); }
.admin-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table--click tbody tr { cursor: pointer; }
.admin-table--click tbody tr:hover { background: var(--beige); }
.admin-table td a { font-weight: 600; }
.admin-table .is-past { opacity: .55; }
.admin-table__actions { white-space: nowrap; }
.admin-table__actions form { display: inline; margin-left: 12px; }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.status--neu { background: #f6e7bf; color: #6b5413; }
.status--bestaetigt { background: #dcebe1; color: #2f523e; }
.status--warteliste { background: #e4e7ee; color: #3b4558; }
.status--abgesagt { background: #f3dcd6; color: var(--error); }
.admin-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .admin-detail { grid-template-columns: 1fr; } }
.admin-dl { display: grid; grid-template-columns: 110px 1fr; gap: 10px 16px; margin: 0; }
.admin-dl dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); font-weight: 600; padding-top: 3px; }
.admin-dl dd { margin: 0; word-break: break-word; }
.pre { white-space: pre-wrap; }
.admin-history { margin: 0; padding-left: 1.1em; font-size: .9rem; opacity: .85; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-note { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.admin-delete { margin-top: 24px; }
.admin-dateform { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.admin-dateform__wide { grid-column: 1 / -1; }
@media (max-width: 760px) { .admin-dateform { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .admin-dateform { grid-template-columns: 1fr; } }
.admin-capacity { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.admin-capacity li { display: grid; grid-template-columns: minmax(0, 1fr) 160px 60px; gap: 16px; align-items: center; font-size: .95rem; }
.admin-capacity__bar { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border: 0; border-radius: 999px; overflow: hidden; background: var(--beige-deep); }
.admin-capacity__bar::-webkit-progress-bar { background: var(--beige-deep); }
.admin-capacity__bar::-webkit-progress-value { background: var(--sage-dark); }
.admin-capacity__bar::-moz-progress-bar { background: var(--sage-dark); }
.admin-capacity__num { text-align: right; font-weight: 600; }
@media (max-width: 600px) { .admin-capacity li { grid-template-columns: 1fr 60px; } .admin-capacity__bar { grid-column: 1 / -1; grid-row: 2; } }
.admin-foot { font-size: .85rem; margin-top: 24px; }

/* Verwaltung: Login, Passwort, Hinweise */
.admin-login--wide { max-width: 460px; }
.admin-login__links { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 24px; font-size: .92rem; }
.admin-inline { display: inline; margin: 0; }
.admin-notice { background: #f6e7bf; color: #5a4610; border-radius: 12px; padding: 12px 14px; font-size: .95rem; }
.admin-flash--warn { background: #f6e7bf; color: #5a4610; }
.admin-flash--warn a { font-weight: 700; }
.admin-flash--secret { background: #e3efe7; color: #2f523e; font-family: ui-monospace, Menlo, Consolas, monospace; word-break: break-all; }
.pw-rules { list-style: none; margin: -6px 0 0; padding: 0; display: grid; gap: 4px; font-size: .88rem; }
.pw-rules li::before { content: "\2013"; display: inline-block; width: 1.2em; color: var(--gold); font-weight: 700; }
.pw-rules li.is-ok { color: #3f6b52; }
.pw-rules li.is-ok::before { content: "\2713"; color: #3f6b52; }
.site-footer__admin { opacity: .75; font-size: .82rem; }
.admin-search { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
@media (max-width: 560px) { .admin-search { grid-template-columns: 1fr; } }
.admin-export { width: 100%; font: .88rem/1.5 ui-monospace, Menlo, Consolas, monospace; color: var(--brown); background: var(--beige); border: 1px solid var(--line); border-radius: 12px; padding: 14px; resize: vertical; }
.admin-checklist { margin: 0 0 1em; padding-left: 1.2em; }
.admin-checklist li { margin-bottom: .5em; }
.admin-table input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--forest); }

[hidden] { display: none !important; }

/* Verwaltung: Termine */
.field__label { font-weight: 600; font-size: .95rem; }
.admin-dateform__half { grid-column: span 2; }
.admin-dateform__time { grid-column: span 1; }
.admin-timepair { display: flex; align-items: center; gap: 8px; }
.admin-timepair input { min-width: 0; }
.admin-timepair span { font-size: .9rem; opacity: .7; }
.admin-end { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 12px; background: var(--beige); font-weight: 600; }
.admin-hint { margin: 0; font-size: .9rem; background: var(--beige); border-radius: 12px; padding: 12px 14px; }
.field input:disabled { opacity: .5; }
@media (max-width: 760px) { .admin-dateform__half, .admin-dateform__time { grid-column: 1 / -1; } }

/* Verwaltung: Kurse */
.admin-courseform { grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); gap: 28px; align-items: start; }
.admin-courseform__fields, .admin-courseform__image { display: grid; gap: 20px; }
.admin-courseform__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.admin-courseform__wide { grid-column: 1 / -1; align-items: center; }
.admin-courseform__view { margin-left: auto; }
.admin-upload { display: grid; gap: 12px; justify-items: start; padding: 16px; border: 1px dashed #cfc3ad; border-radius: 16px; background: var(--beige); }
.admin-upload__current img, .admin-upload__preview { width: 100%; max-width: 320px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; display: block; }
.admin-upload__current { width: 100%; max-width: 320px; }
.admin-upload__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.admin-upload__input:focus-visible + .admin-upload__status, .admin-upload__btn:focus-within { outline: 2px solid var(--forest); }
.admin-upload__status { margin: 0; font-size: .88rem; }
.admin-upload__btn { cursor: pointer; }
@media (max-width: 860px) {
  .admin-courseform { grid-template-columns: 1fr; }
  .admin-courseform__facts { grid-template-columns: 1fr; }
}
.admin-courses { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.admin-course { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 14px; }
.admin-course.is-hidden { background: var(--beige); }
.admin-course.is-hidden .admin-course__img { opacity: .5; }
.admin-course__img img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; display: block; }
.admin-course__body { display: grid; gap: 2px; font-size: .92rem; }
.admin-course__body strong { font-size: 1.02rem; }
.admin-course__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; font-size: .92rem; justify-content: flex-end; }
.admin-course__actions a { font-weight: 600; }
.admin-move { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--white); color: var(--brown); font: inherit; cursor: pointer; }
.admin-move:hover:not([disabled]) { border-color: var(--forest); }
.admin-move[disabled] { opacity: .35; cursor: default; }
@media (max-width: 700px) {
  .admin-course { grid-template-columns: 56px minmax(0, 1fr); }
  .admin-course__img img { width: 56px; height: 56px; }
  .admin-course__actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* Verwaltung: Kursplan */
.plan-toolbar { display: flex; align-items: center; min-height: 32px; margin-bottom: 12px; }
.plan-status { font-size: .92rem; font-weight: 500; }
.plan-status--busy { opacity: .7; }
.plan-status--ok { color: #2f523e; }
.plan-status--error { color: var(--error); }
.plan-status__undo { margin-left: 6px; }
.plan { display: grid; grid-template-columns: repeat(7, minmax(180px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; }
.plan-col { display: flex; flex-direction: column; gap: 10px; background: var(--beige-deep); border-radius: 16px; padding: 10px; min-height: 240px; scroll-snap-align: start; transition: background-color .15s, box-shadow .15s; }
.plan-col.is-target { background: var(--mint); box-shadow: 0 0 0 2px var(--forest) inset; }
.plan-col__head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px; }
.plan-col__title { font-size: 1.05rem; margin: 0; }
.plan-col__count { font-size: .8rem; font-weight: 600; opacity: .6; }
.plan-col__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.plan-col__add { margin-top: auto; background: transparent; border: 1px dashed #b9ab92; border-radius: 12px; padding: 10px; font: inherit; font-size: .88rem; font-weight: 600; color: var(--brown); cursor: pointer; }
.plan-col__add:hover { background: var(--white); border-style: solid; }
.plan-card { display: grid; grid-template-columns: 18px minmax(0, 1fr); background: var(--white); border-radius: 12px; border-left: 4px solid #b9ab92; box-shadow: 0 1px 2px rgba(70,62,52,.12); user-select: none; -webkit-user-select: none; cursor: grab; }
.plan-card__grip { touch-action: none; cursor: grab; margin: 8px 0 8px 4px; border-radius: 6px;
  background-image: radial-gradient(circle, #a89a82 1.4px, transparent 1.6px); background-size: 6px 6px; background-position: center; }
.plan-card__body { display: grid; gap: 2px; text-align: left; background: none; border: 0; padding: 10px 12px 10px 6px; font: inherit; color: var(--brown); cursor: inherit; border-radius: 0 12px 12px 0; }
.plan-card__body:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
.plan-card__time { font-size: .8rem; font-weight: 700; color: var(--sage-dark); }
.plan-card__title { font-weight: 600; line-height: 1.3; }
.plan-card__note { font-size: .8rem; opacity: .75; }
.plan-card.is-dragging { opacity: .35; }
.plan-card--ghost { position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; box-shadow: 0 12px 28px rgba(56,68,61,.28); cursor: grabbing; }
body.plan-dragging, body.plan-dragging * { cursor: grabbing !important; }
.plan-card--c0 { border-left-color: #839f90; }
.plan-card--c1 { border-left-color: #9b7d29; }
.plan-card--c2 { border-left-color: #b5654f; }
.plan-card--c3 { border-left-color: #5d7f99; }
.plan-card--c4 { border-left-color: #8a6f9e; }
.plan-card--c5 { border-left-color: #38443d; }
.plan-dialog { width: min(520px, calc(100vw - 32px)); border: 0; border-radius: 20px; padding: clamp(20px, 4vw, 32px); color: var(--brown); background: var(--white); box-shadow: 0 24px 60px rgba(56,68,61,.3); }
.plan-dialog::backdrop { background: rgba(56,68,61,.45); }
.plan-dialog__actions { align-items: center; }
.plan-dialog__actions .admin-link--danger { margin-left: auto; }
@media (max-width: 760px) { .plan { grid-template-columns: repeat(7, minmax(220px, 78vw)); } }
@media (max-width: 520px) { .plan-dialog .form__row { grid-template-columns: 1fr; } }
@media (pointer: coarse) { .plan-card { grid-template-columns: 32px minmax(0, 1fr); } }

/* Einheitliche Höhe für Eingabe- und Auswahlfelder (Safari zeichnet <select> sonst kleiner) */
.field input:not([type="checkbox"]):not([type="radio"]), .field select { min-height: 50px; }
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23463e34' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px;
}
.admin-dateform { align-items: end; }

/* Verwaltung: Statistik */
.stat-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-kpi { display: grid; gap: 2px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; }
.stat-kpi__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); font-weight: 600; }
.stat-kpi__value { font-family: var(--serif); font-size: 2.2rem; line-height: 1.15; color: var(--forest); }
.stat-kpi__prev { font-size: .82rem; opacity: .7; }
@media (max-width: 760px) { .stat-kpis { grid-template-columns: 1fr 1fr; } }
.stat-chart { display: block; width: 100%; height: auto; }
.stat-chart__grid { stroke: var(--line); stroke-width: 1; }
.stat-chart__base { stroke: #b9ab92; stroke-width: 1; }
.stat-chart__axis { font: 11px var(--sans, sans-serif); fill: var(--brown); opacity: .7; }
.stat-chart__fill { fill: var(--sage-dark); }
.stat-chart__hit { fill: transparent; }
.stat-chart__bar:hover .stat-chart__fill { fill: var(--forest); }
.stat-chart__bar:hover .stat-chart__hit { fill: rgba(131,159,144,.12); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: 1fr; } }
.stat-table .num { text-align: right; white-space: nowrap; }
.stat-share { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.stat-share progress { width: 70px; }
.stat-share span { min-width: 3em; }
.stat-note { font-size: .85rem; margin: 12px 0 0; }
.stat-note code { font-size: .82rem; background: var(--beige); padding: 1px 5px; border-radius: 5px; word-break: break-all; }
.stat-self p { margin: 0 0 12px; }
.admin-foot--stat { margin: 24px 0 0; }

/* Verwaltung: Termine einer Reihe */
.admin-sessions__sum { margin: 0; font-weight: 600; }
.admin-sessions__list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.admin-sessions__list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--beige); font-size: .92rem; }
.admin-sessions__list li span { font-weight: 600; }
.admin-sessions__list label { display: flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 400; cursor: pointer; white-space: nowrap; }
.admin-sessions__list input { width: 16px; height: 16px; min-height: 0; accent-color: var(--error); margin: 0; }
.admin-sessions__list li.is-off { background: transparent; border: 1px dashed #cfc3ad; }
.admin-sessions__list li.is-off span { text-decoration: line-through; opacity: .55; font-weight: 400; }
.date-option__off { margin: 6px 0 0; font-size: .88rem; opacity: .8; }
.admin-sessions__list li span small { display: block; font-size: .74rem; font-weight: 600; color: #7a5d12; letter-spacing: .01em; }
.admin-sessions__list li.is-holiday { background: #f6e7bf; box-shadow: inset 3px 0 0 #c99a2e; }
.admin-sessions__list li.is-holiday.is-off { background: transparent; box-shadow: none; }
.admin-sessions__list li.is-off span small { text-decoration: none; }

/* Bildausschnitt (Startseite) */
.img-pos--top img, img.img-pos--top { object-position: center 15%; }
.img-pos--bottom img, img.img-pos--bottom { object-position: center 85%; }

/* Verwaltung: Website / Startseite bearbeiten */
.home-visit { margin: 8px 0 14px; }
@media (max-width: 600px) { .home-visit { display: flex; width: 100%; justify-content: center; } }
.home-slots { display: grid; gap: 20px; }
.home-slots--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-slots--gallery { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (max-width: 700px) { .home-slots--2 { grid-template-columns: 1fr; } }
.home-slot { display: grid; gap: 14px; align-content: start; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--beige); }
.home-slot__frame { width: 100%; overflow: hidden; border-radius: 12px; background: var(--beige-deep); }
.home-slot__frame picture, .home-slot__frame img { display: block; width: 100%; height: 100%; }
.home-slot__frame img { object-fit: cover; }
.home-slot__frame--portrait { aspect-ratio: 3 / 4; max-width: 340px; }
.home-slot__frame--portrait-tall { aspect-ratio: 3 / 4.6; max-width: 300px; }
.home-slot__frame--portrait-soft { aspect-ratio: 4 / 5; max-width: 340px; }
.home-slot__frame--gallery-tall { aspect-ratio: 5 / 8; max-width: 240px; }
.home-slot__frame--gallery-wide { aspect-ratio: 27 / 10; }
.home-slot__frame--gallery { aspect-ratio: 13 / 10; }
.home-slot__body { display: grid; gap: 10px; justify-items: start; }
.home-slot__body .field { width: 100%; }
.home-slot__title { margin: 0; font-weight: 600; }
.home-slot__title .muted { font-weight: 400; font-size: .88rem; }
.home-slot__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; }
.home-texts { margin-bottom: 8px; }
.home-slot__frame .admin-upload__current, .home-slot__frame .admin-upload__current img, .home-slot__frame .admin-upload__preview { max-width: none; aspect-ratio: auto; height: 100%; border-radius: 0; }

/* Fußzeile der Verwaltung: selten genutzte Bereiche */
.admin-footnav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line, #e6ded6); font-size: .85rem; }
.admin-footnav a { color: inherit; opacity: .7; }
.admin-footnav a:hover, .admin-footnav a[aria-current="page"] { opacity: 1; }

/* Rollen und Kurszuordnung */
.admin-roles { font-size: .9rem; padding-left: 1.2em; margin: 12px 0 0; }
.admin-roles li { margin-bottom: .4em; }
.admin-usercourses { margin-top: 4px; font-size: .85rem; }
.admin-usercourses summary { cursor: pointer; opacity: .8; }
.admin-usercourses form { display: grid; gap: 6px; padding: 8px 0; }
.admin-usercourses__new { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.admin-usercourses__new legend { margin-bottom: 6px; padding: 0; }
.admin-check { display: flex; align-items: center; gap: 8px; font-weight: normal; }
.admin-check input { width: auto; min-height: 0; }

/* Kursplan: Einträge anderer Kursleitungen nur ansehen */
.plan-card--locked { grid-template-columns: minmax(0, 1fr); opacity: .55; filter: grayscale(.6); cursor: default; }
.plan-card--locked .plan-card__body { padding-left: 12px; }
.plan-card--locked .plan-card__body { cursor: default; }
.plan-card__owner { display: inline-block; margin-top: 4px; font-size: .72rem; padding: 1px 7px; border-radius: 999px; background: rgba(0,0,0,.07); }
