/* Neuhafen Konzern – Webseite. Farben wie im Spiel, hell und dunkel. Keine externen Schriften oder Bibliotheken. */
:root {
  --bg: #f3f7fc; --bg2: #e8eff8; --surface: #ffffff; --surface2: #f5f8fd; --text: #18233a; --muted: #5c6b84;
  --line: #dde6f1; --primary: #2f6fed; --primary2: #5b8dff; --accent: #14b789; --accent2: #2dd4a4; --gold: #f2b01e; --danger: #e5484d;
  --hero1: #dcebff; --hero2: #f4f8ff; --ink-on-primary: #ffffff;
  --shadow: 0 10px 34px rgba(31, 52, 96, .12); --shadow2: 0 2px 10px rgba(31, 52, 96, .08);
  --r: 18px; --maxw: 1200px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0e1522; --bg2: #121b2c; --surface: #172033; --surface2: #1e2a41; --text: #e8eef9; --muted: #9aa9c3;
  --line: #2a3855; --primary: #5b8dff; --primary2: #7ea4ff; --accent: #2dd4a4; --accent2: #5ee6bf; --gold: #f7c548; --danger: #ff6b70;
  --hero1: #14213a; --hero2: #0e1522;
  --shadow: 0 10px 34px rgba(0, 0, 0, .45); --shadow2: 0 2px 10px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--text); font-size: 17px; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; }
img, video { display: block; height: auto; }
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.18rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } body { font-size: 16px; } }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--primary2); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 24px; border-radius: 14px;
  font-weight: 700; font-size: 1rem; text-decoration: none; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  box-shadow: var(--shadow2); cursor: pointer; transition: transform .15s, box-shadow .15s; font-family: inherit; line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn.play { background: linear-gradient(135deg, #12a97e, #2dd4a4); color: #fff; border-color: transparent; box-shadow: 0 10px 28px rgba(20, 183, 137, .32); }
.btn.primary { background: linear-gradient(135deg, var(--primary), var(--primary2)); color: #fff; border-color: transparent; }
.btn.lg { padding: 16px 30px; font-size: 1.08rem; border-radius: 16px; }
.btn.sm { padding: 9px 16px; font-size: .92rem; border-radius: 12px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.iconbtn { width: 42px; height: 42px; padding: 0; border-radius: 12px; }

/* Kopfzeile */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.brand img { width: 172px; height: auto; }
.brand .dk { display: none; }
:root[data-theme="dark"] .brand .lt { display: none; }
:root[data-theme="dark"] .brand .dk { display: block; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 11px; border-radius: 10px; white-space: nowrap; }
.nav a:hover { background: var(--surface2); color: var(--primary); }
.top-actions { display: flex; gap: 8px; align-items: center; flex: none; }
.menubtn { display: none; }
@media (max-width: 1180px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 66px; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 16px 18px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; font-size: 1.02rem; }
  .menubtn { display: inline-flex; }
  .top-actions { margin-left: auto; }
}
@media (max-width: 600px) { .top .play-top { display: none; } .brand img { width: 150px; } }

/* Hero */
.hero { background: radial-gradient(ellipse 80% 70% at 75% 30%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%), linear-gradient(180deg, var(--hero1), var(--hero2)); padding: 64px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.hero .kicker { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); padding: 6px 14px; border-radius: 99px; font-weight: 700; font-size: .88rem; color: var(--primary); box-shadow: var(--shadow2); margin-bottom: 18px; }
.hero .kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.hero p.lead { font-size: 1.18rem; color: var(--muted); max-width: 34em; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 18px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-weight: 600; font-size: .95rem; }
.hero .facts li { display: flex; align-items: center; gap: 7px; }
.hero .facts svg { width: 18px; height: 18px; color: var(--accent); }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; } .hero { padding: 40px 0 48px; } }

/* Fenster-Rahmen für Film und Screenshots */
.win { background: var(--surface); border-radius: 16px; box-shadow: 0 24px 60px rgba(20, 35, 70, .22); border: 1px solid var(--line); overflow: hidden; }
:root[data-theme="dark"] .win { box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.win .bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--surface2); border-bottom: 1px solid var(--line); }
.win .bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff6b70; }
.win .bar i:nth-child(2) { background: #f7c548; } .win .bar i:nth-child(3) { background: #2dd4a4; }
.win .bar span { margin-left: 10px; font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win video, .win img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #0b1220; }
.win video { aspect-ratio: 16 / 9; }
.note { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.hero .note { text-align: center; }

/* Abschnitte */
section { padding: 88px 0; }
section.alt { background: var(--bg2); }
@media (max-width: 600px) { section { padding: 60px 0; } }
.sec-head { max-width: 760px; margin-bottom: 40px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; font-weight: 800; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }
.sec-head p { font-size: 1.1rem; color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 52px; align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); gap: 32px; } .split.rev > :first-child { order: 0; } }

/* Merkmalslisten und Karten */
.feat { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 14px; }
.feat li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.feat .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); }
.feat .ic.g { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.feat .ic.y { background: color-mix(in srgb, var(--gold) 20%, transparent); color: #c98a06; }
:root[data-theme="dark"] .feat .ic.y { color: var(--gold); }
.feat .ic svg { width: 22px; height: 22px; }
.feat b { display: block; }
.feat span { color: var(--muted); font-size: .97rem; }
.cards { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow2); }
.card h3 { display: flex; align-items: center; gap: 10px; }
.card p { color: var(--muted); margin: 0; }
.card .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; flex: none; }
.card .ic svg { width: 24px; height: 24px; }

/* Story */
.story-quote { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px 22px 24px; box-shadow: var(--shadow2); margin: 22px 0; }
.story-quote .who { font-weight: 800; color: var(--primary); font-size: .9rem; margin-bottom: 4px; }
.story-quote p { margin: 0; }
.twoways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 600px) { .twoways { grid-template-columns: minmax(0, 1fr); } }
.twoways .card { padding: 18px; }

/* Branchen */
.brgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1000px) { .brgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .brgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.br {
  position: relative; text-align: left; font: inherit; color: var(--text); background: var(--surface); border: 2px solid var(--line); border-radius: 16px;
  padding: 14px; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; align-items: center; cursor: pointer; transition: border-color .15s, transform .15s, opacity .2s, box-shadow .15s;
}
.br:hover { transform: translateY(-2px); box-shadow: var(--shadow2); }
.br .bi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; grid-row: span 2; }
.br .bi svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.br b { font-size: .98rem; line-height: 1.2; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 420px) { .br { grid-template-columns: minmax(0, 1fr); padding: 12px; } .br .bi { grid-row: auto; width: 34px; height: 34px; } .br b { font-size: .92rem; } }
.br small { color: var(--muted); font-size: .8rem; line-height: 1.3; }
.br .tag { position: absolute; top: -10px; right: 10px; font-size: .7rem; font-weight: 800; padding: 2px 8px; border-radius: 99px; color: #fff; display: none; }
.brgrid.focus .br { opacity: .45; }
.brgrid.focus .br.sel, .brgrid.focus .br.sup, .brgrid.focus .br.cus { opacity: 1; }
.br.sel { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 22%, transparent); }
.br.sup { border-color: var(--accent); } .br.sup .tag.t-sup { display: block; background: var(--accent); }
.br.cus { border-color: var(--gold); } .br.cus .tag.t-cus { display: block; background: #d99a0b; }
.br.sup.cus .tag.t-cus { right: auto; left: 10px; }
.brinfo { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 900px) { .brinfo { grid-template-columns: minmax(0, 1fr); } }
.brinfo .card { padding: 18px 20px; }
.brinfo h3 { font-size: 1.05rem; margin-bottom: .3em; }
.brinfo ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 16px; font-size: .9rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 14px; height: 14px; border-radius: 5px; border: 3px solid; }

/* Schritte Produktion */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: st; margin-bottom: 40px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps .card { position: relative; padding: 20px; }
.steps .card::before { counter-increment: st; content: counter(st); position: absolute; top: 16px; right: 18px; font-weight: 800; font-size: 1.6rem; color: color-mix(in srgb, var(--primary) 30%, transparent); }
.steps h3 { font-size: 1.05rem; }
.steps p { font-size: .95rem; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) { .duo { grid-template-columns: minmax(0, 1fr); } }

/* Börse */
.tri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
@media (max-width: 600px) { .tri { grid-template-columns: minmax(0, 1fr); } }
.tri .card { padding: 18px; }
.tri h3 { font-size: 1.02rem; }
.tri p { font-size: .93rem; }

/* Zeitfaktor-Rechner */
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow2); }
.calc label { font-weight: 700; display: block; margin-bottom: 8px; }
.calc input[type="range"] { width: 100%; accent-color: var(--primary); }
.calc .out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
@media (max-width: 600px) { .calc .out { grid-template-columns: minmax(0, 1fr); } }
.calc .out div { background: var(--surface2); border-radius: 14px; padding: 14px; }
.calc .out b { display: block; font-size: 1.35rem; color: var(--primary); }
.calc .out span { font-size: .88rem; color: var(--muted); }

/* Screenshots */
.shot { margin: 0; }
.shot figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; text-align: center; }
.shot button { all: unset; display: block; cursor: zoom-in; width: 100%; border-radius: 16px; }
.shot button:focus-visible { outline: 3px solid var(--primary2); outline-offset: 3px; }
.phone { max-width: 300px; margin: 0 auto; border-radius: 34px; padding: 10px; background: #0f1626; box-shadow: 0 24px 60px rgba(20, 35, 70, .28); }
.phone img { border-radius: 26px; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; }
@media (max-width: 640px) { .win.adapt .bar { display: none; } .win.adapt { max-width: 300px; margin: 0 auto; border-radius: 34px; padding: 10px; background: #0f1626; border: 0; } .win.adapt img { border-radius: 26px; aspect-ratio: 390 / 844; } }

/* Galerie */
.gtabs { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px; gap: 4px; margin-bottom: 24px; }
.gtabs button { font: inherit; font-weight: 700; border: 0; background: transparent; color: var(--muted); padding: 9px 18px; border-radius: 10px; cursor: pointer; }
.gtabs button[aria-selected="true"] { background: var(--primary); color: #fff; }
.gallery { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery.handy { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gallery.handy { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .gallery { grid-template-columns: minmax(0, 1fr); } .gallery.handy { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gallery .shot img { width: 100%; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow2); aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.gallery.handy .shot img { aspect-ratio: 390 / 844; border-radius: 18px; }
dialog.lb { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1440px); max-height: 94vh; }
dialog.lb::backdrop { background: rgba(8, 12, 22, .86); }
dialog.lb img { max-width: 100%; max-height: 86vh; width: auto; border-radius: 14px; margin: 0 auto; }
dialog.lb p { color: #e8eef9; text-align: center; margin: 10px 0 0; }
dialog.lb .x { position: fixed; top: 14px; right: 14px; background: #fff; color: #18233a; border: 0; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; box-shadow: var(--shadow2); }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 28px 18px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.5rem; color: var(--primary); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* Kontaktformular */
.kontakt { max-width: 640px; margin: 0 auto; display: grid; gap: 14px; }
.kontakt label { display: grid; gap: 6px; font-weight: 600; }
.kontakt input, .kontakt textarea { font: inherit; color: var(--text); background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; width: 100%; min-width: 0; }
.kontakt textarea { resize: vertical; }
.kontakt .btn { justify-self: start; }
.kontakt .btn[disabled] { opacity: .5; cursor: not-allowed; }
.kontakt p { margin: 0; }
.kontakt-falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.kontakt-hinweis.gut { color: var(--accent); font-weight: 700; }
.kontakt-hinweis.warnung { color: var(--danger); font-weight: 700; }

/* Schluss-CTA und Fuß */
.final { text-align: center; background: radial-gradient(ellipse at 50% 0%, #2a4a8f, #0e1522 70%); color: #fff; }
.final h2 { color: #fff; }
.final p { color: #c9d5ea; font-size: 1.15rem; max-width: 640px; margin: 0 auto 28px; }
.final img.logo { width: min(420px, 86%); margin: 0 auto 26px; }
.foot { padding: 32px 0; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: var(--muted); }

/* Einblenden beim Scrollen */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }
