/* Plicavo-Look: Wärmebalken in der Software (setzt waerme.js, braucht heat.js).
   Wirkt nur mit der Klasse „look-waerme“ an <html>. */

/* Grundgerüst der Balken (wie look.css, hier doppelt, damit auch die Freigabeseite ohne look.css auskommt) */
.heat { position: absolute; inset: 0; overflow: hidden; pointer-events: none; background: #080C16; }
.heat-layer { position: absolute; inset: 0; display: flex; }
.heat-col { position: relative; flex: 1 1 0; min-width: 0; height: 100%; }
.heat-col > i { position: absolute; top: 0; bottom: 0; left: -1px; right: -1px; display: block; will-change: transform; }
/* eingebettete Balken: unten etwas überstehen lassen, damit beim leichten Mitwandern keine dunkle Kante entsteht */
.side-heat .heat-col > i, .dh-heat .heat-col > i, .top-heat .heat-col > i { bottom: -26px; }

/* 1 · Seitenleiste: leises Glühen unten, reagiert nur, wenn die Maus in der Leiste ist */
.look-waerme .side { isolation: isolate; }   /* bleibt „sticky“ (fixiert beim Scrollen) */
.look-waerme .side > .side-heat { position: absolute; left: 0; right: 0; top: auto; bottom: 0; height: 48%; z-index: -1; opacity: .4;
  background: transparent;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 60%); mask-image: linear-gradient(180deg, transparent 0, #000 60%); }

/* 2 · Kopfband auf Übersichtsseiten (Übersicht, Planregister, Freigaben) */
.look-waerme .dash > .dash-head { position: relative; isolation: isolate; overflow: hidden; border-radius: 22px;
  padding: 30px 32px 28px; margin-bottom: 10px; background: #0D1321; color: #E7ECF3;
  --ink: #E7ECF3; --ink-2: #A3AEC2; --ink-3: #7D899E; --accent-text: #8DAEFF;
  --line: rgba(231,236,243,.14); --line-strong: rgba(231,236,243,.22); --surface: #151D30; --hover: rgba(255,255,255,.06);
  border: 1px solid rgba(231,236,243,.08); box-shadow: 0 22px 50px rgba(13,19,33,.18); }
.look-waerme .dash > .dash-head > .dh-heat { z-index: -1; opacity: .62;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 75%); mask-image: linear-gradient(180deg, transparent 0, #000 75%); }
.look-waerme .dash > .dash-head h1 { color: #E7ECF3; }
.look-waerme .dash > .dash-head .lead { color: #C9D2E1; }

/* 4 · Freigabe-Moment: Balken steigen einmal kurz auf */
.heat.plica-burst { position: fixed; inset: auto 0 0 0; height: 60vh; z-index: 9999; background: transparent;
  mix-blend-mode: screen; opacity: 0; animation: plica-burst 1.9s ease-out forwards;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 65%); mask-image: linear-gradient(180deg, transparent 0, #000 65%); }
.heat.plica-burst > .heat-layer { transform-origin: 50% 100%; animation: plica-burst-rise 1.9s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes plica-burst { 0% { opacity: 0; } 16% { opacity: .75; } 62% { opacity: .6; } 100% { opacity: 0; } }
@keyframes plica-burst-rise { 0% { transform: scaleY(.15); } 45% { transform: scaleY(1.06); } 100% { transform: scaleY(.92); } }
@media (prefers-reduced-motion: reduce) { .heat.plica-burst { display: none; } }

/* 5 · Externe Freigabeseite (Link per E-Mail): dunkler Kopf mit Balken */
.look-waerme body.signpage > .top { position: relative; isolation: isolate; overflow: hidden; height: 64px;
  background: #0D1321; color: #E7ECF3; border-bottom: 0; }
.look-waerme body.signpage > .top .brand .mk { color: #E7ECF3; }
.look-waerme body.signpage > .top .crumbs { color: #A3AEC2; }
.look-waerme body.signpage > .top > .top-heat { z-index: -1; opacity: .75;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 85%); mask-image: linear-gradient(180deg, transparent 0, #000 85%); }
.look-waerme body.signpage .sign { height: calc(100vh - 64px); }

/* Kopfband mit Werkzeugen: obere Leiste entfällt auf Übersichtsseiten (nur breite Fenster) */
@media (min-width: 761px) { .look-waerme body.band-top .content > .top { display: none; } }
.look-waerme .dash > .dash-head .dash-actions { align-items: center; gap: 10px; }
.look-waerme .dash > .dash-head .dash-actions > .tools { display: flex; gap: 10px; align-items: center; margin: 0; }
/* Glas-Knöpfe im Kopfband */
.look-waerme .dash-head .tools .mailbtn, .look-waerme .dash-head .tools .iconbtn,
.look-waerme .dash > .dash-head .dash-actions > button:not(.primary), .look-waerme .dash > .dash-head .dash-actions > .btn:not(.primary) {
  min-height: 40px; border-radius: 999px; color: #E7ECF3;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(231, 236, 243, .18);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 8px 22px rgba(4, 8, 20, .25); }
.look-waerme .dash-head .tools .mailbtn { padding: 0 16px; font-weight: 600; }
.look-waerme .dash-head .tools .iconbtn { width: 40px; }
.look-waerme .dash-head .tools .mailbtn svg, .look-waerme .dash-head .tools .iconbtn svg { color: #C9D2E1; }
.look-waerme .dash-head .tools .mailbtn:hover, .look-waerme .dash-head .tools .iconbtn:hover,
.look-waerme .dash > .dash-head .dash-actions > button:not(.primary):hover, .look-waerme .dash > .dash-head .dash-actions > .btn:not(.primary):hover {
  background: rgba(255, 255, 255, .14); border-color: rgba(231, 236, 243, .28); color: #fff; }
.look-waerme .dash-head .tools .iconbtn .dot { top: -2px; right: -2px; }
.look-waerme .dash-head .dash-actions button.primary { min-height: 40px; border-radius: 999px; padding: 0 18px; }
