/* CREABLO Termine – Buchungsseite. Farben aus dem Styleguide von kfz.creablo.de (creablo-kfz/src/styles/global.css). */
:root {
  --salmon: #fd8048;
  --orange-500: #ff5d15;
  --orange-700: #c2460f;
  --orange-100: #ffe8df;
  --gelb-500: #fed54d;
  --gelb-600: #c9a526;
  --cyan-100: #d9f3f7;
  --tinte: #181e20;
  --slate-600: #323f45;
  --slate-500: #576870;
  --slate-400: #9bacb5;
  --rand: #dee9ef;
  --trenner: #edf4f7;
  --weiss: #ffffff;
  --fehler: #b42318;
  --radius-knopf: 3px;
  --radius-karte: 12px;
  --schrift: "Inter Variable", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --anzeige: "Barlow", "Arial Narrow", system-ui, sans-serif;
}

* { box-sizing: border-box; touch-action: manipulation; }
html, body { margin: 0; overflow-x: clip; }
body {
  font-family: var(--schrift); font-size: 16px; line-height: 1.6; color: var(--tinte);
  background: var(--cyan-100); -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
@media (max-width: 767px) { input, textarea, select { font-size: 16px !important; } }

.kopf { background: var(--gelb-500); padding: 40px 20px 72px; }
.kopf-innen { max-width: 760px; margin: 0 auto; }
.eyebrow { font-family: var(--anzeige); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 14px; }
h1 { font-family: var(--anzeige); font-style: italic; font-weight: 700; color: var(--orange-700); font-size: 40px; line-height: 1.1; margin: 8px 0 0; letter-spacing: -.02em; }
h2 { font-family: var(--anzeige); font-weight: 700; font-size: 22px; line-height: 1.25; margin: 0 0 12px; }
@media (max-width: 640px) { .kopf { padding: 28px 16px 56px; } h1 { font-size: 32px; } }

.karte {
  max-width: 760px; margin: -44px auto 24px; background: var(--weiss); border: 1px solid var(--rand);
  border-radius: var(--radius-karte); padding: 28px; box-shadow: 0 10px 30px rgba(24, 30, 32, .08); position: relative;
}
@media (max-width: 640px) { .karte { margin: -36px 8px 16px; padding: 18px 16px; } }

.testmodus {
  max-width: 760px; margin: -44px auto 56px; padding: 10px 16px; border-radius: var(--radius-karte);
  background: var(--tinte); color: var(--gelb-500); font-weight: 600; font-size: 14px; position: relative; z-index: 1;
}
@media (max-width: 640px) { .testmodus { margin: -36px 8px 44px; } }

.schritte { display: flex; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; font-size: 13px; color: var(--slate-500); flex-wrap: wrap; }
.schritte li { padding: 2px 10px; border-radius: 99px; background: var(--trenner); }
.schritte li[aria-current="step"] { background: var(--orange-100); color: var(--orange-700); font-weight: 600; }

.leise { color: var(--slate-500); }
.klein { font-size: 13px; line-height: 1.5; }
.hinweis { background: var(--trenner); border-radius: 8px; padding: 10px 14px; font-size: 14px; color: var(--slate-600); margin: 12px 0; }
.fehler { background: #fef3f2; color: var(--fehler); border: 1px solid #fecdca; border-radius: 8px; padding: 10px 14px; margin: 12px 0; }
.erfolg { background: var(--orange-100); border-radius: 8px; padding: 14px 16px; margin: 12px 0; }

.liste { display: grid; gap: 10px; }
.leistung {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; text-align: left; cursor: pointer;
  background: var(--weiss); border: 1px solid var(--rand); border-radius: 10px; padding: 14px 16px;
}
.leistung:hover { border-color: var(--salmon); }
.leistung[aria-pressed="true"] { border-color: var(--orange-500); background: var(--orange-100); }
.leistung .name { font-weight: 600; }
.leistung .meta { font-size: 13px; color: var(--slate-500); }
.preis { font-family: var(--anzeige); font-weight: 700; font-size: 20px; white-space: nowrap; }

.mengen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0 6px; }
.menge {
  border: 2px solid var(--rand); background: var(--weiss); border-radius: 10px; padding: 14px 4px; cursor: pointer; text-align: center;
  min-height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.menge .zahl { font-family: var(--anzeige); font-weight: 800; font-size: 34px; line-height: 1; }
.menge .klein { color: var(--slate-500); white-space: nowrap; font-size: 12px; }
.menge[aria-pressed="true"] { border-color: var(--orange-500); background: var(--orange-100); }
.mengenfeld { border: 1px solid var(--rand); border-top: 0; border-radius: 0 0 10px 10px; padding: 4px 16px 16px; margin-top: -12px; }

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none;
  background: var(--salmon); color: var(--tinte); font-family: var(--anzeige); font-weight: 700; font-size: 16px; letter-spacing: .04em;
  text-transform: uppercase; padding: 13px 22px; border-radius: var(--radius-knopf); min-height: 48px;
}
.knopf:hover { background: var(--orange-500); }
.knopf:disabled { opacity: .5; cursor: default; }
.knopf.zweit { background: var(--weiss); border: 1px solid var(--rand); }
.knopf.zweit:hover { border-color: var(--salmon); background: var(--weiss); }
.knopf.gefahr { background: var(--weiss); border: 1px solid var(--fehler); color: var(--fehler); }
.knopfreihe { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 640px) { .knopfreihe .knopf { flex: 1 1 100%; } }
.zurueck { background: none; border: 0; padding: 0; color: var(--orange-700); cursor: pointer; font-size: 14px; margin-bottom: 12px; }

.kalender { user-select: none; }
.monat { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.monat strong { font-family: var(--anzeige); font-size: 18px; }
.monat button { background: var(--weiss); border: 1px solid var(--rand); border-radius: var(--radius-knopf); width: 44px; height: 40px; cursor: pointer; font-size: 18px; }
.monat button:disabled { opacity: .35; cursor: default; }
.raster { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.raster .wt { text-align: center; font-size: 12px; color: var(--slate-500); padding: 4px 0; }
/* Kalender kompakt (Wunsch Hannes Kutzke, 05.11.2026): feste Höhe statt Quadrate; breit links Kalender, rechts Zeiten */
.zeitwahl { display: grid; gap: 20px; }
@media (min-width: 720px) {
  .zeitwahl { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 32px; align-items: start; }
  .zeitwahl > div:last-child { border-left: 1px solid var(--rand); padding-left: 32px; min-height: 100%; }
  .zeitwahl > div:last-child > h2:first-child { margin-top: 0; }
}
.zw-leer { margin-top: 8px; }
.tag {
  height: 40px; padding: 0; border: 1px solid transparent; border-radius: 8px; background: none; cursor: default;
  color: var(--slate-400); font-size: 15px;
}
.tag.frei { background: var(--trenner); color: var(--tinte); font-weight: 600; cursor: pointer; }
.tag.frei:hover { border-color: var(--salmon); }
.tag[aria-pressed="true"] { background: var(--orange-500); color: var(--weiss); }
.zeiten { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 12px; }
.zeit { border: 1px solid var(--rand); background: var(--weiss); border-radius: var(--radius-knopf); padding: 10px 0; cursor: pointer; font-weight: 600; }
.zeit:hover { border-color: var(--salmon); }
.zeit[aria-pressed="true"] { background: var(--orange-500); border-color: var(--orange-500); color: var(--weiss); }

.formular { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.formular .breit { grid-column: 1 / -1; }
@media (max-width: 640px) { .formular { grid-template-columns: 1fr; } }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
label .opt { font-weight: 400; color: var(--slate-500); }
input, textarea { width: 100%; border: 1px solid var(--slate-400); border-radius: var(--radius-knopf); padding: 11px 12px; background: var(--weiss); }
input:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--orange-500); outline-offset: 1px; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--fehler); }
.feldfehler { color: var(--fehler); font-size: 13px; margin-top: 4px; }
.honig { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.zusammen { border: 1px solid var(--rand); border-radius: 10px; padding: 12px 16px; margin: 0 0 18px; }
.zusammen dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; }
.zusammen dt { color: var(--slate-500); font-size: 14px; }
.zusammen dd { margin: 0; font-weight: 600; }
.links { word-break: break-all; font-size: 14px; }
.links a { color: var(--orange-700); }

.fuss { max-width: 760px; margin: 0 auto 40px; padding: 0 20px; font-size: 13px; color: var(--slate-500); }
.fuss a { color: var(--slate-600); }
.m0 { margin: 0; }
.mt8 { margin: 8px 0 0; }
.mt12 { margin: 12px 0 0; }

/* Eingebettet in eine andere Seite (?eingebettet=1): ohne Kopf und Fuß, ohne eigenen Hintergrund, Karte ohne Versatz */
.eingebettet body { background: transparent; }
.eingebettet .kopf, .eingebettet .fuss { display: none; }
.eingebettet .karte { margin: 0; max-width: none; box-shadow: none; border: 0; }
.eingebettet .testmodus { margin: 0 0 12px; }
