/* TrailPark Oberbayern — Beispiel-Website (Entwurf)
   Layout: mobile first (base styles are the phone layout, min-width queries widen it); full-width
   photo bands with a centred 1120px content column; cards in wrapping grids.
   Light and dark theme: follows the device, overridable with the header toggle (assets/theme.js). */
:root {
  --pine: #1e2b24;       /* header, footer, dark bands */
  --pine-2: #2a3b31;
  --gold: #c2a067;       /* from the TrailPark logo horse */
  --gold-deep: #8a6a33;
  --paper: #f6f4ef;      /* page ground, sand-tinted */
  --white: #ffffff;
  --ink: #1d231f;
  --muted: #5d6660;
  --line: #ddd8cc;
  --kids: #d9488b;       /* raspberry, from the Kinderreitcenter dot logo */
  --kids-soft: #fbe9f1;
  --trail-soft: #efe6d4;
  --ok: #2f7a4b;
  --surface: #ffffff;    /* cards, dialogs, alternate bands */
  --kids-ink: #b8306f;   /* raspberry for text on the page ground */
  --kids-tag: #a32a63;
  --demo-bg: #fff3cd;
  --demo-fg: #5c4400;
  --warn: #b5531f;
  --shadow: rgba(30,43,36,.15);
  --font-display: "Bitter", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 10px;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121814; --surface: #1b231e; --ink: #e6ebe7; --muted: #a8b3ac; --line: #2f3b34;
    --gold-deep: #d8b97f; --trail-soft: #2c2719; --kids-soft: #3b1f2d; --kids-ink: #f28cba; --kids-tag: #f6b3d1;
    --ok: #74d39c; --demo-bg: #3a3016; --demo-fg: #f2dc97; --warn: #f2a46f; --shadow: rgba(0,0,0,.45);
    --pine: #18231d; --pine-2: #26352c; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121814; --surface: #1b231e; --ink: #e6ebe7; --muted: #a8b3ac; --line: #2f3b34;
  --gold-deep: #d8b97f; --trail-soft: #2c2719; --kids-soft: #3b1f2d; --kids-ink: #f28cba; --kids-tag: #f6b3d1;
  --ok: #74d39c; --demo-bg: #3a3016; --demo-fg: #f2dc97; --warn: #f2a46f; --shadow: rgba(0,0,0,.45);
  --pine: #18231d; --pine-2: #26352c; color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-deep); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.eyebrow { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--gold-deep); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.stack { display: grid; gap: 16px; }
.section { padding-block: 44px; }
.section.alt { background: var(--surface); }
@media (min-width: 761px) { body { font-size: 18px; } .section { padding-block: 64px; } }
.section-head { display: grid; gap: 10px; margin-bottom: 28px; max-width: 70ch; }

/* Draft notice */
.draft {
  background: var(--gold); color: var(--pine); font-size: .85rem; font-weight: 600; text-align: center;
  padding-block: 6px;
}

/* Header */
.site-header { background: var(--pine); color: var(--white); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; }
.brand img { height: 44px; width: auto; }
.brand span { font-size: .8rem; color: var(--gold); line-height: 1.2; }
.header-tools { display: flex; gap: 8px; align-items: center; }
.theme-toggle { background: none; border: 1px solid var(--pine-2); color: var(--white); border-radius: 8px; width: 42px; height: 42px; display: grid; place-items: center; cursor: pointer; padding: 0; }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .sun, :root[data-theme="dark"] .theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--pine); flex-direction: column; gap: 4px; padding: 8px 16px 16px; }
.nav.open { display: flex; }
.nav a { color: var(--white); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--pine-2); color: var(--gold); }
.nav-toggle { display: inline-block; background: none; border: 1px solid var(--pine-2); color: var(--white); border-radius: 8px; padding: 8px 12px; min-height: 42px; font: inherit; font-weight: 600; }
.brand span { display: none; }
@media (min-width: 861px) {
  .nav { display: flex; position: static; flex-direction: row; flex-wrap: wrap; padding: 0; background: none; }
  .nav-toggle { display: none; }
  .brand span { display: inline; }
  .site-header .wrap { flex-wrap: nowrap; }
}

/* Hero */
.hero { position: relative; color: var(--white); background: var(--pine); }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero .wrap { position: relative; padding-block: 64px 56px; display: grid; gap: 18px; }
@media (min-width: 761px) { .hero .wrap { padding-block: 96px 72px; } }
.hero p { font-size: 1.1rem; max-width: 52ch; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.hero h1 { text-shadow: 0 2px 18px rgba(0,0,0,.45); max-width: 18ch; }
.hero .eyebrow { color: var(--gold); background: rgba(21,30,25,.72); justify-self: start; padding: 4px 10px; border-radius: 6px; }

/* Doors on the start page */
.doors { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: -32px; position: relative; }
@media (min-width: 761px) { .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -48px; } }
.door { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px var(--shadow); display: grid; text-decoration: none; color: var(--ink); }
.door img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.door .body { padding: 22px; display: grid; gap: 10px; }
.door .who { font-size: .9rem; color: var(--muted); }
.door.kids { border-top: 6px solid var(--kids); }
.door.trail { border-top: 6px solid var(--gold); }
.door .go { font-weight: 700; }
.door.kids .go { color: var(--kids-ink); }
.door.trail .go { color: var(--gold-deep); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  border-radius: 8px; padding: 12px 20px; min-height: 48px; border: 2px solid transparent;
  background: var(--gold); color: var(--pine);
}
.btn:hover { background: #d1b07a; }
.btn.kids { background: var(--kids); color: var(--white); }
.btn.kids:hover { background: #c23a79; }
.btn.ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn.dark { background: var(--pine); color: var(--white); border-color: var(--pine-2); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--kids); outline-offset: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Grids and cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: center; gap: 40px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 10px; align-content: start; }
.card .price { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.card .meta { font-size: .9rem; color: var(--muted); }
.photo { border-radius: var(--radius); overflow: hidden; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
figure.photo { margin: 0; border-radius: 0; overflow: visible; }
figure.photo img { border-radius: var(--radius); display: block; }
.photo figcaption { font-size: .85rem; color: var(--muted); padding: 8px 2px 0; line-height: 1.4; }
.termine-static { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--trail-soft); color: var(--gold-deep); justify-self: start; }
.tag.kids { background: var(--kids-soft); color: var(--kids-tag); }
.tag.example { background: var(--demo-bg); color: var(--demo-fg); }
ul.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
ul.ticks li { padding-left: 28px; position: relative; }
ul.ticks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 3px solid var(--gold-deep); border-bottom: 3px solid var(--gold-deep); transform: rotate(-45deg); }

/* Course dates */
.dates { display: grid; gap: 12px; }
.date-row {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px;
}
.date-row .day { text-align: center; font-family: var(--font-display); line-height: 1.1; }
.date-row .day b { display: block; font-size: 1.8rem; }
.date-row .day small { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.date-row .what { display: grid; gap: 2px; min-width: 0; }
.date-row .left { font-size: .88rem; color: var(--ok); font-weight: 600; }
.date-row .left.few { color: var(--warn); }
.date-row .btn { grid-column: 1 / -1; }
@media (min-width: 561px) { .date-row { grid-template-columns: 88px minmax(0, 1fr) auto; } .date-row .btn { grid-column: auto; } }

/* Reviews */
.quote { background: var(--surface); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); display: grid; gap: 10px; }
.quote p { font-size: 1.05rem; }
.quote cite { font-style: normal; font-weight: 700; color: var(--muted); font-size: .9rem; }
.stars { color: var(--gold); letter-spacing: 2px; }

/* FAQ */
details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
details.faq summary { cursor: pointer; font-weight: 700; }
details.faq p { margin-top: 10px; color: var(--muted); }

/* Contact band */
.contact { background: var(--pine); color: var(--white); }
.contact .grid.two { align-items: start; }
.contact a { color: var(--gold); }
.contact .card { background: var(--pine-2); border-color: var(--pine-2); color: var(--white); }
.contact .card .meta { color: #c6cfc9; }

/* Footer */
.site-footer { background: #151e19; color: #b9c2bc; font-size: .9rem; padding-block: 28px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
.site-footer a { color: #e3e8e4; }

/* Booking dialog */
.dialog-backdrop { position: fixed; inset: 0; background: rgba(15,22,18,.6); z-index: 50; display: grid; place-items: center; padding: 16px; }
.dialog {
  background: var(--surface); color: var(--ink); border-radius: 14px; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  padding: 24px; display: grid; gap: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.dialog header { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.dialog .close { background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 8px; }
.steps { display: flex; gap: 6px; }
.steps span { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.steps span.on { background: var(--gold); }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); width: 100%;
}
fieldset.field { border: 0; padding: 0; margin: 0; }
.choice { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.choice input { width: auto; }
.choice:has(input:checked) { border-color: var(--gold); background: var(--trail-soft); }
.sum { background: var(--paper); border-radius: 8px; padding: 14px; display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.sum div { display: flex; justify-content: space-between; gap: 12px; }
.sum .total { font-weight: 700; border-top: 1px solid var(--line); padding-top: 6px; }
.note-demo { font-size: .85rem; background: var(--demo-bg); color: var(--demo-fg); border-radius: 8px; padding: 10px 12px; }
.success { text-align: center; display: grid; gap: 12px; justify-items: center; }
.success .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); position: relative; }
.success .tick::after { content: ""; position: absolute; left: 20px; top: 18px; width: 22px; height: 12px; border-left: 5px solid #fff; border-bottom: 5px solid #fff; transform: rotate(-45deg); }

/* Voucher preview */
.voucher {
  border-radius: 14px; padding: 22px; color: var(--white); background: var(--pine);
  background-image: linear-gradient(135deg, rgba(194,160,103,.25), transparent 60%);
  display: grid; gap: 12px; border: 2px solid var(--gold); min-height: 260px; align-content: space-between;
}
.voucher img { height: 48px; width: auto; }
.voucher .v-title { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); }
.voucher .v-code { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .12em; font-size: .95rem; color: #d9dfdb; }

/* Voucher purchase demo: customer email, PDF preview, notification for Charley */
.inline { display: flex; gap: 8px; }
.inline input { flex: 1; min-width: 0; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--gold-deep); text-decoration: underline; cursor: pointer; }
.mail { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); font-size: .95rem; }
.mail-head { background: var(--paper); padding: 10px 14px; display: grid; gap: 2px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.mail-body { padding: 4px 14px 12px; }
.mail-body p { margin: 10px 0; }
.attach { display: inline-block; font-size: .85rem; font-weight: 600; border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; background: var(--paper); }
.v-pdf { display: block; width: 100%; height: auto; border-top: 1px solid var(--line); }
.push { display: grid; gap: 2px; background: var(--pine); color: var(--white); border-radius: 14px; padding: 12px 16px; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.push .meta { color: #c9d1cc; }
.dialog { padding: 20px; }
@media (min-width: 561px) { .dialog { padding: 24px; } .voucher { padding: 28px; } }
.dialog-backdrop { padding: 10px; }
@media (min-width: 561px) { .dialog-backdrop { padding: 16px; } }

/* Link to the sister site in the main navigation */
.nav a.nav-other { border: 1px solid var(--pine-2); color: var(--gold); }
@media (min-width: 861px) { .nav a.nav-other { margin-left: 8px; } }
