@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
  --color-primary: #ff5722;
  --color-secondary: #16a085;
  --color-secondary-dark: #1abc9c;
  --color-bg: #f5f7fa;
  --color-card-bg: #ffffff;
  --color-text: #333333;
  --color-muted: #777777;
  --radius: 8px;
  --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.seo-text a {
    color: blue !important;
    text-decoration: underline;
}

.seo-text img {
  max-width: 100%;
  height: auto;
  display: block;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

header {
  background: #eceff7;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--box-shadow);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: var(--color-text);
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: #000000;
}

main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.headline {
  text-align: center;
  margin-bottom: 2rem;
}

.headline h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: #222222;
}

.headline p {
  font-size: 1rem;
  color: var(--color-muted);
  max-width: 800px;
  margin: 0 auto;
}

.top-casino {
  margin-bottom: 2rem;
}

.top-casino h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #222222;
}

.casino-box {
  display: flex;
  align-items: center;
  background: var(--color-card-bg);
  box-shadow: var(--box-shadow);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.casino-logo {
  flex: 0 0 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.casino-logo img {
  width: 150px;
  height: auto;
  border-radius: 50%;
}

.casino-info {
  flex: 1;
  margin-left: 1rem;
}

.casino-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: #222222;
}

.casino-info p {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.casino-info a {
  font-size: 0.9rem;
  color: #007bff;
}

.casino-info a:hover {
  text-decoration: underline;
}

.casino-action {
  margin-left: auto;
}

.play-button {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(90deg, var(--color-secondary-dark), var(--color-secondary));
  color: #ffffff;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background 0.3s, transform 0.1s;
}

.play-button:hover {
  background: linear-gradient(90deg, var(--color-secondary), var(--color-secondary-dark));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.seo-text {
  background: var(--color-card-bg);
  padding: 2rem 1rem;
  border-radius: var(--radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 2rem;
}

.seo-text .container {
  max-width: 1000px;
  margin: 0 auto;
}

.seo-text h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: #222222;
}

.seo-text p {
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.site-footer {
  background: #f8f9fa;
  padding: 2rem 1rem;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.site-footer .container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--color-text);
}

.footer-links a:hover {
  text-decoration: underline;
}

.site-footer p {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-muted);
}

@media (max-width: 768px) {

  nav ul {
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .casino-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .casino-action {
    margin: 1rem 0 0;
    width: 100%;
  }

  .play-button {
    width: 100%;
    text-align: center;
  }
}


header {
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo h1 {
  font-family: 'Big John', sans-serif;
  font-size: 1.6rem;
  background: linear-gradient(45deg, #ff6b6b, #ffd93d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav ul {
  gap: 2rem;
}
nav li {
  position: relative;
}
nav li a {
  padding-right: 0.5rem;
}


header {
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: background 0.3s, box-shadow 0.3s;
}
header.scrolled {
  background: #5858b0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

nav li:hover ul {
  display: block;
}
nav li ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-card-bg);
  box-shadow: var(--box-shadow);
  display: none;
  list-style: none;
  padding: 0.5rem 0;
  border-radius: var(--radius);
}
nav li ul li a {
  display: block;
  padding: 0.5rem 1rem;
  white-space: nowrap;
}
nav li ul li a:hover {
  background: var(--color-bg);
}

/* --- Casino Favorites Section --- */
.casino-favorites {
  padding: 0px 50px 50px 50px;
  max-width: 1200px;
  margin: 0 auto;
}
.casino-favorites h2 {
  font-size: 1.75rem;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Grid for 3 cards */
.casino-favorites__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Base card styling */
.casino-card {
  position: relative;
  background: var(--color-card-bg);
  border: 1px solid #e0e0e0;
  border-radius: var(--radius);
  box-shadow: var(--box-shadow);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Badge for non-featured cards */
.casino-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 2rem;
  height: 2rem;
  background: var(--color-secondary);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
}

/* Featured card modifier */
.casino-card--featured {
  padding-top: 2.5rem;
  border-color: var(--color-secondary);
}
.casino-card--featured .casino-card__featured-label {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--color-secondary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  padding: 0.5rem 0;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

/* Logo */
.casino-card__logo img {
  max-width: 100px;
  height: auto;
  margin-bottom: 1rem;
}

/* Bonus info */
.casino-card__bonus {
  text-align: center;
  margin-bottom: 1rem;
}
.casino-card__bonus .bonus-amount {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 0.25rem;
}
.casino-card__bonus .bonus-label {
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* Action button */
.casino-card__button {
  display: inline-block;
  background: var(--color-secondary);
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.1s;
  text-align: center;
}
.casino-card__button:hover {
  background: var(--color-secondary-dark);
  transform: translateY(-2px);
}

/* Stats row */
.casino-card__stats {
  display: flex;
  gap: 1.5rem;
  margin: 1rem 0;
}
.casino-card__stats .stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted);
}
.casino-card__stats .stat span {
  font-weight: 600;
}
/* Color the second stat (RTP) in green */
.casino-card__stats .stat:nth-child(2) span {
  color: var(--color-secondary-dark);
}

/* "Weitere Information" link */
.casino-card__more {
  margin-top: auto;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s;
  text-decoration: none;
}
.casino-card__more:hover {
  color: var(--color-secondary-dark);
}
.casino-card__more::before {
  content: "+";
}

@media (max-width: 480px) {
  .casino-card__stats {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
}

.casino-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.casino-card__logo {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.meta-info {
  margin: 1rem 0 2rem;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.breadcrumbs {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.breadcrumbs a {
  color: var(--color-text);
  text-decoration: none;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}

.meta-info hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 0.5rem 0 1rem;
}

/* author-info */
.author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

.author-text {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}

.author-name {
  font-weight: 600;
  color: var(--color-text);
}

.author-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: #e6f5ff;
  color: #0073e6;
  border-radius: var(--radius);
}

.author-update {
  color: var(--color-text);
}

/* ---------------------------
   Author Detail (Über den Autor)
   --------------------------- */
.author-detail {
  background: var(--color-card-bg);
  border-radius: var(--radius);
  box-shadow: var(--box-shadow);
  padding: 2rem 1rem;
  margin: 2rem 0;
}

.author-detail__inner {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.author-detail__avatar img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-detail__info {
  flex: 1;
}

.author-detail__name {
  margin: 0;
  font-size: 1.25rem;
  color: var(--color-text);
}

.author-detail__role {
  margin: 0.25rem 0 1rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.author-detail__info hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 0 0 1rem;
}

.author-detail__bio {
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.author-detail__extras {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.author-detail__extras strong {
  color: var(--color-text);
}

.author-detail__socials a {
  color: var(--color-secondary);
  text-decoration: none;
  margin: 0 0.25rem;
}

.author-detail__socials a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .author-detail__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .author-detail__socials {
    justify-content: center;
  }
}


.quellen-list {
  list-style: none;
  margin: 0;
  padding: 0;
  column-count: 2;
  column-gap: 2rem;
}

.quellen-list li {
  position: relative;
  padding: 0.5em 0 0.5em 1.75em;
  margin-bottom: 0.5em;
  break-inside: avoid;
  line-height: 1.5;
}

.quellen-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 1em;
  height: 1em;
  background: url("./files/link.png") no-repeat center center;
  background-size: contain;
}

.quellen-list li a {
  color: var(--color-secondary);
  text-decoration: none;
}
.quellen-list li a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .quellen-list {
    column-count: 1;
  }
}

header .logo {
  display: flex;
  align-items: center;
  padding: 0 1rem;
}

header .logo img {
  display: block;
  width: 160px;
  height: auto;
  object-fit: contain;
}

@media (max-width: 600px) {
  header .logo img {
    width: 120px;
  }
}

.headline h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.casino-favorites h2,
.top-casino h3,
.seo-text h2 {
  font-size: 1.75rem;
  line-height: 1.3;
  margin: 2rem 0 1rem;
  color: var(--color-text);
}

@media (max-width: 768px) {
  /* По умолчанию все одинакового порядка */
  .casino-favorites__cards > * {
    order: 0;
  }
  /* А центральную карточку (#1) поднимаем наверх */
  .casino-card--featured {
    order: -1;
  }
}

/* -------------------------
   Расширенный футер
   ------------------------- */
.site-footer {
  background: #f8f9fb;
  color: var(--color-text);
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem 1rem;
}

.footer-logo-desc {
  flex: 1 1 240px;
}

.footer-logo {
  max-width: 180px;
  height: auto;
  margin-bottom: 1rem;
}

.footer-desc {
  margin: 0;
  color: var(--color-muted);
}

.footer-columns {
  display: flex;
  flex: 2 1 480px;
  gap: 2rem;
}

.footer-col h4 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: var(--color-text);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--color-secondary);
}

/* Правовые заметки */
.footer-notice {
  background: #ffffff;
  border-top: 1px solid #e1e5e8;
  padding: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text);
}

/* Партнёрские значки */
.footer-partners {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 0;
}

.footer-partners img {
  display: block;
  width: 70px;
  height: auto;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer-partners img:hover {
  opacity: 1;
}

/* Нижняя строка */
.footer-bottom {
  border-top: 1px solid #e1e5e8;
  padding: 1rem 0;
  text-align: center;
}

.footer-bottom-links {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.footer-bottom-links a {
  color: var(--color-text);
  text-decoration: none;
}

.footer-bottom-links a:hover {
  text-decoration: underline;
}

.footer-copy {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.8rem;
}

/* Адаптив */
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    text-align: center;
  }
  .footer-columns {
    flex-direction: column;
    align-items: center;
  }
  .footer-logo-desc,
  .footer-col {
    flex: none;
    width: 100%;
  }
  .footer-col ul {
    display: inline-block;
    text-align: left;
  }
  .footer-partners {
    gap: 1rem;
  }
}

.casino-card__rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.casino-card__rating .stars {
  display: flex;
  gap: 0.25rem;
}

.casino-card__rating .stars img {
  width: 16px;
  height: 16px;
}

.casino-card__rating .rating-value {
  font-size: 0.9rem;
  color: var(--color-text);
  font-weight: 600;
}

.casino-info__rating {
  display: flex;
  align-items: center;
  margin: 0.5rem 0;
}

.casino-info__rating .rating-icon {
  width: 16px;
  height: 16px;
  margin-right: 0.4rem;
}

.casino-info__rating .rating-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.casino-box {
  position: relative;
}

.casino-number {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 2rem;
  height: 2rem;
  background: var(--color-secondary);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

ol, ul {
  margin-bottom: 20px;
  padding-left: 30px;
}

ol li, ul li {
  margin-bottom: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 15px;
  border: 1px solid #f2f2f2;
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #f8f8f8;
  font-weight: 600;
}

tr:hover {
  background-color: #f9f9f9;
}

blockquote {
  background-color: #f9f9f9;
  border-left: 4px solid #ddd;
  margin: 20px 0;
  padding: 16px 20px;
  font-style: italic;
}

blockquote p:last-child {
  margin-bottom: 0;
}

.maintable {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    text-align: left;
    color: #fff;
}

th, td {
    padding: 10px 15px;
}

th {
    font-weight: bold;
    text-transform: uppercase;
}


td a {
    text-decoration: none;
    font-weight: bold;
}

td a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 450px) {
    .maintable {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        width: 100%;
        min-width: 700px;
    }
}

.logo img {
  max-height: 40px;
}

nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
}

.burger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  width: 25px;
  height: 20px;
  justify-content: center;
  z-index: 11;
}

.burger-menu span {
  height: 3px;
  background: #000;
  border-radius: 2px;
  display: block;
  transition: 0.3s;
}

#overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 9;
}

@media (max-width: 768px) {
  .burger-menu {
    display: flex;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 250px;
    background: #eceff7;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    padding: 50px 20px;
    transition: right 0.3s ease;
    z-index: 10;
  }

  nav ul {
    flex-direction: column;
    gap: 20px;
  }

  nav.active {
    right: 0;
  }

  #overlay.active {
    display: block;
  }

  .burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .burger-menu.active span:nth-child(2) {
    opacity: 0;
  }

  .burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}