/* WS Mietwerk – Anfrage-Formular. Farbe über --wsm-accent (Einstellung „Akzentfarbe“), Schrift vom Theme. */
.wsm {
	--wsm-text: #1d2420;
	--wsm-muted: #5f6b65;
	--wsm-line: #dfe5e2;
	--wsm-soft: #f4f7f5;
	--wsm-bg: #fff;
	--wsm-req: #e6a23c;
	--wsm-busy: #c9cfcc;
	--wsm-radius: 12px;
	color: var(--wsm-text);
	font-size: 16px;
	line-height: 1.5;
}
.wsm *, .wsm *::before, .wsm *::after { box-sizing: border-box; }
.wsm button { font: inherit; color: inherit; cursor: pointer; }
/* Theme-Schriften (z. B. Avada) für Felder überschreiben, damit alles in der Seitenschrift steht. */
.wsm input, .wsm select, .wsm textarea, .wsm button { font-family: inherit !important; letter-spacing: inherit; }
.wsm button:disabled { cursor: default; }
.wsm :focus-visible { outline: 2px solid var(--wsm-accent); outline-offset: 2px; }
.wsm small { font-size: .82em; color: var(--wsm-muted); }

.wsm-head h3 { margin: 0 0 .25em; }
.wsm-head p { margin: 0 0 1.25em; color: var(--wsm-muted); }

/* Breite richtet sich nach dem Platz im Inhaltsbereich, nicht nach dem Bildschirm. */
.wsm { container-type: inline-size; }
.wsm-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
@container (max-width: 760px) {
	.wsm-grid { grid-template-columns: 1fr; }
	.wsm-sum { position: static; }
}

.wsm-notice { margin: 0 0 10px; padding: 10px 14px; border-radius: 10px; background: #fff6e8; color: #8a5a12; font-size: .92em; }
.wsm-step { scroll-margin-top: calc(var(--wsm-top, 120px) - 20px); border-top: 1px solid var(--wsm-line); padding: 20px 0 8px; }
.wsm-step:first-child { border-top: 0; padding-top: 0; }
.wsm-step h4 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 1.1em; }
.wsm-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--wsm-accent); color: var(--wsm-on-accent, #fff); font-size: .85em; font-weight: 700; flex: none; }

/* Produktkarten */
.wsm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.wsm-card { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 14px; border: 2px solid var(--wsm-line); border-radius: var(--wsm-radius); background: var(--wsm-bg); transition: border-color .15s, box-shadow .15s; }
.wsm-card:hover { border-color: color-mix(in srgb, var(--wsm-accent) 45%, var(--wsm-line)); }
.wsm-card.is-on { border-color: var(--wsm-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wsm-accent) 15%, transparent); }
.wsm-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; margin-bottom: 6px; }
.wsm-card-title { font-weight: 700; }
.wsm-card-text { font-size: .9em; color: var(--wsm-muted); }
.wsm-card-price { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--wsm-accent-text, var(--wsm-accent)); }

/* Schalter (Varianten, Layout, Privat/Gewerbe) */
.wsm-switch { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--wsm-soft); margin-bottom: 12px; }
.wsm-switch button { display: flex; flex-direction: column; align-items: center; padding: 8px 18px; border: 0; border-radius: 999px; background: transparent; line-height: 1.25; transition: background .15s, box-shadow .15s; }
.wsm-switch button small { font-size: .75em; }
.wsm-switch button.is-on { background: var(--wsm-bg); box-shadow: 0 1px 3px rgba(0,0,0,.12); font-weight: 600; }
.wsm-switch button.is-on .wsm-sw-label { color: var(--wsm-accent-text, var(--wsm-accent)); }
@container (max-width: 420px) { .wsm-switch { border-radius: 14px; } .wsm-switch button { border-radius: 10px; } }
.wsm-badge { font-style: normal; font-size: .7em; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 6px; border-radius: 4px; background: var(--wsm-accent); color: var(--wsm-on-accent, #fff); vertical-align: 2px; }

.wsm-pricing { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 0 0 10px; }
.wsm-pricing strong { font-size: 1.35em; }
.wsm-included { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 16px; font-size: .92em; color: var(--wsm-muted); }
.wsm-included li::before { content: "✓ "; color: var(--wsm-accent-text, var(--wsm-accent)); font-weight: 700; }

/* Paket-Kacheln */
.wsm-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.wsm .wsm-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px; text-align: left; border: 2px solid var(--wsm-line); border-radius: var(--wsm-radius); background: var(--wsm-bg); line-height: 1.3; transition: border-color .15s, box-shadow .15s; }
.wsm .wsm-tile:hover { border-color: color-mix(in srgb, var(--wsm-accent) 45%, var(--wsm-line)); }
.wsm .wsm-tile.is-on { border-color: var(--wsm-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wsm-accent) 15%, transparent); }
.wsm .wsm-tile b { font-size: 1.05em; font-weight: 700; }
.wsm .wsm-tile .wsm-badge { margin-bottom: 6px; }
.wsm-tile-price { margin-top: 10px; font-size: 1.25em; font-weight: 700; color: var(--wsm-accent-text, var(--wsm-accent)); }
.wsm-incl-note { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: var(--wsm-soft); font-size: .92em; }
.wsm-incl-note span { color: var(--wsm-accent-text, var(--wsm-accent)); font-weight: 700; margin-right: 4px; }
.wsm-step-hint { margin: -6px 0 12px; }
.wsm-sub { margin: 22px 0 12px; padding-top: 18px; border-top: 1px solid var(--wsm-line); font-size: 1.1em; font-weight: 700; }
.wsm-sub small { display: block; margin-top: 2px; font-size: .78em; font-weight: 400; }

/* Datumsfeld: schlank, klappt auf (erst Monat, dann Tag) */
.wsm-when { max-width: 460px; }
.wsm .wsm-datefield { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 16px; text-align: left; border: 1px solid var(--wsm-line); border-radius: var(--wsm-radius); background: var(--wsm-bg); transition: border-color .15s, box-shadow .15s; }
.wsm .wsm-datefield:hover { border-color: color-mix(in srgb, var(--wsm-accent) 45%, var(--wsm-line)); }
.wsm .wsm-datefield.is-open { border-color: var(--wsm-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wsm-accent) 15%, transparent); }
.wsm-df-icon { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--wsm-accent); stroke-width: 1.6; stroke-linecap: round; }
.wsm-df-text { flex: 1; display: grid; line-height: 1.3; }
.wsm-df-main { font-weight: 600; }
.wsm-datefield:not(.has-date) .wsm-df-main { color: var(--wsm-muted); font-weight: 500; }
.wsm-df-chev { width: 9px; height: 9px; flex: none; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .55; transition: transform .2s ease; }
.wsm-datefield.is-open .wsm-df-chev { transform: translateY(2px) rotate(225deg); }
.wsm-picker { margin-top: 8px; padding: 14px; border: 1px solid var(--wsm-line); border-radius: var(--wsm-radius); background: var(--wsm-bg); box-shadow: 0 10px 30px -12px rgba(0,0,0,.18); animation: wsm-drop .18s ease-out; }
@keyframes wsm-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.wsm-pk-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: .95em; }
.wsm-months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
@container (min-width: 520px) { .wsm-months { grid-template-columns: repeat(4, 1fr); } }
.wsm .wsm-mon { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 58px; padding: 6px 4px; border: 1px solid var(--wsm-line); border-radius: 10px; background: var(--wsm-bg); line-height: 1.2; transition: border-color .15s, background .15s; }
.wsm .wsm-mon span { font-weight: 600; }
.wsm .wsm-mon small { font-size: .75em; color: var(--wsm-muted); }
.wsm .wsm-mon:hover { border-color: var(--wsm-accent); background: color-mix(in srgb, var(--wsm-accent) 6%, #fff); }
.wsm .wsm-mon.is-on { background: var(--wsm-accent); border-color: var(--wsm-accent); color: var(--wsm-on-accent, #fff); }
.wsm .wsm-mon.is-on small { color: #fff; }
.wsm .wsm-cal-head .wsm-cal-title { display: inline-flex; align-items: center; gap: 8px; width: auto; height: auto; padding: 6px 12px; border: 0; border-radius: 8px; background: transparent; font-size: 1em; font-weight: 700; }
.wsm .wsm-cal-head .wsm-cal-title:hover { background: var(--wsm-soft); }

/* Auswahl als Knöpfe (Anlass) */
.wsm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wsm .wsm-chip { padding: 8px 14px; border: 1px solid var(--wsm-line); border-radius: 999px; background: var(--wsm-bg); font-size: .92em; line-height: 1.2; transition: border-color .15s, background .15s; }
.wsm .wsm-chip:hover { border-color: var(--wsm-accent); }
.wsm .wsm-chip.is-on { background: var(--wsm-accent); border-color: var(--wsm-accent); color: var(--wsm-on-accent, #fff); }
.wsm-full > .wsm-label { margin-top: 0; font-size: .92em; }

/* Monatskalender */
.wsm-cal { max-width: 460px; }
.wsm-cal.is-loading .wsm-cal-grid { opacity: .5; }
.wsm-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.wsm-cal-head button, .wsm-arrow { width: 36px; height: 36px; border: 1px solid var(--wsm-line); border-radius: 50%; background: var(--wsm-bg); font-size: 1.2em; line-height: 1; }
.wsm-cal-head button:disabled, .wsm-arrow:disabled { opacity: .35; }
.wsm-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; transition: opacity .15s; }
.wsm-dow { text-align: center; font-size: .78em; font-weight: 600; color: var(--wsm-muted); padding-bottom: 2px; }
.wsm-day { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; padding: 4px 0; border: 1px solid var(--wsm-line); border-radius: 8px; background: var(--wsm-bg); }
.wsm-day span { font-weight: 600; }
.wsm-day small { font-size: .66em; white-space: nowrap; letter-spacing: -.01em; }
.wsm-day.is-frei:hover { border-color: var(--wsm-accent); }
.wsm-day.is-on { background: var(--wsm-accent); border-color: var(--wsm-accent); color: var(--wsm-on-accent, #fff); }
.wsm-day.is-on small { color: #fff; }
.wsm-day.is-angefragt { background: repeating-linear-gradient(-45deg, #fff6e8, #fff6e8 5px, #ffe9c7 5px, #ffe9c7 10px); border-color: #f1cf98; color: #8a5a12; }
.wsm-day.is-belegt { background: var(--wsm-soft); color: var(--wsm-busy); text-decoration: line-through; }
.wsm-day.is-vergangen { background: transparent; border-color: transparent; color: var(--wsm-busy); }
.wsm-legend { display: flex; gap: 14px; font-size: .82em; color: var(--wsm-muted); margin: 8px 0 0; }
.wsm-legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; border: 1px solid var(--wsm-line); background: var(--wsm-bg); }
.wsm-dow.is-we { color: var(--wsm-accent-text, var(--wsm-accent)); font-weight: 700; }
.wsm-day.is-frei.is-we:not(.is-on) { background: color-mix(in srgb, var(--wsm-accent) 8%, #fff); border-color: color-mix(in srgb, var(--wsm-accent) 30%, var(--wsm-line)); }
.wsm-day.is-frei.is-we:not(.is-on) small { color: var(--wsm-accent-text, var(--wsm-accent)); font-weight: 600; }
.wsm-legend { flex-wrap: wrap; }
.wsm-legend .is-we::before { background: color-mix(in srgb, var(--wsm-accent) 8%, #fff); border-color: color-mix(in srgb, var(--wsm-accent) 30%, var(--wsm-line)); }
.wsm-legend .is-angefragt::before { background: #ffe9c7; border-color: #f1cf98; }
.wsm-legend .is-belegt::before { background: var(--wsm-soft); }


/* Extras als Haken, Hinweise */
.wsm-extras { display: grid; gap: 8px; }
.wsm .wsm-extra { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--wsm-line); border-radius: 12px; font-weight: 400; cursor: pointer; }
.wsm .wsm-extra.is-first { background: linear-gradient(90deg, color-mix(in srgb, var(--wsm-accent) 10%, #fff), #fff); }
.wsm .wsm-extra.is-on { border-color: var(--wsm-accent); }
.wsm-extra input { width: 20px; height: 20px; flex: none; accent-color: var(--wsm-accent); }
.wsm-extra > span:nth-of-type(1) { flex: 1; display: grid; }
.wsm-extra small { color: var(--wsm-muted); font-size: .85em; }
.wsm-extra-price { white-space: nowrap; font-weight: 600; }
.wsm-note { background: var(--wsm-soft); border-radius: 8px; padding: 8px 12px; }
.wsm select { width: 100%; padding: 10px 12px; border: 1px solid var(--wsm-line); border-radius: 8px; background: var(--wsm-bg); font: inherit; font-weight: 400; color: inherit; min-height: 44px; }
/* Formularfelder */
.wsm-label { margin: 10px 0 6px; font-weight: 600; }
.wsm-fields { display: grid; gap: 12px; margin-bottom: 12px; }
.wsm-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .wsm-2 { grid-template-columns: 1fr; } }
.wsm label { display: flex; flex-direction: column; gap: 4px; font-size: .92em; font-weight: 600; }
.wsm-full { margin-bottom: 12px; }
.wsm input[type="text"], .wsm input[type="email"], .wsm input[type="tel"], .wsm input[type="date"], .wsm textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--wsm-line); border-radius: 8px; background: var(--wsm-bg); font: inherit; font-weight: 400; color: inherit; }
.wsm input:focus, .wsm textarea:focus { border-color: var(--wsm-accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--wsm-accent) 15%, transparent); }
.wsm-check { flex-direction: row !important; align-items: flex-start; gap: 8px !important; font-weight: 400 !important; }
.wsm-check input { margin-top: 4px; accent-color: var(--wsm-accent); }
.wsm-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wsm-small { font-size: .85em; color: var(--wsm-muted); margin: 6px 0; }
.wsm-link { border: 0; background: none; padding: 0; color: var(--wsm-accent-text, var(--wsm-accent)); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Zusammenfassung */
/* Zusammenfassung: dunkle Karte wie im Motto-Entwurf */
.wsm-sum { position: sticky; top: var(--wsm-top, 120px); padding: 24px; border-radius: 20px; background: var(--wsm-dark, #1d2622); color: #f7f4ee; }
.wsm-sum .wsm-small { color: #c9d6d0; }
.wsm-sum-head { margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.14); font-size: 1.6em; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.wsm-sum-title { margin: 0; font-size: 1.1em; font-weight: 600; line-height: 1.3; color: color-mix(in srgb, var(--wsm-accent) 35%, #fff); }
.wsm-sum-date { margin: 2px 0 14px; color: #c9d6d0; }
.wsm-sum ul { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid rgba(255,255,255,.14); display: grid; gap: 8px; }
.wsm-sum ul + ul { border-top: 0; padding-top: 8px; }
.wsm-sum li { display: flex; justify-content: space-between; gap: 12px; font-size: .95em; }
.wsm-sum li > span:last-child { white-space: nowrap; }
.wsm-sum li.is-incl, .wsm-sum-incl li { color: color-mix(in srgb, var(--wsm-accent) 45%, #fff); }
.wsm-total { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.14); }
.wsm-total strong { font-size: 1.8em; }
.wsm-sum-foot { margin-top: 14px; }
.wsm-sum .wsm-error { background: #fdecea; }
.wsm-submit { width: 100%; margin-top: 14px; padding: 14px; border: 0; border-radius: 10px; background: var(--wsm-accent); color: var(--wsm-on-accent, #fff) !important; font-weight: 700; transition: filter .15s, transform .1s; }
.wsm-submit:hover:not(:disabled) { filter: brightness(1.08); }
.wsm-submit:active:not(:disabled) { transform: scale(.98); }
.wsm-submit:disabled { opacity: .6; }
.wsm-error { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: #fdecea; color: #8c1d18; font-size: .92em; }

/* Datums-Box für die Startseite [ws_mietwerk_datum] */
.wsm-mini-box { display: grid; gap: 12px; max-width: 520px; padding: 20px; border-radius: 18px; background: var(--wsm-bg); box-shadow: 0 12px 40px -16px rgba(0,0,0,.25); }
.wsm-mini-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.wsm .wsm-mini-card { display: flex; align-items: center; gap: 10px; padding: 8px; text-align: left; border: 2px solid var(--wsm-line); border-radius: 12px; background: var(--wsm-bg); line-height: 1.25; transition: border-color .15s, box-shadow .15s; }
.wsm .wsm-mini-card:hover { border-color: color-mix(in srgb, var(--wsm-accent) 45%, var(--wsm-line)); }
.wsm .wsm-mini-card.is-on { border-color: var(--wsm-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wsm-accent) 15%, transparent); }
.wsm-mini-card img { width: 52px; height: 52px; flex: none; object-fit: cover; border-radius: 8px; }
.wsm-mini-card span { display: grid; }
.wsm .wsm-mini-card b { font-weight: 700; }
.wsm-mini-card small { color: var(--wsm-accent-text, var(--wsm-accent)); font-weight: 600; }
.wsm-mini-title { margin: 0; font-size: 1.15em; font-weight: 700; }
.wsm-mini .wsm-when { max-width: none; }
.wsm-mini .wsm-cal { max-width: none; }
.wsm .wsm-mini-go { margin-top: 0; }
.wsm-mini-ok { margin: 0; color: var(--wsm-accent-text, var(--wsm-accent)); font-weight: 600; }

/* Danke */
.wsm-done { text-align: center; padding: 40px 20px; border-radius: var(--wsm-radius); background: var(--wsm-soft); }
.wsm-done-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--wsm-accent); color: var(--wsm-on-accent, #fff); font-size: 28px; margin-bottom: 8px; }
.wsm-code strong { letter-spacing: .05em; }
.wsm-admin-hint { padding: 12px; border: 1px dashed #b3261e; color: #8c1d18; }

@media (prefers-reduced-motion: reduce) { .wsm * { transition: none !important; animation: none !important; } }
