/* ============================================
   SpinBetter-App.de — Shared Stylesheet
   ============================================ */

:root {
  --bg-primary: #0B1F1C;
  --bg-secondary: #0E3330;
  --bg-tertiary: #14443F;
  --bg-card: #12393452;
  --bg-elevated: #1A4742;
  --accent-lime: #C8F02C;
  --accent-lime-dark: #A8CC22;
  --accent-purple: #A84AFF;
  --accent-purple-dark: #7F2BD9;
  --text-primary: #F4FCEF;
  --text-secondary: #B9D1C7;
  --text-muted: #7A8F86;
  --border: #1F4A43;
  --border-light: #2B5A52;
  --success: #3FD98E;
  --warning: #FFB547;
  --danger: #FF5E5E;
  --shadow-card: 0 8px 24px rgba(0,0,0,0.35);
  --shadow-hover: 0 12px 32px rgba(200,240,44,0.15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --max-w: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-primary);
  background-image:
    radial-gradient(ellipse 900px 600px at 12% -10%, rgba(168,74,255,0.14), transparent 55%),
    radial-gradient(ellipse 800px 500px at 95% 8%, rgba(200,240,44,0.08), transparent 60%),
    radial-gradient(ellipse 600px 400px at 50% 95%, rgba(168,74,255,0.06), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --------- Typography --------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
h1 { font-size: clamp(2rem, 4.8vw, 3.4rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 2.2rem 0 1rem; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); margin: 1.6rem 0 0.7rem; color: var(--accent-lime); }
h4 { font-size: 1.1rem; margin: 1.2rem 0 0.5rem; }
p { margin-bottom: 1rem; color: var(--text-secondary); }
a { color: var(--accent-lime); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-lime-dark); text-decoration: underline; }
strong { color: var(--text-primary); font-weight: 700; }
ul, ol { margin: 0 0 1rem 1.3rem; color: var(--text-secondary); }
li { margin-bottom: 0.4rem; }

/* --------- Header --------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 31, 28, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.logo:hover { text-decoration: none; color: var(--text-primary); }
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  background: var(--accent-lime);
  color: var(--bg-primary);
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(200,240,44,0.4);
}
.logo-text { color: var(--text-primary); }
.logo-accent { color: var(--accent-lime); }

.nav {
  display: flex;
  gap: 0.3rem;
  align-items: center;
}
.nav a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  transition: all .2s;
}
.nav a:hover { background: var(--bg-tertiary); color: var(--accent-lime); text-decoration: none; }
.nav a.active { color: var(--accent-lime); }

.btn-header {
  background: var(--accent-lime);
  color: var(--bg-primary) !important;
  padding: 0.55rem 1.1rem !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  transition: transform .15s, box-shadow .15s !important;
}
.btn-header:hover {
  background: var(--accent-lime-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200,240,44,0.35);
  text-decoration: none !important;
}

.burger {
  display: none;
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  width: 42px; height: 42px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.burger svg { width: 22px; height: 22px; }

/* Mobile drawer */
.drawer {
  position: fixed;
  top: 0; right: -100%;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--bg-secondary);
  padding: 4.5rem 1.5rem 2rem;
  z-index: 200;
  transition: right .3s ease;
  box-shadow: -20px 0 60px rgba(0,0,0,0.5);
  overflow-y: auto;
}
.drawer:target { right: 0; }
.drawer-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
}
.drawer-close:hover { background: var(--accent-lime); color: var(--bg-primary); text-decoration: none; }
.drawer a {
  display: block;
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  border-radius: 10px;
  font-weight: 500;
  margin-bottom: 0.3rem;
  border: 1px solid transparent;
}
.drawer a:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-light);
  text-decoration: none;
}
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 150;
}
.drawer:target ~ .drawer-overlay { display: block; }

/* --------- Main container --------- */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}
article { max-width: 880px; margin: 0 auto; }

/* --------- Breadcrumbs --------- */
.breadcrumbs {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent-lime); }
.breadcrumbs span { margin: 0 0.4rem; color: var(--border-light); }

/* --------- Hero --------- */
.hero {
  position: relative;
  padding: 3rem 0 2.5rem;
  margin-bottom: 2rem;
}
.hero::before {
  content: "";
  position: absolute;
  top: 20%;
  right: -60px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(168,74,255,0.22), transparent 70%);
  filter: blur(30px);
  z-index: -1;
  pointer-events: none;
}
.hero-kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-lime);
  background: rgba(200,240,44,0.1);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  border: 1px solid rgba(200,240,44,0.3);
  margin-bottom: 1.1rem;
}
.hero-lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 1.5rem;
}

/* --------- Verdict / Quick-info box --------- */
.verdict {
  background: linear-gradient(145deg, var(--bg-secondary), var(--bg-tertiary));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}
.verdict::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(to bottom, var(--accent-lime), var(--accent-purple));
}
.verdict-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}
.verdict-col h4 {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 0 0.7rem;
}
.pros li, .cons li { list-style: none; padding-left: 1.5rem; position: relative; margin-bottom: 0.5rem; color: var(--text-secondary); }
.pros li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.cons li::before { content: "–"; position: absolute; left: 0; color: var(--warning); font-weight: 700; }
.pros, .cons { margin: 0; }

.rating {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.rating-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--accent-lime);
  line-height: 1;
}
.rating-max { color: var(--text-muted); font-size: 1rem; }
.stars { color: var(--accent-lime); letter-spacing: 0.1em; font-size: 0.95rem; }

/* --------- CTA --------- */
.cta-wrap {
  text-align: center;
  margin: 2.5rem 0;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, rgba(168,74,255,0.08), rgba(200,240,44,0.05));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.cta-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 30% 40%, rgba(168,74,255,0.15), transparent 60%);
  pointer-events: none;
}
.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}
.cta-sub { color: var(--text-secondary); margin-bottom: 1.3rem; }
.btn {
  display: inline-block;
  padding: 1rem 2.4rem;
  background: var(--accent-lime);
  color: var(--bg-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 8px 22px rgba(200,240,44,0.25);
  letter-spacing: 0.01em;
}
.btn:hover {
  background: var(--accent-lime-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(200,240,44,0.4);
  text-decoration: none;
  color: var(--bg-primary);
}
.btn-purple {
  background: var(--accent-purple);
  color: var(--text-primary);
  box-shadow: 0 8px 22px rgba(168,74,255,0.3);
}
.btn-purple:hover { background: var(--accent-purple-dark); color: var(--text-primary); box-shadow: 0 14px 32px rgba(168,74,255,0.5); }

/* --------- Promo code box --------- */
.promo-box {
  background: linear-gradient(120deg, var(--bg-secondary), rgba(168,74,255,0.12));
  border: 1px dashed rgba(200,240,44,0.45);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.promo-box-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.25rem;
}
.promo-box-code {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--accent-lime);
  letter-spacing: 0.04em;
}
.copy-btn {
  background: var(--bg-primary);
  color: var(--accent-lime);
  border: 1px solid var(--accent-lime);
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.copy-btn:hover {
  background: var(--accent-lime);
  color: var(--bg-primary);
}
.copy-btn.copied {
  background: var(--success);
  color: var(--bg-primary);
  border-color: var(--success);
}

/* --------- Images --------- */
figure {
  margin: 1.8rem auto;
  text-align: center;
}
figure img.desktop-shot {
  width: 90%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
}
figure img.mobile-shot {
  width: 50%;
  max-width: 300px;
  height: auto;
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
}
figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.7rem;
  font-style: italic;
}

/* --------- Tables --------- */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border-radius: var(--radius-md); border: 1px solid var(--border); }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-secondary);
  font-size: 0.94rem;
}
th {
  background: var(--bg-tertiary);
  color: var(--accent-lime);
  text-align: left;
  padding: 0.85rem 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border-light);
}
td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(200,240,44,0.03); color: var(--text-primary); }

/* --------- Steps --------- */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1rem 1rem 1rem 3.5rem;
  margin-bottom: 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform .15s, border-color .15s;
  color: var(--text-secondary);
}
.steps li:hover { transform: translateX(4px); border-color: var(--accent-lime); }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0.9rem;
  top: 1rem;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent-lime);
  color: var(--bg-primary);
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

/* --------- Feature grid --------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0;
}
.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.3rem;
  transition: all .25s;
}
.feature-card:hover {
  border-color: var(--accent-lime);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.feature-icon {
  width: 44px; height: 44px;
  background: rgba(200,240,44,0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--accent-lime);
}
.feature-card h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
}
.feature-card p { font-size: 0.95rem; margin: 0; color: var(--text-secondary); }

/* --------- Callout box --------- */
.callout {
  background: rgba(168,74,255,0.09);
  border-left: 3px solid var(--accent-purple);
  padding: 1rem 1.3rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.callout strong { color: var(--accent-purple); }

.callout-warn {
  background: rgba(255,181,71,0.08);
  border-left: 3px solid var(--warning);
}
.callout-warn strong { color: var(--warning); }

/* --------- FAQ --------- */
.faq { margin: 2rem 0; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.7rem;
  background: var(--bg-secondary);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.3rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text-primary);
  position: relative;
  padding-right: 3rem;
  transition: background .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--accent-lime);
  font-weight: 400;
  transition: transform .2s;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:hover { background: var(--bg-tertiary); }
.faq-item .faq-body {
  padding: 0 1.3rem 1.2rem;
  color: var(--text-secondary);
  font-size: 0.97rem;
  line-height: 1.65;
}

/* --------- Footer --------- */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 1.25rem 1.5rem;
  margin-top: 4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.footer-col h5 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: var(--accent-lime); text-decoration: none; }
.footer-brand p { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.8rem; max-width: 340px; }
.age-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-primary);
  color: var(--danger);
  border: 2px solid var(--danger);
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 0.8rem;
}
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.83rem;
  color: var(--text-muted);
}
.footer-bottom p { color: var(--text-muted); margin-bottom: 0.4rem; }

/* --------- Responsive --------- */
@media (max-width: 860px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .verdict-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  figure img.desktop-shot,
  figure img.mobile-shot { width: 100%; max-width: 100%; }
  main { padding: 1.5rem 1rem 3rem; }
  .hero { padding: 2rem 0 1.5rem; }
  .promo-box { flex-direction: column; align-items: stretch; text-align: center; }
  .copy-btn { width: 100%; justify-content: center; }
}
@media (max-width: 500px) {
  .btn { width: 100%; padding: 1rem; }
  .cta-wrap { padding: 1.5rem 1rem; }
  .verdict { padding: 1.3rem; }
}

/* --------- Page load animation --------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero, .verdict, .feature-grid, .cta-wrap {
  animation: fadeUp 0.6s ease both;
}
.verdict { animation-delay: 0.1s; }
.feature-grid { animation-delay: 0.15s; }
