/* Avocasino1.de — base styles */

:root {
  --max-width: 1100px;
  --color-bg: #10131a;
  --color-bg-alt: #181c26;
  --color-text: #e7e9ee;
  --color-muted: #a3a8b5;
  --color-accent: #ffb53e;
  --color-accent-dark: #d6912a;
  --color-border: #2a2f3a;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

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

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

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

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

/* Header */
.site-header {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link img {
  height: 84px;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn:hover {
  text-decoration: none;
}

.btn-outline {
  color: var(--color-text);
  border-color: var(--color-border);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-solid {
  background: var(--color-accent);
  color: #1a1304;
}

.btn-solid:hover {
  background: var(--color-accent-dark);
  color: #1a1304;
}

/* Hero */
.hero {
  padding: 28px 0 16px;
}

.hero-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 1983 / 793;
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5em;
  padding: 4% 5%;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(10, 12, 18, 0.85) 0%, rgba(10, 12, 18, 0.35) 55%, rgba(10, 12, 18, 0) 100%);
}

.hero-overlay h1 {
  margin: 0;
  font-size: clamp(1rem, 3.2vw, 2.2rem);
  line-height: 1.2;
  max-width: 16ch;
  color: #fff;
}

.hero-overlay p {
  margin: 0;
  max-width: 32ch;
  color: var(--color-muted);
  font-size: clamp(0.7rem, 1.6vw, 1.05rem);
  line-height: 1.35;
}

.hero-overlay .btn {
  font-size: clamp(0.7rem, 1.6vw, 1rem);
  padding: clamp(6px, 1.2vw, 10px) clamp(12px, 2.5vw, 20px);
}

/* Article content */
article {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 16px 60px;
}

article h2 {
  margin-top: 2em;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.3em;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  overflow-x: auto;
  display: block;
}

table thead,
table tbody {
  display: table;
  width: 100%;
  table-layout: fixed;
}

th, td {
  border: 1px solid var(--color-border);
  padding: 8px 10px;
  text-align: left;
}

th {
  background: var(--color-bg-alt);
}

/* TOC accordion */
.toc {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin: 1.5em 0;
}

.toc summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 700;
  list-style: none;
}

.toc summary::-webkit-details-marker {
  display: none;
}

.toc summary::after {
  content: "▾";
  float: right;
  transition: transform 0.2s ease;
}

.toc[open] summary::after {
  transform: rotate(180deg);
}

.toc nav {
  padding: 0 18px 16px;
}

.toc ul {
  margin: 0;
  padding-left: 1.2em;
}

.toc li {
  margin: 0.4em 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 24px 0;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 600px) {
  .logo-link img {
    height: 60px;
  }

  .btn {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .hero-banner {
    aspect-ratio: 3 / 4;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(10, 12, 18, 0.35) 0%, rgba(10, 12, 18, 0.92) 60%);
    justify-content: flex-end;
    align-items: stretch;
    text-align: left;
    padding: 6% 7% 9%;
  }

  .hero-overlay h1 {
    max-width: 100%;
    font-size: clamp(1.3rem, 7vw, 1.8rem);
  }

  .hero-overlay p {
    max-width: 100%;
    font-size: clamp(0.85rem, 4vw, 1rem);
  }

  .hero-overlay .btn {
    align-self: flex-start;
    font-size: 0.9rem;
    padding: 10px 18px;
  }
}
