/* Nature Client – Website & Dashboard (Look wie der Nature Launcher: Rauch, Gold, warme dunkle Karten) */
@font-face { font-family: "Sora"; src: url("fonts/Sora-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Sora"; src: url("fonts/Sora-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Sora"; src: url("fonts/Sora-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Sora"; src: url("fonts/Sora-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument_serif_italic.ttf") format("truetype"); font-style: italic; font-display: swap; }

:root {
  --bg: #0A0908;
  --card: #131210;
  --card-2: #171512;
  --border: #2B2722;
  --tile: #1C1A17;
  --hover: #24211C;
  --text: #F7F2EA;
  --dim: #BDB4A6;
  --faint: #7F776C;
  --accent: #E7B84F;
  --accent-2: #F3D48A;
  --pale: #F0CF7E;
  --select: #3A2F1C;
  --select-hover: #4A3C24;
  --btn-top: #EBC46A;
  --btn-bottom: #B9832B;
  --ink: #2B1E07;
  --error: #E5675A;
  --ok: #8FD18B;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 400 14px/1.5 "Sora", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--select-hover); color: var(--pale); }

/* ---------------------------------------------------------------- Rauch-Hintergrund (bewegt sich wie im Launcher) */
.smoke { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; background: var(--bg); }
.smoke::before, .smoke::after {
  content: ""; position: absolute; inset: -12%;
  background: url("nature_bg.jpg") center / cover no-repeat;
  opacity: .9; will-change: transform;
}
.smoke::before { animation: drift-a 46s ease-in-out infinite alternate; }
.smoke::after { opacity: .45; mix-blend-mode: screen; transform: scaleX(-1); animation: drift-b 60s ease-in-out infinite alternate; }
@keyframes drift-a { from { transform: translate3d(-3%, -2%, 0) scale(1.04); } to { transform: translate3d(4%, 3%, 0) scale(1.12); } }
@keyframes drift-b { from { transform: scaleX(-1) translate3d(3%, 2%, 0) scale(1.1); } to { transform: scaleX(-1) translate3d(-4%, -3%, 0) scale(1.02); } }
.glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(520px circle at var(--mx, 50%) var(--my, 30%), rgba(231, 184, 79, .10), transparent 60%),
    radial-gradient(900px 500px at 50% -10%, rgba(231, 184, 79, .08), transparent 70%),
    linear-gradient(180deg, rgba(10, 9, 8, .1), rgba(10, 9, 8, .75) 85%);
}
@media (prefers-reduced-motion: reduce) { .smoke::before, .smoke::after { animation: none; } }

/* ---------------------------------------------------------------- Bausteine */
.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.card {
  background: linear-gradient(180deg, rgba(23, 21, 18, .92), rgba(19, 18, 16, .92));
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255, 245, 220, .04) inset, 0 18px 40px -24px rgba(0, 0, 0, .8);
  backdrop-filter: blur(6px);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px;
  border-radius: 11px; border: 1px solid var(--border); background: var(--tile); color: var(--text);
  font-weight: 600; font-size: 13.5px; cursor: pointer; position: relative; overflow: hidden;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--hover); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.primary {
  background: linear-gradient(180deg, var(--btn-top), var(--btn-bottom)); color: var(--ink); border-color: rgba(255, 236, 190, .35);
  box-shadow: 0 8px 22px -10px rgba(231, 184, 79, .55), 0 1px 0 rgba(255, 250, 230, .45) inset;
}
.btn.primary:hover { box-shadow: 0 10px 28px -8px rgba(231, 184, 79, .7), 0 1px 0 rgba(255, 250, 230, .5) inset; }
.btn.primary::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
}
.btn.primary:hover::after { transition: transform .8s ease; transform: translateX(120%); }
.btn.ghost { background: transparent; }
.btn.danger { color: #F4B3AA; border-color: #4A2722; background: #1E1412; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.small { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 9px; }
.icon { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chip {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 600;
  background: var(--tile); border: 1px solid var(--border); color: var(--dim);
}
.chip.gold { background: var(--select); border-color: #5A4726; color: var(--pale); }
.chip.ok { background: #16241A; border-color: #2C4A31; color: var(--ok); }
.chip.bad { background: #26140F; border-color: #4A2722; color: #F4B3AA; }
.serif { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: 0; }
.muted { color: var(--dim); }
.faint { color: var(--faint); }
input.field, textarea.field {
  width: 100%; height: 42px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--border);
  background: rgba(8, 7, 6, .7); outline: none; transition: border-color .16s ease, box-shadow .16s ease;
}
textarea.field { height: 130px; padding: 12px 14px; resize: vertical; font: 12.5px/1.5 ui-monospace, Consolas, monospace; }
input.field:focus, textarea.field:focus { border-color: #6A5328; box-shadow: 0 0 0 3px rgba(231, 184, 79, .12); }
input.field::placeholder, textarea.field::placeholder { color: var(--faint); }

/* ---------------------------------------------------------------- Kopfzeile */
.topbar { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px); background: rgba(10, 9, 8, .55); border-bottom: 1px solid rgba(43, 39, 34, .6); }
.topbar .wrap { display: flex; align-items: center; height: 64px; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.brand img { width: 30px; height: 30px; filter: drop-shadow(0 0 10px rgba(231, 184, 79, .45)); }
.brand .serif { font-size: 19px; color: var(--pale); margin-left: -4px; }
.topbar nav { display: flex; gap: 22px; margin-left: 12px; }
.topbar nav a { color: var(--dim); font-size: 13.5px; transition: color .15s; }
.topbar nav a:hover { color: var(--text); }
.topbar .right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
@media (max-width: 720px) { .topbar nav { display: none; } }

/* ---------------------------------------------------------------- Startseite */
.hero { padding: 92px 0 60px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(44px, 7vw, 78px); line-height: 1.02; margin: 18px 0 18px; font-weight: 700; letter-spacing: -.02em; }
.hero h1 .serif { color: var(--pale); font-size: 1.12em; }
.hero p.lead { font-size: 17px; color: var(--dim); max-width: 520px; margin: 0 0 30px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .cta .btn { height: 48px; padding: 0 22px; font-size: 14.5px; border-radius: 13px; }
.badge-line { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 6px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(19, 18, 16, .7); font-size: 12.5px; color: var(--dim); }
.badge-line .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--select); display: grid; place-items: center; }
.badge-line .dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.emblem { position: relative; aspect-ratio: 1; width: min(420px, 100%); margin: 0 auto; display: grid; place-items: center; }
.emblem img { width: 52%; position: relative; z-index: 2; filter: drop-shadow(0 0 40px rgba(231, 184, 79, .35)); animation: float 6s ease-in-out infinite; }
.emblem .ring { position: absolute; inset: 9%; border-radius: 50%; border: 1px solid rgba(231, 184, 79, .22); }
.emblem .ring.r2 { inset: 0; border-color: rgba(231, 184, 79, .1); border-style: dashed; animation: spin 80s linear infinite; }
.emblem .ring.r1::before { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px 3px rgba(231, 184, 79, .6); }
.emblem .ring.r1 { animation: spin 14s linear infinite; }
.emblem .halo { position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle, rgba(231, 184, 79, .22), transparent 65%); filter: blur(10px); animation: breathe 5s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-10px) rotate(-2deg); } }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .75; } }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 56px; } .emblem { width: 280px; } }

.section { padding: 56px 0; }
.section h2 { font-size: 30px; margin: 0 0 8px; letter-spacing: -.01em; }
.section h2 .serif { color: var(--pale); font-size: 1.15em; }
.section p.sub { color: var(--dim); margin: 0 0 28px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .grid3, .grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid3, .grid4 { grid-template-columns: 1fr; } }
.feature { padding: 22px; transition: transform .2s ease, border-color .2s ease; }
.feature:hover { transform: translateY(-3px); border-color: #4A3C24; }
.feature .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--select); color: var(--pale); margin-bottom: 14px; }
.feature .ic .icon { width: 18px; height: 18px; }
.feature h3 { margin: 0 0 6px; font-size: 15px; }
.feature p { margin: 0; color: var(--dim); font-size: 13px; }
.feature .tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.step-num { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: 34px; color: var(--pale); line-height: 1; margin-bottom: 10px; }
.faq details { border-bottom: 1px solid var(--border); padding: 16px 4px; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 18px; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--dim); margin: 10px 0 0; }
.footer { padding: 36px 0 48px; color: var(--faint); font-size: 12.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- Dashboard */
.dash { display: grid; grid-template-columns: 220px 1fr; gap: 18px; padding: 36px 0 60px; align-items: start; }
.side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 2px; }
.side .label { font-size: 11px; color: var(--faint); padding: 14px 10px 6px; letter-spacing: .02em; }
.side .label:first-child { padding-top: 0; }
.nav-item {
  display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border-radius: 10px; color: var(--dim);
  font-size: 13.5px; font-weight: 500; cursor: pointer; border: 1px solid transparent; background: none; text-align: left; width: 100%;
  transition: background .15s, color .15s;
}
.nav-item:hover { background: rgba(36, 33, 28, .7); color: var(--text); }
.nav-item.active { background: var(--select); color: var(--pale); border-color: #5A4726; box-shadow: 0 6px 18px -10px rgba(231, 184, 79, .5); }
.devices-line { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--faint); padding: 18px 10px 8px; }
.devices-line a { color: var(--dim); cursor: pointer; }
.devices-line a:hover { color: var(--pale); }
.acct { display: flex; align-items: center; gap: 10px; padding: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--select) center / cover no-repeat; flex: none; display: grid; place-items: center;
  font-weight: 700; color: var(--pale); border: 1px solid #5A4726; overflow: hidden; }
.acct .who { min-width: 0; flex: 1; }
.acct .who b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct .who span { font-size: 11.5px; color: var(--dim); }
.icon-btn { width: 30px; height: 30px; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--dim); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--hover); color: var(--text); border-color: var(--border); }
.main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.page { display: none; flex-direction: column; gap: 14px; animation: pageIn .35s ease; }
.page.active { display: flex; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.row-card { display: flex; align-items: center; gap: 16px; padding: 20px 22px; }
.row-card .ic, .card-head .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--tile); border: 1px solid var(--border); color: var(--dim); flex: none; }
.row-card .ic.gold, .card-head .ic.gold { background: var(--select); color: var(--pale); border-color: #5A4726; }
.row-card .ic.red, .card-head .ic.red { background: #26140F; color: #F4B3AA; border-color: #4A2722; }
.row-card .txt { flex: 1; min-width: 0; }
.row-card h3, .card-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.row-card .meta, .card-head .meta { font-size: 12.5px; color: var(--dim); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.row-card .meta.small { font-size: 11.5px; color: var(--faint); }
.pad { padding: 22px; }
.card h4 { margin: 0 0 16px; font-size: 15px; }
.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.card-head .txt { flex: 1; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tiles.four { grid-template-columns: repeat(4, 1fr); }
.tile { background: rgba(28, 26, 23, .7); border: 1px solid var(--border); border-radius: 11px; padding: 16px; transition: border-color .2s, transform .2s; }
.tile:hover { border-color: #4A3C24; transform: translateY(-2px); }
.tile .ic { width: 28px; height: 28px; border-radius: 8px; background: var(--hover); display: grid; place-items: center; color: var(--dim); margin-bottom: 12px; }
.tile b { display: block; font-size: 13px; margin-bottom: 2px; }
.tile span { font-size: 12px; color: var(--dim); }
.tile.center { text-align: center; padding: 18px 10px; }
.tile.center .logo { width: 30px; height: 30px; margin: 0 auto 10px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.specs small { display: block; font-size: 10.5px; letter-spacing: .08em; color: var(--faint); text-transform: uppercase; margin-bottom: 4px; }
.specs b { font-size: 13px; font-weight: 600; }
@media (max-width: 860px) {
  .dash { grid-template-columns: 1fr; }
  .side { position: static; }
  .tiles, .tiles.four, .specs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .row-card { flex-wrap: wrap; padding: 18px; }
  .row-card .txt { flex: 1 1 calc(100% - 60px); }
  .row-card > .btn { width: 100%; }
  .inline-form { flex-direction: column; }
  .changelog .entry { grid-template-columns: 1fr; gap: 8px; }
}
.inline-form { display: flex; gap: 10px; }
.inline-form .field { flex: 1; }
.note { font-size: 11.5px; color: var(--faint); font-style: italic; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.msg { font-size: 12.5px; margin-top: 10px; min-height: 18px; }
.msg:empty { display: none; }
.msg.err { color: var(--error); }
.msg.ok { color: var(--ok); }
.device { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 11px; background: rgba(28, 26, 23, .7); border: 1px solid var(--border); }
.device + .device { margin-top: 8px; }
.device .txt { flex: 1; }
.device b { font-size: 13px; }
.device span { font-size: 11.5px; color: var(--dim); display: block; }
.changelog .entry { display: grid; grid-template-columns: 90px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.changelog .entry:last-child { border-bottom: 0; padding-bottom: 0; }
.changelog .entry:first-child { padding-top: 0; }
.changelog ul { margin: 0; padding-left: 18px; color: var(--dim); font-size: 13px; }
.changelog li + li { margin-top: 4px; }
.analysis { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.analysis .hit { padding: 12px 14px; border-radius: 11px; border: 1px solid var(--border); background: rgba(28, 26, 23, .7); }
.analysis .hit b { display: block; font-size: 13px; margin-bottom: 2px; }
.analysis .hit span { font-size: 12.5px; color: var(--dim); }
.analysis .hit.bad { border-color: #4A2722; }
.analysis .hit.good { border-color: #2C4A31; }

/* Anmelden */
.auth { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 40px 0; }
.auth .card { width: min(420px, 100%); padding: 32px 30px; text-align: center; }
.auth .emblem-sm { width: 74px; height: 74px; margin: 0 auto 16px; position: relative; display: grid; place-items: center; }
.auth .emblem-sm img { width: 100%; filter: drop-shadow(0 0 20px rgba(231, 184, 79, .4)); animation: float 6s ease-in-out infinite; }
.auth h1 { margin: 0 0 4px; font-size: 24px; }
.auth h1 .serif { color: var(--pale); font-size: 1.12em; }
.auth p { margin: 0 0 22px; color: var(--dim); font-size: 13px; }
.auth form { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.auth .btn.primary { height: 46px; margin-top: 6px; }
.auth .switch { margin-top: 16px; font-size: 12.5px; color: var(--dim); }
.auth .switch a { color: var(--pale); cursor: pointer; }
.shake { animation: shake .4s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 20px); opacity: 0; padding: 12px 18px; border-radius: 12px;
  background: var(--card); border: 1px solid #5A4726; color: var(--text); font-size: 13px; transition: all .3s ease; z-index: 50; pointer-events: none;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .9); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(43, 30, 7, .3); border-top-color: var(--ink); animation: spin .7s linear infinite; }
.loading-screen { position: fixed; inset: 0; display: grid; place-items: center; z-index: 40; background: var(--bg); transition: opacity .4s; }
.loading-screen img { width: 64px; animation: float 3s ease-in-out infinite, breathe 2s ease-in-out infinite; }
.hidden { display: none !important; }
