/*
* casinohotelbewertungen.com - Stylesheet
* Theme: Obsidian Gold
*/

/* ------------------ */
/* -- VARIABLES -- */
/* ------------------ */
:root {
  --primary: #1C1C1C;
  --secondary: #FFD700; /* Gold */
  --accent: #FF6B35; /* Orange */
  --dark: #0D0D0D;
  --light: #F5F5F5;
  --bg: #2A2A2A;

  --font-primary: 'Inter', sans-serif;
  --font-secondary: 'Inter', sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.4);

  --transition: all 0.3s ease-in-out;
}

/* ------------------ */
/* -- RESET & BASE -- */
/* ------------------ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--primary);
  color: var(--light);
  line-height: 1.6;
  font-size: 16px;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

h1, h2, h3, h4 {
  font-family: var(--font-secondary);
  font-weight: 700;
  line-height: 1.2;
  color: var(--secondary);
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.2rem; }

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

a:hover, a:focus {
  color: var(--accent);
  text-decoration: underline;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

section {
  padding: 4rem 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------ */
/* -- ACCESSIBILITY -- */
/* ------------------ */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--secondary);
  color: var(--dark);
  padding: 8px;
  z-index: 10000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

/* ------------------ */
/* -- HEADER -- */
/* ------------------ */
.site-header {
  padding: 1rem 0;
  position: absolute;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.site-header.floating {
    background-color: transparent;
}

.site-header.scrolled {
    position: fixed;
    background-color: rgba(28, 28, 28, 0.9);
    backdrop-filter: blur(10px);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--secondary);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--light);
  font-weight: 600;
  padding: 0.5rem;
  position: relative;
  text-decoration: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger {
  display: block;
  position: relative;
  width: 25px;
  height: 2px;
  background-color: var(--light);
  transition: var(--transition);
}

.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--light);
  transition: var(--transition);
}

.hamburger::before { transform: translateY(-8px); }
.hamburger::after { transform: translateY(8px); }

/* ------------------ */
/* -- HERO SECTION -- */
/* ------------------ */
.hero-section {
  position: relative;
  height: 75vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(13, 13, 13, 1) 10%, rgba(13, 13, 13, 0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  overflow: visible;
}

.hero-content h1 {
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero-content .subtitle {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 1rem auto 2rem;
  color: var(--light);
}

.hero-partners-carousel {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  align-items: center;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-padding: 0 5vw;
  scrollbar-width: thin;
  scrollbar-color: var(--secondary) transparent;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.hero-partners-carousel::-webkit-scrollbar {
  height: 6px;
}

.hero-partners-carousel::-webkit-scrollbar-track {
  background: transparent;
}

.hero-partners-carousel::-webkit-scrollbar-thumb {
  background-color: var(--secondary);
  border-radius: 3px;
}

.partner-card-glass {
  flex-shrink: 0;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  min-width: 200px;
  transition: var(--transition);
}

.partner-card-glass:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.partner-card-glass img {
  height: 40px;
  margin: 0 auto 0.5rem;
  object-fit: contain;
}

/* ------------------ */
/* -- PARTNER CARDS -- */
/* ------------------ */
.partner-section {
  background-color: var(--dark);
}

.partner-section h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.card-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 800px;
  margin: auto;
  padding: 2rem 0;
}

.partner-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid #444;
  transition: transform 0.3s ease, z-index 0s 0.3s ease;
  position: relative;
  z-index: 1;
}

.card-stack > article:nth-child(n+2) {
  margin-top: -100px;
}

.card-stack:hover > article {
  transform: translateY(0);
}

.card-stack > article:hover {
  transform: translateY(-20px) scale(1.02);
  z-index: 10;
  transition: transform 0.3s ease, z-index 0s 0s ease;
}

.card-stack > article:not(:hover) {
  filter: brightness(0.85);
}

.card-stack > article {
  margin-bottom: 0;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.partner-logo {
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

.card-rating {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--secondary);
}

.card-badge {
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-weight: 600;
  color: var(--dark);
}

.recommended { background-color: var(--secondary); }
.best-value { background-color: var(--accent); }
.editor-choice { background-color: #4CAF50; }

.card-body h3 {
  margin-bottom: 0.5rem;
}

.bonus-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--light);
}

.card-footer {
  margin-top: 1.5rem;
  text-align: right;
}

/* ------------------ */
/* -- HOW WE RATE -- */
/* ------------------ */
.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.rate-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.rate-content ul {
  list-style-type: '✓';
  padding-left: 1.5rem;
}

.rate-content ul li {
  margin-bottom: 1rem;
  padding-left: 1rem;
}

/* ------------------ */
/* -- STATS SECTION -- */
/* ------------------ */
.stats-section {
  background-color: var(--dark);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item .stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--secondary);
}

.stat-item span {
  font-size: 2.5rem;
  color: var(--secondary);
}

.stat-item p {
  font-size: 1.1rem;
  color: var(--light);
  margin-top: 0.5rem;
}

/* ------------------ */
/* -- TESTIMONIALS -- */
/* ------------------ */
.testimonial-section h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.testimonial-slider {
  position: relative;
  max-width: 800px;
  margin: auto;
  overflow: hidden;
}

.slider-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  padding: 2rem;
  background: var(--bg);
  border-radius: var(--radius-lg);
  text-align: center;
  display: none;
}

.slide.active {
  display: block;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  border: 3px solid var(--secondary);
}

blockquote {
  font-style: italic;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

cite {
  font-weight: 600;
  color: var(--secondary);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 215, 0, 0.8);
  color: var(--dark);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.slider-btn:hover {
  background-color: var(--secondary);
}

.prev { left: 10px; }
.next { right: 10px; }

/* ------------------ */
/* -- NEWSLETTER -- */
/* ------------------ */
.newsletter-section {
  background-color: var(--dark);
  text-align: center;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form input {
  flex-grow: 1;
}

/* ------------------ */
/* -- RESPONSIBLE PLAY -- */
/* ------------------ */
.responsible-play {
  text-align: center;
  background-color: var(--bg);
  padding: 3rem 0;
  border-top: 4px solid var(--accent);
}

.age-badge {
  width: 60px;
  height: 60px;
  border: 3px solid var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}

.responsible-play h2 {
  color: var(--light);
}

.responsible-play p {
  max-width: 700px;
  margin: 0 auto 1rem;
}

/* ------------------ */
/* -- FOOTER -- */
/* ------------------ */
.site-footer {
  background-color: var(--dark);
  padding: 3rem 0 1rem;
  color: #ccc;
}

.footer-logos {
  text-align: center;
  margin-bottom: 3rem;
  border-bottom: 1px solid #444;
  padding-bottom: 2rem;
}

.footer-logos h3 {
  color: var(--light);
  margin-bottom: 1.5rem;
}

.logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.logo-grid img {
  height: 40px;
  filter: grayscale(100%) brightness(1.5);
  transition: var(--transition);
}

.logo-grid a:hover img {
  filter: none;
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: var(--secondary);
  margin-bottom: 1rem;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: #ccc;
}

.footer-col a:hover {
  color: var(--secondary);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #444;
  padding-top: 2rem;
  font-size: 0.9rem;
}

.disclaimer {
  margin-bottom: 1rem;
}

/* ------------------ */
/* -- FORMS -- */
/* ------------------ */
input[type='text'],
input[type='email'],
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #555;
  background-color: var(--bg);
  color: var(--light);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: var(--transition);
}

input[type='text']:focus,
input[type='email']:focus,
textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group {
  margin-bottom: 1.5rem;
}

/* ------------------ */
/* -- BUTTONS -- */
/* ------------------ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  text-decoration: none;
}

.btn--primary {
  background-color: var(--secondary);
  color: var(--dark);
  border-color: var(--secondary);
}

.btn--primary:hover {
  background-color: #e6c300;
  border-color: #e6c300;
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

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

.btn--outline:hover {
  background-color: var(--secondary);
  color: var(--dark);
}

/* ------------------ */
/* -- COOKIE BANNER -- */
/* ------------------ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(5px);
  color: var(--light);
  padding: 1.5rem;
  z-index: 2000;
  display: flex; /* Changed from none */
  justify-content: center;
  align-items: center;
  border-top: 1px solid #444;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

/* ------------------ */
/* -- MODALS -- */
/* ------------------ */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}

.modal__content {
  background-color: var(--bg);
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  max-width: 500px;
  width: 90%;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal.active .modal__content {
  transform: scale(1);
}

.success-icon {
  width: 70px;
  height: 70px;
  border: 4px solid var(--secondary);
  border-radius: 50%;
  color: var(--secondary);
  font-size: 2.5rem;
  line-height: 62px;
  margin: 0 auto 1rem;
}

/* ------------------ */
/* -- OTHER PAGES -- */
/* ------------------ */
.page-main {
    padding-top: 100px; /* Offset for floating header */
}

.page-header {
    padding: 4rem 0;
    background-color: var(--dark);
    text-align: center;
}

.content-section, .text-content-section, .faq-section, .contact-section {
    padding: 4rem 0;
}

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

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.icon-item {
    text-align: center;
}

.icon-item img {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
}

.icon-item h3 { font-size: 1.25rem; color: var(--light); }

.accordion details {
    background-color: var(--bg);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    border: 1px solid #444;
}

.accordion summary {
    padding: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    font-size: 1.2rem;
}

.accordion summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.accordion details[open] summary::after {
    transform: rotate(45deg);
}

.accordion-content {
    padding: 0 1.5rem 1.5rem;
    border-top: 1px solid #444;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.resource-list {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.resource-item {
    background-color: var(--bg);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border-left: 5px solid var(--secondary);
}

.resource-item img { height: 50px; margin-bottom: 1rem; }
.resource-item a { margin-top: 1rem; }


/* ------------------ */
/* -- RESPONSIVE -- */
/* ------------------ */
@media (max-width: 992px) {
  .card-stack > article:nth-child(n+2) { margin-top: -80px; }
  .grid-2-col, .contact-wrapper { grid-template-columns: 1fr; }
  .rate-image { order: -1; margin-bottom: 2rem; }
}

@media (max-width: 991px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.5s ease-in-out;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }

  .nav-toggle[aria-expanded='true'] .hamburger {
    background-color: transparent;
  }
  .nav-toggle[aria-expanded='true'] .hamburger::before {
    transform: rotate(45deg);
  }
  .nav-toggle[aria-expanded='true'] .hamburger::after {
    transform: rotate(-45deg);
  }

  .card-stack { gap: 1.5rem; }
  .card-stack > article:nth-child(n+2) { margin-top: 0; }
  .card-stack:hover > article, .card-stack > article:hover { transform: none; }

  .footer-main { grid-template-columns: 1fr; text-align: center; }
  .footer-col ul { padding: 0; }

  .cookie-content { flex-direction: column; text-align: center; }
}
