/* ehinger.dev – Dark Premium. App-Seiten überschreiben --c1/--c2/--c3. */
:root {
  --bg: #07090f;
  --fg: #f5f5f7;
  --muted: rgba(245, 245, 247, .62);
  --line: rgba(255, 255, 255, .10);
  --glass: rgba(255, 255, 255, .055);
  --c1: #8b7bff;
  --c2: #6d5cff;
  --c3: #c3b8ff;
  --radius: 24px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--fg);
  font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
main { flex: 1; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, .gallery:focus-visible { outline: 2px solid var(--c3); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.03em; margin: 0 0 .5em; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--fg); color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* Hintergrund-Glow */
.glow {
  position: fixed; inset: -20vh -10vw auto; height: 100vh; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 45% at 72% 18%, color-mix(in srgb, var(--c2) 42%, transparent), transparent 70%),
    radial-gradient(35% 40% at 18% 4%, color-mix(in srgb, var(--c1) 28%, transparent), transparent 70%);
}

.glass {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%);
}

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 9, 15, .62); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
}
.nav__inner { max-width: var(--max); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 24px; }
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; letter-spacing: -.01em; }
.nav__logo {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c1), var(--c2)); font-weight: 800; color: #fff;
}
.nav__links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.nav__links a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav__links a:hover { color: var(--fg); }
.lang { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 600; }
.lang a { text-decoration: none; padding: 3px 9px; border-radius: 999px; color: var(--muted); }
.lang a[aria-current] { background: var(--fg); color: #000; }

/* Sprachhinweis */
.langhint {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 18px; font-size: 14px;
  background: rgba(20, 22, 30, .82); width: max-content; max-width: calc(100vw - 32px);
}
.langhint a { color: var(--c3); font-weight: 600; }
.langhint button { background: none; border: 0; color: var(--muted); font-size: 20px; cursor: pointer; line-height: 1; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px;
  background: var(--fg); color: #000; font-weight: 600; text-decoration: none; transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--c2) 70%, transparent); }
.store {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 22px 9px 16px; border-radius: 14px;
  background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .35); text-decoration: none; line-height: 1.1;
  transition: transform .2s, border-color .2s;
}
.store:hover { transform: translateY(-2px); border-color: #fff; }
.store svg { width: 28px; height: 28px; }
.store small { display: block; font-size: 11px; opacity: .85; }
.store strong { display: block; font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.soon, .pill {
  display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: color-mix(in srgb, var(--c1) 20%, transparent); color: var(--c3);
}

/* Hero */
.hero { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 14vh, 150px) 24px 40px; text-align: center; }
.hero--small { padding-bottom: 120px; }
.eyebrow { color: var(--c3); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 18px; }
.hero__title {
  font-size: clamp(2.6rem, 7.5vw, 5.75rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.02; margin: 0 auto .3em; max-width: 14ch;
  background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, .62)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero--main .hero__title { max-width: 16ch; }
.hero__sub { font-size: clamp(1.1rem, 2.2vw, 1.4rem); color: var(--muted); max-width: 40ch; margin: 0 auto 32px; }
.hero__icon { margin: 0 auto 28px; }
.hero--app .hero__icon { box-shadow: 0 24px 70px -10px color-mix(in srgb, var(--c2) 70%, transparent); }

/* Icons */
.icon { width: var(--s); height: var(--s); border-radius: 22.5%; object-fit: cover; flex: none; }
.icon--fallback {
  display: grid; place-items: center; font-weight: 700; color: #fff; font-size: calc(var(--s) * .46);
  background: linear-gradient(135deg, var(--c1), var(--c2));
}

/* iPhone-Rahmen */
.phones { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: clamp(8px, 3vw, 36px); margin-top: 72px; }
.phones::before {
  content: ""; position: absolute; inset: 10% -10% -10%; z-index: -1;
  background: radial-gradient(50% 50% at 50% 55%, color-mix(in srgb, var(--c2) 55%, transparent), transparent 70%);
}
.phone {
  margin: 0; width: clamp(150px, 22vw, 270px); aspect-ratio: 9 / 19.5; padding: clamp(5px, .7vw, 9px);
  border-radius: clamp(24px, 3.6vw, 44px); background: #15161b; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 40px 80px -20px rgba(0, 0, 0, .85);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: clamp(19px, 2.9vw, 35px); }
.phones--3 .phone:nth-child(2) { z-index: 1; }
.phones--3 .phone:nth-child(1) { transform: rotate(-6deg) translateY(28px) scale(.88); transform-origin: bottom right; }
.phones--3 .phone:nth-child(3) { transform: rotate(6deg) translateY(28px) scale(.88); transform-origin: bottom left; }
.phones--2 .phone:nth-child(1) { transform: rotate(-4deg); }
.phones--2 .phone:nth-child(2) { transform: rotate(4deg); }

/* Abschnitte */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 10vw, 112px) 24px; }
.section--wide { max-width: none; padding-left: 0; padding-right: 0; }
.section--wide .section__title { max-width: var(--max); margin-left: auto; margin-right: auto; padding: 0 24px; }
.section__title { font-size: clamp(1.9rem, 4.2vw, 3rem); margin-bottom: 32px; }
.lead { font-size: clamp(1.15rem, 2.2vw, 1.45rem); color: var(--muted); max-width: 46ch; }
.intro { text-align: center; padding-top: 24px; }
.intro .lead { margin: 0 auto; color: var(--fg); }

/* App-Karten */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.app-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; padding: 28px;
  text-decoration: none; transition: transform .3s, border-color .3s;
}
.app-card::after {
  content: ""; position: absolute; width: 260px; height: 260px; top: -120px; right: -100px; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c2) 45%, transparent), transparent);
  opacity: .55; transition: opacity .3s;
}
.app-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c1) 55%, transparent); }
.app-card:hover::after { opacity: 1; }
.app-card .icon { margin-bottom: 14px; box-shadow: 0 12px 30px -8px color-mix(in srgb, var(--c2) 70%, transparent); }
.app-card h3 { font-size: 1.5rem; margin: 0; }
.app-card p { margin: 0; color: var(--muted); }
.app-card .pill { position: absolute; top: 22px; right: 22px; font-size: 12px; padding: 4px 10px; }
.app-card__more { margin-top: auto; padding-top: 18px; font-size: 14px; color: var(--c3); }

/* Features (Bento) */
.bento { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); grid-auto-flow: dense; gap: 16px; }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .bento .feature:first-child { grid-column: span 2; }
  .bento .feature:nth-child(5n) { grid-column: span 2; }
}
.feature { padding: 28px; }
.feature__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; margin-bottom: 18px;
  background: color-mix(in srgb, var(--c1) 18%, transparent); color: var(--c1);
}
.feature h3 { font-size: 1.25rem; margin-bottom: .35em; }
.feature p { margin: 0; color: var(--muted); }

/* Galerie */
.gallery {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 8px max(24px, calc((100vw - var(--max)) / 2 + 24px)) 32px;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery .phone { flex: 0 0 auto; width: clamp(180px, 24vw, 250px); scroll-snap-align: center; }

/* CTA, Kontakt */
.cta { text-align: center; padding: clamp(40px, 7vw, 72px) 24px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.cta h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin: 0; }
.contact { text-align: center; }
.contact .lead { margin: 0 auto 28px; }

/* Rechtstexte, Support */
.legal { max-width: 880px; }
.prose { padding: clamp(24px, 5vw, 52px); }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose a { color: var(--c3); }
.prose p, .prose li { color: rgba(245, 245, 247, .82); }
.faq__title { font-size: 1.4rem; margin: 8px 0 16px; }
.faq { display: grid; gap: 12px; margin-bottom: 48px; }
.faq details { border-radius: 18px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--c3); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 24px 18px; color: var(--muted); }
.faq details > div p { margin: 0 0 .6em; }

/* Footer */
.footer { border-top: 1px solid var(--line); margin-top: 40px; }
.footer__inner { max-width: var(--max); margin: 0 auto; padding: 48px 24px 40px; display: grid; gap: 28px; }
.label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.footer__apps ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.footer__apps a { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 15px; }
.footer__apps a:hover { border-color: color-mix(in srgb, var(--c1) 60%, transparent); }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; }
.footer__links a { color: var(--muted); text-decoration: none; }
.footer__links a:hover { color: var(--fg); }
.footer__copy { margin: 0; font-size: 13px; color: rgba(245, 245, 247, .4); }
.footer__tm { margin: -20px 0 0; font-size: 12px; color: rgba(245, 245, 247, .32); max-width: 70ch; }

/* Einblend-Animation (nur mit JS) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Mobil */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .lang { margin-left: auto; }
  .phones { gap: 0; margin-top: 48px; }
  .phones--3 .phone { width: 38vw; }
  .phones--3 .phone:nth-child(1) { margin-right: -9vw; }
  .phones--3 .phone:nth-child(3) { margin-left: -9vw; }
  .phones--1 .phone, .phones--2 .phone { width: 46vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .app-card, .btn, .store, .faq summary::after { transition: none; }
}
