/*
 * ed's Fotobox Plattform – Aussehen der Bausteine.
 * Alles hängt an .eds-app und beginnt mit .eds-. Farben und Maße sind Variablen: Sie übernehmen die Farben
 * des Themes (theme.json) und lassen sich überschreiben, z. B. im Customizer unter „Zusätzliches CSS“:
 *   .eds-app { --eds-accent: #FFD500; --eds-radius-btn: 8px; }
 * Schrift und Überschriften erbt das Plugin vom Theme.
 */
.eds-app {
  --eds-ink: var(--wp--preset--color--secondary, #000000);
  --eds-mid: #646464;
  --eds-grey: var(--wp--preset--color--dark-gray, #8D8D8D);
  --eds-line: #E7E4DE;
  --eds-bg: var(--wp--preset--color--light-gray, #FBF8F3);
  --eds-surface: #FFFFFF;
  --eds-accent: var(--wp--preset--color--primary, #FFD500);
  --eds-accent-dark: #E3BD00;
  --eds-on-accent: #000000;
  --eds-red: #C60000;
  --eds-red-soft: #FBEAE8;
  --eds-ok: #0E7A4D;
  --eds-radius: 8px;
  --eds-radius-btn: 50px;
  --eds-border: 2px;
  --eds-gap: 16px;
  --eds-max: 818px;   /* Breite des Formular-Inhalts im Theme (am Rechner gemessen: Kartenreihe 838 − 2 × 10) */
  --eds-max-embed: 1200px;
  --eds-font: inherit;
  --eds-fs: 16px;
  --eds-fs-small: 14px;
  --eds-btn-ls: .1em;
  --eds-btn-transform: uppercase;

  box-sizing: border-box;
  width: 100%;
  max-width: var(--eds-max);
  margin-left: auto;
  margin-right: auto;
  font-family: var(--eds-font);
  font-size: var(--eds-fs);
  line-height: 1.45;
  color: var(--eds-ink);
}
.eds-app *, .eds-app *::before, .eds-app *::after { box-sizing: border-box; }
.eds-app [hidden] { display: none !important; }

/* ---------- Knöpfe (wie die Pillen der Website) ---------- */
.eds-app .eds-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 12px 24px;
  border: var(--eds-border) solid var(--eds-ink); border-radius: var(--eds-radius-btn);
  background: var(--eds-ink); color: #fff;
  font: inherit; font-weight: 700; letter-spacing: var(--eds-btn-ls); text-transform: var(--eds-btn-transform);
  text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.eds-app .eds-btn:hover, .eds-app .eds-btn:focus-visible { background: #1C1B1F; color: #fff; }
.eds-app .eds-btn--accent { background: var(--eds-accent); border-color: var(--eds-accent); color: var(--eds-on-accent); }
.eds-app .eds-btn--accent:hover, .eds-app .eds-btn--accent:focus-visible { background: var(--eds-accent-dark); border-color: var(--eds-accent-dark); color: var(--eds-on-accent); }
.eds-app .eds-btn:focus-visible { outline: 2px solid var(--eds-ink); outline-offset: 2px; }
.eds-app .eds-btn:disabled, .eds-app .eds-btn--busy { opacity: .5; cursor: default; }

/* ---------- Hinweise ---------- */
.eds-app .eds-msg { margin: 0 0 var(--eds-gap); padding: 12px 16px; border-radius: var(--eds-radius); background: var(--eds-bg); font-weight: 600; }
.eds-app .eds-msg--bad { background: var(--eds-red-soft); color: var(--eds-red); }
.eds-app .eds-admin-hint { margin: 8px 0; padding: 8px 12px; border: 1px dashed var(--eds-grey); border-radius: var(--eds-radius); font-size: var(--eds-fs-small); color: var(--eds-mid); }

/* ---------- Einbettung: Galerie und Kundenportal ---------- */
.eds-app.eds-embed { max-width: var(--eds-max-embed); }
/* Kundenportal über die ganze Fensterbreite (Patrick 14.11.2026); der Rückfall-Kasten bleibt schmal */
.eds-app.eds-embed.eds-kundenbereich:not(.eds-embed--fallback) { max-width: none; }
.eds-app .eds-embed__frame { display: block; width: 100%; min-height: 80vh; border: 0; background: transparent; }
/* Kundenportal: Bereich mindestens fensterhoch (Höhe setzt das Skript), Fläche wie das Portal; Anmeldeseite senkrecht mittig */
.eds-app.eds-kundenbereich.eds-embed--ready { display: flex; align-items: flex-start; box-sizing: border-box; background: var(--eds-portal-bg, #FBF8F3); }
.eds-app.eds-kundenbereich.eds-embed--ready .eds-embed__frame { flex: 1 1 0; width: auto; min-width: 0; }
.eds-app.eds-kundenbereich.eds-embed--ready.eds-embed--login { align-items: center; }
/* Menü des Kundenportals, von der Website gezeichnet (Vertrag §21): bleibt unter dem festen Kopf stehen */
.eds-app.eds-embed--menu { display: flex; align-items: flex-start; background: var(--eds-portal-bg, #FBF8F3); } /* Fläche unter dem Menü wie der Hintergrund des Kundenportals */
.eds-app.eds-embed--menu .eds-embed__frame { flex: 1 1 0; width: auto; min-width: 0; }
.eds-app .eds-pmenu { position: sticky; top: 16px; flex: 0 0 232px; box-sizing: border-box; width: 232px; margin: 24px 0 24px 24px; padding: 8px; border: 1px solid #E7E4DE; border-radius: 10px; background: #fff; }
.eds-app .eds-pmenu[hidden] { display: none; }
.eds-app .eds-pmenu__list { margin: 0; padding: 0; list-style: none; }
.eds-app .eds-pmenu__list li { margin: 0 0 2px; padding: 0; list-style: none; }
.eds-app .eds-pmenu__item { display: flex; align-items: center; gap: 10px; box-sizing: border-box; width: 100%; height: 38px; min-height: 0; margin: 0; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; box-shadow: none; color: #000; font-family: var(--wp--preset--font-family--barlow, Barlow, sans-serif); font-size: 15px; font-weight: 600; line-height: 1; letter-spacing: 0; text-transform: none; text-align: left; cursor: pointer; }
.eds-app .eds-pmenu__item:hover, .eds-app .eds-pmenu__item:focus-visible { background: #F4F1EA; color: #000; }
.eds-app .eds-pmenu__item.is-active, .eds-app .eds-pmenu__item.is-active:hover { background: #000; color: #fff; }
.eds-app .eds-pmenu__icon { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.eds-app .eds-pmenu__foot { margin-top: 8px; padding: 10px 12px 4px; border-top: 1px solid #E7E4DE; color: #646464; font-family: var(--wp--preset--font-family--barlow, Barlow, sans-serif); font-size: 12px; line-height: 1.5; }
.eds-app .eds-pmenu__who { font-weight: 600; overflow-wrap: anywhere; }
.eds-app .eds-pmenu__out { display: inline; margin: 4px 0 0; padding: 0; min-height: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: #646464; font: inherit; letter-spacing: 0; text-transform: none; text-decoration: underline; cursor: pointer; }
.eds-app .eds-pmenu__out:hover { background: none; color: #000; }
.eds-app .eds-fallback { padding: 32px 24px; border-radius: var(--eds-radius); background: var(--eds-bg); text-align: center; }
.eds-app .eds-fallback__title { margin: 0 0 8px; }
.eds-app .eds-fallback__text { margin: 0 0 24px; color: var(--eds-mid); }

/* ---------- Buchung ---------- */
.eds-app .eds-form { display: grid; gap: 36px; }   /* 36 + 24 = 60 px zwischen den Abschnitten wie .form-group-wrapper */
.eds-app .eds-step { margin: 0; padding: 0; border: 0; }
.eds-app .eds-step__title { margin: 24px 0; }   /* wie die Absätze im Theme-Formular */
.eds-app .eds-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Auswahlkarten: Produkte und Erweiterungen */
/* Die Karten tragen Aufbau und Klassen des Anfrage-Formulars im Theme „eds-fotobox“ (.form-services figure) und werden
   dort vom Theme gestaltet. Die folgenden Regeln sind dessen Regeln 1:1 (style.css, Stand 13.11.2026) als Rückfall für
   Seiten ohne dieses Theme; :where() hält sie gleich stark wie das Original, damit das Theme das letzte Wort behält. */
:where(.eds-app) .form-services{display:flex;flex-wrap:wrap;justify-content:flex-start;margin:0 -10px}
:where(.eds-app) .form-services figure{position:relative;flex:0 0 50%;width:50%;padding:0 10px;cursor:pointer;aspect-ratio:254/343}
@media screen and (min-width: 767px){:where(.eds-app) .form-services figure{flex:0 0 33.3333%;width:33.3333%}}
@media screen and (min-width: 992px){:where(.eds-app) .form-services figure{flex:0 0 25%;width:25%}}
:where(.eds-app) .form-services figure.active:before{border:3px solid #000}
:where(.eds-app) .form-services figure.active:after{position:absolute;content:"";display:block;top:50%;transform:translateY(-50%);left:0;right:0;margin:0 auto;height:40px;width:40px;background:url(checkmark.svg) no-repeat center center/cover;z-index:2}
:where(.eds-app) .form-services figure img{width:100%;object-fit:cover;border-radius:8px;height:100%}
:where(.eds-app) .form-services figure:before{position:absolute;display:block;height:100%;width:calc(100% - 20px);bottom:0;left:0;right:0;margin:0 auto;background:linear-gradient(to top, #FFD500, rgba(0, 0, 0, 0));content:"";border-radius:8px;border:3px solid #fbf8f3;top:0}
:where(.eds-app) .form-services figure figcaption{position:absolute;bottom:0;width:100%;padding:1rem;max-width:calc(100% - 2rem)}
:where(.eds-app) .has-h-5-font-size{font-size:var(--wp--preset--font-size--h-5, 1.5rem)}
:where(.eds-app) .has-paragraph-5-font-size{font-size:var(--wp--preset--font-size--paragraph-5, 1rem)}
:where(.eds-app) .has-lucita-font-family{font-family:var(--wp--preset--font-family--lucita, inherit);font-weight:400}
:where(.eds-app) .nomargin{margin:0}
:where(.eds-app .form-services figure){margin:0 0 1em;box-sizing:border-box}   /* wie WordPress: :where(figure){margin:0 0 1em} */

/* Rote Marke oben rechts auf der Karte („mit KI“, „für B2B“): klein, aber in der Form der Knöpfe der Website (Pille, Versalien) */
.eds-app .eds-badge {
  position: absolute; z-index: 2; top: 12px; right: 22px; padding: 6px 12px;
  border-radius: var(--eds-radius-btn); background: var(--eds-red); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1.2; letter-spacing: var(--eds-btn-ls); text-transform: var(--eds-btn-transform); white-space: nowrap;
}
/* Anzahl in der gewählten Kachel: weisse Pille − Zahl + an der Stelle des Hakens */
.eds-app .form-services figure.eds-option--qty.active:after { display: none; }
.eds-app .eds-stepper {
  position: absolute; z-index: 4; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; height: 44px; padding: 0 4px;
  border: var(--eds-border) solid var(--eds-ink); border-radius: var(--eds-radius-btn); background: #fff; color: var(--eds-ink);
}
/* schmale Kacheln (Handy, zwei nebeneinander): an den oberen Rand, damit die Pille nie auf mehrzeiligen Namen liegt */
@media (max-width: 766px) { .eds-app .eds-stepper { top: 14px; transform: translateX(-50%); } }
@media (max-width: 766px) { .eds-app .eds-stepper--wide .eds-stepper__btn { width: 30px; } .eds-app .eds-stepper--wide .eds-stepper__n { min-width: 60px; } }
/* Mengenwahl (Ausdrucke) ist breiter: immer am oberen Kachelrand, dort liegt sie nie auf dem Namen */
.eds-app .eds-stepper--wide { top: 14px; transform: translateX(-50%); }
.eds-app .eds-stepper--wide .eds-stepper__n { display: grid; min-width: 64px; line-height: 1.05; }
.eds-app .eds-stepper--wide .eds-stepper__n strong { font-weight: 400; font-size: 20px; }
.eds-app .eds-stepper--wide .eds-stepper__n small { font-family: var(--eds-font); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.eds-app .eds-stepper__btn {
  width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit;
  font: inherit; font-size: 22px; font-weight: 700; line-height: 1; cursor: pointer;
}
.eds-app .eds-stepper__btn:hover:not(:disabled), .eds-app .eds-stepper__btn:focus-visible { background: var(--eds-accent); outline: none; }
.eds-app .eds-stepper__btn:disabled { opacity: .3; cursor: default; }
.eds-app .eds-stepper__n { min-width: 28px; text-align: center; font-family: var(--wp--preset--font-family--lucita, inherit); font-size: 20px; line-height: 1; font-variant-numeric: tabular-nums; }
.eds-app .eds-step__hint { margin: -12px 0 var(--eds-gap); }
.eds-app .eds-summary__item--head { font-weight: 700; }
.eds-app .eds-summary__item--sub { padding-left: 16px; }
.eds-app .eds-summary__item--order { font-weight: 700; }

/* Nur das, was das Theme-Formular nicht kennt: unsichtbares Eingabefeld über der Karte, Karte ohne Bild, Tastatur-Fokus */
.eds-app .eds-option__hit { position: absolute; inset: 0 10px; z-index: 3; margin: 0; cursor: pointer; }
.eds-app .eds-option__hit input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.eds-app .form-services figure.eds-option--noimg:before { background: #FFD500; }
.eds-app .form-services figcaption { line-height: 1.25; }   /* wie im Theme-Formular (dort erbt der Preis 20 px Zeilenhöhe) */
.eds-app .form-services figcaption p { overflow-wrap: break-word; hyphens: auto; }   /* lange Namen aus dem Katalog umbrechen statt überlaufen */
.eds-app .eds-option:has(input:focus-visible):before { outline: 2px solid #000; outline-offset: 2px; }
.eds-app .eds-addons__group { margin: 24px 0 16px; line-height: 1.25; }
.eds-app .eds-addons__group:first-child { margin-top: 0; }

/* Kalender */
/* Kalender links, die Texte dazu rechts daneben untereinander; schmal (Handy, Tablet hochkant) stehen sie darunter */
.eds-app .eds-date { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 24px 32px; align-items: start; }
.eds-app .eds-date__main { display: grid; gap: 12px; align-content: start; }
.eds-app .eds-date__main > * { margin: 0; }
/* reine Hinweis-Karte: nicht anklickbar, reagiert nicht auf die Maus (Patrick 14.11.2026) */
.eds-app .eds-choice.eds-choice--info, .eds-app .eds-choice.eds-choice--info:hover { cursor: default; border-color: var(--eds-line); background: var(--eds-surface); box-shadow: none; transform: none; transition: none; }
.eds-app .eds-cal { max-width: 420px; padding: 16px; border-radius: var(--eds-radius); background: var(--eds-bg); }
.eds-app .eds-cal__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.eds-app .eds-cal__nav {
  width: 44px; height: 44px; padding: 0; border: var(--eds-border) solid var(--eds-ink); border-radius: 50%;
  background: transparent; color: var(--eds-ink); font: inherit; font-size: 24px; line-height: 1; cursor: pointer;
}
.eds-app .eds-cal__nav:hover:not(:disabled) { background: var(--eds-ink); color: #fff; }
.eds-app .eds-cal__nav:disabled { opacity: .3; cursor: default; }
.eds-app .eds-cal__week, .eds-app .eds-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.eds-app .eds-cal__week { margin-bottom: 4px; font-size: 12px; font-weight: 700; text-align: center; text-transform: uppercase; color: var(--eds-mid); }
.eds-app .eds-cal__grid--loading { opacity: .5; }
.eds-app .eds-cal__day {
  aspect-ratio: 1; min-height: 40px; padding: 0; border: var(--eds-border) solid transparent; border-radius: var(--eds-radius);
  background: var(--eds-surface); color: var(--eds-ink); font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer;
}
.eds-app .eds-cal__day--free:hover { border-color: var(--eds-ink); }
.eds-app .eds-cal__day--busy { background: transparent; color: var(--eds-grey); text-decoration: line-through; cursor: default; }
.eds-app .eds-cal__day--range { background: #FFF3B0; }
.eds-app .eds-times { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.eds-app .eds-times label { display: flex; align-items: center; gap: 8px; margin: 0; }
.eds-app .eds-times .eds-input { width: auto; min-width: 110px; }
.eds-app .eds-cal__day--on { background: var(--eds-accent); border-color: var(--eds-ink); color: var(--eds-on-accent); }
.eds-app .eds-cal__legend { display: grid; gap: 6px; font-size: var(--eds-fs-small); color: var(--eds-mid); }
.eds-app .eds-cal__legend > span { display: flex; align-items: center; gap: 8px; }
.eds-app .eds-cal__dot { display: inline-block; width: 12px; height: 12px; border-radius: 4px; background: var(--eds-surface); border: 1px solid var(--eds-line); }
.eds-app .eds-cal__dot--busy { background: transparent; border-style: dashed; border-color: var(--eds-grey); }
.eds-app .eds-date-chosen { font-weight: 700; }

.eds-app .eds-end { max-width: 260px; margin-top: 12px; }

/* Felder */
.eds-app .eds-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--eds-gap); }
.eds-app .eds-field { margin: 0; min-width: 0; }
.eds-app .eds-field--wide { grid-column: 1 / -1; }
.eds-app .eds-label { display: block; margin: 0 0 4px; font-size: var(--eds-fs-small); font-weight: 700; }
.eds-app .eds-req { color: var(--eds-red); }
.eds-app .eds-input {
  display: block; width: 100%; min-height: 46px; margin: 0; padding: 8px 12px;
  border: var(--eds-border) solid var(--eds-ink); border-radius: var(--eds-radius);
  background: var(--eds-surface); color: var(--eds-ink); font: inherit; font-size: 16px; line-height: 1.45; box-shadow: none;
}
.eds-app .eds-input--area { min-height: 120px; resize: vertical; }
.eds-app .eds-input:focus { outline: 2px solid var(--eds-accent); outline-offset: 1px; }
.eds-app .eds-has-error .eds-input { border-color: var(--eds-red); }
.eds-app .eds-error { margin: 4px 0 0; font-size: var(--eds-fs-small); font-weight: 600; color: var(--eds-red); }
/* Schritt Liefermethode: Karten zur Auswahl bzw. eine feste Karte „Wir bringen alles“, darunter „Wann?“ und „Wo?“ */
.eds-app .eds-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--eds-gap); }
.eds-app .eds-choice {
  position: relative; display: grid; gap: 6px; align-content: start; margin: 0; padding: 20px;
  border: var(--eds-border) solid var(--eds-line); border-radius: var(--eds-radius); background: var(--eds-surface); cursor: pointer;
}
/* Auswahl zeigt die Karte selbst (gelb, schwarzer Rand); das Feld bleibt für Tastatur und Vorleser da, aber unsichtbar */
.eds-app .eds-choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.eds-app .eds-choice:has(input:focus-visible) { outline: 2px solid var(--eds-ink); outline-offset: 2px; }
.eds-app .eds-choice:hover { border-color: var(--eds-grey); }
.eds-app .eds-choice--on, .eds-app .eds-choice:has(input:checked) { border-color: var(--eds-ink); background: var(--eds-accent); }
.eds-app .eds-choice--off { opacity: .45; cursor: default; pointer-events: none; }
.eds-app .eds-delivery-empty { margin: 12px 0 0; }
.eds-app .eds-onsite { margin-top: var(--eds-gap); }
.eds-app .eds-choice--fixed { cursor: default; border-color: var(--eds-ink); background: var(--eds-accent); }
.eds-app .eds-choice__title { font-family: var(--wp--preset--font-family--lucita, inherit); font-size: 20px; line-height: 1.25; }
.eds-app .eds-choice__title small { display: block; font-size: 17px; }
@media (max-width: 640px) { .eds-app .eds-choice__title small { font-size: 15px; } }
.eds-app .eds-choice__note { font-size: var(--eds-fs-small); font-weight: 700; }
.eds-app .eds-choice__props { font-size: var(--eds-fs-small); }
.eds-app .eds-choice__props--no { color: var(--eds-mid); }
.eds-app .eds-staff__fixed { margin: 0 0 12px; font-weight: 700; }
.eds-app .eds-staff__more { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.eds-app .eds-staff .eds-stepper.eds-stepper--inline { position: static; transform: none; }
.eds-app .eds-shipto { margin-top: var(--eds-gap); }
.eds-app .eds-shipto__block { margin-top: var(--eds-gap); padding: 24px; border-radius: var(--eds-radius); background: #EFECE6; }
.eds-app .eds-shipto__block .eds-block__title { margin-top: 0; }
.eds-app .eds-grid--notes { margin-top: var(--eds-gap); }
.eds-app .eds-anlass-other { margin-top: 8px; }
/* Eigene KI-Modelle für Firmen: eigene Karte unter „Neu erfinden“ – weiss mit gelbem Rand, rechts die Pille „Anfragen“ (gewählt gelb) */
.eds-app .eds-customai { display: flex; align-items: center; gap: 16px; margin: var(--eds-gap) 0 0; padding: 16px 20px; border: var(--eds-border) solid var(--eds-accent); border-left-width: 8px; border-radius: var(--eds-radius); background: var(--eds-surface); font-weight: 400; cursor: pointer; }
.eds-app .eds-customai[hidden] { display: none; }
.eds-app .eds-customai input { position: absolute; opacity: 0; pointer-events: none; }
.eds-app .eds-customai__icon { flex: none; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--eds-accent); color: var(--eds-on-accent); }
.eds-app .eds-customai__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.eds-app .eds-customai__title { line-height: 1.25; }
.eds-app .eds-customai__text { font-size: var(--eds-fs-small); color: var(--eds-mid); }
.eds-app .eds-customai__pill { flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 46px; min-width: 132px; padding: 10px 24px; border: var(--eds-border) solid var(--eds-ink); border-radius: var(--eds-radius-btn); background: var(--eds-surface); color: var(--eds-ink); font-weight: 700; }
.eds-app .eds-customai__on, .eds-app .eds-customai input:checked ~ .eds-customai__pill .eds-customai__off { display: none; }
.eds-app .eds-customai input:checked ~ .eds-customai__pill { background: var(--eds-accent); border-color: var(--eds-accent); color: var(--eds-on-accent); }
.eds-app .eds-customai input:checked ~ .eds-customai__pill .eds-customai__on { display: inline; }
.eds-app .eds-customai input:focus-visible ~ .eds-customai__pill { outline: 2px solid var(--eds-ink); outline-offset: 2px; }
.eds-app .eds-addons .eds-customai { margin: 0 0 24px; }
@media (max-width: 640px) { .eds-app .eds-customai { flex-wrap: wrap; } .eds-app .eds-customai__body { flex-basis: calc(100% - 68px); } .eds-app .eds-customai__pill { width: 100%; } .eds-app .eds-customai__icon { align-self: flex-start; } }
.eds-app .eds-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 10px 0 0; padding-top: 12px; border-top: 1px solid rgba(0, 0, 0, .25); }
.eds-app .eds-facts dt { margin: 0; font-weight: 700; }
.eds-app .eds-facts dd { margin: 0; }
.eds-app .eds-block { margin-top: 24px; }
.eds-app .eds-block__title { margin: 0 0 12px; font-family: var(--wp--preset--font-family--lucita, inherit); font-size: 20px; line-height: 1.25; }
.eds-app .eds-block .eds-hint { margin-top: 8px; }
.eds-app .eds-service-info:empty { display: none; }
.eds-app .eds-summary__delivery { margin: 12px 0 0; font-weight: 600; }
.eds-app .eds-check { display: flex; align-items: flex-start; gap: 12px; margin: 0; cursor: pointer; }
.eds-app .eds-check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--eds-ink); }
.eds-app .eds-check a { color: inherit; text-decoration: underline; }

/* Zusammenfassung */
.eds-app .eds-summary { margin-bottom: var(--eds-gap); padding: 24px; border-radius: var(--eds-radius); background: var(--eds-bg); }
.eds-app .eds-summary__items { list-style: none; margin: 0 0 12px; padding: 0; }
.eds-app .eds-summary__item { display: flex; justify-content: space-between; gap: 16px; margin: 0; padding: 8px 0; border-bottom: 1px solid var(--eds-line); }
.eds-app .eds-summary__price { white-space: nowrap; font-variant-numeric: tabular-nums; }
.eds-app .eds-summary__total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0; font-weight: 700; }
.eds-app .eds-total { font-size: 28px; font-variant-numeric: tabular-nums; }
.eds-app .eds-summary__tax { margin: 0; text-align: right; font-size: 12px; color: var(--eds-mid); }
.eds-app .eds-summary__avail { margin: 12px 0 0; }
.eds-app .eds-summary__ref { margin: 12px 0 0; font-size: var(--eds-fs-small); font-weight: 600; color: var(--eds-ok); }
.eds-app .eds-step--summary .eds-field { margin-bottom: var(--eds-gap); }
.eds-app .eds-hint { margin: 12px 0 0; font-size: var(--eds-fs-small); color: var(--eds-mid); }

/* Danke */
.eds-app .eds-thanks { padding: 32px 24px; border-radius: var(--eds-radius); background: var(--eds-bg); text-align: center; }
.eds-app .eds-thanks__title { margin: 0 0 12px; }
.eds-app .eds-thanks__text { margin: 0 0 16px; }
.eds-app .eds-thanks__order { margin: 0 0 16px; }
.eds-app .eds-thanks__avv { margin: 24px auto 0; max-width: 560px; padding: 20px 24px; border: 2px solid var(--eds-accent, #FFD500); border-radius: var(--eds-radius); background: var(--eds-surface); text-align: left; }
.eds-app .eds-thanks__avv[hidden] { display: none; }
.eds-app .eds-thanks__avv p { margin: 0 0 12px; }
.eds-app .eds-thanks__avv p:last-child { margin-bottom: 0; }
.eds-app .eds-thanks__avv-title { font-weight: 700; }
.eds-app .eds-thanks .eds-msg { background: var(--eds-surface); margin: 12px 0 0; }

@media (max-width: 640px) {
  .eds-app .eds-choices { grid-template-columns: minmax(0, 1fr); }
  .eds-app .eds-facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .eds-app .eds-facts dd { margin-bottom: 8px; }
  .eds-app .eds-grid { grid-template-columns: minmax(0, 1fr); }
  .eds-app .eds-submit { width: 100%; }
  .eds-app .eds-cal { max-width: none; }
  .eds-app .eds-date { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .eds-app * { transition: none !important; scroll-behavior: auto !important; }
}

/* Privat | Geschäftlich (Vertrag §18): Umschalter als Pille, gewählte Seite gelb */
.eds-app .eds-kind { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0 0 32px; }
.eds-app .eds-kind__switch { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--eds-bg); }
.eds-app .eds-kind__opt { position: relative; margin: 0; padding: 10px 24px; border-radius: 999px; font-weight: 700; line-height: 1.25; cursor: pointer; }
.eds-app .eds-kind__opt input { position: absolute; opacity: 0; pointer-events: none; }
.eds-app .eds-kind__opt--on { background: var(--eds-accent); color: var(--eds-on-accent); }
.eds-app .eds-kind__opt:focus-within { outline: 2px solid currentColor; outline-offset: 2px; }
.eds-app .eds-kind__note { margin: 0; font-size: var(--eds-fs-small); color: var(--eds-mid); }
.eds-app .eds-summary__net, .eds-app .eds-summary__vat { display: flex; justify-content: space-between; gap: 16px; margin: 0 0 4px; font-variant-numeric: tabular-nums; }

/* ---------- KI-Bild online (Baustein [eds_ki]) ---------- */
/* Abstand selbst setzen: Das Theme gibt dem ersten Block nur 100 px oben, die feste Kopfzeile ist bis 116 px hoch */
.eds-app.eds-ki { box-sizing: border-box; max-width: 672px; min-height: 80vh; margin-left: auto; margin-right: auto; padding: 100px 16px 64px; }
/* Das Theme setzt die 100 px oben mit !important – der Rest des Abstands kommt als eigener Block davor */
.eds-app.eds-ki::before { content: ""; display: block; height: 48px; }
.eds-app .eds-ki__others { margin: 32px 0 0; }
.eds-app .eds-ki__others[hidden] { display: none; }
.eds-app .eds-ki__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.eds-app .eds-ki__grid img { display: block; width: 100%; aspect-ratio: 2 / 3; border-radius: var(--eds-radius); object-fit: cover; background: var(--eds-line); }
.eds-app .eds-ki__linkbtn { display: inline; min-height: 0; margin: 12px 0 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--eds-mid); font: inherit; font-size: var(--eds-fs-small); letter-spacing: 0; text-transform: none; text-decoration: underline; cursor: pointer; }
.eds-app .eds-ki__linkbtn:hover { background: none; color: var(--eds-ink); }
.eds-app .eds-ki__title { margin: 0 0 16px; font-size: 28px; line-height: 1.2; text-align: center; }
.eds-app .eds-ki__card { padding: 24px; border: 1px solid var(--eds-line); border-radius: var(--eds-radius); background: var(--eds-surface); }
.eds-app .eds-ki__h { margin: 24px 0 12px; font-size: 20px; line-height: 1.25; }
.eds-app .eds-ki__card > .eds-ki__h:first-child { margin-top: 0; }
.eds-app .eds-ki__row { display: flex; flex-wrap: wrap; gap: 12px; }
.eds-app .eds-ki__row > * { flex: 1 1 180px; text-align: center; justify-content: center; }
.eds-app .eds-ki__file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.eds-app label.eds-btn { position: relative; cursor: pointer; }
.eds-app .eds-ki__preview { display: block; width: 100%; max-height: 360px; margin: 0 0 12px; border-radius: var(--eds-radius); object-fit: contain; background: var(--eds-bg); }
.eds-app .eds-ki__preview[hidden] { display: none; }
.eds-app .eds-ki__modes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.eds-app .eds-ki__mode { min-height: 40px; margin: 0; padding: 0 16px; border: 1px solid var(--eds-line); border-radius: 999px; background: var(--eds-surface); box-shadow: none; color: var(--eds-ink); font: inherit; font-weight: 600; letter-spacing: 0; text-transform: none; cursor: pointer; }
.eds-app .eds-ki__mode.is-active { border-color: var(--eds-ink); background: var(--eds-ink); color: #fff; }
.eds-app .eds-ki__styles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.eds-app .eds-ki__style { display: block; min-height: 0; margin: 0; padding: 0 0 8px; border: 2px solid var(--eds-line); border-radius: var(--eds-radius); background: var(--eds-surface); box-shadow: none; color: var(--eds-ink); font: inherit; letter-spacing: 0; text-transform: none; text-align: center; overflow: hidden; cursor: pointer; }
.eds-app .eds-ki__style:hover { background: var(--eds-surface); color: var(--eds-ink); border-color: var(--eds-grey); }
.eds-app .eds-ki__style.is-active { border-color: var(--eds-ink); box-shadow: inset 0 0 0 2px var(--eds-accent); background: var(--eds-accent); color: var(--eds-on-accent); }
.eds-app .eds-ki__style img, .eds-app .eds-ki__noimg { display: block; width: 100%; aspect-ratio: 3 / 2; /* Vorschaubilder der Zentrale sind quer (1536 × 1024) */ margin: 0 0 8px; object-fit: cover; background: var(--eds-bg); }
.eds-app .eds-ki__stylename { display: block; padding: 0 6px; font-size: 14px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.eds-app .eds-ki__name[hidden] { display: none; }
.eds-app .eds-ki__label { display: block; margin: 16px 0 0; font-weight: 600; }
.eds-app .eds-ki__input { display: block; box-sizing: border-box; width: 100%; height: 48px; margin: 6px 0 0; padding: 0 14px; border: 1px solid var(--eds-grey); border-radius: var(--eds-radius); background: #fff; color: var(--eds-ink); font: inherit; font-weight: 400; }
.eds-app .eds-ki__check { margin: 16px 0 0; font-size: var(--eds-fs-small); line-height: 1.4; }
.eds-app .eds-ki__go { display: flex; width: 100%; margin: 20px 0 0; justify-content: center; }
.eds-app .eds-ki__go:disabled { opacity: .45; cursor: not-allowed; }
.eds-app .eds-ki__note { margin: 12px 0 0; color: var(--eds-mid); font-size: var(--eds-fs-small); }
.eds-app .eds-ki__note a { color: inherit; text-decoration: underline; }
.eds-app .eds-ki__slots { margin: 8px 0 16px; padding-left: 20px; font-weight: 600; }
.eds-app .eds-ki__loading { text-align: center; color: var(--eds-mid); }
.eds-app .eds-ki__wait { text-align: center; }
.eds-app .eds-ki__spinner { width: 56px; height: 56px; margin: 8px auto 16px; border: 6px solid var(--eds-line); border-top-color: var(--eds-accent); border-radius: 50%; animation: eds-ki-spin 1s linear infinite; }
@keyframes eds-ki-spin { to { transform: rotate(360deg); } }
.eds-app .eds-ki__bar { height: 8px; margin: 16px 0 0; border-radius: 999px; background: var(--eds-line); overflow: hidden; }
.eds-app .eds-ki__barfill { width: 0; height: 100%; border-radius: 999px; background: var(--eds-accent); transition: width .5s linear; }
.eds-app .eds-ki__result { display: block; width: 100%; height: auto; margin: 0 0 16px; border-radius: var(--eds-radius); }
.eds-app .eds-ki__result--small { max-width: 220px; margin: 24px auto 16px; }
.eds-app .eds-ki__form { margin: 24px 0 0; padding: 24px 0 0; border-top: 1px solid var(--eds-line); }
.eds-app .eds-ki__form .eds-ki__h { margin-top: 0; }
.eds-app .eds-ki__qrcard { text-align: center; }
.eds-app .eds-ki__qr { width: min(100%, 320px); margin: 0 auto 8px; padding: 12px; box-sizing: border-box; background: #fff; }
.eds-app .eds-ki__qr img, .eds-app .eds-ki__qr canvas { display: block; width: 100% !important; height: auto !important; }
.eds-app .eds-ki__qr img[style*="display: none"], .eds-app .eds-ki__qr canvas[style*="display: none"] { display: none !important; }
.eds-app .eds-ki__code { margin: 0 0 16px; font-family: ui-monospace, Menlo, monospace; font-size: 20px; font-weight: 700; letter-spacing: .08em; }
.eds-app .eds-ki__stand { margin: 0 0 4px; font-size: 22px; font-weight: 800; line-height: 1.25; }
.eds-app .eds-ki__where { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
.eds-app .eds-ki .eds-msg { text-align: left; }
@media (max-width: 480px) {
  .eds-app .eds-ki__card { padding: 16px; }
  .eds-app .eds-ki__styles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eds-app .eds-ki__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eds-app.eds-ki::before { height: 24px; }
}
@media (prefers-reduced-motion: reduce) { .eds-app .eds-ki__spinner { animation-duration: 4s; } }
