/* =============================================
   Lucifer Nails — Main Stylesheet
   ============================================= */

:root {
  --accent:        #ff057f;
  --accent-soft:   #ff057f22;
  --accent-glow:   #ff057f55;
  --ink:           #0a0a0a;
  --ink-soft:      #0a0a0a99;
  --bg:            #f3e7fd;
  --bg-deep:       #ead5fb;
  --bg-darker:     #310758;
  --paper:         #ffffffaa;
  --line:          #0a0a0a14;

  /* Font system:
     --font-display     Lecherously Thin   →  big display headings, hero tag, eyebrows, card titles
     --font-ui          Lecherously Regular →  nav links, buttons, scroll cue (small UI text)
     --font-body        Cormorant Garamond →  all body copy
     --font-highlight   Jost Black Italic  →  pink accent words (sized 1.3em for max contrast) */
  --font-display:   'Lecherously Thin', 'Didot', 'Bodoni MT', serif;
  --font-ui:        'Lecherously Regular', 'Lecherously Thin', 'Didot', serif;
  --font-body:      'Cormorant Garamond', 'Didot', Georgia, serif;
  --font-highlight: 'Jost Highlight', system-ui, -apple-system, sans-serif;
  --font-mono:      ui-monospace, 'SF Mono', Menlo, monospace;
}

@font-face {
  font-family: 'Lecherously Thin';
  src: url('../fonts/Lecherously-Thin-BF6470200235849.ttf') format('truetype');
  font-weight: 100 400;
  font-display: swap;
}
@font-face {
  font-family: 'Lecherously Regular';
  src: url('../fonts/Lecherously-Regular-BF6470200238bdc.ttf') format('truetype');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Jost Highlight';
  src: url('../fonts/Jost-800-HeavyItalic.ttf') format('truetype');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400;1,500&display=swap');

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Decorative aura background (first-draft anchor positions) ---------- */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 15% 20%, #ff057f33 0%, transparent 35%),
    radial-gradient(circle at 85% 80%, #b388eb44 0%, transparent 40%);
  z-index: 0;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.06;
  z-index: 1;
  mix-blend-mode: multiply;
}

/* ---------- Floating header ---------- */
.float-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
  min-height: 92px;
}
.float-header.scrolled {
  background: rgba(243, 231, 253, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
/* Always-visible header (used on subpages) */
.float-header.always-visible {
  background: rgba(243, 231, 253, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.float-header.always-visible .logo-mark {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Logo crop using your exact spec:
   - Source PNG is 2000×2000
   - Logo content occupies y=600 to y=1450 (850px tall, 42.5% of height, centered at y≈51%)
   We scale the background image to (2000/850 = 235%) of the wrapper height so
   the logo slice exactly fills the wrapper, then position so y=600 sits at top. */
.float-header .logo-mark {
  display: block;
  /* Aspect ratio matches the cropped slice: 2000 wide × 850 tall = 2.35:1 */
  width: 165px;
  height: 70px;
  background-image: url('../images/logo.png');
  background-repeat: no-repeat;
  /* Width: full image width fills the wrapper width */
  /* Height: scale so 850px-of-original = wrapper height (235%) */
  background-size: 100% 235.3%;
  /* Y-offset: shift up so y=600 of original aligns to top of wrapper.
     600 / (2000-850) = 52.2% — this is the standard CSS bg-position-y math
     for percentages: y% means the y%-line of image aligns to y%-line of container */
  background-position: 50% 52.2%;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.float-header.scrolled .logo-mark {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
/* The img tag is hidden (kept in markup for accessibility / aria-label fallback) */
.float-header .logo-mark img {
  display: none;
}

.nav {
  display: flex;
  gap: 32px;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 14px;
}
.nav a {
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: all 0.3s ease;
}
.nav a:hover { color: var(--accent); }
.nav a:hover::after { width: 100%; left: 0; }

@media (max-width: 720px) {
  .nav { gap: 16px; font-size: 11px; }
  .float-header { padding: 12px 20px; min-height: 64px; }
  .float-header .logo-mark { width: 120px; height: 51px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 140px;
  z-index: 2;
  text-align: center;
}

.hero-logo {
  width: min(680px, 88vw);
  margin: 0 auto;
  animation: fadeUp 1.2s cubic-bezier(.2,.8,.2,1) both;
}

.hero-tag {
  margin-top: 28px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.55em;
  font-size: 18px;
  color: var(--ink);
  animation: fadeUp 1.2s 0.3s cubic-bezier(.2,.8,.2,1) both;
}
.hero-tag .sparkle {
  display: inline-block;
  margin: 0 14px;
  color: var(--accent);
  font-size: 13px;
  vertical-align: middle;
  text-shadow: 0 0 12px var(--accent-glow);
}

.hero-sub {
  margin-top: 40px;
  max-width: 580px;
  font-size: 20px;
  color: var(--ink-soft);
  line-height: 1.6;
  animation: fadeUp 1.2s 0.5s cubic-bezier(.2,.8,.2,1) both;
}

.hero-cta {
  margin-top: 48px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 1.2s 0.7s cubic-bezier(.2,.8,.2,1) both;
}

/* ---------- Buttons (proper toggle pair) ---------- */
.btn {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 14px;
  padding: 18px 36px;
  border: 1px solid var(--ink);
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
  background: transparent;
  color: var(--ink);
}
/* Secondary button: fills with ink on hover */
.btn:hover {
  background: var(--ink);
  color: var(--bg);
}
/* Primary button: starts filled, becomes accent on hover */
.btn.primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn.primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* scroll cue — pinned to viewport bottom, won't collide with buttons */
.scroll-cue {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-soft);
  animation: fadeUp 1.2s 1s both, float 3s ease-in-out 1.5s infinite;
  pointer-events: none;
}
.scroll-cue::after {
  content: '';
  display: block;
  width: 1px; height: 36px;
  background: var(--ink);
  margin: 14px auto 0;
  opacity: 0.4;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 8px); }
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  z-index: 2;
  padding: 120px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 16px;
  color: var(--accent);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-eyebrow::before {
  content: '✦';
  color: var(--accent);
  font-size: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  max-width: 14ch;
}
.section-title em {
  font-family: var(--font-highlight);
  font-weight: 800;
  font-style: italic;
  color: var(--accent);
  font-size: 1.15em;
  line-height: 0.95;
  letter-spacing: -0.01em;
  vertical-align: -0.01em;
}

.section-lede {
  font-size: 18px;
  max-width: 56ch;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ---------- Intro split ---------- */
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 880px) {
  .intro { grid-template-columns: 1fr; gap: 48px; }
}
.intro-image {
  position: relative;
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(135deg, #ff057f 0%, #310758 100%);
  overflow: hidden;
}
.intro-image::after {
  content: '✦';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 220px;
  color: #ffffff20;
  font-family: var(--font-display);
}
.intro-image .label {
  position: absolute;
  bottom: 28px; left: 28px;
  color: #fff;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 17px;
  z-index: 2;
}

/* ---------- Subpage cards (4) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 64px;
}
@media (max-width: 720px) {
  .cards { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  aspect-ratio: 5 / 6;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1), border-color 0.5s;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}
.card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: transform 0.8s cubic-bezier(.2,.8,.2,1);
}
.card:hover .card-bg { transform: scale(1.05); }
.card-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.6) 100%);
}
.card-bg.bg-1 { background: linear-gradient(135deg, #ff057f, #310758); }
.card-bg.bg-2 { background: linear-gradient(135deg, #310758, #f3e7fd 140%); }
.card-bg.bg-3 { background: linear-gradient(135deg, #ff057f 0%, #ff8ec0 100%); }
.card-bg.bg-4 { background: linear-gradient(135deg, #1a0033, #ff057f 180%); }

.card-bg .ornament {
  position: absolute;
  width: 65%;
  max-width: 280px;
  aspect-ratio: 1;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.8s cubic-bezier(.2,.8,.2,1);
  fill: rgba(255, 255, 255, 0.18);
  overflow: visible;
}
.card:hover .ornament { transform: translate(-50%, -50%) rotate(15deg) scale(1.05); }

.card-content {
  position: relative;
  z-index: 1;
  color: #fff;
}
.card-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  opacity: 0.7;
  margin-bottom: 16px;
}
.card-title {
  font-family: var(--font-display);
  font-size: 36px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 12px;
}
.card-desc {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.85;
  margin-bottom: 20px;
}
.card-arrow {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s;
}
.card:hover .card-arrow { gap: 16px; }

/* ---------- CTA section ---------- */
.cta {
  position: relative;
  z-index: 2;
  padding: 120px 32px;
  background:
    radial-gradient(ellipse 80% 100% at 50% 50%, #060010 0%, #1a042e 45%, var(--bg-darker) 100%);
  color: var(--bg);
  text-align: center;
  overflow: hidden;
}
.cta::before {
  content: '✦';
  position: absolute;
  font-family: var(--font-display);
  font-size: 600px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.08;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}
.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.cta h2 em {
  color: var(--accent);
  font-family: var(--font-highlight);
  font-weight: 800;
  font-style: italic;
  font-size: 1.15em;
  line-height: 0.95;
  letter-spacing: -0.01em;
  vertical-align: -0.01em;
}
.cta p {
  opacity: 0.8;
  margin-bottom: 32px;
  font-size: 18px;
}
.newsletter {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
}
.newsletter input {
  flex: 1;
  padding: 16px 20px;
  background: transparent;
  border: 1px solid #ffffff33;
  color: var(--bg);
  font: inherit;
  transition: border-color 0.3s;
}
.newsletter input::placeholder { color: #ffffff66; }
.newsletter input:focus { outline: none; border-color: var(--accent); }
.newsletter button {
  padding: 16px 28px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 14px;
  transition: background 0.3s;
}
.newsletter button:hover { background: #d10067; }
@media (max-width: 520px) {
  .newsletter { flex-direction: column; }
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 2;
  padding: 60px 32px 40px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.footer-icons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 28px;
}
.footer-icons a {
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: all 0.3s;
}
.footer-icons a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.footer-legal {
  display: flex;
  gap: 28px;
  justify-content: center;
  margin-bottom: 22px;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 14px;
}
.footer-legal a {
  color: var(--ink-soft);
  transition: color 0.3s;
}
.footer-legal a:hover { color: var(--accent); }

.footer-copy {
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
}
.footer-copy .star { color: var(--accent); }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(.2,.8,.2,1), transform 0.9s cubic-bezier(.2,.8,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Legal / subpage layout ---------- */
.page-header {
  position: relative;
  z-index: 2;
  padding: 180px 32px 60px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.page-header .section-eyebrow { justify-content: center; }
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1;
  letter-spacing: -0.01em;
}

.legal-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 32px 120px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
}
.legal-content h2 {
  font-family: var(--font-ui);
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 48px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-family: var(--font-ui);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin: 28px 0 12px;
  color: var(--accent);
}
.legal-content p { margin-bottom: 14px; }
.legal-content ul,
.legal-content ol { margin: 8px 0 16px 24px; }
.legal-content li { margin-bottom: 6px; }
.legal-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-content a:hover { text-decoration: none; }
.legal-content .placeholder {
  background: var(--accent-soft);
  padding: 1px 6px;
  border-radius: 2px;
  font-style: italic;
  font-size: 0.95em;
}

/* Block for the Muster-Widerrufsformular: visually offset to feel like a form template */
.legal-form-block {
  margin: 24px 0;
  padding: 24px 28px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  font-size: 15px;
  line-height: 1.7;
}
.legal-form-block p { margin-bottom: 12px; }
