/* base.css — Reset, Typography, Grid — lottojaxxplus.de */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;900&family=Inter+Tight:wght@700;900&family=Roboto+Mono:wght@700&display=swap');

/* ── Box sizing reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Root ── */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Stray elements (Hero-Glow, Rings) dürfen keinen horizontalen Scroll erzeugen.
     clip statt hidden: kein Scroll-Container → position:sticky bleibt intakt (M-06). */
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--c-text);
  /* Premium-Verlauf statt Flächenfarbe — auf allen Seiten sichtbar, fixiert beim Scrollen */
  background-color: var(--c-bg);
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(228,5,33,0.07), transparent 60%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(255,106,0,0.045), transparent 55%),
    linear-gradient(180deg, var(--c-bg-deep) 0%, var(--c-bg) 32%, var(--c-bg) 68%, var(--c-bg-deep) 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* overflow-x: hidden removed (M-06: blocks position:sticky and hides legit scrollable content) */
}

/* ── Skip link (WCAG 2.1 AA) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: var(--z-top);
  padding: var(--space-3) var(--space-6);
  background: var(--c-accent);
  color: var(--c-text);
  font-weight: var(--weight-semi);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: top var(--ease-fast);
}
.skip-link:focus {
  top: var(--space-4);
}

/* ── Inline-Icons (Lucide via icon()-Helper) ── */
.icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  stroke-width: 2;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--c-text);
}

h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl)); }
h2 { font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl)); }
h3 { font-size: clamp(var(--text-xl), 3vw, var(--text-3xl)); }
h4 { font-size: var(--text-xl); font-weight: var(--weight-semi); }
h5 { font-size: var(--text-lg); font-weight: var(--weight-semi); }
h6 { font-size: var(--text-base); font-weight: var(--weight-semi); }

p {
  color: var(--c-muted);
  line-height: var(--leading-loose);
  max-width: 70ch;
}

a {
  color: var(--c-link);
  text-decoration: none;
  transition: color var(--ease-fast);
}
a:hover { color: var(--c-link-hover); }
a:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

strong { font-weight: var(--weight-semi); color: var(--c-text); }
em     { font-style: italic; }
small  { font-size: var(--text-sm); color: var(--c-muted); }

ul, ol {
  padding-left: var(--space-6);
  color: var(--c-muted);
  line-height: var(--leading-loose);
}
li + li { margin-top: var(--space-2); }

blockquote {
  border-left: 3px solid var(--c-accent);
  padding: var(--space-4) var(--space-6);
  background: var(--c-surface);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--c-muted);
  font-style: italic;
}

code {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  background: var(--c-surface-2);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-sm);
  color: var(--c-accent-2);
}

hr {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: var(--space-8) 0;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

/* ── Container & Grid ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--sm { max-width: var(--container-sm); }
.container--md { max-width: var(--container-md); }

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}

/* Responsive grid shortcuts */
.col-1  { grid-column: span 1; }
.col-2  { grid-column: span 2; }
.col-3  { grid-column: span 3; }
.col-4  { grid-column: span 4; }
.col-5  { grid-column: span 5; }
.col-6  { grid-column: span 6; }
.col-7  { grid-column: span 7; }
.col-8  { grid-column: span 8; }
.col-9  { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-11 { grid-column: span 11; }
.col-12 { grid-column: span 12; }

/* Flex helpers */
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.flex-gap-2  { gap: var(--space-2); }
.flex-gap-4  { gap: var(--space-4); }
.flex-gap-6  { gap: var(--space-6); }
.flex-wrap   { flex-wrap: wrap; }

/* Spacing utilities */
.mt-4  { margin-top: var(--space-4); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.py-section   { padding-block: var(--space-20); }
.py-section-sm{ padding-block: var(--space-16); }

/* Text utilities */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-sm     { font-size: var(--text-sm); }
.text-lg     { font-size: var(--text-lg); }
.text-xl     { font-size: var(--text-xl); }
.font-mono   { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.uppercase   { text-transform: uppercase; letter-spacing: var(--tracking-wide); }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Focus visible (WCAG) ── */
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}

/* ── Selection ── */
::selection {
  background: var(--c-accent);
  color: var(--c-text);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--c-bg-deep); }
::-webkit-scrollbar-thumb { background: var(--c-border-2); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--c-accent); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .container { padding-inline: var(--gutter); }
  .col-4 { grid-column: span 6; }
  .col-3 { grid-column: span 6; }
}
@media (max-width: 768px) {
  :root {
    --gutter: var(--gutter-sm);
  }
  .grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
  .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
    grid-column: span 1;
  }
  .py-section    { padding-block: var(--space-16); }
  .py-section-sm { padding-block: var(--space-12); }
  .hide-mobile { display: none !important; }
}
@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}
