/* Terminbuchung Mentoren-Media-Verlag */

:root {
  --blue: #1d3a5f;
  --blue-dark: #142a46;
  --gold: #c9971c;
  --gold-light: #f3e3b8;
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #222a33;
  --muted: #5c6672;
  --line: #e2e6ea;
  --ok: #1d7a3d;
  --danger: #b23a3a;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(20, 42, 70, .08), 0 8px 24px rgba(20, 42, 70, .06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

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

/* Kopf */
.site-header {
  background: var(--blue);
  color: #fff;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--gold); color: var(--blue-dark);
  font-family: Georgia, serif; font-size: 26px; font-weight: 700;
}
.brand-text { display: flex; flex-direction: column; font-weight: 600; }
.brand-text small { font-weight: 400; opacity: .8; }
.header-link { color: #fff; opacity: .85; text-decoration: none; }
.header-link:hover { opacity: 1; text-decoration: underline; }

/* Fuß */
.site-footer {
  margin-top: 48px; padding: 24px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px; text-align: center;
}
.site-footer a { color: var(--muted); }

/* Startseite */
.intro { text-align: center; margin: 40px auto 28px; max-width: 640px; }
.intro.narrow { text-align: left; }
h1 { font-size: 30px; line-height: 1.25; color: var(--blue-dark); margin: 0 0 12px; }
.lead { font-size: 18px; color: var(--muted); margin: 0; }
.empty-note { text-align: center; color: var(--muted); }

.people {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px; margin: 24px 0 20px;
}
.person-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border-radius: var(--radius);
  padding: 18px; text-decoration: none; color: var(--text);
  box-shadow: var(--shadow); border: 1px solid transparent;
  transition: transform .12s ease, border-color .12s ease;
}
.person-card:hover { transform: translateY(-2px); border-color: var(--gold); }
.person-photo {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.person-photo.big { width: 110px; height: 110px; }
.person-initials {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold-light); color: var(--blue-dark);
  font-size: 28px; font-weight: 700;
}
.person-info { display: flex; flex-direction: column; min-width: 0; }
.person-info strong { font-size: 17px; }
.person-title { color: var(--muted); font-size: 14px; }
.person-duration { color: var(--muted); font-size: 14px; margin: 2px 0 0; }
.person-cta { margin-left: auto; color: var(--gold); font-weight: 600; white-space: nowrap; }

/* Buchungsseite */
.booking {
  display: grid; grid-template-columns: 300px 1fr; gap: 24px; margin-top: 36px;
}
.booking-person {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; text-align: center; align-self: start;
}
.booking-person h1 { font-size: 24px; margin: 14px 0 4px; }
.person-desc { text-align: left; color: var(--muted); font-size: 15px; margin-top: 14px; }
.back-link { margin-top: 18px; font-size: 14px; }

.booking-flow { min-width: 0; }
.step {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px;
}
.step h2 { margin: 0 0 14px; font-size: 20px; color: var(--blue-dark); }

/* Kalender */
.cal-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;
}
.cal-head strong { font-size: 18px; color: var(--blue-dark); }
.cal-nav {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff;
  font-size: 20px; cursor: pointer; color: var(--blue);
}
.cal-nav:hover { background: var(--gold-light); }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
}
.cal-wd { text-align: center; font-size: 12px; color: var(--muted); padding: 4px 0; }
.cal-day {
  aspect-ratio: 1; border-radius: 50%; border: none; background: transparent;
  font-size: 15px; color: #b6bcc4;
}
.cal-day.free {
  background: var(--gold-light); color: var(--blue-dark);
  font-weight: 600; cursor: pointer;
}
.cal-day.free:hover { background: var(--gold); color: #fff; }
.cal-day.selected { background: var(--blue); color: #fff; }
.cal-loading { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 24px 0; }
.cal-note { color: var(--muted); text-align: center; margin: 14px 0 0; }

/* Uhrzeiten */
.times { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.times h2 { font-size: 17px; }
.times-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.time-btn {
  padding: 10px 6px; border-radius: 8px; border: 1px solid var(--blue);
  background: #fff; color: var(--blue); font-size: 15px; font-weight: 600; cursor: pointer;
}
.time-btn:hover { background: var(--blue); color: #fff; }

/* Formular */
form label { display: block; margin-bottom: 14px; font-weight: 600; font-size: 15px; }
form input[type=text], form input[type=email], form input[type=tel],
form input[type=password], form input[type=url], form input[type=number],
form input[type=date], form input[type=time], form select, form textarea {
  display: block; width: 100%; margin-top: 6px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-weight: 400; background: #fff;
}
form textarea { resize: vertical; }
form input:focus, form textarea:focus, form select:focus {
  outline: 2px solid var(--gold); border-color: var(--gold);
}
.hp { position: absolute; left: -9999px; top: -9999px; }
.consent { display: flex; gap: 10px; font-weight: 400; font-size: 14px; color: var(--muted); }
.consent input { margin-top: 3px; }
.chosen {
  background: var(--gold-light); border-radius: 8px; padding: 10px 14px;
  font-weight: 600; color: var(--blue-dark);
}
.form-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.form-error { color: var(--danger); font-weight: 600; }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 8px; border: none;
  background: var(--gold); color: var(--blue-dark); font-size: 16px; font-weight: 700;
  cursor: pointer; text-decoration: none;
}
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--muted); font-weight: 600; }
.btn.danger { background: var(--danger); color: #fff; }
.btn.small { padding: 6px 12px; font-size: 14px; }

/* Bestätigung */
.confirm { text-align: center; }
.confirm-icon {
  width: 64px; height: 64px; margin: 6px auto 14px; border-radius: 50%;
  background: var(--ok); color: #fff; font-size: 34px;
  display: flex; align-items: center; justify-content: center;
}
.small { font-size: 14px; color: var(--muted); }

/* Storno-Seite */
.booking-summary {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 22px; margin: 18px 0;
}
.booking-summary p { margin: 4px 0; }
.status.ok { color: var(--ok); font-weight: 700; }
.status.cancelled { color: var(--danger); font-weight: 700; }
.notice {
  background: var(--gold-light); border-radius: 8px; padding: 12px 16px;
}
.notice.ok-note { background: #e2f3e8; color: var(--ok); }

/* Admin */
.admin-layout { margin-top: 28px; }
.admin-nav {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px;
}
.admin-nav a {
  padding: 8px 14px; border-radius: 8px; text-decoration: none;
  color: var(--blue); background: var(--card); box-shadow: var(--shadow);
  font-size: 15px; font-weight: 600;
}
.admin-nav a.active, .admin-nav a:hover { background: var(--blue); color: #fff; }
.admin-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px; margin-bottom: 22px;
}
.admin-card h2 { margin-top: 0; font-size: 19px; color: var(--blue-dark); }
table.list { width: 100%; border-collapse: collapse; font-size: 15px; }
table.list th, table.list td {
  text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.list th { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.inline-form { display: inline; }
.muted { color: var(--muted); }
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 700; background: var(--gold-light); color: var(--blue-dark);
}
.tag.off { background: #eee; color: var(--muted); }
code.embed {
  display: block; background: var(--blue-dark); color: #d8e3f0;
  padding: 14px; border-radius: 8px; font-size: 13px;
  overflow-x: auto; white-space: pre;
}

/* Responsiv */
@media (max-width: 820px) {
  .booking { grid-template-columns: 1fr; }
  .booking-person { order: -1; }
  .grid-2 { grid-template-columns: 1fr; }
  h1 { font-size: 24px; }
}
