/**
 * @file        components.css
 * @description Section-level component styles: nav, hero, guardian, stats, features,
 *              dashboard, about, test-signup, FAQ, footer, cookie banner
 *
 * @author      Thomas Dobler - SYNTHETIXMIND LTD
 * @email       tom@synthetixmind.com
 * @company     SYNTHETIXMIND LTD, Paphos, Cyprus
 * @url         https://synthetixmind.com
 *
 * @uid         b2c3d4e5-f6a7-8901-bcde-f01234567891
 * @version     0.0.2.13
 * @created     2026-05-10
 * @updated     2026-05-28
 *
 * @copyright   (c) 2026 by SYNTHETIXMIND LTD
 * @license     Proprietary — All rights reserved
 */

/* ══════════════════════════════════════════════════════════════════════════ */
/* NAVIGATION                                                                  */
/* ══════════════════════════════════════════════════════════════════════════ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(12, 37, 59, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(199, 169, 107, 0.15);
  z-index: 1000;
  transition: box-shadow var(--transition-base), background var(--transition-base);
}

.nav.is-scrolled {
  background: rgba(12, 37, 59, 0.98);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.nav__logo-img {
  height: 40px;
  width: auto;
}

.nav__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: #ffffff;
  font-weight: 700;
}

/* Desktop links */
.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-6);
}

.nav__link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

/* CTA in nav */
.nav__cta {
  display: none;
}

/* Hamburger (mobile) */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav__hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav__hamburger.is-open .nav__hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav__hamburger.is-open .nav__hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.is-open .nav__hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile menu */
.nav__mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background-color: var(--color-blue);
  padding: var(--space-6) var(--container-px);
  flex-direction: column;
  gap: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
  z-index: 999;
}

.nav__mobile-menu.is-open {
  display: flex;
}

.nav__mobile-link {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color var(--transition-fast);
}

.nav__mobile-link:hover,
.nav__mobile-link.is-active {
  color: var(--color-gold);
}

.nav__mobile-cta {
  margin-top: var(--space-4);
}

/* ══════════════════════════════════════════════════════════════════════════ */
/* HERO                                                                        */
/* ══════════════════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--nav-height) + var(--space-12));
  padding-bottom: var(--space-20);
  background: #0d2e49;
  color: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Decorative radial glow — adds depth behind content */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(79, 163, 165, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

/* Bottom gold accent line */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-gold);
  opacity: 0.6;
}

/* Parallax background layer — hidden, replaced by solid background + image column */
.hero__bg {
  display: none;
}

/* WHY: Parallax adds visual depth on desktop but is distracting/expensive on mobile */
@media (prefers-reduced-motion: reduce) {
  .hero__bg {
    transform: none !important;
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(199, 169, 107, 0.15);
  border: 1px solid rgba(199, 169, 107, 0.5);
  color: var(--color-gold);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: var(--space-2) var(--space-5);
  border-radius: 100px;
  margin-bottom: var(--space-6);
  backdrop-filter: blur(8px);
  max-width: 100%; /* prevent overflow on narrow viewports */
}

.hero__badge::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  background: var(--color-gold);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(199, 169, 107, 0.8);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl); /* 32px mobile-base — scales up in responsive.css */
  color: #ffffff;
  margin-bottom: var(--space-6);
  line-height: 1.1;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 560px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

/* Checkpoints */
.hero__checkpoints {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hero__checkpoint {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.75);
}

.hero__checkpoint-icon {
  width: 20px;
  height: 20px;
  background-color: var(--color-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero__checkpoint-icon svg {
  width: 12px;
  height: 12px;
  color: var(--color-blue);
}

.hero__test-hint {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  font-style: italic;
}

.testnutzer-hint {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  font-weight: bold;
  color: rgba(255, 255, 255, 0.7);
  font-style: normal;
}

.testnutzer-hint--centered {
  display: flex;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  margin-top: var(--space-4);
}

.testnutzer-hint__img {
  height: 44px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.hero__image-col {
  display: none; /* shown at tablet+ via responsive.css */
}

.hero__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  object-fit: cover;
}

/* ══════════════════════════════════════════════════════════════════════════ */
/* SECTION WAVE DIVIDERS                                                        */
/* ══════════════════════════════════════════════════════════════════════════ */

/* WHY: SVG wave separators give sections organic flow without hard edges */
.wave-bottom {
  position: relative;
}

.wave-bottom::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: inherit;
  clip-path: ellipse(55% 100% at 50% 0%);
  z-index: 1;
}

/* ══════════════════════════════════════════════════════════════════════════ */
/* GUARDIAN (WÄCHTER)                                                          */
/* ══════════════════════════════════════════════════════════════════════════ */

.guardian {
  background-color: var(--color-bg-default);
}

.guardian__intro {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-12);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

.guardian__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.guardian__card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: box-shadow var(--transition-base), border-color var(--transition-base),
              transform var(--transition-base);
  position: relative;
  overflow: hidden;
}

/* Subtle top accent line that reveals on hover */
.guardian__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-petrol);
  transform: scaleX(0);
  transition: transform var(--transition-base);
  transform-origin: left;
}

.guardian__card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(79, 163, 165, 0.3);
  transform: translateY(-4px);
}

.guardian__card:hover::before {
  transform: scaleX(1);
}

.guardian__card-icon {
  width: 52px;
  height: 52px;
  background-color: rgba(79, 163, 165, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.guardian__card-icon svg {
  width: 26px;
  height: 26px;
  color: var(--color-accent);
  stroke-width: 2;
}

.guardian__card-title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--color-blue);
  margin-bottom: var(--space-3);
}

.guardian__card-text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

.guardian__prose {
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: var(--space-12);
}

.guardian__prose p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-5);
}

.guardian__prose p:last-child {
  margin-bottom: 0;
}

.guardian__checkpoints {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.guardian__checkpoint {
  background-color: rgba(79, 163, 165, 0.1);
  border: 1px solid rgba(79, 163, 165, 0.3);
  color: var(--color-blue);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-5);
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.guardian__checkpoint::before {
  content: '✅';
  font-style: normal;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════════════════ */
/* STATISTICS                                                                  */
/* ══════════════════════════════════════════════════════════════════════════ */

.stats {
  background: var(--gradient-blue);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

/* Decorative background circles for depth */
.stats::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(79, 163, 165, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.stats::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(199, 169, 107, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.stats .section__label {
  color: var(--color-gold);
}

.stats .section__title {
  color: #ffffff;
}

.stats .section__subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.stats__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.stats__box {
  background: var(--gradient-glass);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: var(--space-6); /* 24px mobile-base — scales up in responsive.css */
  text-align: center;
  transition: background-color var(--transition-base), transform var(--transition-base),
              border-color var(--transition-base), box-shadow var(--transition-base);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(8px);
}

.stats__box:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(199, 169, 107, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.stats__value {
  font-family: var(--font-display);
  font-size: var(--text-3xl); /* 28px mobile-base — scales up in responsive.css */
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-3);
}

.stats__description {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-3);
  line-height: 1.6;
}

.stats__source {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.45);
  font-style: italic;
  margin-bottom: 0;
}

.stats__source a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.stats__source a:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* ══════════════════════════════════════════════════════════════════════════ */
/* FEATURES (HOW IT WORKS)                                                     */
/* ══════════════════════════════════════════════════════════════════════════ */

.features {
  background-color: var(--color-bg-alt);
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.features__card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: box-shadow var(--transition-base), transform var(--transition-base),
              border-color var(--transition-base);
}

.features__card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(79, 163, 165, 0.25);
}

.features__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: var(--space-3);
  background: var(--gradient-blue);
  color: var(--color-gold);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(18, 59, 93, 0.3);
}

.features__icon {
  width: 52px;
  height: 52px;
  background-color: rgba(79, 163, 165, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.features__icon svg {
  width: 26px;
  height: 26px;
  color: var(--color-accent);
  stroke-width: 2;
}

.features__card-title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--color-blue);
  margin-bottom: var(--space-3);
}

.features__card-text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Large card variant — now same size as base cards (equal 4-col layout) */
.features__card--large {
  padding: var(--space-8);
}

.features__card--large .features__card-title {
  font-size: var(--text-xl);
}

/* Connector arrow between steps (desktop only, added via responsive.css) */
.features__arrow {
  display: none;
}

/* ══════════════════════════════════════════════════════════════════════════ */
/* DASHBOARD                                                                   */
/* ══════════════════════════════════════════════════════════════════════════ */

.dashboard {
  background: linear-gradient(180deg, var(--color-bg-default) 0%, var(--color-bg-alt) 100%);
}

.dashboard__layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  align-items: center;
}

.dashboard__text {
  max-width: 520px;
}

.dashboard__text h2 {
  margin-bottom: var(--space-5);
}

.dashboard__text p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

.dashboard__image-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.dashboard__image-wrap img {
  width: 87.5%;
  height: auto;
  display: block;
}

/* ══════════════════════════════════════════════════════════════════════════ */
/* ABOUT                                                                       */
/* ══════════════════════════════════════════════════════════════════════════ */

.about {
  background-color: var(--color-bg-alt);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.about__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.about__icon {
  width: 56px;
  height: 56px;
  background-color: rgba(18, 59, 93, 0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about__icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-blue);
  stroke-width: 1.5;
}

.about__item-title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: var(--color-blue);
  margin-bottom: var(--space-2);
}

.about__item-text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

.about__prose {
  max-width: 720px;
  margin-inline: auto;
}

.about__prose p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-5);
}

.about__prose p:last-child {
  margin-bottom: 0;
}

/* ══════════════════════════════════════════════════════════════════════════ */
/* TEST-SIGNUP (MVP: PLACEHOLDER)                                               */
/* ══════════════════════════════════════════════════════════════════════════ */

.testsignup {
  background: var(--gradient-blue);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.testsignup::before {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(199, 169, 107, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.testsignup .section__label {
  color: var(--color-gold);
}

.testsignup .section__title {
  color: #ffffff;
}

.testsignup .section__subtitle {
  color: rgba(255, 255, 255, 0.75);
}

.testsignup__availability {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background-color: rgba(199, 169, 107, 0.15);
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  font-size: var(--text-sm);
  font-weight: 700;
  padding: var(--space-2) var(--space-5);
  border-radius: 100px;
  margin-bottom: var(--space-8);
}

.testsignup__availability-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-gold);
  border-radius: 50%;
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

@media (prefers-reduced-motion: reduce) {
  .testsignup__availability-dot {
    animation: none;
  }
}

.testsignup__form {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  padding: var(--space-6); /* 24px mobile-base — scales up in responsive.css */
  max-width: 560px;
  margin-inline: auto;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.testsignup__form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.testsignup__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.testsignup__label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.testsignup__input {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  font-size: var(--text-base);
  color: #ffffff;
  width: 100%;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.testsignup__input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.testsignup__input:focus {
  outline: none;
  border-color: var(--color-gold);
  background-color: rgba(255, 255, 255, 0.12);
}

.testsignup__textarea {
  resize: vertical;
  min-height: 100px;
}

.testsignup__select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.6)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
  cursor: pointer;
  color: rgba(255, 255, 255, 0.9);
}

.testsignup__select option {
  background-color: #123b5d;
  color: #ffffff;
}

.testsignup__error {
  color: #ffb3b3;
  font-size: var(--text-sm);
  margin-top: var(--space-3);
  text-align: center;
}

.testsignup__note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
  margin-top: var(--space-4);
  line-height: 1.5;
}

.testsignup__note svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.4);
}

/* Placeholder response (shown after submit attempt in MVP) */
.testsignup__response {
  display: none;
  text-align: center;
  padding: var(--space-8);
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-lg);
}

.testsignup__response.is-visible {
  display: block;
}

/* ══════════════════════════════════════════════════════════════════════════ */
/* FAQ                                                                         */
/* ══════════════════════════════════════════════════════════════════════════ */

.faq {
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg-default) 100%);
}

.faq__list {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color var(--transition-base), box-shadow var(--transition-base),
              transform var(--transition-base);
  background-color: #ffffff;
}

.faq__item:hover {
  transform: translateX(4px);
}

.faq__item.is-open {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: var(--space-6);
  text-align: left;
  cursor: pointer;
  gap: var(--space-4);
}

.faq__question-text {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-blue);
  line-height: 1.4;
}

.faq__icon {
  width: 28px;
  height: 28px;
  background-color: var(--color-bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color var(--transition-base), transform var(--transition-base);
}

.faq__icon svg {
  width: 16px;
  height: 16px;
  color: var(--color-blue);
  transition: transform var(--transition-base);
}

.faq__item.is-open .faq__icon {
  background-color: var(--color-accent);
}

.faq__item.is-open .faq__icon svg {
  color: #ffffff;
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq__item.is-open .faq__answer {
  max-height: 400px;
}

.faq__answer-inner {
  padding: 0 var(--space-6) var(--space-6);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════════════════════ */
/* FOOTER                                                                      */
/* ══════════════════════════════════════════════════════════════════════════ */

.footer {
  background: linear-gradient(180deg, #0d2e49 0%, #091e30 100%);
  color: rgba(255, 255, 255, 0.7);
  padding-block: var(--space-12);
  border-top: 1px solid rgba(199, 169, 107, 0.2);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.footer__logo-img {
  height: 40px;
  width: auto;
}

.footer__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: #ffffff;
  font-weight: 700;
}

.footer__tagline {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0;
}

.footer__contact {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  margin-top: var(--space-2);
  margin-bottom: 0;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__nav-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: var(--space-1);
}

.footer__nav-link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__nav-link:hover {
  color: var(--color-gold);
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__copyright {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0;
}

.footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__legal-link {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__legal-link:hover {
  color: var(--color-gold);
}

.footer__version {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.04em;
  margin-bottom: 0;
}

/* ══════════════════════════════════════════════════════════════════════════ */
/* COOKIE CONSENT BANNER                                                       */
/* ══════════════════════════════════════════════════════════════════════════ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-blue);
  color: rgba(255, 255, 255, 0.9);
  padding: var(--space-6) var(--container-px);
  z-index: 9000;
  box-shadow: 0 -4px 24px rgba(18, 59, 93, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  /* WHY: start off-screen so banner only becomes visible after JS attaches
     listeners — eliminates the click-before-JS-ready race condition */
  transform: translateY(110%);
  pointer-events: none;
  transition: transform var(--transition-slow);
}

.cookie-banner.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-banner.is-hidden {
  transform: translateY(110%);
  pointer-events: none;
}

.cookie-banner__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  max-width: var(--max-width);
  margin-inline: auto;
}

.cookie-banner__text {
  font-size: var(--text-sm);
  line-height: 1.6;
  margin-bottom: 0;
}

.cookie-banner__link {
  color: var(--color-gold);
  text-decoration: underline;
}

.cookie-banner__link:hover {
  color: #ffffff;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.cookie-banner__accept {
  background-color: var(--color-gold);
  color: var(--color-blue);
  border: none;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.cookie-banner__accept:hover {
  background-color: #b8954f;
}

.cookie-banner__decline {
  background-color: transparent;
  color: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.cookie-banner__decline:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
}

/* ══════════════════════════════════════════════════════════════════════════ */
/* DATENSCHUTZ PAGE                                                            */
/* ══════════════════════════════════════════════════════════════════════════ */

.datenschutz-hero {
  background-color: var(--color-blue);
  color: #ffffff;
  padding-top: calc(var(--nav-height) + var(--space-12));
  padding-bottom: var(--space-12);
}

.datenschutz-hero h1 {
  color: #ffffff;
  margin-bottom: var(--space-3);
}

.datenschutz-hero p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

.datenschutz-content {
  padding-block: var(--space-12);
}

.datenschutz-content h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.datenschutz-content h2:first-child {
  margin-top: 0;
}

.datenschutz-content h3 {
  font-size: var(--text-xl);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.datenschutz-content p {
  margin-bottom: var(--space-4);
}

.datenschutz-content ul {
  list-style: disc;
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.datenschutz-content ul li {
  margin-bottom: var(--space-2);
}

.datenschutz-content a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Body padding for fixed nav */
.page-body {
  padding-top: var(--nav-height);
}

/* ══════════════════════════════════════════════════════════════════════════ */
/* COUNTRY FLAG — NAV INDICATOR                                                */
/* ══════════════════════════════════════════════════════════════════════════ */

.nav__country-flag {
  display: flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: default;
  user-select: none;
  transition: background var(--transition-fast);
  flex-shrink: 0;
}

.nav__country-flag:hover {
  background: rgba(255, 255, 255, 0.14);
}

.nav__country-flag svg {
  width: 28px;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  display: block;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════════════════ */
/* LEGAL PAGES — TABLE & ENHANCED CONTENT STYLES                              */
/* ══════════════════════════════════════════════════════════════════════════ */

.datenschutz-content .table-wrap {
  overflow-x: auto;
  margin-bottom: var(--space-6);
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gray);
}

.datenschutz-content table {
  width: 100%;
  border-collapse: collapse;
  min-width: 380px;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.datenschutz-content th {
  background: var(--color-blue);
  color: #ffffff;
  text-align: left;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  white-space: nowrap;
}

.datenschutz-content td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-gray);
  vertical-align: top;
}

.datenschutz-content tr:last-child td {
  border-bottom: none;
}

.datenschutz-content tr:nth-child(even) td {
  background: rgba(233, 242, 247, 0.5);
}

.datenschutz-content code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
  background: var(--color-ice);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--color-blue);
}

.datenschutz-content ol {
  list-style: decimal;
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.datenschutz-content ol li {
  margin-bottom: var(--space-2);
}
