/*
  STYLES.CSS (scentedjourneys.de)
  - Dunkles Thema, responsive Layout für Desktop und Mobilgerät.
  - Kommentare beschreiben jeden größeren Block und Komponente.
*/

/* === Basis / Reset === */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #050816; /* Dunkler Hintergrund für die gesamte Seite */
  color: #f9fafb; /* Helles Text für hohen Kontrast */
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  overflow-x: hidden; /* Fixiert den Bildschirm horizontal auf Mobilgerät */
}

body.no-scroll {
  overflow: hidden; /* Sperrt Hintergrund-Scroll, wenn Mobilmenü geöffnet ist */
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: #38bdf8;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

/* === Layout-Hilfen === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-main {
  padding: 3rem 0 4rem;
}

.content-section {
  margin-bottom: 2.5rem;
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-intro {
  margin: 0.5rem 0 0;
  color: #e5e7eb;
}

/* === Skip-Link === */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 10000;
  padding: 0.5rem 1rem;
  background-color: #111827;
  color: #f9fafb;
  border-radius: 999px;
}

.skip-link:focus {
  left: 0.5rem;
}

/* === Header und Navigation === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 8, 22, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(55, 65, 81, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo-image {
  width: 120px;
  height: auto;
}

.main-nav {
  display: none;
}

.nav-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-weight: 500;
  color: #e5e7eb;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #ffffff;
}

/* Hamburger-Button für Mobilnavigation */
.nav-toggle {
  background: none;
  border: 1px solid rgba(148, 163, 184, 0.7);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  color: #e5e7eb;
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background-color: currentColor;
}

.nav-toggle:focus-visible {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
}

/* Mobilnav-Panel */
.main-nav.is-open {
  display: block;
  position: absolute;
  inset-inline: 0;
  top: 64px;
  background-color: #020617;
  border-bottom: 1px solid rgba(55, 65, 81, 0.7);
}

.main-nav.is-open .nav-list {
  flex-direction: column;
  padding: 1rem;
}

/* Desktop-Navigation (>= 768px) */
@media (min-width: 768px) {
  .main-nav {
    display: block;
    position: static;
  }

  .main-nav.is-open {
    position: static;
  }

  .nav-toggle {
    display: none;
  }
}

/* === Breadcrumbs === */
.breadcrumbs-nav {
  border-bottom: 1px solid rgba(55, 65, 81, 0.7);
  background: #020617;
}

.breadcrumbs {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #9ca3af;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  margin: 0 0.25rem;
  color: #4b5563;
}

.breadcrumb-item[aria-current="page"] {
  color: #e5e7eb;
}

/* === Hero-Banner === */
.hero-banner {
  position: relative;
  isolation: isolate;
}

.hero-image {
  width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  .hero-image {
    height: 420px;
    object-fit: cover;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.hero-content {
  max-width: 640px;
  text-align: center;
  padding: 1.5rem 1.75rem;
  border-radius: 1.25rem;
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(18px);
}

.hero-title {
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
}

.hero-subtitle {
  margin: 0 0 1.5rem;
  color: #e5e7eb;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 1.9rem;
  }
}

/* === Button-Stile (verwendet für alle /go/ CTAs) === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background-color 0.12s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #f97316, #ec4899);
  color: #0b1020;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.6);
}

.btn-secondary {
  background: transparent;
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.6);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.7);
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}

.text-cta-wrapper {
  margin-top: 1.5rem;
}

/* === Text Banner mit CTA === */
.text-banner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 2.5rem 0;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(55, 65, 81, 0.5);
  overflow: hidden;
}

.text-banner-image {
  flex: 1;
  min-width: 0;
}

.text-banner-image img {
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  display: block;
}

.text-banner-cta {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 1rem;
}

.text-banner-cta-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f9fafb;
  margin: 0;
}

.text-banner-cta-subtitle {
  font-size: 0.9rem;
  color: #e5e7eb;
  margin: 0;
}

@media (max-width: 767px) {
  .text-banner {
    flex-direction: column;
    gap: 1rem;
  }

  .text-banner-cta {
    width: 100%;
    padding: 0.75rem;
  }
}

/* === Slots-Grid === */
.slots-section {
  padding: 3rem 0 1.5rem;
}

.slots-grid-wrapper {
  overflow-x: auto; /* Ermöglicht horizontales Scrollen der Zeile auf kleinen Bildschirmen */
  padding-bottom: 0.5rem;
}

.slots-grid-wrapper::-webkit-scrollbar {
  height: 6px;
}

.slots-grid-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.slots-grid-wrapper::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.6);
  border-radius: 999px;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(6, auto);
  gap: 1rem;
  padding: 0.5rem 0 0.25rem;
}

.slot-card {
  margin: 0;
}

.slot-image {
  border-radius: 0.75rem; /* Rundet Ecken ohne Skalierung */
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.75);
}

@media (max-width: 767px) {
  .slots-grid-wrapper {
    overflow-x: visible;
  }

  .slots-grid {
    /* Auf Mobilgerät: 2 Spalten, die die Breite des Bildschirms ausfüllen */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .slot-card {
    width: 100%;
  }

  .slot-image {
    width: 100%;
    height: auto;
  }
}

/* === Typografie im Inhalt === */
h1,
h2,
h3,
h4 {
  color: #f9fafb;
}

h1 {
  font-size: 1.8rem;
  margin-top: 0;
}

h2 {
  font-size: 1.4rem;
}

h3 {
  font-size: 1.15rem;
}

p {
  color: #e5e7eb;
}

ul,
ol {
  padding-left: 1.25rem;
}

strong {
  font-weight: 600;
}

/* === Tabellen (responsive Anpassung) === */
.table-wrapper {
  margin: 1.5rem 0;
  border-radius: 0.75rem;
  border: 1px solid rgba(75, 85, 99, 0.8);
  background: rgba(15, 23, 42, 0.8);
  overflow: hidden;
  overflow-x: auto; /* Erste Ebene: horizontales Scrollen auf Mobilgerät */
}

.responsive-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}

.responsive-table th,
.responsive-table td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid rgba(55, 65, 81, 0.9);
}

.responsive-table thead {
  background: rgba(15, 23, 42, 1);
}

.responsive-table th {
  font-size: 0.9rem;
  color: #e5e7eb;
}

.responsive-table tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.9);
}

.responsive-table tbody tr:nth-child(odd) {
  background: rgba(15, 23, 42, 0.7);
}

/* Extra schmale Bildschirme: Zeilen in Karten mit data-label umwandeln */
@media (max-width: 480px) {
  .responsive-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
  }

  .responsive-table thead {
    display: none; /* Kopfzeile visuell ausblenden, Info wird über data-label angezeigt */
  }

  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table td {
    display: block;
    width: 100%;
  }

  .responsive-table tr {
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(55, 65, 81, 0.7);
  }

  .responsive-table td {
    position: relative;
    padding-left: 7rem;
  }

  .responsive-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 0.9rem;
    top: 0.75rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #9ca3af;
  }
}

/* === Footer === */
.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(55, 65, 81, 0.9);
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #000 100%);
  padding: 2.5rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-heading {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
  margin: 0 0 1rem;
}

.payment-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

.payment-logo {
  height: 28px;
  width: auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.7));
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #9ca3af;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.footer-link {
  color: #e5e7eb;
  font-weight: 500;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: #ffffff;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}
