/* ============================================================
   EINGANGSBESTÄTIGUNG (Age-Gate)
   § 10 JuSchG · § 19 TabakerzG · § 5 DDG · DSGVO Art. 13 ·
   § 25 TDDDG. Schwarz/weiß/blau passend zum Sortiment.
   Spiral-Canvas-Hintergrund mit dunklem Vignette-Veil.
   ============================================================ */
.age-gate {
  --ag-bg: oklch(0.06 0.012 240);
  --ag-fg: oklch(0.97 0.005 240);
  --ag-fg-soft: oklch(0.78 0.01 240);
  --ag-fg-mute: oklch(0.55 0.012 240);
  --ag-blue: oklch(0.72 0.16 245);
  --ag-blue-dim: oklch(0.72 0.16 245 / 0.18);
  --ag-line: oklch(0.97 0.005 240 / 0.12);

  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ag-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  font-family: var(--font-body, system-ui, sans-serif);
  color: var(--ag-fg);
  overflow: hidden;
  isolation: isolate;
  opacity: 1;
  transition: opacity 0.36s ease;
}
.age-gate.is-leaving {
  opacity: 0;
  pointer-events: none;
}

/* Canvas — square, JS-sized, centered. Gate's overflow:hidden crops. */
.age-gate-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

/* Vignette — softens corners. */
.age-gate-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 100% 100% at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.45) 100%);
}

/* Dark-glass card with blue corner-ticks */
.age-gate-card {
  position: relative;
  z-index: 2;
  max-width: 26rem;
  width: 100%;
  padding: clamp(1.25rem, 3.5vw, 1.75rem) clamp(1.1rem, 3.5vw, 1.6rem);
  text-align: left;
  background: oklch(0.06 0.012 240 / 0.62);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid oklch(0.97 0.005 240 / 0.10);
  border-radius: 6px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 1px 0 oklch(0.97 0.005 240 / 0.06) inset;
  animation: ageGateFadeIn 1.2s 1.4s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.age-gate-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 1.1rem;
  height: 1.1rem;
  border-top: 1px solid var(--ag-blue);
  border-left: 1px solid var(--ag-blue);
  border-top-left-radius: 6px;
  pointer-events: none;
}
.age-gate-card::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 1.1rem;
  height: 1.1rem;
  border-bottom: 1px solid var(--ag-blue);
  border-right: 1px solid var(--ag-blue);
  border-bottom-right-radius: 6px;
  pointer-events: none;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .age-gate-card { background: oklch(0.06 0.012 240 / 0.88); }
}
@keyframes ageGateFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.age-gate-card h2,
.age-gate-card .age-gate-eyebrow,
.age-gate-card .age-gate-lead,
.age-gate-card .age-gate-points li,
.age-gate-card .age-gate-yes,
.age-gate-card .age-gate-no {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.age-gate-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ag-blue);
  margin: 0 0 0.7rem;
}
.age-gate-eyebrow-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--ag-blue);
  box-shadow: 0 0 12px var(--ag-blue-dim);
}

.age-gate-card h2 {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.3rem, 5vw, 1.85rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.005em;
  color: var(--ag-fg);
  margin: 0 0 0.85rem;
}
.age-gate-title-sub {
  display: block;
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ag-fg-mute);
  margin-top: 0.4rem;
  font-weight: 400;
}

.age-gate-lead {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ag-fg-soft);
  margin: 0 0 0.85rem;
}
.age-gate-lead strong { color: var(--ag-fg); font-weight: 600; }

.age-gate-points {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0.7rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-top: 1px solid oklch(0.97 0.005 240 / 0.18);
  border-bottom: 1px solid oklch(0.97 0.005 240 / 0.18);
}
.age-gate-points li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--ag-fg-soft);
}
.age-gate-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.42rem;
  height: 1px;
  background: var(--ag-blue);
}
.age-gate-points strong { color: var(--ag-fg); font-weight: 600; }
.age-gate-points a {
  color: var(--ag-blue);
  text-decoration: underline;
  text-decoration-color: var(--ag-blue-dim);
  text-underline-offset: 0.2em;
}
.age-gate-points a:hover { text-decoration-color: var(--ag-blue); }

.age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 1rem 0 0.85rem;
}
.age-gate-btn {
  appearance: none;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-body, system-ui, sans-serif);
  padding: 0;
}
.age-gate-yes {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ag-fg);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.75rem 1.4rem;
  border: 1px solid var(--ag-blue);
  border-radius: 999px;
  background: oklch(0.72 0.16 245 / 0.10);
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease,
    letter-spacing 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.3s ease,
    transform 0.12s ease,
    box-shadow 0.4s ease;
  box-shadow: 0 0 0 0 oklch(0.72 0.16 245 / 0);
  animation: ageGatePulse 2.4s ease-in-out infinite;
}
.age-gate-yes svg {
  width: 1.05rem;
  height: 1.05rem;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  color: var(--ag-blue);
}
.age-gate-yes:hover {
  background: oklch(0.72 0.16 245 / 0.22);
  border-color: oklch(0.85 0.12 245);
  color: oklch(0.99 0.005 240);
  letter-spacing: 0.24em;
}
.age-gate-yes:hover svg { transform: translateX(4px); color: oklch(0.99 0.005 240); }
.age-gate-yes:active { transform: scale(0.985); }
@keyframes ageGatePulse {
  0%, 100% { box-shadow: 0 0 0 0 oklch(0.72 0.16 245 / 0); }
  50%      { box-shadow: 0 0 0 6px oklch(0.72 0.16 245 / 0.12); }
}

.age-gate-no {
  color: var(--ag-fg-mute);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.2rem 0;
  transition: color 0.3s ease, letter-spacing 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.age-gate-no:hover { color: var(--ag-fg-soft); letter-spacing: 0.26em; }

.age-gate-meta {
  font-size: 0.64rem;
  line-height: 1.45;
  color: var(--ag-fg-mute);
  margin: 0 0 0.7rem;
}
.age-gate-foot {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  font-size: 0.62rem;
  color: var(--ag-fg-mute);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-top: 1px solid var(--ag-line);
  padding-top: 0.7rem;
}
.age-gate-foot a {
  color: var(--ag-fg-soft);
  text-decoration: none;
  transition: color 0.25s ease;
}
.age-gate-foot a:hover { color: var(--ag-blue); }

/* Landscape mobile compaction */
@media (max-height: 720px) and (max-width: 520px) {
  .age-gate { padding: 0.75rem; align-items: flex-start; padding-top: 1rem; }
  .age-gate-card { padding: 1.1rem 1rem 1.2rem; }
  .age-gate-card h2 { font-size: 1.55rem; margin-bottom: 0.7rem; }
  .age-gate-lead { font-size: 0.85rem; margin-bottom: 0.85rem; }
  .age-gate-points { padding: 0.7rem 0; gap: 0.42rem; margin-bottom: 1rem; }
  .age-gate-points li { font-size: 0.8rem; }
  .age-gate-actions { margin: 0.9rem 0 0.8rem; }
  .age-gate-meta { font-size: 0.68rem; margin-bottom: 0.7rem; }
}

/* Reduce-motion: kill spiral, replace with static dark gradient */
@media (prefers-reduced-motion: reduce) {
  .age-gate-canvas { display: none; }
  .age-gate-veil {
    background:
      radial-gradient(ellipse 70% 60% at 50% 50%, oklch(0.10 0.015 240) 0%, var(--ag-bg) 70%);
  }
  .age-gate, .age-gate-yes svg { transition: none !important; }
  .age-gate-yes { animation: none !important; }
}
