/* Kundenseiten des Buchungsdienstes nach Design E (makler-willmann.de, Skill makler-willmann-design).
   Tokens und Bausteine wie im Theme (css/startseite-e.css), Präfix mwe-; Schriften lokal, nichts von Dritten.
   Die Verwaltung behält termine.css. */
@font-face { font-family: "Spectral"; src: url("schrift/spectral-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("schrift/spectral-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("schrift/spectral-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url("schrift/geist-latin-wght-normal.woff2") format("woff2-variations"), url("schrift/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --brand: #055694; --brand-deep: #033472; --brand-ink: #08203f; --brand-tint: #e1ecf6;
  --gold: #e8a830; --gold-hover: #f0b545; --gold-ink: #1d1404;
  --ink: #0f1d2c; --text: #2c3b4c; --muted: #526273;
  --line: #dbe3ec; --line-soft: #e8eef4; --surface: #f3f6fa; --surface-2: #e9f0f7; --bg: #ffffff;
  --warn: #8a4b00; --warn-bg: #fff6e6;
  --font-display: "Spectral", "Iowan Old Style", Georgia, serif;
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --r-lg: 22px; --r-md: 14px; --r-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(3, 52, 114, .06), 0 2px 6px rgba(3, 52, 114, .05);
  --shadow-md: 0 2px 4px rgba(3, 52, 114, .05), 0 12px 28px -8px rgba(3, 52, 114, .16);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --wrap: 1120px; --gutter: clamp(20px, 4vw, 40px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.mwe { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text);
  font: 17px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-deep); }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; margin: 0; }
h1 { font: 600 clamp(2.1rem, 1.5rem + 2.4vw, 3.2rem)/1.06 var(--font-display); letter-spacing: -.02em; }
h1 em { font-style: italic; font-weight: 500; color: var(--brand); }
h2 { font: 600 1.05rem/1.3 var(--font-sans); letter-spacing: -.005em; }
.mwe-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; left: 12px; top: 12px; width: auto; height: auto; clip: auto; z-index: 60;
  background: var(--bg); padding: 10px 14px; border-radius: var(--r-sm); box-shadow: var(--shadow-md); }
.mwe-wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* --- Kopf ------------------------------------------------------------------------------------------------ */
.mwe-kopf { border-bottom: 1px solid var(--line-soft); background: var(--bg); }
.mwe-kopf .mwe-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.mwe-logo img { width: 168px; }
.mwe-tel { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-deep); font-weight: 600;
  text-decoration: none; min-height: 44px; white-space: nowrap; }
.mwe-tel svg { width: 18px; height: 18px; color: var(--brand); }
.mwe-tel .lang { color: var(--muted); font-weight: 500; }

/* --- Bühne (getönter Kopfbereich je Seite) ---------------------------------------------------------------- */
main { flex: 1 0 auto; }
.mwe-buehne { background: radial-gradient(110% 120% at 90% 0%, #e7eff8 0%, rgba(231,239,248,0) 60%), var(--surface);
  padding: clamp(28px, 4vw, 52px) 0 clamp(28px, 3.6vw, 44px); border-bottom: 1px solid var(--line-soft); }
.mwe-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .95rem; font-weight: 500;
  color: var(--brand); margin-bottom: 14px; }
.mwe-kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--gold); }
.mwe-lead { font-size: 1.1rem; color: var(--muted); max-width: 38rem; margin: 16px 0 0; white-space: pre-line; }
.mwe-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding: 0; list-style: none; }
.mwe-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-size: .92rem; color: var(--text); }
.mwe-chip svg { width: 16px; height: 16px; color: var(--brand); }

/* Schritte 1–3 */
.mwe-schritte { display: flex; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; counter-reset: s; font-size: .9rem; }
.mwe-schritte li { counter-increment: s; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.mwe-schritte li::before { content: counter(s); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  font-weight: 600; font-size: .8rem; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.mwe-schritte li + li { padding-left: 6px; }
.mwe-schritte li + li::after { order: -1; content: ""; width: 18px; height: 1px; background: var(--line); margin-right: 2px; }
.mwe-schritte li.fertig::before { content: "✓"; background: var(--surface-2); color: var(--brand); box-shadow: none; }
.mwe-schritte a { color: var(--brand-deep); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line);
  text-underline-offset: .25em; min-height: 32px; display: inline-flex; align-items: center; }
.mwe-schritte a:hover { color: var(--brand); text-decoration-color: currentColor; }
.mwe-schritte li[aria-current="step"] { color: var(--ink); font-weight: 600; }
.mwe-schritte li[aria-current="step"]::before { background: var(--brand); color: #fff; box-shadow: none; }

/* --- Zweispaltig: Inhalt + Randspalte (Person, Zusammenfassung) ----------------------------------------- */
.mwe-raster { display: grid; gap: clamp(24px, 4vw, 48px); padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(44px, 6vw, 80px); }
@media (min-width: 900px) { .mwe-raster { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
  .mwe-rand { position: sticky; top: 24px; } }
.mwe-buehne .mwe-raster { padding: 0; align-items: end; }
.mwe-rand { display: grid; gap: 16px; }
.mwe-karte { background: var(--bg); border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); padding: 20px; }
.mwe-karte h2 { font: 600 1.25rem/1.25 var(--font-display); margin-bottom: 10px; }
.mwe-person { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; }
.mwe-person img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.mwe-person strong { display: block; font: 600 1.15rem/1.2 var(--font-display); color: var(--ink); }
.mwe-person span { color: var(--muted); font-size: .92rem; }
.mwe-person-text { margin: 14px 0 0; font-size: .95rem; color: var(--muted); }
.mwe-person-text a { font-weight: 600; text-decoration: none; }
@media (max-width: 899px) { .mwe-rand .mwe-person-text { display: none; } }

/* --- Verzeichnis der Terminarten ------------------------------------------------------------------------- */
.mwe-arten { list-style: none; margin: 0; padding: 0; background: var(--bg); border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.mwe-arten li + li { border-top: 1px solid var(--line-soft); }
.mwe-art { display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; gap: 14px; align-items: center;
  padding: 16px 18px; color: inherit; text-decoration: none; transition: background-color 200ms ease; }
.mwe-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); color: var(--brand); }
.mwe-icon svg { width: 22px; height: 22px; }
.mwe-art-name { display: block; font: 600 1.18rem/1.25 var(--font-display); color: var(--ink); }
.mwe-art-info { display: block; font-size: .92rem; color: var(--muted); margin-top: 2px; }
.mwe-art-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: .95rem; margin-top: 6px; color: var(--text); white-space: pre-line; }
.mwe-pfeil { color: var(--brand); transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .mwe-art:hover { background: var(--surface); }
  .mwe-art:hover .mwe-pfeil { transform: translateX(3px); }
}

/* --- Tage und Zeiten ------------------------------------------------------------------------------------- */
.mwe-tage { display: grid; gap: 0; background: var(--bg); border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); }
.mwe-tag + .mwe-tag { border-top: 1px solid var(--line-soft); }
.mwe-tag summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px;
  cursor: pointer; list-style: none; min-height: 64px; }
.mwe-tag summary::-webkit-details-marker { display: none; }
.mwe-tag summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-left: 4px; border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand); transform: rotate(45deg) translateY(-3px); transition: transform 200ms var(--ease-out); }
.mwe-tag[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.mwe-tag h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.mwe-tag h2 span { font-weight: 500; color: var(--muted); font-size: .95rem; }
.mwe-anzahl { margin-left: auto; font-size: .88rem; color: var(--muted); white-space: nowrap; }
.mwe-tag .mwe-zeiten { padding: 0 20px 20px; }
@media (hover: hover) and (pointer: fine) { .mwe-tag summary:hover { background: var(--surface); } }
.mwe-zeiten { display: flex; flex-wrap: wrap; gap: 8px; }
.mwe-zeitform { margin: 0; }
.mwe-zeit { display: inline-grid; place-items: center; min-width: 5rem; min-height: 44px; padding: 0 14px; border-radius: 10px;
  border: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--brand-deep);
  font: 600 1rem/1 var(--font-sans); font-variant-numeric: tabular-nums; text-decoration: none; cursor: pointer;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms var(--ease-out); }
.mwe-zeit:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .mwe-zeit:hover { background: var(--brand); color: #fff; box-shadow: none; }
}
.mwe-blaettern { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }
.mwe-blaettern form { margin: 0; }
.mwe-leer { padding: 22px 20px; color: var(--muted); }

/* --- Knöpfe ---------------------------------------------------------------------------------------------- */
.mwe-btn { --btn-bg: var(--brand); --btn-fg: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 12px; border: 0; background: var(--btn-bg); color: var(--btn-fg);
  font: 600 1rem/1 var(--font-sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 1px 2px rgba(3,52,114,.18);
  transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease; }
.mwe-btn:hover { color: var(--btn-fg); }
.mwe-btn:active { transform: scale(.97); }
.mwe-btn svg { width: 18px; height: 18px; flex: none; }
.mwe-btn--termin { --btn-bg: var(--gold); --btn-fg: var(--gold-ink);
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 1px 2px rgba(150,95,10,.25), 0 10px 24px -12px rgba(185,120,26,.8); }
.mwe-btn--quiet { --btn-bg: transparent; --btn-fg: var(--brand-deep); box-shadow: inset 0 0 0 1.5px var(--line); }
@media (hover: hover) and (pointer: fine) {
  .mwe-btn:hover { --btn-bg: var(--brand-deep); }
  .mwe-btn--termin:hover { --btn-bg: var(--gold-hover); }
  .mwe-btn--quiet:hover { --btn-bg: var(--surface); box-shadow: inset 0 0 0 1.5px #c5d2df; }
}
.mwe-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--brand-deep);
  text-decoration: none; background: none; border: 0; padding: 0; font-size: 1rem; font-family: inherit; cursor: pointer; }
.mwe-link:hover { color: var(--brand); }
.mwe-link svg { width: 18px; height: 18px; flex: none; }
.mwe-link { white-space: nowrap; }
button.link { border: 0; padding: 0; background: none; color: var(--brand); text-decoration: underline; font: inherit; cursor: pointer; }
@media (max-width: 640px) { .mwe-aktionen .mwe-btn { width: 100%; } }

/* --- Formular -------------------------------------------------------------------------------------------- */
.formular { display: grid; gap: 18px; }
.formular label, .mwe-feld { display: grid; gap: 6px; font-weight: 500; color: var(--ink); font-size: .97rem; }
.reihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 18px; }
input, select, textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 0; border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px #c9d4e0; background: var(--bg); color: var(--ink); font: 400 1rem/1.4 var(--font-sans);
  transition: box-shadow 160ms ease; }
textarea { min-height: 7rem; resize: vertical; }
input:hover, select:hover, textarea:hover { box-shadow: inset 0 0 0 1px #9fb2c6; }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--brand), 0 0 0 4px var(--brand-tint); }
.leise { color: var(--muted); font-size: .9rem; font-weight: 400; }
.anrede { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.anrede legend { float: left; width: 100%; font-weight: 500; color: var(--ink); font-size: .97rem; margin-bottom: 6px; }
.wahl { display: inline-flex !important; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 10px;
  box-shadow: inset 0 0 0 1px #c9d4e0; font-weight: 500 !important; cursor: pointer; }
.wahl input { width: 18px; min-height: 0; height: 18px; margin: 0; padding: 0; box-shadow: none; accent-color: var(--brand); }
.wahl:has(input:checked) { box-shadow: inset 0 0 0 2px var(--brand); background: var(--brand-tint); }
.fangfeld { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.mwe-hinweis-klein { font-size: .9rem; color: var(--muted); margin: 0; }
.mwe-absenden { display: grid; gap: 12px; padding-top: 6px; }
.mwe-absenden .mwe-btn { width: 100%; }
@media (min-width: 640px) { .mwe-absenden .mwe-btn { width: auto; justify-self: start; } }

/* Meldungen */
.meldung { margin: 0 0 18px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--warn-bg);
  box-shadow: inset 3px 0 0 var(--gold); color: var(--warn); }
.meldung ul { margin: 0; padding-left: 1.1rem; }

/* --- Termin (Danke- und Bearbeiten-Seite) ---------------------------------------------------------------- */
.mwe-erfolg { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: #fff; margin-bottom: 16px; }
.mwe-erfolg svg { width: 26px; height: 26px; }
.mwe-erfolg.grau { background: var(--muted); }
.mwe-termin { display: grid; gap: 14px; }
.mwe-termin-zeile { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; }
.mwe-termin-zeile svg { width: 20px; height: 20px; color: var(--brand); margin-top: 3px; }
.mwe-termin-zeile strong { color: var(--ink); }
.mwe-termin-zeile a { overflow-wrap: anywhere; }
.mwe-termin.abgesagt { opacity: .75; }
.mwe-aktionen { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; align-items: center; }
.absagen { width: 100%; }
.absagen summary { list-style: none; display: inline-flex; }
.absagen summary::-webkit-details-marker { display: none; }
.absagen form { margin-top: 12px; padding: 16px; border-radius: var(--r-sm); background: var(--surface); }
.absagen form p { margin-bottom: 12px; }

/* --- Fuß ------------------------------------------------------------------------------------------------- */
.mwe-fuss { background: var(--brand-ink); color: #c9d6e6; font-size: .92rem; padding: 32px 0 36px; }
.mwe-fuss .mwe-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.mwe-fuss img { width: 138px; filter: brightness(0) invert(1); opacity: .92; }
.mwe-fuss nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.mwe-fuss a { color: #fff; text-decoration: none; }
.mwe-fuss a:hover { color: var(--gold); }
.mwe-fuss p { margin: 0; }

/* Eingebettet (iFrame auf der Website): ohne Kopf und Fuß, die liefert die Website. */
.eingebettet .mwe-kopf, .eingebettet .mwe-fuss { display: none; }
.eingebettet .mwe-buehne { background: transparent; border: 0; padding-top: 8px; }

/* Einblenden einmalig */
@media (prefers-reduced-motion: no-preference) {
  .mwe-einblenden { animation: mwe-ein 520ms var(--ease-out) both; }
  @keyframes mwe-ein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media (max-width: 640px) {
  body.mwe { font-size: 16.5px; }
  .mwe-kopf .mwe-wrap { min-height: 64px; }
  .mwe-logo img { width: 136px; }
  .mwe-tel .lang { display: none; }
  .mwe-art { padding: 14px 16px; grid-template-columns: 40px minmax(0, 1fr) 16px; gap: 12px; }
  .mwe-icon { width: 40px; height: 40px; }
  .mwe-tag summary { padding: 14px 16px; }
  .mwe-tag .mwe-zeiten { padding: 0 16px 16px; }
  .mwe-zeit { min-width: calc((100% - 24px) / 4); padding: 0 6px; }
}

/* Ergänzungen: Kopf-Links, Abstände */
.mwe-kopf-links { display: flex; align-items: center; gap: 6px 22px; flex-wrap: wrap; justify-content: flex-end; }
.mwe-zurwebsite { font-weight: 600; color: var(--brand-deep); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.mwe-zurwebsite:hover { color: var(--brand); }
.mwe-abstand { margin-bottom: 14px; }
.mwe-oben { margin-top: 18px; }
.mwe-karte.formular { padding: clamp(20px, 3vw, 28px); }
.mwe-karte h2 + .mwe-hinweis-klein { margin-top: -10px; }
@media (max-width: 640px) {
  .mwe-kopf-links { gap: 0 14px; }
  .mwe-tel { font-size: .95rem; }
  .mwe-zurwebsite { font-size: .95rem; }
}
@media (max-width: 400px) {
  .mwe-tel .nummer { display: none; }
  .mwe-tel { width: 44px; justify-content: center; border-radius: 50%; background: var(--surface-2); min-height: 44px; }
}
