/* ==========================================================================
   margheritaAI marketing site — single stylesheet
   Design tokens & recipes from temp/Marketing Kit.html ("Glossy, warm,
   appetitlich — Verläufe in den Logo-Tönen als Rahmen, das Essen als Star.")
   Mobile-first; breakpoints 640px / 960px.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* brand hues */
  --sole:       #FFE259;
  --arancia:    #FB923C;
  --rosa:       #F472B6;
  --viola:      #A855F7;
  --indaco:     #6366F1;
  /* darks / neutrals */
  --notte:      #0E0817;
  --aubergine:  #120B1E;
  --ink:        #2B1840;
  --crema:      #FCEFE2;
  --rosa-latte: #F3E1F1;
  --success:    #10B981;
  --success-2:  #34D399;

  --grad-core: linear-gradient(100deg, #FFE259, #FB923C, #F472B6, #A855F7, #6366F1);
  --grad-acc:  linear-gradient(100deg, #FFE259, #FB923C, #F472B6, #A855F7);
  --grad-pill: linear-gradient(135deg, #A855F7, #F472B6);
  --grad-badge: linear-gradient(135deg, #FB923C, #F472B6);

  --font-sans: "Archivo", Helvetica, sans-serif;
  --font-acc:  "Cormorant Garamond", serif;
  --font-mono: "JetBrains Mono", monospace;

  --r16: 16px;
  --r20: 20px;
  --r22: 22px;
  --r24: 24px;

  --fs-h1: clamp(2.3rem, 5.5vw + 0.5rem, 4.4rem);
  --fs-h2: clamp(1.7rem, 3vw + 0.6rem, 2.9rem);
  --fs-lede: clamp(1.05rem, 0.9vw + 0.85rem, 1.35rem);

  --container: 1180px;
  --nav-h: 72px;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  line-height: 1.55;
  color: #fff;
  background: var(--notte);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

section[id], div[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

.mono { font-family: var(--font-mono); }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}
.container--narrow { max-width: 860px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: #fff;
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 0 0 12px 0;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   3. Section recipes (Marketing Kit "Hintergrund-Rezepte")
   -------------------------------------------------------------------------- */
.sec-dark {
  background:
    radial-gradient(90% 60% at 80% 16%, rgba(232, 121, 185, .45), transparent 60%),
    radial-gradient(80% 60% at 12% 86%, rgba(124, 58, 237, .5), transparent 60%),
    radial-gradient(70% 50% at 50% 52%, rgba(251, 146, 60, .18), transparent 70%),
    var(--aubergine);
  color: #fff;
}

.sec-pastel {
  background:
    radial-gradient(110% 80% at 85% 8%, #FBBF77 0, transparent 50%),
    radial-gradient(110% 90% at 10% 92%, #C084FC 0, transparent 52%),
    radial-gradient(100% 80% at 92% 96%, #F9A8D4 0, transparent 55%),
    linear-gradient(160deg, var(--crema), var(--rosa-latte));
  color: var(--ink);
}

.sec-gradient {
  background: var(--grad-core);
  color: var(--ink);
}

.section { padding-block: clamp(64px, 9vw, 120px); }

/* --------------------------------------------------------------------------
   4. Type components
   -------------------------------------------------------------------------- */
.sechead {
  font-size: clamp(0.85rem, 0.6vw + 0.7rem, 1.1rem);
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: linear-gradient(100deg, #FB923C, #F472B6, #A855F7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 14px;
}

.h2 {
  font-size: var(--fs-h2);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.12;
  max-width: 21ch;
}
.h2--ink { color: var(--ink); }
.h2--center { margin-inline: auto; text-align: center; }
.h2--stats { max-width: none; text-align: center; }

/* Akzentwort: Cormorant Garamond italic 600 als Verlaufs-Text (max. eins pro Headline) */
.acc {
  font-family: var(--font-acc);
  font-style: italic;
  font-weight: 600;
  font-size: 1.06em;
  background: var(--grad-acc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  padding-right: 0.06em; /* italic overhang gets clipped otherwise */
}
.h2--stats .acc { font-size: 1.15em; }
.sec-gradient .acc {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--ink);
}

.lede {
  font-size: var(--fs-lede);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  max-width: 56ch;
  margin-top: 18px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.lede--ink { color: rgba(43, 24, 64, 0.75); }
.lede--center { margin-inline: auto; text-align: center; }

/* --------------------------------------------------------------------------
   5. Buttons, pills, badges, glass, frames
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-align: center;
  padding: 13px 26px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 16px 32px; font-size: 1.08rem; }
.btn--block { display: block; width: 100%; }

.btn--grad {
  background: var(--grad-pill);
  color: #fff;
  box-shadow: 0 10px 24px rgba(168, 85, 247, 0.4);
}
.btn--grad:hover { box-shadow: 0 14px 30px rgba(168, 85, 247, 0.55); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); }
.sec-pastel .btn--ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.8);
}

.btn--pulse { animation: cta-pulse 2.6s ease-out infinite; }
@keyframes cta-pulse {
  0%   { box-shadow: 0 10px 24px rgba(168, 85, 247, 0.4), 0 0 0 0 rgba(244, 114, 182, 0.45); }
  60%  { box-shadow: 0 10px 24px rgba(168, 85, 247, 0.4), 0 0 0 16px rgba(244, 114, 182, 0); }
  100% { box-shadow: 0 10px 24px rgba(168, 85, 247, 0.4), 0 0 0 0 rgba(244, 114, 182, 0); }
}

.pill {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 999px;
}
.pill--grad {
  background: var(--grad-pill);
  color: #fff;
  box-shadow: 0 10px 24px rgba(168, 85, 247, 0.4);
}

.num-badge {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: var(--r24);
  background: var(--grad-badge);
  color: #fff;
  font-size: 2.6rem;
  font-weight: 900;
  box-shadow: 0 0 40px rgba(244, 114, 182, 0.4), 0 16px 30px rgba(0, 0, 0, 0.2);
}

.glass-dark {
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--r16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.glass-light {
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--r16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.frame {
  border-radius: var(--r20);
  border: 2px solid rgba(255, 255, 255, 0.9);
  overflow: hidden;
  box-shadow: 0 0 44px rgba(244, 114, 182, 0.45), 0 18px 36px rgba(0, 0, 0, 0.4);
  background: #fff;
}
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------------------
   6. Nav
   -------------------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background .25s ease, box-shadow .25s ease;
}
.site-nav.is-scrolled {
  background: rgba(14, 8, 23, 0.82);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo {
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(232, 121, 185, 0.55);
}
.nav-wordmark {
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}
.nav-link {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  transition: color .18s ease;
}
.nav-link:hover { color: #fff; }
.nav-link--login { color: #fff; }
.nav-cta { padding: 10px 22px; font-size: 0.95rem; }

.nav-burger {
  display: none;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  cursor: pointer;
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px;
}
.nav-burger-box { display: inline-flex; flex-direction: column; gap: 5px; }
.nav-burger-box span {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform .25s ease, opacity .25s ease;
}
body.nav-open .nav-burger-box span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-burger-box span:nth-child(2) { opacity: 0; }
body.nav-open .nav-burger-box span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 959px) {
  .nav-burger { display: inline-flex; }
  .nav-menu {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 28px;
    background: rgba(14, 8, 23, 0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.45);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform .25s ease, opacity .25s ease, visibility .25s;
  }
  body.nav-open .nav-menu {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-link { padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .nav-cta { margin-top: 18px; }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(48px, 7vw, 110px) clamp(56px, 8vw, 120px);
  margin-top: calc(-1 * var(--nav-h)); /* dark recipe runs behind the sticky nav */
  padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 96px));
  overflow: hidden;
}

.hero-inner {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

.hero-h1 {
  font-size: var(--fs-h1);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-top: 22px;
  max-width: 15ch;
}
.hero-h1 .acc { font-size: 1.08em; }

.hero-sub {
  font-size: var(--fs-lede);
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
  max-width: 52ch;
  margin-top: 22px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-meta {
  margin-top: 22px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.hero-visual {
  position: relative;
  min-height: 340px;
  display: none;
}
.hero-frame {
  position: absolute;
  width: min(300px, 60%);
  top: 8%;
  right: 6%;
  transform: rotate(3deg);
  z-index: 2;
}
.hero-frame--back {
  width: min(240px, 48%);
  top: 22%;
  right: auto;
  left: 4%;
  transform: rotate(-6deg);
  z-index: 1;
  opacity: 0.92;
}

@media (min-width: 640px) {
  .hero-visual { display: block; }
}
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; }
  .hero-visual { min-height: 480px; }
}

/* floating stickers (ported from the old site — the "cool" bit) */
.sticker {
  position: absolute;
  display: inline-block;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  transform: rotate(var(--rot, 0deg));
  animation: float-slow 6s ease-in-out infinite;
  white-space: nowrap;
  z-index: 3;
}
.sticker--1 { top: 0;    right: 30%; background: var(--grad-pill); color: #fff; }
.sticker--2 { top: 42%;  right: -2%; }
.sticker--3 { bottom: 14%; left: 0;  background: var(--sole); }
.sticker--4 { bottom: -2%; right: 18%; }

@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50%      { transform: translateY(-12px) rotate(var(--rot, 0deg)); }
}

/* --------------------------------------------------------------------------
   8. Marquee
   -------------------------------------------------------------------------- */
.marquee {
  background: var(--grad-core);
  overflow: hidden;
  padding: clamp(18px, 3vw, 30px) 0;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  width: max-content;
  animation: scroll-x 50s linear infinite;
  font-size: clamp(1.6rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.marquee-dot { opacity: 0.5; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   9. Cards (product / eCaupo feature cards)
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  gap: 22px;
}
.card-grid--3 { grid-template-columns: 1fr; }
@media (min-width: 640px)  { .card-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px)  { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.product-card {
  padding: 28px 26px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(168, 85, 247, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.card-title {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.card-body {
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(43, 24, 64, 0.75);
}

/* --------------------------------------------------------------------------
   10. Editor demo
   -------------------------------------------------------------------------- */
.ed-window {
  border-radius: var(--r22);
  overflow: hidden;
  max-width: 900px;
}

.ed-chrome {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.ed-dots { display: inline-flex; gap: 6px; }
.ed-dots i {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}
.ed-dots i:first-child { background: var(--rosa); }

.ed-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.ed-tab {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.ed-tab:hover { color: #fff; }
.ed-tab[aria-selected="true"] {
  background: var(--grad-pill);
  border-color: transparent;
  color: #fff;
}

.ed-body {
  display: grid;
  grid-template-columns: 52px 1fr;
  min-height: 380px;
}

.ed-tools {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.ed-tool {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
}
.ed-tool svg { width: 17px; height: 17px; fill: rgba(255, 255, 255, 0.75); }
.ed-tool.is-active { background: var(--grad-pill); }
.ed-tool.is-active svg { fill: #fff; }

.ed-stage {
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.ed-paper {
  display: none;
  position: relative;
  width: min(260px, 78vw);
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 26px 22px 56px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
.ed-stage[data-active="pizzeria"] .ed-paper--pizzeria,
.ed-stage[data-active="burger"]   .ed-paper--burger,
.ed-stage[data-active="cafe"]     .ed-paper--cafe { display: block; }

.ed-paper--pizzeria { --paper-accent: var(--rosa); }
.ed-paper--burger   { --paper-accent: var(--arancia); }
.ed-paper--cafe     { --paper-accent: var(--viola); }

.ed-paper.ai-sparkle { animation: ai-pulse 0.8s ease-out; }
@keyframes ai-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.5); }
  50%  { box-shadow: 0 0 0 12px rgba(168, 85, 247, 0), 0 12px 40px rgba(244, 114, 182, 0.4); }
  100% { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35); }
}

.ed-paper-accent {
  position: absolute;
  inset: 0 0 auto 0;
  height: 8px;
  border-radius: 12px 12px 0 0;
  background: var(--paper-accent);
}
.ed-menu-name { font-weight: 900; font-size: 1.25rem; letter-spacing: -0.02em; margin-top: 8px; }
.ed-menu-sub {
  font-family: var(--font-acc);
  font-style: italic;
  font-weight: 600;
  color: var(--paper-accent);
  font-size: 1.02rem;
  margin-bottom: 16px;
}
.ed-menu-items li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.85rem;
  padding-block: 6px;
}
.ed-menu-items strong { font-weight: 800; }
.ed-dotted {
  flex: 1;
  border-bottom: 2px dotted rgba(43, 24, 64, 0.25);
  transform: translateY(-3px);
}
.ed-menu-qr {
  position: absolute;
  right: 18px; bottom: 16px;
  width: 30px; height: 30px;
  border-radius: 4px;
  background:
    conic-gradient(var(--ink) 25%, transparent 0 50%, var(--ink) 0 75%, transparent 0) 0 0 / 10px 10px,
    #fff;
  border: 2px solid var(--ink);
}

.ed-side {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 18px 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  width: 132px;
}
.ed-side-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 6px;
}
.ed-layer {
  height: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
}
.ed-layer.is-active { background: var(--grad-pill); }
.ed-swatches { display: flex; gap: 6px; }
.ed-swatches i {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

@media (min-width: 960px) {
  .ed-body { grid-template-columns: 52px 1fr 132px; }
  .ed-side { display: flex; }
}

.ed-hint {
  margin-top: 18px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------------------------
   11. eCaupo before/after
   -------------------------------------------------------------------------- */
.ec-flow {
  display: grid;
  gap: 26px;
  align-items: center;
  margin-bottom: clamp(40px, 6vw, 64px);
}
@media (min-width: 960px) {
  .ec-flow { grid-template-columns: 1fr auto 1fr; }
}

.ec-panel { padding: 22px; }

.ec-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(43, 24, 64, 0.6);
  margin-bottom: 14px;
}

.ec-table li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 9px;
  border-bottom: 1px solid rgba(43, 24, 64, 0.1);
  font-size: 0.95rem;
  color: var(--ink);
}
.ec-table li:last-child { border-bottom: 0; }
.ec-thumb {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--grad-badge);
  flex: none;
}
.ec-item { flex: 1; }
.ec-price { font-size: 0.85rem; font-weight: 600; }

.ec-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  justify-self: center;
}
.ec-arrow-glyph {
  font-size: 2.2rem;
  font-weight: 900;
  background: var(--grad-acc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
@media (max-width: 959px) {
  .ec-arrow-glyph { transform: rotate(90deg); }
}

.ec-panel--after { padding: 0; border-radius: var(--r20); }
.ec-label--after {
  padding: 16px 22px 0;
  color: rgba(43, 24, 64, 0.6);
}
.ec-menu {
  position: relative;
  padding: 10px 22px 56px;
  color: var(--ink);
}
.ec-menu-name { font-weight: 900; font-size: 1.5rem; letter-spacing: -0.02em; }
.ec-menu-sub {
  font-family: var(--font-acc);
  font-style: italic;
  font-weight: 600;
  font-size: 1.05rem;
  color: #C026A3;
  margin-bottom: 14px;
}
.ec-menu-items li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
  padding-block: 6px;
  border-bottom: 1px dotted rgba(43, 24, 64, 0.2);
}
.ec-menu-items li:last-child { border-bottom: 0; }
.ec-menu-items strong { color: #C026A3; }
.ec-menu-qr { right: 22px; bottom: 18px; }

.ec-pro-note { text-align: center; margin-top: clamp(32px, 5vw, 48px); }

/* --------------------------------------------------------------------------
   12. Templates gallery
   -------------------------------------------------------------------------- */
.tpl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 2.5vw, 26px);
}
@media (min-width: 960px) { .tpl-grid { grid-template-columns: repeat(3, 1fr); } }

.tpl-tile {
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
}
.tpl-tile:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: 0 0 60px rgba(244, 114, 182, 0.6), 0 24px 44px rgba(0, 0, 0, 0.45);
}
.tpl-tile figcaption {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(transparent, rgba(14, 8, 23, 0.85));
  color: #fff;
}
.tpl-label { font-weight: 800; font-size: 0.95rem; }
.tpl-tag {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.tpl-cta { text-align: center; margin-top: clamp(32px, 5vw, 48px); }

/* --------------------------------------------------------------------------
   13. Workflow steps
   -------------------------------------------------------------------------- */
.wf-steps {
  counter-reset: step;
  display: grid;
  gap: 26px;
  margin-top: clamp(32px, 5vw, 56px);
}
@media (min-width: 640px)  { .wf-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px)  { .wf-steps { grid-template-columns: repeat(4, 1fr); } }

.wf-step .num-badge { margin-bottom: 18px; }
.wf-step .card-title { margin-bottom: 8px; }

/* --------------------------------------------------------------------------
   14. Pricing
   -------------------------------------------------------------------------- */
.price-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.price-toggle-btn {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 10px 22px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.price-toggle-btn.is-active {
  background: var(--grad-pill);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 24px rgba(168, 85, 247, 0.4);
}

/* discount badge inside the yearly toggle button — always visible, so the
   "2 Monate geschenkt" is unmistakably tied to yearly billing */
.toggle-badge {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--sole);
  color: var(--ink);
}
.price-toggle-btn.is-active .toggle-badge { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); }

.price-grid {
  display: grid;
  gap: 26px;
  align-items: stretch; /* equal card heights, CTAs aligned at the bottom */
}
@media (min-width: 960px) { .price-grid { grid-template-columns: repeat(2, minmax(0, 420px)); } }

.price-card {
  padding: 34px 30px;
  border-radius: var(--r22);
  display: flex;
  flex-direction: column;
}
.price-card .btn { margin-top: auto; }
.price-card--pro {
  position: relative;
  border: 2px solid transparent;
  background:
    linear-gradient(rgba(30, 16, 46, 0.92), rgba(30, 16, 46, 0.92)) padding-box,
    var(--grad-core) border-box;
  box-shadow: 0 18px 40px rgba(168, 85, 247, 0.3);
}

.price-name { font-size: 1.15rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.price-amount { margin-top: 12px; margin-bottom: 22px; }
.price-number { font-size: 3rem; font-weight: 900; letter-spacing: -0.03em; }
.price-period { color: rgba(255, 255, 255, 0.6); font-size: 0.98rem; }

.price-features { margin-bottom: 22px; }

/* Pro card mini-timeline (design-rules.md #3/#4: how it works + proactive
   renewal announcement instead of pure selling) */
.plan-timeline {
  position: relative;
  margin-bottom: 26px;
  padding: 14px 0 14px 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.plan-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 22px;
  bottom: 22px;
  width: 2px;
  background: var(--grad-pill);
  border-radius: 2px;
  opacity: 0.6;
}
.plan-timeline li {
  position: relative;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.75);
  padding-block: 6px;
}
.plan-timeline li::before {
  content: "";
  position: absolute;
  /* ol is padded 26px; the vertical line is centered at x=8 (left:7 + 1px
     half-width), so the 8px dot needs its left edge at x=4 → 4-26 = -22px */
  left: -22px;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-pill);
  box-shadow: 0 0 8px rgba(244, 114, 182, 0.6);
}
.price-features li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding-block: 7px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
}
.tick { color: var(--success-2); font-weight: 800; }

.price-ecaupo-note {
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.02rem;
}

/* --------------------------------------------------------------------------
   15. Stats band
   -------------------------------------------------------------------------- */
.section--stats { padding-block: clamp(56px, 7vw, 90px); }

.stats-band {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: clamp(32px, 5vw, 56px);
  text-align: center;
}
@media (min-width: 960px) { .stats-band { grid-template-columns: repeat(4, 1fr); } }

.stat { display: flex; flex-direction: column-reverse; gap: 6px; }
.stat-number {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.stat-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: rgba(43, 24, 64, 0.75);
}

/* --------------------------------------------------------------------------
   16. FAQ
   -------------------------------------------------------------------------- */
.faq-list {
  display: grid;
  gap: 14px;
  margin-top: clamp(28px, 4vw, 44px);
}

.faq-item { padding: 0; overflow: hidden; }

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-chevron { transition: transform .25s ease; color: var(--viola); }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }

.faq-a {
  padding: 0 22px 20px;
  color: rgba(43, 24, 64, 0.75);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   17. Register CTA
   -------------------------------------------------------------------------- */
.section--cta { text-align: center; }

.cta-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--r20);
  color: var(--ink);
  text-align: left;
  padding: clamp(26px, 4vw, 44px);
  max-width: 560px;
  margin: clamp(32px, 5vw, 48px) auto 0;
  box-shadow: 0 0 60px rgba(244, 114, 182, 0.35), 0 24px 48px rgba(0, 0, 0, 0.4);
}

.register-loading, .rf-hint { color: rgba(43, 24, 64, 0.65); font-size: 0.9rem; }

.rf-field { margin-bottom: 18px; }
.rf-field label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.rf-field input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid rgba(43, 24, 64, 0.2);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}
.rf-field input:focus {
  outline: 2px solid var(--viola);
  outline-offset: 1px;
  border-color: transparent;
}

.rf-legal {
  border: 1px solid rgba(43, 24, 64, 0.15);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 20px;
}
.rf-legal legend {
  font-weight: 700;
  font-size: 0.85rem;
  padding-inline: 6px;
}
.rf-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  line-height: 1.45;
  padding-block: 6px;
  color: rgba(43, 24, 64, 0.85);
}
.rf-check input { margin-top: 3px; accent-color: var(--viola); }
.rf-check a { color: var(--viola); font-weight: 700; }

.rf-submit {
  display: block;
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  background: var(--grad-pill);
  border: 0;
  border-radius: 999px;
  padding: 15px 26px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(168, 85, 247, 0.4);
  transition: transform .18s ease, box-shadow .18s ease;
}
.rf-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(168, 85, 247, 0.55); }

.cta-signoff {
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--notte);
  color: rgba(255, 255, 255, 0.7);
  padding-block: clamp(48px, 6vw, 72px) 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px)  { .footer-grid { grid-template-columns: 1.4fr repeat(4, 1fr); } }

.footer-col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-col a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color .18s ease;
}
.footer-col a:hover { color: #fff; }
.footer-col a.is-active { color: #fff; font-weight: 700; }

.footer-heading {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 6px;
}

.footer-tagline { font-size: 0.95rem; line-height: 1.55; max-width: 30ch; }
.footer-social { font-weight: 700; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer-heart { font-family: var(--font-mono); }

/* --------------------------------------------------------------------------
   18b. Subpages: breadcrumb, page hero, two-col, rules, legal, contact
   -------------------------------------------------------------------------- */
.crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.crumb a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.crumb a:hover { color: #fff; }
.crumb-sep { opacity: 0.4; }

.page-hero {
  padding-block: clamp(40px, 6vw, 88px) clamp(48px, 7vw, 100px);
  overflow: hidden;
}
.hero-h1--page { font-size: clamp(2rem, 4.5vw + 0.5rem, 3.6rem); }
.page-hero--slim { padding-block: clamp(36px, 5vw, 64px); }
.page-hero--slim .hero-sub { margin-top: 14px; }

.two-col {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (min-width: 960px) { .two-col { grid-template-columns: 1.2fr 0.8fr; } }
.two-col-visual {
  max-width: 320px;
  justify-self: center;
  transform: rotate(2deg);
}
.two-col .hero-ctas { margin-top: 28px; }

.wf-steps--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .wf-steps--3 { grid-template-columns: repeat(3, 1fr); } }

/* card text on DARK sections (creator workflow) */
.card-title--light { color: #fff; }
.card-body--light { color: rgba(255, 255, 255, 0.72); }

.section--flush-top { padding-top: 0; }

.rules-list {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}
.rules-list li {
  position: relative;
  padding-left: 30px;
  font-size: 1.02rem;
  line-height: 1.55;
  color: rgba(43, 24, 64, 0.8);
}
.rules-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
  color: var(--success);
}

/* contact page */
.contact-card { padding: clamp(24px, 4vw, 36px); }
.contact-card-cta { margin-top: 18px; }
.contact-more-title { margin: clamp(28px, 4vw, 40px) 0 8px; }

/* legal pages: readable long-form typography on the pastel recipe */
.legal { max-width: 800px; color: var(--ink); }
.legal h2 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 36px 0 10px;
}
.legal h2:first-child { margin-top: 0; }
.legal h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 22px 0 8px;
}
.legal p, .legal address, .legal ul {
  font-size: 0.99rem;
  line-height: 1.65;
  color: rgba(43, 24, 64, 0.85);
  margin-bottom: 14px;
  font-style: normal;
}
.legal ul { list-style: disc; padding-left: 22px; }
.legal li { margin-bottom: 4px; }
.legal a { color: var(--viola); font-weight: 700; }
.legal-note {
  margin-top: 40px;
  font-size: 0.85rem;
  color: rgba(43, 24, 64, 0.6);
}
.legal-table-wrap { overflow-x: auto; margin-bottom: 14px; }
.legal table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 0.9rem;
}
.legal th, .legal td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border: 1px solid rgba(43, 24, 64, 0.15);
  background: rgba(255, 255, 255, 0.45);
}
.legal th { background: rgba(255, 255, 255, 0.7); font-weight: 800; }

/* --------------------------------------------------------------------------
   19. Scroll reveal (JS adds .is-visible; hidden only when JS is present)
   -------------------------------------------------------------------------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   20. Motion guard
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; }
}
