/* ===========================================================
   My Local Eyez — Stylesheet
   Marke: Gradient blau→lila→pink→orange, dunkle Welt als Default,
   heller Modus per Umschalter. Schrift: Space Grotesk + Inter.
   =========================================================== */

:root {
  --grad: linear-gradient(115deg, #2f9bff 0%, #8b5cf6 42%, #ec4899 72%, #fb6b34 100%);
  --grad-soft: linear-gradient(115deg, rgba(47,155,255,.16), rgba(139,92,246,.16) 45%, rgba(236,72,153,.16) 72%, rgba(251,107,52,.16));
  --blue: #2f9bff;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --orange: #fb6b34;
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1140px;
  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ---- DARK (default) ---- */
:root, [data-theme="dark"] {
  --bg: #06070b;
  --bg-2: #0c0e15;
  --surface: rgba(255,255,255,.04);
  --surface-2: rgba(255,255,255,.06);
  --border: rgba(255,255,255,.10);
  --border-strong: rgba(255,255,255,.18);
  --ink: #f5f6fa;
  --ink-soft: #c7cbd6;
  --muted: #8b92a3;
  --field-bg: rgba(255,255,255,.05);
  --shadow: 0 30px 80px -30px rgba(0,0,0,.8);
  --glow: 0 0 120px -20px rgba(139,92,246,.45);
}

/* ---- LIGHT ---- */
[data-theme="light"] {
  --bg: #f7f8fc;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f3f9;
  --border: rgba(15,18,30,.10);
  --border-strong: rgba(15,18,30,.18);
  --ink: #0d1018;
  --ink-soft: #3a414f;
  --muted: #6b7280;
  --field-bg: #ffffff;
  --shadow: 0 24px 60px -28px rgba(20,24,50,.28);
  --glow: 0 0 120px -30px rgba(139,92,246,.30);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .4s ease, color .4s ease;
}

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.brand-accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a { color: var(--ink-soft); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 12px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: border-color .2s, background .2s, transform .15s;
}
.icon-btn:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.lang-btn { width: auto; padding: 0 14px; letter-spacing: .04em; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .25s ease, opacity .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 32px -10px rgba(236,72,153,.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -10px rgba(236,72,153,.7); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--ink);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--ink-soft); }
.btn-block { width: 100%; justify-content: center; padding: 16px; font-size: 17px; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 90px 0 70px;
  overflow: hidden;
}
.hero::before {
  /* atmosphärischer Gradient-Schein */
  content: "";
  position: absolute;
  top: -260px; left: 50%;
  width: 900px; height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(139,92,246,.30), rgba(47,155,255,.10) 45%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  margin-bottom: 26px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 12px var(--pink); }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 5.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -.02em;
  margin: 0 0 22px;
}
.hero h1 .line2 { display: block; }
.hero p.lead {
  font-size: 18.5px;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 0 34px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero-Visual: rotierender "Globus" mit Pins = echte Augen weltweit */
.hero-visual {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 440px;
  margin-left: auto;
  display: grid;
  place-items: center;
}
.globe {
  position: relative;
  width: 86%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.10), transparent 55%),
    var(--bg-2);
  border: 1px solid var(--border);
  box-shadow: var(--glow), inset 0 0 60px rgba(0,0,0,.5);
  overflow: hidden;
}
[data-theme="light"] .globe { box-shadow: var(--glow), inset 0 0 40px rgba(20,24,50,.08); }
.globe::before, .globe::after {
  /* Längen-/Breitengrade */
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid var(--border);
}
.globe::after { inset: 8% 30%; }
.globe .meridian {
  position: absolute; inset: 8% 30%;
  border-radius: 50%;
  border: 1px solid var(--border);
  transform: rotate(60deg);
}
.globe .equator {
  position: absolute; left: 8%; right: 8%; top: 50%;
  height: 1px; background: var(--border);
}
/* pulsierende Pins auf dem Globus */
.geo-pin {
  position: absolute;
  width: 13px; height: 13px;
  border-radius: 50% 50% 50% 0;
  background: var(--grad);
  transform: rotate(-45deg);
  box-shadow: 0 0 0 0 rgba(236,72,153,.6);
  animation: ping 2.8s ease-out infinite;
}
.geo-pin::after {
  content: ""; position: absolute; inset: 3.5px;
  background: var(--bg-2); border-radius: 50%;
}
.geo-pin.p1 { top: 26%; left: 30%; animation-delay: 0s; }
.geo-pin.p2 { top: 44%; left: 62%; animation-delay: .9s; }
.geo-pin.p3 { top: 64%; left: 38%; animation-delay: 1.6s; }
.geo-pin.p4 { top: 33%; left: 55%; animation-delay: 2.3s; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(236,72,153,.55); }
  70% { box-shadow: 0 0 0 16px rgba(236,72,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(236,72,153,0); }
}
.globe .sweep {
  position: absolute; inset: 0;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(139,92,246,.18) 40deg, transparent 80deg);
  animation: rotate 9s linear infinite;
}
@keyframes rotate { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .geo-pin, .globe .sweep { animation: none; }
}

/* ---------- STATS ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 64px;
}
.stat {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
}
.stat .big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  margin-bottom: 4px;
}
.stat .sub { color: var(--muted); font-size: 14.5px; }

/* ---------- SECTION ---------- */
section { position: relative; }
.section-pad { padding: 84px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -.02em;
  margin: 0;
}

/* ---------- HOW IT WORKS ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  position: relative;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 26px;
  overflow: hidden;
}
.step::before {
  content: "";
  position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--grad);
  opacity: .9;
}
.step .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .1em;
  color: transparent;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  margin-bottom: 14px;
}
.step h3 { font-family: var(--font-display); font-size: 21px; margin: 0 0 10px; }
.step p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }

/* ---------- FORMS ---------- */
.forms-section { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.form-card {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 24px;
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.tabs { display: grid; grid-template-columns: 1fr 1fr; }
.tab {
  padding: 20px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  color: var(--ink-soft);
  background: var(--surface-2);
  border: none;
  border-bottom: 2px solid transparent;
  transition: color .2s, background .2s;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] {
  color: var(--ink);
  background: transparent;
  border-bottom: 2px solid transparent;
  position: relative;
}
.tab[aria-selected="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: var(--grad);
}
.tab-panel { padding: 36px; display: none; }
.tab-panel.active { display: block; }
.form-intro { color: var(--ink-soft); margin: 0 0 26px; font-size: 16px; }

.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label.flbl {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink-soft);
}
label.flbl .req { color: var(--pink); }
.field input, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--field-bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15.5px;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(139,92,246,.22);
}
.field textarea { resize: vertical; min-height: 96px; }
.field.invalid input, .field.invalid textarea { border-color: var(--pink); }

.form-error {
  display: none;
  margin-bottom: 18px;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(236,72,153,.4);
  background: rgba(236,72,153,.12);
  color: var(--ink);
  font-size: 14.5px;
}
.form-error.show { display: block; }

/* ---------- THANKS ---------- */
.thanks {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 24px;
}
.thanks .check {
  width: 78px; height: 78px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad);
  margin: 0 auto 26px;
  color: #fff; font-size: 36px;
  box-shadow: 0 16px 40px -12px rgba(236,72,153,.6);
}
.thanks h1 { font-family: var(--font-display); font-size: clamp(26px,4vw,36px); margin: 0 0 12px; }
.thanks p { color: var(--ink-soft); margin: 0 0 28px; }

/* ---------- FOOTER ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 44px 0;
  margin-top: 20px;
}
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.site-footer .tag { color: var(--muted); font-size: 14.5px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero { padding: 56px 0 50px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; max-width: 320px; }
  .stats { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .tab-panel { padding: 24px; }
  .hero-cta .btn { flex: 1; justify-content: center; }
  .site-header .wrap { height: 64px; }
}

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, .tab:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

/* ===========================================================
   Rechtsseiten, Footer-Links, Einwilligung, Cookie-Banner
   =========================================================== */

/* ---- Schmaler Lesebereich für Rechtstexte ---- */
.wrap-narrow {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 .4em;
}
.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 1.8em 0 .5em;
  color: var(--ink);
}
.legal-page p,
.legal-page li { color: var(--ink-soft); }
.legal-page a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.legal-page ul { padding-left: 1.2em; }
.legal-page li { margin: .35em 0; }
.legal-updated {
  color: var(--muted);
  font-size: .92rem;
  margin-top: -.2em;
}
.legal-note {
  background: var(--grad-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 1.2em 0 1.6em;
  font-size: .95rem;
  color: var(--ink-soft);
}
.legal-form-box {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  background: var(--surface);
  font-size: .95rem;
}

/* ---- Footer Rechtslinks ---- */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: center;
  margin: 4px 0;
}
.footer-legal a,
.footer-cookie-btn {
  color: var(--muted);
  font-size: .9rem;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  transition: color .2s ease;
}
.footer-legal a:hover,
.footer-cookie-btn:hover { color: var(--ink); }

/* ---- Einwilligungshinweis am Formular ---- */
.form-consent {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 4px 0 16px;
}
.form-consent a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

/* ===========================================================
   Cookie-Consent-Banner
   =========================================================== */
.cc-root { position: fixed; inset: 0; z-index: 9999; }
.cc-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
}
.cc-banner,
.cc-prefs {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  width: min(640px, calc(100% - 28px));
  max-height: 88vh;
  max-height: 88dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 26px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  animation: ccFade .3s ease;
}
@keyframes ccFade { from { opacity: 0; } to { opacity: 1; } }
.cc-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 .5em;
  color: var(--ink);
}
.cc-text { color: var(--ink-soft); font-size: .95rem; margin: 0 0 1.2em; }
.cc-text a, .cc-cat-desc a { color: var(--blue); text-decoration: underline; }
.cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 4px;
}
.cc-btn {
  flex: 1 1 auto;
  min-width: 130px;
  flex-shrink: 0;
}
@media (max-width: 560px) {
  .cc-actions { flex-direction: column; }
  .cc-btn {
    flex: 0 0 auto;
    width: 100%;
    min-height: 48px;
  }
}

.cc-prefs-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.cc-close {
  background: none; border: 0; color: var(--muted);
  font-size: 1.1rem; cursor: pointer; line-height: 1;
}
.cc-close:hover { color: var(--ink); }
.cc-cat {
  border-top: 1px solid var(--border);
  padding: 16px 0;
}
.cc-cat-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cc-cat-name { font-weight: 600; color: var(--ink); }
.cc-cat-desc { color: var(--muted); font-size: .88rem; margin: .5em 0 0; }
.cc-always { color: var(--blue); font-size: .82rem; font-weight: 600; }

/* Toggle-Switch */
.cc-switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.cc-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.cc-slider {
  position: relative;
  width: 44px; height: 24px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  transition: background .2s ease;
  flex: none;
}
.cc-slider::before {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--muted); transition: transform .2s ease, background .2s ease;
}
.cc-switch input:checked + .cc-slider { background: var(--grad); border-color: transparent; }
.cc-switch input:checked + .cc-slider::before { transform: translateX(20px); background: #fff; }
.cc-switch input:disabled + .cc-slider { opacity: .5; cursor: not-allowed; }

/* ============ FAQ ============ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 22px;
  transition: border-color .2s ease, background .2s ease;
}
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 {
  margin: 0;
  font-size: 1.05rem;
  font-family: var(--font-display);
  font-weight: 600;
}
.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  transition: transform .2s ease;
  flex: none;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ============ Footer Social (Instagram) ============ */
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  transition: color .2s ease;
}
.footer-social a:hover { color: var(--ink); }
.footer-social svg { flex: none; }
