/*
  Dark Theme Stylesheet for voxcasino-bet.de
  - Color system
  - Layout primitives (container, grid)
  - Header, Hero, Sections
  - Responsive tables (mobile adaptation)
  - Slots grid (12 images, 6 per row desktop)
  - Footer with payment logos
  - Accessibility helpers
*/

/*
  Color Tokens
  Header color: #171a29 (as required)
*/
:root {
  --color-bg: #0e1118;
  --color-surface: #121623;
  --color-header: #171a29; /* required header color */
  --color-text: #e6e9f2;
  --color-text-muted: #b6bdd1;
  --color-primary: #3b82f6;
  --color-primary-contrast: #ffffff;
  --color-overlay: rgba(12, 14, 22, 0.4);
  --color-panel: rgba(23, 26, 41, 0.8);

  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 16px;

  --shadow-m: 0 6px 24px rgba(0, 0, 0, 0.35);

  --container-max: 1200px;
  --gutter: 16px;
}

/* Global Reset & Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--container-max);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  margin-left: auto;
  margin-right: auto;
}

.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -40px; left: 0;
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  padding: 8px 12px;
  z-index: 1000;
  border-radius: 0 0 var(--radius-s) 0;
}
.skip-link:focus { top: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0; z-index: 50;
  background: var(--color-header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand img { display: block; }
.primary-nav .nav-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 16px;
}
.nav-link {
  color: var(--color-text);
  padding: 8px 12px;
  border-radius: var(--radius-s);
}
.nav-link:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* Header orange button */
.btn--orange {
  background: #f97316;
  color: #111827;
  font-weight: 700;
}
.btn--orange:hover { background: #fb923c; text-decoration: none; }
.btn--orange:focus-visible { outline: 2px solid #fdba74; outline-offset: 2px; }

/* Breadcrumbs */
.breadcrumbs {
  background: var(--color-surface);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.breadcrumbs ol {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin: 0; padding: 8px 0;
}
.breadcrumbs ol { list-style: none; }
.breadcrumbs .container { padding-left: calc(var(--gutter) * 2); }
.breadcrumbs a, .breadcrumbs span { color: var(--color-text-muted); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin: 0 4px; color: var(--color-text-muted); }

/* Hero Banner */
.hero {
  position: relative;
  isolation: isolate;
}
.hero__img {
  width: 100%;
  height: clamp(200px, 30vw, 420px);
  object-fit: cover;
  object-position: center top; /* show more of the top (girl's head) */
  display: block;
}
.hero__overlay {
  position: absolute; inset: 0; background: var(--color-overlay);
}
.hero__content {
  position: absolute; inset: 0;
  display: grid;
  align-items: center;       /* vertically center */
  justify-items: start;      /* move panel to the left */
  padding: 16px;
}
.hero__panel {
  background: var(--color-panel);
  backdrop-filter: blur(4px);
  padding: 16px 20px;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-m);
  max-width: 840px;
  margin-left: clamp(16px, 5vw, 64px); /* left offset from edge */
}
.hero__panel .btn { display: block; width: fit-content; margin-left: auto; margin-right: auto; }

/* Mobile: make banner full-screen height */
@media screen and (max-width: 767px) {
  .hero { min-height: calc(100vh - 64px); margin-bottom: 8px; }
  .hero picture { display: block; height: 100%; }
  .hero__img { height: 100%; object-fit: cover; object-position: center top; }
  .hero__panel { margin-left: 16px; margin-right: 16px; }
  .section { padding: 20px 0; }
  .section--slots { padding-top: 8px; }
}
.hero__title {
  margin: 0 0 8px 0;
  text-align: center;
  font-size: clamp(20px, 3.2vw, 40px);
}
.hero__subtitle {
  margin: 0 0 16px 0;
  color: var(--color-text-muted);
  text-align: center;
}
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: var(--radius-s);
  font-weight: 600;
}
.btn--primary {
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  box-shadow: var(--shadow-m);
}
.btn--primary:hover { filter: brightness(1.05); }
.btn--primary:focus-visible { outline: 2px solid #93c5fd; outline-offset: 2px; }

/* Sections */
.section { padding: 32px 0; }
.section__title { margin: 0 0 16px 0; font-size: 1.5rem; }
.flow > * + * { margin-top: 1rem; }

/* Slots Grid */
.slots-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.slot-item {
  background: var(--color-surface);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.slot-link { display: block; }
.slot-link img { width: 100%; height: auto; display: block; }

/* Responsive breakpoints */
@media screen and (max-width: 1024px) {
  .slots-grid { grid-template-columns: repeat(4, 1fr); }
}
@media screen and (max-width: 768px) {
  .slots-grid { grid-template-columns: repeat(3, 1fr); }
}
@media screen and (max-width: 520px) {
  .slots-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Table Styles */
.table-wrapper {
  background: var(--color-surface);
  border-radius: var(--radius-m);
  padding: 8px;
  overflow: hidden;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th, .table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.table thead th { color: var(--color-text); font-weight: 700; }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }

/* Mobile Table Adaptation
   - Convert rows to cards with label: value
   - Labels are populated via data-th attribute added by JS for a11y
*/
@media screen and (max-width: 680px) {
  .table thead { display: none; }
  .table tr { display: grid; grid-template-columns: 1fr; padding: 8px 0; }
  .table td, .table th[scope="row"] {
    display: grid; grid-template-columns: 140px 1fr; gap: 8px;
    border: none; border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .table td::before, .table th[scope="row"]::before {
    content: attr(data-th);
    color: var(--color-text-muted);
  }
  .table tr:last-child td, .table tr:last-child th[scope="row"] { border-bottom: none; }
}

/* Footer */
.site-footer {
  background: var(--color-header);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px 0 40px 0;
}
.pay-logos {
  list-style: none; padding: 0; margin: 0 0 16px 0;
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center;
}
.footer__legal { color: var(--color-text-muted); margin: 0; }

/* Mobile viewport fix: prevent content jump with 100vh on iOS/Android */
.fix-viewport-height {
  min-height: calc(100vh - 64px);
}



