/* Hahne Digital: Projekt-Assistent & Kalkulation */
:root {
  --hwc-ink: #1f3236;
  --hwc-muted: #5a6d70;
  --hwc-line: #dbe3df;
  --hwc-soft: #f2f6f3;
  --hwc-teal: #1d5c55;
  --hwc-teal-soft: #e3efeb;
  --hwc-navy: #182c3a;
  --hwc-sand: #d9b38c;
  --hwc-warn: #9a5b00;
}

/* ---------- Preis-Chip in der Projektleiste ---------- */
body.creator-workspace .actions > #hwcPriceChip { display: inline-flex !important; min-height: 40px; }
.hwc-price-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--hwc-line) !important; border-radius: 999px !important; padding: 6px 12px !important; background: #fff !important; color: var(--hwc-ink) !important; font-size: 12px !important; white-space: nowrap; }
.hwc-price-chip b { color: var(--hwc-teal); }
.hwc-price-chip small { color: var(--hwc-muted); }

/* ---------- Kalkulation ---------- */
#workspaceDialog.hwc-dialog { width: min(1100px, 96vw) !important; }
.hwc-kalk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: 28px; align-items: start; }
.hwc-options h3, .hwc-summary h3 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--hwc-muted); margin: 22px 0 8px; }
.hwc-note { background: #fff6e0; border: 1px solid #ecd39a; color: var(--hwc-warn); border-radius: 10px; padding: 10px 12px; font-size: 13px; margin: 0; }
.hwc-row, .hwa-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--hwc-line); border-radius: 10px; margin-bottom: 6px; background: #fff; cursor: pointer; }
.hwc-row span, .hwa-row span { display: flex; flex-direction: column; font-weight: 600; color: var(--hwc-ink); }
.hwc-row small, .hwa-row small { font-weight: 400; color: var(--hwc-muted); }
.hwc-row input[type=number], .hwa-row input[type=number] { width: 72px; }
.hwc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hwc-options label:not(.hwc-row) { display: block; }
.hwc-row input[type=checkbox], .hwa-row input[type=checkbox] { width: auto !important; margin: 0; }
.hwc-options textarea, .hwc-options input[type=number] { width: 100%; box-sizing: border-box; }
.hwc-summary { position: sticky; top: 0; background: var(--hwc-soft); border: 1px solid var(--hwc-line); border-radius: 16px; padding: 4px 18px 18px; }
.hwc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.hwc-table th { text-align: left; font-size: 11px; color: var(--hwc-muted); font-weight: 600; padding: 6px 4px; border-bottom: 1px solid var(--hwc-line); }
.hwc-table td { padding: 8px 4px; border-bottom: 1px solid var(--hwc-line); vertical-align: top; }
.hwc-table td small { display: block; color: var(--hwc-muted); }
.hwc-table td:nth-child(n+2), .hwc-table th:nth-child(n+2) { text-align: right; white-space: nowrap; }
.hwc-sum { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin: 14px 0; font-size: 14px; }
.hwc-sum dt { color: var(--hwc-muted); }
.hwc-sum dd { margin: 0; text-align: right; font-weight: 600; }
.hwc-sum .hwc-total { font-size: 17px; color: var(--hwc-teal); border-top: 2px solid var(--hwc-ink); padding-top: 8px; font-weight: 700; }

.hwc-handover { margin-top: 14px; padding-top: 4px; border-top: 1px solid var(--hwc-line); }
.hwc-handover-done { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; color: var(--hwc-teal); font-weight: 600; margin: 6px 0 10px; }
.hwc-handover-done small { color: var(--hwc-muted); font-weight: 400; }
#hwcOfferDialog { width: min(900px, 96vw); height: 94dvh; padding: 0; border: 0; border-radius: 16px; box-shadow: 0 30px 100px #10223b66; overflow: hidden; }
#hwcOfferDialog[open] { display: flex; flex-direction: column; }
#hwcOfferDialog::backdrop { background: #0f1e2a99; }
.hwc-offer-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--hwc-navy); color: #fff; }
.hwc-offer-head span { flex: 1; font-size: 13px; color: #c9d6da; }
.hwc-offer-head button { border-radius: 8px; padding: 8px 14px; border: 1px solid #ffffff44; background: transparent; color: #fff; }
.hwc-offer-head .primary { background: var(--hwc-sand); color: var(--hwc-navy); border-color: var(--hwc-sand); font-weight: 700; }
#hwcOfferDialog iframe { flex: 1; width: 100%; border: 0; background: #eef0f2; }

/* ---------- Projekt-Assistent ----------
   Passt vollständig ins Fenster: Kopfleiste (Schritte) und Fußleiste (Preis + Navigation) stehen fest,
   nur die Eingabespalte scrollt, falls ein sehr kleines Fenster es erzwingt. */
#workspaceDialog.hwa-dialog { width: calc(100vw - 24px) !important; max-width: 1680px !important; height: calc(100dvh - 24px) !important; max-height: none !important; padding: 0 !important; overflow: hidden !important; border-radius: 18px !important; background: #fffefa !important; }
#workspaceDialog.hwa-dialog[open] { display: flex !important; flex-direction: column; }
#workspaceDialog.hwa-dialog > .modalhead { display: none !important; }
#workspaceDialog.hwa-dialog > .modalbody { flex: 1; min-height: 0; padding: 0 !important; margin: 0 !important; overflow: hidden !important; max-height: none !important; }
.hwa { height: 100%; display: grid; grid-template-columns: minmax(360px, 30%) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "head head" "form preview" "foot foot"; color: var(--hwc-ink); font-size: 14px; }
.hwa button { font: inherit; cursor: pointer; }
.hwa-switcher { display: none; }

/* Kopfleiste */
.hwa .hwa-head { height: auto !important; min-height: 0 !important; max-height: none !important; position: static !important; border: 0 !important; box-shadow: none !important; }
.hwa .hwa-foot { height: auto !important; position: relative !important; }
.hwa-head { grid-area: head; display: flex; align-items: center; gap: 24px; padding: 12px 18px; background: linear-gradient(110deg, var(--hwc-navy), #1d4049); color: #fff; }
.hwa-title { display: flex; align-items: center; gap: 10px; min-width: 210px; }
.hwa-title b { display: block; font-size: 15px; }
.hwa-title small { display: block; font-size: 11.5px; color: #a9c0c4; }
.hwa-logo { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #ffffff1a; color: var(--hwc-sand); font-size: 18px; }
.hwa-steps { --hwa-progress: 0; flex: 1; list-style: none; display: flex; justify-content: space-between; margin: 0; padding: 0; position: relative; max-width: 860px; }
.hwa-steps::before, .hwa-steps::after { content: ""; position: absolute; left: 14px; right: 14px; top: 14px; height: 2px; background: #ffffff26; }
.hwa-steps::after { right: auto; width: calc((100% - 28px) * var(--hwa-progress)); background: var(--hwc-sand); transition: width .3s ease; }
.hwa-steps li { position: relative; z-index: 1; }
.hwa-steps button { display: flex; flex-direction: column; align-items: center; gap: 5px; border: 0 !important; background: none !important; box-shadow: none !important; color: #a9c0c4; padding: 0 !important; min-width: 0 !important; }
.hwa-steps button span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: #20414b; border: 2px solid #ffffff38; color: #d4e0e2; transition: .2s; }
.hwa-steps em { font-style: normal; font-size: 11.5px; white-space: nowrap; color: #a9c0c4 !important; }
.hwa-steps .active em, .hwa-steps button:not(:disabled):hover em { color: #fff !important; }
.hwa-steps .done em { color: #e6d3bd !important; }
.hwa .hwa-field, .hwa .hwa-switch { padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
.hwa .hwa-field input, .hwa .hwa-field textarea { display: block; }
.hwa-steps .done span { background: var(--hwc-sand); border-color: var(--hwc-sand); color: var(--hwc-navy); }
.hwa-steps .active span { background: #fff; border-color: #fff; color: var(--hwc-navy); box-shadow: 0 0 0 5px #ffffff26; }
.hwa-steps .active em { color: #fff; font-weight: 700; }
.hwa-steps button:disabled { cursor: default; }
.hwa-steps button:not(:disabled):hover em { color: #fff; }
.hwa-close { margin-left: auto; width: 38px; height: 38px; border-radius: 10px; border: 1px solid #ffffff33 !important; background: transparent !important; color: #fff !important; font-size: 16px; }

/* Eingabespalte */
.hwa-form { grid-area: form; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 22px 20px; border-right: 1px solid var(--hwc-line); background: #fffefa; }
.hwa-intro span { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--hwc-teal); }
.hwa-intro h3 { margin: 2px 0 2px; font-size: 21px; line-height: 1.2; }
.hwa-intro p { margin: 0 0 14px; color: var(--hwc-muted); font-size: 13px; }
.hwa-form h4 { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 8px; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--hwc-muted); }
.hwa-form h4 em { font-style: normal; text-transform: none; letter-spacing: 0; font-size: 12.5px; color: var(--hwc-ink); font-weight: 600; }
.hwa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.hwa-grid .wide { grid-column: 1 / -1; }
.hwa-field { display: block; margin: 0 0 8px; }
.hwa-grid .hwa-field { margin: 0; }
.hwa-field span { display: block; font-size: 11.5px; font-weight: 600; color: var(--hwc-muted); margin-bottom: 3px; }
.hwa-field input, .hwa-field textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--hwc-line) !important; border-radius: 9px !important; padding: 8px 10px !important; font: inherit; font-size: 14px; background: #fff !important; color: var(--hwc-ink); min-height: 0 !important; resize: vertical; }
.hwa-field textarea { line-height: 1.45; }
.hwa-field input:focus, .hwa-field textarea:focus { outline: 2px solid var(--hwc-teal); outline-offset: 0; border-color: transparent !important; }
.hwa-field input::placeholder, .hwa-field textarea::placeholder { color: #9aa8aa; }

.hwa-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.hwa-tools button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; padding: 9px 9px 8px !important; border: 1px solid var(--hwc-line) !important; border-radius: 11px !important; background: #fff !important; min-width: 0 !important; color: var(--hwc-ink) !important; }
.hwa-form { container: hwaform / inline-size; }
@container hwaform (max-width: 470px) {
  .hwa-tools { grid-template-columns: 1fr 1fr; }
  .hwa-tools button { flex-direction: row !important; align-items: center !important; gap: 8px !important; padding: 7px 9px !important; }
  .hwa-tools small { display: none; }
}
.hwa-tools i { font-style: normal; font-size: 17px; color: var(--hwc-teal); line-height: 1.1; }
.hwa-tools b { font-size: 12.5px; }
.hwa-tools small { font-size: 10.5px; color: var(--hwc-muted); line-height: 1.25; }
.hwa [aria-pressed=true] { border-color: var(--hwc-teal) !important; background: var(--hwc-teal-soft) !important; box-shadow: inset 0 0 0 1px var(--hwc-teal) !important; }

.hwa-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.hwa-chips button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px !important; line-height: 1.2 !important; border: 1px solid var(--hwc-line) !important; border-radius: 999px !important; background: #fff !important; font-size: 12.5px !important; color: var(--hwc-ink) !important; min-height: 0 !important; }
.hwa-chips i { width: 9px; height: 9px; border-radius: 50%; }
.hwa-profiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
@container hwaform (max-width: 470px) { .hwa-profiles { grid-template-columns: repeat(3, 1fr); } }
.hwa-tabs small { opacity: .6; font-size: 10.5px; }
.hwa-chips { margin-top: 2px; }
.hwa-wire-luxus { grid-template-columns: 1fr; grid-template-rows: 1fr 4px 4px; padding: 6px 14px; }
.hwa-wire-luxus i:first-child { background: #c9b48c; }
.hwa-wire-kraft i:first-child { background: #c73a26; opacity: .75; }
.hwa-wire-kraft { grid-template-columns: 2fr 1fr; }
.hwa-wire-vertrauen { grid-template-columns: 1fr 1.4fr; grid-template-rows: 1fr 1fr; }
.hwa-wire-vertrauen i:first-child { grid-row: span 2; background: #5f7f63; opacity: .6; }
.hwa-wire-lokal { grid-template-columns: 1fr 1fr 1fr; }
.hwa-wire-lokal i { background: #d9b27a; }
.hwa-wire-digital { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1.4fr 1fr; }
.hwa-wire-digital i:first-child { grid-column: span 3; background: #2f74c0; opacity: .55; }
.hwa-wire-servicepro i:first-child { background: #3d5aa8; opacity: .55; }
.hwa-wire-storyline { grid-template-columns: 1fr; }
.hwa-wire-storyline i:first-child { background: #9a5a72; opacity: .5; }
.hwa-wire-fokus { grid-template-columns: 1fr; grid-template-rows: 6px 4px 1fr; }
.hwa-wire-fokus i:last-child { background: #525a63; opacity: .45; }
.hwa-profiles button { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 8px !important; border: 1px solid var(--hwc-line) !important; border-radius: 11px !important; background: #fff !important; min-width: 0 !important; color: var(--hwc-ink) !important; }
.hwa-profiles b { font-size: 11.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.hwa-profile-desc { margin: 6px 0 0; font-size: 12px; color: var(--hwc-muted); min-height: 2.6em; }
.hwa-wire { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; height: 30px; padding: 4px; border-radius: 6px; background: var(--hwc-soft); margin-bottom: 2px; }
.hwa-wire i { border-radius: 3px; background: #c9d6d0; }
.hwa-wire-klar { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.hwa-wire-klar i:first-child { grid-row: span 2; background: var(--hwc-teal); opacity: .55; }
.hwa-wire-magazin { grid-template-columns: 1.3fr 1fr; }
.hwa-wire-magazin i:first-child { background: #b9a07f; }
.hwa-wire-magazin i:last-child { display: none; }
.hwa-wire-erlebnis { grid-template-rows: 2fr 1fr; grid-template-columns: 1fr 1fr; }
.hwa-wire-erlebnis i:first-child { grid-column: span 2; background: var(--hwc-navy); opacity: .7; }
.hwa-empty { padding: 26px 18px; text-align: center; border: 1px dashed var(--hwc-line); border-radius: 14px; color: var(--hwc-muted); }
.hwa-empty i { font-style: normal; font-size: 28px; color: var(--hwc-teal); }
.hwa-empty b { display: block; color: var(--hwc-ink); margin: 4px 0; }

.hwa-switch { display: flex; align-items: center; gap: 9px; font-size: 13px; margin: 6px 0; cursor: pointer; }
.hwa-switch input { position: absolute; opacity: 0; pointer-events: none; }
.hwa-switch > span { flex: none; width: 34px; height: 20px; border-radius: 999px; background: #c8d3d0; position: relative; transition: .2s; }
.hwa-switch > span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 2px #0003; }
.hwa-switch input:checked + span { background: var(--hwc-teal); }
.hwa-switch input:checked + span::after { left: 17px; }
.hwa-switch input:focus-visible + span { outline: 2px solid var(--hwc-teal); outline-offset: 2px; }
.hwa-switch small { color: var(--hwc-muted); margin-left: auto; }
.hwa-more { margin-top: 8px; font-size: 13px; }
.hwa-more summary { cursor: pointer; color: var(--hwc-muted); margin-bottom: 6px; }

.hwa-swatches { display: grid; grid-template-columns: repeat(auto-fill, 36px); gap: 7px; }
.hwa-swatches button { width: 36px; height: 36px; padding: 3px !important; border: 1px solid var(--hwc-line) !important; border-radius: 50% !important; background: #fff !important; min-width: 0 !important; min-height: 0 !important; }
.hwa-swatches i { display: block; width: 100%; height: 100%; border-radius: 50%; }
.hwa-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-bottom: 7px; }
.hwa-tabs button { flex: none; padding: 5px 10px !important; border-radius: 999px !important; border: 1px solid var(--hwc-line) !important; background: #fff !important; font-size: 12px !important; color: var(--hwc-muted) !important; min-height: 0 !important; }
.hwa-tabs [aria-selected=true] { background: var(--hwc-ink) !important; border-color: var(--hwc-ink) !important; color: #fff !important; }
.hwa-fonts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.hwa-fonts button { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 4px 6px !important; border: 1px solid var(--hwc-line) !important; border-radius: 11px !important; background: #fff !important; min-width: 0 !important; color: var(--hwc-ink) !important; }
.hwa-fonts span { font-size: 25px; line-height: 1.1; }
.hwa-fonts small { font-size: 10.5px; color: var(--hwc-muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hwa-mods { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.hwa-mod { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid var(--hwc-line); border-radius: 10px; background: #fff; cursor: pointer; min-width: 0; }
.hwa-mod.on { border-color: var(--hwc-teal); background: var(--hwc-teal-soft); }
.hwa-mod input[type=checkbox] { width: 16px !important; height: 16px; margin: 0; accent-color: var(--hwc-teal); flex: none; }
.hwa-mod span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hwa .hwa-mod { margin: 0 !important; }
.hwa .hwa-switch { margin: 3px 0 !important; }
.hwa-mod b { font-size: 12px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hwa-mod small { font-size: 11px; color: var(--hwc-muted); }
.hwa-mod input[type=number] { width: 46px !important; padding: 3px 4px !important; border: 1px solid var(--hwc-line) !important; border-radius: 6px !important; font-size: 12px; min-height: 0 !important; }
.hwa-monthly { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; }
.hwa-checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; font-size: 12.5px; }
.hwa-checklist li { padding: 3px 8px; border-radius: 7px; line-height: 1.35; margin: 0 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hwa-checklist .ok { color: var(--hwc-teal); background: var(--hwc-teal-soft); }
.hwa-checklist .open { color: var(--hwc-warn); background: #fff4dc; }
.hwa-hint { color: var(--hwc-muted); }

/* Live-Ansicht */
.hwa-preview { grid-area: preview; min-height: 0; padding: 14px; background: radial-gradient(circle at 70% 0%, #f1f5f2, #dfe7e3); display: flex; }
.hwa-browser { flex: 1; min-width: 0; display: flex; flex-direction: column; border-radius: 14px; background: #fff; box-shadow: 0 18px 50px #12303a24, 0 0 0 1px #12303a14; overflow: hidden; }
.hwa-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: #f3f5f4; border-bottom: 1px solid #e3e8e6; }
.hwa-bar > i { width: 10px; height: 10px; border-radius: 50%; background: #e46a5e; }
.hwa-bar > i:nth-child(2) { background: #e9b949; }
.hwa-bar > i:nth-child(3) { background: #5cb46a; }
#hwaUrl { flex: 1; min-width: 0; margin: 0 8px; padding: 4px 12px; border-radius: 999px; background: #fff; border: 1px solid #e3e8e6; font-size: 12px; color: var(--hwc-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#hwaUrl::before { content: "🔒 "; font-size: 10px; }
.hwa-device { display: flex; gap: 2px; padding: 2px; border-radius: 9px; background: #e6ebe9; }
.hwa-device button { padding: 4px 9px !important; border: 0 !important; border-radius: 7px !important; background: transparent !important; font-size: 12px !important; color: var(--hwc-muted) !important; min-height: 0 !important; box-shadow: none !important; }
.hwa-device [aria-pressed=true] { background: #fff !important; color: var(--hwc-ink) !important; box-shadow: 0 1px 3px #0002 !important; }
.hwa-pages { display: flex; gap: 2px; padding: 5px 8px; border-bottom: 1px solid #edf0ef; overflow-x: auto; scrollbar-width: thin; }
.hwa-pages button { flex: none; padding: 4px 10px !important; border: 0 !important; border-radius: 7px !important; background: transparent !important; font-size: 12px !important; color: var(--hwc-muted) !important; min-height: 0 !important; box-shadow: none !important; }
.hwa-pages [aria-pressed=true] { background: var(--hwc-teal-soft) !important; color: var(--hwc-teal) !important; font-weight: 700; }
.hwa-stage { flex: 1; min-height: 0; position: relative; overflow: hidden; background: #fff; }
.hwa-stage.tablet, .hwa-stage.mobile { background: #eef2f0; }
.hwa-screen { position: absolute; top: 0; left: 50%; transform-origin: top center; width: var(--hwa-w, 100%); height: var(--hwa-h, 100%); transform: translateX(-50%) scale(var(--hwa-s, 1)); }
.hwa-stage.mobile .hwa-screen, .hwa-stage.tablet .hwa-screen { top: 12px; }
.hwa-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; transition: opacity .18s ease; }
.hwa-screen iframe.loading { opacity: 0; pointer-events: none; }
.hwa-stage.mobile .hwa-screen iframe, .hwa-stage.tablet .hwa-screen iframe { border-radius: 22px; box-shadow: 0 0 0 9px var(--hwc-navy), 0 16px 40px #0f22303a; }

/* Fußleiste */
.hwa-foot { grid-area: foot; position: relative; display: flex; align-items: center; gap: 16px; padding: 10px 18px; background: #fff; border-top: 1px solid var(--hwc-line); }
.hwa-price { min-width: 0; }
.hwa-price-main { display: flex; align-items: baseline; gap: 10px; border: 0 !important; background: none !important; padding: 0 !important; text-align: left; color: var(--hwc-muted) !important; font-size: 12.5px !important; box-shadow: none !important; min-height: 0 !important; }
.hwa-price-main b { font-size: 22px; color: var(--hwc-teal); white-space: nowrap; }
.hwa-price-main b small { font-size: 12px; font-weight: 400; color: var(--hwc-muted); }
.hwa-price-main em { font-style: normal; color: var(--hwc-ink); white-space: nowrap; }
.hwa-price-main u { font-size: 12px; color: var(--hwc-teal); }
.hwa-price-details { position: absolute; left: 14px; bottom: calc(100% + 8px); width: min(380px, calc(100% - 28px)); padding: 12px 14px; background: #fff; border: 1px solid var(--hwc-line); border-radius: 14px; box-shadow: 0 18px 50px #12303a33; font-size: 13px; z-index: 5; }
.hwa-price-details div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.hwa-price-details .sum { border-top: 1px solid var(--hwc-line); margin-top: 4px; padding-top: 7px; font-weight: 700; color: var(--hwc-teal); }
#hwaMessage { flex: 1; margin: 0; text-align: right; color: #a3341f; font-size: 13px; }
.hwa-actions { display: flex; gap: 8px; align-items: center; }
.hwa-actions button { padding: 10px 18px !important; border-radius: 11px !important; border: 1px solid var(--hwc-line) !important; background: #fff !important; color: var(--hwc-ink) !important; font-weight: 600; min-height: 0 !important; }
.hwa-actions .primary { background: var(--hwc-teal) !important; border-color: var(--hwc-teal) !important; color: #fff !important; padding: 10px 22px !important; box-shadow: 0 6px 16px #1d5c5540 !important; }
.hwa-actions .hwa-link { border: 0 !important; background: none !important; color: var(--hwc-muted) !important; text-decoration: underline; font-weight: 400; padding: 10px 6px !important; }

/* Niedrige Fenster (z. B. Laptop 1366×768 mit Browserleisten ≈ 650 px): kompakte Stufe */
@media (max-height: 820px) and (min-width: 901px) {
  #workspaceDialog.hwa-dialog { height: calc(100dvh - 12px) !important; width: calc(100vw - 12px) !important; border-radius: 14px !important; }
  .hwa-head { padding: 6px 14px; gap: 16px; }
  .hwa-logo { width: 28px; height: 28px; font-size: 15px; }
  .hwa-steps button { flex-direction: row; gap: 6px; }
  .hwa-steps button span { width: 24px; height: 24px; font-size: 12px; }
  .hwa-steps .active span { box-shadow: 0 0 0 3px #ffffff26; }
  .hwa-steps::before, .hwa-steps::after { top: 11px; }
  .hwa-steps li { background: #1b3742; padding-right: 6px; }
  .hwa-head { background: #1b3742; }
  .hwa-close { width: 32px; height: 32px; }
  .hwa-form { padding: 10px 16px 12px; }
  .hwa-intro { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
  .hwa-intro h3 { font-size: 17px; margin: 0; }
  .hwa-intro p { margin: 0; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hwa-intro span { display: none; }
  .hwa-form h4 { margin: 8px 0 5px; }
  .hwa-grid { gap: 6px 10px; }
  .hwa-field span { margin-bottom: 2px; }
  .hwa-field input, .hwa-field textarea { padding: 6px 9px !important; }
  .hwa-field { margin-bottom: 6px; }
  .hwa-tools { margin-bottom: 8px; }
  .hwa-tools button { padding: 6px 8px !important; }
  .hwa-tools small { display: none; }
  .hwa-mods { gap: 5px; }
  .hwa-mod { padding: 5px 8px; }
  .hwa-checklist { gap: 3px 8px; }
  .hwa-preview { padding: 10px; }
  .hwa-foot { padding: 7px 14px; }
  .hwa-actions button { padding: 8px 16px !important; }
  .hwa-actions .primary { padding: 8px 20px !important; }
  .hwa-price-main b { font-size: 19px; }
  .hwa-chips { gap: 4px; }
  .hwa-chips button { padding: 4px 8px !important; font-size: 12px !important; }
  .hwa-profiles { gap: 5px; }
  .hwa-profile-desc { min-height: 0; margin-top: 4px; }
  .hwa-monthly { gap: 5px; }
  .hwa-checklist { display: flex; flex-wrap: wrap; gap: 4px; }
  .hwa-checklist li { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; }
}
@media (max-height: 640px) and (min-width: 901px) {
  .hwa-intro p { display: none; }
  .hwa-fonts span { font-size: 20px; }
  .hwa-fonts button { padding: 5px 4px 4px !important; }
  .hwa-wire { height: 22px; }
  .hwa-profile-desc { min-height: 0; }
  .hwa-field textarea { max-height: 70px; }
}

/* Schmale Fenster und Handy: Umschalter Eingaben | Live-Ansicht */
@media (max-width: 900px) {
  #workspaceDialog.hwa-dialog { width: 100vw !important; height: 100dvh !important; max-width: none !important; border-radius: 0 !important; margin: 0 !important; }
  .hwa { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto; grid-template-areas: "head" "switch" "main" "foot"; }
  .hwa-head { gap: 10px; padding: 10px 12px; flex-wrap: wrap; }
  .hwa-title { min-width: 0; }
  .hwa-title small { display: none; }
  .hwa-steps { order: 3; flex-basis: 100%; }
  .hwa-steps li:not(.active) em { display: none; }
  .hwa-switcher { grid-area: switch; display: flex; gap: 4px; padding: 6px 12px; background: #fff; border-bottom: 1px solid var(--hwc-line); }
  .hwa-switcher button { flex: 1; padding: 7px !important; border-radius: 9px !important; border: 1px solid var(--hwc-line) !important; background: #fff !important; font-size: 13px !important; color: var(--hwc-ink) !important; min-height: 0 !important; }
  .hwa-form, .hwa-preview { grid-area: main; border-right: 0; }
  .hwa[data-view=form] .hwa-preview, .hwa[data-view=preview] .hwa-form { display: none; }
  .hwa-preview { padding: 8px; }
  .hwa-tools { grid-template-columns: 1fr 1fr; }
  .hwa-profiles { grid-template-columns: 1fr; }
  .hwa-mods, .hwa-checklist { grid-template-columns: 1fr; }
  .hwa-fonts { grid-template-columns: repeat(3, 1fr); }
  .hwa-foot { flex-wrap: wrap; gap: 8px; padding: 8px 12px; }
  .hwa-price-main u, #hwaMessage:empty { display: none; }
  .hwa-price-main b { font-size: 18px; }
  .hwa-actions { margin-left: auto; }
  .hwa-actions button { padding: 9px 12px !important; }
  #hwaOffer { display: none; }
  #hwaUrl { display: none; }
}

