/* Graytone – Webseite
   Keine externen Schriften oder Dienste: alles kommt von graytone.de selbst. */

:root {
  --bg: #0d0e10;
  --bg-2: #15161a;
  --card: #1b1c21;
  --line: rgba(255, 255, 255, 0.08);
  --text: #eceae6;
  --muted: #a3a19c;
  --tint: #f0d9b5;           /* wird von der Farbton-Demo live geändert */
  --accent: #f0d9b5;
  --pro: #b9c3f0;
  --radius: 22px;
  --max: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 750; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 720; }
h3 { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 650; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.center { text-align: center; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 640px; }
.center .lead { margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 650; font-size: 1rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-primary { background: var(--text); color: #111; box-shadow: 0 10px 30px -10px rgba(240, 217, 181, .45); }
.btn-primary:hover { background: #fff; }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: rgba(255,255,255,.25); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(13, 14, 16, .72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; letter-spacing: -0.01em; font-size: 1.1rem; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: .95rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links .btn { padding: 9px 18px; font-size: .92rem; color: #111; }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; will-change: transform; }
.blob.b1 { width: 620px; height: 620px; background: #3d6fb8; top: -180px; left: -160px; animation: drift1 22s ease-in-out infinite alternate; }
.blob.b2 { width: 560px; height: 560px; background: #a88d68; bottom: -220px; right: -120px; animation: drift2 26s ease-in-out infinite alternate; }
.blob.b3 { width: 380px; height: 380px; background: #6b7f99; top: 35%; left: 40%; opacity: .3; animation: drift3 30s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(140px, 120px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-160px, -90px) scale(1.1); } }
@keyframes drift3 { to { transform: translate(-120px, 80px) scale(.85); } }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,14,16,.2) 0%, rgba(13,14,16,.65) 70%, var(--bg) 100%); }

.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.hero h1 .soft { color: var(--accent); display: block; }
.hero .lead { margin: 22px 0 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 34px; color: var(--muted); font-size: .92rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--accent); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-cta, .hero-meta { justify-content: center; }
}

/* ---------- Handy-Rahmen ---------- */
.phone {
  position: relative; width: min(330px, 78vw); aspect-ratio: 1 / 2; margin-inline: auto;
  border-radius: 46px; padding: 11px; background: linear-gradient(145deg, #2a2b30, #111215);
  box-shadow: 0 0 0 1px rgba(255,255,255,.09) inset, 0 50px 100px -30px rgba(0,0,0,.8), 0 30px 60px -40px rgba(240,217,181,.25);
}
.phone::before { /* Kamera-Loch */
  content: ""; position: absolute; top: 22px; left: 50%; width: 12px; height: 12px; margin-left: -6px;
  border-radius: 50%; background: #050506; z-index: 3; box-shadow: 0 0 0 2px rgba(255,255,255,.04);
}
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #000; }
.phone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .phone { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px) rotate(.4deg); } }

/* Diashow im Hero */
.slides img { opacity: 0; transition: opacity 1.2s ease; }
.slides img.on { opacity: 1; }
.slide-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.slide-dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: rgba(255,255,255,.22); cursor: pointer; transition: width .3s, background .3s; }
.slide-dots button.on { width: 26px; background: var(--accent); }
.slide-caption { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 10px; min-height: 1.6em; }

/* ---------- Demo: Bunt -> Ruhig ---------- */
.demo { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.demo-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 70px; align-items: center; }
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; gap: 40px; } .demo-text { text-align: center; } .demo-text .lead { margin-inline: auto; } }

.mock .screen { background: radial-gradient(120% 70% at 30% 0%, #5b87c9 0%, #6e8fb9 40%, #8c7c63 75%, #3b352c 100%); }
.mock .wall { position: absolute; inset: 0; transition: filter 1s ease; }
.demo[data-mode="bunt"] .mock .wall { filter: saturate(1.4); }
.mock-clock { position: absolute; top: 12%; width: 100%; text-align: center; color: #fff; font-weight: 250; font-size: 3.4rem; letter-spacing: -0.02em; text-shadow: 0 2px 20px rgba(0,0,0,.2); }
.mock-clock small { display: block; font-size: .8rem; font-weight: 500; letter-spacing: 0; opacity: .8; margin-top: -4px; }
.mock-grid, .mock-dock { position: absolute; left: 7%; right: 7%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 7% 6%; }
.mock-grid { top: 40%; }
.mock-dock { bottom: 4%; padding: 3.2% 3.5%; border-radius: 22px; background: rgba(255,255,255,.14); left: 4%; right: 4%; gap: 6%; }

.tile {
  --c1: #888; --c2: #555;
  position: relative; aspect-ratio: 1; border-radius: 26%;
  display: grid; place-items: center;
  transition: background .7s ease, box-shadow .7s ease, transform .5s cubic-bezier(.2,.8,.2,1);
  transition-delay: calc(var(--i, 0) * 45ms);
}
.tile svg { width: 56%; height: 56%; transition: color .7s ease, transform .5s ease; transition-delay: calc(var(--i, 0) * 45ms); }
.demo[data-mode="bunt"] .tile { background: linear-gradient(150deg, var(--c1), var(--c2)); color: #fff; box-shadow: 0 6px 16px -6px var(--c2); }
.demo[data-mode="bunt"] .tile:nth-child(3n) { transform: rotate(-3deg) scale(1.04); }
.demo[data-mode="bunt"] .tile:nth-child(4n+1) { transform: rotate(2deg); }
.demo[data-mode="ruhig"] .tile {
  background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(40,40,44,.42) 55%, rgba(20,20,24,.55));
  color: var(--tint);
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 8px 18px -8px rgba(0,0,0,.6);
}
.badge { position: absolute; top: -9%; right: -9%; min-width: 34%; height: 34%; border-radius: 99px; font-size: .62rem; font-weight: 700; display: grid; place-items: center; color: #fff; transition: background .7s; padding: 0 4px; }
.demo[data-mode="bunt"] .badge { background: #ff3b30; }
.demo[data-mode="ruhig"] .badge { background: #4f7cac; }

.mode-switch { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); margin: 8px 0 28px; }
.mode-switch button { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; padding: 10px 22px; border-radius: 999px; cursor: pointer; transition: background .3s, color .3s; }
.mode-switch button[aria-pressed="true"] { background: var(--text); color: #111; }

.tint-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px; max-width: 460px; transition: opacity .4s; }
@media (max-width: 900px) { .tint-box { margin-inline: auto; } }
.demo[data-mode="bunt"] .tint-box { opacity: .45; pointer-events: none; }
.tint-box h3 { font-size: 1rem; margin-bottom: 14px; display: flex; justify-content: space-between; }
.tint-box h3 code { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; color: var(--muted); font-weight: 500; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.swatch { width: 42px; height: 42px; border-radius: 13px; border: 2px solid transparent; cursor: pointer; background: #222; display: grid; place-items: center; transition: transform .2s, border-color .2s; padding: 0; }
.swatch span { width: 18px; height: 18px; border-radius: 6px; background: var(--s); }
.swatch:hover { transform: translateY(-2px); }
.swatch[aria-pressed="true"] { border-color: var(--s); }
.hue { width: 100%; -webkit-appearance: none; appearance: none; height: 14px; border-radius: 99px; outline: none; cursor: pointer;
  background: linear-gradient(90deg, #f2f2f2 0 6%, hsl(0,70%,80%), hsl(60,70%,80%), hsl(120,70%,80%), hsl(180,70%,80%), hsl(240,70%,80%), hsl(300,70%,80%), hsl(360,70%,80%)); }
.hue::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--tint); border: 3px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,.5); }
.hue::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--tint); border: 3px solid #fff; }
.tint-note { font-size: .82rem; color: var(--muted); margin: 12px 0 0; }

/* ---------- Funktionen ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  position: relative; overflow: hidden; transition: transform .35s ease, border-color .35s ease;
}
.feature::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(240,217,181,.09), transparent 45%); opacity: 0; transition: opacity .3s; }
.feature:hover { transform: translateY(-4px); border-color: rgba(240,217,181,.25); }
.feature:hover::before { opacity: 1; }
.f-icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.03)); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset; color: var(--accent); }
.f-icon svg { width: 26px; height: 26px; }
.feature p { color: var(--muted); margin: 0; font-size: .98rem; }
.tag-pro { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .08em; color: #1a1d2e; background: var(--pro); border-radius: 6px; padding: 2px 7px; margin-left: 8px; vertical-align: 3px; }

/* ---------- Showcase (Bild + Text abwechselnd) ---------- */
.show { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding: 60px 0; }
.show.flip .show-media { order: 2; }
.show .phone { width: min(300px, 74vw); }
.show-text ul { list-style: none; padding: 0; margin: 22px 0 0; }
.show-text li { padding: 9px 0 9px 32px; position: relative; color: var(--muted); border-top: 1px solid var(--line); }
.show-text li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 12px; height: 12px; border-radius: 4px; background: var(--accent); opacity: .85; }
@media (max-width: 900px) {
  .show { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .show.flip .show-media { order: 0; }
  .show-text ul { text-align: left; max-width: 440px; margin-inline: auto; }
}

/* ---------- Galerie ---------- */
.gallery { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 30px max(20px, calc((100vw - var(--max)) / 2)) 40px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { flex: none; margin: 0; scroll-snap-align: center; width: 230px; }
.gallery .phone { width: 230px; border-radius: 36px; padding: 8px; transition: transform .4s ease; }
.gallery .phone::before { top: 16px; width: 9px; height: 9px; margin-left: -4.5px; }
.gallery .phone .screen { border-radius: 29px; }
.gallery figure:hover .phone { transform: translateY(-8px); }
.gallery figcaption { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 16px; }
.gallery-nav { display: flex; justify-content: center; gap: 12px; }
.gallery-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; display: grid; place-items: center; transition: border-color .2s; }
.gallery-nav button:hover { border-color: rgba(255,255,255,.3); }
.gallery-nav svg { width: 20px; height: 20px; }

/* ---------- Privat ---------- */
.privacy-band { background: var(--bg-2); border-block: 1px solid var(--line); }
.privacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 50px; }
@media (max-width: 760px) { .privacy-grid { grid-template-columns: 1fr; } }
.privacy-grid div { text-align: center; }
.privacy-grid .big { font-size: 2.6rem; font-weight: 750; letter-spacing: -0.03em; color: var(--accent); line-height: 1; margin-bottom: 10px; }
.privacy-grid p { color: var(--muted); margin: 0; }

/* ---------- Preise ---------- */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 860px; margin: 56px auto 0; }
@media (max-width: 760px) { .pricing { grid-template-columns: 1fr; } }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 34px; position: relative; }
.plan.pro { background: linear-gradient(180deg, #23253a 0%, var(--card) 60%); border-color: rgba(185,195,240,.35); }
.plan .price { font-size: 2.8rem; font-weight: 750; letter-spacing: -0.03em; margin: 8px 0 4px; }
.plan .price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 0; }
.plan li { display: flex; gap: 12px; padding: 7px 0; color: var(--muted); }
.plan li svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--accent); }
.plan.pro li svg { color: var(--pro); }
.plan .ribbon { position: absolute; top: 22px; right: 22px; font-size: .75rem; font-weight: 700; background: var(--pro); color: #1a1d2e; padding: 4px 11px; border-radius: 99px; }
.trial-note { text-align: center; color: var(--muted); margin-top: 30px; font-size: .95rem; }

/* ---------- Installieren ---------- */
.install { background: radial-gradient(80% 60% at 50% 0%, rgba(61,111,184,.18), transparent 70%), var(--bg); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; }
.step .num { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-weight: 750; background: var(--text); color: #111; margin-bottom: 18px; }
.step p { color: var(--muted); flex: 1; }
.step .btn { align-self: flex-start; padding: 11px 20px; font-size: .95rem; }
.hint { margin: 30px auto 0; max-width: 720px; border: 1px dashed rgba(240,217,181,.3); border-radius: 18px; padding: 18px 22px; color: var(--muted); font-size: .95rem; text-align: center; }
.hint strong { color: var(--text); }
.desktop-only { display: none; }
@media (hover: hover) and (min-width: 900px) { .desktop-only { display: block; } }

/* Umschalten zwischen Testphase und Play Store: <body data-phase="test"> oder "live" */
[data-phase="test"] .when-live, [data-phase="live"] .when-test { display: none !important; }
.play-badge { display: inline-flex; align-items: center; gap: 14px; background: #000; border: 1px solid #444; color: #fff; padding: 12px 24px 12px 18px; border-radius: 14px; text-decoration: none; transition: transform .2s; margin-top: 40px; }
.play-badge:hover { transform: translateY(-2px); }
.play-badge svg { width: 30px; height: 30px; }
.play-badge small { display: block; font-size: .72rem; opacity: .8; line-height: 1.2; }
.play-badge b { font-size: 1.25rem; font-weight: 600; line-height: 1.2; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 50px auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; font-weight: 620; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-75%) rotate(45deg); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq .answer { color: var(--muted); padding: 0 0 22px; }
.faq .answer p:last-child { margin: 0; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 50px 0 60px; color: var(--muted); font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }
.disclaimer { width: 100%; font-size: .8rem; opacity: .7; margin: 10px 0 0; }

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
.legal { padding: 140px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal p, .legal li { color: var(--muted); }
.legal a { color: var(--accent); }
.placeholder { background: rgba(255,200,0,.15); color: #ffd36b; padding: 0 4px; border-radius: 4px; }

/* ---------- Einblend-Animationen ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.reveal.from-left { transform: translateX(-50px); }
.reveal.from-right { transform: translateX(50px); }
.reveal.zoom { transform: scale(.92); }
.reveal.in { opacity: 1; transform: none; }
main, footer { overflow-x: clip; }
@media (max-width: 900px) { .reveal.from-left, .reveal.from-right { transform: translateY(34px); } }

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