:root {
  --bg: #0b0918; --panel: rgba(17, 14, 36, .82); --line: #4a4f72; --text: #eef0fb; --dim: #a29fc4;
  --accent: #2fd8d0; --danger: #e0647a;
  --stone-hi: #5d6786; --stone: #3d4560; --stone-lo: #272d44; --stone-dk: #181c2e;
  --gold: #c19a4a; --gold-dk: #7a5a24; --glow: rgba(47, 216, 208, .45); --ember: #e0703a;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
  --head: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; color: var(--text); font: 15px/1.6 var(--body);
  background: var(--bg);
  background-image:
    radial-gradient(900px 500px at 10% -10%, rgba(47, 216, 208, .13), transparent 70%),
    radial-gradient(800px 520px at 100% 0%, rgba(122, 70, 190, .16), transparent 70%),
    radial-gradient(700px 500px at 50% 110%, rgba(193, 154, 74, .08), transparent 70%);
  background-attachment: fixed; min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; color: #6ff0e8; }
code { background: var(--stone-dk); border: 1px solid var(--stone-lo); border-radius: 4px; padding: 0 5px; font-size: .88em; color: #cfe; }
kbd { background: linear-gradient(var(--stone), var(--stone-lo)); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 7px; font: 600 .85em var(--body); }
small, .dim { color: var(--dim); }
.clear { clear: both; }

/* Kopfzeile */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px; height: 62px; padding: 0 20px;
  background: linear-gradient(rgba(14, 12, 30, .96), rgba(14, 12, 30, .9)); backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--gold-dk); box-shadow: 0 2px 0 #000, 0 4px 24px rgba(47, 216, 208, .12); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand img { height: 40px; width: auto; filter: drop-shadow(0 0 8px var(--glow)); }
.brand span { font: 700 12px var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold-dk); border-radius: 4px; padding: 2px 8px; }
.brand:hover { text-decoration: none; }
.search { position: relative; flex: 1; max-width: 460px; margin-left: auto; }
.search input { width: 100%; height: 38px; padding: 0 14px; border-radius: 8px; color: var(--text); font: inherit;
  background: var(--stone-dk); border: 1px solid var(--line); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .5); outline: none; }
.search input:focus { border-color: var(--accent); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .5), 0 0 0 3px var(--glow); }
#results { position: absolute; left: 0; right: 0; top: 44px; max-height: 70vh; overflow: auto; z-index: 40;
  background: #12102a; border: 1px solid var(--gold-dk); border-radius: 8px; box-shadow: 0 12px 40px rgba(0, 0, 0, .7); }
#results a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; color: var(--text); border-bottom: 1px solid var(--stone-lo); }
#results a:last-child { border: 0; }
#results a:hover, #results a.sel { background: var(--stone-lo); text-decoration: none; }
#results small { margin-left: auto; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
#results .none { padding: 12px; color: var(--dim); }
.burger { display: none; background: var(--stone-lo); color: var(--text); border: 1px solid var(--line); border-radius: 8px; font-size: 20px; width: 40px; height: 38px; cursor: pointer; }

/* Layout */
.shell { display: flex; max-width: 1380px; margin: 0 auto; gap: 24px; padding: 24px 20px 40px; }
.side { width: 210px; flex-shrink: 0; position: sticky; top: 86px; align-self: flex-start; }
.menu { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 12px;
  background: linear-gradient(var(--stone-lo), var(--stone-dk)); border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--stone-hi), 0 8px 24px rgba(0, 0, 0, .4); }
.menu a { padding: 8px 12px; border-radius: 8px; color: var(--text); font-weight: 500; }
.menu a:hover { background: rgba(255, 255, 255, .06); text-decoration: none; }
.menu a.on { background: linear-gradient(90deg, rgba(47, 216, 208, .22), transparent); box-shadow: inset 3px 0 0 var(--accent); color: #fff; }
.stand { margin-top: 14px; padding: 12px; border: 1px dashed var(--gold-dk); border-radius: 10px; font-size: 13px; color: var(--dim); }
.stand b { color: var(--gold); font-family: var(--head); letter-spacing: .06em; }
.main { flex: 1; min-width: 0; padding: 26px 32px 18px; border-radius: 16px;
  background: var(--noise), linear-gradient(rgba(23, 20, 48, .88), rgba(14, 12, 32, .92));
  border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 20px 60px rgba(0, 0, 0, .5); }
h1, h2 { font-family: var(--head); font-weight: 700; letter-spacing: .02em; }
h1 { margin: 6px 0 14px; font-size: 34px; color: #fff; text-shadow: 0 0 22px var(--glow); }
h2 { margin: 30px 0 12px; font-size: 22px; color: var(--gold); padding-bottom: 6px; border-bottom: 1px solid var(--gold-dk); position: relative; }
h2::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 60px; height: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.lead { font-size: 17px; color: #dfe2f6; }
ul { padding-left: 22px; } li { margin: 3px 0; }
ul.plain { list-style: none; padding: 0; margin: 0; }
.crumbs { font-size: 13px; color: var(--dim); margin-bottom: 4px; }
.crumbs span { margin: 0 3px; }
.foot { margin-top: 36px; padding-top: 14px; border-top: 1px solid var(--stone-lo); color: var(--dim); font-size: 12px; text-align: center; }

/* Infobox + Inhalt */
.infobox { float: right; width: 290px; margin: 0 0 16px 22px; border-radius: 12px; overflow: hidden;
  background: linear-gradient(var(--stone-lo), var(--stone-dk)); border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--stone-hi), 0 8px 20px rgba(0, 0, 0, .4); }
.infobox h3 { margin: 0; padding: 9px 12px; text-align: center; font: 700 16px var(--head); color: #1b1305;
  background: linear-gradient(#e0bb68, var(--gold) 55%, var(--gold-dk)); text-shadow: 0 1px 0 rgba(255, 255, 255, .35); }
.ib-img { display: flex; justify-content: center; padding: 16px; background: radial-gradient(circle, rgba(47, 216, 208, .22), transparent 70%); }
.infobox table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.infobox th, .infobox td { padding: 6px 12px; text-align: left; vertical-align: top; border-top: 1px solid rgba(255, 255, 255, .06); }
.infobox th { width: 38%; color: var(--dim); font-weight: 500; }
.toc { display: inline-block; min-width: 190px; max-width: 100%; margin: 4px 0 14px; padding: 10px 18px 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, .25); font-size: 14px; }
.toc b { font-family: var(--head); color: var(--gold); }
.toc ol { margin: 6px 0 0; padding-left: 20px; }

/* Icons */
.ico { width: 32px; height: 32px; image-rendering: pixelated; object-fit: contain; vertical-align: middle; }
.ico.big { width: 96px; height: 96px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .6)); }
.ico.ph { display: inline-block; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .2); }
.il { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.il .ico { width: 24px; height: 24px; }
.cnt { color: var(--gold); font-weight: 600; }
.tex { width: 128px; height: 128px; image-rendering: pixelated; border: 1px solid var(--line); border-radius: 6px; background: #000; }

/* Tabellen */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; margin: 10px 0 6px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 14px; }
.tbl th { text-align: left; padding: 9px 12px; background: linear-gradient(var(--stone), var(--stone-lo)); color: #fff; font-weight: 600; white-space: nowrap; }
.tbl td { padding: 7px 12px; border-top: 1px solid rgba(255, 255, 255, .06); vertical-align: middle; }
.tbl tbody tr:nth-child(even) { background: rgba(255, 255, 255, .025); }
.tbl tbody tr:hover { background: rgba(47, 216, 208, .08); }
.tbl.matrix td:not(:first-child):not(:last-child) { text-align: center; }
.tbl.vt td:first-child { white-space: nowrap; font-size: 16px; }
.badge { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; padding: 2px 7px; border-radius: 99px; vertical-align: middle; }
.badge.live { background: rgba(47, 216, 208, .18); color: var(--accent); border: 1px solid var(--accent); box-shadow: 0 0 10px var(--glow); }
.sortable th { cursor: pointer; } .sortable th:hover { color: var(--accent); }

/* Rezepte */
.recipe { display: flex; align-items: center; gap: 14px; margin: 10px 0; padding: 10px 14px; width: fit-content; max-width: 100%; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, .25); }
.recipe .grid { display: flex; flex-direction: column; gap: 3px; }
.recipe .row { display: flex; gap: 3px; }
.slot { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 6px;
  background: linear-gradient(#20253a, #151829); border: 1px solid #0a0c18; box-shadow: inset 0 2px 5px rgba(0, 0, 0, .6), 0 1px 0 var(--stone-lo); }
.slot a, .slot span.inner { display: flex; } .slot .ico { width: 34px; height: 34px; }
.slot i { position: absolute; right: 3px; bottom: 0; font: 700 12px var(--body); color: #fff; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; }
.slot.res { width: 52px; height: 52px; border-color: var(--gold-dk); box-shadow: inset 0 2px 5px rgba(0, 0, 0, .6), 0 0 14px rgba(193, 154, 74, .35); }
.arrow { color: var(--gold); font-size: 22px; }
.rname { display: flex; flex-direction: column; line-height: 1.25; }
.shapeless { display: flex; gap: 3px; align-items: center; flex-wrap: wrap; max-width: 220px; }
.tag { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin-right: 6px; }
.smelt { padding: 8px 12px; border-left: 3px solid var(--ember); background: rgba(224, 112, 58, .08); border-radius: 0 8px 8px 0; }
.forms, .swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.form, .swatch { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 6px; border: 1px solid var(--line); border-radius: 8px; background: rgba(0, 0, 0, .22); font-size: 13px; }
.swatch i { width: 22px; height: 22px; border-radius: 5px; border: 1px solid rgba(255, 255, 255, .3); }
.form .ico { width: 26px; height: 26px; }

/* Startseite */
.hero { text-align: center; padding: 10px 0 6px; }
.hero img { width: min(560px, 90%); height: auto; filter: drop-shadow(0 0 28px var(--glow)); }
.hero p { max-width: 640px; margin: 8px auto 0; font-size: 17px; color: #dfe2f6; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin: 24px 0; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 14px; color: var(--text);
  background: linear-gradient(160deg, var(--stone), var(--stone-dk)); border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--stone-hi), 0 6px 18px rgba(0, 0, 0, .35); transition: transform .15s, box-shadow .15s, border-color .15s; }
.tile b { font: 700 19px var(--head); color: var(--gold); }
.tile span { color: var(--dim); font-size: 13px; }
.tile:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 10px 30px var(--glow); }
.news { list-style: none; padding: 0; } .news li { padding: 8px 0; border-bottom: 1px solid var(--stone-lo); }

/* Mobil */
@media (max-width: 900px) {
  .burger { display: block; }
  .shell { flex-direction: column; padding: 14px 16px 30px; gap: 14px; }
  .side { display: none; position: static; width: auto; } .side.open { display: block; }
  .main { padding: 18px 16px; } h1 { font-size: 28px; }
  .infobox { float: none; width: 100%; margin: 0 0 16px; }
  .brand span { display: none; } .top { padding: 0 14px; gap: 10px; }
  .tbl { display: block; overflow-x: auto; white-space: nowrap; }
}
.infobox code { word-break: break-all; }
.tbl.vt td:nth-child(4) { white-space: nowrap; }
.hero h1 { margin: 6px 0 8px; font-size: 38px; }
.hero .lead { max-width: 680px; margin: 0 auto; }
.prose p { max-width: 80ch; }
.faq-item { margin: 0 0 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, .22); }
.faq-item h3 { margin: 0 0 4px; font: 700 17px var(--head); color: var(--accent); }
.faq-item p { margin: 0; }
ul.tiles { list-style: none; padding: 0; }
ul.tiles li { margin: 0; display: flex; } ul.tiles .tile { flex: 1; }

/* 3D-Ansicht der Mobs */
.mobview { margin: 18px 0 8px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(var(--stone-lo), var(--stone-dk)); box-shadow: inset 0 1px 0 var(--stone-hi), 0 8px 24px rgba(0, 0, 0, .4); }
.mv-stage { position: relative; height: clamp(300px, 46vw, 460px); background: radial-gradient(ellipse at 50% 38%, rgba(47, 216, 208, .22), transparent 62%), radial-gradient(ellipse at 50% 110%, rgba(193, 154, 74, .18), transparent 60%), #0e0c20; }
.mv-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; outline-offset: -3px; touch-action: none; }
.mobview.dragging canvas { cursor: grabbing; }
.mv-poster { position: absolute; inset: 0; margin: auto; max-width: 72%; max-height: 92%; object-fit: contain; image-rendering: pixelated; opacity: .55; filter: blur(1px); transition: opacity .3s; pointer-events: none; }
.mv-loading { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; color: var(--dim); font-size: 13px; pointer-events: none; }
.mobview.ready .mv-poster, .mobview.ready .mv-loading { opacity: 0; visibility: hidden; }
.mobview.failed .mv-poster { opacity: 1; filter: none; } .mobview.failed .mv-loading { display: none; } .mobview.failed canvas { display: none; }
.mv-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 10px 12px 4px; }
.mv-bar:empty { display: none; }
.mv-views, .mv-opts, .mv-group, .mv-swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mv-btn { cursor: pointer; font: 600 13px var(--body); color: var(--text); padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: linear-gradient(var(--stone), var(--stone-lo)); }
.mv-btn:hover { border-color: var(--accent); } .mv-btn:focus-visible, .mv-sw:focus-visible, .mv-stage canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mv-btn[aria-pressed="true"] { border-color: var(--accent); color: #0b0918; background: linear-gradient(#6ff0e8, var(--accent)); }
.mv-sw { width: 22px; height: 22px; padding: 0; border-radius: 50%; cursor: pointer; border: 2px solid rgba(255, 255, 255, .25); }
.mv-sw[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); }
.mv-note { margin: 0; padding: 4px 14px 12px; color: var(--dim); font-size: 12.5px; }
.render { width: 100%; max-width: 230px; height: auto; image-rendering: pixelated; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .6)); }
.gallery { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; clear: both; }
.gallery a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: radial-gradient(circle at 50% 35%, rgba(47, 216, 208, .14), rgba(0, 0, 0, .25)); color: var(--text); font-size: 13px; }
.gallery a:hover { border-color: var(--accent); text-decoration: none; }
.gallery img { width: 100%; height: auto; image-rendering: pixelated; }
@media (max-width: 900px) { .mv-stage { height: clamp(280px, 70vw, 420px); } }
