/* Beton Vivet – Terminbuchung
   Design angelehnt an betonvivet.com:
   Bitter (Headlines), Source Sans Pro (Text), Cookie (Wortmarke),
   minimalistisch, weiß/anthrazit, Beton-Grautöne. */

:root {
  --bg: #ffffff;
  --ink: #1a1a1a;
  --muted: #74726e;
  --line: #e4e1db;
  --surface: #f5f4f1;
  --surface-2: #eeece8;
  --dark: #1b1b1b;
  --dark-2: #2a2a28;
  --accent: #1a1a1a;
  --accent-hover: #3a3a38;
  --ok: #2f7d5b;
  --err: #b23b3b;
  --shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .05);
  --radius: 4px;
  --maxw: 960px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Source Sans Pro', -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Bitter', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 .5em;
}

a { color: var(--ink); }

/* --- Header --- */
.site-header {
  background: var(--dark);
  color: #fff;
  padding: 18px 24px;
}
.site-header .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.brand {
  font-family: 'Cookie', cursive;
  font-size: 34px;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  letter-spacing: .5px;
}
.brand-logo {
  display: block;
  height: 56px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}
.brand small {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  display: block;
  color: #b9b7b2;
  margin-top: 2px;
}
.site-header .tagline {
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #c8c6c1;
}

/* --- Layout --- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.lead {
  color: var(--muted);
  font-size: 18px;
  margin: -6px 0 32px;
}

/* --- Stepper --- */
.steps {
  display: flex;
  gap: 0;
  margin: 0 0 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.step {
  flex: 1;
  padding: 12px 10px;
  text-align: center;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
  border-right: 1px solid var(--line);
}
.step:last-child { border-right: 0; }
.step.active { background: var(--dark); color: #fff; }
.step.done { color: var(--ink); background: #fff; }
.step .num {
  display: inline-block;
  width: 22px; height: 22px; line-height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,.08);
  margin-right: 6px;
  font-weight: 700;
}
.step.active .num { background: rgba(255,255,255,.2); }

/* --- Panels --- */
.panel { display: none; }
.panel.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.section-title { font-size: 26px; margin-bottom: 18px; }

/* --- Cards (Standortwahl) --- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  cursor: pointer;
  background: #fff;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card:hover { border-color: var(--ink); box-shadow: var(--shadow); transform: translateY(-2px); }
.card.selected { border-color: var(--ink); box-shadow: var(--shadow); }
.card h3 { font-size: 22px; margin-bottom: 4px; }
.card .addr { color: var(--muted); font-size: 15px; }

/* --- Calendar --- */
.cal { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; max-width: 420px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head .month { font-family: 'Bitter', serif; font-weight: 700; font-size: 18px; }
.cal-nav {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  width: 36px; height: 36px; cursor: pointer; font-size: 18px; line-height: 1; color: var(--ink);
}
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: 12px; color: var(--muted); padding: 4px 0; text-transform: uppercase; letter-spacing: .04em; }
.cal-day {
  aspect-ratio: 1 / 1; border: 1px solid transparent; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
  color: #c4c2bd; background: transparent;
}
.cal-day.bookable { color: var(--ink); background: var(--surface); border-color: var(--line); cursor: pointer; font-weight: 600; }
.cal-day.bookable:hover { background: var(--dark); color: #fff; border-color: var(--dark); }
.cal-day.selected { background: var(--dark); color: #fff; border-color: var(--dark); }
.cal-day.empty { border: 0; background: transparent; }

/* --- Slots --- */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 6px; }
.slot {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 12px 8px; text-align: center; cursor: pointer; font-size: 16px; font-weight: 600;
  transition: all .12s;
}
.slot:hover { border-color: var(--ink); }
.slot.selected { background: var(--dark); color: #fff; border-color: var(--dark); }

/* --- Forms --- */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.field .req { color: var(--err); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; color: var(--ink); background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}
.field .hint { color: var(--muted); font-size: 13px; margin-top: 4px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  padding: 13px 26px; border-radius: var(--radius); font: inherit; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); background: var(--surface); }
.btn.danger { background: var(--err); border-color: var(--err); }
.btn-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }

/* --- Summary box --- */
.summary {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 24px;
}
.summary dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; }

/* --- Messages --- */
.msg { padding: 12px 16px; border-radius: var(--radius); margin: 12px 0; font-size: 15px; }
.msg.err { background: #fbeaea; color: var(--err); border: 1px solid #f0cccc; }
.msg.ok { background: #e9f4ee; color: var(--ok); border: 1px solid #c7e4d3; }
.empty-note { color: var(--muted); padding: 20px 0; }

/* --- Confirmation --- */
.confirm-box { text-align: center; padding: 30px 0; }
.confirm-box .check {
  width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 34px; margin: 0 auto 18px;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--line); color: var(--muted); font-size: 14px;
  padding: 28px 24px; text-align: center;
}
.site-footer a { color: var(--muted); }

.loading { color: var(--muted); padding: 16px 0; }
.hidden { display: none !important; }
