/* Kontor 1750 – website (start page, features, legal pages). Phone first. */
:root {
  --ink: #2b1d12; --ink2: #5a4632; --parch: #f6ecd5; --parch2: #efe0bd; --card: #fffaf0;
  --wood: #2a1a0e; --wood2: #3b2414; --gold: #d6a93a; --gold2: #f1d58a; --red: #8e2f22; --red2: #a8392a; --sea: #2d4a63;
  --line: rgba(59, 36, 20, .15); --r: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--parch); color: var(--ink); font: 17px/1.55 Georgia, 'Times New Roman', serif; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: var(--red); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(28px, 6vw, 42px); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* top bar */
.top { position: sticky; top: 0; z-index: 50; background: rgba(42, 26, 14, .94); backdrop-filter: blur(6px); color: #fff6dd; }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 58px; }
.logo { display: flex; align-items: center; gap: 9px; color: #fff6dd; text-decoration: none; font-weight: bold; font-size: 20px; letter-spacing: .3px; white-space: nowrap; }
.logo img { width: 32px; height: 32px; border-radius: 8px; }
.top nav { display: flex; gap: 18px; margin-left: auto; align-items: center; }
.top nav a.nl { color: #f0e2c0; text-decoration: none; font-size: 15px; }
.top nav a.nl:hover { color: var(--gold2); }
.lang { display: flex; border: 1px solid rgba(255, 246, 221, .35); border-radius: 20px; overflow: hidden; }
.lang button { background: none; border: 0; color: #f0e2c0; font: 600 13px Georgia, serif; padding: 5px 9px; cursor: pointer; }
.lang button.on { background: var(--gold); color: var(--wood); }
@media (max-width: 720px) { .top nav a.nl { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 12px; border: 2px solid transparent; font: 600 18px Georgia, serif; text-decoration: none; cursor: pointer; }
.btn.play { background: var(--red); color: #fff6dd; border-color: #5e1c13; box-shadow: 0 4px 0 #5e1c13; }
.btn.play:hover { background: var(--red2); }
.btn.ghost { background: rgba(255, 246, 221, .12); color: #fff6dd; border-color: rgba(255, 246, 221, .55); }
.btn.dark { background: var(--wood2); color: #fff6dd; }
.btn.small { min-height: 38px; padding: 7px 14px; font-size: 15px; box-shadow: 0 3px 0 #5e1c13; }

/* hero */
.hero { position: relative; color: #fff6dd; background: #1d140c url(img/hero.jpg) center/cover no-repeat; min-height: min(92vh, 760px); display: flex; align-items: flex-end; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29, 20, 12, .15) 0%, rgba(29, 20, 12, .55) 45%, rgba(29, 20, 12, .95) 100%); }
.hero .wrap { position: relative; padding-top: 80px; padding-bottom: 48px; width: 100%; }
.hero h1 { font-size: clamp(44px, 11vw, 86px); margin: 0; text-shadow: 0 3px 18px rgba(0, 0, 0, .5); }
.hero .tag { font-size: clamp(19px, 4.4vw, 26px); margin: 8px 0 22px; max-width: 760px; color: #fbeccb; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.badge { background: rgba(255, 246, 221, .14); border: 1px solid rgba(241, 213, 138, .55); color: var(--gold2); padding: 6px 12px; border-radius: 30px; font-size: 14px; font-weight: 600; }
.alpha { display: inline-block; background: var(--gold); color: var(--wood); font: 700 12px Georgia, serif; letter-spacing: 1px; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; margin-bottom: 12px; }

/* sections */
section { padding: 64px 0; }
section.dark { background: var(--wood); color: #fbeccb; }
section.dark h2 { color: #fff6dd; }
section.alt { background: var(--parch2); }
.lead { font-size: 19px; color: var(--ink2); max-width: 760px; margin: 0 0 28px; }
.dark .lead { color: #e7d3a8; }

/* trailer */
.trailer { position: relative; border-radius: var(--r); overflow: hidden; box-shadow: 0 14px 40px rgba(0, 0, 0, .45); background: #000; aspect-ratio: 16 / 9; }
.trailer.vert { aspect-ratio: 9 / 16; max-width: 420px; margin: 0 auto; }
.trailer video, .trailer img { width: 100%; height: 100%; object-fit: cover; }
.trailer .playbtn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .25); border: 0; cursor: pointer; }
.trailer .playbtn span { width: 84px; height: 84px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 6px rgba(255, 246, 221, .35); display: flex; align-items: center; justify-content: center; }
.trailer .playbtn span::after { content: ''; border-left: 26px solid #fff6dd; border-top: 16px solid transparent; border-bottom: 16px solid transparent; margin-left: 6px; }

/* feature cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: 0 6px 18px rgba(59, 36, 20, .08); display: flex; flex-direction: column; }
.card .pic { aspect-ratio: 4 / 3; overflow: hidden; background: var(--parch2); }
.card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .pic img { transform: scale(1.04); }
.card .txt { padding: 16px 18px 20px; }
.card h3 { font-size: 21px; margin-bottom: 6px; }
.card p { margin: 0; color: var(--ink2); font-size: 16px; }
.card .ic { font-size: 22px; margin-right: 6px; }

/* devices */
.phones { display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 18px; scroll-snap-type: x mandatory; }
.phone { flex: 0 0 auto; width: 200px; border-radius: 26px; border: 7px solid #120c07; overflow: hidden; background: #000; scroll-snap-align: center; box-shadow: 0 10px 26px rgba(0, 0, 0, .4); }
.phone img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.devices { display: grid; grid-template-columns: 1fr; gap: 26px; align-items: center; }
@media (min-width: 900px) { .devices { grid-template-columns: 1fr 1.2fr; } }
.install { background: rgba(255, 246, 221, .08); border: 1px solid rgba(241, 213, 138, .35); border-radius: var(--r); padding: 18px; margin-top: 18px; }
.install p { margin: 0 0 12px; font-size: 16px; }
.install .install-hint { margin: 14px 0 0; padding: 12px 14px; background: rgba(0,0,0,.25); border-radius: var(--r); line-height: 1.5; }

/* fair play */
.fair { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.fair div { background: var(--card); border-radius: var(--r); padding: 16px 18px; border-left: 5px solid var(--gold); }
.fair b { display: block; font-size: 18px; margin-bottom: 3px; }
.fair span { color: var(--ink2); font-size: 15.5px; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.gallery img { border-radius: 10px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .88); display: none; align-items: center; justify-content: center; padding: 16px; }
.lightbox.on { display: flex; }
.lightbox img { max-height: 92vh; border-radius: 10px; }
.lightbox .x { position: absolute; top: 12px; right: 12px; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--red); color: #fff; font-size: 30px; cursor: pointer; }

/* road */
.road { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.road > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.road .when { font-weight: 700; color: var(--red); font-size: 14px; letter-spacing: .5px; text-transform: uppercase; }
.final { text-align: center; }
.final .btn { margin-top: 10px; }

/* feature list page */
.flist h3 { margin-top: 34px; font-size: 24px; border-bottom: 2px solid var(--gold); padding-bottom: 6px; }
.flist ul { padding-left: 22px; margin: 10px 0; }
.flist li { margin: 6px 0; }
.flist li b { color: var(--wood2); }

/* legal pages */
.legal { max-width: 820px; }
.legal h1 { font-size: 36px; margin-top: 30px; }
.legal h2 { font-size: 22px; margin-top: 30px; }
.legal p, .legal li { color: var(--ink2); }
.note-box { background: var(--card); border-left: 5px solid var(--gold); padding: 12px 16px; border-radius: 8px; }

/* footer */
footer { background: var(--wood); color: #cdb894; padding: 34px 0 40px; font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
footer a { color: #f0e2c0; text-decoration: none; }
footer a:hover { color: var(--gold2); }
footer .copy { width: 100%; color: #a8916b; font-size: 14px; }

/* language: hide the other language */
html[lang=de] [data-l=en], html[lang=en] [data-l=de] { display: none !important; }
/* language menu (EN DE FR IT ES) */
.langm { position: relative; }
.langm summary { list-style: none; cursor: pointer; border: 1px solid rgba(255, 246, 221, .45); border-radius: 20px; padding: 4px 10px; color: #f0e2c0; font: 600 13px Georgia, serif; white-space: nowrap; }
.langm summary::-webkit-details-marker { display: none; }
.langm summary::after { content: ' ▾'; font-size: 11px; }
.langm[open] summary { background: var(--gold); color: var(--wood); }
.langm > div { position: absolute; right: 0; top: calc(100% + 6px); background: var(--wood); border: 1px solid rgba(241, 213, 138, .45); border-radius: 12px; padding: 6px; display: flex; flex-direction: column; min-width: 150px; z-index: 50; box-shadow: 0 10px 28px rgba(0, 0, 0, .45); }
.langm > div a { color: #f0e2c0; text-decoration: none; padding: 10px 12px; border-radius: 8px; font-size: 16px; }
.langm > div a.on, .langm > div a:hover { background: rgba(241, 213, 138, .18); color: var(--gold2); }

/* guide + FAQ (2026-12-02) */
.lang a { color: #f0e2c0; font: 600 13px Georgia, serif; padding: 5px 9px; text-decoration: none; }
.lang a.on { background: var(--gold); color: var(--wood); }
.ghead { background: var(--wood); color: #fbeccb; padding: 34px 0 26px; }
.ghead h1 { font-size: clamp(30px, 7vw, 46px); color: #fff6dd; }
.ghead .lead { color: #e7d3a8; margin-bottom: 0; }
.ghead .lead a { color: var(--gold2); }
.crumb { margin: 0 0 8px; font-size: 14px; color: #cdb894; }
.crumb a { color: var(--gold2); }
.guide { max-width: 760px; }
.gstep { padding: 30px 0 6px; border-bottom: 1px solid var(--line); }
.gnum { display: inline-block; background: var(--red); color: #fff6dd; font: 700 13px Georgia, serif; letter-spacing: .5px; text-transform: uppercase; padding: 3px 10px; border-radius: 20px; margin-bottom: 8px; }
.gstep h2 { font-size: clamp(22px, 5vw, 28px); margin-bottom: 8px; }
.gstep p { font-size: 17px; color: var(--ink); }
.gfig { margin: 16px 0 10px; }
.gfig img { width: 100%; max-width: 420px; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(59, 36, 20, .14); }
.gfig figcaption { font-size: 14px; color: var(--ink2); margin-top: 6px; font-style: italic; }
.gtip { margin: 26px 0 8px; background: var(--card); border-left: 5px solid var(--gold); border-radius: 10px; padding: 14px 16px; font-size: 16px; }
.gplay { margin: 26px 0; display: flex; flex-wrap: wrap; gap: 10px; }
.gnav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 0 40px; }
.gnav a { color: var(--red); font-weight: 600; text-decoration: none; }
.gnav a.nx { margin-left: auto; text-align: right; }
.gcards { display: grid; gap: 12px; padding: 26px 0 0; }
.gcard { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; text-decoration: none; color: var(--ink); box-shadow: 0 4px 12px rgba(59, 36, 20, .06); }
.gcard:hover { border-color: var(--gold); }
.gcard b { display: block; font-size: 19px; margin-bottom: 3px; }
.gcard small { color: var(--ink2); font-size: 15px; line-height: 1.45; }
.gno { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; background: var(--red); color: #fff6dd; font: 700 17px Georgia, serif; display: flex; align-items: center; justify-content: center; }
details.faq { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin: 12px 0; padding: 0 16px; }
details.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; flex: 0 0 auto; color: var(--red); font-size: 22px; line-height: 1; }
details.faq[open] summary::after { content: '–'; }
details.faq p { margin: 0 0 16px; color: var(--ink2); }

/* ships and buildings pages (tools/build_wiki.py) */
.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 14px 0 26px; }
.wcard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: var(--ink); text-decoration: none; box-shadow: 0 4px 14px rgba(59, 36, 20, .07); }
.wcard img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: var(--parch2); }
.wcard b { padding: 10px 12px 0; font-size: 18px; }
.wcard small { padding: 2px 12px 12px; color: var(--ink2); font-size: 14.5px; }
.wcard:hover b { color: var(--red); }
.wimg { margin: 0 0 18px; }
.wimg img { width: 100%; height: auto; border-radius: var(--r); display: block; box-shadow: 0 8px 22px rgba(59, 36, 20, .14); }
.wimg figcaption { font-size: 14px; color: var(--ink2); margin-top: 6px; }
.wgrid .wimg { margin: 0; }
.wfacts { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--r); overflow: hidden; margin-bottom: 18px; font-size: 16px; }
.wfacts th, .wfacts td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.wfacts th { width: 42%; color: var(--ink2); font-weight: 400; }
.wtable { overflow-x: auto; margin: 10px 0 22px; -webkit-overflow-scrolling: touch; }
.wtable table { border-collapse: collapse; min-width: 100%; background: var(--card); font-size: 15px; white-space: nowrap; }
.wtable th, .wtable td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.wtable th { background: var(--parch2); }
.wchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 24px; }
.wchips a { background: var(--card); border: 1px solid var(--line); border-radius: 30px; padding: 7px 14px; text-decoration: none; font-size: 15px; }
@media (max-width: 480px) { .wgrid { grid-template-columns: 1fr 1fr; gap: 10px; } .wcard b { font-size: 15.5px; padding: 8px 9px 0; } .wcard small { font-size: 13px; padding: 2px 9px 10px; } .wfacts { font-size: 15px; } .wfacts th, .wfacts td { padding: 8px 9px; } }
