:root {
  --bg: #efeff1;
  --card: rgba(255, 255, 255, 0.5);
  --card-strong: rgba(255, 255, 255, 0.65);
  --text: #1d1f23;
  --muted: #6e7480;
  --line: #d9dbe1;
  --primary: #5867b8;
  --primary-dark: #4a58a7;
  --radius: 22px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
  --overlay: rgba(18, 20, 26, 0.82);
  --lightbox-surface: #ffffff;
}

[data-theme="dark"] {
  --bg: #111318;
  --card: rgba(28, 31, 39, 0.88);
  --card-strong: rgba(36, 40, 50, 0.92);
  --text: #eef1f7;
  --muted: #a6afbf;
  --line: rgba(255, 255, 255, 0.12);
  --primary: #7384e6;
  --primary-dark: #6273d7;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --overlay: rgba(5, 7, 10, 0.88);
  --lightbox-surface: #1a1d24;
}

.logo img {
  width: 100%;
  max-width: 260px; /* Referenz */
  height: auto;
  max-height: 90px;
  object-fit: contain;
  transition: opacity 0.15s ease;
}


* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.2s ease, color 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

/* ================= HEADER ================= */

.header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 36px 0 28px;
}

.logo {
  display: flex;
  align-items: center;
  max-width: 260px;
  min-width: 0;
}

.logo img {
  width: 100%;
  max-width: 260px;
  height: auto;
  max-height: 90px;
  object-fit: contain;
}

/* ================= THEME TOGGLE ================= */

.theme-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.theme-label {
  font-size: 0.9rem;
  color: var(--muted);
  white-space: nowrap;
}

.theme-toggle {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line);
  background: var(--card-strong);
  width: 58px;
  height: 34px;
  min-width: 58px;
  min-height: 34px;
  border-radius: 999px;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  box-shadow: none;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--primary);
}

.theme-toggle-thumb {
  display: block;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  border-radius: 999px;
  background: var(--text);
  transform: translateX(0);
  transition: transform 0.2s ease, background 0.2s ease;
}

[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(24px);
}


/* ================= LEGAL PAGES FIX ================= */

body.legal .logo {
  max-width: 260px;
}

body.legal .logo img {
  max-width: 260px;
  max-height: auto;
}
/* ================= BUTTONS ================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 10px 24px rgba(88, 103, 184, 0.24);
}

.btn.primary:hover {
  background: var(--primary-dark);
}

.btn.ghost {
  color: #fff;
  background: var(--primary);
}

.btn.ghost:hover {
  background: var(--primary-dark);
}

.btn.full {
  width: 100%;
}

/* ================= HERO ================= */

.hero-card {
  background: var(--card);
  border-radius: 26px;
  padding: 26px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.2fr 0.72fr;
  gap: 28px;
  align-items: center;
}

.hero-text h1 {
  margin: 0 0 24px;
  font-size: clamp(2.8rem, 4vw, 4.35rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-copy {
  max-width: 34ch;
  margin: 0 0 16px;
  color: #424753;
  font-size: 1.08rem;
  line-height: 1.55;
}

.hero-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
  font-style: italic;
}

.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.hero-image img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .hero-image img,
[data-theme="dark"] .gallery-main,
[data-theme="dark"] .gallery-thumb,
[data-theme="dark"] .review-avatar {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.hero-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

/* FEATURES */

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
  width: 100%;
}

.feature-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.02rem;
}

.feature-icon {
  min-width: 32px;
  text-align: right;
  font-weight: 700;
  flex-shrink: 0;
}

/* ================= CARDS GRID ================= */

.cards-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.72fr;
  gap: 24px;
  margin-top: 18px;
  align-items: start;
}

.mini-card {
  border-radius: 24px;
  padding: 24px;
  background: var(--card);
  min-height: 320px;
}

.mini-card h2 {
  margin: 28px 0 10px;
  line-height: 1.25;
}

.mini-card h2:first-child {
  margin-top: 0;
}

.mini-card p,
.mini-card li {
  line-height: 1.6;
}

.mini-card ul {
  padding-left: 20px;
}

/* ================= REVIEWS ================= */

.reviews-stack {
  display: grid;
  gap: 24px;
}

.review-card {
  position: relative;
}

.review-card.highlight {
  border: 2px solid var(--primary);
  background: rgba(90, 110, 200, 0.06);
  box-shadow: 0 10px 30px rgba(90, 110, 200, 0.12);
}

.review-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #d6d6d8;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  overflow: hidden;
  flex-shrink: 0;
  font-size: 1.7rem;
}

.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stars {
  color: #f3b321;
  margin-bottom: 16px;
  letter-spacing: 0.14em;
  font-size: 1.2rem;
}

.review-card blockquote {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #3d4250;
}

[data-theme="dark"] .review-card blockquote {
  color: #d7ddea;
}

.review-meta {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ================= GALLERY ================= */

.gallery-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
}

.gallery-main,
.gallery-thumb {
  border-radius: 16px;
  overflow: hidden;
  background: var(--card-strong);
  cursor: zoom-in;
  position: relative;
  border: 0;
  padding: 0;
}

.gallery-main {
  min-height: 220px;
}

.gallery-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.gallery-thumb {
  min-height: 130px;
}

.gallery-main img,
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.gallery-main:hover img,
.gallery-thumb:hover img {
  transform: scale(1.03);
}

.gallery-main::after,
.gallery-thumb::after {
  content: "⊕";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.9);
  color: #1d1f23;
  font-size: 1rem;
  font-weight: 700;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ================= QUESTION CARD ================= */

.question-card {
  background: linear-gradient(160deg, #6f7fd8 0%, #5665b8 55%, #42529b 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.question-arrow {
  font-size: 3rem;
  line-height: 1;
  align-self: flex-end;
  opacity: 0.95;
}

.question-card h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.question-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.5;
}
/* ========== HOW IT WORKS LIGHTBOX =========== */
.how-image-trigger {
  border: 0;
  padding: 0;
  margin: 0 auto;
  background: transparent;
  display: block;
  cursor: zoom-in;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}
.how-image-trigger::after {
  content: "⊕";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.9);
  color: #1d1f23;
  font-size: 1rem;
  font-weight: 700;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.how-image-trigger img {
  width: 100%;
  max-width: 420px;
  display: block;
  margin: 0 auto;
  border-radius: 16px;
  transition: transform 0.2s ease;
}

.how-image-trigger:hover img {
  transform: scale(1.02);
}
/* ================= LIGHTBOX ================= */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(6px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 1200px);
  max-height: 90vh;
  margin: 4vh auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(10px) scale(0.97);
  transition: transform 0.22s ease;
}

.lightbox.is-open .lightbox-dialog {
  transform: translateY(0) scale(1);
}

.lightbox-dialog img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  border-radius: 18px;
  background: var(--lightbox-surface);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--lightbox-surface);
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease;
}

.lightbox-close:hover {
  transform: scale(1.05);
}

/* ================= FOOTER ================= */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 26px 0 40px;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer nav {
  display: flex;
  gap: 20px;
}
/* === HOW IT WORKS === */

.how-it-works {
  margin-top: 28px;
}

.how-it-works-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 28px;
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
  align-items: center;
}

.how-text h2 {
  margin-bottom: 8px;
}

.how-text .sub {
  color: var(--muted);
  margin-bottom: 16px;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  margin: 8px 0;
  font-weight: 500;
}

.steps li::before {
  content: "✔ ";
  color: var(--primary);
}

.how-image img {
  width: 100%;
  max-width: 420px;
  display: block;
  margin: 0 auto;
  border-radius: 16px;
}

/* Mobile */

@media (max-width: 768px) {
  .how-it-works-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .how-image img {
    max-width: 320px;
  }
}

/* ==============TOGGLE EDGE TAB ============ */
.theme-edge {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  
  background: var(--card);
  color: var(--text);
  
  padding: 10px 8px;
  border-radius: 12px 0 0 12px;
  
  writing-mode: vertical-rl;
  text-orientation: mixed;
  
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s ease;
  z-index: 999;
}

.theme-edge:hover {
  opacity: 1;
  transform: translateY(-50%) translateX(-4px);
}
/* ================= TABLET ================= */

@media (max-width: 1100px) {
  .header {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .theme-control {
    justify-content: flex-start;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-copy {
    max-width: none;
  }

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

  .reviews-stack {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }

  .question-card {
    grid-column: 1 / -1;
    min-height: 220px;
  }
}

/* ================= MOBILE ================= */

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, 1280px);
  }

  .header {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 0 16px;
    justify-items: start;
  }

  .logo {
    max-width: 170px;
  }

  .logo img {
    max-width: 170px;
    max-height: 60px;
    width: auto;
  }

  .theme-control {
    width: 100%;
    justify-content: space-between;
  }

  .theme-label {
    font-size: 0.88rem;
  }

  .btn.primary,
  .btn.ghost,
  .btn.full {
    width: 100%;
  }

  .hero-card {
    padding: 18px;
    border-radius: 20px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-text h1 {
    font-size: 2.2rem;
    line-height: 1.12;
    margin: 0 0 18px;
  }

  .hero-copy {
    font-size: 1rem;
    margin-bottom: 14px;
  }

  .hero-note {
    font-size: 0.8rem;
  }

  .hero-image {
    padding: 10px 0;
  }

  .hero-image img {
    width: 100%;
    border-radius: 18px;
  }

  .hero-side {
    width: 100%;
    gap: 18px;
  }

  .feature-list {
    width: 100%;
  }

  .feature-list li {
    padding: 14px 0;
    font-size: 0.98rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 18px;
  }

  .reviews-stack {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .mini-card {
    min-height: auto;
    padding: 18px;
  }

  .review-card blockquote {
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
  }

  .gallery-card {
    padding: 18px;
  }

  .gallery-main {
    min-height: 180px;
  }

  .gallery-thumb {
    min-height: 110px;
  }

  .question-card h2 {
    font-size: 2rem;
    line-height: 1.05;
  }

  .question-arrow {
    font-size: 2.2rem;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 24px 0 28px;
  }
}