/* =========================================================
   seriosecasinosohneoasis.de — Basis-Stylesheet
   Inhaltsverzeichnis:
   1. Variablen & Reset
   2. Layout-Grundgerüst
   3. Header
   4. Footer
   5. Inhaltsbereich (main) — Typografie
   6. Bilder im Inhalt
   7. Tabellen im Inhalt
   8. CTA-Button-Vorlage
   9. Autor-Box
   10. "Nach oben"-Button
   11. 404-Seite
   12. Responsive / Mobile
   ========================================================= */

/* 1. Variablen & Reset -------------------------------------------------- */
:root {
  --color-bg: #f3f2ec;          /* heller Seitenhintergrund */
  --color-surface: #f3f2ec;
  --color-black: #111111;        /* "alles andere" in Schwarz */
  --color-black-soft: #1b1b1b;
  --color-text: #1a1a1a;
  --color-text-invert: #f3f2ec;
  --color-muted: #5c5b55;
  --color-muted-invert: #bdbcb4;
  --color-border: #111111;
  --font-heading: Georgia, "Times New Roman", Times, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --max-width: 880px;
  --radius: 3px;
  --gap: 1.5rem;
}

* ,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

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

a {
  color: inherit;
}

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

/* 2. Layout-Grundgerüst -------------------------------------------------- */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

.site-main {
  flex: 1 0 auto;
}

/* 3. Header --------------------------------------------------------------- */
.site-header {
  background: var(--color-black);
  color: var(--color-text-invert);
  border-bottom: 1px solid var(--color-black-soft);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

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

.site-logo img {
  display: block;
  height: 128px;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--color-text-invert);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-text-invert);
  color: var(--color-black);
}

.btn-primary:hover {
  background: transparent;
  color: var(--color-text-invert);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-invert);
}

.btn-secondary:hover {
  background: var(--color-text-invert);
  color: var(--color-black);
}

/* 4. Footer ----------------------------------------------------------------- */
.site-footer {
  background: var(--color-black);
  color: var(--color-muted-invert);
  margin-top: 4rem;
}

.site-footer .container {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-text {
  max-width: 70ch;
  margin: 0 0 2rem;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--color-muted-invert);
}

.footer-nav {
  margin: 0 0 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-black-soft);
  border-bottom: 1px solid var(--color-black-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}

.footer-nav a {
  color: var(--color-text-invert);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  border-bottom: 1px solid transparent;
}

.footer-nav a:hover {
  border-bottom-color: var(--color-text-invert);
}

.footer-responsible h2 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-text-invert);
  margin: 0 0 0.9rem;
}

.footer-org-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 2rem;
  padding: 0;
}

.footer-org-list a {
  display: inline-block;
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--color-muted-invert);
  border: 1px solid var(--color-black-soft);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-org-list a:hover {
  border-color: var(--color-text-invert);
  color: var(--color-text-invert);
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-muted-invert);
}

/* 5. Inhaltsbereich (main) — Typografie -------------------------------------- */
.site-main .container {
  padding-top: 2.75rem;
  padding-bottom: 2.75rem;
}

.site-main .content {
  max-width: 72ch;
  margin: 0 auto;
}

.content h1,
.content h2,
.content h3,
.content h4 {
  font-family: var(--font-heading);
  color: var(--color-black);
  line-height: 1.25;
  font-weight: 700;
}

.content h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: 0 0 1.25rem;
}

.content h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin: 2.75rem 0 1rem;
}

.content h3 {
  font-size: 1.3rem;
  margin: 2rem 0 0.9rem;
}

.content h4 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.75rem;
}

.content p {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  color: var(--color-text);
}

.content .lead {
  font-size: 1.2rem;
  color: var(--color-muted);
}

.content a {
  color: var(--color-black);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content a:hover {
  color: var(--color-muted);
}

.content strong {
  color: var(--color-black);
}

.content ul,
.content ol {
  margin: 0 0 1.25rem;
  padding-left: 1.4rem;
  font-size: 1.05rem;
}

.content li {
  margin-bottom: 0.5rem;
}

.content hr {
  border: none;
  border-top: 1px solid var(--color-black);
  opacity: 0.15;
  margin: 2.5rem 0;
}

.content blockquote {
  margin: 1.75rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 3px solid var(--color-black);
  color: var(--color-muted);
  font-style: italic;
}

/* 6. Bilder im Inhalt --------------------------------------------------------- */
.content figure {
  margin: 2.25rem 0;
}

.content figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.content figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  text-align: center;
}

/* 7. Tabellen im Inhalt -------------------------------------------------------- */
.content .table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2rem 0;
  border: 1px solid var(--color-black);
  border-radius: var(--radius);
}

.content table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.content thead th {
  background: var(--color-black);
  color: var(--color-text-invert);
  text-align: left;
  padding: 0.85rem 1rem;
  font-weight: 700;
  white-space: nowrap;
}

.content tbody td {
  padding: 0.85rem 1rem;
  border-top: 1px solid #d8d6cc;
  vertical-align: top;
}

.content tbody tr:nth-child(even) {
  background: #eae8e0;
}

/* 8. CTA-Button-Vorlage --------------------------------------------------------- */
.content .cta-wrap {
  text-align: center;
  margin: 2.75rem 0;
}

.content .cta-wrap .cta-button {
  display: inline-block;
  background: var(--color-black);
  color: var(--color-text-invert);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 1rem 2.5rem;
  border: 2px solid var(--color-black);
  border-radius: var(--radius);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.content .cta-wrap .cta-button:hover {
  background: transparent;
  color: var(--color-black);
}

/* 9. Autor-Box ------------------------------------------------------------------ */
.author-box {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin: 3.5rem 0 1rem;
  padding: 1.75rem;
  background: var(--color-black);
  color: var(--color-text-invert);
  border-radius: var(--radius);
}

.author-avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--color-text-invert);
}

.author-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h3 {
  font-family: var(--font-heading);
  margin: 0 0 0.15rem;
  font-size: 1.1rem;
  color: var(--color-text-invert);
}

.author-role {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: var(--color-muted-invert);
}

.author-info p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted-invert);
  line-height: 1.7;
}

/* 10. "Nach oben"-Button --------------------------------------------------------- */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-black);
  color: var(--color-text-invert);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 60;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 11. 404-Seite ------------------------------------------------------------------- */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 60vh;
  padding: 3rem 1.25rem;
}

.error-page .error-code {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 14vw, 7rem);
  line-height: 1;
  margin: 0 0 1rem;
  color: var(--color-black);
}

.error-page h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 0 0 0.75rem;
  color: var(--color-black);
}

.error-page p {
  color: var(--color-muted);
  margin: 0 0 2rem;
  font-size: 1.05rem;
}

/* 12. Responsive / Mobile ---------------------------------------------------------- */
@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }

  .site-header .container {
    justify-content: center;
    text-align: center;
  }

  .header-actions {
    width: 100%;
    justify-content: center;
  }

  .btn {
    flex: 1 1 auto;
  }

  .content h1 {
    margin-bottom: 1rem;
  }

  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-info p {
    text-align: left;
  }

  .footer-nav {
    justify-content: center;
    text-align: center;
  }

  .footer-org-list {
    justify-content: center;
  }

  .back-to-top {
    right: 1rem;
    bottom: 1rem;
  }
}
