/* Website – gleicher Stil wie das Spiel */
:root {
  --bg: #0f1116; --panel: #171a21; --panel2: #1f232c; --border: #2f3541;
  --text: #ece5d5; --muted: #a39d90; --gold: #d9a441; --gold2: #f2c66a; --red: #e0574f; --green: #5fbf6a;
  --display: Cinzel, Georgia, serif; --font: Inter, "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; }
a { color: var(--gold2); }
h1, h2, h3 { font-family: var(--display); color: var(--gold2); line-height: 1.25; margin: 0 0 .5em; overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(32px, 6vw, 56px); }
h1.page-title { font-size: clamp(22px, 6vw, 36px); }
h2 { font-size: clamp(24px, 3.5vw, 34px); }
p { margin: 0 0 1em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

/* Texte je nach Abrechnung der KI: eigene API-Schlüssel (Standard) oder Münzen (AI_BILLING=coins) */
.only-coins { display: none !important; }
html[data-billing="coins"] .only-coins { display: revert !important; }
html[data-billing="coins"] .only-own { display: none !important; }

/* Kopf und Fuß */
.site-head { position: sticky; top: 0; z-index: 10; background: rgba(15,17,22,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.site-head .wrap { display: flex; align-items: center; gap: 18px; height: 60px; }
.brand { font-family: var(--display); font-weight: 700; color: var(--gold2); text-decoration: none; font-size: 19px; white-space: nowrap; display: inline-flex; align-items: center; gap: 9px; }
.brand img { width: 28px; height: 28px; }
/* Eigene Symbole (img/ui/*.svg) als Maske – sie übernehmen die Textfarbe: <span class="gm" style="--g:url(/img/ui/play.svg)"></span> */
.gm { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -0.2em; background: currentColor; flex-shrink: 0;
  -webkit-mask: var(--g) center / contain no-repeat; mask: var(--g) center / contain no-repeat; }
.btn .gm, .badge .gm { margin-right: .35em; }
.site-head nav { margin-left: auto; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.site-head nav a { color: var(--text); text-decoration: none; font-size: 15px; }
.site-head nav a:hover { color: var(--gold2); }
section[id] { scroll-margin-top: 80px; }
/* Handy: Logo oben, Navigation als waagerecht scrollbare Zeile darunter */
@media (max-width: 640px) {
  .site-head .wrap { height: auto; flex-wrap: wrap; gap: 6px 12px; padding-top: 8px; padding-bottom: 8px; }
  .site-head nav { margin-left: 0; width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 14px; scrollbar-width: none; }
  .site-head nav::-webkit-scrollbar { display: none; }
  .site-head nav a { white-space: nowrap; font-size: 14px; }
  .site-head nav .btn { margin-left: auto; }
  section[id] { scroll-margin-top: 110px; }
}
@media (max-width: 420px) {
  .site-head nav a[href="/#so-gehts"], .site-head nav a[href="/#faq"] { display: none; }
}
.site-foot { border-top: 1px solid var(--border); margin-top: 60px; padding: 28px 0; color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.site-foot a { color: var(--muted); }

/* Schaltflächen und Formulare */
.btn { display: inline-block; background: #272c37; color: var(--text); border: 1px solid var(--border); border-radius: 9px; padding: 10px 18px; font: inherit; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; }
.btn:hover { border-color: #4a5160; background: #303644; }
.btn.primary { background: linear-gradient(#c8902f, #a87420); border-color: var(--gold); color: #1a1306; font-weight: 700; }
.btn.primary:hover { background: linear-gradient(#d9a441, #b98128); }
.btn.big { padding: 14px 26px; font-size: 18px; }
.btn.small { padding: 6px 12px; font-size: 14px; }
.btn.danger { border-color: #6b2c29; color: #ffb3ad; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
label { display: block; margin: 12px 0 4px; font-size: 14px; color: var(--gold2); font-weight: 600; }
input[type=email], input[type=password], input[type=text] { width: 100%; background: #12141a; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; color: var(--text); font: inherit; }
input:focus { outline: none; border-color: var(--gold); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text); }
.check input { margin-top: 5px; }
.card { background: linear-gradient(180deg, #1d212a, #171a21); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.form-card { max-width: 440px; margin: 40px auto; }
.msg { padding: 10px 14px; border-radius: 8px; margin: 12px 0; font-size: 15px; display: none; }
.msg.show { display: block; }
.msg.err { background: #2a1616; border: 1px solid #6b2c29; color: #ffc4be; }
.msg.ok { background: #16261a; border: 1px solid #2f5a3a; color: #b8f0c0; }
.msg::before { content: ''; display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -0.2em; margin-right: .45em; background: currentColor;
  -webkit-mask: url(/img/ui/warning.svg) center / contain no-repeat; mask: url(/img/ui/warning.svg) center / contain no-repeat; }
.msg.ok::before { -webkit-mask-image: url(/img/ui/check.svg); mask-image: url(/img/ui/check.svg); }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.tabs button { flex: 1; background: var(--panel2); border: 1px solid var(--border); color: var(--muted); border-radius: 8px; padding: 9px; font: inherit; cursor: pointer; }
.tabs button.active { color: var(--gold2); border-color: var(--gold); }

/* Startseite */
.hero { padding: 70px 0 50px; text-align: center; background: radial-gradient(ellipse at top, #2a2116 0%, transparent 70%); }
.hero .logo img { width: 104px; height: 104px; filter: drop-shadow(0 8px 22px rgba(255,170,60,.35)); }
.hero p.lead { font-size: clamp(17px, 2.2vw, 21px); color: #d6cbb2; max-width: 720px; margin: 0 auto 28px; }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.showcase { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 36px auto 0; }
.showcase img { width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 6px 18px rgba(0,0,0,.5); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; margin: 40px 0; }
.feature h3 { font-size: 19px; }
.feature .ico { font-size: 38px; color: var(--gold2); line-height: 1; margin-bottom: 6px; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.steps .card::before { counter-increment: s; content: counter(s); display: inline-flex; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center; background: var(--gold); color: #1a1306; font-weight: 800; margin-bottom: 10px; }
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; margin-top: 20px; }
.price-card { display: flex; flex-direction: column; gap: 6px; }
.price-card.highlight { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset, 0 10px 30px rgba(217,164,65,.12); }
.price-card .price { font-size: 30px; font-weight: 800; color: var(--text); }
.price-card .btn { margin-top: auto; text-align: center; }
.faq details { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; margin: 8px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
section { padding: 30px 0; }

/* Konto */
.dash { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; margin-top: 20px; }
.big-num { font-size: 40px; font-weight: 800; color: var(--gold2); line-height: 1.1; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.badge.ok { background: #1d3a24; color: #b8f0c0; border: 1px solid #2f5a3a; }
.badge.demo { background: #3a2f1a; color: var(--gold2); border: 1px solid #6b5530; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-wrap { overflow-x: auto; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; }

/* Rechtstexte */
.legal { max-width: 820px; overflow-wrap: anywhere; }
.legal h2 { font-size: 22px; margin-top: 28px; }
.placeholder { background: #3a2f1a; color: var(--gold2); padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.notice { background: #2a2414; border: 1px solid #6b5530; border-radius: 10px; padding: 12px 16px; margin: 16px 0; color: #f2dfae; }
.notice .gm { color: #f2b84b; margin-right: .3em; }
