/* BLACKDROP · einheitliche Darstellung. Die Gesten laufen ausschließlich auf transform/opacity. */
.drop-einheit { position:relative; display:block; }
.drop-einheit .drop-bild {display:block;width:100%;height:100%;overflow:visible;object-fit:contain;}
.drop-einheit .drop-geste,.drop-einheit .drop-atem,.drop-einheit .drop-augen,.drop-einheit .drop-auge {transform-box:view-box;transform-origin:128px 128px;}
.drop-einheit .drop-auge {transform-box:fill-box;transform-origin:center;}
/* Alte Rollen-/Blob-Gesten geben keine Zustände mehr vor. */
#drop .auge,#drop .drop-augen,#drop .drop-bild,#drop .drop-blick,#drop .drop-buehne,#drop .drop-figur,#drop .drop-figur-bild {animation:none!important;transition:none!important;}
#drop .auge {transform:none!important;}
#drop .drop-feld,#drop .drop-punkte,#drop .lid {display:none!important;}
.drop-aktion-figur {width:44px;height:44px;flex:0 0 44px;}
.login-marke .drop-aktion-figur {width:72px;height:72px;margin-bottom:12px;}
.login-marke.hat-figur::before {content:none;}
.marke-avatar.hat-figur {background:none;}
.drop-statisch {display:block;width:100%;height:100%;}
.drop-figur-ruhe .drop-statisch {width:min(232px,60vw);height:auto;aspect-ratio:1;}
.drop-aktion-wort {display:inline-block;margin-inline-start:8px;color:var(--ink-soft);font:500 var(--t-label,.875rem)/1.4 var(--font,system-ui);}
.drop-aktion-wort[hidden] {display:none;}
.drop-einheit[data-zustand="schlaf"] .drop-auge {transform:scaleY(.06);}
/* Reduktion allein schließt niemals Augen. Schlaf folgt nur dem gewählten Zustand. */
html.motion-aus .drop-einheit *,html[data-bewegung="aus"] .drop-einheit *,[data-bewegung="aus"] .drop-einheit * {animation:none!important;transition:none!important;}
@media(prefers-reduced-motion:reduce){html:not([data-bewegung="an"]) .drop-einheit *{animation:none!important;transition:none!important;}}
/* Die alten Mitarbeiter-Blobs und Säume bleiben ruhig; sie sind kein Aktivitätssignal. */
.blob-body,.blob-eyes,.bd-saum,.bd-atmen,.marke-avatar,.login-marke::before,.drop-figur-bild {animation:none!important;}
.drop-buehne--figur {background:none!important;box-shadow:none!important;border-radius:0;overflow:visible;}
.drop-buehne--figur .drop-poster,.drop-buehne--figur .drop-leinwand,.drop-buehne--figur .drop-kern {display:none;}

.leiste-marke.hat-figur{display:inline-flex;align-items:center;gap:8px;}

/* Der sichtbare Körper nutzt wieder die bisherige Bühnenbreite; die Vergleichstafel bleibt maßstabsgleich zur Referenz. */
#drop:not(.vorfuehrung) > .drop-bild,#drop .drop-figur > .drop-figur-bild {transform:none;}

.drop-symbol{transform-box:view-box;transform-origin:128px 128px;}
.drop-einheit[data-zustand="schlaf"] .drop-augen{opacity:.22;}
.drop-einheit[data-zustand="schlaf"] .drop-koerper{opacity:.78;}

/* A2 · ruhiger Begleiter. Kein autonomer Atem, kein autonomes Blinzeln. */
.bd-begleiter{box-sizing:border-box;width:min(640px,calc(100vw - 32px));max-height:calc(100dvh - 48px);padding:0;border:1px solid var(--line,#515d6d);border-radius:20px;background:var(--bg,#101319);color:var(--ink,#f1f3f5);font:16px/1.5 var(--font,system-ui);overflow:auto;}
.bd-begleiter::backdrop{background:rgb(0 0 0 / .65);}
.bd-panel{padding:24px;}
.bd-panel header{display:flex;align-items:center;justify-content:space-between;gap:16px;}
.bd-panel h2{margin:0 0 12px;font-size:24px;}
.bd-panel button,.bd-drop-hinweis button{min-width:44px;min-height:44px;border:1px solid var(--line,#515d6d);border-radius:10px;background:transparent;color:inherit;font:inherit;cursor:pointer;}
.bd-panel input{box-sizing:border-box;width:100%;min-height:48px;margin:12px 0;padding:12px;border:1px solid var(--line,#515d6d);border-radius:10px;background:transparent;color:inherit;font:inherit;}
.bd-panel ul{list-style:none;margin:0;padding:0;max-height:40dvh;overflow:auto;}
.bd-panel [role="option"]{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:6px 12px;box-sizing:border-box;border:1px solid transparent;border-radius:10px;cursor:pointer;}
.bd-panel [aria-selected="true"]{border-color:transparent;background:var(--bd-bedienhover);}
.bd-panel small{font-size:14px;opacity:.8;}
.bd-panel mark{background:transparent;color:inherit;text-decoration:underline;text-underline-offset:3px;font-weight:700;}
.bd-panel footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:14px;}
.bd-panel dt{font-weight:600;margin-top:12px;}.bd-panel dd{margin:4px 0;}
.bd-panel :focus-visible,.bd-drop-knopf:focus-visible,.bd-drop-hinweis button:focus-visible{outline:3px solid var(--accent,#4c8dff);outline-offset:3px;}
.bd-drop-knopf{cursor:pointer;}
.bd-drop-hinweis{position:fixed;bottom:20px;right:20px;z-index:30;display:flex;gap:8px;align-items:center;max-width:calc(100vw - 32px);padding:8px;border:1px solid var(--line,#515d6d);border-radius:14px;background:var(--bg,#101319);color:var(--ink,#f1f3f5);font:14px/1.4 var(--font,system-ui);}
@media(max-width:480px){
 body.bd-hat-begleiter{padding-bottom:calc(96px + env(safe-area-inset-bottom));}
 body.bd-hat-begleiter.bd-hat-hinweis{padding-bottom:calc(176px + env(safe-area-inset-bottom));}
 body.bd-hat-begleiter #inhalt{padding-bottom:calc(88px + env(safe-area-inset-bottom));}
 .bd-hat-begleiter .hero-namen{box-sizing:border-box;padding-right:72px;}
 #drop.bd-drop-knopf{position:fixed!important;inset:auto max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) auto!important;width:56px!important;height:56px!important;margin:0!important;z-index:40;background:var(--bg,#101319);border:1px solid var(--line,#515d6d);border-radius:50%;box-sizing:border-box;}
 #drop.bd-drop-knopf>.drop-bild{transform:none!important;}
 .bd-begleiter{width:100%;max-width:none;max-height:90dvh;margin:auto 0 0;border-radius:20px 20px 0 0;border-bottom:0;}
 .bd-panel{padding:20px 16px max(20px,env(safe-area-inset-bottom));}
 .bd-drop-hinweis{position:fixed;margin:0;bottom:calc(84px + env(safe-area-inset-bottom));right:max(16px,env(safe-area-inset-right));max-width:calc(100vw - 32px);border-radius:16px 16px 4px 16px;}
 .bd-drop-hinweis::after{content:"";position:absolute;right:20px;bottom:-8px;width:12px;height:12px;transform:rotate(45deg);background:var(--bg,#101319);border-right:1px solid var(--line,#515d6d);border-bottom:1px solid var(--line,#515d6d);}
 .bd-hat-begleiter .hero{row-gap:0;}
 .bd-hat-begleiter .hero-buehne{gap:0;}
 .bd-hat-begleiter .hero-buehne > .zentrum{display:none;}
 .bd-hat-begleiter .hero-buehne .slot-hero{width:0;height:0;aspect-ratio:auto;}
}

/* Ein Drop: Atem nur an großer Hauptfigur, seltenes Blinzeln über die gemeinsame API. */
.drop-gesicht,.drop-bogen{transform-box:view-box;transform-origin:128px 128px;}
@media(min-width:481px){html[data-bewegung="an"]:not(.motion-aus):not([data-drop-hidden]) #drop[data-drop-gross]:not([data-aktion]) .drop-atem{animation:drop-e1-atem 7.4s var(--ease-morph,cubic-bezier(.2,.8,.2,1)) infinite;}}
@keyframes drop-e1-atem{0%,100%{transform:scale(1)}50%{transform:scale(1.012)}}

/* B3: gemeinsamer Tastaturweg und klare Bedienelemente. Farben ausschließlich Tokens. */
:root{--t-label: .875rem;--line-strong: #35353e;}
:where(button,input:not([type=hidden]),select,textarea,summary,[role=button]){border-color:var(--line-strong)!important;}
html body :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible:not([disabled]){outline:3px solid var(--accent,#4c8dff)!important;outline-offset:3px!important;transition-property:transform,opacity!important;}
.bd-sprung{position:fixed;top:8px;left:8px;z-index:1000;padding:12px 16px;background:var(--bg,var(--n2));color:var(--ink);font-size:var(--t-label);transform:translateY(-200%);}
.bd-sprung:focus{transform:none;}
@media(max-width:700px){.bd-klassisch header{height:auto;min-height:75px;box-sizing:border-box;flex-wrap:wrap;gap:16px;padding-block:16px;}.bd-klassisch nav{flex-wrap:wrap;min-width:0;max-width:100%;gap:14px;}.bd-klassisch nav a:first-child{display:inline-flex;}}
.bd-nur-vorlesen{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
input:not([type=hidden]):not([type=checkbox]):not([type=radio]),select,textarea{box-sizing:border-box;border:1px solid var(--line-strong)!important;}
input::placeholder,textarea::placeholder{color:var(--ink-soft,var(--muted));opacity:1;}
:where(main,[role=main]){scroll-margin-top:96px;}

/* Lidnaht: alte Ruhelage .04; Schließen erfolgt zur Augenmitte. */
.drop-einheit .drop-lid{transform-box:fill-box;transform-origin:center;transform:scaleY(.04)}
html body .bd-panel [aria-selected="true"] small{color:inherit;}

/* Chromium fokussiert Datumssegmente intern; Tastaturmodus bildet focus-visible am Host ab. */
html[data-bd-tastatur] body input:is([type=date],[type=time],[type=datetime-local]):focus-within{outline:3px solid var(--accent,#4c8dff)!important;outline-offset:3px!important;}
html body :is(input,textarea)::placeholder{color:var(--ink,#f3f3f5)!important;opacity:1!important;}
html body .bd-panel [aria-selected="true"] small{opacity:1;}

/* N1: beschriftete Aktionen tragen sich durch Text, nicht durch Flächenblöcke. */
:root{--bd-bedienhover:rgba(255,255,255,.05);--bd-feld:var(--bg-soft,#17171a);}
html body button:not(:is(#drop,.primary,.hauptweg,.knopf-stark,.login-knopf,.login-box button)){border:0!important;background:transparent!important;}
html body button:not(:is(#drop,.primary,.hauptweg,.knopf-stark,.login-knopf,.login-box button)):hover{background:var(--bd-bedienhover)!important;}
html body :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]),select,textarea){background:var(--bd-feld)!important;color:var(--ink,#f3f3f5);}
html body nav.hauptnav button[aria-current="page"]{background:var(--bd-bedienhover)!important;box-shadow:inset 2px 0 var(--accent,#4c8dff);}
html body .bd-drop-hinweis{border:0;background:var(--bd-feld);}
html body .bd-drop-hinweis::after{border:0;background:var(--bd-feld);}
html body .bd-panel [role="option"]{border-color:transparent;}
html body a:is(.knopf,.chip):not(:is(.primary,.hauptweg,.knopf-stark)){border:0!important;background:transparent!important;}
html body a:is(.knopf,.chip):not(:is(.primary,.hauptweg,.knopf-stark)):hover{background:var(--bd-bedienhover)!important;}

/* N2: Primäre Aktionen behalten Füllung, Text und Hover aus ihren Flächen-Stylesheets. */

/* B1: Touch-Geometrie; bestehende Farben, Schrift und Figur bleiben erhalten. */
@media (max-width:480px),(pointer:coarse){
  button,summary,[role="button"]{min-width:44px!important;min-height:44px!important}
  nav a,.fuss a,a.marke,.stand-liste a,.bd-demo-kopf>a,.tcard-name>a,
  .probat-logo,.kopf-links a,header.top a,.table-sort,.tabelle-sortknopf{min-width:44px!important;min-height:44px!important;display:inline-flex;align-items:center}
  body .gespraech-eingabe,body header.top{position:static;bottom:auto}
}

/* Gesamtprüfung: ersetzte Bilder haben eine eigene Zeichenfläche; die SVG-Gruppen bleiben frei. */
.drop-einheit img.drop-bild,img.drop-bild{overflow:clip!important;}
@media(max-width:480px),(pointer:coarse){
 html body :is(header a,.kopf a,.kopf-leisten a,footer a,.tcard a,.tabelle-sortweg,.bd-demo-kopf>a,a.brand,a.wortmarke,a.bd-sprung){min-width:44px!important;min-height:44px!important;display:inline-flex;align-items:center;box-sizing:border-box;flex-shrink:0;}
 html body input:not(:is([type=hidden],[type=checkbox],[type=radio])){min-height:44px!important;}
 html body label:has(>input:is([type=checkbox],[type=radio])){min-height:44px;display:inline-flex;align-items:center;gap:var(--r1,8px);}
 html body .tabelle-zeile{height:44px;}
 html body #arbeiten{column-gap:var(--r1,8px);}
}

@media(max-width:480px),(pointer:coarse){
 html body .drop-bruecke a,html body.vorfuehrung>main>p:first-of-type>a,html body .eintrag p>a{display:inline-flex;align-items:center;min-width:44px!important;min-height:44px!important;}
}

@media(max-width:480px){body article p>a[href="/blackdrop/cockpit/"],body article p>a[href="/blackdrop/raum/"]{display:inline-flex;align-items:center;min-height:44px;min-width:44px}}

/* Nach dem Andocken ersetzt die Hauptfigur das statische Kopfzeichen. */
.leiste-marke.hat-figur .marke-avatar{display:none;}
