/* Root & Theme */
:root {
  --bg: #ffffff;
  --text: #0b0f19;
  --muted: #5c667a;
  --card: #f6f7f9;
  --border: #e5e7eb;
  --brand: #3b82f6;
  --brand-strong: #2563eb;
  --shadow: 0 10px 25px rgba(0,0,0,0.08);
  --hero-primary: #8b5cf6;     /* Violett */
  --hero-primary-2: #a78bfa;   /* helleres Violett */
  --hero-deep: #140b28;        /* sehr dunkles Violett für Vignette */
  --drawer-w: 320px;
  --drawer-bg: color-mix(in hsl, var(--bg), black 8%);
}

:root[data-theme="dark"] {
  --bg: #0b0f19;
  --text: #eef2ff;
  --muted: #a1a8b8;
  --card: #141a2a;
  --border: #1f2a44;
  --brand: #60a5fa;
  --brand-strong: #3b82f6;
  --shadow: 0 10px 25px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html.no-js .nav-menu { display: none; } /* minor progressive enhancement */

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container { width: min(1100px, 92%); margin-inline: auto; }

/* Header */
.header-inner.pill-layout {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0; /* etwas kompakter */
}

.header-inner.pill-layout .brand{ grid-column:1; }
.header-inner.pill-layout .pill-nav{ grid-column:2; justify-self:center; }
.header-inner.pill-layout .header-actions{ grid-column:3; justify-self:end; }

/* Brand kompakter */
.brand { gap: .35rem; color: var(--text); }
.brand-logo {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* Pill-Navigation */
.pill-nav {
  justify-self: center;
  display: inline-flex;
  gap: .25rem;
  padding: .35rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: color-mix(in hsl, var(--bg), transparent 10%);
  backdrop-filter: blur(8px) saturate(1.2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.pill-link {
  appearance: none;
  text-decoration: none;
  border: 1px solid transparent;
  padding: .55rem 1.15rem;
  border-radius: 9999px;
  font-weight: 700;
  color: var(--muted);
  transition: transform .08s ease, background .2s ease, color .2s ease, border-color .2s ease;
  line-height: 1;
  white-space: nowrap;
}

.pill-link:hover { color: var(--text); }
.pill-link.is-active {
  background: color-mix(in hsl, var(--card), transparent 8%);
  border-color: var(--border);
  color: var(--text);
  transform: translateY(-1px);
}

/* Right actions container */
.header-actions {
  display: flex;
  align-items: center;
  gap: .6rem;
  justify-self:end; 
  margin-left:auto;
}

/* Reuse your .btn-cta look, just smaller/tighter for nav */
.btn-cta--nav{
  padding: .4rem .6rem!important;
  font-size: .95rem;
  border-radius: 12px;
  box-shadow:
    0 2px 0 rgba(0,0,0,.08),
    0 8px 22px rgba(139, 92, 246, .28),
    inset 0 1px 0 rgba(255,255,255,.9);
}

/* Optional: subtle hover in the nav */
.site-header .btn-cta--nav:hover{
  transform: translateY(-1px);
}

/* Mobile: keep it tidy (wrap or shrink) */
@media (max-width: 640px){
  .btn-cta--nav{
    padding: .5rem .75rem;
    font-size: .9rem;
  }
}

/* Fixer Header */
.site-header{
  position: fixed;           /* statt sticky */
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: color-mix(in hsl, var(--bg), transparent 8%); /* etwas sichtbarer */
  -webkit-backdrop-filter: saturate(1.1) blur(8px);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--border);
}

/* Body bekommt oben Platz in Header-Höhe */
body.has-fixed-header{
  padding-top: var(--header-h, 72px);
}

/* Ankerziele landen unterhalb des fixen Headers */
:target{
  scroll-margin-top: calc(var(--header-h, 72px) + 8px);
}

/* Mobile: Pill bleibt mittig, bricht nicht um */
@media (max-width: 640px) {
  .pill-nav { max-width: 92vw; }
  .pill-link { padding: .5rem .95rem; }
}

/* A11y */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,1px,1px); white-space: nowrap; border: 0; }

.sidebar-toggle{
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: color-mix(in hsl, var(--bg), transparent 10%);
  cursor: pointer;
}
.sidebar-toggle span{
  display:block; width:18px; height:2px; background: var(--text);
  position: relative; border-radius: 2px;
}
.sidebar-toggle span::before,
.sidebar-toggle span::after{
  content:""; position:absolute; left:0; width:18px; height:2px; background: var(--text); border-radius:2px;
}
.sidebar-toggle span::before{ top:-6px; }
.sidebar-toggle span::after { top: 6px; }

/* groß: Toggle ausblenden, weil Navbar da ist */
@media (min-width: 920px){
  .sidebar-toggle{ display:none; }
}

/* Backdrop */
.drawer-backdrop{
  position: fixed; inset: 0; z-index: 999; /* unter Drawer (1000) */
  background: rgba(0,0,0,.45);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}

/* Drawer */
.drawer{
  position: fixed; inset: 0 auto 0 0; z-index: 1000;
  width: var(--drawer-w);
  transform: translateX(-100%);
  background: var(--drawer-bg);
  border-right: 1px solid color-mix(in hsl, var(--border), black 15%);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  display: grid; grid-template-rows: auto auto 1fr auto;
  gap: 1rem;
  padding: 1rem;
  transition: transform .28s cubic-bezier(.2,.75,.25,1);
}

/* Drawer sichtbar */
.drawer.is-open{ transform: translateX(0); }
.drawer-backdrop.is-open{ opacity: 1; pointer-events: auto; }

/* Drawer content */
.drawer-header{
  display:flex; align-items:center; justify-content:space-between;
  gap:.75rem;
}
.drawer-brand{
  display:flex; align-items:center; gap:.6rem; text-decoration:none; color:var(--text);
  font-weight: 700;
}
.drawer-brand img{ width:32px; height:32px; object-fit:contain; }

.drawer-close{
  appearance:none; border:1px solid var(--border);
  background: color-mix(in hsl, var(--bg), black 6%);
  width:36px; height:36px; border-radius:10px; cursor:pointer;
  font-size: 22px; line-height: 1; color: var(--text);
}

.drawer-nav{
  display:grid; gap:.25rem; padding-top:.25rem;
}

.drawer-link{
  display:block; text-decoration:none; color:var(--text);
  padding:.75rem .85rem; border-radius:10px;
  border:1px solid transparent;
  background: color-mix(in hsl, var(--bg), black 6%);
}

.drawer-link:hover{
  border-color: var(--border);
  background: color-mix(in hsl, var(--bg), black 10%);
}

.drawer-cta{
  align-self: end; padding-top: .5rem;
}

.drawer-foot{
  border-top:1px solid color-mix(in hsl, var(--border), black 15%);
  padding-top:.75rem; color: var(--muted);
}

@media (max-width: 919.98px){
  .pill-nav{ display:none !important; }
  .header-actions .btn-cta--nav{ display:none !important; }
}

/* Body scroll lock while open */
body.drawer-open{
  overflow:hidden;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;       
  display: grid;
  place-items: center;
  overflow: clip;
  isolation: isolate;
  padding: 0;                
}

/* Violette Ellipsen + Vignette */
.hero .hero-bg{
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 1200px at 50% 45%, color-mix(in hsl, var(--hero-primary), transparent 40%) 0%, transparent 70%),
    radial-gradient(800px 800px at 50% 48%, color-mix(in hsl, var(--hero-primary-2), transparent 30%) 0%, transparent 70%),
    radial-gradient(600px 600px at 50% 52%, color-mix(in hsl, var(--hero-primary), transparent 35%) 0%, transparent 70%),
    radial-gradient(100% 100% at 50% 0%, transparent 45%, rgba(0,0,0,.35) 100%),
    radial-gradient(120% 100% at 50% 100%, transparent 50%, rgba(0,0,0,.55) 100%),
    radial-gradient(100% 100% at 50% 50%, color-mix(in hsl, var(--bg), var(--hero-deep) 60%) 0%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

/* feine konzentrische Ringe */
.hero .hero-bg::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(255,255,255,.12) 0,
      rgba(255,255,255,0) 60% 100%);
  -webkit-mask:
    radial-gradient(circle at 50% 50%, transparent 180px, black 181px),
    radial-gradient(circle at 50% 50%, transparent 360px, black 361px),
    radial-gradient(circle at 50% 50%, transparent 540px, black 541px);
  mask-composite: add;
  opacity: .35;
}

/* Content */
.hero-inner {
  text-align: center;
  padding: 0 1rem;
}

.hero-title{
  margin: 0 0 2rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.02em;
  font-size: clamp(2.4rem, 6.5vw, 6rem);
  background: linear-gradient(180deg, #fff 0%, #ddd 40%, #cdb7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 1px 0 rgba(255,255,255,.1),
    0 8px 40px rgba(139, 92, 246, .25);
}

.hero-sub{
  margin: 0 auto 1.6rem;
  max-width: 48ch;
  color: var(--muted);
  font-size: clamp(1rem, 2.1vw, 1.35rem);
}

.btn-cta{
  display: inline-flex; align-items: center; justify-content: center;
  padding: .6rem 0.8rem;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  color: #111;
  background: rgba(255,255,255,.9);
  border: 2px solid rgba(255,255,255,.65);
  box-shadow:
    0 2px 0 rgba(0,0,0,.1),
    0 10px 30px rgba(139, 92, 246, .35),
    inset 0 1px 0 rgba(255,255,255,.9);
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.btn-cta:hover{
  transform: translateY(-1px);
  background: #fff;
  border-color: #fff;
  box-shadow:
    0 4px 0 rgba(0,0,0,.08),
    0 14px 40px rgba(139, 92, 246, .45),
    inset 0 1px 0 rgba(255,255,255,1);
}

.btn-cta:active{ transform: translateY(0); }

.br-md{ display:none; }
@media (min-width: 860px){
  .br-md{ display:inline; }
}

/* ===== HERO ANIMATIONS ===== */
.reveal{
  opacity: 0;
  transform: translateY(18px) scale(.98);
  filter: blur(6px);
}

.hero.is-visible .reveal{
  animation: revealUp .9s cubic-bezier(.22,.61,.36,1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes revealUp{
  to{
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Subtiler Puls im Glow */
.hero .hero-bg{
  will-change: transform, opacity;
  animation: glowPulse 10s ease-in-out infinite alternate;
}
@keyframes glowPulse{
  from { transform: scale(1) translateY(0); opacity: .98; }
  to   { transform: scale(1.05) translateY(-1%); opacity: 1; }
}

@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform:none; filter:none; }
  .hero .hero-bg{ animation: none !important; transform:none !important; }
}

.hero-stage{
  position:absolute; inset:0;
  display:grid; place-items:center;
  pointer-events:none;
  z-index:-1; 
}

.hero-stage .stage-img{
  position:absolute; inset:0;
  width:100%; 
  height:100%;           
  object-fit:cover;                  
  opacity:0;                         
  transform:scale(1.02);
  filter: blur(8px);
  transition: opacity .8s ease, transform 1.2s ease, filter .8s ease;
  -webkit-mask-image: radial-gradient(85% 85% at 50% 50%, #000 70%, rgba(0,0,0,0) 100%);
          mask-image: radial-gradient(85% 85% at 50% 50%, #000 70%, rgba(0,0,0,0) 100%);
}

.hero-stage .stage-img.is-active{
  opacity:.28;                       
  transform:scale(1); 
  filter: blur(0);
}

.hero-stage .stage-img.stage-img--logo{
  width:min(92vw, 1100px);
  height:auto;
  object-fit:contain;
  inset:auto;                        
  -webkit-mask-image:none;
          mask-image:none;
  filter:none;
}

.hero-stage .stage-img.stage-img--logo.is-active{
  opacity:.42;  
  transform:scale(1);
}

.hero-prompt{
  margin: 1.25rem auto 0;
  display:inline-block;
  padding:.65rem .9rem;
  border-radius:12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: clamp(1rem, 2.1vw, 1.2rem);
  color: var(--text);
  background: color-mix(in hsl, var(--bg), black 12%);
  border: 1px solid color-mix(in hsl, var(--border), black 25%);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.hero-prompt{
  transition: opacity .6s ease, transform .6s ease, filter .6s ease;
}

.hero-prompt.is-hidden{
  opacity: 0;
  transform: translateY(-10px);
  filter: blur(6px);
  pointer-events: none;
}

.hero .btn-cta{
  display: none;                 
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .6s ease, transform .6s ease;
}

.hero .btn-cta.show{
  display: inline-flex;
}

.hero .btn-cta.show.is-visible{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.caret{
  display:inline-block;
  width:.6ch; margin-left:.1ch;
  border-left: 2px solid currentColor;
  transform: translateY(2px);
  animation: blink 1s steps(1,end) infinite;
}

.caret.stop{ 
  animation: none; 
  opacity: 0; 
}

@keyframes blink { 50% { opacity: 0; } }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .hero-stage .stage-img{ transition:none; }
  .caret{ animation:none; opacity:1; }
}

/* ===== FEATURES / SHOWCASE ===== */
.features-showcase {
  padding: clamp(4rem, 8vw, 6rem) 0;   /* mehr Luft oben/unten */
}

.fs-title {
  margin: 0 auto 3rem;                  
  max-width: 40ch;                      
  text-align: center;                   
  font-size: clamp(1.6rem, 4.2vw, 3rem);
  line-height: 1.25;                    
  letter-spacing: -.005em;              
  font-weight: 500;                     
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif; 
  color: var(--text);
}

.fs-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 4vw, 3rem);          /* mehr Abstand zwischen links/rechts */
  align-items: stretch;
}

/* Karten */
.fs-card {
  position: relative;
  background: color-mix(in hsl, var(--bg), black 12%);
  border: 1px solid color-mix(in hsl, var(--border), black 25%);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 2.5vw, 2rem); /* mehr Innenabstand */
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fs-card-media {
  display: grid;
  place-items: center;
  aspect-ratio: 1.2 / 1;
  background: color-mix(in hsl, var(--bg), black 10%);
  border: 1px solid color-mix(in hsl, var(--border), black 20%);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 1rem;                 /* Abstand zum Textblock */
}

.fs-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Text in Karte */
.fs-card-body h3 {
  margin: 0 0 .25rem;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
}
.fs-card-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

/* Rechte App-Karte */
.fs-card.fs-app{
  padding: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid color-mix(in hsl, var(--border), black 20%);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

/* Bühne */
.app-demos{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;              /* kannst du anpassen oder entfernen */
  background: color-mix(in hsl, var(--bg), black 10%);
}

/* Videos füllen komplett */
.app-video{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: none; opacity: 0;
  transition: opacity .5s ease;
}
.app-video.is-active{ display: block; opacity: 1; }

/* Pfeile */
.app-arrow{
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid color-mix(in hsl, var(--border), white 10%);
  background: color-mix(in hsl, #000, white 12%);
  color: #fff; font-size: 20px; line-height: 1;
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform .12s ease, background .2s ease, opacity .2s ease;
  opacity: .9;
}
.app-arrow:hover{ transform: translateY(-50%) scale(1.05); background: color-mix(in hsl, #000, white 18%); }
.app-arrow--prev{ left: 10px; }
.app-arrow--next{ right: 10px; }

.app-video { cursor: zoom-in; }
:fullscreen .app-video,
:-webkit-full-screen .app-video { cursor: default; }

/* Optional: slightly larger arrows in fullscreen */
:fullscreen .app-arrow,
:-webkit-full-screen .app-arrow { width: 52px; height: 52px; font-size: 22px; }

/* Mobile: Pfeile etwas kleiner */
@media (max-width: 560px){
  .app-arrow{ width: 36px; height: 36px; font-size: 18px; }
}

.fx-scope .fx-reveal{
  opacity: 0;
  transform: translateY(16px);
  filter: blur(6px);
  will-change: transform, opacity, filter, clip-path;
}
.fx-scope.is-visible .fx-reveal{
  animation: fx-reveal-up .8s cubic-bezier(.22,.61,.36,1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes fx-reveal-up{
  to{ opacity:1; transform:none; filter:blur(0) }
}

/* Variationen */
.fx-reveal[data-fx="left"],
.fx-reveal[data-fx="left-tilt"]{ transform: translate(-26px,12px) rotate(-1.2deg); }
.fx-reveal[data-fx="right"]{ transform: translate(26px,12px); }
.fx-reveal[data-fx="up"]{ transform: translateY(22px); }

/* Tilt bekommt leichtes „spring“ */
.fx-scope.is-visible .fx-reveal[data-fx="left-tilt"]{
  animation: fx-left-tilt .9s cubic-bezier(.2,.75,.25,1) forwards;
  animation-delay: var(--d, 0s);
}

/* Scale + wipe für die App rechts */
.fx-reveal[data-fx="scale-wipe"]{
  transform: scale(.985);
  clip-path: inset(0 0 0 12% round 18px);
}
.fx-scope.is-visible .fx-reveal[data-fx="scale-wipe"]{
  animation: fx-scale-wipe .9s cubic-bezier(.2,.75,.25,1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes fx-left-tilt{
  0%  {opacity:0; transform: translate(-26px,12px) rotate(-1.2deg) scale(.98); filter: blur(6px);}
  60% {opacity:1; transform: translate(2px,-1px) rotate(.2deg)  scale(1.01); filter: blur(0);}
  100%{opacity:1; transform: translate(0,0) rotate(0) scale(1); filter: blur(0);}
}

@keyframes fx-scale-wipe{
  0%  {opacity:0; transform: scale(.985); clip-path: inset(0 0 0 12% round 18px); filter: blur(4px);}
  60% {opacity:1; transform: scale(1.005); clip-path: inset(0 0 0 0 round 18px);  filter: blur(0);}
  100%{opacity:1; transform: scale(1);    clip-path: inset(0 0 0 0 round 18px);  filter: blur(0);}
}

@keyframes fx-reveal-up{
  to { opacity:1; transform:none; filter: blur(0); }
}

/* leichte hover-lift für Karten */
.fs-card{
  transition: transform .18s ease, box-shadow .25s ease, border-color .2s ease;
}
.fs-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
  border-color: color-mix(in hsl, var(--border), white 10%);
}

/* Motion-Safe */
@media (prefers-reduced-motion: reduce){
  .fx-scope .fx-reveal{ opacity:1; transform:none; filter:none; animation:none !important; }
  .fs-card{ transition:none; }
}

/* Stack cards on mobile */
@media (max-width: 919.98px){
  .features-showcase .fs-grid{
    grid-template-columns: 1fr !important;
  }
  /* optional: etwas mehr Luft zwischen den Karten */
  .features-showcase .fs-grid { row-gap: 1.5rem; }
}

/* ===== BENEFITS ===== */
.benefits{
  position: relative;
  overflow: clip;
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.benefits-bg{
  position:absolute; inset:0;
  background:
    radial-gradient(1200px 800px at 20% -10%, color-mix(in hsl, var(--hero-primary), transparent 70%) 0%, transparent 65%),
    radial-gradient(900px 700px at 80% 110%, color-mix(in hsl, var(--hero-primary-2), transparent 75%) 0%, transparent 65%);
  pointer-events:none;
  z-index:-1;
  opacity:.55;
}

.benefits-title {
  margin: 0 auto clamp(2rem, 4vw, 3rem);  
  max-width: 36ch;                        
  text-align: center;                     
  font-size: clamp(1.8rem, 4.6vw, 3rem);
  line-height: 1.25;                      
  letter-spacing: -.005em;                
  font-weight: 500;                       
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
}

/* Grid */
.benefits-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.benefit{
  display:grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "icon title"
    "icon text";
  column-gap: .9rem;
  row-gap: .35rem;
  padding: clamp(.75rem, 1.6vw, 1rem);
  border-radius: 14px;
  background: color-mix(in hsl, var(--bg), black 8%);
  border: 1px solid color-mix(in hsl, var(--border), black 20%);
}

.benefit-icon{
  grid-area: icon;
  font-size: 1.35rem;
  line-height: 1;
  margin-top: .15rem;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.25));
}

.benefit h3{
  grid-area: title;
  margin: 0;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
}

.benefit p{
  grid-area: text;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

/* Responsive */
@media (max-width: 980px){
  .benefits-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 640px){
  .benefits-grid{ grid-template-columns: 1fr; }
}

/* ===== BENEFITS ANIMATIONS ===== */
.bf-reveal {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(6px);
  will-change: transform, opacity, filter;
}

.benefits.is-visible .bf-reveal {
  animation: bf-up .8s cubic-bezier(.22,.61,.36,1) forwards;
  animation-delay: var(--d, 0s);
  filter: none !important; /* = blur(0) */
}

@keyframes bf-up {
  to { opacity: 1; transform: none; filter: blur(0); }
}

/* Flip-Effekt für Icons oder ganze Cards */
.bf-reveal[data-fx="flip"] {
  transform: rotateY(90deg);
}

.benefits.is-visible .bf-reveal[data-fx="flip"] {
  animation: bf-flip .8s cubic-bezier(.22,.61,.36,1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes bf-flip {
  0%   { opacity:0; transform: rotateY(90deg) scale(.95); filter: blur(6px); }
  60%  { opacity:1; transform: rotateY(-10deg) scale(1.02); filter: blur(0); }
  100% { opacity:1; transform: rotateY(0) scale(1);        filter: blur(0); }
}

/* Motion-Safe */
@media (prefers-reduced-motion: reduce) {
  .bf-reveal { opacity:1; transform:none; filter:none; animation:none !important; }
}

/* ===== PRO FOOTER ===== */
.pro-footer{
  border-top: 1px solid color-mix(in hsl, var(--border), black 25%);
  background: color-mix(in hsl, var(--bg), black 6%);
}

.footer-top{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
  padding: clamp(2rem, 5vw, 3rem) 0;
}

.footer-brand img{
  display: block;
  width: 50px; height: 50px; object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.25));
}

.footer-nav{
  display: grid;
  grid-auto-flow: column;
  gap: clamp(2rem, 6vw, 6rem);
  justify-content: end;
}

.footer-col h4{
  margin: 0 0 .6rem;
  font-size: 1rem;
}
.footer-col ul{
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .6rem;
}
.footer-col a{
  text-decoration: none;
  color: var(--muted);
}
.footer-col a:hover{
  color: var(--text);
}

/* Bottom bar */
.footer-bottom{
  border-top: 1px solid color-mix(in hsl, var(--border), black 25%);
  background: color-mix(in hsl, var(--bg), black 8%);
}
.footer-bottom-inner{
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 0;
}
.footer-bottom p{
  margin: 0; color: var(--muted);
}

/* Responsive */
@media (max-width: 900px){
  .footer-top{
    grid-template-columns: 1fr; 
    gap: 1.25rem;
  }
  .footer-nav{
    justify-content: start;
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 1.25rem 2rem;
  }
}
@media (max-width: 520px){
  .footer-nav{
    grid-template-columns: 1fr;
  }
  .footer-bottom-inner{
    flex-direction: column; gap: .5rem; align-items: flex-start;
  }
}

/* ===== LEGAL PAGES ===== */
.legal-page {
  padding: clamp(5rem, 10vw, 3rem) 0;
  background: color-mix(in hsl, var(--bg), black 5%);
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
}

.legal-card {
  background: color-mix(in hsl, var(--bg), black 8%);
  border: 1px solid color-mix(in hsl, var(--border), black 20%);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: clamp(2rem, 4vw, 3rem);
}

.legal-card h1,
.legal-card h2 {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.legal-card h1 {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 2rem;
  background: linear-gradient(180deg, #fff 0%, #ddd 40%, #cdb7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.legal-card h2 {
  margin-top: 2rem;
  font-size: 1.25rem;
  color: var(--text);
}

.legal-card p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.legal-card a {
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.legal-card a:hover {
  border-color: var(--brand);
}

.source {
  font-size: 0.9rem;
  opacity: 0.8;
  text-align: right;
}
