/* Ein-Seiten-Editor. Alles unter .aed, damit er auf jeder Seite (auch der Fair24-Startseite) ohne Nebenwirkungen steht. */
@font-face { font-family:'AgIcons'; src:url('/fonts/material-symbols-f24.woff2') format('woff2'); font-weight:100 700; font-display:block; }
.aed, .aed-consent { --ink:#16181d; --ink2:#4a4f5a; --mu:#5f6672; --line:#e5e4df; --red:#e63946; --red2:#c92d3a; --ok:#13773a; --bad:#b91c1c; --bg:#fafaf9; font-family:'Roboto',system-ui,-apple-system,'Segoe UI',sans-serif; font-size:16px; line-height:1.5; color:var(--ink); text-align:left; text-transform:none; letter-spacing:normal; }
.aed *, .aed *::before, .aed *::after { box-sizing:border-box; }
.aed h3, .aed h4 { margin:0 0 12px; font-family:inherit; font-size:1.1rem; font-weight:700; line-height:1.25; color:var(--ink); }
.aed h4.aed-sub { font-size:.95rem; margin:18px 0 10px; }
.aed p { margin:0; }
.aed .aed-ms, .aed-svcdlg .aed-ms { font-family:'AgIcons'; font-weight:400; font-style:normal; line-height:1; letter-spacing:normal; text-transform:none; white-space:nowrap; font-size:20px; display:inline-block; vertical-align:middle; -webkit-font-smoothing:antialiased; font-feature-settings:'liga'; }
.aed-grid { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:22px; align-items:start; }
.aed-card { background:#fff; border:1px solid var(--line); border-radius:16px; padding:20px; margin-bottom:16px; }
.aed-head { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:6px; }
.aed-head h3 { margin:0; }
.aed-two { display:grid; grid-template-columns:1fr 1fr; gap:0 14px; }
.aed-zipcity { grid-template-columns:110px 1fr; }
.aed-two > .aed-zipcity { grid-column:auto; }
.aed-field { margin-bottom:14px; min-width:0; }
.aed-field[hidden] { display:none; }
.aed-field label { display:block; font-weight:500; font-size:.9rem; margin:0 0 5px; color:var(--ink); }
.aed-in { width:100%; min-height:46px; padding:9px 12px; border:1.5px solid #d6d4cc; border-radius:12px; background:#fff; font:inherit; color:var(--ink); }
textarea.aed-in { min-height:70px; resize:vertical; }
.aed-in:focus { outline:none; border-color:var(--ink); box-shadow:0 0 0 3px rgba(22,24,29,.12); }
input.aed-color { padding:4px; cursor:pointer; }
.aed-help { color:var(--mu); font-size:.84rem; margin:4px 0 0; }
.aed-modehelp { margin:0 0 12px; }
.aed-chk { display:flex; gap:10px; align-items:flex-start; margin-top:6px; font-size:.92rem; cursor:pointer; }
.aed-chk[hidden] { display:none; }
.aed-chk input { width:20px; height:20px; min-width:20px; flex:0 0 20px; font-size:inherit; line-height:inherit; margin:2px 0 0; margin-top:calc((1lh - 20px) / 2); accent-color:var(--red); }
.aed-more { margin-top:4px; }
.aed-more > summary { cursor:pointer; color:var(--ink2); font-weight:500; font-size:.92rem; padding:8px 0; list-style:none; display:flex; align-items:center; gap:6px; }
.aed-more > summary::-webkit-details-marker { display:none; }
.aed-more > summary { align-items:flex-start; line-height:22px; }
.aed-more > summary::before { content:'add'; font-family:'AgIcons'; font-feature-settings:'liga'; display:grid; place-items:center; flex:none; width:22px; height:22px; min-width:22px; min-height:22px; margin-top:0; border-radius:50%; background:rgba(0,0,0,.089); font-weight:400; font-size:18px; line-height:1; }
.aed-more[open] > summary::before { content:'remove'; }
.aed-more > :not(summary) { margin-top:10px; }
.aed-seg { display:inline-flex; border:1.5px solid #d6d4cc; border-radius:999px; overflow:hidden; background:#fff; }
.aed-seg button { border:0; background:none; font:inherit; font-weight:600; padding:8px 18px; min-height:40px; cursor:pointer; color:var(--ink2); }
.aed-seg button[aria-pressed=true] { background:var(--ink); color:#fff; }
.aed-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:40px; padding:0 16px; border-radius:10px; border:1.5px solid var(--ink); background:#fff; color:var(--ink); font:inherit; font-weight:700; cursor:pointer; transition:background .15s, border-color .15s; }
.aed-btn:hover { background:rgba(0,0,0,.051); }
.aed-btn:disabled { opacity:.55; cursor:not-allowed; }
.aed-ghost { border-color:var(--line); }
.aed-primary { background:var(--red2); border-color:var(--red2); color:#fff; }
.aed-primary:hover { background:#a8232f; border-color:#a8232f; }
.aed-link { background:none; border:0; color:var(--red2); font:inherit; text-decoration:underline; cursor:pointer; padding:4px 0; }
.aed-addrow { display:flex; gap:8px; flex-wrap:wrap; margin:12px 0 4px; }

/* Positionen */
/* Position: Zeile 1 Titel und Aktionen, Zeile 2 Menge, Einheit, Preis, USt */
.aed-rline { display:grid; grid-template-columns:26px minmax(0,1fr) auto; gap:8px; align-items:center; }
.aed-rnums { display:grid; grid-template-columns:90px 110px minmax(0,1fr) 92px; gap:8px; margin:6px 0 0 34px; }
.aed-rnums label { display:block; margin:0; }
.aed-rnums label > span:not(.dl-wrap):not(.aed-sel) { display:block; font-size:.75rem; color:var(--mu); margin:0 0 2px 2px; }
.aed-row { padding:8px 0; border-top:1px solid var(--line); }
.aed-row[data-kind=heading] { background:rgba(0,0,0,.043); border-radius:10px; padding:8px; margin-top:6px; border-top:0; }
.aed-row[data-kind=optional] .aed-rtitle { border-style:dashed; }
.aed-num { color:var(--mu); font-size:.85rem; text-align:center; }
.aed-hd { font-weight:700; }
.aed-ract { display:flex; gap:2px; }
.aed-ract button { width:34px; height:40px; border:0; background:none; border-radius:8px; cursor:pointer; color:var(--ink2); }
.aed-ract button:hover:not(:disabled) { background:rgba(0,0,0,.089); }
.aed-ract button:disabled { opacity:.3; cursor:default; }
.aed-ract .aed-del:hover:not(:disabled) { color:var(--bad); background:#fde8e8; }
.aed-rmore { margin:8px 0 2px 38px; display:grid; gap:8px; }
.aed-rmore[hidden] { display:none; }
.aed-disc1 { display:flex; align-items:center; gap:8px; font-size:.88rem; color:var(--ink2); }
.aed-disc1 .aed-in { width:80px; min-height:38px; }
.aed-opt { margin:4px 0 0 38px; font-size:.8rem; color:var(--mu); }
.aed-disc { display:grid; grid-template-columns:200px 140px 1fr; gap:0 14px; margin-top:14px; padding-top:14px; border-top:1px solid var(--line); }
.aed-quick { display:flex; gap:6px; flex-wrap:wrap; margin-top:6px; }
.aed-quick button { border:1px solid var(--line); background:#fff; border-radius:999px; padding:4px 11px; font:inherit; font-size:.82rem; cursor:pointer; color:var(--ink2); }
.aed-quick button:hover { border-color:var(--ink); }

/* Vorschau */
.aed-side { position:sticky; top:12px; max-height:calc(100vh - 100px); overflow:auto; border-radius:16px; }
.aed-prevhead { display:flex; justify-content:space-between; align-items:center; padding:0 4px 8px; }
.aed-livedot { font-size:.75rem; font-weight:700; color:var(--ok); text-transform:uppercase; letter-spacing:.06em; }
.aed-livedot::before { content:''; display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--ok); margin-right:6px; }
.aed-prev .doc { border:1px solid var(--line); border-radius:16px; background:#fff; padding:20px; }

/* Aktionsleiste */
.aed-bar { position:sticky; bottom:0; z-index:5; display:flex; justify-content:space-between; align-items:center; gap:14px; flex-wrap:wrap; background:rgba(255,255,255,.96); backdrop-filter:blur(8px); border-top:1px solid var(--line); border-radius:0 0 16px 16px; padding:12px 16px; margin-top:6px; }
.aed-total { display:flex; flex-direction:column; line-height:1.15; }
.aed-tl { font-size:.78rem; color:#5b6270; }
.aed-tv { font-size:1.5rem; font-weight:800; letter-spacing:-.01em; }
.aed-actions { display:flex; gap:8px; flex-wrap:wrap; }
.aed-status { margin:4px 0 12px; }
.aed-status:empty { display:none; }
.aed-status.aed-err { background:#fde8e8; color:var(--bad); padding:12px 14px; border-radius:12px; font-weight:500; }
.aed-status.aed-ok { background:#e7f6ec; color:var(--ok); padding:12px 14px; border-radius:12px; font-weight:500; }
.aed-status p { margin:0 0 4px; font-weight:700; }

/* Hinweisfenster */
.aed-modal { position:fixed; inset:0; z-index:100; display:grid; place-items:center; background:rgba(0,0,0,.55); padding:16px; }
.aed-modal[hidden] { display:none; }
.aed-modalbox { background:#fff; border-radius:20px; padding:26px; max-width:440px; width:100%; }
.aed-modalbox h3 { font-size:1.35rem; }
.aed-mbody { color:var(--ink2); margin:0 0 18px; }

.aed-tabs { display:none; gap:8px; margin-bottom:12px; }
.aed-tabs button { flex:1; min-height:44px; border-radius:12px; border:1.5px solid var(--line); background:#fff; font:inherit; font-weight:700; cursor:pointer; }
.aed-tabs button[aria-selected=true] { background:var(--ink); color:#fff; border-color:var(--ink); }

@media (max-width: 960px) {
    .aed-grid { grid-template-columns:1fr; }
    .aed-tabs { display:flex; }
    .aed-grid[data-tab=edit] .aed-side { display:none; }
    .aed-grid[data-tab=prev] .aed-form { display:none; }
    .aed-side { position:static; max-height:none; }
}
@media (max-width: 640px) {
    .aed-two, .aed-disc { grid-template-columns:1fr; }
    .aed-zipcity { grid-template-columns:100px 1fr; }
    .aed-rnums { grid-template-columns:1fr 1fr; margin-left:0; }
    .aed-rline { grid-template-columns:24px minmax(0,1fr); }
    .aed-ract { grid-column:1 / 3; justify-content:flex-end; }
    .aed-ract button { width:40px; }
    .aed-rmore, .aed-opt { margin-left:0; }
    .aed-card { padding:16px; }
    .aed-bar { padding:10px 12px; }
    .aed-bt { display:none; }
    .aed-btn.aed-primary { flex:1; }
}

/* Vorlagen-Auswahl und Farbfelder */
.aed-lblrow { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:5px; }
.aed-lblrow label { margin:0; }
.aed .aed-tpl { width:auto; max-width:60%; min-height:34px; padding:4px 10px; font-size:.82rem; border-radius:999px; color:var(--ink2); background:rgba(0,0,0,.043); border-color:var(--line); cursor:pointer; }
.aed-swatches { display:flex; gap:8px; margin-top:8px; flex-wrap:wrap; }
.aed-sw { width:28px; height:28px; border-radius:50%; border:2px solid #fff; box-shadow:0 0 0 1.5px var(--line); cursor:pointer; padding:0; }
.aed-sw:hover { box-shadow:0 0 0 2px var(--ink); }
.aed-sw-e63946 { background:#e63946; }
.aed-sw-1a4fa0 { background:#1a4fa0; }
.aed-sw-15803d { background:#15803d; }
.aed-sw-c2410c { background:#c2410c; }
.aed-sw-6d28d9 { background:#6d28d9; }
.aed-sw-16181d { background:#16181d; }

/* Auswahlfelder: eigener Pfeil (Material Symbols), sauberer Abstand zum Rand */
.aed-sel { position:relative; display:block; }
.aed-sel > select { -webkit-appearance:none; appearance:none; padding-right:44px; text-overflow:ellipsis; cursor:pointer; }
.aed-sel::after { content:'expand_more'; font-family:'AgIcons'; font-feature-settings:'liga'; -webkit-font-feature-settings:'liga'; font-size:22px; line-height:1; position:absolute; right:14px; top:50%; transform:translateY(-50%); color:var(--ink2); pointer-events:none; }
.aed .aed-lblrow .aed-sel { max-width:72%; min-width:0; flex:0 1 auto; }
.aed .aed-lblrow label { flex:none; }
.aed .aed-lblrow .aed-sel > select.aed-tpl { max-width:none; width:100%; padding-right:34px; }
.aed .aed-lblrow .aed-sel::after { right:10px; font-size:18px; }
.aed-rvatw, .aed-row .aed-sel { min-width:92px; }
.aed-status.aed-err div { display:flex; gap:6px; align-items:flex-start; margin-top:2px; }
.aed-status.aed-err div::before { content:'chevron_right'; font-family:'AgIcons'; font-feature-settings:'liga'; font-size:18px; line-height:1.3; flex:none; }

/* Assistent (Standard) und Ein-Seiten-Ansicht */
.aed-viewbar { display:flex; justify-content:flex-start; margin-bottom:12px; }
.aed-viewbar .aed-seg button { display:inline-flex; align-items:center; gap:6px; }
.aed-steps, .aed-wnav, .aed-wintro, .aed-wsum { display:none; }
.aed[data-view=wizard] .aed-steps { display:block; margin-bottom:16px; }
.aed-steps ol { list-style:none; margin:0; padding:0; display:flex; gap:6px; }
.aed-steps li { flex:1 1 0; min-width:0; }
.aed-steps button { width:100%; display:flex; align-items:center; gap:8px; padding:8px 10px; min-height:48px; border:1.5px solid var(--line); border-radius:14px; background:#fff; font:inherit; font-weight:600; font-size:.88rem; color:var(--mu); cursor:pointer; text-align:left; }
.aed-sn { flex:none; width:28px; height:28px; border-radius:50%; background:rgba(0,0,0,.089); color:var(--ink2); display:grid; place-items:center; font-weight:700; font-size:.85rem; }
.aed .aed-sn-c { display:none; font-size:18px; }
.aed-steps button.is-cur { border-color:var(--ink); color:var(--ink); }
.aed-steps button.is-cur .aed-sn { background:var(--ink); color:#fff; }
.aed-steps button.is-done .aed-sn { background:var(--ok); color:#fff; }
.aed-steps button.is-done .aed-sn-n { display:none; }
.aed .aed-steps button.is-done .aed-sn-c { display:inline-block; }
.aed-sl { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.aed[data-view=wizard] .aed-tabs { display:none; }
.aed[data-view=wizard] .aed-form > .aed-card { display:none; }
.aed[data-view=wizard][data-wstep="1"] .aed-form > [data-wstep="1"],
.aed[data-view=wizard][data-wstep="2"] .aed-form > [data-wstep="2"],
.aed[data-view=wizard][data-wstep="3"] .aed-form > [data-wstep="3"],
.aed[data-view=wizard][data-wstep="4"] .aed-form > [data-wstep="4"],
.aed[data-view=wizard][data-wstep="5"] .aed-form > [data-wstep="5"] { display:block; }
.aed[data-view=wizard] .aed-wintro { display:block; color:var(--ink2); margin:-4px 0 14px; }
.aed[data-view=wizard] .aed-wnav { display:flex; gap:8px; order:2; }
.aed[data-view=wizard] .aed-actions { order:3; }
.aed[data-view=wizard]:not([data-wstep="5"]) .aed-actions { display:none; }
.aed[data-view=wizard][data-wstep="5"] [data-wiz=next] { display:none; }
.aed[data-view=wizard][data-wstep="1"] [data-wiz=back] { visibility:hidden; }
.aed .aed-wt { display:inline; }
.aed-wlist { list-style:none; margin:0; padding:0; display:grid; gap:0; }
.aed-wlist li { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 0; border-top:1px solid var(--line); overflow-wrap:anywhere; }
.aed-wlist li:first-child { border-top:0; }
.aed-link { flex:none; border:0; background:none; font:inherit; font-weight:600; color:var(--ink); text-decoration:underline; cursor:pointer; padding:8px 4px; min-height:40px; }
/* Vorschau im Assistenten: Schritte 1 bis 4 rechts daneben (Desktop), Schritt 5 mit Vorschau */
@media (max-width: 960px) {
    .aed[data-view=wizard] .aed-grid[data-tab] .aed-side { display:none; }
    .aed[data-view=wizard][data-wstep="5"] .aed-grid[data-tab] .aed-side { display:block; }
    .aed[data-view=wizard] .aed-grid[data-tab] .aed-form { display:block; }
}
@media (max-width: 640px) {
    .aed-steps ol { gap:4px; }
    .aed-steps button { padding:6px; justify-content:center; }
    .aed-steps button .aed-sl { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; } /* nur für Screenreader */
    .aed-steps button.is-cur { flex:2; }
    .aed-steps li:has(.is-cur) { flex:3 1 0; }
    .aed-steps button.is-cur .aed-sl { position:static; width:auto; height:auto; margin:0; overflow:visible; clip:auto; display:block; }
    .aed-viewbar { justify-content:stretch; }
    .aed-viewbar .aed-seg { width:100%; }
    .aed-viewbar .aed-seg button { flex:1; justify-content:center; padding:8px 8px; font-size:.85rem; }
    .aed[data-view=wizard] .aed-bar { flex-wrap:wrap; }
    .aed[data-view=wizard] .aed-total { flex:1 0 100%; flex-direction:row; justify-content:space-between; align-items:baseline; }
    .aed[data-view=wizard] .aed-wnav { flex:1; }
    .aed[data-view=wizard] .aed-wnav .aed-btn { flex:1; justify-content:center; }
    .aed[data-view=wizard][data-wstep="5"] .aed-wnav { flex:0 0 auto; }
    .aed[data-view=wizard][data-wstep="5"] .aed-actions { flex:1; }
}

/* Upload-Knopf im Design (statt des Browser-Standards) */
.aed-file { position:relative; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.aed-fileinput { position:absolute; width:1px; height:1px; opacity:0; overflow:hidden; pointer-events:none; }
.aed-filebtn { cursor:pointer; display:inline-flex; align-items:center; gap:8px; }
.aed-fileinput:focus-visible + .aed-filebtn { outline:3px solid rgba(22,24,29,.25); outline-offset:2px; }
.aed-filebtn:hover { border-color:var(--ink2); }
.aed-prevhead { gap:10px; flex-wrap:wrap; }
.aed-prevseg button { min-height:34px; padding:4px 14px; font-size:.85rem; display:inline-flex; align-items:center; gap:4px; }
.aed-sendopt { margin:4px 0 12px; }
.aed[data-view=wizard]:not([data-wstep="5"]) .aed-sendopt { display:none; }
@media (max-width: 960px) { .aed-prevseg { display:none; } .aed-prev[hidden] { display:block !important; } }

/* Feinschliff: Upload-Knopf, Farbfeld, Hinweisfenster, schmale Bildschirme */
.aed .aed-field .aed-filebtn { display:inline-flex; margin:0; font-size:.95rem; }
.aed input.aed-color { width:100%; max-width:160px; height:46px; min-height:46px; padding:4px; border-radius:12px; }
.aed input.aed-color::-webkit-color-swatch-wrapper { padding:0; }
.aed input.aed-color::-webkit-color-swatch { border:0; border-radius:8px; }
.aed input.aed-color::-moz-color-swatch { border:0; border-radius:8px; }
.aed-btn { white-space:nowrap; }
.aed-modal .aed-actions { display:flex; flex-direction:column; align-items:stretch; gap:10px; }
.aed-modal .aed-actions .aed-btn { width:100%; }
.aed-modal .aed-actions [hidden] { display:none; }
.aed-modalbox h3 { margin:0 0 10px; }
.aed-modalbox p { margin:0 0 18px; }
.aed-modal .aed-actions { margin-top:4px; }
.aed-mbody { line-height:1.5; }
.aed-prev .doc { padding:clamp(12px,3.5vw,20px); }
@media (max-width: 640px) {
    .aed-card { padding:14px 12px; border-radius:14px; }
    .aed[data-view=wizard][data-wstep="5"] .aed-wnav .aed-wt { display:none; }
    .aed[data-view=wizard][data-wstep="5"] .aed-wnav .aed-btn { min-width:48px; padding:0 14px; }
    .aed-modalbox { padding:20px 18px; border-radius:18px; }
    .aed-prevhead { padding:0 2px 6px; }
}

/* Kompakte Knöpfe (Form und Größe wie bei ElevenLabs) */
.aed-btn { min-height:40px; padding:0 16px; gap:6px; border-radius:12px; border:1px solid #dcdad3; font-size:.95rem; font-weight:500; }
.aed-btn:hover { background:rgba(0,0,0,.043); border-color:#c9c7bf; }
.aed-btn .aed-ms { font-size:18px; }
.aed-ghost { border-color:#dcdad3; }
.aed-primary { border-color:var(--red); }
.aed-primary:hover { background:#a8232f; border-color:#a8232f; }
.aed-seg { border-width:1px; }
.aed-seg button { min-height:34px; padding:4px 14px; font-size:.9rem; font-weight:500; }
.aed-viewbar .aed-seg button { gap:6px; }
.aed-prevseg button { min-height:30px; padding:2px 12px; font-size:.85rem; }
.aed-tabs button { min-height:40px; border-width:1px; font-weight:500; }
.aed-steps button { min-height:40px; padding:5px 10px; border-width:1px; border-radius:12px; font-size:.86rem; font-weight:500; }
.aed-sn { width:24px; height:24px; font-size:.8rem; }
.aed .aed-tpl { min-height:30px; padding:2px 10px; font-size:.8rem; }
.aed-filebtn { min-height:40px; }
@media (max-width: 640px) {
    .aed-btn, .btn { min-height:40px; }
    .aed[data-view=wizard][data-wstep="5"] .aed-wnav .aed-btn { min-width:44px; padding:0 12px; }
    .aed-steps button { min-height:38px; padding:4px; }
}

/* Aktionsleiste: eckig und deckend, damit an den unteren Ecken nichts durchscheint */
.aed-bar { border-radius:0; background:#fff; backdrop-filter:none; }

/* Schrittleiste: komplett runde Knöpfe, der aktive ist eine volle Pille */
.aed-steps button, .aed-steps button.is-cur { border-radius:999px; }
.aed-steps button { padding-left:7px; padding-right:14px; }
@media (max-width: 640px) {
    .aed-steps ol { gap:8px; }
    .aed-steps li { flex:0 0 40px; }
    .aed-steps li:has(.is-cur) { flex:1 1 0; }
    .aed-steps button { width:100%; height:40px; min-height:40px; padding:0; justify-content:center; }
    .aed-steps button.is-cur { padding:0 14px 0 6px; justify-content:flex-start; }
}

/* E-Mail-Vorschau im Seitenbereich */
.aed-mailwrap[hidden] { display:none; }
.aed-mailframe { width:100%; height:min(78vh, 900px); border:1px solid var(--line); border-radius:16px; background:#fff; display:block; }
@media (max-width: 960px) {
    .aed-prevseg { display:inline-flex; }
        .aed-prev[hidden] { display:none !important; }
    .aed-mailframe { height:70vh; }
}

/* Vorschau als Seite: grauer Tisch, weißes Blatt mit Schatten, A4-Breite verkleinert auf die Feldbreite */
.aed-prev .aed-sheetwrap { background:#fff; border:1px solid var(--line); border-radius:16px; padding:12px; }
.aed-prev .aed-sheet { position:relative; margin:0 auto; background:#fff; box-shadow:0 8px 26px rgba(17,24,39,.16), 0 1px 3px rgba(17,24,39,.08); border-radius:3px; overflow:hidden;  }
.aed-prev .aed-sheetin { width:794px; transform-origin:0 0; pointer-events:none; }
.aed-prev .aed-sheetin .doc, .aed-zoombox .doc { border:0; border-radius:0; box-shadow:none; padding:56px 60px 48px; min-height:1123px; font-size:15px; background:#fff; }
.aed-iconbtn { width:34px; height:34px; border:1px solid #dcdad3; border-radius:50%; background:#fff; color:var(--ink); display:inline-flex; align-items:center; justify-content:center; cursor:pointer; padding:0; }
.aed-iconbtn:hover { background:rgba(0,0,0,.05); }
.aed-iconbtn .aed-ms { font-size:20px; }
/* Lupe nur am Desktop (großer Bildschirm mit Maus); am Handy/Tablet genügt der Fingerzoom */
.aed-zoombtn { display:none; }
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .aed-zoombtn { display:inline-flex; }
  .aed-prev .aed-sheet { cursor:zoom-in; }
}
.aed-zoom { position:fixed; inset:0; z-index:200; background:rgba(15,16,18,.72); overflow:auto; padding:24px 12px 48px; }
.aed-zoombox { position:relative; margin:0 auto; background:#fff; box-shadow:0 20px 60px rgba(0,0,0,.45); border-radius:3px; overflow:hidden; }
.aed-zoombox .aed-sheetin { width:794px; transform-origin:0 0; }
.aed-zoomx { position:fixed; top:16px; right:16px; width:44px; height:44px; border-radius:50%; border:0; background:#fff; color:#16181d; cursor:pointer; display:flex; align-items:center; justify-content:center; box-shadow:0 6px 18px rgba(0,0,0,.35); }
.aed-zoomx .aed-ms { font-size:24px; }
.aed-prevhead { align-items:center; }
@media (max-width: 640px) { .aed-prev .aed-sheetwrap { padding:8px; border-radius:14px; } }

/* Skonto und Klauseln */
.aed-skrow { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.aed-unitw { position:relative; display:block; width:128px; }
.aed-unitw .aed-in { padding-right:52px; }
.aed-unit { position:absolute; right:14px; top:50%; transform:translateY(-50%); color:var(--mu); font-size:.9rem; pointer-events:none; }
.aed-skx { color:var(--ink2); font-size:.92rem; }
.aed-skhint { margin-top:6px; }
.aed-clist:empty { display:none; }
.aed-clause { border:1px solid var(--line); border-radius:14px; padding:10px; margin-bottom:10px; background:#fff; }
.aed-cline { display:flex; gap:8px; align-items:center; margin-bottom:8px; }
.aed-cline .aed-in { flex:1; min-width:0; }
.aed-cact { display:inline-flex; flex:none; }
.aed-cact button { width:34px; height:40px; border:0; background:none; border-radius:8px; cursor:pointer; color:var(--ink2); }
.aed-cact button:hover:not(:disabled) { background:rgba(0,0,0,.089); }
.aed-cact button:disabled { opacity:.3; cursor:default; }
@media (max-width: 640px) { .aed-unitw { width:112px; } .aed-skx { flex:1 0 100%; } }

/* Einwilligung: Eingaben im Browser merken */
.aed-consent { position:fixed; left:16px; right:16px; bottom:16px; margin:0 auto; max-width:560px; z-index:9000; display:flex; gap:14px; align-items:flex-end; justify-content:space-between; flex-wrap:wrap; background:#fff; border:1px solid var(--line); border-radius:18px; padding:16px 18px; box-shadow:0 18px 48px rgba(17,24,39,.22), 0 2px 8px rgba(17,24,39,.08); animation:aedConsentIn .32s ease-out; }
@keyframes aedConsentIn { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:none; } }
@media (min-width: 641px) { .aed-consent { left:auto; right:16px; margin:0; max-width:440px; } }
@media (prefers-reduced-motion: reduce) { .aed-consent { animation:none; } }
.aed-consent[hidden], .aed-consent [hidden] { display:none !important; }
.aed-consent-txt { flex:1 1 320px; min-width:0; }
.aed-consent-txt p { margin:4px 0 0; font-size:.88rem; line-height:1.5; color:var(--ink2); }
.aed-consent-txt a { color:var(--ink); font-weight:600; }
.aed-consent .aed-consent-note { flex:1 1 100%; margin:0; font-size:.88rem; color:var(--ink2); }
.aed-consent-act { display:flex; gap:8px; flex-wrap:wrap; }
@media (max-width: 640px) { .aed-consent-act { width:100%; } .aed-consent-act .aed-btn { flex:1; } .aed-consent { max-height:55vh; overflow:auto; } }

/* Lade-Anzeige fuer Knoepfe, die etwas absenden: Text ausgeblendet, kreisender Ring in der Mitte */
.is-busy { position:relative; color:transparent !important; pointer-events:none; cursor:progress; }
.is-busy::after { content:""; box-sizing:border-box; position:absolute; left:50%; top:50%; width:20px; height:20px; margin:-10px 0 0 -10px; border-radius:50%; border:2.5px solid rgba(255,255,255,.95); border-right-color:transparent; animation:agSpin .7s linear infinite; }
.is-busy.alt::after, .is-busy.aed-ghost::after, .is-busy.aed-btn:not(.aed-primary)::after, .is-busy.f24-btn--ghost::after, .is-busy.f24-btn--dark::after { border-color:rgba(22,24,29,.85); border-right-color:transparent; }
@keyframes agSpin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .is-busy::after { animation-duration:2.4s; } }
/* Ist ein Menü oder Popup des Seitenrahmens offen, tritt der Speicher-Hinweis zurück: immer nur ein Dialog zur Zeit */
body:has(.f24-backdrop) .aed-consent { visibility:hidden; }
/* Schritt „Für wen ist das Angebot?“: Straße über die ganze Breite (Vorschläge mit PLZ und Ort) */
.aed-two > .aed-full { grid-column:1 / -1; }

/* Abschluss nach dem Senden ohne Konto: ersetzt Schritte, Formular und Leiste */
.aed[data-done] > :not(.aed-done) { display:none !important; }
.aed-done { max-width:600px; margin:16px auto 8px; padding:0; background:transparent; outline:none; animation:aedDoneIn .45s cubic-bezier(.2,1,.3,1) both; }
@keyframes aedDoneIn { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }
.aed-done-head { text-align:center; }
.aed-done-ic { display:inline-flex; align-items:center; justify-content:center; width:72px; height:72px; border-radius:50%; background:#e7f6ec; color:#13773a; animation:aedDonePop .55s .1s cubic-bezier(.2,1.6,.4,1) both; }
.aed-done-ic .aed-ms { font-size:38px; }
@keyframes aedDonePop { from { opacity:0; transform:scale(.4); } to { opacity:1; transform:none; } }
.aed-done-head h2 { margin:16px 0 8px; font-size:1.6rem; line-height:1.2; letter-spacing:-.3px; color:var(--ink); }
.aed-done-head p { margin:0 auto; max-width:46ch; color:var(--ink2); line-height:1.55; }
.aed-done-steps { list-style:none; margin:24px 0 0; padding:0; display:grid; gap:10px; }
.aed-done-steps li { display:flex; align-items:flex-start; gap:12px; padding:12px 14px; border-radius:14px; background:rgba(0,0,0,.039); color:var(--ink2); line-height:24px; }
.aed-done-steps li .aed-ms { flex:none; font-size:22px; line-height:24px; color:#9ca3af; }
.aed-done-steps li small { display:block; color:var(--mu); font-size:.85rem; line-height:1.4; }
.aed-done-steps li.is-done { color:var(--ink); }
.aed-done-steps li.is-done .aed-ms { color:#13773a; }
.aed-done-steps li.is-next { background:#fff; box-shadow:inset 0 0 0 1.5px var(--ink); color:var(--ink); font-weight:600; }
.aed-done-steps li.is-next .aed-ms { color:var(--ink); }
.aed-done-sum { display:grid; grid-template-columns:2fr 1fr 1fr; gap:12px; margin:20px 0 0; }
.aed-done-sum > div { padding:12px 14px; border:1px solid var(--line); border-radius:14px; min-width:0; }
.aed-done-sum dt { font-size:.78rem; text-transform:uppercase; letter-spacing:.06em; color:var(--mu); }
.aed-done-sum dd { margin:4px 0 0; color:var(--ink); overflow-wrap:anywhere; }
.aed-done-sum dd small { color:var(--ink2); }
.aed .aed-done-hint { display:flex; gap:8px; align-items:flex-start; margin:22px 0 0; font-size:.9rem; color:var(--ink2); line-height:1.5; }
.aed-done-hint .aed-ms { flex:none; font-size:20px; line-height:1.3; color:var(--mu); }
.aed-done-pro { display:flex; gap:14px; align-items:flex-start; margin:24px 0 0; padding:18px; border-radius:18px; background:linear-gradient(135deg, #fff1ec 0%, #f6f0ff 60%, #eef2ff 100%); }
.aed-done-proic { flex:none; display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:12px; background:#fff; color:#c62d3a; box-shadow:0 2px 8px rgba(22,24,29,.08); }
.aed-done-pro b { color:var(--ink); }
.aed-done-pro p { margin:4px 0 8px; color:var(--ink2); font-size:.92rem; line-height:1.5; }
.aed-done-prol { list-style:none; margin:10px 0 0; padding:0; display:grid; gap:6px; }
.aed-done-prol li { display:flex; gap:8px; align-items:flex-start; color:var(--ink2); font-size:.92rem; line-height:1.45; }
.aed-done-prol .aed-ms { flex:none; font-size:18px; line-height:1.3; color:#13773a; }
.aed-done-pro .aed-done-pronote { margin:10px 0 12px; font-size:.85rem; color:var(--mu); }
.aed-done-pro a.aed-done-prolink, .aed-done-pro a.aed-done-prolink:hover { text-decoration:none; background:#fff; }
.aed-done-prolink .aed-ms { font-size:18px; margin-left:2px; }
.aed-done-act { display:flex; justify-content:center; margin-top:24px; }
@media (max-width: 640px) {
    .aed-done { margin-top:4px; }
    .aed-done-head h2 { font-size:1.35rem; }
    .aed-done-sum { grid-template-columns:1fr 1fr; }
    .aed-done-sum > div:first-child { grid-column:1 / -1; }
    .aed-done-act .aed-btn { width:100%; }
}
@media (prefers-reduced-motion: reduce) { .aed-done, .aed-done-ic { animation:none; } }

/* Umschalter Ansicht: wie der Schalter Monatlich/Jährlich auf der Preisseite */
.aed-viewbar .aed-seg { display:inline-flex; gap:0; padding:4px; border:0; border-radius:999px; background:#eef0f3; overflow:visible; }
.aed-viewbar .aed-seg button { display:flex; align-items:center; justify-content:center; height:40px; min-height:40px; padding:0 20px; border:0; border-radius:999px; background:transparent; color:#525252; font-weight:700; font-size:15px; line-height:1; }
.aed-viewbar .aed-seg button[aria-pressed=true] { background:#16181d; color:#fff; }
.aed-viewbar .aed-seg button:focus-visible { outline:3px solid #b7c7ff; outline-offset:2px; }
@media (max-width: 960px) {
    .aed-viewbar .aed-seg { width:100%; }
    .aed-viewbar .aed-seg button { flex:1; padding:0 10px; font-size:14px; }
}
/* Handy: ein Knopf öffnet die Vorschau im Vollbild (kein Umschalten zwischen Bearbeiten und Vorschau mehr) */
.aed-tabs .aed-fullprev { flex:1; display:flex; align-items:center; justify-content:center; gap:8px; min-height:44px; border-radius:12px; border:1px solid var(--line); background:#fff; color:var(--ink); font:inherit; font-weight:600; cursor:pointer; }
.aed-tabs .aed-fullprev:hover { border-color:#c9c7bf; background:rgba(0,0,0,.043); }
.aed-tabs .aed-fullprev .aed-ms { font-size:20px; }
/* Vorschau im Vollbild (Handy, „Alles auf einer Seite“) */
.aed-fullx { display:none; }
html.aed-noscroll, html.aed-noscroll body { overflow:hidden; }
.aed.is-fullprev .aed-side { display:block !important; position:fixed; inset:0; z-index:150; margin:0; padding:12px 14px 24px; background:#fff; overflow:auto; -webkit-overflow-scrolling:touch; animation:aedFullIn .25s ease both; }
.aed.is-fullprev .aed-prevhead { position:sticky; top:-12px; z-index:2; margin:-12px -14px 12px; padding:12px 14px; background:#fff; border-bottom:1px solid var(--line); }
.aed.is-fullprev .aed-prevhead { flex-wrap:nowrap; }
.aed.is-fullprev .aed-livedot { display:none; }
.aed.is-fullprev .aed-fullx { display:inline-flex; flex:none; align-items:center; justify-content:center; width:40px; height:40px; margin-left:auto; border:0; border-radius:50%; background:rgba(0,0,0,.06); color:var(--ink); cursor:pointer; }
.aed.is-fullprev .aed-fullx .aed-ms { font-size:24px; }
@keyframes aedFullIn { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce) { .aed.is-fullprev .aed-side { animation:none; } }
/* Vorschau = PDF als Bild (Seiten untereinander), Textebene nur für Screenreader und Tests */
.pvimgs { position:relative; background:#fff; }
.pvimgs .pvpage { display:block; width:794px; max-width:none; height:auto; }
.pvimgs .pvpage + .pvpage { border-top:12px solid #eceae3; }
.pvimgs .pvtext { position:absolute; left:0; top:0; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:pre; }
/* Vollbild-Vorschau offen: Speicher-Hinweis tritt zurück */
html.aed-noscroll .aed-consent { visibility:hidden; }
/* Fehlende oder fehlerhafte Felder beim Weiter/Senden */
.aed .is-invalid { border-color:#c92d3a !important; background:#fff7f7; box-shadow:0 0 0 3px rgba(201,45,58,.14); }
.aed .is-invalid:focus { outline:none; box-shadow:0 0 0 3px rgba(201,45,58,.28); }
/* Vollbild-Vorschau: E-Mail-Rahmen fuellt den Platz bis knapp ueber den unteren Rand */
.aed.is-fullprev .aed-side { padding-bottom:12px; }
.aed.is-fullprev .aed-mailframe { height:calc(100vh - 89px); height:calc(100dvh - 89px); min-height:360px; }
/* Pro: Leistung einfuegen */
.aed-svcdlg .agm-box { display:flex; flex-direction:column; max-height:calc(100dvh - 48px); }
.aed-svcsearch { position:relative; display:block; margin:6px 0 10px; }
.aed-svcsearch .aed-ms { position:absolute; left:12px; top:50%; transform:translateY(-50%); color:#5f6672; font-size:20px; pointer-events:none; }
.aed-svcsearch input { width:100%; box-sizing:border-box; padding-left:40px; }
.aed-svclist { list-style:none; margin:0; padding:0; overflow:auto; min-height:60px; max-height:50vh; border:1px solid #eeede8; border-radius:12px; }
.aed-svclist li + li { border-top:1px solid #eeede8; }
.aed-svcitem { display:grid; grid-template-columns:minmax(0, 1fr) auto 28px; gap:10px; align-items:center; width:100%; padding:10px 12px; border:0; background:#fff; text-align:left; font:inherit; color:#16181d; cursor:pointer; }
.aed-svcitem:hover, .aed-svcitem:focus-visible { background:rgba(0,0,0,.04); outline:none; }
.aed-svctx { display:flex; flex-direction:column; min-width:0; }
.aed-svctx b { font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.aed-svctx small { color:#5f6672; font-size:.82rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.aed-svcp { font-size:.85rem; color:#4a4f5a; white-space:nowrap; font-variant-numeric:tabular-nums; }
.aed-svcadd { font-size:24px; color:#16181d; }
.aed-svcitem.is-added .aed-svcadd { color:#13773a; }
@media (max-width: 560px) { .aed-svcitem { grid-template-columns:minmax(0, 1fr) 28px; } .aed-svcp { grid-column:1; grid-row:2; } .aed-svcadd { grid-row:1 / span 2; grid-column:2; } }
/* Zustimmung beim Senden ohne Konto */
.aed-termsdlg .agm-box { max-width:520px; }
.aed-termschk { margin-top:14px; line-height:1.5; }
.aed-termschk a { color:inherit; font-weight:600; text-decoration:underline; }
.aed-termserr { color:#b91c1c; margin:8px 0 0; }
.aed-termsdlg .agm-act { flex-wrap:wrap; }
/* Neue Version nach Rückfrage */
.aed .aed-rev { margin:0 0 16px; padding:16px 18px; border:1px solid #c7d7fb; border-radius:14px; background:#eef3fe; }
.aed .aed-rev-head { display:flex; gap:12px; align-items:flex-start; }
.aed .aed-rev-head > .aed-ms { font-size:26px; color:#1d4ed8; }
.aed .aed-rev h2 { margin:0; font-size:1.05rem; font-weight:700; color:#16181d; }
.aed .aed-rev-head p { margin:4px 0 0; font-size:.92rem; color:#374151; line-height:1.5; }
.aed .aed-rev-q { margin:12px 0 0; padding:10px 14px; border-left:3px solid #1d4ed8; background:#fff; border-radius:8px; font-size:.95rem; line-height:1.5; color:#16181d; }
.aed .aed-rev-qh { display:flex; align-items:center; gap:6px; margin-bottom:4px; font-size:.8rem; font-weight:600; color:#4b5563; }
.aed .aed-rev-qh .aed-ms { font-size:16px; }
.aed .aed-rev .aed-field { margin-top:12px; }
.aed .aed-rev textarea { background:#fff; }
/* Logogröße */
.aed .aed-logosize .aed-lbl { display:block; font-weight:600; font-size:.9rem; margin-bottom:6px; }
.aed .aed-range { display:block; margin:4px 0 8px; font-size:.88rem; }
.aed .aed-range > span { display:flex; justify-content:space-between; color:#4a4f5a; }
.aed .aed-range output { font-variant-numeric:tabular-nums; color:#16181d; font-weight:600; }
.aed .aed-range input[type=range] { width:100%; accent-color:#16181d; min-height:28px; }
/* Vorlagen-Fenster (Pro) */
.aed-tpldlg .agm-box { max-width:520px; }
.aed-svcdlg .aed-svcsearch[hidden], .aed-svcdlg .aed-svclist[hidden], .aed-tpldlg .agm-text[hidden] { display:none; }
/* Vollbild-Vorschau am Handy: Angebot/E-Mail mittig */
@media (max-width: 760px) {
    .aed.is-fullprev .aed-prevhead { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:8px; }
    .aed.is-fullprev .aed-prevhead > b { justify-self:start; }
    .aed.is-fullprev .aed-prevseg { justify-self:center; }
    .aed.is-fullprev .aed-fullx { justify-self:end; margin-left:0; }
}
@media (max-width: 380px) { .aed.is-fullprev .aed-prevhead > b { visibility:hidden; } }

/* Absender aus dem Profil: Zusammenfassung mit „Ändern“ im Editor */
.aed-form, .aed-card { min-width:0; }
.aed-sendersum { box-sizing:border-box; max-width:100%; display:flex; align-items:center; gap:12px; padding:12px 14px; border:1px solid var(--line, #e5e4df); border-radius:14px; background:rgba(0,0,0,.022); }
.aed-sendersum + .aed-help { margin-top:12px; }   /* Text unter einer Box braucht Luft (mind. 12 px), nicht nur den knappen Feldhinweis-Abstand */
.aed .aed-ssico, .aed-ssico { flex-shrink:0; width:40px; height:40px; border-radius:12px; background:#fff; border:1px solid var(--line, #e5e4df); display:flex; align-items:center; justify-content:center; font-size:22px; color:#4a4f5a; }
.aed-sstx { flex:1; min-width:0; display:flex; flex-direction:column; line-height:1.35; }
.aed-sstx b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.aed-sstx span { font-size:.875rem; color:#4a4f5a; overflow-wrap:anywhere; }
.aed-sendersum [data-sender-edit] { flex-shrink:0; }
.aed-senderdlg .agm-box { max-width:620px; }
.aed-err { margin:8px 0 0; color:#b91c1c; font-size:.9rem; }
@media (max-width: 420px) { .aed-sendersum { flex-wrap:wrap; } .aed-sendersum [data-sender-edit] { width:100%; justify-content:center; } }

/* Ladebildschirm beim Senden (editor.js sendOv) */
.aed-sendov { position:fixed; inset:0; z-index:9500; display:flex; align-items:center; justify-content:center; padding:20px; background:rgba(250,250,249,.94); opacity:0; transition:opacity .25s ease; font-family:'Roboto',system-ui,-apple-system,'Segoe UI',sans-serif; color:#16181d; }
.aed-sendov.is-on { opacity:1; }
.aed-sendov .aed-ms { font-family:'AgIcons'; font-weight:400; font-style:normal; line-height:1; letter-spacing:normal; text-transform:none; white-space:nowrap; display:inline-block; -webkit-font-smoothing:antialiased; font-feature-settings:'liga'; }
.aed-sendov-box { width:100%; max-width:360px; background:#fff; border:1px solid #e5e4df; border-radius:20px; padding:28px 24px 24px; box-shadow:0 18px 48px rgba(17,24,39,.14); text-align:center; transform:translateY(10px) scale(.98); transition:transform .3s cubic-bezier(.2,.7,.2,1); }
.aed-sendov.is-on .aed-sendov-box { transform:none; }
.aed-sendov-ic { position:relative; width:64px; height:64px; margin:0 auto 14px; display:flex; align-items:center; justify-content:center; }
.aed-sendov-ic > .aed-ms { font-size:28px; color:#e63946; transition:transform .3s ease, color .3s ease; }
.aed-sendov-ring { position:absolute; inset:0; border-radius:50%; border:3px solid #f1e3e4; border-top-color:#e63946; animation:aedSendSpin .9s linear infinite; }
.aed-sendov.is-ok .aed-sendov-ring { animation:none; border-color:#13773a; background:#13773a; transition:background .25s ease, border-color .25s ease; }
.aed-sendov.is-ok .aed-sendov-ic > .aed-ms { color:#fff; transform:translateX(2px) rotate(-20deg); }
.aed-sendov-t { margin:0 0 18px; font-size:1.15rem; font-weight:700; }
.aed-sendov-steps { list-style:none; margin:0; padding:0; display:grid; gap:12px; text-align:left; }
.aed-sendov-steps li { display:flex; align-items:center; gap:12px; color:#9ca3af; font-size:.95rem; line-height:1.35; transition:color .2s ease; }
.aed-sendov-steps li.is-active { color:#16181d; font-weight:500; }
.aed-sendov-steps li.is-done { color:#4a4f5a; }
.aed-sendov-dot { flex:none; position:relative; width:22px; height:22px; border-radius:50%; border:2px solid #e5e4df; display:flex; align-items:center; justify-content:center; box-sizing:border-box; transition:background .2s ease, border-color .2s ease; }
.aed-sendov-dot .aed-ms { font-size:15px; color:#fff; transform:scale(0); transition:transform .25s cubic-bezier(.2,.9,.3,1.4); }
.aed-sendov-steps li.is-active .aed-sendov-dot { border-color:#f1e3e4; border-top-color:#e63946; animation:aedSendSpin .8s linear infinite; }
.aed-sendov-steps li.is-done .aed-sendov-dot { border-color:#13773a; background:#13773a; animation:none; }
.aed-sendov-steps li.is-done .aed-sendov-dot .aed-ms { transform:scale(1); }
@keyframes aedSendSpin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .aed-sendov, .aed-sendov-box, .aed-sendov-dot, .aed-sendov-dot .aed-ms, .aed-sendov-ic > .aed-ms { transition:none; }
  .aed-sendov-ring, .aed-sendov-steps li.is-active .aed-sendov-dot { animation-duration:2.4s; }
}

/* Zustimmungsdialog: Hinweis „Kostenlos“ */
.aed-termsdlg .aed-free { display:flex; gap:10px; align-items:flex-start; margin:14px 0 4px; padding:12px 14px; border-radius:12px; background:#e7f5ec; color:#14532d; }
.aed-termsdlg .aed-free .aed-ms { color:#13773a; font-size:22px; line-height:1.35; flex:none; }
.aed-termsdlg .aed-free b { display:block; font-weight:600; }
.aed-termsdlg .aed-free span:not(.aed-ms) { display:block; font-size:.9rem; line-height:1.45; color:#1f5133; }
.aed-termsdlg .aed-free + .aed-termschk { margin-top:16px; }

/* Vorschau lädt: Ladekreis statt leerer Fläche, später kleiner Kreis über der vorhandenen Vorschau */
.aed-prev { position:relative; }
.aed-prevload { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; min-height:320px; border:1px solid var(--line); border-radius:16px; background:#fff; color:var(--mu); font-size:.95rem; }
.aed-spin { display:block; width:34px; height:34px; border-radius:50%; border:3px solid #ecebe6; border-top-color:#e63946; animation:aed-spin .8s linear infinite; }
@keyframes aed-spin { to { transform:rotate(360deg); } }
.aed-prev.is-busy::after { content:''; position:absolute; top:14px; right:14px; width:22px; height:22px; border-radius:50%; border:2.5px solid rgba(22,24,29,.12); border-top-color:#e63946; background:#fff; box-shadow:0 0 0 6px #fff, 0 4px 14px rgba(17,24,39,.16); animation:aed-spin .8s linear infinite; z-index:2; pointer-events:none; }
.aed-prevfail { display:flex; align-items:center; gap:10px; min-height:120px; justify-content:center; text-align:center; }
@media (prefers-reduced-motion: reduce) { .aed-spin, .aed-prev.is-busy::after { animation-duration:2.4s; } }
.aed-prev.is-busy:has(.aed-prevload)::after, .aed-prev.is-busy:has(.aed-prevfail)::after { display:none; }

/* Anhänge im Editor (Pro) */
.aed-files .aed-lblrow { align-items:baseline; }
.aed-fhint { margin-left:6px; font-weight:400; font-size:.85rem; color:var(--mu); }
.aed-probadge { display:inline-flex; align-items:center; height:22px; padding:0 9px; border-radius:999px; background:#16181d; color:#fff; font-size:.75rem; font-weight:700; }
.aed-flist { list-style:none; margin:0 0 10px; padding:0; border:1px solid var(--line); border-radius:14px; overflow:hidden; background:#fff; }
.aed-flist[hidden] { display:none; }
.aed-fitem { display:grid; grid-template-columns:40px minmax(0, 1fr) auto; gap:12px; align-items:center; padding:8px 8px 8px 12px; }
.aed-fitem + .aed-fitem { border-top:1px solid var(--line); }
.aed-fic { display:grid; place-items:center; width:40px; height:40px; border-radius:10px; background:#fdecee; }
.aed-fic .aed-ms { color:#c92d3a; font-size:22px; }
.aed-fname { display:flex; flex-direction:column; min-width:0; color:var(--ink); text-decoration:none; }
.aed-fname b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600; }
.aed-fname small { color:var(--mu); font-size:.8rem; }
.aed-fname:hover b { text-decoration:underline; }
.aed-fdel { display:grid; place-items:center; width:44px; height:44px; border:0; border-radius:10px; background:transparent; color:var(--ink2); cursor:pointer; }
.aed-fdel:hover { background:#fdecee; color:#c92d3a; }
.aed-fdrop { position:relative; display:flex; align-items:center; gap:14px; padding:16px; border:1.5px dashed #cfccc3; border-radius:14px; background:rgba(0,0,0,.026); cursor:pointer; transition:border-color .15s, background .15s; }
.aed-fdrop:hover, .aed-fdrop.is-over { border-color:#16181d; background:#fff; }
.aed-fdrop.is-busy { opacity:.7; pointer-events:none; }
.aed-fdrop input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.aed-fdrop:focus-within { outline:2px solid #16181d; outline-offset:2px; }
.aed-fdrop-ic { flex:none; display:grid; place-items:center; width:44px; height:44px; border-radius:12px; background:#fff; border:1px solid var(--line); }
.aed-fdrop-ic .aed-ms { font-size:24px; color:#16181d; }
.aed-fdrop-t { display:flex; flex-direction:column; gap:2px; color:var(--ink2); font-size:.95rem; }
.aed-fdrop-t b { color:var(--ink); }
.aed-fdrop-t small { color:var(--mu); font-size:.8rem; }
.aed-fprog { height:6px; margin-top:10px; border-radius:999px; background:rgba(0,0,0,.084); overflow:hidden; }
.aed-fprog[hidden] { display:none; }
.aed-fprog span { display:block; height:100%; width:0; background:#e63946; transition:width .2s; }
.aed-ferr { color:var(--bad, #b91c1c); margin-top:12px; }
.aed-files > .aed-help:last-of-type { margin-top:12px; }
.aed .aed-fdrop { display:flex; flex-direction:row; align-items:center; margin:0; font-weight:400; }

/* Senden mit Auswahl der Versandart (Link oder Post); Menü schwebt deckend über der Leiste */
.aed-split { position:relative; display:inline-flex; }
.aed-split .aed-split-main { border-top-right-radius:0; border-bottom-right-radius:0; }
.aed-split .aed-split-t { min-width:0; padding:0 10px; border-top-left-radius:0; border-bottom-left-radius:0; border-left:1px solid rgba(255,255,255,.35); }
.aed-split-m { position:absolute; right:0; bottom:calc(100% + 8px); z-index:20; width:min(320px, calc(100vw - 32px)); padding:6px; border-radius:14px; background:#fff; border:1px solid #e3e1da; box-shadow:0 18px 40px -18px rgba(17,24,39,.35); }
.aed-split-m[hidden] { display:none; }
/* Die untere Leiste samt Senden-Menü liegt über der angehefteten Vorschau-Leiste (z-index 6), aber unter der Kopfzeile (20);
   ist wenig Platz, scrollt das Menü in sich statt unter der Kopfzeile zu verschwinden */
.aed .aed-bar { z-index:7; }
.aed-split-m { max-height:calc(100dvh - var(--aed-sticky-top, 0px) - 110px); overflow:auto; overscroll-behavior:contain; }
.aed-split-m button { display:grid; grid-template-columns:24px minmax(0,1fr) 20px; gap:10px; align-items:start; width:100%; padding:10px; border:0; border-radius:10px; background:transparent; font:inherit; color:var(--ink); text-align:left; cursor:pointer; }
.aed-split-m button:hover, .aed-split-m button:focus-visible { background:rgba(0,0,0,.05); outline:none; }
.aed-split-m b { display:block; font-weight:600; }
.aed-split-m small { display:block; margin-top:2px; color:var(--mu, #5f6672); font-size:.82rem; line-height:1.35; }
.aed-split-m .aed-ms { margin-top:1px; }
.aed-split-ok { visibility:hidden; color:var(--red2); }
.aed-split-m [aria-checked="true"] .aed-split-ok { visibility:visible; }
/* Leiste: links Gesamtbetrag, rechts Speichern und Senden; auf schmalen Bildschirmen kurze Beschriftung */
.aed-sl-short { display:none; }
.aed-actions { margin-left:auto; justify-content:flex-end; }
@media (max-width:640px) {
    .aed:not([data-view=wizard]) .aed-bar { flex-wrap:nowrap; }
    .aed-actions { flex-wrap:nowrap; }
}
@media (max-width:480px) {
    .aed-sl-long { display:none; }
    .aed-sl-short { display:inline; }
}
/* Sehr schmal (320–380 px): Speichern nur als Symbol, damit Senden und Gesamtbetrag Platz haben */
@media (max-width:380px) {
    .aed-actions [data-act=save] .aed-bt { display:none; }
    .aed-actions [data-act=save] { padding-left:12px; padding-right:12px; }
    .aed:not([data-view=wizard]) .aed-bar { flex-wrap:wrap; gap:8px; }
    .aed:not([data-view=wizard]) .aed-total { flex:1 0 100%; flex-direction:row; justify-content:space-between; align-items:baseline; }
    .aed:not([data-view=wizard]) .aed-actions { flex:1 0 100%; }
    .aed:not([data-view=wizard]) .aed-split { flex:1; }
    .aed:not([data-view=wizard]) .aed-split-main { flex:1; }
}
/* Gesamtbetrag nie umbrechen; passt er nicht neben die Knöpfe, steht er darüber (editor.js: fitBar) */
.aed-tv { white-space:nowrap; }
.aed .aed-bar.is-stacked { flex-wrap:wrap; gap:8px; }
.aed .aed-bar.is-stacked .aed-total { flex:1 0 100%; flex-direction:row; justify-content:space-between; align-items:baseline; }
.aed .aed-bar.is-stacked .aed-actions { flex:1 0 100%; }
.aed .aed-bar.is-stacked .aed-split, .aed .aed-bar.is-stacked .aed-split-main { flex:1; }
/* Senden-Menü nach unten, wenn oben kein Platz ist */
.aed-split-m.is-down { bottom:auto; top:calc(100% + 8px); }

/* Versand per Post: Vorschau ohne E-Mail, Hinweis statt Umschalter */
.aed-postmode .aed-prevseg { display:none; }
.aed-postnote { display:inline-flex; align-items:center; gap:6px; padding:6px 12px; border-radius:999px; background:rgba(0,0,0,.05); font-size:.88rem; font-weight:600; white-space:nowrap; }
.aed-postnote[hidden] { display:none; }
.aed-postnote .aed-ms { font-size:18px; }
.aed-postnote { min-width:0; overflow:hidden; text-overflow:ellipsis; }

/* Versandart (Link oder Post) über der Unterschrift */
.aed-sendmode { border:0; margin:4px 0 12px; padding:0; display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:8px; }
.aed-sendmode legend { padding:0; margin:0 0 6px; font-weight:600; font-size:.92rem; }
.aed-smode { display:grid; grid-template-columns:auto 20px minmax(0,1fr); gap:8px; align-items:start; padding:10px 12px; border-radius:12px; border:1px solid #dcdad3; cursor:pointer; font-size:.92rem; }
.aed-smode:hover { background:rgba(0,0,0,.04); }
.aed-smode:has(input:checked) { border-color:var(--ink); background:rgba(0,0,0,.03); }
.aed-smode input { margin:2px 0 0; accent-color:var(--red2); }
.aed-smode .aed-ms { font-size:20px; }
.aed-smode b { display:block; font-weight:600; }
.aed-smode small { display:block; color:var(--mu, #5f6672); font-size:.82rem; line-height:1.35; }
.aed-chk.is-off { cursor:default; color:var(--mu, #5f6672); }
@media (max-width:480px) { .aed-sendmode { grid-template-columns:1fr; } }

/* Vorschau veraltet (Versandart gewechselt oder Aktualisierung fehlgeschlagen) */
.aed-prev { position:relative; }
.aed-prev.is-stale .aed-sheetwrap { opacity:.45; transition:opacity .15s; }
.aed-prevstale { display:flex; flex-wrap:wrap; align-items:center; gap:8px 10px; margin:0 0 10px; padding:10px 12px; border-radius:12px; background:#fdf0dc; color:#7c4a03; font-size:.9rem; }
.aed-prev:not(.is-stale) .aed-prevstale { display:none; }
.aed-prevstale > span:nth-child(2) { flex:1 1 200px; }
.aed-prevstale .aed-btn { min-height:34px; }
.aed-done-print { margin:18px 0 0; }
.aed-done-print .aed-btn { display:inline-flex; text-decoration:none; }

/* Seiten mit Werkzeug: der allgemeine Cookie-Hinweis wartet, bis feststeht, ob die Speicher-Abfrage ihn mit übernimmt (kein kurzes Aufblitzen) */
body:has(.aed) .f24-hinweis:not(.is-on) { display:none !important; }

/* Vorschau „Nachricht“ beim Teilen per Link: neutrale Chat-Blase mit Link-Vorschaukarte */
.aed-sharewrap[hidden] { display:none; }
.aed-chat { border:1px solid var(--line); border-radius:16px; padding:22px 16px; background:rgba(0,0,0,.035); min-height:240px; display:flex; justify-content:flex-end; align-items:flex-start; }
.aed-bubble { max-width:min(100%, 380px); background:#fff; border-radius:16px 16px 4px 16px; padding:6px 6px 10px; box-shadow:0 1px 2px rgba(17,24,39,.12); font-size:.92rem; line-height:1.45; color:var(--ink); }
.aed-lcard { display:flex; gap:10px; align-items:center; padding:8px; border-radius:11px; background:rgba(0,0,0,.05); }
.aed-lcard-ic { flex:none; width:46px; height:46px; border-radius:9px; display:block; }
.aed-lcard-tx { min-width:0; display:flex; flex-direction:column; gap:1px; }
.aed-lcard-tx b { font-size:.88rem; line-height:1.3; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.aed-lcard-tx small { font-size:.8rem; color:var(--ink2); line-height:1.3; }
.aed-lcard-tx .aed-lcard-dom { color:var(--mu); }
.aed-bubble-tx { padding:8px 8px 0; overflow-wrap:anywhere; }
.aed-bubble-link { color:#1d4ed8; text-decoration:underline; text-underline-offset:2px; }
.aed-sharewrap .aed-sharenote { margin:14px 2px 0; font-size:.85rem; line-height:1.5; color:var(--ink2); }

/* Umschalter der Vorschau: ausgeblendete Knöpfe (z. B. „E-Mail“ beim Teilen) wirklich ausblenden; Beschriftung nie umbrechen */
.aed-prevseg button[hidden] { display:none !important; }
.aed-prevseg button { white-space:nowrap; }

/* Ansicht-Umschalter: auf schmalen Handys kurze Beschriftung, damit nichts umbricht */
[data-view-btn] { white-space:nowrap; }
[data-view-btn] .aed-sm { display:none; }
@media (max-width: 400px) { [data-view-btn] .aed-lg { display:none; } [data-view-btn] .aed-sm { display:inline; } }

/* Vollbild-Vorschau am Handy: deckt auch den Streifen ab, den die weggescrollte Adressleiste freigibt
   (Chrome bemisst feste Ebenen dann noch mit Leiste); Scrollen darin greift nicht auf die Seite dahinter über */
.aed.is-fullprev .aed-side { overscroll-behavior:contain; box-shadow:0 0 0 100vmax #fff; padding-bottom:calc(24px + env(safe-area-inset-bottom, 0px)); }
html.aed-noscroll, html.aed-noscroll body { overflow:hidden; overscroll-behavior:none; background:#fff; }
/* Beim Ein- und Ausblenden der Adressleiste zeigt Chrome kurz, was hinter der Vollbild-Ebene liegt: dort ist dann nur Weiß.
   Sichtbar bleiben die Vorschau selbst und alles, was darüber geöffnet wird (Lupe, Dialoge, Hinweise, Ladebildschirm). */
html.aed-noscroll body { visibility:hidden; }
html.aed-noscroll .aed.is-fullprev .aed-side, html.aed-noscroll .aed-zoom, html.aed-noscroll .agm, html.aed-noscroll .ag-toasts, html.aed-noscroll .aed-sendov { visibility:visible; }

/* Handy/Tablet: „Vorschau“ bleibt beim Scrollen oben sichtbar, wie unten die Leiste mit Senden; auch in „Schritt für Schritt“ */
@media (max-width: 960px) {
    .aed[data-view] .aed-tabs { display:flex; position:sticky; top:var(--aed-sticky-top, 0px); z-index:6; background:#fff; border-bottom:1px solid var(--line); padding:8px 0; margin:0 0 12px; }
    .aed-tabs .aed-fullprev { min-height:40px; }
}

/* Prüfdialog vor dem Senden */
.aed-checkdlg .aed-checklist { margin:4px 0 16px; }
.aed-checkdlg .aed-checklist li { padding:10px 0; font-size:.95rem; }
.aed-checkdlg .agm-box { max-width:520px; }
.aed-checkdlg .agm-act { flex-wrap:wrap; }

/* Ein gemeinsames Fenster: Cookie-Hinweis und „Eingaben merken?“ */
.aed-consent { flex-direction:column; align-items:stretch; gap:12px; }
.aed-consent-head { display:flex; align-items:center; gap:10px; }
.aed-consent-head b { font-size:1rem; font-weight:700; color:var(--ink); line-height:1.3; }
.aed-consent-ic { flex:none; width:36px; height:36px; border-radius:50%; background:rgba(0,0,0,.05); display:inline-flex; align-items:center; justify-content:center; }
.aed-consent-ic .aed-ms { font-size:20px; color:var(--ink); }
.aed-consent-pts { list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.aed-consent-pts li { display:flex; gap:10px; align-items:flex-start; font-size:.88rem; line-height:1.5; color:var(--ink2); }
.aed-consent-pts li[hidden] { display:none; }
.aed-consent-pts .aed-ms { flex:none; font-size:18px; margin-top:1px; color:var(--ink); }
.aed-consent-pts b { color:var(--ink); font-weight:600; }
.aed-consent-act { display:flex; gap:8px; }
.aed-consent-act .aed-btn { flex:1 1 0; min-height:44px; }
.aed-consent-foot { margin:0; font-size:.8rem; line-height:1.45; color:var(--mu); }
.aed-consent-foot a { color:var(--ink); font-weight:600; }
/* Das Fenster hängt am Seitenende (außerhalb von .aed): Symbolschrift hier eigens setzen */
.aed-consent .aed-ms { font-family:'AgIcons'; font-weight:400; font-style:normal; line-height:1; letter-spacing:normal; text-transform:none; white-space:nowrap; display:inline-block; -webkit-font-smoothing:antialiased; font-feature-settings:'liga'; }
@media (max-width: 640px) { .aed-consent { max-height:none; overflow:visible; padding:14px 16px; gap:10px; } .aed-consent-pts { gap:8px; } .aed-consent-pts li { font-size:.85rem; line-height:1.45; } }

/* Touch: Aufklapp-Zeilen im Editor mit ausreichender Tippfläche */
@media (pointer: coarse) { .aed-more > summary { min-height:44px; align-items:center; } }

/* Sehr schmale Handys: „Weiter: Absender“ → „Absender →“ (Pfeil sagt „weiter“, Screenreader hören „Weiter zu Absender“) */
@media (max-width: 359px) { .aed-wtp { display:none; } }
