/* KI · Automatisierung neu (eingebaut 2026-11-17, aus Entwurf KI-A-D, 2026-11-17, Eike: „so etwas in der Form wie der Badplaner“)
   Links das Büro von Lüders Bäder, auf dem die echten Dokumente nacheinander entstehen. Rechts drei Abläufe zum Starten, Tom gibt einmal frei.
   Schrift im Werkzeug nur Inter Tight. Keine grüne Schrift. */
#ki-automatisierung .aun,#ki-automatisierung .aun *{font-family:var(--body)}
.aun{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);background:var(--white);border-radius:28px;overflow:hidden;box-shadow:0 40px 80px -50px rgba(0,0,0,.45);color:var(--ink);min-height:740px}
/* Bühne */
.aun-buehne{position:relative;overflow:hidden;background:#d8d4cc}
.aun-buehne > img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform:scale(1.04);transition:transform 8s linear}
.aun.laeuft .aun-buehne > img{transform:scale(1.1)}
.aun-buehne::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.3) 0%,rgba(0,0,0,.05) 26%,rgba(0,0,0,.05) 60%,rgba(0,0,0,.6) 100%);pointer-events:none;z-index:1}
.aun-marke{position:absolute;z-index:4;left:24px;top:22px;display:flex;align-items:center;gap:10px;color:var(--white);font-weight:600;font-size:.9rem}
.aun-marke b{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:var(--white);color:var(--ink);font-weight:700;font-size:.8rem}
.aun-marke .live{margin-left:6px;display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,.18);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-radius:99px;padding:.35em .75em;font-weight:500;font-size:.78rem}
.aun-marke .live i{width:7px;height:7px;border-radius:50%;background:#c9cbc8}
.aun.laeuft .aun-marke .live i{background:var(--green);animation:aunblink 1s infinite}
@keyframes aunblink{50%{opacity:.3}}
/* Stapel der Dokumente */
.aun-stapel{position:absolute;z-index:3;left:50%;top:104px;width:min(430px,calc(100% - 48px));translate:-50% 0;height:calc(100% - 210px)}
.aun-doc{position:absolute;left:0;right:0;top:0;background:var(--white);border-radius:18px;padding:16px 18px;box-shadow:0 30px 60px -24px rgba(0,0,0,.55);transform-origin:top center;transition:transform .7s var(--out),opacity .6s var(--out),filter .6s var(--out);opacity:0;transform:translateY(40px) scale(.94)}
.aun-doc.d0{opacity:1;transform:none;z-index:3}
.aun-doc.d1{opacity:.75;transform:translateY(-16px) scale(.95);z-index:2;filter:brightness(.96)}
.aun-doc.d2{opacity:.45;transform:translateY(-30px) scale(.9);z-index:1;filter:brightness(.92)}
.aun-doc.d1,.aun-doc.d2{max-height:120px;overflow:hidden}
.aun-doc.d1 > *,.aun-doc.d2 > *{opacity:0;transition:opacity .3s}
.aun-doc.weg{opacity:0;transform:translateY(-54px) scale(.82);z-index:0}
.aun-doc .kopf{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.aun-doc .kopf .ic{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--soft);flex:none}
.aun-doc .kopf .ic svg{width:18px;height:18px;fill:none;stroke:var(--ink);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.aun-doc .kopf b{display:block;font-weight:600;font-size:.92rem}
.aun-doc .kopf small{display:block;font-size:.75rem;opacity:.6}
.aun-doc .kopf .zeit{margin-left:auto;font-size:.75rem;opacity:.6;white-space:nowrap}
.aun-doc h5{margin:0 0 6px;font-weight:700;font-size:1.05rem;line-height:1.25}
.aun-doc p{margin:0;font-size:.85rem;line-height:1.45;opacity:.8}
.aun-doc .tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.aun-doc .tags span{font-size:.74rem;background:var(--soft);border-radius:99px;padding:.4em .7em}
.aun-doc .tags .a{background:var(--green);font-weight:600}
/* Dokument im PDF-Look */
.aun-doc .pdf{border:1px solid rgba(36,40,40,.1);border-radius:10px;padding:12px 14px;font-size:.8rem}
.aun-doc .pdf .pk{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:10px;padding-bottom:8px;border-bottom:2px solid var(--ink)}
.aun-doc .pdf .pk b{font-weight:700;font-size:.85rem}
.aun-doc .pdf .pk small{display:block;opacity:.6;font-size:.7rem;text-align:right}
.aun-doc .pdf .zl{display:flex;justify-content:space-between;padding:4px 0;border-bottom:1px solid rgba(36,40,40,.07)}
.aun-doc .pdf .zl span:last-child{font-variant-numeric:tabular-nums}
.aun-doc .pdf .sum{display:flex;justify-content:space-between;padding-top:8px;font-weight:700;font-size:.92rem}
.aun-doc .frei{display:flex;gap:8px;margin-top:12px;align-items:center}
.aun-doc .frei button{all:unset;white-space:nowrap;cursor:pointer;font-weight:600;font-size:.88rem;padding:.7em 1.2em;border-radius:99px;background:var(--green);color:var(--ink);position:relative}
.aun-doc .frei button::after{content:"";position:absolute;inset:-4px;border-radius:99px;border:2px solid var(--green);animation:aunpuls 1.4s ease-out infinite}
@keyframes aunpuls{from{opacity:1;transform:scale(.95)}to{opacity:0;transform:scale(1.15)}}
.aun-doc .frei span{font-size:.8rem;opacity:.65}
.aun-doc.ok .frei{display:none}
.aun-doc .stempel{display:none;margin-top:10px;font-weight:600;font-size:.82rem}
.aun-doc.ok .stempel{display:block}
/* Kalender-Woche */
.aun-doc .woche{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;font-size:.7rem;text-align:center}
.aun-doc .woche span{opacity:.6}
.aun-doc .woche i{grid-column:var(--c);height:26px;border-radius:7px;background:var(--ink);color:var(--white);font-style:normal;display:grid;place-items:center;font-size:.72rem}
.aun-doc .woche i.g{background:var(--green);color:var(--ink)}
/* Nachricht */
.aun-doc .bubble{background:var(--soft);border-radius:14px 14px 14px 4px;padding:10px 12px;font-size:.85rem;line-height:1.45;max-width:92%}
.aun-doc .sterne{font-size:1.1rem;letter-spacing:2px;margin-top:8px}
/* Zähler unten im Bild */
.aun-zahl{position:absolute;z-index:4;left:24px;right:24px;bottom:22px;display:flex;align-items:flex-end;justify-content:space-between;gap:16px;color:var(--white)}
.aun-zahl small{display:block;font-size:.82rem;opacity:.85;margin-bottom:6px}
.aun-zahl strong{display:block;font-weight:700;font-size:clamp(2rem,1.3rem + 2.2vw,3.4rem);line-height:1;letter-spacing:-.01em;font-variant-numeric:tabular-nums;white-space:nowrap}
.aun-zahl .chips{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}
.aun-zahl .chips span{background:rgba(255,255,255,.18);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-radius:99px;padding:.5em .85em;font-size:.8rem;font-weight:500;white-space:nowrap}
/* Seite rechts */
.aun-seite{display:grid;grid-template-rows:auto auto 1fr auto;gap:20px;padding:clamp(22px,2.6vw,40px);min-width:0}
.aun-tabs{display:flex;gap:6px;background:var(--soft);border-radius:99px;padding:5px}
.aun-tabs button{all:unset;cursor:pointer;flex:1;text-align:center;padding:.65em .5em;border-radius:99px;font-size:.86rem;font-weight:500;transition:background .25s,color .25s;white-space:nowrap}
.aun-tabs button.on{background:var(--ink);color:var(--white)}
.aun-tabs button:disabled{cursor:default}
.aun-titel h4{margin:0 0 6px;font-weight:700;font-size:1.45rem;line-height:1.2}
.aun-titel p{margin:0;opacity:.7;font-size:.95rem}
.aun-liste{list-style:none;margin:0;padding:0;display:grid;align-content:start}
.aun-liste li{display:grid;grid-template-columns:32px 1fr auto;gap:14px;align-items:center;padding:11px 0;position:relative}
.aun-liste li:not(:last-child)::before{content:"";position:absolute;left:15px;top:43px;bottom:-11px;width:2px;background:var(--soft)}
.aun-liste li.fertig:not(:last-child)::before{background:var(--ink)}
.aun-liste .pt{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--soft);font-size:.8rem;font-weight:600;position:relative;z-index:1;transition:background .3s,color .3s}
.aun-liste li.dran .pt{background:var(--white);box-shadow:inset 0 0 0 2px var(--ink)}
.aun-liste li.dran .pt::after{content:"";position:absolute;inset:-5px;border-radius:50%;border:2px solid transparent;border-top-color:var(--ink);animation:aundreh .8s linear infinite}
.aun-liste li.warte .pt{background:var(--green)}
.aun-liste li.warte .pt::after{display:none}
.aun-liste li.fertig .pt{background:var(--ink);color:var(--white)}
@keyframes aundreh{to{transform:rotate(360deg)}}
.aun-liste b{display:block;font-weight:600;font-size:.95rem}
.aun-liste small{display:block;font-size:.8rem;opacity:.72}
.aun-liste em{font-style:normal;font-size:.78rem;opacity:.6;font-variant-numeric:tabular-nums}
.aun-liste li.warte em{opacity:1;font-weight:600}
.aun-vergl{display:grid;gap:8px;padding-top:6px}
.aun-vergl .zl{display:grid;grid-template-columns:8.5em 1fr auto;gap:10px;align-items:center;font-size:.85rem}
.aun-vergl .zl i{height:10px;border-radius:99px;background:var(--soft);overflow:hidden}
.aun-vergl .zl i::after{content:"";display:block;height:100%;width:var(--w,0%);border-radius:inherit;background:#c9cbc8;transition:width 1s var(--out)}
.aun-vergl .zl.auto i::after{background:var(--ink)}
.aun-vergl .zl b{font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.aun-fuss{display:flex;justify-content:space-between;align-items:center;gap:12px}
.aun-fuss .hinweis{font-size:.85rem;opacity:.7}
@media(max-width:1000px){.aun{grid-template-columns:1fr}.aun-buehne{min-height:520px}}
@media(max-width:560px){.aun-buehne{min-height:640px}.aun-stapel{top:72px;width:calc(100% - 28px)}.aun-doc{padding:14px}.aun-doc .frei span{display:none}.aun-zahl .chips{display:none}.aun-zahl strong{font-size:2.2rem}.aun-tabs button{font-size:.78rem}.aun-zahl{flex-direction:column;align-items:flex-start}.aun-zahl .chips{justify-content:flex-start}}
@media(prefers-reduced-motion:reduce){.aun *{transition:none!important;animation:none!important}}
/* ===== KI-Mobil (Chat ki-mobil, 2026-11-17, Eike: „Automatisierung mobil viel zu lang“). Nur Tablet/Handy, Mac unverändert.
   Kompakt auf einen Bildschirm: Reiter oben, Bild mit Dokumenten, darunter Schritte als Punktreihe, Vergleich und Button. ===== */
@media(max-width:1000px){
  .aun{display:flex;flex-direction:column;min-height:0}
  .aun-seite{display:contents}
  .aun-tabs{order:1;margin:14px 14px 0}
  .aun-buehne{order:2;min-height:0;height:470px;margin:12px 0 0}
  .aun-titel{display:none}
  .aun-seite>div:not([class]){order:3;padding:16px 18px 0;display:grid;gap:14px}
  .aun-fuss{order:4;padding:14px 18px 18px;flex-wrap:wrap}
  /* Zähler als Pille oben rechts statt unten im Bild: überdeckt keine Dokumentkarte mehr */
  .aun-zahl{top:18px;bottom:auto;left:auto;right:16px;display:block}
  .aun-zahl small,.aun-zahl .chips{display:none}
  .aun-zahl strong{font-size:.82rem;font-weight:600;letter-spacing:0;background:rgba(255,255,255,.18);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-radius:99px;padding:.5em .85em;line-height:1.2}
  .aun-zahl strong::before{content:"Gespart ";font-weight:500;opacity:.85}
  .aun-marke{left:16px;top:18px}
  .aun-stapel{top:74px;height:calc(100% - 90px);width:calc(100% - 28px);max-width:460px}
  /* Schritte als Punktreihe */
  .aun-liste{display:flex;justify-content:space-between;position:relative}
  .aun-liste::before{content:"";position:absolute;left:16px;right:16px;top:15px;height:2px;background:var(--soft)}
  .aun-liste li{display:block;padding:0}
  .aun-liste li:not(:last-child)::before{display:none}
  .aun-liste li>div,.aun-liste li>em{display:none}
  .aun-vergl{padding-top:0}
  .aun-vergl .zl{grid-template-columns:7.5em 1fr auto;font-size:.8rem}
  .aun-fuss .hinweis{font-size:.82rem}
}
@media(max-width:560px){
  .aun-buehne{height:470px;min-height:0}
  /* Zähler unten links im Bild, unter dem Dokumentstapel (oben kollidierte er mit „Wartet auf Tom“) */
  .aun-zahl{top:auto;bottom:14px;left:16px;right:auto}
  .aun-marke{font-size:0;gap:8px}
  .aun-marke b,.aun-marke .live{font-size:.75rem}
  .aun-marke .live{margin-left:0}
  .aun-stapel{top:66px;height:calc(100% - 78px)}
  .aun-doc{padding:12px 14px}
  .aun-doc .kopf{margin-bottom:8px}
  .aun-doc h5{font-size:.98rem}
  .aun-doc p{font-size:.8rem}
  .aun-doc .pdf{padding:10px 12px}
  .aun-doc .pdf .zl{padding:2px 0}
  .aun-zahl strong{font-size:.9rem}
}
