/* Buchungstool Perspektivgespräch – Gestaltung wie im Entwurf. Schriften lokal, keine externen Quellen. */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("fonts/manrope-latin-700-normal.woff2") format("woff2"); }

:root {
  --ground: #FFF9F3;
  --card: #FFFFFF;
  --line: #EADFD2;
  --line-soft: #F3EBE1;
  --field: #9C8C7C;
  --ink: #1F1B16;
  --ink-2: #4A433B;
  --muted: #6B6259;
  --accent: #0E363C;
  --accent-dark: #082429;
  --accent-soft: #F6EDE1;
  --petrol: #14454D;
  --link: #14454D;
  --link-hover: #0B2C31;
  --danger: #9A3412;
  --danger-soft: #FBF1EC;
  --danger-line: #E7C9BA;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.5; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--petrol); outline-offset: 2px; }
code { background: var(--ground); padding: 1px 6px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

.page { min-height: 100vh; padding: 48px 16px 40px; }
.wrap { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.wrap-wide { max-width: 1240px; }

.head { display: flex; flex-direction: column; gap: 8px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
h1, h2 { font-family: Manrope, Inter, sans-serif; font-weight: 700; margin: 0; }
h1 { font-size: 36px; line-height: 1.15; letter-spacing: -0.01em; }
h2 { font-size: 22px; line-height: 1.3; }
.lead { margin: 0; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { font-size: 14px; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); }

.progress { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.progress li { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; color: var(--muted); font-size: 14px; }
.progress .dot { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--line); color: var(--ink-2); }
.progress li.past, .progress li.active { color: var(--ink); }
.progress li.active { background: var(--card); font-weight: 600; }
.progress li.past .dot { background: var(--accent); color: #FFFFFF; }
.progress li.active .dot { background: var(--accent); color: var(--on-accent); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.card p { margin: 0; }
.step { display: flex; flex-direction: column; gap: 20px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.stack-sm { display: flex; flex-direction: column; gap: 4px; }
.label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.grid-dates { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.grid-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.grid-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }

.choice { min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; cursor: pointer; }
.choice:hover { border-color: var(--accent); }
.choice[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.choice-date { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; }
.choice-date .wd { font-size: 13px; }
.choice-date .dm { font-weight: 600; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--accent); color: var(--ink); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--on-accent); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-outline { color: var(--ink); border-color: var(--ink); }
.btn-danger-text { color: var(--danger); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #FFFFFF; }
.btn-danger:hover { background: #7C2A0E; color: #FFFFFF; }
.btn-link { border: 0; background: none; padding: 0; min-height: 44px; color: var(--link); text-decoration: underline; font-weight: 600; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 14px; }

.actions { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.actions-end { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.row-buttons { display: flex; gap: 10px; flex-wrap: wrap; }

.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
label, legend { font-size: 14px; font-weight: 600; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="password"], input[type="number"], input[type="date"], input[type="time"], input:not([type]), select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--field); border-radius: 10px; font: inherit; color: var(--ink); background: var(--card);
}
textarea { min-height: 96px; resize: vertical; }
.hint { font-size: 13px; color: var(--muted); margin: 0; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 18px; margin: 0; display: flex; flex-direction: column; gap: 6px; }
fieldset legend { padding: 0 6px; }
fieldset label { margin-top: 8px; }
.honey { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.summary { background: var(--accent-soft); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.summary .what { font-weight: 600; }
.info-box { font-size: 14px; color: var(--ink-2); background: var(--ground); border-radius: 10px; padding: 12px 14px; }
.notice { background: var(--accent-soft); border-radius: 10px; padding: 12px 14px; }
.error { background: var(--danger-soft); border: 1px solid var(--danger-line); border-radius: 10px; padding: 12px 14px; color: var(--ink); }
.error p { margin: 0; }
.error p + p { margin-top: 6px; }
.confirm-box { border: 1px solid var(--danger-line); background: var(--danger-soft); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.done-head { display: flex; align-items: center; gap: 12px; }
.done-head h2 { font-size: 24px; }

.foot { display: flex; gap: 16px; font-size: 14px; color: var(--muted); }
.foot a { color: var(--muted); }

/* ---------- Adminbereich ---------- */
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.admin-head h1 { font-size: 30px; line-height: 1.2; }
.nav { display: flex; gap: 8px; flex-wrap: wrap; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a[aria-current="page"] { border-color: var(--petrol); box-shadow: inset 0 -3px 0 var(--petrol); color: var(--ink); font-weight: 600; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-size: 14px; }
.filters a[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.table-box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow-x: auto; }
table.list { width: 100%; min-width: 1060px; border-collapse: collapse; font-size: 15px; }
table.list th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; padding: 14px 12px; border-bottom: 1px solid var(--line); }
table.list td { padding: 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.list th:first-child, table.list td:first-child { padding-left: 20px; }
table.list td.contact { font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
table.list select, table.list input { min-height: 40px; padding: 6px 10px; border-radius: 8px; }
table.list .status-cell { display: flex; align-items: center; gap: 8px; min-width: 190px; }
.sdot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 999px; background: #8F857A; }
.sdot.offen { background: #2F5DA8; }
.sdot.zweites { background: #C2570C; }
.sdot.abschluss { background: #3B7A3A; }
.sdot.kein { background: #8F857A; }
.sdot.abgesagt { background: #D6CCC0; }
.save-state { font-size: 12px; color: var(--muted); min-height: 16px; }
tr.past td:first-child { color: var(--muted); }
.empty { padding: 24px 20px; color: var(--muted); margin: 0; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.slot-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.block-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.plain-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.plain-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line-soft); border-radius: 10px; }
.inline-form { display: inline; }
.login { max-width: 420px; }

@media (max-width: 560px) {
  .page { padding-top: 32px; }
  h1 { font-size: 30px; }
  .card { padding: 20px; }
  .slot-row { grid-template-columns: 1fr 1fr; }
}

/* Anliegen in der Kontaktliste */
table.list { min-width: 1240px; }
table.list td.message { font-size: 14px; color: var(--ink-2); white-space: pre-line; min-width: 200px; max-width: 280px; }
.other-field { margin-top: 4px; }
table.list td.contact { min-width: 210px; }
table.list input[data-field="note"] { min-width: 240px; }
table.list td:first-child { min-width: 150px; }

/* Einleitungstext auf der Buchungsseite */
.intro { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.intro .lead-first { font-family: Manrope, Inter, sans-serif; font-weight: 700; font-size: 20px; line-height: 1.35; color: var(--ink); }

/* Sprung zur Terminauswahl */
.jump { margin: -4px 0 0 0; }
.jump a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; color: var(--link); }
#step-pick { scroll-margin-top: 16px; }

.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; }
.check input { width: 20px; height: 20px; }

/* Logo und Porträt */
.brand-logo { display: block; width: 190px; max-width: 60%; height: auto; margin: 0 auto 12px; }
.hero { display: flex; align-items: center; gap: 18px; }
.portrait { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 4px #FFFFFF, 0 0 0 6px var(--petrol); }
.hero h1 { margin: 0; }
@media (max-width: 560px) {
  .brand-logo { width: 150px; }
  .portrait { width: 84px; height: 84px; }
  .hero { gap: 14px; }
}
.hero > .stack-sm { min-width: 0; }
.hero h1 { overflow-wrap: break-word; }
@media (max-width: 560px) {
  .hero h1 { font-size: 26px; }
}
@media (max-width: 400px) {
  .hero { gap: 12px; }
  .hero h1 { font-size: 23px; letter-spacing: -0.015em; }
  .portrait { width: 72px; height: 72px; }
}
@media (max-width: 340px) {
  .hero h1 { font-size: 20px; }
  .portrait { width: 64px; height: 64px; }
}

/* Logo in der Fußzeile */
.foot { justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 16px; }
.foot-links { display: flex; gap: 16px; }
.foot-logo { width: 120px; height: auto; display: block; }

/* Ruhigere Variante: nur der weiterführende Knopf ist eine volle Petrol-Fläche */
:root { --petrol-soft: #F3E8DA; --on-accent: #FFF9F3; }
.choice[aria-pressed="true"] { background: var(--petrol-soft); border-color: var(--petrol); color: var(--petrol); font-weight: 600; box-shadow: inset 0 0 0 1px var(--petrol); }
.progress li.past .dot { background: var(--petrol-soft); color: var(--petrol); }
.portrait { box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 4px var(--petrol); }
.filters a[aria-current="true"] { background: var(--petrol-soft); border-color: var(--petrol); color: var(--petrol); font-weight: 600; }
