/* ==========================================================================
   Farbvariablen – hier alle wichtigen Farben anpassen
   ========================================================================== */

:root {
  --color-bg-body: #ffffff;
  --color-bg-header: #ffffff;
  --color-bg-main: #ffffff;
  --color-bg-card: #ffffff;
  --color-bg-card-hover: #ffffff;
  --color-bg-logo: #ffffff;
  --color-bg-badge: #ffffff;

  --color-accent: #f7c9e6;
  --color-accent-hover: #f7c9e6;

  --color-border-subtle: #f4f4f4;

  --color-text-main: #333333;
  --color-text-muted: #333333;
  --color-text-heading: #333333;
  --color-link: #333333;
  --color-link-hover: #333333;

  --color-rating-star: #ffc94d;
  --color-rating-star-empty: #3b4560;

  --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.45);

  --radius-card: 16px;
  --radius-button: 999px;

  --container-width: 1040px;
  --font-family-base: "Calibri", "Segoe UI", Arial, sans-serif;
}

/* ==========================================================================
   Basic Reset & Global Styles
   ========================================================================== */

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: var(--font-family-base);
  background-color: var(--color-bg-body);
  color: var(--color-text-main);
  -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    width: 60%;
    margin: 0 auto;
    display: block;
    border-radius: 12px;
}

.casino-logo img {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    display: block;
    border-radius: 12px;
}

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

a:hover,
a:focus-visible {
  color: var(--color-link-hover);
}

/* ==========================================================================
   Layout Wrapper (Klassen aus altem Template)
   ========================================================================== */

.content-outer {
  background: var(--color-bg-body);
}

.content-inner {
  max-width: 100%;
}

.main-outer {
  background: var(--color-bg-main);
}

.main-inner {
  padding-top: 32px;
  padding-bottom: 80px;
}

/* ==========================================================================
   Layout
   ========================================================================== */

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

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

.site-header {
  background: var(--color-bg-header);
  border-bottom: 1px solid var(--color-border-subtle);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #000;
  font-weight: 800;
  font-size: 14px;
}

.logo-text {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
}

/* Main
   -------------------------------------------------------------------------- */

.site-main {
  background: var(--color-bg-main);
}

.page-title {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 30px);
  text-align: center;
  color: var(--color-text-heading);
}

.page-lead {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 26px;
  border-radius: var(--radius-button);
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: #000;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), 0 12px 30px rgba(0, 0, 0, 0.55);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

/* Rating Section
   -------------------------------------------------------------------------- */

.rating-section {
  margin-bottom: 40px;
}

.section-title {
  margin: 0 0 16px;
  font-size: 20px;
  color: var(--color-text-heading);
}

.casino-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--color-bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border-subtle);
  padding: 14px 18px;
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
}

.casino-logo {
  height: 100%;
    border-radius: 12px;
    background: var(--color-bg-logo);
    display: flex;
    align-items: center;
    justify-content: center;
}

.casino-logo-text {
  font-weight: 800;
  letter-spacing: 0.1em;
  font-size: 16px;
}

.casino-main {
  flex: 1 1 auto;
  min-width: 0;
}

.casino-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.casino-name {
  margin: 0;
  font-size: 28px;
  color: var(--color-text-heading);
}

.casino-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--color-bg-badge);
  font-size: 14px;
  color: var(--color-text-main);
  white-space: nowrap;
}

.casino-desc {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.casino-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.casino-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.rating-stars {
  display: inline-flex;
  gap: 2px;
  font-size: 13px;
}

.rating-stars span {
  color: var(--color-rating-star);
}

.rating-stars .star-empty {
  color: var(--color-rating-star-empty);
}

.rating-score {
  font-weight: 600;
  color: var(--color-text-main);
}

.casino-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 12px;
  color: var(--color-text-muted);
}

.casino-list li {
  position: relative;
  padding-left: 12px;
}

.casino-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
  transform: translateY(-50%);
}

.casino-action {
  flex: 0 0 auto;
}

/* Content Sections
   -------------------------------------------------------------------------- */

.content-section {
  margin-top: 40px;
}

.content-section h2 {
  margin: 0 0 12px;
  font-size: 20px;
  color: #F7C9E6;
}

.content-section h3 {
  margin: 20px 0 10px;
  font-size: 16px;
  color: #7BC29C;
}

.content-section p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.content-section ul {
  margin: 0 0 12px 18px;
  padding: 0;
  font-size: 14px;
  color: var(--color-text-muted);
}

.content-section li + li {
  margin-top: 4px;
}

/* Columns (Vor- und Nachteile)
   -------------------------------------------------------------------------- */

.columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.column {
  padding: 16px;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border-subtle);
  background: var(--color-bg-card);
}

/* Table
   -------------------------------------------------------------------------- */

.table-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  margin-top: 14px;
}

.comparison-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 13px;
}

.comparison-table thead {
  background: var(--color-bg-card);
}

.comparison-table th,
.comparison-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border-subtle);
  text-align: left;
}

.comparison-table th {
  font-weight: 600;
  color: var(--color-text-heading);
}

.comparison-table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

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

.site-footer {
  background: var(--color-bg-header);
  border-top: 1px solid var(--color-border-subtle);
  padding: 16px 0 20px;
}

.footer-text {
  margin: 0;
  font-size: 12px;
  text-align: center;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .casino-card {
    padding: 12px 14px;
  }
}

@media (max-width: 768px) {
  .logo-text {
    font-size: 13px;
  }

  .casino-card {
    flex-direction: column;
    align-items: stretch;
  }

  .casino-logo {
        width: 100%;
        height: 100%;
        justify-content: flex-start;
        padding-left: 0;
    }

  .casino-main {
    margin-top: 8px;
  }

  .casino-header {
    flex-wrap: wrap;
  }

  .casino-action {
    margin-top: 10px;
  }

  .columns {
    grid-template-columns: 1fr;
  }

  .page-title,
  .page-lead {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 22px;
  }
}

/* === Главный контейнер контента === */

.site-main.main-outer {
  padding: 40px 0 60px;
}

.site-main .main-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 30px 20px 40px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  border-radius: 4px;
}

/* === Заголовки и типографика === */

.page-title {
  font-size: 30px;
  line-height: 1.25;
  font-weight: 600;
  text-align: left;
  margin-bottom: 20px;
  color: #222222;
}

/* первый абзац после h1 – как лид */
.site-main .main-inner > h1 + p,
.site-main .main-inner > h1 + .page-lead,
.page-lead {
  font-size: 17px;
  line-height: 1.7;
  color: #444444;
  margin-bottom: 24px;
}

.section-title {
  font-size: 24px;
  line-height: 1.4;
  font-weight: 600;
  margin: 40px 0 16px;
  color: #222222;
}

.content-section.post h2 {
  font-size: 22px;
  line-height: 1.4;
  font-weight: 600;
  margin: 36px 0 12px;
  color: #222222;
}

.content-section.post h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 8px;
  color: #333333;
}

.content-section.post h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 18px 0 6px;
  color: #444444;
}

.site-main .main-inner p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.7;
  color: #3a3a3a;
}

/* списки внутри контента */

.site-main .main-inner ul,
.site-main .main-inner ol {
  margin: 0 0 16px 20px;
  padding: 0;
}

.site-main .main-inner li {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.6;
}

/* лёгкий розовый акцент под бренд */

.site-main .main-inner strong {
  font-weight: 600;
  color: #c84b7f; /* мягкий розовый акцент */
}

/* ссылки в тексте */

.site-main .main-inner a {
  color: #0f6bbb;
  text-decoration: none;
  border-bottom: 1px dotted rgba(15,107,187,0.5);
}

.site-main .main-inner a:hover {
  color: #0b518e;
  border-bottom-style: solid;
}

/* === Общий блок секций === */

.content-section.post {
  margin-top: 24px;
  padding-top: 10px;
  border-top: 1px solid #eeeeee;
}

/* последняя секция — чуть больше отступ снизу */
.content-section.post:last-of-type {
  padding-bottom: 10px;
}

/* === Таблицы рейтинга и сравнения === */

.table-wrapper {
  width: 100%;
  margin: 20px 0 24px;
  overflow-x: auto;
}

.rating-table,
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  font-size: 14px;
}

.rating-table th,
.rating-table td,
.comparison-table th,
.comparison-table td {
  padding: 10px 12px;
  border: 1px solid #e3e3e3;
  text-align: left;
  vertical-align: top;
}

.rating-table thead th,
.comparison-table thead th {
  background: #f7f7f7;
  font-weight: 600;
  color: #333333;
}

.rating-table tbody tr:nth-child(odd),
.comparison-table tbody tr:nth-child(odd) {
  background: #fafafa;
}

/* первый столбец – название/аспект делаем чуть жирнее */

.rating-table tbody td:first-child,
.comparison-table tbody td:first-child {
  font-weight: 600;
}

/* === FAQ секция === */

.faq-section {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eeeeee;
}

.faq-section h2 {
  margin-bottom: 20px;
}

.faq-section h3 {
  margin-top: 22px;
  margin-bottom: 8px;
  font-size: 17px;
}

.faq-section p {
  margin-bottom: 10px;
}

/* === Адаптив === */

@media (max-width: 768px) {
  .site-main .main-inner {
    padding: 20px 15px 30px;
  }

  .page-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 20px;
  }

  .content-section.post h2 {
    font-size: 19px;
  }

  .rating-table,
  .comparison-table {
    min-width: 520px;
  }
}

/* === Оформление всех таблиц в контенте === */

.site-main .main-inner table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 28px;
  font-size: 14px;
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  /* если таблица шире контейнера — пусть спокойно уходит в скролл */
  display: block;
  overflow-x: auto;
}

/* чтобы внутри блока таблица всё равно растягивалась на ширину */
.site-main .main-inner table tbody,
.site-main .main-inner table thead {
  width: 100%;
}

/* ячейки */

.site-main .main-inner th,
.site-main .main-inner td {
  padding: 10px 14px;
  border-bottom: 1px solid #e3e3e3;
  border-right: 1px solid #f2f2f2;
  text-align: left;
  vertical-align: top;
}

.site-main .main-inner th:last-child,
.site-main .main-inner td:last-child {
  border-right: none;
}

/* шапка таблицы */

.site-main .main-inner thead th {
  background: linear-gradient(to bottom, #fafafa, #f2f2f2);
  font-weight: 600;
  color: #333333;
  white-space: nowrap;
}

/* зебра и hover */

.site-main .main-inner tbody tr:nth-child(odd) {
  background: #fcfcfc;
}

.site-main .main-inner tbody tr:nth-child(even) {
  background: #ffffff;
}

.site-main .main-inner tbody tr:hover {
  background: #f5f9ff;
}

/* первый столбец чуть важнее */

.site-main .main-inner tbody td:first-child {
  font-weight: 600;
  color: #222222;
}

/* компактный вид на мобиле */

@media (max-width: 768px) {
  .site-main .main-inner table {
    font-size: 13px;
  }

  .site-main .main-inner th,
  .site-main .main-inner td {
    padding: 8px 10px;
  }
}
