/* ==========================================================================
   Codiry – Design System
   Autor: Website für Codiry, 2026
   Struktur: 1) Tokens  2) Reset  3) Typografie  4) Layout  5) Navigation
             6) Komponenten  7) Sektionen  8) Footer  9) Motion  10) Utilities
   ========================================================================== */

/* 1) Tokens ---------------------------------------------------------------- */
:root {
  /* --- Markenfarben ------------------------------------------------------
     Signaturfarben aus dem Logo: Cyan #06C6FF und Pink #FF0355.
     Dazwischen liegt im Logo ein gedämpftes Violett (#7F65AC) – das ist der
     echte Mittelton des Verlaufs und deshalb hier auch der mittlere Stopp.

     Drei Verläufe, weil ein Verlauf allein nicht beides kann:
       --brand-grad      dekorativ, volle Leuchtkraft (Punkte, Schleier, Kacheln)
       --brand-grad-text für Schrift – dunkel genug, um lesbar zu bleiben
       --brand-grad-btn  für Flächen mit weißer Schrift (Knöpfe)
     Alle Textfarben erfüllen WCAG AA (Kontrast mindestens 4,5:1).          */
  --brand-cyan:   #06C6FF;
  --brand-pink:   #FF0355;
  --brand-mid:    #7F65AC;
  --brand-grad:   linear-gradient(135deg, #06C6FF 0%, #7F65AC 50%, #FF0355 100%);
  --brand-grad-text: linear-gradient(115deg, #E80049 0%, #B21A73 52%, #6B3FB0 100%);
  --brand-grad-btn:  linear-gradient(135deg, #EA004B 0%, #C4003A 100%);
  --brand-grad-soft: linear-gradient(135deg, rgba(6,198,255,.16), rgba(255,3,85,.14));
  --accent:       #C4003A;
  --focus:        #0E92C4;
  --btn-glow:     0 2px 10px rgba(255,3,85,.26), 0 12px 32px rgba(255,3,85,.20),
                  0 6px 24px rgba(6,198,255,.16);
  --btn-glow-hi:  0 4px 16px rgba(255,3,85,.34), 0 20px 48px rgba(255,3,85,.26),
                  0 10px 34px rgba(6,198,255,.22);

  /* Helles Erscheinungsbild */
  --bg:            #ffffff;
  --bg-alt:        #f4f5f8;
  --bg-elev:       #ffffff;
  --bg-glass:      rgba(255,255,255,.72);
  --bg-menu:       rgba(255,255,255,.96);
  --text:          #0d1117;
  --text-soft:     #3d4657;
  --text-muted:    #6b7482;
  --line:          rgba(13,17,23,.10);
  --line-strong:   rgba(13,17,23,.18);
  --shadow-sm:     0 1px 2px rgba(13,17,23,.06), 0 4px 14px rgba(13,17,23,.05);
  --shadow-md:     0 2px 6px rgba(13,17,23,.06), 0 18px 44px rgba(13,17,23,.09);
  --shadow-lg:     0 8px 24px rgba(13,17,23,.08), 0 40px 90px rgba(13,17,23,.14);
  --btn-solid-bg:  #0d1117;
  --btn-solid-fg:  #ffffff;
  --logo-light:    block;
  --logo-dark:     none;
  --aurora-a:      rgba(6,198,255,.30);
  --aurora-b:      rgba(255,3,85,.20);
  --aurora-c:      rgba(127,101,172,.18);
  --aurora-blur:   100px;
  --aurora-op:     .58;
  --cta-bg:        #0d1117;

  /* Maße */
  --nav-h:        58px;
  --wrap:         1120px;
  --wrap-narrow:  760px;
  --radius-sm:    12px;
  --radius:       20px;
  --radius-lg:    28px;
  --radius-xl:    38px;

  /* Bewegung */
  --ease:      cubic-bezier(.22,.61,.36,1);
  --ease-out:  cubic-bezier(.16,1,.3,1);
  --dur:       .5s;

  color-scheme: light;
}

html[data-theme="dark"] {
  --bg:          #07080b;
  --bg-alt:      #0e1015;
  --bg-elev:     #14171e;
  --bg-glass:    rgba(10,12,16,.66);
  --bg-menu:     rgba(7,8,11,.97);
  --text:        #f4f6fa;
  --text-soft:   #c2c9d6;
  --text-muted:  #8b94a5;
  --line:        rgba(255,255,255,.11);
  --line-strong: rgba(255,255,255,.2);
  --shadow-sm:   0 1px 2px rgba(0,0,0,.5);
  --shadow-md:   0 2px 6px rgba(0,0,0,.5), 0 18px 44px rgba(0,0,0,.5);
  --shadow-lg:   0 8px 24px rgba(0,0,0,.5), 0 40px 90px rgba(0,0,0,.6);
  --btn-solid-bg:#f4f6fa;
  --btn-solid-fg:#07080b;
  --logo-light:  none;
  --logo-dark:   block;
  --aurora-a:    rgba(6,198,255,.28);
  --aurora-b:    rgba(255,3,85,.26);
  --aurora-c:    rgba(127,101,172,.24);
  --aurora-blur: 120px;
  --aurora-op:   .74;
  --cta-bg:      #12151c;
  --brand-grad-text: linear-gradient(115deg, #FF5E8F 0%, #C89BFF 55%, #4FD8FF 100%);
  --accent:      #FF7AA6;
  --focus:       #4FD8FF;
  color-scheme: dark;
}

/* 2) Reset ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection { background: rgba(255,3,85,.16); }

/* 3) Typografie ------------------------------------------------------------ */
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 640;
  letter-spacing: -0.028em;
  line-height: 1.06;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 7.2vw, 5.1rem); letter-spacing: -0.038em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.35rem); letter-spacing: -0.032em; }
h3 { font-size: clamp(1.25rem, 2.1vw, 1.6rem); letter-spacing: -0.022em; line-height: 1.2; }
h4 { font-size: 1.06rem; letter-spacing: -0.014em; line-height: 1.35; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 620;
  letter-spacing: .085em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.lead {
  font-size: clamp(1.12rem, 1.9vw, 1.4rem);
  line-height: 1.5;
  color: var(--text-soft);
  letter-spacing: -0.014em;
  text-wrap: pretty;
}
.muted { color: var(--text-muted); }
.small { font-size: .92rem; }
.grad-text {
  background: var(--brand-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 4) Layout ---------------------------------------------------------------- */
.wrap { width: min(100% - 44px, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 44px, var(--wrap-narrow)); margin-inline: auto; }
@media (max-width: 600px) { .wrap, .wrap-narrow { width: calc(100% - 36px); } }

.section { padding: clamp(76px, 11vw, 148px) 0; position: relative; }
.section--tight { padding: clamp(52px, 7vw, 88px) 0; }
.section--alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: clamp(38px, 5vw, 62px); }
.section-head .lead { margin-top: 1.1rem; }
.center { text-align: center; }
.center .section-head { margin-inline: auto; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 660px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* 5) Navigation ------------------------------------------------------------ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease),
              backdrop-filter .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: var(--bg-glass);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  border-bottom-color: var(--line);
}
.nav__inner {
  width: min(100% - 44px, 1180px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
@media (max-width: 600px) { .nav__inner { width: calc(100% - 36px); } }

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { height: 26px; width: auto; }
.brand img.logo-light { display: var(--logo-light); }
.brand img.logo-dark  { display: var(--logo-dark); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}
.nav__links a {
  position: relative;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: .93rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav__links a:hover { color: var(--text); background: var(--line); }
.nav__links a[aria-current="page"] { color: var(--text); font-weight: 580; }
.nav__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px; bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-grad);
}

.nav__tools { display: flex; align-items: center; gap: 8px; flex: none; }

.icon-btn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  color: var(--text-soft);
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-1px); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn .icon-moon { display: var(--logo-dark); }
.icon-btn .icon-sun  { display: var(--logo-light); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
  background: transparent;
}
.lang-switch a {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 640;
  letter-spacing: .04em;
  color: var(--text-muted);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="true"] {
  color: #fff;
  background: var(--brand-grad-btn);
  box-shadow: 0 1px 6px rgba(255,3,85,.38);
}

.nav__burger { display: none; }

@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__burger { display: grid; }
  .nav__tools { margin-left: auto; }
}
@media (max-width: 430px) {
  .brand img { height: 23px; }
  .nav__tools { gap: 6px; }
  .icon-btn { width: 33px; height: 33px; }
  .lang-switch a { min-width: 28px; height: 27px; padding: 0 6px; font-size: .74rem; }
}

/* Mobiles Menü */
.menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg-menu);
  -webkit-backdrop-filter: saturate(180%) blur(30px);
  backdrop-filter: saturate(180%) blur(30px);
  padding: calc(var(--nav-h) + 26px) 0 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .32s var(--ease), visibility .32s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu nav { display: flex; flex-direction: column; }
.menu a {
  padding: 17px 2px;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.026em;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
}
.menu.is-open a { opacity: 1; transform: none; }
.menu.is-open a:nth-child(1) { transition-delay: .05s; }
.menu.is-open a:nth-child(2) { transition-delay: .10s; }
.menu.is-open a:nth-child(3) { transition-delay: .15s; }
.menu.is-open a:nth-child(4) { transition-delay: .20s; }
.menu.is-open a:nth-child(5) { transition-delay: .25s; }
body.menu-open { overflow: hidden; }

/* 6) Komponenten ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .98rem;
  font-weight: 560;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              background-color .22s var(--ease), border-color .22s var(--ease),
              opacity .22s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--primary {
  background: var(--brand-grad-btn);
  color: #fff;
  box-shadow: var(--btn-glow);
}
.btn--primary:hover { box-shadow: var(--btn-glow-hi); }

.btn--solid { background: var(--btn-solid-bg); color: var(--btn-solid-fg); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn--ghost:hover { background: var(--line); }
.btn--quiet { padding: 0; height: auto; color: var(--accent); font-weight: 560; }
.btn--quiet:hover { transform: none; text-decoration: underline; text-underline-offset: 4px; }
.btn[aria-disabled="true"] { pointer-events: none; }
.btn--soon {
  border-color: rgba(255,3,85,.26);
  background: linear-gradient(135deg, rgba(6,198,255,.10), rgba(255,3,85,.09));
  color: var(--text-soft);
  cursor: default;
  font-weight: 540;
}
.btn--soon:hover { transform: none; }
.btn--soon .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-grad);
  box-shadow: 0 0 0 3px rgba(255,3,85,.14);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center .btn-row { justify-content: center; }

.card {
  position: relative;
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out),
              border-color .4s var(--ease-out);
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card h3 { margin-bottom: .55rem; }
.card p { color: var(--text-muted); font-size: .98rem; }

.card__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 14px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(6,198,255,.16), rgba(255,3,85,.13));
  color: var(--accent);
  border: 1px solid rgba(255,3,85,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}
html[data-theme="dark"] .card__icon {
  color: var(--accent);
  background: linear-gradient(135deg, rgba(6,198,255,.20), rgba(255,3,85,.18));
  border-color: rgba(255,122,166,.26);
  box-shadow: none;
}
.card__icon svg { width: 22px; height: 22px; stroke-width: 1.7; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  font-size: .8rem;
  font-weight: 560;
  letter-spacing: .005em;
  color: var(--text-soft);
  box-shadow: var(--shadow-sm);
}
.badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-grad);
}

/* Aurora-Hintergrund */
.aurora {
  position: absolute;
  inset: -10% -20% auto -20%;
  height: 120%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.aurora::after {
  /* weicher Ausklang nach unten, damit die Farbe nicht abrupt endet */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 1;
}
.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(var(--aurora-blur));
  opacity: var(--aurora-op);
  will-change: transform;
}
.aurora span:nth-child(1) {
  width: 40vw; height: 34vw; min-width: 300px; min-height: 260px;
  left: -4%; top: 2%;
  background: var(--aurora-a);
  animation: drift-a 22s var(--ease) infinite alternate;
}
.aurora span:nth-child(2) {
  width: 38vw; height: 32vw; min-width: 280px; min-height: 240px;
  right: -2%; top: 10%;
  background: var(--aurora-b);
  animation: drift-b 26s var(--ease) infinite alternate;
}
.aurora span:nth-child(3) {
  width: 26vw; height: 24vw; min-width: 220px; min-height: 200px;
  left: 46%; top: 30%;
  background: var(--aurora-c);
  animation: drift-c 30s var(--ease) infinite alternate;
}
@keyframes drift-a { to { transform: translate3d(9%, 12%, 0) scale(1.16); } }
@keyframes drift-b { to { transform: translate3d(-11%, 8%, 0) scale(1.1); } }
@keyframes drift-c { to { transform: translate3d(6%, -14%, 0) scale(1.2); } }

/* 7) Sektionen ------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 64px) 0 72px;
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 2; }
.hero h1 { margin-bottom: 1.6rem; }
.hero .lead { max-width: 620px; }
.hero .btn-row { margin-top: 2.2rem; }
.hero__scroll {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--text-muted);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: bob 2.6s var(--ease) infinite;
}
.hero__scroll svg { width: 15px; height: 15px; }
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,6px); } }
@media (max-width: 860px) { .hero__scroll { display: none; } }

.hero--center { text-align: center; }
.hero--center .lead { margin-inline: auto; }
.hero--center .btn-row { justify-content: center; }

/* Hero mit Produktbild rechts */
.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero__grid .hero__inner > *:first-child { margin-top: 0; }
.hero__visual {
  perspective: 1400px;
  display: grid;
  place-items: center;
  animation: fade-up 1.1s var(--ease-out) both .3s;
}
.hero__visual .device {
  transform: rotateY(-13deg) rotateX(4deg) rotateZ(1.2deg) translateZ(0);
  transform-style: preserve-3d;
  animation: float 8s var(--ease) infinite alternate;
  box-shadow:
    0 0 0 1.5px rgba(255,255,255,.08),
    -22px 42px 90px rgba(13,17,23,.22),
    -8px 14px 34px rgba(6,198,255,.20);
}
html[data-theme="dark"] .hero__visual .device {
  box-shadow:
    0 0 0 1.5px rgba(255,255,255,.1),
    -24px 46px 100px rgba(0,0,0,.72),
    -6px 12px 40px rgba(255,3,85,.22);
}
@keyframes float {
  from { transform: rotateY(-13deg) rotateX(4deg) rotateZ(1.2deg) translateY(-8px); }
  to   { transform: rotateY(-9deg)  rotateX(2deg) rotateZ(.4deg)  translateY(10px); }
}
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: 2; margin-top: 12px; perspective: none; }
  .hero__visual .device { transform: none; animation: none; }
}

.hero__grid h1 { font-size: clamp(2.4rem, 4.4vw, 3.7rem); }

.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 84px) 0 clamp(38px, 5vw, 60px);
  overflow: hidden;
}
.page-hero__inner { position: relative; z-index: 2; }
.page-hero .lead { margin-top: 1.2rem; max-width: 640px; }

/* Statement-Sektion mit großer Aussage */
.statement {
  font-size: clamp(1.75rem, 4.4vw, 3.1rem);
  font-weight: 620;
  line-height: 1.14;
  letter-spacing: -0.032em;
  text-wrap: balance;
  max-width: 17ch;
}
.statement--wide { max-width: 22ch; }

/* Kennzahlen / Prinzipien */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}
.stat {
  background: var(--bg);
  padding: clamp(24px, 3.4vw, 40px);
  text-align: center;
}
.stat b {
  display: block;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 660;
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: var(--brand-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { display: block; margin-top: .5rem; color: var(--text-muted); font-size: .93rem; }
@media (max-width: 660px) { .stat-row { grid-template-columns: 1fr; } }

/* App-Karte */
.app-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(28px, 4.4vw, 62px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand-grad-soft);
  opacity: .55;
  pointer-events: none;
}
.app-card > * { position: relative; z-index: 1; }
.app-card h3 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -0.03em; margin-bottom: .8rem; }
@media (max-width: 860px) { .app-card { grid-template-columns: 1fr; text-align: left; } }

.app-icon {
  width: 74px; height: 74px;
  border-radius: 20px;
  display: grid; place-items: center;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
  background: #000;
  overflow: hidden;
}
.app-icon svg { width: 100%; height: 100%; }

/* iPhone-Mockup */
.device {
  position: relative;
  width: min(272px, 74vw);
  margin-inline: auto;
  aspect-ratio: 272 / 552;
  border-radius: 44px;
  padding: 11px;
  background: linear-gradient(160deg, #3a3f4a, #14161b 42%, #2a2e37 78%, #0c0e12);
  box-shadow:
    0 0 0 1.5px rgba(255,255,255,.08),
    var(--shadow-lg);
}
.device__screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: #000;
  display: grid;
  place-items: center;
}
.device__notch {
  position: absolute;
  top: 9px; left: 50%;
  transform: translateX(-50%);
  width: 78px; height: 22px;
  border-radius: 999px;
  background: #000;
  z-index: 4;
}
.device__glare {
  position: absolute; inset: 0;
  background: linear-gradient(122deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 38%);
  pointer-events: none;
  z-index: 3;
}
.device--watch {
  width: min(168px, 52vw);
  aspect-ratio: 168 / 202;
  border-radius: 46px;
  padding: 9px;
}
.device--watch .device__screen { border-radius: 38px; }
.device--watch .device__notch { display: none; }

/* Shapes-Bühne (die Formen der App) */
.shape-stage {
  position: relative;
  width: 100%; height: 100%;
  display: grid;
  place-items: center;
  background: #fff;
  transition: background-color 1.1s var(--ease);
}
.shape-stage svg { width: 62%; height: auto; }
.shape-stage__fig {
  position: absolute;
  opacity: 0;
  transform: scale(.86);
  transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out);
}
.shape-stage__fig.is-active { opacity: 1; transform: scale(1); }

/* Formen-Vorschau im Raster */
.shape-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.shape-tile {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.shape-tile:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--shadow-md); }
.shape-tile svg { width: 58%; height: auto; }
@media (max-width: 560px) { .shape-tiles { grid-template-columns: repeat(3, 1fr); } }

/* Kompakte Variante innerhalb der App-Karte */
.shape-tiles.shape-tiles--mini { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.shape-tiles.shape-tiles--mini .shape-tile { border-radius: 14px; box-shadow: var(--shadow-sm); }

/* FAQ / Accordion */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 0;
  position: relative;
  font-size: 1.06rem;
  font-weight: 560;
  letter-spacing: -0.014em;
  transition: color .2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px; top: 50%;
  width: 11px; height: 11px;
  margin-top: -6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: .5;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; opacity: .9; }
.faq .faq__body {
  padding: 0 40px 26px 0;
  color: var(--text-muted);
  max-width: 68ch;
  animation: fade-up .45s var(--ease-out);
}

/* Prosa (Impressum / Datenschutz) */
.prose { max-width: 70ch; }
.prose h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  letter-spacing: -0.024em;
  margin: 2.6em 0 .7em;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin: 1.9em 0 .5em; }
.prose p, .prose li { color: var(--text-soft); }
.prose ul { padding-left: 1.15em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose a { color: var(--accent); text-underline-offset: 3px; text-decoration: underline; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.6em 0; }

.placeholder {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 7px;
  background: rgba(255,196,0,.18);
  border: 1px dashed rgba(190,140,0,.55);
  color: #8a6100;
  font-weight: 560;
  font-size: .95em;
}
html[data-theme="dark"] .placeholder { color: #ffd66b; border-color: rgba(255,214,107,.5); background: rgba(255,196,0,.12); }

.note {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 18px 20px;
  font-size: .95rem;
  color: var(--text-muted);
}

/* CTA-Band */
.cta {
  position: relative;
  border-radius: var(--radius-xl);
  padding: clamp(44px, 6.5vw, 92px) clamp(28px, 5vw, 72px);
  overflow: hidden;
  background: var(--cta-bg);
  color: #fff;
  text-align: center;
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 24px 70px rgba(13,17,23,.28);
}
/* Zwei weiche Farbschleier in den Markenfarben – die Fläche bleibt dunkel,
   damit weiße Schrift jederzeit gut lesbar ist. */
.cta::before, .cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(76px);
  pointer-events: none;
  z-index: 0;
}
.cta::before {
  width: 46%; padding-bottom: 46%;
  left: -8%; top: -30%;
  background: rgba(6,198,255,.5);
}
.cta::after {
  width: 50%; padding-bottom: 50%;
  right: -10%; bottom: -34%;
  background: rgba(255,3,85,.45);
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { margin-bottom: 1rem; }
.cta p { color: rgba(255,255,255,.82); max-width: 52ch; margin-inline: auto; font-size: 1.08rem; }
.cta .btn--solid { background: #fff; color: #14161b; margin-top: 2rem; }
.cta .btn--solid:hover { box-shadow: 0 10px 34px rgba(0,0,0,.4); }
html[data-theme="dark"] .cta { box-shadow: 0 24px 70px rgba(0,0,0,.6); }

/* Kontaktzeile */
.contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  padding: 22px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elev);
}
.contact-line strong { font-weight: 600; }

/* 8) Footer ---------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(48px, 6vw, 76px) 0 34px;
  background: var(--bg);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 42px;
}
@media (max-width: 760px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
.footer__brand img { height: 26px; width: auto; margin-bottom: 16px; }
.footer__brand img.logo-light { display: var(--logo-light); }
.footer__brand img.logo-dark  { display: var(--logo-dark); }
.footer__brand p { color: var(--text-muted); font-size: .95rem; max-width: 34ch; }
.footer h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .085em; color: var(--text-muted); margin-bottom: 14px; font-weight: 620; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: .95rem; color: var(--text-soft); transition: color .2s var(--ease); }
.footer ul a:hover { color: var(--text); }
.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: .87rem;
  color: var(--text-muted);
}
.footer__bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* 9) Motion ---------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .78s var(--ease-out), transform .78s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.hero__inner > * {
  animation: fade-up .9s var(--ease-out) both;
}
.hero__inner > *:nth-child(1) { animation-delay: .05s; }
.hero__inner > *:nth-child(2) { animation-delay: .14s; }
.hero__inner > *:nth-child(3) { animation-delay: .23s; }
.hero__inner > *:nth-child(4) { animation-delay: .32s; }
.hero__inner > *:nth-child(5) { animation-delay: .41s; }

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

/* 10) Utilities ------------------------------------------------------------ */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 50%; top: 8px;
  transform: translate(-50%, -160%);
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--btn-solid-bg);
  color: var(--btn-solid-fg);
  font-size: .9rem;
  font-weight: 560;
  transition: transform .25s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .6rem; }
.mt-2 { margin-top: 1.4rem; }
.mt-3 { margin-top: 2.2rem; }
.mt-4 { margin-top: 3.2rem; }
.stack > * + * { margin-top: 1.1rem; }
