* {
  box-sizing: border-box;
}

/* Stitch public redesign */
.public-view {
  --bg: #fcf9f2;
  --surface: #fcf9f2;
  --surface-strong: #f1eee7;
  --surface-card: #ffffff;
  --surface-muted: #ebe8e1;
  --ink: #1c1c18;
  --muted: #424844;
  --line: #c1c8c3;
  --accent: #0d2c20;
  --accent-2: #34230c;
  --success: #2f6d49;
  --shadow: 0 10px 30px -10px rgba(36, 66, 53, 0.12);
  background: var(--bg);
  color: var(--ink);
  font-family: "Hanken Grotesk", Arial, Helvetica, sans-serif;
}

.public-view h1,
.public-view h2,
.public-view .platform-panel strong,
.public-view .course-teaser-copy h3 {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: -0.02em;
}

.public-view h1 {
  font-size: clamp(40px, 6vw, 56px);
  line-height: 1.14;
}

.public-view h2 {
  font-size: clamp(32px, 4.5vw, 40px);
  line-height: 1.2;
}

.public-view .site-header {
  min-height: 80px;
  background: rgba(252, 249, 242, 0.95);
  border-bottom: 1px solid #e5e2db;
  box-shadow: 0 2px 16px rgba(36, 66, 53, 0.06);
}

.public-view .brand {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 28px;
  color: var(--accent);
}

.public-view nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.public-view nav a:hover {
  color: var(--accent);
}

.public-view .button,
.public-view button {
  border-radius: 8px;
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
  min-height: 52px;
  padding: 0 28px;
  box-shadow: 0 8px 18px rgba(13, 44, 32, 0.12);
}

.public-view .ghost-button,
.public-view .course-teaser-copy .button + .button {
  background: transparent;
  color: var(--accent);
  border-color: var(--line);
  box-shadow: none;
}

.public-view .kicker {
  color: var(--accent-2);
  font-size: 14px;
  letter-spacing: 0.12em;
}

.public-view .hero,
.public-view .platform-hero,
.public-view .course-list-section,
.public-view .platform-feature-strip,
.public-view .platform-signup-section,
.public-view .course-backbar,
.public-view .location-section,
.public-view .hess-section,
.public-view .feature-section,
.public-view .expectations-section,
.public-view .slots-section,
.public-view .form-section,
.public-view footer,
.public-view .flash {
  width: min(1200px, calc(100% - 40px));
}

.public-view .platform-hero {
  width: 100%;
  max-width: none;
  min-height: calc(85dvh - 80px);
  padding: 80px max(20px, calc((100vw - 1200px) / 2)) 88px;
  grid-template-columns: minmax(0, 6fr) minmax(320px, 5fr);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.public-view .platform-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(252, 249, 242, 0.94), rgba(252, 249, 242, 0.76) 48%, rgba(252, 249, 242, 0.08)),
    url("stitch-hero-background.png");
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.public-view .platform-copy {
  max-width: 560px;
}

.public-view .platform-copy p:not(.kicker) {
  font-size: 18px;
  line-height: 1.56;
  color: var(--muted);
}

.public-view .platform-panel {
  min-height: 360px;
  border: 0;
  border-radius: 12px;
  background: rgba(70, 101, 86, 0.92);
  box-shadow: var(--shadow);
}

.public-view .platform-panel strong {
  font-size: clamp(28px, 3vw, 40px);
}

.public-view .course-list-section {
  padding: 112px 0;
}

.public-view .course-list-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.public-view .course-teaser {
  border-color: #e5e2db;
  border-radius: 12px;
  background: var(--surface-card);
  box-shadow: var(--shadow);
  grid-template-columns: minmax(300px, 5fr) minmax(0, 7fr);
}

.public-view .course-teaser-media {
  min-height: 360px;
}

.public-view .course-filter-bar {
  justify-self: end;
  align-self: start;
}

.public-view .course-teaser-copy h3 {
  color: var(--ink);
}

.public-view .platform-feature-strip article {
  border: 1px solid #e5e2db;
  border-radius: 12px;
  border-top: 0;
  background: #f6f3ec;
  padding: 28px;
}

.public-view .course-backbar {
  padding-top: 36px;
}

.public-view .breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.public-view .breadcrumb span:last-child {
  color: var(--accent);
}

.public-view .breadcrumb [aria-hidden="true"] {
  color: #b8aa98;
  font-weight: 500;
}

.public-view .hero {
  min-height: auto;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr);
  padding: 48px 0 112px;
}

.public-view .hero-copy {
  align-content: center;
}

.public-view .course-badge {
  background: #f1eee7;
  border: 0;
  color: var(--accent);
}

.public-view .hero-photo {
  min-height: auto;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  border: 0;
}

.public-view .location-section,
.public-view .request-form,
.public-view .price-box,
.public-view .day-card,
.public-view .feature-grid article,
.public-view .focus-grid article,
.public-view .fact-grid article {
  border: 1px solid #e5e2db;
  border-radius: 12px;
  background: var(--surface-card);
  box-shadow: 0 8px 22px rgba(36, 66, 53, 0.05);
}

.public-view .hess-section {
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  padding: 0 0 112px;
}

.public-view .portrait {
  min-height: 560px;
  border-radius: 12px;
  border: 4px solid #ebe8e1;
}

.public-view .location-section {
  margin-bottom: 112px;
  padding: clamp(28px, 5vw, 48px);
}

.public-view .location-photo {
  min-height: 300px;
  border-radius: 10px;
}

.public-view .feature-section,
.public-view .expectations-section,
.public-view .slots-section,
.public-view .form-section {
  padding: 0 0 112px;
}

.public-view .expectations-section {
  width: 100%;
  max-width: none;
  margin-bottom: 112px;
  padding: 96px max(20px, calc((100vw - 1200px) / 2));
  background: #ffffff;
}

.public-view .section-title h2,
.public-view .location-copy h2,
.public-view .hess-copy h2,
.public-view .expectations-section > h2,
.public-view .form-copy h2 {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.public-view .section-title h2::after,
.public-view .location-copy h2::after,
.public-view .hess-copy h2::after,
.public-view .expectations-section > h2::after,
.public-view .form-copy h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ded8cc;
}

.public-view .focus-grid,
.public-view .feature-grid {
  gap: 32px;
}

.public-view .focus-grid article,
.public-view .feature-grid article {
  min-height: 190px;
  padding: 28px;
  border-top: 1px solid #e5e2db;
}

.public-view .feature-grid article {
  background: #f6f3ec;
}

.public-view .day-grid {
  gap: 32px;
}

.public-view .day-card {
  padding: 28px;
}

.public-view .day-card h3,
.public-view .slot-group strong,
.public-view legend,
.public-view label {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.public-view .slot-list span {
  background: #f1eee7;
  border: 0;
  border-radius: 6px;
}

.public-view .form-section {
  grid-template-columns: minmax(260px, 4fr) minmax(0, 8fr);
}

.public-view .request-form {
  padding: clamp(28px, 5vw, 48px);
}

.public-view input,
.public-view select,
.public-view textarea {
  border-color: var(--line);
  border-radius: 8px;
  background: #fcf9f2;
}

.public-view footer {
  width: 100%;
  max-width: none;
  padding: 56px max(20px, calc((100vw - 1200px) / 2));
  background: #4c381f;
  color: #bea182;
}

@media (max-width: 900px) {
  .public-view .platform-hero,
  .public-view .hero,
  .public-view .course-teaser,
  .public-view .platform-signup-section,
  .public-view .hess-section,
  .public-view .location-section,
  .public-view .form-section {
    grid-template-columns: 1fr;
  }

  .public-view .course-list-head,
  .course-list-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .public-view .course-filter-bar,
  .course-filter-bar {
    width: 100%;
    justify-content: flex-start;
  }

  .public-view .course-filter-bar label,
  .course-filter-bar label {
    flex: 1 1 220px;
  }

  .public-view .platform-hero {
    padding-inline: 20px;
  }

  .platform-signup-copy {
    position: static;
  }
}

@media (max-width: 640px) {
  .public-view .hero,
  .public-view .platform-hero,
  .public-view .course-list-section,
  .public-view .platform-feature-strip,
  .public-view .platform-signup-section,
  .public-view .course-backbar,
  .public-view .location-section,
  .public-view .hess-section,
  .public-view .feature-section,
  .public-view .expectations-section,
  .public-view .slots-section,
  .public-view .form-section,
  .public-view .flash {
    width: min(100% - 40px, 1200px);
  }

  .public-view .site-header {
    justify-content: space-between;
  }

  .public-view .breadcrumb {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .public-view h1 {
    font-size: 38px;
  }
}

:root {
  --bg: #f3f0e8;
  --surface: #fffdf8;
  --surface-strong: #e5dccb;
  --ink: #151913;
  --muted: #62675c;
  --line: #d9d2c5;
  --accent: #1f4a3b;
  --accent-2: #7e5032;
  --danger: #9e2f2f;
  --success: #2f6d49;
  --shadow: 0 18px 60px rgba(36, 75, 63, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.7), rgba(243, 240, 232, 0) 420px),
    var(--bg);
  color: var(--ink);
  font-family: "Hanken Grotesk", Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
.button {
  min-height: 46px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #fffdf8;
  padding: 0 18px;
  font: inherit;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 140ms ease, background 160ms ease;
}

button:active,
.button:active {
  transform: translateY(1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.ghost-button {
  background: var(--surface);
  color: var(--accent);
}

.site-header {
  min-height: 68px;
  padding: 0 clamp(18px, 4vw, 54px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 244, 239, 0.92);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.brand {
  font-weight: 900;
}

nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.hero,
.platform-hero,
.course-list-section,
.platform-feature-strip,
.platform-signup-section,
.course-backbar,
.location-section,
.hess-section,
.feature-section,
.expectations-section,
.slots-section,
.form-section,
footer,
.flash {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.platform-hero {
  min-height: calc(100dvh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: clamp(32px, 6vw, 82px) 0;
}

.platform-copy {
  display: grid;
  gap: 22px;
}

.platform-copy p:not(.kicker) {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  max-width: 620px;
}

.platform-panel {
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(36, 75, 63, 0.9), rgba(36, 75, 63, 0.68)),
    repeating-linear-gradient(45deg, var(--surface), var(--surface) 18px, var(--surface-strong) 18px, var(--surface-strong) 36px);
  color: #fffdf8;
  padding: clamp(24px, 4vw, 42px);
  display: grid;
  align-content: end;
  gap: 12px;
  box-shadow: var(--shadow);
}

.platform-panel strong {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: 0;
}

.platform-panel span {
  max-width: 420px;
  color: rgba(255, 253, 248, 0.78);
  font-size: 17px;
}

.hero {
  min-height: calc(100dvh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(22px, 5vw, 68px);
  align-items: center;
  padding: clamp(28px, 5vw, 72px) 0;
}

.course-backbar {
  padding-top: 22px;
}

.hero-copy {
  display: grid;
  gap: 18px;
  align-content: center;
}

.kicker {
  margin: 0;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.course-badge {
  width: fit-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(31, 74, 59, 0.24);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--accent);
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 900;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  letter-spacing: 0;
  line-height: 1;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(46px, 8vw, 86px);
  max-width: 760px;
}

h2 {
  font-size: clamp(34px, 5vw, 56px);
  margin-bottom: 18px;
}

h3 {
  font-size: 20px;
}

.hero-copy > p:not(.kicker) {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  max-width: 600px;
}

.hero-photo,
.portrait {
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-photo {
  min-height: min(620px, 72dvh);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(21, 25, 19, 0.24));
  pointer-events: none;
}

.course-list-section {
  padding: clamp(50px, 8vw, 92px) 0;
}

.course-list-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 26px;
}

.course-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.course-filter-bar label {
  min-width: 170px;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.course-filter-bar select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-card);
  color: var(--ink);
  padding: 0 38px 0 14px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 0 10px 24px -18px rgba(13, 44, 32, 0.28);
}

.course-teaser {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.course-teaser[hidden] {
  display: none;
}

.course-teaser-media {
  min-height: 340px;
  background-size: cover;
  background-position: center;
}

.course-teaser-copy {
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  gap: 14px;
  align-content: center;
}

.course-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.course-date-label {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.course-type-pill {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 5px 10px;
  color: #fffdf8;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 10px 18px -14px rgba(13, 44, 32, 0.55);
}

.course-type-pill.type-dressage {
  background: #8a5b2b;
}

.course-type-pill.type-jumping {
  background: #963f36;
}

.course-type-pill.type-eventing {
  background: #4e7042;
}

.course-type-pill.type-groundwork {
  background: #6d6175;
}

.course-type-pill.type-default {
  background: var(--accent);
}

.course-filter-empty {
  margin: 22px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-card);
  color: var(--muted);
  font-weight: 700;
}

.course-teaser-copy h3 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  letter-spacing: 0;
}

.course-teaser-copy p {
  color: var(--muted);
  max-width: 620px;
}

.platform-feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: clamp(54px, 8vw, 92px);
}

.platform-feature-strip article {
  border-top: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 8px;
  padding: 20px;
  min-height: 132px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.platform-feature-strip span {
  color: var(--muted);
}

.platform-signup-section {
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(260px, 0.95fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: center;
  padding: clamp(28px, 5vw, 52px);
  margin: 0 auto clamp(54px, 8vw, 92px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(241, 238, 231, 0.68)),
    var(--surface-strong);
  box-shadow: var(--shadow);
}

.platform-signup-copy {
  display: grid;
  gap: 16px;
}

.platform-signup-copy h2,
.platform-signup-copy p {
  margin: 0;
}

.platform-signup-copy p:not(.kicker) {
  color: var(--muted);
  max-width: 560px;
}

.platform-signup-points {
  display: grid;
  gap: 12px;
}

.platform-signup-points span {
  border-left: 3px solid var(--accent);
  background: var(--surface-card);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  font-weight: 800;
}

.platform-modal-trigger {
  width: fit-content;
  margin-top: 4px;
}

.platform-signup-copy .flash {
  width: 100%;
  margin: 0;
}

.platform-modal {
  width: min(760px, calc(100% - 36px));
  max-height: min(88dvh, 920px);
  border: 0;
  border-radius: 12px;
  padding: 0;
  background: transparent;
  color: var(--ink);
}

.platform-modal::backdrop {
  background: rgba(13, 44, 32, 0.48);
  backdrop-filter: blur(6px);
}

.platform-modal-panel {
  position: relative;
  max-height: min(88dvh, 920px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-card);
  padding: clamp(22px, 4vw, 34px);
  box-shadow: 0 30px 80px -36px rgba(13, 44, 32, 0.52);
}

.platform-modal .platform-signup-form {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.platform-modal .platform-signup-form > p {
  margin: -4px 0 4px;
  color: var(--muted);
}

.modal-close,
.public-view .modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--accent);
  box-shadow: none;
  font-size: 24px;
  line-height: 1;
}

.platform-signup-form {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-card);
}

.platform-signup-form h3 {
  margin: 0;
  color: var(--accent);
  font-size: 24px;
}

.portrait {
  min-height: 520px;
  border-radius: 8px;
}

.is-placeholder {
  background:
    linear-gradient(135deg, rgba(36, 75, 63, 0.18), rgba(138, 91, 56, 0.18)),
    repeating-linear-gradient(45deg, var(--surface), var(--surface) 18px, var(--surface-strong) 18px, var(--surface-strong) 36px);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
  padding: 24px;
}

.location-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(360px, 1.18fr);
  gap: clamp(22px, 4vw, 42px);
  padding: clamp(24px, 4vw, 42px);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(255, 253, 248, 0.82)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  align-items: center;
}

.location-section p,
.hess-section p,
.feature-section span,
.slots-section p,
.form-copy p,
.privacy-note {
  color: var(--muted);
}

.location-copy {
  display: grid;
  gap: 14px;
  align-content: center;
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.location-photo {
  min-height: 315px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: end;
  justify-content: flex-start;
  padding: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 16px 44px rgba(31, 74, 59, 0.14);
}

.location-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(21, 25, 19, 0.62));
}

.location-photo strong {
  position: relative;
  max-width: 520px;
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--ink);
  padding: 10px 12px;
  font-size: 14px;
  box-shadow: 0 12px 34px rgba(21, 25, 19, 0.14);
}

.venue-link {
  grid-column: 2;
  justify-self: start;
  align-self: start;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--accent);
  padding: 9px 12px;
  font-weight: 900;
}

.hess-section {
  padding: clamp(70px, 10vw, 120px) 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 6vw, 72px);
  align-items: center;
}

.fact-grid,
.feature-grid {
  display: grid;
  gap: 14px;
}

.fact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.trainer-link-button {
  margin-top: 22px;
}

.fact-grid article,
.feature-grid article,
.day-card,
.request-form,
.price-box,
.admin-login,
.admin-course-card,
.admin-slot-card,
.admin-panel,
.request-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.fact-grid article,
.feature-grid article {
  min-height: 138px;
  padding: 18px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.fact-grid strong,
.feature-grid strong {
  color: var(--ink);
}

.feature-section,
.slots-section,
.form-section {
  padding: clamp(54px, 8vw, 92px) 0;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: clamp(44px, 7vw, 76px);
}

.focus-grid article {
  min-height: 176px;
  border: 1px solid rgba(31, 74, 59, 0.22);
  border-top: 4px solid var(--accent);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(229, 220, 203, 0.32)),
    var(--surface);
  padding: 22px;
  display: grid;
  gap: 12px;
  align-content: start;
  box-shadow: 0 14px 42px rgba(31, 74, 59, 0.08);
}

.focus-grid strong {
  font-size: 20px;
}

.focus-grid span {
  color: var(--muted);
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.section-title {
  max-width: 720px;
  margin-bottom: 28px;
}

.day-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.day-card {
  padding: 24px;
}

.slot-group {
  margin-top: 18px;
}

.slot-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.slot-list span {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: var(--bg);
  font-weight: 800;
}

.slot-list .taken {
  color: var(--muted);
  text-decoration: line-through;
}

.form-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 28px;
  align-items: start;
}

.form-copy {
  position: sticky;
  top: 92px;
}

.price-box {
  display: grid;
  gap: 10px;
  padding: 18px;
  margin-top: 22px;
}

.price-box span {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.price-box .included {
  color: var(--accent);
}

.cancellation-note {
  margin-top: 26px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 10px;
  box-shadow: 0 12px 34px rgba(32, 24, 18, 0.05);
}

.cancellation-note strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.cancellation-note p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

.request-form {
  padding: clamp(18px, 4vw, 34px);
  display: grid;
  gap: 24px;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

legend {
  padding: 0;
  margin-bottom: 4px;
  font-size: 19px;
  font-weight: 900;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(36, 75, 63, 0.16);
  border-color: var(--accent);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.two-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkbox-grid,
.slot-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.horse-request-card,
.assignment-horse {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  padding: 16px;
}

.horse-request-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.optional-horse-card summary {
  cursor: pointer;
  list-style: none;
}

.optional-horse-card summary::-webkit-details-marker {
  display: none;
}

.optional-horse-card summary::after {
  content: "hinzufügen";
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}

.optional-horse-card[open] summary {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.optional-horse-card[open] summary::after {
  content: "ausblenden";
}

.horse-request-head strong,
.assignment-editor > strong,
.assignment-horse b {
  color: var(--ink);
}

.horse-request-head span,
.assignment-horse span,
.horse-slot-grid > div > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.horse-slot-grid {
  margin-top: 2px;
}

.assignment-editor {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.admin-request-edit {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 20px;
}

.admin-request-edit section {
  display: grid;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.admin-request-edit section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.admin-request-edit h4 {
  margin: 0;
  color: var(--accent);
}

.admin-request-edit .field-grid {
  grid-template-columns: repeat(3, minmax(150px, 1fr));
}

.admin-request-edit .slot-choice-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.admin-horse-edit {
  background: var(--bg);
}

.optional-admin-horse {
  padding: 0;
}

.optional-admin-horse summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 900;
  padding: 16px;
  list-style: none;
}

.optional-admin-horse summary::-webkit-details-marker {
  display: none;
}

.optional-admin-horse summary::after {
  content: "öffnen";
  float: right;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  padding: 4px 9px;
  font-size: 12px;
}

.optional-admin-horse[open] {
  padding: 16px;
}

.optional-admin-horse[open] summary {
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
}

.optional-admin-horse[open] summary::after {
  content: "schließen";
}

.check {
  display: flex;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

.check input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.check.disabled {
  color: var(--muted);
}

.legal-options {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
}

.legal-check {
  font-size: 0.94rem;
  line-height: 1.45;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  gap: 10px;
}

.legal-check span {
  display: block;
  flex: 1;
}

.legal-check a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.privacy-note {
  margin: -10px 0 0;
  font-size: 13px;
}

.flash {
  padding: 16px 18px;
  border-radius: 8px;
  border: 1px solid;
}

.success {
  color: var(--success);
  background: #edf7ef;
  border-color: #b7dec2;
}

.error {
  color: var(--danger);
  background: #fff1ef;
  border-color: #efc0b8;
}

.cookie-consent {
  position: fixed;
  z-index: 1000;
  right: 18px;
  bottom: 18px;
  left: 18px;
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  padding: 20px 22px;
  box-shadow: 0 18px 46px rgba(20, 31, 25, 0.18);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 16px;
}

.cookie-consent p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.cookie-consent-actions {
  display: flex;
  gap: 10px;
  white-space: nowrap;
}

footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

footer .footer-link {
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  text-decoration: underline;
  box-shadow: none;
}

@media (max-width: 720px) {
  .cookie-consent {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
  }

  .cookie-consent-actions {
    display: grid;
    grid-template-columns: 1fr;
    white-space: normal;
  }
}

.admin-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.admin-view h1 {
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1.15;
}

.admin-view h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
}

.admin-view h3 {
  font-size: 18px;
  line-height: 1.3;
}

.back-link {
  color: var(--accent);
  font-weight: 800;
}

.admin-login {
  max-width: 460px;
  margin: 40px auto;
  padding: 30px;
  border-top: 4px solid var(--accent);
  box-shadow: 0 18px 48px rgba(31, 74, 59, 0.1);
}

.admin-login h1 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 34px);
}

.admin-login > p {
  margin-bottom: 24px;
  color: var(--muted);
}

.admin-login form,
.status-form {
  display: grid;
  gap: 14px;
}

.admin-login form label {
  margin-bottom: -8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.admin-login form button {
  margin-top: 4px;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-top: 28px;
}

.admin-head h1 {
  max-width: none;
  margin: 0 0 6px;
  font-size: clamp(26px, 2.8vw, 32px);
  line-height: 1.08;
}

.admin-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.admin-tabs a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 14px;
  color: var(--muted);
  font-weight: 900;
}

.admin-tabs a.active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--surface);
}

.admin-tab-panel {
  margin-top: 24px;
}

.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.admin-section-head h2 {
  margin-bottom: 0;
}

.admin-overview-list {
  display: grid;
  gap: 12px;
}

.admin-list-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  padding: 12px;
}

.admin-list-item h3,
.admin-list-item p {
  margin: 0;
}

.admin-list-item p {
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.tag-list span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(31, 74, 59, 0.18);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 900;
}

.admin-course-list-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  padding: 18px;
}

.admin-course-main {
  min-width: 0;
}

.admin-course-main h3 {
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.08;
}

.course-booking-meter {
  display: grid;
  gap: 8px;
  max-width: 520px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
}

.course-booking-meter-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 14px;
}

.course-booking-meter-head strong {
  color: var(--accent);
}

.course-booking-meter-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.course-booking-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6e1d7;
}

.course-booking-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #66865f, var(--accent));
}

.course-booking-meter.is-full {
  border-color: #c9958c;
  background: #fbf0ed;
}

.course-booking-meter.is-full .course-booking-meter-head strong {
  color: #963f36;
}

.course-booking-meter.is-full .course-booking-bar span {
  background: #963f36;
}

.admin-course-actions {
  grid-column: 2;
  justify-self: end;
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.course-status {
  grid-column: 2;
  justify-self: end;
  border-radius: 999px;
  padding: 6px 10px;
}

.course-status.published {
  border-color: #b7dec2;
  background: #edf7ef;
  color: var(--success);
}

.course-status.draft {
  border-color: var(--line);
  background: var(--surface);
  color: var(--muted);
}

.course-status.closed,
.course-closed-pill {
  border-color: #d8b8a8;
  background: #f7ebe5;
  color: #88442f;
}

.course-closed-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d8b8a8;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-course-actions form {
  margin: 0;
}

.close-course-button {
  border-color: #88442f;
  background: #88442f;
}

.course-closed-button {
  border-color: #88442f;
  background: #88442f;
}

.course-closed-message {
  align-content: center;
  min-height: 180px;
}

.course-closed-message strong {
  color: var(--accent);
  font-size: 20px;
}

.admin-list-thumb {
  width: 76px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-size: cover;
  background-position: center;
}

.admin-list-thumb.is-empty {
  background: var(--surface-strong);
}

.profile-admin-grid {
  display: grid;
  gap: 14px;
}

.profile-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  padding: 18px;
}

.profile-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.profile-card-head strong {
  color: var(--ink);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.08;
}

.profile-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.profile-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-card dd {
  margin: 3px 0 0;
}

.request-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.manual-booking-panel,
.manual-course-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.manual-booking-panel {
  padding: 16px;
}

.manual-booking-panel > summary,
.manual-course-card > summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 900;
}

.manual-booking-panel > summary {
  font-size: 1.05rem;
}

.manual-booking-courses {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.manual-course-card {
  padding: 14px;
  background: var(--bg);
}

.manual-course-card > summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.manual-course-card > summary span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.manual-booking-form section {
  display: grid;
  gap: 12px;
}

.manual-booking-form h4 {
  margin: 0;
  color: var(--accent);
}

.request-course-group {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
}

.request-course-group.current-requests {
  border-color: rgba(31, 74, 59, 0.35);
  background: linear-gradient(180deg, rgba(237, 247, 239, 0.7), var(--surface));
}

.request-course-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.request-course-head span {
  display: inline-flex;
  margin-bottom: 6px;
  border-radius: 999px;
  background: #edf7ef;
  color: var(--success);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 900;
}

.request-course-head h3,
.request-course-head p {
  margin: 0;
}

.request-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}

.request-info-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  padding: 14px;
}

.request-info-box dl {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-horse-edit textarea,
.horse-request-card textarea {
  min-height: 72px;
}

.request-info-box h4 {
  margin: 0 0 10px;
  color: var(--ink);
}

.request-info-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.request-info-head h4 {
  margin: 0;
}

.mini-edit-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.horse-pdf-link {
  margin-top: 8px;
}

.pdf-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  min-width: 34px;
  min-height: 24px;
  border-radius: 5px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(21, 62, 48, 0.18);
}

.pdf-action-button {
  border-color: rgba(21, 62, 48, 0.24);
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  box-shadow: 0 8px 20px rgba(21, 62, 48, 0.16);
}

.pdf-action-button::before {
  content: "PDF";
  margin-right: 8px;
  border-radius: 4px;
  background: #fff;
  color: var(--accent);
  padding: 3px 5px;
  font-size: 10px;
  line-height: 1;
}

.admin-manage-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 16px;
  margin-top: 24px;
}

.admin-panel {
  padding: 22px;
  margin-top: 24px;
}

.admin-panel h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  margin-bottom: 16px;
}

.print-schedule-panel {
  background: #fff;
}

.schedule-course-list {
  display: grid;
  gap: 16px;
}

.schedule-course-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  padding: 16px;
}

.schedule-course-card > summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}

.schedule-course-card > summary::-webkit-details-marker {
  display: none;
}

.schedule-course-card > summary span {
  display: grid;
  gap: 4px;
}

.schedule-course-card > summary strong {
  color: var(--ink);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.08;
}

.schedule-course-card > summary small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.schedule-course-card > summary em {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  padding: 5px 10px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.schedule-course-card[open] > summary em {
  color: var(--muted);
}

.schedule-course-card[open] > summary em::before {
  content: "schließen";
}

.schedule-course-card[open] > summary em {
  font-size: 0;
}

.schedule-course-card[open] > summary em::before {
  font-size: 12px;
}

.print-schedule {
  display: grid;
  gap: 18px;
}

.print-schedule-columns {
  grid-template-columns: 1fr;
  align-items: start;
  margin-top: 16px;
}

.print-day-header {
  display: none;
}

.schedule-day {
  display: grid;
  gap: 10px;
  min-width: 0;
  overflow-x: auto;
}

.schedule-day h3 {
  margin: 0;
}

.schedule-day table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.schedule-day th,
.schedule-day td {
  border: 1px solid var(--line);
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
}

.schedule-day th {
  background: var(--bg);
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.notice-schedule-tab .schedule-day table {
  table-layout: fixed;
}

.notice-schedule-tab .schedule-day th:nth-child(1) { width: 15%; }
.notice-schedule-tab .schedule-day th:nth-child(2) { width: 20%; }
.notice-schedule-tab .schedule-day th:nth-child(3) { width: 23%; }
.notice-schedule-tab .schedule-day th:nth-child(4) { width: 22%; }
.notice-schedule-tab .schedule-day th:nth-child(5) { width: 20%; }

.notice-schedule-tab .schedule-day td {
  padding: 13px 12px;
  font-size: 16px;
}

.notice-schedule-tab .schedule-day td strong {
  font-size: 17px;
}

.schedule-notes-input {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  padding: 7px 9px;
  color: var(--ink);
  outline: none;
  white-space: pre-wrap;
}

.schedule-notes-input:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
  font-size: 13px;
  pointer-events: none;
}

.schedule-notes-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(31, 74, 59, 0.12);
}

.schedule-view-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.schedule-reorder-panel {
  margin: 18px 0 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.schedule-reorder-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 17px;
  cursor: pointer;
  list-style: none;
}

.schedule-reorder-panel > summary::-webkit-details-marker {
  display: none;
}

.schedule-reorder-panel > summary span {
  display: grid;
  gap: 2px;
}

.schedule-reorder-panel > summary small,
.schedule-reorder-panel > summary em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.schedule-reorder-panel[open] > summary {
  border-bottom: 1px solid var(--line);
}

.schedule-reorder-content {
  padding: 17px;
}

.schedule-reorder-content > p {
  margin: 0 0 14px;
}

.schedule-lock-hint {
  border-left: 3px solid #b4674d;
  background: #f7ebe5;
  padding: 10px 12px;
  color: #733d2c;
}

.schedule-reorder-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.schedule-reorder-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-size: 13px;
  font-weight: 800;
}

.schedule-day td span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.schedule-empty {
  color: var(--muted);
  font-style: italic;
}

.admin-mini-form {
  display: grid;
  gap: 12px;
  padding: 16px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.admin-subhead {
  display: grid;
  gap: 4px;
  margin: 8px 0 14px;
}

.admin-subhead h3,
.admin-subhead p {
  margin: 0;
}

.admin-subhead p {
  color: var(--muted);
}

.admin-inline-form {
  display: grid;
  grid-template-columns: auto minmax(150px, 0.8fr) minmax(240px, 1.4fr) 120px auto;
  gap: 10px;
  align-items: end;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.admin-inline-form strong {
  align-self: center;
  color: var(--ink);
}

.admin-create-slot-box {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}

.admin-create-slot-box h3 {
  margin: 0 0 12px;
}

.course-edit-form textarea {
  min-height: 118px;
}

.trainer-edit-form {
  grid-template-columns: minmax(130px, 180px) repeat(2, minmax(0, 1fr));
  align-items: start;
}

.trainer-edit-form h3,
.trainer-edit-form textarea,
.trainer-edit-form .tag-fieldset,
.trainer-edit-form .check,
.trainer-edit-form button {
  grid-column: 2 / -1;
}

.tag-fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface);
}

.tag-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 14px;
}

.trainer-admin-preview {
  grid-row: span 4;
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 34px rgba(31, 74, 59, 0.08);
}

.admin-day-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.admin-day-details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  overflow: hidden;
}

.admin-day-details summary {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.admin-day-details summary::-webkit-details-marker {
  display: none;
}

.admin-day-details summary::before {
  content: "+";
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: var(--accent);
  background: var(--surface);
  flex: 0 0 auto;
}

.admin-day-details[open] summary::before {
  content: "-";
}

.admin-day-details summary span {
  flex: 1;
}

.admin-day-details summary strong {
  color: var(--muted);
  font-size: 14px;
}

.admin-day-content {
  border-top: 1px solid var(--line);
  padding: 16px;
}

.slot-edit-form {
  display: grid;
  grid-template-columns: minmax(105px, 0.8fr) 92px 74px 74px minmax(150px, 1fr) minmax(220px, 1.4fr) minmax(72px, 0.5fr) 112px;
  gap: 8px;
  align-items: center;
  margin-top: 9px;
}

.slot-edit-form input {
  min-height: 38px;
  padding: 8px 9px;
}

.slot-edit-form button,
.inline-delete-form button {
  min-height: 38px;
  padding: 0 10px;
  font-size: 13px;
}

.small-check {
  font-size: 13px;
}

.inline-delete-form {
  display: flex;
  justify-content: flex-end;
  margin: 6px 0 10px;
}

.admin-add-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.slot-create-form {
  margin-top: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.slot-create-form .check,
.slot-create-form button {
  align-self: end;
}

.course-list-grid {
  display: grid;
  gap: 18px;
}

.admin-course-overview {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  margin-top: 24px;
}

.admin-course-card,
.admin-slot-card {
  padding: 22px;
}

.admin-course-card h2,
.admin-slot-card h2 {
  margin: 10px 0 8px;
  font-size: clamp(22px, 2.4vw, 28px);
}

.admin-course-card .button {
  margin-top: 18px;
}

.admin-slot-days {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.compact-slots {
  margin-bottom: 14px;
}

.admin-hint {
  color: var(--muted);
  font-size: 13px;
  margin: 8px 0 0;
}

code {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
}

.request-card {
  padding: 22px;
  display: block;
}

.request-card-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-top: 18px;
}

.request-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(260px, auto) auto;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.request-summary::-webkit-details-marker {
  display: none;
}

.request-summary::after {
  content: "öffnen";
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}

.request-card[open] .request-summary::after {
  content: "schließen";
}

.request-summary strong {
  min-width: 0;
  color: var(--ink);
  font-size: 18px;
}

.request-summary small {
  color: var(--muted);
  font-weight: 800;
}

.request-horse-summary {
  display: grid;
  gap: 3px;
  justify-items: end;
  text-align: right;
  min-width: min(420px, 100%);
}

.request-horse-summary b {
  color: var(--ink);
  font-size: 0.9rem;
}

.request-horse-summary span {
  line-height: 1.35;
}

.request-main h2,
.request-main h3 {
  margin: 8px 0 4px;
}

.status {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 8px;
  color: var(--accent);
  font-weight: 900;
  font-size: 13px;
}

dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

dd {
  margin: 2px 0 0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171a17;
    --surface: #222720;
    --surface-strong: #30372e;
    --ink: #f6f4ef;
    --muted: #c4c9bd;
    --line: #465141;
    --accent: #9cc6ab;
    --accent-2: #d0a57c;
    --shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
  }

  input,
  select,
  textarea {
    background: #171a17;
  }

  button,
  .button {
    color: #171a17;
  }
}

@media (max-width: 900px) {
  nav {
    display: none;
  }

  .hero,
  .platform-hero,
  .course-teaser,
  .location-section,
  .hess-section,
  .form-section,
  .admin-manage-grid,
  .admin-course-overview,
  .admin-day-grid,
  .admin-add-grid,
  .request-info-grid,
  .request-card-body {
    grid-template-columns: 1fr;
  }

  .slot-edit-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trainer-edit-form {
    grid-template-columns: 1fr;
  }

  .admin-inline-form,
  .slot-create-form {
    grid-template-columns: 1fr 1fr;
  }

  .admin-list-item {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .admin-list-item .button,
  .admin-list-item .status {
    grid-column: 2;
    justify-self: start;
  }

  .admin-course-list-item {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }

  .admin-course-list-item .button,
  .admin-course-list-item .status {
    grid-column: auto;
    justify-self: start;
  }

  .admin-course-actions {
    grid-column: auto;
    justify-self: start;
    justify-content: flex-start;
  }

  .schedule-reorder-form {
    grid-template-columns: 1fr;
  }

  .trainer-edit-form h3,
  .trainer-edit-form textarea,
  .trainer-edit-form .tag-fieldset,
  .trainer-edit-form .check,
  .trainer-edit-form button {
    grid-column: auto;
  }

  .tag-checkbox-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: auto;
  }

  .platform-panel {
    min-height: 320px;
  }

  .hero-photo,
  .portrait {
    min-height: 360px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .focus-grid {
    grid-template-columns: 1fr;
  }

  .platform-feature-strip {
    grid-template-columns: 1fr;
  }

  .form-copy {
    position: static;
  }

  .admin-shell {
    width: min(100% - 32px, 1180px);
  }

  .admin-panel,
  .request-course-group,
  .request-card {
    padding: 20px;
  }

  .request-summary {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .request-horse-summary {
    justify-items: start;
    text-align: left;
    min-width: 0;
  }

  .request-summary::after {
    justify-self: start;
  }

  .request-info-box dl {
    grid-template-columns: 1fr;
  }

  .profile-card dl {
    grid-template-columns: 1fr;
  }

  .manual-course-card > summary {
    display: grid;
  }
}

@media (max-width: 640px) {
  .site-header {
    justify-content: center;
  }

  .hero,
  .platform-hero,
  .course-list-section,
  .platform-feature-strip,
  .platform-signup-section,
  .course-backbar,
  .location-section,
  .hess-section,
  .feature-section,
  .expectations-section,
  .slots-section,
  .form-section,
  footer,
  .flash,
  .admin-shell {
    width: min(100% - 32px, 1180px);
  }

  h1 {
    font-size: 44px;
  }

  .location-section {
    padding: 22px;
  }

  .admin-section-head {
    display: grid;
  }

  .admin-panel,
  .manual-booking-panel,
  .request-course-group,
  .request-card,
  .admin-list-item {
    padding: 18px;
  }

  .request-course-head {
    display: grid;
  }

  .fact-grid,
  .feature-grid,
  .focus-grid,
  .day-grid,
  .admin-slot-days,
  .field-grid,
  .checkbox-grid,
  .slot-choice-grid,
  dl {
    grid-template-columns: 1fr;
  }

  .location-photo {
    min-height: 250px;
  }

  .slot-edit-form {
    grid-template-columns: 1fr;
  }

  .tag-checkbox-grid {
    grid-template-columns: 1fr;
  }

  .admin-inline-form,
  .slot-create-form {
    grid-template-columns: 1fr;
  }

  footer,
  .admin-head,
  .admin-actions {
    display: grid;
  }
}

@media print {
  @page {
    size: A4 landscape;
    margin: 10mm;
  }

  body.admin-view {
    background: #ffffff;
    color: #151913;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .admin-shell > .back-link,
  .admin-head,
  .admin-tabs,
  .admin-tab-panel:not(.schedule-tab-panel),
  .admin-panel:not(.print-schedule-panel) {
    display: none !important;
  }

  .admin-shell {
    width: 100%;
    padding: 0;
  }

  .print-schedule-panel {
    background: #ffffff;
    display: block !important;
    border: 0;
    box-shadow: none;
    margin: 0;
    padding: 0;
  }

  .schedule-tab-panel {
    display: block !important;
  }

  .schedule-tab-panel .admin-panel {
    display: block !important;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .no-print {
    display: none !important;
  }

  .print-schedule-panel button,
  .schedule-tab-panel button,
  .schedule-course-card > summary,
  .print-schedule-panel > .admin-section-head,
  .schedule-tab-panel > .admin-panel > .admin-section-head {
    display: none !important;
  }

  .schedule-course-card {
    display: block;
    border: 0;
    padding: 0;
    margin: 0;
    background: #ffffff;
    break-after: auto;
  }

  .schedule-course-card:not([open]) {
    display: none;
  }

  .print-schedule-columns {
    display: block;
    margin: 0;
  }

  .schedule-day {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    break-inside: avoid-page;
    break-after: page;
    overflow: visible;
  }

  .schedule-day:last-child {
    break-after: auto;
  }

  .print-day-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 18px;
    align-items: end;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #1f4a3b;
  }

  .print-day-header span {
    grid-column: 1 / -1;
    color: #1f4a3b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .print-day-header strong {
    font-size: 18px;
    line-height: 1.15;
  }

  .print-day-header small {
    color: #62675c;
    font-size: 10px;
    font-weight: 700;
    text-align: right;
  }

  .schedule-day h3 {
    margin: 0 0 8px;
    border-left: 3px solid #1f4a3b;
    background: #f1eee7;
    padding: 6px 9px;
    font-size: 15px;
    line-height: 1.2;
  }

  .schedule-day table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 10px;
    line-height: 1.25;
  }

  .schedule-day th:nth-child(1) { width: 10%; }
  .schedule-day th:nth-child(2) { width: 18%; }
  .schedule-day th:nth-child(3) { width: 23%; }
  .schedule-day th:nth-child(4) { width: 27%; }
  .schedule-day th:nth-child(5) { width: 22%; }

  .notice-schedule-tab .schedule-day th:nth-child(1) { width: 15%; }
  .notice-schedule-tab .schedule-day th:nth-child(2) { width: 20%; }
  .notice-schedule-tab .schedule-day th:nth-child(3) { width: 23%; }
  .notice-schedule-tab .schedule-day th:nth-child(4) { width: 22%; }
  .notice-schedule-tab .schedule-day th:nth-child(5) { width: 20%; }

  .notice-schedule-tab .schedule-day table {
    font-size: 15px;
    line-height: 1.3;
  }

  .notice-schedule-tab .schedule-day th,
  .notice-schedule-tab .schedule-day td {
    padding: 9px 10px;
  }

  .notice-schedule-tab .schedule-day td,
  .notice-schedule-tab .schedule-day td strong {
    font-size: 15px;
  }

  .notice-schedule-tab .schedule-empty {
    font-size: 14px;
  }

  .schedule-notes-input,
  .schedule-notes-input:focus {
    min-height: 34px;
    border: 0;
    padding: 0;
    outline: 0;
    box-shadow: none;
    caret-color: transparent;
  }

  .schedule-notes-input:empty::before {
    content: "";
  }

  .schedule-day th {
    background: #f1eee7;
  }

  .schedule-day th,
  .schedule-day td {
    overflow-wrap: anywhere;
    vertical-align: top;
    padding: 5px 6px;
  }
}
