/* EMORYX AI – Website. Farben und Schrift wie im Programm (app/frontend/styles.css).
   Keine externen Schriften, keine Cookies, keine Fremd-Skripte. */

:root {
  --bg: #0b0c14;           /* Nachtschwarz */
  --bg2: #10121c;
  --panel: #161925;
  --panel2: #1e2130;
  --line: #2a2e40;
  --text: #eceaf4;
  --muted: #9d9bb2;
  --accent: #b8a4f0;       /* Lavendel */
  --accent2: #f4e04d;      /* Zitronengelb */
  --grad: var(--accent);   /* keine Verläufe: Farben bleiben getrennt */
  --red-text: #c4b3f5;     /* Lavendel für Schrift */
  --green-text: #f4e04d;   /* Zitronengelb für Schrift */
  --ok: #f4e04d;
  --warn: #ffb547;
  --r: 14px;
  --wrap: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 "Segoe UI Variable", "Segoe UI", Inter, system-ui, -apple-system, Roboto, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-text); text-underline-offset: 3px; }
a:hover { color: #ddd2ff; }
:focus-visible { outline: 2px solid var(--accent2); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--panel2); color: var(--text); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.muted { color: var(--muted); }
.grad-text { color: var(--accent); }

/* ---------- Kopfzeile ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 12, 20, 0.86);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: 0.08em; font-size: 0.95rem; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.93rem; }
.nav a:hover { color: var(--text); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 9px; color: var(--text); width: 44px; height: 44px; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; display: block; margin: 0 auto; }

/* ---------- Schaltflächen ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 11px; font-weight: 600; font-size: 0.98rem; text-decoration: none; border: 1px solid transparent; transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent2); color: #0b0c14; }
.btn-primary:hover { color: #0b0c14; background: #f8e977; }
.btn-ghost { background: var(--panel); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: #3c4158; color: var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 76px 0 84px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 0%, #000 20%, transparent 75%);
  opacity: 0.55;
}
.hero::after {
  content: ""; position: absolute; top: -180px; right: -160px; width: 620px; height: 620px; pointer-events: none;
  background: radial-gradient(circle, rgba(184, 164, 240, 0.20), transparent 65%);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 9px; font-size: 0.84rem; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; margin-bottom: 22px; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 10px rgba(255, 181, 71, 0.7); }
.slogan { font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); margin-bottom: 14px; }
.slogan b { color: var(--red-text); font-weight: 700; }
.footer-slogan { letter-spacing: 0.08em; }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 700; }
.lead { margin-top: 22px; font-size: 1.14rem; color: #c9c7da; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.facts { display: flex; flex-wrap: wrap; gap: 28px 40px; margin: 40px 0 0; padding: 0; list-style: none; }
.facts b { display: block; font-size: 1.5rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.facts span { font-size: 0.86rem; color: var(--muted); }

/* ---------- Bild-Platzhalter ---------- */
.slot {
  display: grid; place-items: center; text-align: center;
  aspect-ratio: 16 / 10; padding: 18px;
  border: 1.5px dashed #3c4158; border-radius: var(--r);
  background: repeating-linear-gradient(135deg, #12141f 0 14px, #161925 14px 28px);
  color: var(--muted); font-size: 0.86rem; line-height: 1.45;
}
.slot--square { aspect-ratio: 1; }
.slot b { display: block; color: var(--text); font-size: 0.98rem; margin-bottom: 4px; }
.slot svg { width: 30px; height: 30px; margin: 0 auto 10px; opacity: 0.55; display: block; }
.hero .slot { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }

/* Offene Punkte, die vor der Veröffentlichung geklärt werden müssen */
.todo { border: 1px dashed var(--warn); color: var(--warn); background: rgba(255, 181, 71, 0.07); border-radius: 6px; padding: 1px 8px; font-size: 0.92em; white-space: nowrap; }

/* ---------- Abschnitte ---------- */
.section { padding: 84px 0; border-top: 1px solid var(--line); }
.section--alt { background: var(--bg2); }
.eyebrow { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--green-text); font-weight: 600; margin-bottom: 12px; }
.section h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
.section-intro { margin-top: 14px; color: var(--muted); max-width: 44em; }
.section-head { margin-bottom: 40px; }

.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.card h3 { font-size: 1.06rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card--top { position: relative; overflow: hidden; }
.card--top::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--grad); }

.group { margin-top: 44px; }
.group:first-of-type { margin-top: 0; }
.group-title { display: flex; align-items: center; gap: 14px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); font-weight: 600; margin-bottom: 16px; }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.badge { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 999px; padding: 2px 10px; margin-bottom: 10px; }
.badge--wip { color: var(--warn); border: 1px solid rgba(255, 181, 71, 0.45); }
.badge--plan { color: var(--muted); border: 1px solid var(--line); }

/* Schritte */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 58px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 20px; left: 22px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent2); color: #0b0c14; font-weight: 700; font-size: 0.9rem;
}

/* Beispiele: Ausgangsbild -> Modell */
/* Echte Bilder */
.hero-shot { margin: 0; }
.hero-shot img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.hero-shot figcaption { margin-top: 12px; font-size: 0.84rem; color: var(--muted); text-align: center; }
.result .model { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); }
.result img.source { position: absolute; left: 12px; bottom: 12px; width: 32%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 2px solid #3c4158; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55); background: #fff; }
.example figcaption b { color: var(--text); font-weight: 600; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gallery figure { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.3s ease; }
/* Drüberfahren: Ausgangsbild (weiß) statt 3D-Modell */
.flip { position: relative; display: block; cursor: pointer; outline-offset: -3px; }
.flip img.before { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; opacity: 0; transition: opacity 0.25s ease; border-radius: inherit; }
.flip .tag { position: absolute; top: 12px; left: 12px; background: rgba(11, 12, 20, 0.9); color: #fff; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; opacity: 0; transition: opacity 0.25s ease; pointer-events: none; }
.flip:hover img.before, .flip:focus-visible img.before, .flip.show img.before,
.flip:hover .tag, .flip:focus-visible .tag, .flip.show .tag { opacity: 1; }
.hero-shot .flip { border-radius: 18px; }
.hero-shot .flip img.before { border-radius: 18px; border: 1px solid var(--line); }
.result.flip { border-radius: var(--r); }
.result.flip img.before { border-radius: var(--r); z-index: 1; }
.result.flip .tag { z-index: 2; }
.gallery figcaption { padding: 10px 14px; font-size: 0.9rem; font-weight: 600; border-top: 1px solid var(--line); }
.pack-note { margin-top: 28px; background: var(--panel); border: 1px dashed #3c4158; border-radius: var(--r); padding: 22px; max-width: 720px; }
.pack-note h3 { font-size: 1.1rem; margin-bottom: 6px; }
.pack-note p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 980px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .gallery figcaption { font-size: 0.82rem; padding: 8px 10px; } }
@media (prefers-reduced-motion: reduce) { .gallery img, .flip img.before, .flip .tag { transition: none; } }

.result { position: relative; }
.result > .slot:not(.source) { place-items: start center; padding-top: 20%; }
.result .source { position: absolute; left: 12px; bottom: 12px; width: 34%; padding: 8px; background: var(--panel2); border-style: solid; border-color: #3c4158; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.result .source b { font-size: 0.78rem; margin: 0; }
.example figcaption { margin-top: 12px; font-size: 0.92rem; color: var(--muted); }
.example { margin: 0; }

/* Listen */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; color: #c9c7da; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 0.5em; width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.checks b { color: var(--text); font-weight: 600; }

.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table th, .table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; }
.req-detail { margin-top: 36px; align-items: start; }
.note b { color: var(--text); }
.note { margin-top: 12px; font-size: 0.86rem; color: var(--muted); }

/* Preis */
.price-box { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 36px; max-width: 720px; }
.price-box h3 { font-size: 1.4rem; margin-bottom: 10px; }
.price-box p + p { margin-top: 12px; }

/* FAQ */
.faq { max-width: 820px; display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.3rem; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 18px; color: var(--muted); font-size: 0.96rem; }

/* Fußzeile */
.footer { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 0.88rem; color: var(--muted); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.footer nav { display: flex; gap: 22px; margin-left: auto; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }
.footer .legal-note { flex-basis: 100%; font-size: 0.8rem; opacity: 0.8; }

/* Rechtstexte */
.legal { max-width: 760px; padding: 56px 0 80px; }
.legal h1 { font-size: 2rem; margin-bottom: 24px; }
.legal h2 { font-size: 1.2rem; margin: 34px 0 10px; }
.legal p, .legal li { color: #c9c7da; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; }
.draft-banner { border: 1px dashed var(--warn); background: rgba(255, 181, 71, 0.07); color: var(--warn); border-radius: 12px; padding: 14px 18px; margin-bottom: 30px; font-size: 0.95rem; }
.legal .todo { white-space: normal; }

/* ---------- Kleinere Bildschirme ---------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg2); border-bottom: 1px solid var(--line); padding: 8px 24px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a:last-child { border-bottom: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 48px 0 60px; }
  .section { padding: 60px 0; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .cta .btn { flex: 1 1 100%; }
  .price-box { padding: 24px; }
  .footer nav { margin-left: 0; }
  .todo { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Großansicht mit allen Blickwinkeln */
html.no-scroll { overflow: hidden; }
.viewer { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; color: var(--text); }
.viewer::backdrop { background: rgba(5, 6, 12, 0.88); }
.viewer[open] { display: grid; place-items: center; }
.viewer-box { width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.viewer-head { display: flex; align-items: center; gap: 14px; }
.viewer-title { font-size: 1.2rem; }
.viewer-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent2); font-weight: 600; }
.viewer-close { margin-left: auto; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.viewer-close:hover { border-color: var(--accent); }
.viewer-stage { position: relative; min-height: 0; flex: 1; display: grid; place-items: center; }
.viewer-img { width: 100%; max-height: calc(100vh - 260px); aspect-ratio: 1; object-fit: contain; border-radius: 12px; background: #000; }
.viewer-img.is-before { background: #fff; }
.viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: rgba(11, 12, 20, 0.8); color: var(--text); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.viewer-nav:hover { border-color: var(--accent); color: var(--accent); }
.viewer-nav.prev { left: 10px; }
.viewer-nav.next { right: 10px; }
.viewer-thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.viewer-thumbs button { padding: 0; border: 2px solid var(--line); border-radius: 10px; background: var(--panel2); color: var(--muted); cursor: pointer; overflow: hidden; font: inherit; }
.viewer-thumbs button[aria-selected="true"] { border-color: var(--accent2); color: var(--text); }
.viewer-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.viewer-thumbs img.is-before { object-fit: contain; background: #fff; }
.viewer-thumbs span { display: block; font-size: 0.72rem; padding: 4px 2px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) {
  .viewer-box { padding: 12px; gap: 10px; }
  .viewer-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .viewer-img { max-height: calc(100vh - 330px); }
  .viewer-nav { width: 38px; height: 38px; font-size: 1.4rem; }
}

/* Packs und Animationen */
.pack .checks { margin: 14px 0 4px; }
.pack .checks li { font-size: 0.95rem; }
.anim-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.anim-list li { border: 1px solid var(--line); background: var(--panel2); border-radius: 999px; padding: 4px 12px; font-size: 0.88rem; color: var(--text); }
#animationen .slot { aspect-ratio: 16 / 10; }
/* 9 Modelle: 3 pro Reihe; am Handy 2 pro Reihe, ein einzelnes letztes Bild nimmt die ganze Breite */
.gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery figure:last-child:nth-child(odd) { grid-column: span 2; }
}

/* Akzente: Lavendel und Zitronengelb, nie gemischt */
.section h2 { color: var(--accent); }
.gallery figure:hover { border-color: var(--accent2); }
.card--top::before { background: var(--accent); }
.lead .hl { color: var(--accent2); font-weight: 700; }

/* Sprachwahl mit Flaggen */
.lang { display: flex; gap: 6px; margin-left: 22px; }
.lang a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 0.8rem; font-weight: 600; }
.lang a:hover { color: var(--text); border-color: var(--accent); }
.lang a[aria-current="true"] { color: var(--text); border-color: var(--accent); background: var(--panel); }
.flag { width: 22px; height: 14px; border-radius: 2px; display: block; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15); flex: none; }
@media (max-width: 860px) {
  .lang { margin-left: auto; }
  .nav-toggle { margin-left: 8px; }
}
@media (max-width: 400px) { .lang a span { display: none; } }

/* Erster Besuch: Sprache wählen */
.lang-choice { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(5, 6, 12, 0.92); }
.lang-choice[hidden] { display: none; }
.lang-choice-box { width: min(520px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 32px; text-align: center; }
.lang-choice-brand { letter-spacing: 0.16em; font-weight: 700; color: var(--accent); font-size: 0.9rem; margin-bottom: 10px; }
.lang-choice h2 { font-size: 1.35rem; color: var(--text); }
.lang-choice h2 span { color: var(--muted); }
.lang-choice-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.lang-choice-buttons a { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 12px; border: 2px solid var(--line); border-radius: 14px; background: var(--panel2); color: var(--text); text-decoration: none; }
.lang-choice-buttons a:hover, .lang-choice-buttons a:focus-visible { border-color: var(--accent2); }
.lang-choice-buttons a.suggested { border-color: var(--accent); }
.lang-choice-buttons .flag { width: 72px; height: 44px; border-radius: 4px; }
.lang-choice-buttons b { font-size: 1.05rem; }
@media (max-width: 400px) { .lang-choice-box { padding: 22px; } }

/* Reihenfolge in der Kopfzeile: Logo | Menü | Sprache | Handy-Menüknopf */
.header .nav { order: 2; }
.header .lang { order: 3; }
.header .nav-toggle { order: 4; }


/* EMORYX-Logo */
.brand { gap: 10px; }
.brand-e { height: 32px; width: auto; }
.brand-word { height: 18px; width: auto; }
.hero-logo { display: block; width: min(340px, 100%); height: auto; margin: 0 0 18px; }
.lang-choice-logo { display: block; width: 170px; height: auto; margin: 0 auto 14px; }
.footer-slogan { display: inline-flex; align-items: center; gap: 8px; }
.footer-slogan img { height: 20px; width: auto; }
@media (max-width: 400px) { .brand-word { height: 14px; } .brand-e { height: 26px; } }

/* Dungeon-Paket */
.pack-summary { max-width: 760px; margin-bottom: 26px; }
.pack-summary .checks { margin: 12px 0 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 999px; padding: 6px 14px; font-size: 0.88rem; cursor: pointer; }
.chip span { opacity: 0.7; margin-left: 4px; font-variant-numeric: tabular-nums; }
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent2); border-color: var(--accent2); color: #0b0c14; font-weight: 600; }
.pack-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.pack-item { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pack-item[hidden] { display: none; }
.pack-item:hover { border-color: var(--accent2); }
.pack-open { display: block; width: 100%; padding: 0; border: 0; background: #fff; cursor: pointer; }
.pack-open img { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; }
.pack-item figcaption { padding: 8px 10px; font-size: 0.8rem; font-weight: 600; border-top: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 980px) { .pack-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pack-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .pack-item figcaption { font-size: 0.72rem; padding: 6px 8px; } }
/* Großansicht für kleine Vorschaubilder (384 px): nicht größer als das Bild aufziehen */
.viewer--small .viewer-box { width: min(560px, calc(100vw - 32px)); }
.viewer--small .viewer-img { background: #fff; }
.viewer--small .viewer-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 260px; }
.viewer--single .viewer-nav, .viewer--single .viewer-thumbs { display: none; }

/* Großansicht: Bild nie über die kleinen Vorschaubilder ragen lassen */
.viewer-stage { overflow: hidden; }
.viewer--small .viewer-img { max-height: min(460px, calc(100vh - 330px)); }
.viewer--small .viewer-thumbs { max-width: 180px; }
@media (max-height: 700px) { .viewer-img { max-height: calc(100vh - 300px); } .viewer-thumbs img { max-height: 70px; } }

