/* ==========================================================================
   Loki Casino – lokicasino1.de
   ========================================================================== */

:root {
  --bg: #0d0b1a;
  --bg-alt: #16132a;
  --surface: #1f1a35;
  --surface-2: #241f3e;
  --border: #332c54;
  --purple: #8b5cf6;
  --purple-light: #a78bfa;
  --purple-dark: #6d28d9;
  --text: #ece9f7;
  --text-muted: #b3acc9;
  --radius: 12px;
  --max-width: 1160px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--purple-light); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 { color: #fff; line-height: 1.25; }
h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin-top: 2.2em; }
h3 { font-size: 1.15rem; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}
th, td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
th { background: var(--surface-2); color: #fff; }

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-solid {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: #fff;
}
.btn-solid:hover { filter: brightness(1.1); }
.btn-outline {
  background: transparent;
  border-color: var(--purple-light);
  color: var(--purple-light);
}
.btn-outline:hover { background: rgba(167, 139, 250, 0.12); }

/* ---------------- Header ---------------- */

.site-header {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo { flex: 0 0 auto; display: flex; align-items: center; }
.logo img { height: 40px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1 1 auto;
  gap: 20px;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.site-nav ul a {
  color: var(--text);
  font-weight: 500;
}
.site-nav ul a:hover { color: var(--purple-light); text-decoration: none; }

.nav-cta { display: flex; gap: 10px; flex: 0 0 auto; }

.nav-toggle,
.burger { display: none; }

/* Burger button (checkbox hack, no JS) */
.burger {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 3px;
  right: 3px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}
.burger span:nth-child(1) { top: 6px; }
.burger span:nth-child(2) { top: 14px; }
.burger span:nth-child(3) { top: 22px; }

/* ---------------- Breadcrumbs ---------------- */

.breadcrumbs {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--text-muted);
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--purple-light); }
.breadcrumbs li[aria-current="page"] { color: var(--text); }

/* ---------------- Hero ---------------- */

.hero { padding: 22px 0; }

.hero-media {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-img { width: 100%; height: auto; display: block; }

.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 48%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 4% 4%;
  background: linear-gradient(90deg, rgba(13, 11, 26, 0.55) 0%, rgba(13, 11, 26, 0.15) 80%, rgba(13, 11, 26, 0) 100%);
}

.hero-content .hero-title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.1rem, 2.6vw, 1.9rem);
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  margin: 0;
  color: #f1eefb;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  font-size: clamp(0.85rem, 1.6vw, 1rem);
}

.hero-content .btn { align-self: flex-start; }

/* ---------------- Article / content ---------------- */

main { display: block; }

article {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 20px 40px;
}

/* TOC accordion */
details.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 1.5em 0;
  padding: 4px 18px;
}
details.toc summary {
  cursor: pointer;
  font-weight: 700;
  color: #fff;
  padding: 12px 0;
  list-style: none;
}
details.toc summary::-webkit-details-marker { display: none; }
details.toc summary::before {
  content: "\25B8";
  display: inline-block;
  margin-right: 8px;
  color: var(--purple-light);
  transition: transform 0.15s ease;
}
details.toc[open] summary::before { transform: rotate(90deg); }
details.toc ul {
  margin: 0;
  padding: 0 0 14px 20px;
}
details.toc li { margin: 6px 0; }

section { margin-top: 1.2em; }

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  margin: 10px 0;
}
.faq summary { cursor: pointer; color: #fff; }

.author-box {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 20px 40px;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 30px 0;
  margin-top: 20px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
}
.footer-nav a { color: var(--text-muted); }
.footer-nav a:hover { color: var(--purple-light); }

.footer-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 860px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px 24px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.25s ease;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 14px;
    width: 100%;
  }

  .burger { display: block; }
  .nav-toggle:checked ~ .site-nav {
    max-height: 400px;
    opacity: 1;
    padding: 18px 20px 24px;
  }

  .header-inner { position: relative; flex-wrap: nowrap; gap: 10px; }

  .logo img { height: 30px; }

  .nav-cta { gap: 6px; margin-left: auto; }
  .nav-cta .btn {
    padding: 7px 12px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .burger { width: 24px; height: 22px; }
  .burger span:nth-child(1) { top: 3px; }
  .burger span:nth-child(2) { top: 10px; }
  .burger span:nth-child(3) { top: 17px; }
}

@media (max-width: 400px) {
  .nav-cta .btn { padding: 6px 9px; font-size: 0.72rem; }
  .logo img { height: 26px; }
}

@media (max-width: 720px) {
  .hero-media {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
  }
  .hero-content {
    position: static;
    width: 100%;
    height: auto;
    background: none;
    padding: 16px 2px 4px;
  }
  .hero-content .hero-title,
  .hero-content p { text-shadow: none; color: var(--text); }
  .hero-content .hero-title { color: #fff; }
}

@media (max-width: 480px) {
  .container, article, .author-box { padding-left: 14px; padding-right: 14px; }
  th, td { padding: 8px 10px; font-size: 0.92rem; }
}
