/* ═══════════════════════════════════════════════════════════════════════════════
   LEGAL.CSS — Visora Media · 2026
   Redesigned in the Visora Journal editorial style.
   Applies to: impressum, datenschutz, agb, preise, barrierefreiheit
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ─── Reading Progress ────────────────────────────────────────────────────── */
#lp-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gradient-brand);
  z-index: 9999;
  border-radius: 0 2px 2px 0;
  transition: width 0.08s linear;
  pointer-events: none;
}

/* ─── Ambient Orbs ────────────────────────────────────────────────────────── */
.lp-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.lp-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.045;
  animation: lp-float 22s ease-in-out infinite;
  will-change: transform;
}

.lp-orb:nth-child(1) {
  width: 700px; height: 700px;
  background: radial-gradient(circle, #ff408d, transparent 70%);
  top: -20%; right: -8%;
  animation-duration: 20s;
}

.lp-orb:nth-child(2) {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #00c8ff, transparent 70%);
  bottom: 5%; left: -12%;
  animation-duration: 28s; animation-delay: -8s;
}

.lp-orb:nth-child(3) {
  width: 480px; height: 480px;
  background: radial-gradient(circle, #d05aff, transparent 70%);
  top: 42%; right: 8%;
  animation-duration: 34s; animation-delay: -16s;
}

@keyframes lp-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, -40px) scale(1.06); }
  66%      { transform: translate(-20px, 25px) scale(0.95); }
}

/* ─── Page Wrapper ────────────────────────────────────────────────────────── */
.legal-page {
  position: relative;
  z-index: 1;
  padding-top: 140px;
  padding-bottom: var(--space-xl);
  min-height: 100vh;
}

.legal-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px) 0 0 / 100% 80px,
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px) 0 0 / 80px 100%;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 20%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 20%, #000 0%, transparent 75%);
  pointer-events: none;
  z-index: -1;
}

/* ─── Hero Header ─────────────────────────────────────────────────────────── */
.legal-header-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-xl);
  padding-bottom: var(--space-lg);
  position: relative;
}

.legal-header-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 2px;
  width: 0;
  background: var(--gradient-brand);
  border-radius: 2px;
  animation: lp-line-reveal 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

@keyframes lp-line-reveal {
  from { width: 0; opacity: 0; }
  to   { width: 120px; opacity: 1; }
}

.lp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.2rem;
  animation: lp-fade-up 0.7s ease both;
}

.lp-kicker-line {
  width: 32px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.35), transparent);
  flex-shrink: 0;
}

.legal-header-content .page-title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 1.2rem;
  background: var(--gradient-brand);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: lp-fade-up 0.8s ease 0.06s both, lp-gradient-shift 8s ease-in-out infinite;
}

@keyframes lp-gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.legal-header-content .page-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,0.55);
  max-width: 54ch;
  margin: 0 auto;
  line-height: 1.65;
  animation: lp-fade-up 0.8s ease 0.18s both;
}

/* ─── Animations ──────────────────────────────────────────────────────────── */
@keyframes lp-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lp-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.lp-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Table of Contents ───────────────────────────────────────────────────── */
.toc {
  position: relative;
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 2rem 2.2rem;
  margin-bottom: var(--space-xl);
  overflow: hidden;
  animation: lp-fade-up 0.8s ease 0.28s both;
}

.toc::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,136,0,0.5), rgba(255,64,141,0.4), rgba(208,90,255,0.3), rgba(0,200,255,0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.3;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.toc:hover::before { opacity: 0.55; }

.toc h3 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.2rem;
  background: none;
  -webkit-text-fill-color: rgba(255,255,255,0.4);
}

.toc ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 720px) {
  .toc ul { grid-template-columns: 1fr; }
}

.toc a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  background: rgba(255,255,255,0.015);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: all 0.25s ease;
  overflow: hidden;
}

.toc a .toc-num {
  font-size: 0.68rem;
  font-weight: 800;
  color: rgba(255,255,255,0.2);
  font-variant-numeric: tabular-nums;
  min-width: 1.4em;
  flex-shrink: 0;
}

.toc a::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--gradient-brand);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
  border-radius: 0 2px 2px 0;
}

.toc a:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.14);
  color: #fff;
  transform: translateX(4px);
}

.toc a:hover::before { transform: scaleY(1); }
.toc a:hover .toc-num { color: rgba(255,255,255,0.5); }

/* ─── Legal Sections ──────────────────────────────────────────────────────── */
.legal-section {
  position: relative;
  padding: 2.5rem 0 2rem;
}

.legal-section + .legal-section {
  border-top: 1px solid rgba(255,255,255,0.05);
}

.legal-section h2 {
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
}

.legal-section h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 0.85em;
  background: var(--gradient-brand);
  border-radius: 2px;
  margin-right: 0.75rem;
  vertical-align: -0.05em;
}

.legal-section p,
.legal-section > li {
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.7);
  margin: 0.6rem 0;
}

.legal-section strong {
  color: #fff;
  font-weight: 600;
}

.legal-section ul {
  padding-left: 0;
  list-style: none;
  margin: 0.5rem 0;
}

.legal-section li {
  position: relative;
  padding-left: 1.4rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.7);
  margin: 0.4rem 0;
}

.legal-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff408d, #00c8ff);
}

/* ─── Callout ─────────────────────────────────────────────────────────────── */
.callout {
  position: relative;
  padding: 1.2rem 1.5rem 1.2rem 1.8rem;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin: 1.2rem 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  overflow: hidden;
}

.callout::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gradient-brand);
  border-radius: 0 2px 2px 0;
}

.callout strong { color: #fff; }

/* ─── Details / Accordion ─────────────────────────────────────────────────── */
details {
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 0 1.2rem;
  background: rgba(255,255,255,0.015);
  margin-top: 0.8rem;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

details:hover { border-color: rgba(255,255,255,0.14); }
details + details { margin-top: 0.4rem; }

details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.9rem 0;
  list-style: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
}

details summary::-webkit-details-marker { display: none; }

details summary::after {
  content: '';
  width: 20px; height: 20px; min-width: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.35)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

details[open] summary::after { transform: rotate(180deg); }

details[open] summary {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 0.8rem;
}

details > div,
details > ul,
details > p {
  padding-bottom: 1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  font-size: 0.9rem;
}

details > ul { padding-left: 0; list-style: none; }

details > ul li {
  position: relative;
  padding-left: 1.4rem;
  margin: 0.4rem 0;
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
}

details > ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.72em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff408d, #00c8ff);
}

/* ─── Links ───────────────────────────────────────────────────────────────── */
.legal-section a {
  color: var(--color-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease;
}

.legal-section a:hover { color: var(--color-pink); }

/* ─── Legal Meta ──────────────────────────────────────────────────────────── */
.legal-meta {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-meta::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--gradient-brand);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─── Back to Top ─────────────────────────────────────────────────────────── */
#lp-back-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.35s ease;
  z-index: 500;
}

#lp-back-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}

#lp-back-top:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-3px);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   PREISE PAGE
   ═══════════════════════════════════════════════════════════════════════════════ */

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: var(--space-lg);
}

@media (max-width: 900px) {
  .pricing-cards { grid-template-columns: 1fr; gap: 1rem; }
}

.price-card {
  position: relative;
  padding: 2rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.price-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, var(--pc-c1, #ff8800), var(--pc-c2, #ff408d), var(--pc-c3, #d05aff));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.25;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.price-card::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: var(--pc-glow, rgba(255,64,141,0.06));
  filter: blur(40px);
  pointer-events: none;
}

.price-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.12);
}
.price-card:hover::before { opacity: 0.6; }

.price-card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--pc-icon-bg, linear-gradient(135deg, #ff8800, #ff408d));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.price-card-icon i { color: #fff; font-size: 1.1rem; }

.price-card-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.3rem;
}

.price-card .big-price {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--pc-c1, #ff8800), var(--pc-c2, #ff408d));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.price-card .big-price small {
  font-size: 0.38em;
  font-weight: 600;
  -webkit-text-fill-color: transparent;
}

.price-card .price-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin: 0;
}

/* ─── Process Steps ───────────────────────────────────────────────────────── */
.steps-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: var(--space-md);
}

@media (max-width: 900px) { .steps-timeline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .steps-timeline { grid-template-columns: 1fr; } }

.step-card {
  position: relative;
  padding: 1.2rem;
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.step-card:hover {
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.03);
  transform: translateY(-4px);
}

.step-card-num {
  font-size: 2.8rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 0.3rem;
  font-variant-numeric: tabular-nums;
  display: block;
}

.step-card-icon {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.step-card-icon i { font-size: 0.8rem; color: rgba(255,255,255,0.5); }

.step-card strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: #fff;
}

.step-card p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.55;
  margin: 0;
}

.steps-callout {
  position: relative;
  padding: 1rem 1.5rem 1rem 1.8rem;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  background: rgba(255,255,255,0.015);
  margin-top: 1rem;
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  overflow: hidden;
}

.steps-callout::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #00c8ff, #d05aff);
}

.steps-callout strong { color: #fff; }
.steps-callout a { color: var(--color-blue); text-decoration: underline; }

/* ─── FAQ List ────────────────────────────────────────────────────────────── */
.faq-list details {
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  margin-bottom: 0.5rem;
}

.faq-list details:last-child { margin-bottom: 0; }

.faq-list details summary {
  font-size: 1rem;
  font-weight: 600;
}

/* ─── Section heading (Preise) ────────────────────────────────────────────── */
.price-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: var(--space-md);
  color: #fff;
  letter-spacing: -0.02em;
}

.price-section h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 0.85em;
  background: var(--gradient-brand);
  border-radius: 2px;
  margin-right: 0.75rem;
  vertical-align: -0.05em;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   BARRIEREFREIHEIT PAGE
   ═══════════════════════════════════════════════════════════════════════════════ */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255,136,0,0.08);
  border: 1px solid rgba(255,136,0,0.2);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ff8800;
  margin-top: 1rem;
  animation: lp-fade-up 0.6s ease 0.32s both;
}

.status-badge i {
  animation: lp-spin 2.5s linear infinite;
}

@keyframes lp-spin {
  from { transform: rotate(0); }
  to   { transform: rotate(360deg); }
}

.ov-item {
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.ov-item:hover { transform: translateY(-3px); }

.ov-item.is-done .ov-icon {
  animation: lp-pulse 2.5s ease-in-out infinite;
}

@keyframes lp-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,255,98,0.15); }
  50%      { box-shadow: 0 0 0 5px rgba(0,255,98,0); }
}

.status-aside {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.status-aside::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0,255,98,0.3), rgba(0,200,255,0.25), rgba(208,90,255,0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.3;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .legal-page { padding-top: 110px; }
  .legal-header-content { text-align: left; }
  .legal-header-content::after { left: 0; transform: none; }
  .toc { padding: 1.4rem 1.2rem; }
  #lp-back-top { bottom: 1.2rem; right: 1.2rem; width: 42px; height: 42px; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .lp-orb,
  .status-badge i,
  .ov-item.is-done .ov-icon {
    animation: none;
  }

  .lp-reveal,
  .legal-header-content .page-title,
  .legal-header-content .page-sub,
  .lp-kicker,
  .toc,
  .status-badge,
  #lp-back-top {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .legal-header-content::after {
    animation: none;
    width: 120px;
    opacity: 1;
  }

  details summary::after,
  .price-card,
  .step-card,
  .toc a { transition: none; }
}
