/* ============================================================
   SEFODO Landingpage — Design-System
   Farben & Typo exakt nach Brand (sefodo.com)
   ============================================================ */

@font-face {
  font-family: 'Geist Sans';
  src: url('../assets/fonts/geist-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Sans';
  src: url('../assets/fonts/geist-sans-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Sans';
  src: url('../assets/fonts/geist-sans-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Sans';
  src: url('../assets/fonts/geist-sans-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #F7F2EA;
  --bg-soft: #FDFBF7;
  --accent: #BE5B39;
  --accent-dark: #A54B2D;
  --accent-tint: #F3E3DA;
  --text: #2B2620;
  --text-muted: #6E6558;
  --line: #E7DFD2;
  --card: #FFFFFF;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 10px 40px -12px rgba(190, 91, 57, .14), 0 4px 16px -6px rgba(43, 38, 32, .08);
  --font: 'Geist Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: var(--font);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --space-section: clamp(3rem, 7vw, 5rem);
  --space-section-lg: clamp(3.5rem, 8vw, 5.75rem);
  --space-block: clamp(1.25rem, 3vw, 2rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 1rem;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.container {
  width: min(100% - 2.5rem, 1120px);
  margin-inline: auto;
}

/* ---------- Fokus (Tastatur) ---------- */
:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 2px; border-radius: 999px; }

/* ---------- Typografie (Geist — SaaS Display System) ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); margin-bottom: .6em; }
h3 { font-size: 1.25rem; margin-bottom: .4em; font-weight: 600; }

.text-accent {
  color: var(--accent);
  font-weight: 600;
}
.text-accent--light {
  color: #E8A574;
  font-weight: 600;
}

.kicker {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: .9rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  padding: .85rem 1.75rem;
  min-height: 48px;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 150ms ease, box-shadow 160ms var(--ease-out);
}
.btn:active { transform: scale(.97); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px -6px rgba(190, 91, 57, .5);
}
.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -6px rgba(190, 91, 57, .45);
}

.btn--ghost { background: transparent; color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.btn--ghost:hover { color: var(--accent); }

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--text);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

.btn--light { background: var(--bg); color: var(--accent-dark); }
.btn--light:hover { background: #fff; }

.btn--small { padding: .55rem 1.15rem; min-height: 44px; font-size: .9rem; }
.btn--large { padding: 1rem 2.25rem; font-size: 1.08rem; }

/* ---------- z-Skala: 10 dropdown · 20 sticky · 30 modal · 40 toast/consent ---------- */

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 242, 234, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: .7rem;
}
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); }
.logo__word { font-weight: 700; letter-spacing: .1em; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2.5rem, 6vw, 3.5rem);
  text-align: center;
  isolation: isolate;
  background: var(--bg);
  --hero-fade: 0;
  z-index: 1;
}
/* Nahtlos in Expand — volle Deckkraft, gleiche Zielfarbe #EDE6DA */
.hero::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: clamp(6rem, 20vh, 11rem);
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(237, 230, 218, 0.65) 38%,
    #EDE6DA 72%,
    #EDE6DA 100%
  );
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.85) 45%,
    rgba(0, 0, 0, 0.35) 78%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.85) 45%,
    rgba(0, 0, 0, 0.35) 78%,
    transparent 100%
  );
}
.hero__bg picture {
  position: absolute;
  inset: 0;
  display: block;
}
.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.42;
  filter: saturate(1.08) brightness(1.03);
  transform: scale(1.02);
  transition: opacity 0.15s linear;
}
.hero__aurora {
  position: absolute;
  inset: -60%;
  opacity: 0.38;
  filter: blur(72px);
  background: repeating-linear-gradient(
    115deg,
    rgba(247, 242, 234, 0.9) 0%,
    rgba(190, 91, 57, 0.55) 18%,
    rgba(232, 164, 116, 0.45) 32%,
    rgba(247, 242, 234, 0.85) 48%,
    rgba(165, 75, 45, 0.35) 62%,
    rgba(247, 242, 234, 0.9) 78%
  );
  background-size: 280% 100%;
  animation: hero-aurora 24s linear infinite;
  mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.7) 40%,
    transparent 88%
  );
  -webkit-mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.7) 40%,
    transparent 88%
  );
  transition: opacity 0.15s linear;
}
@keyframes hero-aurora {
  0% { background-position: 0% 50%; transform: rotate(0deg); }
  100% { background-position: 200% 50%; transform: rotate(2deg); }
}
.hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(190, 91, 57, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(190, 91, 57, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 38%, #000 15%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 38%, #000 15%, transparent 72%);
}
.hero__vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, transparent 18%, transparent 100%),
    radial-gradient(ellipse 85% 60% at 50% 38%, transparent 45%, rgba(247, 242, 234, 0.28) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__title {
  font-size: clamp(2.4rem, 1.5rem + 4.5vw, 4.4rem);
  max-width: 18ch;
  margin-inline: auto;
  letter-spacing: -0.035em;
}
.hero__lead {
  font-size: clamp(1.05rem, .95rem + .6vw, 1.3rem);
  color: var(--text);
  max-width: 34ch;
  margin: 1.1rem auto 0;
}
.hero__sub { color: var(--text-muted); margin-top: .5rem; }

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  margin-top: clamp(1.5rem, 4vw, 2rem);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem .65rem;
  list-style: none;
  margin-top: clamp(1.5rem, 3.5vw, 2rem);
}
.badge {
  font-size: .8rem;
  font-weight: 600;
  padding: .4rem .9rem;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent-dark);
  border: 1px solid rgba(190, 91, 57, .12);
}

/* ---------- Scroll-Expand Media ---------- */
/* Sticky-basiert (kein Wheel/Touch-Hijacking): performant, funktioniert mit
   Trackpad/Maus/Tastatur/Screenreadern, bricht kein natives Scroll-Verhalten. */
.expand {
  position: relative;
  height: 118vh;
  height: 118dvh;
  margin-top: calc(-1 * clamp(4rem, 12vh, 7rem));
  padding-top: clamp(4rem, 12vh, 7rem);
  background: var(--text);
  isolation: isolate;
  z-index: 0;
}
/* Exakt an Hero::after anschließen — kein heller Sprung (var(--bg) entfernt) */
.expand::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    #EDE6DA 0%,
    #EDE6DA 14%,
    #EBE3D8 26%,
    #EDE6DA 38%,
    #E5DDD2 50%,
    #D8CEC4 62%,
    #C4B8AC 74%,
    #9A8E84 84%,
    #6E645C 92%,
    rgba(43, 38, 32, 0.55) 97%,
    transparent 100%
  );
}
.expand::after {
  display: none;
}
.expand__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-inline: clamp(1rem, 3vw, 2rem);
  z-index: 1;
  --expand-bottom-fade: 0;
}
/* Braun nur ganz unten — Bild bleibt hell, stärkt sich erst zum Scroll-Ende */
.expand__stage::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: min(36vh, 320px);
  z-index: 5;
  pointer-events: none;
  opacity: calc(0.2 + var(--expand-bottom-fade) * 0.8);
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 38%,
    rgba(237, 230, 218, 0.22) 52%,
    rgba(168, 152, 136, 0.45) 68%,
    rgba(43, 38, 32, 0.82) 86%,
    var(--text) 100%
  );
}
.expand__lead {
  position: absolute;
  top: clamp(1rem, 3.5%, 2.25rem);
  left: clamp(1.25rem, 4%, 2.75rem);
  right: clamp(1.25rem, 4%, 2.75rem);
  z-index: 4;
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 1.2vw + .85rem, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-align: left;
  text-wrap: balance;
  text-shadow: 0 4px 28px rgba(0, 0, 0, .45);
  opacity: 1;
  pointer-events: none;
}
.expand__lead .text-accent {
  color: #F0C4A8;
  font-weight: 600;
}
.expand__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .5;
  mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, .9) 0%,
    rgba(0, 0, 0, .45) 40%,
    transparent 58%
  );
  -webkit-mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, .9) 0%,
    rgba(0, 0, 0, .45) 40%,
    transparent 58%
  );
}
.expand__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: blur(32px) brightness(.52) saturate(1);
  transform: scale(1.08);
}
.expand__media {
  position: relative;
  z-index: 1;
  width: min(94vw, 1100px);
  height: min(74vh, 620px);
  height: min(74dvh, 620px);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px -18px rgba(43, 38, 32, .55);
  transform: scale(.82);
  will-change: transform, opacity;
  background: var(--bg);
  transition: box-shadow 0.3s var(--ease-out);
}

/* Echter Screenshot (Hans / Higgsfield) — ersetzt Mock wenn geladen */
.expand__media-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  z-index: 0;
  transition: opacity .4s ease;
}
.expand__media.is-screenshot .expand__media-shot { opacity: 1; z-index: 1; }
.expand__media.is-screenshot .expand__gallery-mock { display: none; }
.expand__media.is-screenshot .expand__media-scrim { z-index: 2; }

/* CSS-Galerie-Mock (Standard bis expand-gallery.webp da ist) */
.expand__gallery-mock {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: var(--bg-soft);
}
.mock-ui {
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: clamp(9px, 1.1vw, 13px);
}
.mock-ui__chrome {
  display: flex;
  align-items: center;
  gap: .45em;
  padding: .55em .85em;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.mock-ui__dot {
  width: .65em;
  height: .65em;
  border-radius: 50%;
  flex-shrink: 0;
}
.mock-ui__dot--r { background: #E8A598; }
.mock-ui__dot--y { background: #E8D4A0; }
.mock-ui__dot--g { background: #A8C9A0; }
.mock-ui__url {
  margin-left: .5em;
  padding: .25em .65em;
  background: var(--bg);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: .85em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.mock-ui__header {
  display: flex;
  align-items: center;
  gap: .75em;
  padding: .65em .85em;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.mock-ui__brand {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  font-weight: 700;
  font-size: .9em;
  letter-spacing: .08em;
  color: var(--text);
  flex-shrink: 0;
}
.mock-ui__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05em;
  color: var(--text);
  margin: 0;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-ui__pill {
  font-size: .72em;
  font-weight: 600;
  padding: .25em .55em;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent-dark);
  flex-shrink: 0;
}

.mock-ui__hero {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background: var(--text);
}
.mock-ui__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.mock-ui__toolbar {
  display: flex;
  align-items: center;
  gap: .5em;
  padding: .45em .85em;
  background: var(--card);
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.mock-ui__tab {
  font-size: .78em;
  font-weight: 600;
  color: var(--text-muted);
  padding: .2em .45em;
}
.mock-ui__tab--active {
  color: var(--accent-dark);
  border-bottom: 2px solid var(--accent);
}
.mock-ui__cta {
  margin-left: auto;
  font-size: .72em;
  font-weight: 600;
  padding: .35em .75em;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
}

.mock-ui__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  padding: 3px;
  background: var(--line);
  flex-shrink: 0;
  height: clamp(52px, 14%, 88px);
}
.mock-ui__thumb {
  background: var(--accent-tint);
  position: relative;
  overflow: hidden;
}
.mock-ui__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .55;
}
.mock-ui__thumb--1::after { background: linear-gradient(135deg, #D4A574 0%, #BE5B39 100%); }
.mock-ui__thumb--2::after { background: linear-gradient(135deg, #C9B896 0%, #8B7355 100%); }
.mock-ui__thumb--3::after { background: linear-gradient(135deg, #E8C4A8 0%, #A67B5B 100%); }
.mock-ui__thumb--4::after { background: linear-gradient(135deg, #B8956A 0%, #6E5544 100%); }

.expand__media-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(20, 15, 10, .58) 0%,
    rgba(20, 15, 10, .12) 26%,
    transparent 48%,
    transparent 58%,
    rgba(20, 15, 10, .08) 72%,
    rgba(20, 15, 10, .65) 100%
  );
  pointer-events: none;
}
.expand__media-caption {
  position: absolute;
  left: clamp(1.25rem, 4%, 2.75rem);
  bottom: clamp(1.25rem, 4%, 2.75rem);
  z-index: 4;
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.5vw + .7rem, 2rem);
  line-height: 1.2;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .35);
  opacity: 1;
  transform: none;
  pointer-events: none;
}
.expand__media-caption .text-accent { color: #F0C4A8; font-weight: 600; }
.expand__hint {
  position: absolute;
  bottom: clamp(1.5rem, 5vh, 3rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}

@media (prefers-reduced-motion: reduce) {
  .hero__aurora { animation: none; }
  .hero::after { height: 3rem; }

  .expand { height: auto; margin-top: 0; padding-top: 0; }
  .expand::before { display: none; }
  .expand__stage::after { display: none; }
  .expand__stage { position: relative; height: auto; padding-block: 2rem; }
  .expand__lead { opacity: 1; transform: none; }
  .expand__bg { display: none; }
  .expand__media { width: min(94vw, 880px); height: auto; min-height: 280px; aspect-ratio: 16 / 10; transform: none; border-radius: var(--radius-lg); }
  .mock-ui__grid { height: 64px; }
  .expand__hint { display: none; }
  .expand__media-caption { opacity: 1; transform: none; }
  .expand__media-scrim { opacity: 1; }
}

/* ---------- Problem ---------- */
.problem {
  position: relative;
  background: var(--text);
  color: var(--bg);
  padding-block: var(--space-section-lg);
}
.problem::before {
  display: none;
}
.problem .kicker { color: #E0A98F; font-size: .85rem; letter-spacing: .16em; }
.problem h2 {
  color: #fff;
  font-size: clamp(2rem, 1.4rem + 2.8vw, 3.35rem);
  line-height: 1.08;
  margin-bottom: .75em;
}
.problem__inner {
  display: grid;
  gap: clamp(2rem, 4vw, 2.75rem);
  position: relative;
  z-index: 1;
}
.problem__copy { max-width: 38ch; }
.problem__text {
  color: #C8BFB2;
  max-width: 36ch;
  text-wrap: pretty;
  font-size: clamp(.98rem, .9rem + .25vw, 1.08rem);
  line-height: 1.65;
}
.problem__text--lead {
  color: #E8E0D4;
  font-size: clamp(1.05rem, .95rem + .4vw, 1.2rem);
  line-height: 1.55;
  margin-bottom: .85rem;
}
.problem__text + .problem__text { margin-top: 0; }

.problem__visual {
  width: 100%;
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
}

.problem__showcase {
  display: grid;
  gap: clamp(1.25rem, 3vw, 1.75rem);
  align-items: stretch;
}

.problem__chaos-figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 24px 56px -20px rgba(0, 0, 0, .6);
}
.problem__chaos-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: rgba(255, 255, 255, .04);
}
.problem__chaos-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  margin: 0;
  padding: clamp(2.5rem, 18%, 3.5rem) clamp(1rem, 4%, 1.35rem) clamp(1rem, 3%, 1.25rem);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, .9rem + 1vw, 1.65rem);
  line-height: 1.15;
  color: #fff;
  text-wrap: balance;
  background: linear-gradient(0deg, rgba(15, 10, 8, .88) 0%, rgba(15, 10, 8, .45) 55%, transparent 100%);
}
.problem__chaos-kicker {
  display: block;
  font-family: var(--font);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #E0A98F;
  margin-bottom: .35rem;
}

.pain-panel {
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  width: 100%;
}
.pain-panel__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 1rem + .4vw, 1.35rem);
  color: #fff;
  margin: 0 0 1rem;
  line-height: 1.2;
  padding-bottom: .75rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.pain-list {
  list-style: none;
  display: grid;
  gap: .65rem;
  grid-template-columns: 1fr;
}
.pain-list__item {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: .85rem 1rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, .24);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: border-color .25s ease, background .25s ease, transform .25s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .pain-list__item:hover {
    background: rgba(190, 91, 57, .14);
    border-color: rgba(190, 91, 57, .38);
    transform: translateY(-1px);
  }
}
.pain-list__num {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
  color: #E0A98F;
  opacity: .85;
  padding-top: .15rem;
}
.pain-list__body {
  display: grid;
  gap: .2rem;
  min-width: 0;
}
.pain-list__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(.95rem, .88rem + .2vw, 1.05rem);
  color: #fff;
  line-height: 1.2;
}
.pain-list__desc {
  font-size: clamp(.84rem, .8rem + .15vw, .92rem);
  line-height: 1.45;
  color: #A79D8E;
}

/* SEFODO-Lösung — großes Bild mit Text-Overlay */
.solution-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: clamp(320px, 52vw, 420px);
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .55);
  border: 1px solid rgba(255, 255, 255, .12);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .solution-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 32px 72px -18px rgba(0, 0, 0, .62);
  }
}
.solution-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.solution-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  text-align: right;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: linear-gradient(
    105deg,
    rgba(20, 15, 10, .15) 0%,
    rgba(20, 15, 10, .35) 38%,
    rgba(20, 15, 10, .78) 72%,
    rgba(20, 15, 10, .88) 100%
  );
}
.solution-card__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.65rem);
  letter-spacing: .14em;
  color: #fff;
  margin: 0 0 .4rem;
}
.solution-card__line {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 1rem + 1.4vw, 2.1rem);
  line-height: 1.12;
  color: #F7F2EA;
  margin: 0;
}
.solution-card__line--accent {
  color: #F0C4A8;
  font-weight: 600;
  margin-bottom: 1rem;
}
.solution-card__checks {
  list-style: none;
  display: grid;
  gap: .45rem;
  margin: 0;
  padding: .85rem 1.1rem;
  border-radius: 14px;
  background: rgba(247, 242, 234, .14);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .18);
  min-width: min(100%, 240px);
}
.solution-card__checks li {
  font-size: clamp(.88rem, .82rem + .2vw, .98rem);
  font-weight: 600;
  color: #F7F2EA;
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.35;
}
.solution-card__checks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1em;
}

/* ---------- Features ---------- */
.features { padding-block: var(--space-section-lg); text-align: center; }

/* ---------- Workflow Bento ---------- */
.workflow {
  margin-top: 0;
  text-align: left;
}
.workflow__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.12;
  max-width: 22ch;
  margin-bottom: .65rem;
}
.workflow__title .text-accent { color: var(--accent); font-weight: 600; }
.workflow__lead {
  color: var(--text-muted);
  max-width: 46ch;
  font-size: 1.02rem;
  margin-bottom: 2rem;
}

.bento {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  align-items: start;
}

.bento__item {
  position: relative;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--radius);
  text-align: left;
  align-self: start;
  height: auto;
  --mx: 50%;
  --my: 50%;
}
.bento__surface {
  position: relative;
  height: 100%;
  padding: 1.35rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out), border-color 0.28s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.bento__surface::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.28s ease;
  background: radial-gradient(
    420px circle at var(--mx) var(--my),
    rgba(190, 91, 57, 0.14),
    transparent 42%
  );
  pointer-events: none;
}
.bento__surface::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(190, 91, 57, 0.35),
    transparent 38%,
    transparent 62%,
    rgba(190, 91, 57, 0.15)
  );
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .bento__item:not(.bento__item--visual):hover .bento__surface {
    border-color: rgba(190, 91, 57, 0.28);
    box-shadow:
      0 16px 48px -12px rgba(190, 91, 57, .18),
      0 6px 20px -8px rgba(43, 38, 32, .12);
  }
  .bento__item:not(.bento__item--visual):hover .bento__surface::before,
  .bento__item:not(.bento__item--visual):hover .bento__surface::after {
    opacity: 1;
  }
  .bento__item:not(.bento__item--visual):hover .bento__icon {
    transform: scale(1.06);
    box-shadow: 0 8px 20px -6px rgba(190, 91, 57, .35);
  }
}

.bento__icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  max-width: 42px;
  max-height: 42px;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  background: var(--accent-tint);
  color: var(--accent-dark);
  margin-bottom: .85rem;
  overflow: hidden;
  vertical-align: top;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
}
.bento__icon svg {
  width: 22px;
  height: 22px;
  max-width: 22px;
  max-height: 22px;
  flex-shrink: 0;
}

.bento__item h4 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: .35rem;
}
.bento__item p {
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.55;
  max-width: 42ch;
}

.bento__item--accent .bento__surface {
  background: linear-gradient(145deg, #F8EBE3 0%, var(--accent-tint) 100%);
  border-color: rgba(190, 91, 57, 0.35);
}
.bento__item--accent .bento__icon { background: var(--accent); color: #fff; }
.bento__item--accent p { color: var(--text); opacity: .88; }

.bento__item--tall .bento__surface {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100%;
}

/* Visueller Anker — Kamera / Higgsfield-Slot */
.bento__item--visual {
  padding: 0;
  overflow: hidden;
  border: none;
  background: var(--text);
  min-height: 320px;
  display: flex;
  flex-direction: column;
}
.bento__visual-stage {
  position: relative;
  flex: 1;
  min-height: 260px;
  max-height: 420px;
  background: var(--text);
  overflow: hidden;
}
.bento__visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .4s ease;
}
.bento__visual-stage.is-loaded .bento__visual-img { opacity: 1; }
.bento__visual-stage.is-loaded .bento__visual-placeholder { opacity: 0; }

.bento__visual-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: .75rem;
  justify-items: center;
  color: #E0A98F;
  background:
    radial-gradient(circle at 30% 20%, rgba(190, 91, 57, .35) 0%, transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(240, 196, 168, .12) 0%, transparent 45%),
    var(--text);
  transition: opacity .3s ease;
}
.bento__visual-placeholder span {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #A79D8E;
}

.bento__visual-caption {
  margin: 0;
  padding: 1rem 1.25rem 1.15rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  background: var(--text);
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.bento__visual-caption .text-accent { color: #E0A98F; font-weight: 600; }

.founder {
  margin-top: var(--space-block);
  padding: 1.75rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  text-align: left;
  box-shadow: 0 8px 28px -10px rgba(190, 91, 57, .12);
}
.founder__text {
  font-family: var(--font);
  font-size: clamp(1.05rem, .9rem + .5vw, 1.25rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  max-width: 52ch;
}
.founder__meta {
  margin-top: 1rem;
  font-size: .85rem;
  color: var(--text-muted);
}
.founder__meta strong { color: var(--accent-dark); font-weight: 600; }

/* ---------- Steps (bewusst dichter als die Nachbar-Sektionen) ---------- */
.steps { background: var(--bg-soft); border-block: 1px solid var(--line); padding-block: var(--space-section); text-align: center; }
.steps__list {
  list-style: none;
  display: grid;
  gap: 2rem;
  margin-top: clamp(1.5rem, 3.5vw, 2rem);
  counter-reset: step;
  text-align: center;
}
.step__num {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: .9rem;
}
.step p { color: var(--text-muted); font-size: .95rem; max-width: 30ch; margin-inline: auto; }

/* ---------- Pricing ---------- */
.pricing { padding-block: clamp(3.5rem, 9vw, 6.5rem); text-align: center; }
.pricing__note { color: var(--text-muted); margin-top: -0.5rem; }
.pricing__grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.25rem;
  align-items: stretch;
}
.plan {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .plan:not(.plan--featured):hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px -8px rgba(190, 91, 57, .12),
                0 4px 16px -4px rgba(43, 38, 32, .1);
  }
}
.plan--featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow);
}

.plan__flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .3rem .9rem;
  border-radius: 999px;
  white-space: nowrap;
}
.plan__name { font-family: var(--font); font-weight: 600; font-size: 1rem; color: var(--text-muted); }
.plan__price { font-family: var(--font-display); font-weight: 700; font-size: 2.5rem; letter-spacing: -0.03em; color: var(--text); margin: .3rem 0 1rem; }
.plan__price span { font-family: var(--font); font-weight: 400; font-size: .9rem; color: var(--text-muted); }
.plan ul { list-style: none; display: grid; gap: .55rem; margin-bottom: 1.75rem; flex: 1; }
.plan li { padding-left: 1.5rem; position: relative; font-size: .95rem; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.plan .btn { width: 100%; }

/* ---------- Trust ---------- */
.trust { background: var(--accent-tint); padding-block: clamp(3.5rem, 9vw, 6rem); }
.trust__inner { display: grid; gap: 2.5rem; align-items: center; }
.trust__copy p:last-child { color: var(--text-muted); max-width: 44ch; }
.stats { display: grid; gap: 1rem; }
.stat {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.stat dt { font-size: .85rem; color: var(--text-muted); }
.stat dd { font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; letter-spacing: -0.02em; color: var(--accent-dark); }

/* ---------- Finaler CTA ---------- */
.final { background: var(--text); padding-block: clamp(4rem, 10vw, 7rem); text-align: center; }
.final h2 { color: #fff; }
.final p { color: #D8D0C4; margin-bottom: 1.75rem; }

/* ---------- Footer ---------- */
.footer { background: var(--text); border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 1.5rem; }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  color: #A79D8E;
  font-size: .85rem;
}
.footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; }
.footer a, .footer__consent { color: #A79D8E; text-decoration: underline; text-underline-offset: 3px; }
.footer a:hover, .footer__consent:hover { color: #fff; }
.footer__consent { background: none; border: none; font: inherit; cursor: pointer; padding: 0; }

/* ---------- Cookie-Consent ---------- */
.consent[hidden] { display: none; }
.consent {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  padding: 1rem;
  display: flex;
  justify-content: center;
}
.consent__box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 -6px 40px rgba(43, 38, 32, .22);
  padding: 1.25rem 1.5rem;
  max-width: 520px;
  font-size: .9rem;
  animation: consent-in 400ms var(--ease-drawer) backwards;
}
@keyframes consent-in {
  from { opacity: 0; translate: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .consent__box { animation: consent-fade 200ms ease backwards; }
  @keyframes consent-fade { from { opacity: 0; } }
}
.consent__box p + p { margin-top: .4rem; color: var(--text-muted); }
.consent__box a { color: var(--accent-dark); }
.consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1rem;
}
.consent__actions .btn { flex: 1; min-width: 140px; font-size: .9rem; padding: .6rem 1rem; }

/* ---------- Mobile Sticky CTA ---------- */
.sticky-cta[hidden] { display: none; }
.sticky-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 30;
  padding: .75rem 1.25rem calc(.75rem + env(safe-area-inset-bottom, 0px));
  background: rgba(247, 242, 234, .94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 32px -8px rgba(43, 38, 32, .12);
  display: flex;
  justify-content: center;
}
.sticky-cta .btn { width: 100%; max-width: 420px; }
body.has-sticky-cta .consent { padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); }

/* ---------- Scroll-Reveal ----------
   Keyframe + `translate` statt Transition + `transform`:
   kollidiert weder mit Hover-Transitions noch mit scale() der Pro-Karte. */
.reveal { opacity: 0; translate: 0 14px; }
.reveal.is-visible {
  opacity: 1;
  translate: 0 0;
  animation: reveal-in .55s var(--ease-out) backwards;
}
@keyframes reveal-in {
  from { opacity: 0; translate: 0 14px; }
}

/* Stagger innerhalb der Grids (Delay hält via `backwards` den Startzustand) */
.steps__list .reveal:nth-child(2).is-visible,
.pricing__grid .reveal:nth-child(2).is-visible { animation-delay: 70ms; }
.steps__list .reveal:nth-child(3).is-visible,
.pricing__grid .reveal:nth-child(3).is-visible { animation-delay: 140ms; }

.bento .reveal:nth-child(2).is-visible { animation-delay: 60ms; }
.bento .reveal:nth-child(3).is-visible { animation-delay: 100ms; }
.bento .reveal:nth-child(4).is-visible { animation-delay: 140ms; }
.bento .reveal:nth-child(5).is-visible { animation-delay: 80ms; }
.bento .reveal:nth-child(6).is-visible { animation-delay: 120ms; }
.bento .reveal:nth-child(7).is-visible { animation-delay: 160ms; }
.bento .reveal:nth-child(8).is-visible { animation-delay: 200ms; }
.bento .reveal:nth-child(9).is-visible { animation-delay: 100ms; }
.bento .reveal:nth-child(10).is-visible { animation-delay: 140ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; translate: none; }
  .reveal.is-visible { animation: none; }
  .btn, .plan { transition: none; }
  .hero__aurora { animation: none; }
  .bento__surface { transition: none; }
  .plan:not(.plan--featured):hover {
    transform: none;
    box-shadow: 0 0 0 1px rgba(190, 91, 57, .25), 0 0 24px 2px rgba(190, 91, 57, .15);
  }
}

/* ============================================================
   Tablet 560–767px
   ============================================================ */
@media (min-width: 560px) {
  .pain-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
  }
  .problem__showcase {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
  }
}

@media (min-width: 560px) and (max-width: 767px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento__item--visual,
  .bento__item--wide,
  .bento__item--accent {
    grid-column: span 2;
  }
  .bento__item--tall { grid-row: span 1; }
}

/* ============================================================
   Desktop ≥ 768px
   ============================================================ */
@media (min-width: 768px) {
  .hero__actions { flex-direction: row; justify-content: center; }

  .problem__inner {
    grid-template-columns: minmax(0, 0.38fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
  }
  .problem__copy {
    max-width: none;
    padding-top: .25rem;
    position: sticky;
    top: clamp(4.5rem, 8vw, 5.5rem);
  }

  .problem__showcase {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(1.25rem, 2.5vw, 2rem);
  }
  .problem__chaos-img { aspect-ratio: 4 / 5; max-height: none; }
  .pain-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
  }
  .pain-panel__title { margin-bottom: 1rem; }
  .solution-card { min-height: clamp(400px, 32vw, 480px); }

  .bento {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(118px, auto);
    gap: 1.1rem;
  }
  .bento__item--visual {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
    min-height: 380px;
    align-self: stretch;
  }
  .bento__item--tall {
    grid-row: span 2;
    align-self: stretch;
  }
  .bento__item--wide { grid-column: span 2; }
  .bento__item--accent { grid-column: span 2; }

  .steps__list { grid-template-columns: repeat(3, 1fr); }

  .pricing__grid { grid-template-columns: repeat(3, 1fr); }
  .plan--featured { transform: scale(1.04); }

  .trust__inner { grid-template-columns: 1.2fr 1fr; }

  .consent { justify-content: flex-start; padding: 1.5rem; }

  .sticky-cta { display: none !important; }
}

/* KI-Kennzeichnung (Art. 50 EU AI Act) */
.ai-badge {
  position: absolute; right: 10px; bottom: 10px; z-index: 3;
  font-size: 0.625rem; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(24, 19, 14, 0.55); color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px); pointer-events: none; white-space: nowrap;
}
.footer__ai { font-size: 0.75rem; opacity: 0.8; }
.footer__ai a { color: inherit; text-decoration: underline; }
