/* ---------- Looks ---------- */
:root, [data-look="noir"] {
  --bg: #09090a; --bg2: #121113;
  --glow1: rgba(201,162,74,.10); --glow2: rgba(122,26,46,.14);
  --card: rgba(255,255,255,.035); --card2: rgba(255,255,255,.06);
  --line: rgba(212,175,98,.16); --line2: rgba(255,255,255,.07);
  --text: #f3eee6; --muted: #a39d93; --dim: #6f6a63;
  --gold: #d4af62; --gold2: #f1d79a; --wine: #8e1f37;
  --primary: #d4af62; --onprimary: #141009;
  --client: #d4af62;
  --head: "Cormorant Garamond", serif; --headw: 600; --headsize: 1.18;
  --radius: 18px;
}
[data-look="bordeaux"] {
  --bg: #0d0507; --bg2: #1a0a0f;
  --glow1: rgba(142,31,55,.30); --glow2: rgba(212,175,98,.08);
  --card: rgba(255,240,240,.04); --card2: rgba(255,240,240,.07);
  --line: rgba(212,175,98,.20); --line2: rgba(255,220,220,.08);
  --text: #f7ece9; --muted: #b59c9c; --dim: #7d6464;
  --primary: #9c2340; --onprimary: #fff3ee;
  --client: #e2b866;
  --head: "Playfair Display", serif; --headw: 700; --headsize: 1;
  --radius: 14px;
}
[data-look="kontrast"] {
  --bg: #1a1a1d; --bg2: #232327;
  --glow1: rgba(240,125,0,.16); --glow2: rgba(142,31,55,.22);
  --card: rgba(255,255,255,.065); --card2: rgba(255,255,255,.11);
  --line: rgba(255,255,255,.16); --line2: rgba(255,255,255,.10);
  --text: #fafaf9; --muted: #c2c2be; --dim: #8e8e8a;
  --primary: #d4af62; --onprimary: #141009;
  --client: #f07d00;
  --head: "Sora", sans-serif; --headw: 600; --headsize: .9;
  --radius: 12px;
}

/* Farbe pro Bereich: macht alles auf einen Blick erkennbar */
:root { --c-home: #d4af62; --c-job: #34d399; --c-offer: #a78bfa; --c-chat: #60a5fa; --c-file: #2dd4bf; --ok: #34d399; }
.nav[data-v="home"] { --c: var(--c-home); } .nav[data-v="job"] { --c: var(--c-job); } .nav[data-v="offers"] { --c: var(--c-offer); }
.nav[data-v="chat"] { --c: var(--c-chat); } .nav[data-v="files"] { --c: var(--c-file); }
#v-home { --c: var(--c-home); } #v-job { --c: var(--c-job); } #v-offers { --c: var(--c-offer); } #v-chat { --c: var(--c-chat); } #v-files { --c: var(--c-file); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; }
body {
  font-family: "Inter", system-ui, sans-serif; color: var(--text); background: var(--bg);
  min-height: 100vh; -webkit-font-smoothing: antialiased; transition: background .5s;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% -10%, var(--glow1), transparent 60%),
    radial-gradient(800px 600px at -10% 110%, var(--glow2), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
svg.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

* { font-variant-numeric: lining-nums; }
h1, h2, h3 { font-family: var(--head); font-weight: var(--headw); letter-spacing: -.01em; line-height: 1.15; }
h1 { font-size: calc(2.6rem * var(--headsize)); }
h2 { font-size: calc(1.7rem * var(--headsize)); }
h3 { font-size: calc(1.3rem * var(--headsize)); }
.shine {
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold2) 30%, var(--gold) 55%, var(--gold2) 80%, var(--gold) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 7s linear infinite;
}
@keyframes shine { to { background-position: -250% 0; } }
.muted { color: var(--muted); } .dim { color: var(--dim); }
.eyebrow { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 600; }

/* ---------- Layout ---------- */
.app { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; padding: 28px 18px; display: flex; flex-direction: column; gap: 6px;
  border-right: 1px solid var(--line2); background: linear-gradient(180deg, rgba(0,0,0,.25), transparent);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 26px; }
.mono {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--head); font-weight: 700; font-size: 1.35rem; color: var(--onprimary);
  background: linear-gradient(135deg, var(--gold2), var(--gold) 45%, #8a6a2c);
  box-shadow: 0 6px 24px rgba(212,175,98,.25), inset 0 1px 0 rgba(255,255,255,.4);
}
[data-look="bordeaux"] .mono { background: linear-gradient(135deg, #c43a5a, #8e1f37 50%, #4d0e1c); color: var(--gold2); }
.brand b { display: block; font-family: var(--head); font-size: 1.15rem; font-weight: var(--headw); }
.brand small { color: var(--dim); font-size: .74rem; letter-spacing: .06em; }
.nav {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; color: var(--muted);
  font-weight: 500; font-size: .93rem; position: relative; transition: .2s;
}
.nav:hover { color: var(--text); background: var(--card); }
.nav.on { color: var(--text); background: var(--card2); box-shadow: inset 0 0 0 1px var(--line); }
.nav.on::before { content: ""; position: absolute; left: -18px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--gold); }
.nav .dot { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--primary); color: var(--onprimary); font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.client {
  margin-top: auto; padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line2);
  display: flex; align-items: center; gap: 12px; font-size: .85rem;
}
.client .av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .8rem; background: rgba(255,255,255,.06); border: 1.5px solid var(--client); color: var(--client); }
.client small { display: block; color: var(--dim); font-size: .74rem; }

main { padding: 26px 40px 60px; min-width: 0; }
.top { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.top .crumb { color: var(--dim); font-size: .85rem; }
.top .sp { flex: 1; }
.looks { display: flex; padding: 4px; border-radius: 12px; background: var(--card); border: 1px solid var(--line2); }
.looks button { padding: 7px 12px; border-radius: 9px; font-size: .8rem; color: var(--muted); font-weight: 500; }
.looks button.on { background: var(--card2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.bell { position: relative; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line2); }
.bell .b { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; border-radius: 10px; background: var(--wine); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
[data-look="kontrast"] .bell .b { background: var(--client); }

.view { display: none; animation: rise .5s cubic-bezier(.2,.7,.2,1); }
.view.on { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

.card {
  background: var(--card); border: 1px solid var(--line2); border-radius: var(--radius); padding: 24px;
  backdrop-filter: blur(10px); transition: border-color .25s, transform .25s, box-shadow .25s;
}
.card.hov:hover { border-color: var(--line); transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.grid { display: grid; gap: 18px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 11px; font-weight: 600; font-size: .9rem;
  background: var(--primary); color: var(--onprimary); transition: .2s; box-shadow: 0 6px 20px rgba(0,0,0,.3);
}
.btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn.ghost { background: var(--card); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: var(--card2); }
.btn.sm { padding: 8px 13px; font-size: .82rem; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: .74rem; font-weight: 600; background: var(--card2); color: var(--muted); }
.pill.live { color: var(--gold2); background: rgba(212,175,98,.12); }
.pill.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: pulse 1.8s infinite; }
.pill.ok { color: #9fd8b0; background: rgba(90,180,120,.12); }
.pill.cl { color: var(--client); background: color-mix(in srgb, var(--client) 14%, transparent); }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(212,175,98,0); } 0% { box-shadow: 0 0 0 0 rgba(212,175,98,.5); } }

/* ---------- Übersicht ---------- */
.hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; margin-bottom: 18px; }
.hero .welcome { padding: 34px; position: relative; overflow: hidden; }
.hero .welcome::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid var(--line); box-shadow: 0 0 0 40px rgba(212,175,98,.02), 0 0 0 80px rgba(212,175,98,.015); }
.hero h1 { margin: 10px 0 12px; }
.hero p { color: var(--muted); max-width: 460px; line-height: 1.6; }
.hero .acts { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.ringcard { display: flex; align-items: center; gap: 22px; }
.ring { position: relative; width: 132px; height: 132px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring .bgc { stroke: var(--line2); }
.ring .fg { stroke: url(#gg); stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 339.3; transition: stroke-dashoffset 1.6s cubic-bezier(.2,.7,.2,1); }
.ring .val { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .val b { font-family: var(--head); font-size: 2.1rem; font-weight: 700; display: block; line-height: 1; }
.ring .val small { color: var(--dim); font-size: .72rem; }
.stats { grid-template-columns: repeat(4, 1fr); margin-bottom: 18px; }
.stat { padding: 20px; }
.stat .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(212,175,98,.1); color: var(--gold); margin-bottom: 14px; }
.stat b { font-family: var(--head); font-size: 2rem; font-weight: 700; display: block; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .84rem; }
.two { grid-template-columns: 1.4fr 1fr; }
.sechead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 10px; }
.sechead a, .link { color: var(--gold); font-size: .84rem; font-weight: 600; cursor: pointer; }

.tl { position: relative; padding-left: 26px; }
.tl::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(var(--gold), var(--line2)); }
.tli { position: relative; padding-bottom: 22px; }
.tli:last-child { padding-bottom: 0; }
.tli::before { content: ""; position: absolute; left: -25px; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--gold); }
.tli.new::before { background: var(--gold); box-shadow: 0 0 0 5px rgba(212,175,98,.15); }
.tli time { font-size: .74rem; color: var(--dim); }
.tli b { display: block; margin: 3px 0 4px; font-weight: 600; font-size: .95rem; }
.tli p { color: var(--muted); font-size: .87rem; line-height: 1.55; }
.att { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: var(--card2); font-size: .8rem; color: var(--text); border: 1px solid var(--line2); cursor: pointer; }
.att:hover { border-color: var(--line); }
.att svg { color: var(--gold); }
.newtag { font-size: .62rem; font-weight: 700; letter-spacing: .08em; color: var(--onprimary); background: var(--primary); padding: 2px 6px; border-radius: 5px; margin-left: 6px; vertical-align: 2px; }

/* ---------- Auftrag ---------- */
.phead { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.phead .meta { display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: .85rem; margin-top: 12px; }
.phead .meta b { color: var(--text); font-weight: 600; }
.bar { height: 8px; border-radius: 8px; background: var(--line2); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, var(--wine), var(--gold), var(--gold2)); transition: width 1.6s cubic-bezier(.2,.7,.2,1); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 22px 0 6px; }
.stp { padding: 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line2); position: relative; }
.stp .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 700; border: 1.5px solid var(--line); color: var(--muted); margin-bottom: 12px; }
.stp b { font-size: .88rem; display: block; margin-bottom: 4px; }
.stp small { color: var(--dim); font-size: .76rem; }
.stp.done .n { background: var(--gold); color: var(--onprimary); border-color: var(--gold); }
.stp.cur { border-color: var(--line); background: linear-gradient(180deg, rgba(212,175,98,.08), var(--card)); }
.stp.cur .n { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 0 5px rgba(212,175,98,.12); }
.stp .mini { margin-top: 10px; height: 4px; }
.side2 { display: flex; flex-direction: column; gap: 18px; }
.person { display: flex; gap: 12px; align-items: center; }
.person .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--head); font-weight: 700; background: linear-gradient(135deg, var(--gold2), var(--gold)); color: var(--onprimary); }

/* ---------- Angebote ---------- */
.offers { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.offer { display: flex; flex-direction: column; gap: 12px; cursor: pointer; position: relative; overflow: hidden; }
.offer .oi { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(212,175,98,.18), rgba(142,31,55,.18)); color: var(--gold2); border: 1px solid var(--line); }
.offer .oi svg { width: 22px; height: 22px; }
.offer p { color: var(--muted); font-size: .87rem; line-height: 1.55; flex: 1; }
.offer .row { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--line2); }
.price { font-family: var(--head); font-size: 1.45rem; font-weight: 700; }
.price small { font-family: Inter, sans-serif; font-size: .72rem; color: var(--dim); font-weight: 500; }
.save { font-size: .76rem; font-weight: 600; color: var(--gold2); }
.offer .flag { position: absolute; top: 16px; right: 16px; }
.wish { border: 1px dashed var(--line); background: transparent; align-items: flex-start; justify-content: center; }
.wish:hover { background: var(--card); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button { padding: 7px 14px; border-radius: 99px; font-size: .82rem; color: var(--muted); border: 1px solid var(--line2); }
.filters button.on { color: var(--onprimary); background: var(--primary); border-color: transparent; }

/* ---------- Modal ---------- */
.ov { position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); display: none; place-items: center; z-index: 50; padding: 16px; }
.ov.on { display: grid; animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(640px, 100%); max-height: 90vh; overflow: auto; background: var(--bg2); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 40px 100px rgba(0,0,0,.6); animation: pop .35s cubic-bezier(.2,.8,.2,1.1); }
@keyframes pop { from { transform: translateY(20px) scale(.97); opacity: 0; } }
.mhead { padding: 30px 30px 22px; border-bottom: 1px solid var(--line2); position: relative; background: radial-gradient(400px 200px at 90% 0, var(--glow1), transparent); }
.mhead .x { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--card); }
.mbody { padding: 24px 30px; display: grid; gap: 20px; }
.mbody h4 { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.mbody ul { list-style: none; display: grid; gap: 9px; }
.mbody li { display: flex; gap: 10px; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.mbody li svg { color: var(--gold); margin-top: 2px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.facts div { padding: 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line2); }
.facts small { display: block; color: var(--dim); font-size: .72rem; margin-bottom: 4px; }
.facts b { font-size: 1rem; }
.mfoot { padding: 20px 30px 28px; display: flex; gap: 10px; flex-wrap: wrap; }
.mfoot .sp { flex: 1; }
.field { display: grid; gap: 7px; }
.field label { font-size: .8rem; color: var(--muted); font-weight: 500; }
.field input, .field textarea { width: 100%; padding: 12px 14px; border-radius: 11px; background: var(--card); border: 1px solid var(--line2); outline: none; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,98,.12); }
.success { padding: 50px 30px; text-align: center; display: grid; justify-items: center; gap: 12px; }
.check { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold2), var(--gold)); color: var(--onprimary); box-shadow: 0 0 0 10px rgba(212,175,98,.1), 0 0 60px rgba(212,175,98,.35); animation: pop .5s cubic-bezier(.2,.8,.3,1.4); }
.check svg { width: 40px; height: 40px; stroke-width: 2.4; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .25s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Nachrichten ---------- */
.chat { display: grid; grid-template-columns: 280px 1fr; padding: 0; overflow: hidden; height: min(640px, calc(100vh - 160px)); }
.threads { border-right: 1px solid var(--line2); padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.mobile-th { display: none; }
.th { padding: 12px 14px; border-radius: 12px; text-align: left; }
.th.on { background: var(--card2); box-shadow: inset 0 0 0 1px var(--line); }
.th b { display: block; font-size: .88rem; } .th small { color: var(--dim); font-size: .76rem; }
.conv { display: flex; flex-direction: column; min-width: 0; }
.conv .ch { padding: 16px 22px; border-bottom: 1px solid var(--line2); display: flex; justify-content: space-between; align-items: center; }
.msgs { flex: 1; overflow: auto; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 72%; padding: 12px 16px; border-radius: 16px; font-size: .9rem; line-height: 1.5; background: var(--card2); border: 1px solid var(--line2); animation: rise .35s; }
.msg small { display: block; font-size: .7rem; color: var(--dim); margin-top: 6px; }
.msg.me { align-self: flex-end; background: linear-gradient(135deg, rgba(212,175,98,.16), rgba(142,31,55,.14)); border-color: var(--line); border-bottom-right-radius: 5px; }
.msg.them { border-bottom-left-radius: 5px; }
.msg.them .who { color: var(--client); font-size: .74rem; font-weight: 600; display: block; margin-bottom: 3px; }
.day { align-self: center; font-size: .72rem; color: var(--dim); letter-spacing: .08em; }
.compose { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line2); }
.compose input { flex: 1; padding: 12px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line2); outline: none; }
.compose input:focus { border-color: var(--gold); }

/* ---------- Dateien ---------- */
.drop { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 34px; text-align: center; cursor: pointer; transition: .25s; margin-bottom: 18px; background: radial-gradient(500px 120px at 50% 0, rgba(212,175,98,.06), transparent); }
.drop:hover, .drop.over { border-color: var(--gold); background-color: rgba(212,175,98,.05); }
.drop .ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 14px; background: rgba(212,175,98,.1); color: var(--gold); }
.drop .ic svg { width: 26px; height: 26px; }
.files { padding: 8px; }
.file { display: grid; grid-template-columns: 44px 1fr auto auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 12px; transition: .2s; }
.file:hover { background: var(--card); }
.file .ft { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; font-size: .66rem; font-weight: 800; letter-spacing: .04em; background: var(--card2); border: 1px solid var(--line2); color: var(--gold); }
.file .ft.zip { color: #e0c27c; } .file .ft.pdf { color: #e07a7a; } .file .ft.docx { color: #7aa7e0; } .file .ft.xlsx { color: #7ad09a; }
.file b { font-size: .9rem; font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file small { color: var(--dim); font-size: .76rem; }
.file .up { grid-column: 2 / -1; height: 4px; }
.dl { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line2); color: var(--gold); }
.dl:hover { border-color: var(--gold); }

/* ---------- Hinweise ---------- */
.toasts { position: fixed; right: 24px; bottom: 24px; display: grid; gap: 10px; z-index: 60; }
.toast { padding: 14px 18px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.5); font-size: .88rem; display: flex; gap: 10px; align-items: center; animation: pop .35s; max-width: 340px; }
.toast svg { color: var(--gold); }
.news { position: fixed; top: 84px; right: 40px; width: 360px; z-index: 40; padding: 0; overflow: hidden; display: none; background: var(--bg2); border-color: var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.news.on { display: block; animation: pop .45s cubic-bezier(.2,.8,.2,1.1); }
.news .nh { padding: 18px 20px; background: radial-gradient(300px 120px at 100% 0, var(--glow1), transparent); border-bottom: 1px solid var(--line2); }
.news .ni { display: flex; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line2); cursor: pointer; font-size: .86rem; }
.news .ni:hover { background: var(--card); }
.news .ni .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(212,175,98,.1); color: var(--gold); flex: none; }
.news .ni small { display: block; color: var(--dim); font-size: .74rem; margin-top: 2px; }
.news .nf { padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; }
.preview-note { font-size: .74rem; color: var(--dim); margin-top: 40px; text-align: center; }

/* ---------- Handy ---------- */
@media (max-width: 980px) {
  .hero, .two { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .chat { grid-template-columns: 1fr; } .threads { display: none; } .mobile-th { display: block; }
}
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; flex-direction: row; justify-content: space-around; padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); z-index: 30; border-right: 0; border-top: 1px solid var(--line2); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); }
  .brand, .client { display: none; }
  .nav { flex-direction: column; gap: 4px; padding: 8px 6px; font-size: .66rem; flex: 1; }
  .nav.on::before { display: none; }
  .nav .dot { position: absolute; top: 2px; right: 14%; margin: 0; min-width: 16px; height: 16px; font-size: .6rem; }
  main { padding: 18px 16px 100px; }
  .top { flex-wrap: wrap; margin-bottom: 20px; }
  .top .crumb { display: none; }
  .looks { order: 3; width: 100%; } .looks button { flex: 1; }
  h1 { font-size: calc(2rem * var(--headsize)); }
  .hero .welcome { padding: 24px; }
  .ringcard { flex-direction: column; align-items: flex-start; }
  .facts { grid-template-columns: 1fr 1fr; }
  .file { grid-template-columns: 40px 1fr auto; } .file .sz { display: none; }
  .news { left: 16px; right: 16px; width: auto; top: 120px; }
  .toasts { left: 16px; right: 16px; bottom: 90px; }
  .msg { max-width: 88%; }
}
/* ---------- Bereichsfarben (überschreibt Gold, wo Farbe hilft) ---------- */
.view .eyebrow, .view .sechead a { color: var(--c); }
.nav svg { color: var(--c); opacity: .85; }
.nav.on svg { opacity: 1; }
.nav.on { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent); background: color-mix(in srgb, var(--c) 10%, transparent); }
.nav.on::before { background: var(--c); }
.nav .dot { background: var(--c); color: #0b0b0c; }
.stat .ic, .news .ni .ic, .drop .ic { background: color-mix(in srgb, var(--c, var(--gold)) 16%, transparent); color: var(--c, var(--gold)); }
.stat { border-top: 2px solid color-mix(in srgb, var(--c) 55%, transparent); }
/* Fortschritt = Grün */
.pill.live { color: #a7f3d0; background: rgba(52,211,153,.13); }
.pill.live::before { background: var(--ok); }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(52,211,153,0); } 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.5); } }
.bar i { background: linear-gradient(90deg, #0f766e, #34d399, #a7f3d0); }
.stp.done .n { background: var(--ok); border-color: var(--ok); color: #062b1e; }
.stp.cur { border-color: rgba(52,211,153,.4); background: linear-gradient(180deg, rgba(52,211,153,.09), var(--card)); }
.stp.cur .n { border-color: var(--ok); color: var(--ok); box-shadow: 0 0 0 5px rgba(52,211,153,.13); }
.tl::before { background: linear-gradient(var(--ok), var(--line2)); }
.tli::before { border-color: var(--ok); }
.tli.new::before { background: var(--ok); box-shadow: 0 0 0 5px rgba(52,211,153,.15); }
.newtag { background: var(--ok); color: #062b1e; }
#outcomes span, .mbody li svg { color: var(--ok) !important; }
/* Angebote: jede Karte eigene Farbe */
.offer { --c: var(--oc, var(--c-offer)); }
.offer .oi { background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); border-color: color-mix(in srgb, var(--c) 40%, transparent); }
.offer:not(.wish) { border-top: 2px solid color-mix(in srgb, var(--c) 60%, transparent); }
.offer .save, .offer .link { color: var(--c); }
.filters button.on { background: var(--c-offer); color: #160f2b; }
/* Nachrichten = Blau, Dateien = Türkis */
.msg.me { background: linear-gradient(135deg, rgba(96,165,250,.20), rgba(96,165,250,.08)); border-color: rgba(96,165,250,.35); }
.compose input:focus { border-color: var(--c-chat); }
.th.on { box-shadow: inset 0 0 0 1px rgba(96,165,250,.4); }
.drop { border-color: color-mix(in srgb, var(--c-file) 45%, transparent); background: radial-gradient(500px 120px at 50% 0, rgba(45,212,191,.07), transparent); }
.drop:hover, .drop.over { border-color: var(--c-file); background-color: rgba(45,212,191,.05); }
.dl { color: var(--c-file); } .dl:hover { border-color: var(--c-file); }
.file .ft.zip { color: #fbbf24; } .file .ft.pdf { color: #f87171; } .file .ft.docx { color: #60a5fa; } .file .ft.xlsx { color: #34d399; }
.att svg { color: var(--c-file); }

/* ============ Echte App: Zusätze ============ */
/* Durchgehender Stil: Gold bleibt die Marke, Bereichsfarben nur als Wegweiser */
.card { position: relative; }
.card::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--c, var(--gold)) 70%, transparent); opacity: .55;
}
.stat, .offer:not(.wish) { border-top: 1px solid var(--line2) !important; }
.news::before, .chat::before, .files::before { display: none; }
.sechead h3::after { content: ""; display: block; width: 28px; height: 2px; margin-top: 8px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), var(--c, var(--gold))); }

.app:not(.on) { display: none; }
.screen { min-height: 100vh; display: none; place-items: center; padding: 16px; }
.screen.on { display: grid; }
.login { width: min(420px, 100%); text-align: center; display: grid; gap: 14px; justify-items: center; padding: 40px 32px; }
.login .mono { width: 58px; height: 58px; font-size: 1.8rem; border-radius: 16px; }
.login form { width: 100%; display: grid; gap: 10px; margin-top: 6px; }
.login input { width: 100%; padding: 13px 15px; border-radius: 12px; background: var(--card); border: 1px solid var(--line2); outline: none; text-align: center; }
.login input:focus { border-color: var(--gold); }
.login .btn { justify-content: center; }
body:not(.is-admin) .admin-only { display: none !important; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn.danger { background: rgba(248,113,113,.12); color: #fca5a5; box-shadow: inset 0 0 0 1px rgba(248,113,113,.3); }
.field select, .client select { width: 100%; padding: 12px 14px; border-radius: 11px; background: var(--bg2); border: 1px solid var(--line2); color: var(--text); outline: none; }
.field input[type=file] { padding: 10px; }
.client select { padding: 6px 8px; font-size: .82rem; margin-top: 4px; }
.client { flex-wrap: wrap; }
.logout { color: var(--dim); font-size: .78rem; padding: 6px 14px; text-align: left; }
.logout:hover { color: var(--text); }
.empty { text-align: center; padding: 44px 20px; color: var(--muted); display: grid; gap: 12px; justify-items: center; }
.empty .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--gold)) 14%, transparent); color: var(--c, var(--gold)); }
.row-list > div { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--line2); flex-wrap: wrap; }
.row-list > div:last-child { border-bottom: 0; }
.row-list b { font-weight: 600; }
.row-list .sp { flex: 1; }
.stage-row { display: grid; grid-template-columns: 1.1fr 1.4fr 120px 76px 38px; gap: 8px; align-items: center; }
.stage-row input, .stage-row select { width: 100%; padding: 10px 11px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line2); color: var(--text); outline: none; }
.dl.del { color: #f87171; }
.dl.del:hover { border-color: #f87171; }
.toast.err svg { color: #f87171; }
.wishes { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-top: 18px; }
.wish-card p { color: var(--muted); font-size: .88rem; line-height: 1.55; margin: 8px 0 12px; white-space: pre-line; }
.tli p { white-space: pre-line; }
.msg { white-space: pre-line; }
.ptabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.ptabs button { padding: 7px 14px; border-radius: 99px; font-size: .82rem; color: var(--muted); border: 1px solid var(--line2); }
.ptabs button.on { color: var(--onprimary); background: var(--primary); border-color: transparent; }
@media (max-width: 760px) {
  .stage-row { grid-template-columns: 1fr 1fr; }
  .admin-only.nav { display: flex; }
}
.av.sm { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 700; background: color-mix(in srgb, var(--c-chat) 18%, transparent); color: var(--c-chat); }
.pill .i { width: 13px; height: 13px; }
.msgprev { width: 100%; text-align: left; white-space: pre-wrap; font: .84rem/1.55 Inter, sans-serif; color: var(--muted); padding: 14px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line2); }
.lswitch { font-size: .78rem; color: var(--dim); }
.lswitch:hover { color: var(--gold); }

/* ============ Angebote inszenieren ============ */
.offer:not(.wish)::after { content: ""; position: absolute; right: -70px; top: -70px; width: 200px; height: 200px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(color-mix(in srgb, var(--c) 26%, transparent), transparent 68%); transition: transform .5s; }
.offer.hov:hover { border-color: color-mix(in srgb, var(--c) 45%, transparent) !important; box-shadow: 0 18px 44px rgba(0,0,0,.35), 0 0 0 1px color-mix(in srgb, var(--c) 25%, transparent), 0 10px 50px -10px color-mix(in srgb, var(--c) 35%, transparent); }
.offer.hov:hover::after { transform: scale(1.35); }
.offer .oi { width: 52px; height: 52px; border-radius: 15px; }
.offer h3 { font-size: 1.12rem; }
.ochips { display: flex; gap: 6px; flex-wrap: wrap; }
.ochips span { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; color: var(--muted); padding: 4px 9px; border-radius: 99px; background: var(--card2); border: 1px solid var(--line2); }
.ochips .i { width: 12px; height: 12px; color: var(--c); }
.offer .go { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); transition: .25s; }
.offer .go .i { width: 16px; height: 16px; }
.offer.hov:hover .go { background: var(--c); color: #0b0b0c; transform: translateX(3px); }
.wish { min-height: 220px; }
.wish .oi { background: transparent !important; border-style: dashed !important; }

.spot { --c: var(--oc, var(--c-offer)); display: grid; grid-template-columns: 1.25fr 1fr; gap: 34px; padding: 34px; margin-bottom: 18px; cursor: pointer; overflow: hidden;
  border-color: color-mix(in srgb, var(--c) 40%, var(--line2)) !important;
  background: radial-gradient(700px 320px at 0% 0%, color-mix(in srgb, var(--c) 20%, transparent), transparent 70%),
              radial-gradient(500px 300px at 100% 100%, rgba(212,175,98,.08), transparent 70%), var(--card); transition: .3s; }
.spot:hover { transform: translateY(-3px); box-shadow: 0 24px 60px rgba(0,0,0,.4), 0 10px 70px -20px color-mix(in srgb, var(--c) 50%, transparent); }
.spot-l { display: grid; gap: 14px; align-content: start; }
.spot .oi.big { width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; margin-top: 6px; color: var(--c);
  background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 0 40px -6px color-mix(in srgb, var(--c) 60%, transparent); }
.spot .oi.big .i { width: 30px; height: 30px; }
.spot h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; }
.spot p { color: var(--muted); line-height: 1.6; max-width: 520px; }
.spot .acts { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.spot .save { color: var(--c); font-weight: 600; font-size: .88rem; }
.spot-r { display: grid; gap: 16px; align-content: center; }
.spot-r .facts { grid-template-columns: 1fr 1fr; }
.spot-r .facts .price { font-size: 1.5rem; }
.spot-r ul { list-style: none; display: grid; gap: 10px; padding: 18px; border-radius: 14px; background: rgba(0,0,0,.18); border: 1px solid var(--line2); }
.spot-r li { display: flex; gap: 10px; font-size: .88rem; color: var(--muted); line-height: 1.45; }
.spot-r li .i { width: 16px; height: 16px; color: var(--ok); flex: none; margin-top: 2px; }

/* Kostenlos */
.price.free, .free-t { background: linear-gradient(90deg, #34d399, #a7f3d0, #34d399); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 4s linear infinite; }
.pill.free { color: #062b1e; background: linear-gradient(90deg, #34d399, #a7f3d0); font-weight: 700; box-shadow: 0 0 20px -4px rgba(52,211,153,.6); }
.pill.free::before { display: none; }
.isfree { --c: #34d399 !important; }
@media (max-width: 860px) {
  .spot { grid-template-columns: 1fr; padding: 24px; gap: 22px; }
  }
[hidden] { display: none !important; }
.facts div.price { padding: 0; border: 0; background: none; border-radius: 0; }
.card.news { position: fixed; }
label.drop { display: block; cursor: pointer; }
.top-logout { display: none; }
@media (max-width: 760px) {
  .side .logout { display: none; }
  .top-logout { display: block; margin-right: 10px; }
  .nav { padding: 8px 2px; min-width: 0; }
  .nav .i { flex: none; }
}

/* ---------- Leviathan: Zeichen, Schriftzug, Tiefsee ---------- */
[data-look="kontrast"] { --bg: #111518; --bg2: #1b2023; --glow1: rgba(212,175,98,.13); --glow2: rgba(20,120,130,.22); }
.mono { background: radial-gradient(circle at 50% 40%, #1d2428, #0b0e10); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(212,175,98,.75), 0 6px 24px rgba(212,175,98,.18); }
.mono svg.sigil { width: 76%; height: 76%; }
.login .mono svg.sigil { filter: drop-shadow(0 0 6px rgba(212,175,98,.45)); }
.brand b { letter-spacing: .14em; text-transform: uppercase; font-size: 1rem; }
.abyss { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.abyss i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 26s ease-in-out infinite alternate; }
.abyss i:nth-child(1) { width: 46vmax; height: 46vmax; left: -14vmax; top: 30%; background: radial-gradient(circle, rgba(13,148,136,.32), transparent 65%); }
.abyss i:nth-child(2) { width: 38vmax; height: 38vmax; right: -12vmax; top: -12vmax; background: radial-gradient(circle, rgba(212,175,98,.22), transparent 65%); animation-duration: 32s; animation-delay: -9s; }
.abyss i:nth-child(3) { width: 30vmax; height: 30vmax; left: 40%; bottom: -16vmax; background: radial-gradient(circle, rgba(30,64,120,.35), transparent 65%); animation-duration: 38s; animation-delay: -17s; }
@keyframes drift { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(6vmax,-4vmax) scale(1.12); } 100% { transform: translate(-4vmax,5vmax) scale(.95); } }
/* Lichtstrahlen von oben, nur beim Login */
#screen-login::before {
  content: ""; position: fixed; inset: 0 0 auto; height: 70vh; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(100deg, transparent 0 7%, rgba(212,175,98,.05) 8% 10%, transparent 11% 17%);
  -webkit-mask: linear-gradient(180deg, #000, transparent); mask: linear-gradient(180deg, #000, transparent);
  animation: rays 14s ease-in-out infinite alternate;
}
@keyframes rays { from { transform: translateX(-3%) skewX(-4deg); opacity: .7; } to { transform: translateX(3%) skewX(4deg); opacity: 1; } }
#screen-login .login { position: relative; overflow: hidden; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: 46px; }
#screen-login .login::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--a, 0deg), transparent 0 70%, var(--gold2) 80%, var(--gold) 85%, transparent 95%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 6s linear infinite;
}
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --a: 360deg; } }
.login .mono { width: 72px; height: 72px; border-radius: 20px; position: relative; animation: rise 5s ease-in-out infinite; }
.login .mono::after { content: ""; position: absolute; inset: -10px; border-radius: 26px; border: 1px solid rgba(212,175,98,.35); animation: pulse 3.2s ease-out infinite; }
@keyframes rise { 50% { transform: translateY(-5px); } }
@keyframes pulse { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.wordmark { font-family: var(--head); font-weight: 700; font-size: clamp(1.9rem, 8vw, 2.5rem); letter-spacing: .3em; margin-right: -.3em; text-transform: uppercase; line-height: 1; margin-top: 6px; }
#screen-login .eyebrow { color: var(--dim); letter-spacing: .3em; font-size: .66rem; }
#screen-login #ltitle { font-size: 1.05rem; font-weight: 500; color: var(--muted); margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { .abyss i, #screen-login::before, #screen-login .login::after, .login .mono, .login .mono::after, .shine { animation: none; } }

/* ---------- Werkzeuge ---------- */
:root { --c-tool: #fb923c; }
.nav[data-v="tools"] { --c: var(--c-tool); } #v-tools { --c: var(--c-tool); }
.grid.tools { gap: 20px; }
.tool { --c: var(--oc, var(--c-tool)); display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; padding: 30px; position: relative; overflow: hidden;
  border-top: 2px solid color-mix(in srgb, var(--c) 60%, transparent) !important; }
.tool::after { content: ""; position: absolute; left: -90px; top: -90px; width: 260px; height: 260px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, color-mix(in srgb, var(--c) 18%, transparent), transparent 70%); }
.tool-l, .tool-r { display: grid; gap: 14px; align-content: start; position: relative; z-index: 1; }
.tool-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tool .oi.big { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.tool .oi.big .i { width: 28px; height: 28px; }
.tool h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.tool-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: -6px; }
.tool-meta span { font-size: .75rem; color: var(--muted); border: 1px solid var(--line2); border-radius: 20px; padding: 3px 10px; }
.tool p { color: var(--muted); line-height: 1.6; font-size: .92rem; }
.tool-feat { list-style: none; display: grid; gap: 8px; }
.tool-feat li { display: flex; gap: 10px; font-size: .88rem; line-height: 1.45; }
.tool-feat .i { width: 16px; height: 16px; color: var(--c); margin-top: 2px; }
.tool-r { background: rgba(0,0,0,.18); border: 1px solid var(--line2); border-radius: 14px; padding: 22px; }
.tool-r .eyebrow { color: var(--c); }
.tool-steps { counter-reset: s; list-style: none; display: grid; gap: 10px; }
.tool-steps li { counter-increment: s; position: relative; padding-left: 36px; font-size: .88rem; line-height: 1.5; }
.tool-steps li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; color: var(--c); border: 1.5px solid color-mix(in srgb, var(--c) 70%, transparent); }
.tool-dl { justify-content: center; flex-wrap: wrap; padding: 14px 18px; margin-top: 6px; }
.tool-dl small { width: 100%; text-align: center; font-weight: 500; opacity: .7; font-size: .74rem; }
@media (max-width: 860px) { .tool { grid-template-columns: 1fr; padding: 22px; gap: 20px; } }

/* ---------- Admin klar erkennbar ---------- */
body.is-admin .client-only { display: none !important; }
.adminhint { display: flex; gap: 12px; align-items: center; margin: -6px 0 22px; padding: 12px 16px; border-radius: 12px; border: 1px dashed rgba(212,175,98,.55); background: rgba(212,175,98,.07); font-size: .85rem; }
.adminhint .i { color: var(--gold); width: 20px; height: 20px; }
.adminhint b { color: var(--gold2); margin-right: 8px; }
.adminhint span { color: var(--muted); }
.view .btn.admin-only, .view .adminbar .btn { position: relative; background: rgba(212,175,98,.12) !important; color: var(--gold2) !important; box-shadow: inset 0 0 0 1px rgba(212,175,98,.7) !important; }
.view .btn.admin-only::after, .view .adminbar::before { content: "NUR DU"; font-size: .58rem; letter-spacing: .12em; font-weight: 700; color: #141009; background: var(--gold); border-radius: 6px; padding: 2px 5px; }
.view .btn.admin-only::after { position: absolute; top: -8px; right: -6px; }
.view .adminbar { padding: 10px 12px; border-radius: 12px; border: 1px dashed rgba(212,175,98,.45); align-items: center; }
