/* Karo Ass – Homepage. Gleiches Filz-und-Gold-Design wie der Poker-Analyzer (bewusst nur dunkel). */
:root {
  color-scheme: dark;
  --gold: #d4af37; --gold-dim: #8f7a2e; --ink: #f2ede0; --ink-dim: #b9b09a;
  --felt: #0e3b2e; --felt2: #0a2b22; --felt-top: #164a3a; --panel: #123d31; --line: #1f5544;
  --deep: #0d2e25; --deeper: #0b271f; --good: #3f9d5c; --bad: #e0705c; --warn: #c99a2e; --card-red: #c0392b;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(ellipse at top, var(--felt-top), var(--felt2) 70%) fixed, var(--felt2);
  color: var(--ink); font: 16px/1.55 'Open Sans', 'Segoe UI', Roboto, Arial, sans-serif;
}
a { color: var(--gold); }
a:hover { color: #f0cf5c; }
h1, h2, h3 { color: var(--gold); line-height: 1.2; }
h1 { font-size: clamp(26px, 5vw, 40px); margin: 8px 0 12px; }
h2 { font-size: 24px; margin: 36px 0 14px; }
h3 { font-size: 18px; margin: 18px 0 10px; }
code, .mono { font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; font-size: .92em; }
.small { font-size: 13px; }
.muted { color: var(--ink-dim); }
.center { text-align: center; }
.gold { color: var(--ink); }
.good { color: var(--good); } .bad { color: var(--bad); }
.dim { opacity: .55; }

/* Kopf & Fuss */
.top { background: rgba(0, 0, 0, .25); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(6px); }
.top-in { max-width: 1100px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--gold); text-decoration: none; }
.logo { width: 22px; height: 31px; background: url('/static/favicon.svg') center / contain no-repeat; }
.top nav { display: flex; align-items: center; gap: 4px 16px; flex-wrap: wrap; }
.top nav a { color: var(--ink); text-decoration: none; font-size: 15px; }
.top nav a:hover, .top nav a[aria-current] { color: var(--gold); }
.top nav a.btn { color: #1b1b1b; }
main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 20px 16px 60px; }
main.wide { max-width: 1400px; }
.foot { border-top: 1px solid var(--line); background: rgba(0, 0, 0, .2); font-size: 14px; color: var(--ink-dim); }
.foot nav { display: flex; gap: 16px; }

/* Knöpfe */
.btn {
  display: inline-block; background: var(--gold); color: #1b1b1b; border: 1px solid var(--gold); border-radius: 8px;
  padding: 9px 16px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center;
}
.btn:hover { background: #e6c24b; color: #1b1b1b; }
.btn.small { padding: 5px 10px; font-size: 14px; }
.btn.big { padding: 12px 22px; font-size: 17px; }
.btn.ghost { background: transparent; color: var(--gold); }
.btn.ghost:hover { background: rgba(212, 175, 55, .12); }
.btn.danger { background: var(--bad); border-color: var(--bad); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--ink); font: inherit; cursor: pointer; text-decoration: underline; }
.linkbtn.bad { color: var(--bad); }
form.inline { display: inline; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 10px 0; }

/* Hinweise */
.notice { padding: 10px 14px; border-radius: 8px; margin: 10px 0 16px; border: 1px solid; }
.notice.ok { background: rgba(63, 157, 92, .15); border-color: var(--good); }
.notice.warn { background: rgba(201, 154, 46, .15); border-color: var(--warn); }
.notice.err { background: rgba(224, 112, 92, .15); border-color: var(--bad); }
.notice .big { font-size: 17px; word-break: break-all; }

/* Karten */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 18px; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid2 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.narrow { max-width: 460px; margin: 0 auto; }
.narrowcard { max-width: 520px; }

/* Startseite */
.hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: center; padding: 30px 0 10px; }
.hero h1 { font-size: clamp(32px, 6vw, 54px); }
.claim { color: var(--gold); font-style: italic; font-size: 20px; margin: 0 0 12px; }
.lead { font-size: 18px; color: var(--ink); max-width: 640px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.hero-card { position: relative; height: 240px; }
.playing-card {
  position: absolute; left: 50%; top: 10px; width: 150px; height: 210px; margin-left: -60px; border-radius: 12px;
  background: #fbf7ee; border: 3px solid var(--gold); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); transform: rotate(8deg);
  color: var(--card-red); font: 700 34px Georgia, serif; padding: 10px 14px; z-index: 2;
}
.playing-card i { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: 90px; }
.playing-card.back { margin-left: -100px; transform: rotate(-10deg); z-index: 1;
  background: repeating-linear-gradient(45deg, #7c2323 0 8px, #5c1b1b 8px 16px); border-color: #fbf7ee; }
.feature { position: relative; padding-bottom: 46px; }
.feature h3 { margin: 6px 0; }
.feature p { margin: 0; color: var(--ink-dim); }
.ficon { font-size: 30px; color: var(--gold); }
.tier { position: absolute; left: 20px; bottom: 14px; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 99px; border: 1px solid; }
.tier.free { color: #9fe0b2; border-color: var(--good); }
.tier.reg { color: #b6d4ff; border-color: #5b8bd0; }
.tier.paid { color: var(--gold); border-color: var(--gold); }
.tier.vip { color: #e0a3ff; border-color: #a36bd0; }

.pricing { grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); justify-content: center; }
.price { position: relative; text-align: center; overflow: hidden; display: flex; flex-direction: column; gap: 6px; }
.price.featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 10px 30px rgba(0, 0, 0, .35); }
.price h3 { margin: 4px 0; font-size: 22px; }
.amount { font-size: 34px; font-weight: 800; color: var(--ink); }
.amount span { font-size: 15px; font-weight: 400; color: var(--ink-dim); }
.per { color: var(--ink-dim); font-size: 14px; }
.price p { flex: 1; }
.pay-note { font-size: 12px; color: var(--ink-dim); margin-top: 6px; }
.ribbon { position: absolute; top: 16px; right: -34px; transform: rotate(45deg); background: var(--gold); color: #1b1b1b; font-size: 12px; font-weight: 800; padding: 3px 40px; }

.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 10px 0 0; color: var(--ink-dim); }

/* Tabellen */
.tablewrap { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 8px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { background: var(--deeper); color: var(--gold); font-weight: 700; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td.c, th.c { text-align: center; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.yes { color: var(--good); font-weight: 800; font-size: 18px; }
.no { color: var(--ink-dim); }
.matrix th { font-size: 12px; text-align: center; white-space: normal; min-width: 70px; }
.matrix th:first-child { text-align: left; min-width: 200px; }
.matrix input[type=checkbox] { width: 18px; height: 18px; }
.matrix tr.sep td { background: var(--deep); color: var(--gold); font-weight: 700; }
table input:not([type=checkbox]), table select { width: 100%; min-width: 60px; }

/* Formulare */
.form { display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--ink-dim); }
.form label.check { flex-direction: row; align-items: flex-start; gap: 8px; color: var(--ink); }
.form .btn { align-self: flex-start; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: end; }
.wideform { max-width: 900px; }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--deep); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
textarea { width: 100%; resize: vertical; }
input[type=checkbox] { accent-color: var(--gold); }
.plain { list-style: none; padding: 0; }

/* Administration */
.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 8px; }
.admin-tabs a { padding: 6px 12px; border-radius: 6px; text-decoration: none; color: var(--ink); background: var(--deep); border: 1px solid var(--line); font-size: 14px; }
.admin-tabs a[aria-current] { background: var(--gold); color: #1b1b1b; border-color: var(--gold); font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 10px 0 20px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.stat b { display: block; font-size: 26px; color: var(--gold); }
.stat span { color: var(--ink-dim); font-size: 14px; }
.tag { font-size: 11px; background: var(--gold); color: #1b1b1b; border-radius: 4px; padding: 1px 6px; font-weight: 700; }
.chip { display: inline-block; font-size: 13px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 99px; margin: 2px; text-decoration: none; color: var(--ink); }
.chip.on { border-color: var(--gold); color: var(--gold); }
.switch { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
details.card > summary { cursor: pointer; font-weight: 700; color: var(--gold); }
details.card[open] > summary { margin-bottom: 12px; }
details.danger { border-color: var(--bad); }

/* Rechtstexte */
.legal { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 28px 24px; max-width: 860px; margin: 0 auto; }
.legal h1 { font-size: 30px; }
.legal h2 { font-size: 20px; margin-top: 26px; }
.legal .draft { background: rgba(201, 154, 46, .15); border: 1px solid var(--warn); border-radius: 8px; padding: 10px 14px; margin: 14px 0; }
.legal mark, mark { background: rgba(212, 175, 55, .25); color: var(--ink); padding: 0 3px; border-radius: 3px; }

/* Hilfe */
.help-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 46px; height: 46px; border-radius: 50%;
  background: var(--gold); color: #1b1b1b; border: 0; font: 800 22px Georgia, serif; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
}
.help-dlg { max-width: 520px; width: calc(100% - 32px); background: var(--panel); color: var(--ink); border: 1px solid var(--gold-dim); border-radius: 12px; padding: 20px 24px; }
.help-dlg::backdrop { background: rgba(0, 0, 0, .6); }
.help-dlg h2 { margin: 0 0 10px; font-size: 20px; }

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .top nav { gap: 4px 12px; }
  .legal { padding: 6px 16px 18px; }
}

/* Sprachwahl, Sprunglink, Cookie-Hinweis */
.langs { display: inline-flex; gap: 6px; margin-left: 4px; padding-left: 12px; border-left: 1px solid var(--line); font-size: 13px; }
.langs a, .langs b { padding: 2px 4px; border-radius: 4px; }
.langs b { color: #1b1b1b; background: var(--gold); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: #1b1b1b; padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 8px; }
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 720px; margin: 0 auto;
  display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--gold-dim); border-radius: var(--radius); padding: 12px 16px; font-size: 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .45);
}
.cookie[hidden] { display: none; }

/* Bildschirmfotos, Lightbox */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 8px; border: 1px solid var(--line); transition: transform .15s; }
.shots a:hover img { transform: scale(1.02); border-color: var(--gold-dim); }
.shots figcaption { font-size: 14px; color: var(--ink-dim); margin-top: 6px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.lightbox img { display: block; max-width: 96vw; max-height: 88vh; border-radius: 8px; }
.lightbox p { text-align: center; color: var(--ink); margin: 8px 0 0; }
.lightbox button { position: absolute; right: 8px; top: 8px; }

/* Video (Zwei-Klick) */
.video { max-width: 860px; margin: 0 auto; }
.video video, .video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; background: #000; }
.video-load {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; aspect-ratio: 16 / 9;
  border: 1px solid var(--line); border-radius: 10px; background: center / cover no-repeat var(--deep); color: var(--ink); font: inherit; cursor: pointer;
}
.video-load::before { content: ""; position: absolute; inset: 0; border-radius: 10px; background: rgba(0, 0, 0, .55); }
.video-load .play, .video-load .vl { position: relative; }
.video-load .play { width: 72px; height: 72px; border-radius: 50%; background: var(--gold); color: #1b1b1b; font-size: 30px; line-height: 72px; text-align: center; }
.video-load:hover .play { background: #f0cf5c; }

/* Kundenstimmen */
.voices { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.voice { margin: 0; }
.voice blockquote { margin: 0 0 10px; font-size: 17px; font-style: italic; }
.voice figcaption { color: var(--ink-dim); font-size: 14px; }

/* Bestätigung vor dem Kündigen */
.inline-confirm { display: inline-block; }
.inline-confirm > summary { list-style: none; display: inline-block; }
.inline-confirm > summary::-webkit-details-marker { display: none; }
.inline-confirm[open] > summary { opacity: .6; }
