:root {
  --wood-900: #1f130b;
  --wood-800: #2a1a10;
  --wood-700: #3e2414;
  --wood-500: #8a5a34;
  --cream: #f7f1e6;
  --cream-2: #efe5d3;
  --paper: #fffdf8;
  --ink: #2a1d14;
  --muted: #7a6a5c;
  --line: #e2d6c2;
  --red: #b3261e;
  --red-dark: #8f1d17;
  --gold: #c8a02a;
  --free: #2f7d4f;
  --free-bg: #eaf5ee;
  --shadow: 0 1px 2px rgb(42 26 16 / .06), 0 8px 30px rgb(42 26 16 / .08);
  --radius: 18px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, ui-serif, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--sans); color: var(--ink); background: var(--cream); }
img { max-width: 100%; }
a { color: var(--red); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1.2em; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); font: 600 15px var(--sans);
  cursor: pointer; text-decoration: none; transition: transform .12s, background .15s, box-shadow .15s;
}
.btn:hover { background: var(--cream-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 6px 18px rgb(179 38 30 / .3); }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { background: transparent; }
.btn-lg { padding: .95em 1.6em; font-size: 16px; }
.btn-danger { color: var(--red); border-color: #e9c2bd; }
.btn-danger:hover { background: #fbecea; }
.icon-btn {
  flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--paper); font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink);
}
.icon-btn:disabled { opacity: .35; cursor: default; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--wood-900); isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgb(20 12 7 / .92) 0%, rgb(20 12 7 / .65) 45%, rgb(20 12 7 / .15) 100%),
    url("/img/kegelbahn.svg") center / cover no-repeat;
}
.topbar {
  max-width: 1160px; margin: 0 auto; padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 600 20px var(--serif); }
.brand img { border-radius: 8px; }
.topbar-links { display: flex; gap: 22px; }
.topbar-links a { color: #f3dfb5; text-decoration: none; font-weight: 500; }
.topbar-links a:hover { color: #fff; }
.hero-content { max-width: 1160px; margin: 0 auto; padding: 70px 20px 40px; }
.hero-content > * { max-width: 620px; }
.eyebrow { font: italic 600 18px var(--serif); color: var(--gold); margin: 0 0 12px; letter-spacing: .02em; }
.hero h1 { font-size: clamp(36px, 6vw, 62px); letter-spacing: -.01em; }
.lead { font-size: 19px; color: #eadbc2; margin: 20px 0 32px; }
.facts {
  list-style: none; margin: 0 auto; padding: 0 20px 44px; max-width: 1160px;
  display: flex; gap: 14px; flex-wrap: wrap;
}
.facts li {
  display: flex; align-items: baseline; gap: 8px; padding: 12px 18px; border-radius: 14px;
  background: rgb(255 255 255 / .08); backdrop-filter: blur(8px); border: 1px solid rgb(255 255 255 / .14);
}
.facts strong { font: 700 24px var(--serif); color: #fff; }
.facts span { color: #e3d1b3; font-size: 14px; }

/* ---------- Sections ---------- */
.section { max-width: 1160px; margin: 0 auto; padding: 64px 20px; }
.section-head { max-width: 680px; margin-bottom: 28px; }
.section-head h2, .about h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 10px; }
.section-head p { color: var(--muted); margin: 0; font-size: 17px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.booking { padding-top: 0; }
.booking .section-head { margin-top: 64px; }

.step { display: flex; align-items: center; gap: 12px; margin: 28px 0 14px; }
.card > .step:first-child { margin-top: 0; }
.step h3 { font-size: 21px; }
.step h3 small { font: 400 15px var(--sans); color: var(--muted); }
.step-no {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wood-800); color: var(--gold); font: 700 15px var(--serif);
}

/* Tagesleiste */
.days-wrap { display: flex; align-items: center; gap: 10px; }
.days {
  flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(74px, 1fr); gap: 8px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 8px; scrollbar-width: thin;
}
.day {
  scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 10px 4px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper);
  cursor: pointer; font: inherit; color: var(--ink); transition: border-color .15s, background .15s, transform .12s;
}
.day:hover:not(:disabled) { border-color: var(--wood-500); transform: translateY(-1px); }
.day:disabled { opacity: .45; cursor: not-allowed; }
.day[aria-selected="true"] { background: var(--wood-800); border-color: var(--wood-800); color: #fff; }
.day .dw { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: inherit; opacity: .75; }
.day .dd { font: 700 24px var(--serif); }
.day .dm { font-size: 12px; opacity: .75; }
.day .df { margin-top: 4px; font-size: 11px; font-weight: 600; color: var(--free); white-space: nowrap; }
.day .df.few { color: #b0741a; }
.day .df.none { color: var(--red); }
.day[aria-selected="true"] .df { color: #b9e3c7; }
.date-jump { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--muted); font-size: 14px; }
.date-jump input { font: inherit; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); }

/* Stunden */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.slot {
  display: grid; gap: 2px; text-align: left; padding: 12px 14px; border-radius: 14px; font: inherit;
  border: 1.5px solid #cfe6d7; background: var(--free-bg); color: var(--ink); cursor: pointer;
  transition: transform .12s, background .15s, border-color .15s;
}
.slot:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--free); }
.slot .st { font: 700 20px var(--serif); }
.slot .se { font-size: 13px; color: var(--muted); }
.slot .ss { font-size: 13px; font-weight: 600; color: var(--free); }
.slot.selected { background: var(--red); border-color: var(--red); color: #fff; }
.slot.selected .se, .slot.selected .ss { color: #ffe3de; }
.slot.booked { background: repeating-linear-gradient(135deg, #f1e9dc 0 8px, #ebe1d0 8px 16px); border-color: var(--line); cursor: not-allowed; }
.slot.booked .ss { color: var(--muted); }
.slot.blocked { background: #efe7da; border-color: var(--line); color: #a39482; cursor: not-allowed; }
.slot.blocked .se, .slot.blocked .ss { color: #a39482; }
.slot.unavailable { background: #f4efe7; border-color: #ece3d4; color: #b3a697; cursor: not-allowed; }
.slot.unavailable .se, .slot.unavailable .ss { color: #b3a697; }
.empty { grid-column: 1 / -1; color: var(--muted); margin: 6px 0; }
.legend { list-style: none; padding: 0; margin: 14px 0 0; display: flex; gap: 18px; color: var(--muted); font-size: 13px; }
.legend li { display: flex; align-items: center; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.dot.free { background: var(--free-bg); border: 1.5px solid #cfe6d7; }
.dot.selected { background: var(--red); }
.dot.booked { background: #e6dccb; }

.summary {
  margin-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; border-radius: 14px; background: var(--wood-800); color: #fff;
}
.summary-when { font: 600 18px var(--serif); }
.summary-sub { color: #e3d1b3; font-size: 14px; }
.summary-price { font: 700 30px var(--serif); color: var(--gold); white-space: nowrap; }

/* Formular */
.form { display: grid; gap: 14px; }
.form label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-weight: 600; font-size: 14px; }
.form label > input, .form label > textarea, .form label > select { flex: 1 0 100%; }
.form .opt { font-weight: 400; color: var(--muted); }
.form input:not([type="checkbox"]), .form textarea {
  font: 16px var(--sans); padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink); width: 100%;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--wood-500); box-shadow: 0 0 0 3px rgb(200 160 42 / .25); }
.form textarea { resize: vertical; }
.form .check { display: flex; flex-wrap: nowrap; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--red); flex: none; }
.form .btn-primary { justify-self: start; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.form-error { margin: 0; padding: 12px 14px; border-radius: 12px; background: #fbecea; color: var(--red-dark); font-weight: 600; }
.hint { margin: 0; font-size: 13px; color: var(--muted); }

/* Erfolg */
.success { text-align: center; padding: 44px 28px; }
.success-art { width: 90px; color: var(--wood-800); margin-bottom: 8px; }
.success h3 { font-size: 30px; margin-bottom: 10px; }
.code-box { display: inline-block; padding: 10px 18px; border-radius: 12px; background: var(--cream-2); }
.code-box strong { font: 700 20px ui-monospace, Menlo, monospace; letter-spacing: .06em; margin-left: 6px; }
.warn { color: var(--muted); font-size: 14px; }
.link-row { display: flex; gap: 8px; max-width: 640px; margin: 0 auto 18px; }
.link-row input { flex: 1; min-width: 0; font: 14px ui-monospace, Menlo, monospace; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }

/* Über */
.about { border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.about p { font-size: 17px; }
.ticks { list-style: none; padding: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--red); box-shadow: inset 0 0 0 5px #f2c9c4; }
.raute-figure { margin: 0; text-align: center; color: var(--wood-800); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.raute-figure img { width: 220px; }
.raute-figure figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* Kontakt */
.contact { border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.contact-item {
  display: grid; gap: 4px; padding: 18px 20px; border-radius: 14px; background: var(--paper);
  border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 600;
  overflow-wrap: anywhere;
}
a.contact-item:hover { border-color: var(--wood-500); }
.contact-item.wide { grid-column: 1 / -1; }
.ci-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* Footer */
.footer {
  background: var(--wood-900); color: #cdb997; padding: 26px 20px; font-size: 14px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer nav { display: flex; gap: 20px; }
.footer a { color: #cdb997; text-decoration: none; }
.footer a:hover { color: #fff; }

/* Unterseiten (Storno, Impressum, Verwaltung) */
.page-top { background: var(--wood-900); }
.page-top .topbar { padding: 16px 20px; }
.narrow { max-width: 760px; }
.prose h1 { font-size: 34px; margin-bottom: 18px; }
.prose h2 { font-size: 22px; margin: 28px 0 8px; }
.placeholder { background: #fff6d6; border: 1px dashed var(--gold); padding: 2px 6px; border-radius: 6px; }

@media (max-width: 760px) {
  .card { padding: 20px 16px; }
  .hero-content { padding-top: 36px; }
  .lead { font-size: 17px; }
  .topbar-links { gap: 14px; }
  .icon-btn { display: none; }
  .grid-2, .about-grid { grid-template-columns: 1fr; }
  .slots { grid-template-columns: repeat(2, 1fr); }
  .summary { flex-direction: column; align-items: flex-start; }
  .form .btn-primary { justify-self: stretch; }
  .section { padding: 48px 16px; }
  .booking .section-head { margin-top: 48px; }
}
.page-title { font-size: 30px; margin-bottom: 14px; }
.mt { margin-top: 20px; }
