/* medien-digital.de – Bestellformular Schmalfilm (alle Klassen mit .mdsf gekapselt) */
.mdsf {
  --mdsf-primary: #1a95d4;
  --mdsf-primary-dark: #137bb0;
  --mdsf-ink: #2b2f33;
  --mdsf-muted: #6b7378;
  --mdsf-line: #dfe4e8;
  --mdsf-soft: #f3f7fa;
  --mdsf-hl: #f5fbfe;
  --mdsf-error: #c0392b;
  --mdsf-radius: 10px;
  color: var(--mdsf-ink);
  font: inherit;
  line-height: 1.5;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 80px;
  box-sizing: border-box;
}
.mdsf *, .mdsf *::before, .mdsf *::after { box-sizing: border-box; }
.mdsf [hidden] { display: none !important; }
.mdsf label { font-weight: inherit; }
.mdsf strong, .mdsf b { margin: 0; padding: 0; letter-spacing: inherit; word-spacing: inherit; } /* Theme-Abstände um Fettschrift neutralisieren */
html.mdsf-noscroll { overflow: hidden; }

/* Kopf */
.mdsf-head { position: relative; padding: 24px 0 8px; }
.mdsf-kicker { margin: 0; color: var(--mdsf-primary); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.mdsf-title { margin: 4px 0 2px; font-size: clamp(1.6rem, 3.5vw, 2.3rem); line-height: 1.2; }
.mdsf-sub { margin: 0; color: var(--mdsf-muted); }
.mdsf-back { position: absolute; right: 0; top: 28px; color: var(--mdsf-muted); text-decoration: none; font-size: .9rem; }
.mdsf-back:hover { color: var(--mdsf-primary); }

/* Schritte */
.mdsf-stepnav { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 20px 0 24px; padding: 0; }
.mdsf-stepnav li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--mdsf-radius); background: var(--mdsf-soft); color: var(--mdsf-muted); font-size: .92rem; cursor: pointer; margin: 0; }
.mdsf-stepnav li span { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--mdsf-line); font-weight: 700; font-size: .85rem; }
.mdsf-stepnav li.is-active { background: var(--mdsf-primary); color: #fff; font-weight: 600; }
.mdsf-stepnav li.is-active span { border-color: #fff; color: var(--mdsf-primary); }
.mdsf-stepnav li.is-done span { background: var(--mdsf-primary); border-color: var(--mdsf-primary); color: #fff; }

/* Layout */
.mdsf-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.mdsf-step { display: none; }
.mdsf-step.is-active { display: block; animation: mdsf-in .25s ease; }
@keyframes mdsf-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.mdsf h2 { font-size: 1.25rem; margin: 30px 0 12px; line-height: 1.3; }
.mdsf-step > h2:first-child { margin-top: 0; }
.mdsf h3 { font-size: 1.05rem; margin: 0 0 12px; }
.mdsf-lead { margin: -2px 0 16px; color: var(--mdsf-muted); }
.mdsf-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.mdsf-span2 { grid-column: 1 / -1; }
.mdsf-card { background: #fff; border: 1px solid var(--mdsf-line); border-radius: var(--mdsf-radius); padding: 18px; }
.mdsf-format { margin-top: 16px; }

/* Felder */
.mdsf-field { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; margin: 0 0 12px; font-weight: 600 !important; }
.mdsf-field small { font-weight: 400; color: var(--mdsf-muted); }
.mdsf-field input, .mdsf-field select, .mdsf-field textarea {
  width: 100%; font: inherit; font-weight: 400; color: inherit; padding: 10px 12px; border: 1px solid #c9d1d7; border-radius: 8px; background: #fff; margin: 0; min-height: 44px;
}
.mdsf-field input:focus, .mdsf-field select:focus, .mdsf-field textarea:focus { outline: none; border-color: var(--mdsf-primary); box-shadow: 0 0 0 3px rgba(26,149,212,.18); }
.mdsf-field input[readonly] { background: var(--mdsf-soft); color: var(--mdsf-primary); font-weight: 700; }
.mdsf .is-invalid input, .mdsf .is-invalid select { border-color: var(--mdsf-error); }
.mdsf .mdsf-choice.is-invalid { color: var(--mdsf-error); }

/* Auswahl (Checkbox/Radio + Text) – Text immer in EINEM span, damit Links im Fließtext bleiben */
.mdsf-choices { display: grid; gap: 8px; }
.mdsf-choice { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; margin: 0; padding: 4px 0; }
.mdsf-choice > input { flex: none; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--mdsf-primary); }
.mdsf-choice > span { flex: 1; min-width: 0; display: block; }
.mdsf-choice small { color: var(--mdsf-muted); }
.mdsf-choice--card { padding: 12px 14px; border: 1px solid var(--mdsf-line); border-radius: var(--mdsf-radius); background: #fff; }
.mdsf-choice--card:has(input:checked) { border-color: var(--mdsf-primary); background: var(--mdsf-hl); }
.mdsf-choice--card small { display: block; margin-top: 2px; font-size: .85rem; }
.mdsf-choice--center { align-self: center; }
.mdsf-inline { display: flex; flex-wrap: wrap; gap: 4px 22px; font-weight: 400; }
.mdsf-anrede { margin-bottom: 10px; }
.mdsf-unbekannt { margin-top: 2px; color: var(--mdsf-primary); font-weight: 600; }

/* Format-Auswahl */
.mdsf-segment { display: inline-flex; flex-wrap: wrap; gap: 0; border: 1px solid #c9d1d7; border-radius: 10px; overflow: hidden; background: #fff; }
.mdsf-segment label { margin: 0; cursor: pointer; }
.mdsf-segment input { position: absolute; opacity: 0; pointer-events: none; }
.mdsf-segment span { display: block; padding: 10px 20px; font-weight: 600; color: var(--mdsf-muted); border-right: 1px solid #c9d1d7; }
.mdsf-segment label:last-child span { border-right: 0; }
.mdsf-segment input:checked + span { background: var(--mdsf-primary); color: #fff; }
.mdsf-segment input:focus-visible + span { outline: 3px solid rgba(26,149,212,.35); outline-offset: -3px; }

/* Spulenrechner */
.mdsf-helper { margin-top: 14px; padding: 16px; border-radius: var(--mdsf-radius); background: var(--mdsf-soft); }
.mdsf-helper-intro { margin: 0 0 12px; font-size: .95rem; }
.mdsf-tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--mdsf-line); }
.mdsf-tab { font: inherit; font-weight: 600; padding: 9px 16px; border: 0; background: transparent; color: var(--mdsf-muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; border-radius: 8px 8px 0 0; }
.mdsf-tab:hover { color: var(--mdsf-primary); }
.mdsf-tab.is-active { color: var(--mdsf-primary); border-bottom-color: var(--mdsf-primary); background: #fff; }
.mdsf-tab-count:not(:empty) { display: inline-block; min-width: 22px; padding: 0 6px; margin-left: 4px; border-radius: 11px; background: var(--mdsf-primary); color: #fff; font-size: .78rem; line-height: 22px; text-align: center; }
.mdsf-tabpanel { display: none; padding-top: 12px; }
.mdsf-tabpanel.is-active { display: block; }
.mdsf-spulen { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.mdsf-spule { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--mdsf-line); border-radius: var(--mdsf-radius); background: #fff; min-height: 60px; }
.mdsf-spule:has(input:not(:placeholder-shown)) { border-color: var(--mdsf-primary); background: var(--mdsf-hl); }
.mdsf-reel-slot { flex: none; width: 46px; display: grid; place-items: center; }
.mdsf-reel { display: block; border-radius: 50%; background: radial-gradient(circle, #222 0 16%, #8a9196 17% 100%); box-shadow: inset 0 0 0 3px #6f777c; }
.mdsf-reel--x { background: var(--mdsf-soft); box-shadow: inset 0 0 0 2px var(--mdsf-line); color: var(--mdsf-muted); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.mdsf-spule-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.mdsf-spule-txt small { color: var(--mdsf-muted); font-size: .8rem; }
.mdsf-stepper { flex: none; display: flex; align-items: center; border: 1px solid #c9d1d7; border-radius: 8px; overflow: hidden; background: #fff; }
.mdsf-stepper button { font: inherit; font-size: 1.1rem; width: 34px; height: 36px; border: 0; background: var(--mdsf-soft); color: var(--mdsf-primary); cursor: pointer; padding: 0; line-height: 1; }
.mdsf-stepper button:hover { background: #e2eff7; }
.mdsf-stepper input { width: 44px; height: 36px; border: 0; text-align: center; font: inherit; font-weight: 600; margin: 0; padding: 0; -moz-appearance: textfield; background: #fff; }
.mdsf-stepper input::-webkit-outer-spin-button, .mdsf-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mdsf-total8 { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-top: 12px; padding: 12px 16px; border-radius: var(--mdsf-radius); background: var(--mdsf-primary); color: #fff; }
.mdsf-total8 strong { font-size: 1.1rem; }
.mdsf-total8 small { font-weight: 400; opacity: .9; }

/* Pakete (kompakt) */
.mdsf-pakete { display: grid; gap: 8px; }
.mdsf-paket { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 2px solid var(--mdsf-line); border-radius: var(--mdsf-radius); background: #fff; cursor: pointer; margin: 0; transition: border-color .15s; }
.mdsf-paket:hover { border-color: #9fcbe5; }
.mdsf-paket:has(input:checked) { border-color: var(--mdsf-primary); background: var(--mdsf-hl); }
.mdsf-paket > input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--mdsf-primary); }
.mdsf-paket-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mdsf-paket-name strong { font-size: 1.05rem; }
.mdsf-paket-name em { color: var(--mdsf-muted); font-size: .88rem; font-style: normal; }
.mdsf-paket-preis { flex: none; text-align: right; font-size: .9rem; line-height: 1.4; white-space: nowrap; }
.mdsf-paket-preis b { color: var(--mdsf-primary); font-size: 1.05rem; }
.mdsf-paket-preis small { color: var(--mdsf-muted); }
.mdsf-badge { display: inline-block; vertical-align: 2px; margin-left: 6px; background: var(--mdsf-primary); color: #fff; font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; letter-spacing: .03em; }
.mdsf-pro-opts { margin-top: 10px; }
.mdsf-pro-block { display: grid; gap: 2px; margin-bottom: 12px; }
.mdsf-pro-block .mdsf-row-label { margin-bottom: 2px; }
.mdsf-archiv { margin: 4px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--mdsf-soft); font-size: .88rem; }
.mdsf-archiv a { color: var(--mdsf-primary); font-weight: 600; white-space: nowrap; }

/* USB-Speicher-Auswahl */
.mdsf-sticks { display: grid; gap: 6px; margin: 2px 0 10px 28px; }
.mdsf-stick { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--mdsf-line); border-radius: 8px; background: #fff; cursor: pointer; margin: 0; }
.mdsf-stick:has(input:checked) { border-color: var(--mdsf-primary); background: var(--mdsf-hl); }
.mdsf-stick > input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--mdsf-primary); }
.mdsf-stick-name { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.mdsf-stick-name small { color: var(--mdsf-muted); font-size: .8rem; }
.mdsf-stick-tag:not(:empty) { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; background: #e3f3e5; color: #2d6a33; white-space: nowrap; }
.mdsf-stick-preis { white-space: nowrap; color: var(--mdsf-primary); }
.mdsf-stick.is-disabled { opacity: .5; cursor: not-allowed; }
.mdsf-stick.is-disabled .mdsf-stick-tag { background: #f1e3e1; color: var(--mdsf-error); }
.mdsf-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.mdsf-row-label { min-width: 100px; font-weight: 600; }

/* Link-Buttons */
.mdsf-link { font: inherit; font-size: .92rem; background: none; border: 0; padding: 0; color: var(--mdsf-primary); text-decoration: underline; cursor: pointer; }
.mdsf-link:hover { color: var(--mdsf-primary-dark); }
.mdsf-link--block { display: inline-block; margin-top: 10px; }

/* Optionen (Zusatzleistungen, Speicher) */
.mdsf-opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin: 0 0 10px; border: 1px solid var(--mdsf-line); border-radius: var(--mdsf-radius); background: #fff; cursor: pointer; }
.mdsf-opt:has(input:checked) { border-color: var(--mdsf-primary); background: var(--mdsf-hl); }
.mdsf-opt > input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--mdsf-primary); }
.mdsf-opt > span { flex: 1; min-width: 0; }
.mdsf-opt small { color: var(--mdsf-muted); display: block; }
.mdsf-opt em { display: block; font-size: .87rem; color: var(--mdsf-muted); margin-top: 4px; font-style: normal; }
.mdsf-sub-opts { margin: -4px 0 12px 30px; padding: 8px 14px; border-left: 3px solid var(--mdsf-primary); background: var(--mdsf-soft); border-radius: 0 8px 8px 0; }

/* Hinweise */
.mdsf-note, .mdsf-fine { font-size: .86rem; color: var(--mdsf-muted); margin: 12px 0 0; }
.mdsf-note--tight { margin: 8px 0 0; }
.mdsf-tip { margin: 14px 0 0; padding: 10px 14px; border-radius: var(--mdsf-radius); background: #eef8ee; color: #2d6a33; font-size: .92rem; }
.mdsf-trust { margin: 24px 0 16px; padding: 14px 16px; border-radius: var(--mdsf-radius); background: var(--mdsf-soft); font-size: .92rem; }
.mdsf-trust p { margin: 0 0 6px; }
.mdsf-trust p:last-child { margin: 0; }
.mdsf-consents { display: grid; gap: 6px; font-size: .9rem; line-height: 1.5; }
.mdsf-consents a { color: var(--mdsf-primary); }
.mdsf-error { margin: 16px 0 0; padding: 10px 14px; border-radius: 8px; background: #fdecea; color: var(--mdsf-error); font-weight: 500; }
.mdsf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Buttons */
.mdsf-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.mdsf-btn { display: inline-block; font: inherit; font-weight: 600; padding: 12px 28px; border-radius: 8px; border: 2px solid var(--mdsf-primary); background: var(--mdsf-primary); color: #fff; cursor: pointer; transition: background .15s; text-decoration: none; text-align: center; }
.mdsf-btn:hover { background: var(--mdsf-primary-dark); border-color: var(--mdsf-primary-dark); color: #fff; }
.mdsf-btn--ghost { background: #fff; color: var(--mdsf-primary); }
.mdsf-btn--ghost:hover { background: var(--mdsf-soft); color: var(--mdsf-primary-dark); }
.mdsf-btn--submit { padding: 14px 36px; }
.mdsf-btn:disabled { opacity: .6; cursor: wait; }
.mdsf-actions + .mdsf-fine { text-align: right; }

/* Zusammenfassung */
.mdsf-summary { position: sticky; top: 110px; padding: 20px; border-radius: var(--mdsf-radius); background: var(--mdsf-soft); border: 1px solid var(--mdsf-line); }
.mdsf-sum-head { display: flex; flex-direction: column; padding: 10px 12px; margin-bottom: 8px; border-radius: 8px; background: #fff; border-left: 3px solid var(--mdsf-primary); }
.mdsf-sum-head strong { color: var(--mdsf-primary); }
.mdsf-sum-head strong small { color: var(--mdsf-muted); font-weight: 400; margin-left: 4px; }
.mdsf-sum-head span { font-size: .85rem; color: var(--mdsf-muted); }
.mdsf-pos { list-style: none; margin: 0 0 12px; padding: 0; font-size: .9rem; }
.mdsf-pos li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--mdsf-line); margin: 0; }
.mdsf-pos-t { line-height: 1.35; }
.mdsf-pos-b { white-space: nowrap; text-align: right; font-weight: 600; }
.mdsf-pos-s { grid-column: 1 / -1; color: var(--mdsf-muted); font-size: .8rem; line-height: 1.3; margin-top: 1px; }
.mdsf-pos .mdsf-empty { display: block; color: var(--mdsf-muted); font-style: italic; border: 0; }
.mdsf-total { display: flex; flex-direction: column; padding: 12px 0 4px; border-top: 2px solid var(--mdsf-ink); }
.mdsf-total strong { font-size: 1.8rem; line-height: 1.2; color: var(--mdsf-ink); }
.mdsf-total small { color: var(--mdsf-muted); }
.mdsf-hinweis { font-size: .82rem; background: #fff8e5; color: #7a5a00; padding: 8px 10px; border-radius: 6px; margin: 10px 0 0; }
.mdsf-summary .mdsf-fine { font-size: .8rem; margin-top: 10px; }
.mdsf-contact { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--mdsf-line); font-size: .9rem; }
.mdsf-contact strong { display: block; }
.mdsf-contact a { color: var(--mdsf-primary); font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.mdsf-pdf { display: block; margin-top: 12px; font-size: .88rem; color: var(--mdsf-primary); }

/* Bestätigung */
.mdsf-success { padding: 32px; border-radius: var(--mdsf-radius); border: 2px solid var(--mdsf-primary); background: #fff; }
.mdsf-success-icon { width: 54px; height: 54px; border-radius: 50%; background: var(--mdsf-primary); color: #fff; display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 12px; }
.mdsf-success h2 { margin-top: 0; }
.mdsf-nr { font-size: 1.3rem; color: var(--mdsf-primary); letter-spacing: .03em; }
.mdsf-success ol { padding-left: 20px; }
.mdsf-success li { margin-bottom: 6px; }
.mdsf-success a:not(.mdsf-btn) { color: var(--mdsf-primary); }

/* Popups */
.mdsf-modal { position: fixed; inset: 0; z-index: 2147483000; background: rgba(20, 25, 30, .6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.mdsf-modal-box { position: relative; width: 100%; max-width: 820px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.mdsf-modal-box--bild { max-width: 1000px; }
.mdsf-modal-box--bild img { display: block; width: 100%; height: auto; margin-top: 12px; border-radius: 6px; }
.mdsf-modal-close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--mdsf-soft); font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--mdsf-ink); }
.mdsf-modal-close:hover { background: var(--mdsf-line); }
.mdsf-table-wrap { overflow-x: auto; }
.mdsf-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.mdsf-table th, .mdsf-table td { padding: 7px 10px; border-bottom: 1px solid var(--mdsf-line); text-align: center; vertical-align: middle; }
.mdsf-table tbody th { text-align: left; font-weight: 400; }
.mdsf-table tbody th small { color: var(--mdsf-muted); display: block; font-size: .78rem; }
.mdsf-table thead th { font-size: 1rem; padding-bottom: 10px; border-bottom: 2px solid var(--mdsf-ink); }
.mdsf-table .is-hl { background: var(--mdsf-hl); color: var(--mdsf-primary); font-weight: 600; }
.mdsf-table thead th.is-hl { border-radius: 8px 8px 0 0; }
.mdsf-table-group th { text-align: left !important; font-weight: 700 !important; color: var(--mdsf-primary); padding-top: 16px; background: none; }

/* Mobile */
.mdsf-mobilebar { display: none; }
@media (max-width: 980px) {
  .mdsf-layout { grid-template-columns: 1fr; }
  .mdsf-summary { position: static; }
  .mdsf-mobilebar { display: flex; align-items: baseline; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 99999; padding: 12px 16px; background: var(--mdsf-primary); color: #fff; text-decoration: none; box-shadow: 0 -4px 16px rgba(0,0,0,.15); }
  .mdsf-mobilebar strong { font-size: 1.15rem; }
  .mdsf-mobilebar small { margin-left: auto; opacity: .9; }
}
@media (max-width: 640px) {
  .mdsf-stepnav { gap: 4px; }
  .mdsf-stepnav li { flex-direction: column; font-size: .7rem; text-align: center; padding: 8px 4px; gap: 4px; }
  .mdsf-grid2, .mdsf-spulen { grid-template-columns: 1fr; }
  .mdsf-back { position: static; display: inline-block; margin-top: 8px; }
  .mdsf-segment { display: flex; }
  .mdsf-segment label { flex: 1; }
  .mdsf-segment span { padding: 10px 8px; text-align: center; font-size: .9rem; }
  .mdsf-paket { flex-wrap: wrap; }
  .mdsf-paket-preis { width: 100%; text-align: left; padding-left: 34px; }
  .mdsf-actions { flex-wrap: wrap; }
  .mdsf-actions .mdsf-btn { flex: 1; }
  .mdsf-actions + .mdsf-fine { text-align: left; }
  .mdsf-success { padding: 20px; }
  .mdsf-sticks { margin-left: 0; }
  .mdsf-stick { flex-wrap: wrap; }
  .mdsf-helper { padding: 12px 10px; margin-left: -6px; margin-right: -6px; }
  .mdsf-spule { gap: 8px; padding: 8px; }
  .mdsf-reel-slot { width: 36px; }
  .mdsf-stepper button { width: 32px; }
  .mdsf-stepper input { width: 36px; }
  .mdsf-modal-box { padding: 18px 12px; }
}

/* ---- Theme-Konflikte neutralisieren ----
   Das Theme gestaltet alle Checkboxen/Radios als eckige Kästchen; im Formular nutzen wir die Standard-Auswahlfelder. */
.mdsf label > input:is([type="radio"], [type="checkbox"]),
.mdsf label > input:is([type="radio"], [type="checkbox"]):checked,
.mdsf label > input:is([type="radio"], [type="checkbox"]):focus {
  all: revert;
  flex: none; width: 18px; height: 18px; margin: 3px 0 0; padding: 0; cursor: pointer;
  accent-color: var(--mdsf-primary);
}
.mdsf .mdsf-paket > input:is([type="radio"]), .mdsf .mdsf-paket > input:is([type="radio"]):checked { width: 20px; height: 20px; margin: 0; }
.mdsf .mdsf-stick > input:is([type="radio"]), .mdsf .mdsf-stick > input:is([type="radio"]):checked { margin: 0; }
.mdsf label > input:is([type="radio"], [type="checkbox"]):disabled { cursor: not-allowed; }
/* Format-Umschalter: Auswahlfeld bleibt unsichtbar */
.mdsf .mdsf-segment label > input:is([type="radio"]),
.mdsf .mdsf-segment label > input:is([type="radio"]):checked,
.mdsf .mdsf-segment label > input:is([type="radio"]):focus { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; margin: 0; }
.mdsf .mdsf-head { background: none; box-shadow: none; z-index: auto; padding: 24px 0 8px; }

/* ---- Fehlende Pflichtfelder deutlich markieren (setzt sich gegen das Theme durch) ---- */
.mdsf .mdsf-field.is-invalid > span,
.mdsf .mdsf-field.is-invalid > span * { color: var(--mdsf-error) !important; }
.mdsf .mdsf-field.is-invalid input,
.mdsf .mdsf-field.is-invalid select,
.mdsf .mdsf-field.is-invalid textarea {
  border: 2px solid var(--mdsf-error) !important;
  background-color: #fdf3f2 !important;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, .12) !important;
}
.mdsf .mdsf-choice.is-invalid {
  color: var(--mdsf-error) !important;
  background-color: #fdf3f2;
  outline: 2px solid var(--mdsf-error);
  outline-offset: 0;
  border-radius: 6px;
  padding: 6px 8px !important;
}
.mdsf .mdsf-choice.is-invalid > span,
.mdsf .mdsf-choice.is-invalid > span *:not(a) { color: var(--mdsf-error) !important; }
.mdsf .mdsf-choice.is-invalid > input { outline: 2px solid var(--mdsf-error) !important; outline-offset: 1px; }
.mdsf .mdsf-anrede.is-invalid .mdsf-inline { padding: 6px 8px; border-radius: 6px; background-color: #fdf3f2; outline: 2px solid var(--mdsf-error); }
.mdsf .mdsf-anrede.is-invalid .mdsf-choice > span { color: var(--mdsf-error) !important; }
.mdsf .mdsf-error { font-weight: 600 !important; color: var(--mdsf-error) !important; }
