/* Tyempo – Website. Hell/dunkel nach Systemeinstellung, keine externen Ressourcen. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f7f7fb;
  --bg-alt: #eef0fa;
  --surface: #ffffff;
  --text: #0e1330;
  --muted: #555c78;
  --line: rgb(14 19 48 / 0.09);
  --accent: #4f46e5;
  --accent-soft: rgb(79 70 229 / 0.1);
  --teal: #14b8c8;
  --navy: #0b2a5b;
  --device: #0d1020;
  --shadow: 0 1px 2px rgb(14 19 48 / 0.06), 0 12px 32px -12px rgb(14 19 48 / 0.22);
  --shadow-lg: 0 30px 80px -30px rgb(30 27 120 / 0.45);
  --radius: 22px;
  --topbar-bg: rgb(247 247 251 / 0.72);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d17;
    --bg-alt: #10132a;
    --surface: #141831;
    --text: #eef0fa;
    --muted: #a3a9c4;
    --line: rgb(238 240 250 / 0.1);
    --accent: #8b84ff;
    --accent-soft: rgb(139 132 255 / 0.14);
    --teal: #4fd7e4;
    --device: #05060c;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 32px -12px rgb(0 0 0 / 0.7);
    --shadow-lg: 0 30px 80px -30px rgb(0 0 0 / 0.8);
    --topbar-bg: rgb(11 13 23 / 0.7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* ---------- Kopfleiste (bleibt oben) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--topbar-bg);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.topbar.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgb(0 0 0 / 0.5); }
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 750; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 9px; box-shadow: var(--shadow); }
.topnav { display: flex; gap: 22px; margin-left: 8px; }
.topnav a { color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.topnav a:hover { color: var(--text); text-decoration: none; }

/* ---------- Store-Knöpfe ---------- */
.stores { display: flex; align-items: center; gap: 10px; }
.stores-top { margin-left: auto; }
/* Apple-Badge: unverändert, mindestens 40 px hoch (Apple Marketing Guidelines). */
.badge { display: inline-flex; border-radius: 8px; }
.badge:hover { text-decoration: none; }
.badge img { height: 40px; width: auto; }
.badge-lg img { height: 52px; }

.soon {
  display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 12px 0 9px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--muted);
  font-size: 0.95rem; font-weight: 600; line-height: 1; white-space: nowrap;
  cursor: default; user-select: none;
}
.soon svg { width: 20px; height: 20px; }
.soon > span { display: flex; flex-direction: column; gap: 3px; color: var(--text); }
.soon small { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.soon-lg { height: 52px; padding: 0 16px 0 12px; font-size: 1.05rem; }
.soon-lg svg { width: 24px; height: 24px; }
.soon-invert { background: rgb(255 255 255 / 0.08); border-color: rgb(255 255 255 / 0.28); color: rgb(255 255 255 / 0.8); }
.soon-invert > span, .soon-invert small { color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.glow {
  position: absolute; inset: -20% -10% auto; height: 820px; pointer-events: none; z-index: -1;
  background:
    radial-gradient(42% 46% at 72% 32%, rgb(79 70 229 / 0.28), transparent 70%),
    radial-gradient(36% 40% at 88% 62%, rgb(20 184 200 / 0.22), transparent 70%),
    radial-gradient(30% 34% at 18% 12%, rgb(79 70 229 / 0.1), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: 48px; }
.eyebrow {
  display: inline-block; margin-bottom: 18px; padding: 6px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-weight: 650; font-size: 0.85rem;
}
.hero h1 { font-size: clamp(2.3rem, 1.3rem + 2.9vw, 3.5rem); font-weight: 800; letter-spacing: -0.035em; overflow-wrap: break-word; }
.hero h1 { background: linear-gradient(120deg, var(--text) 30%, var(--accent) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 20px; font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.stores-hero { margin-top: 32px; flex-wrap: wrap; }
.note { margin-top: 14px; font-size: 0.9rem; color: var(--muted); }

.hero-device { display: flex; justify-content: center; }
.device {
  width: min(330px, 78vw);
  padding: 11px; border-radius: 54px;
  background: var(--device);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgb(255 255 255 / 0.14);
}
.device img { border-radius: 44px; width: 100%; }

.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; list-style: none; padding: 0; margin-top: 56px; }
.trust li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 550; font-size: 0.97rem; }
.trust svg { width: 20px; height: 20px; color: var(--accent); stroke-width: 2.4; }

/* ---------- Abschnitte ---------- */
section { padding: 88px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 1.1rem; }

/* So einfach geht's */
.howto { padding-top: 24px; padding-bottom: 72px; }
.howto h2 { text-align: center; margin-bottom: 36px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.step { position: relative; padding: 28px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.step-n {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 50%;
  background: linear-gradient(140deg, var(--accent), var(--teal)); color: #fff; font-weight: 800; font-size: 1.1rem;
}
.step p { margin-top: 8px; color: var(--muted); }

/* Galerie */
.shots { background: var(--bg-alt); padding-bottom: 64px; }
.track {
  display: flex; gap: 28px; list-style: none; margin: 0;
  padding: 12px max(20px, calc((100% - 1120px) / 2)) 28px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 auto; scroll-snap-align: center; }
.slide figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.device-sm { width: 250px; padding: 9px; border-radius: 44px; }
.device-sm img { border-radius: 36px; }
.slide figcaption { font-weight: 650; font-size: 0.98rem; text-align: center; max-width: 240px; }
.carousel-controls { display: none; align-items: center; justify-content: center; gap: 18px; }
.js .carousel-controls { display: flex; }
.arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center;
  box-shadow: var(--shadow); transition: transform 0.15s;
}
.arrow:hover { transform: scale(1.06); }
.arrow svg { width: 20px; height: 20px; stroke-width: 2.2; }
.dots { display: flex; gap: 8px; }
.dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--line); transition: width 0.25s, background 0.25s;
}
.dots button[aria-current="true"] { width: 26px; background: var(--accent); }

/* Funktionen */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); }
.card-icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 14px;
  background: linear-gradient(140deg, var(--accent), var(--teal)); color: #fff;
}
.card-icon svg { width: 26px; height: 26px; }
.card p { margin-top: 10px; color: var(--muted); font-size: 0.98rem; }

/* Erklärtext */
.explain { padding-top: 24px; }
.explain h2 { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.explain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.explain article { border-top: 2px solid var(--accent); padding-top: 18px; }
.explain p { margin-top: 10px; color: var(--muted); }

/* Privatsphäre */
.privacy-panel {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center;
  padding: 56px; border-radius: 32px; color: #fff;
  background: radial-gradient(80% 120% at 0% 0%, #3b34c9 0%, transparent 60%), linear-gradient(135deg, #0b2a5b, #10164a 55%, #0d5b72);
  box-shadow: var(--shadow-lg);
}
.privacy-panel .lead { color: rgb(255 255 255 / 0.78); }
.privacy-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.privacy-points li {
  padding: 18px 20px; border-radius: 18px; background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.12); display: flex; flex-direction: column; gap: 4px;
}
.privacy-points span { color: rgb(255 255 255 / 0.72); font-size: 0.95rem; }

/* Gratis & Premium */
.plans h2 { text-align: center; margin-bottom: 40px; }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 920px; margin: 0 auto; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.plan-premium { border-color: rgb(79 70 229 / 0.45); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 55%); }
.plan-note { margin-top: 4px; color: var(--muted); font-size: 0.9rem; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.plan li { position: relative; padding-left: 28px; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* FAQ */
.faq-wrap { max-width: 820px; }
.faq h2 { text-align: center; margin-bottom: 36px; }
.faq-list { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 4px 22px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 30px 16px 0; font-weight: 650; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding-bottom: 18px; color: var(--muted); }

/* Abschluss */
.cta { padding-top: 24px; }
.cta-panel {
  text-align: center; padding: 64px 32px; border-radius: 32px; color: #fff;
  background: radial-gradient(70% 90% at 50% 0%, #5a52f0 0%, transparent 70%), linear-gradient(135deg, #10164a, #0b2a5b 60%, #0d5b72);
  display: flex; flex-direction: column; align-items: center; box-shadow: var(--shadow-lg);
}
.cta-panel img { border-radius: 20px; box-shadow: 0 12px 30px -10px rgb(0 0 0 / 0.6); }
.cta-panel h2 { margin-top: 24px; }
.cta-panel p { margin-top: 12px; color: rgb(255 255 255 / 0.78); font-size: 1.1rem; }
.cta-panel .stores { justify-content: center; }

/* Fuß */
.footer { padding: 40px 0 56px; border-top: 1px solid var(--line); margin-top: 32px; }
.footer-inner { display: grid; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.footer-brand img { border-radius: 7px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--muted); }
.footer-fine { font-size: 0.8rem; color: var(--muted); max-width: 70em; }

/* Einblenden beim Scrollen (nur mit JS und ohne reduzierte Bewegung) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Responsiv ---------- */
@media (max-width: 980px) {
  .topnav { display: none; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .explain-grid { grid-template-columns: 1fr; gap: 28px; }
  .privacy-panel { grid-template-columns: 1fr; padding: 40px 28px; }
}
@media (max-width: 860px) {
  .hero { padding-top: 32px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); text-align: center; gap: 36px; }
  .lead { margin-inline: auto; }
  .stores-hero { justify-content: center; }
  .hero-device .device { width: min(290px, 74vw); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero h1 { font-size: clamp(1.75rem, 0.9rem + 4.4vw, 2.3rem); hyphens: auto; -webkit-hyphens: auto; }
  section { padding: 64px 0; }
  .feature-grid, .plan-grid, .privacy-points, .steps { grid-template-columns: 1fr; }
  .topbar-inner { gap: 12px; height: 60px; }
  .brand span { display: none; }
  .soon { padding: 0 10px 0 8px; font-size: 0.85rem; }
  .soon small { font-size: 0.6rem; }
  .device-sm { width: 220px; }
  .card, .plan { padding: 24px; }
}
/* Schmale Handys: in der Kopfleiste nur der App-Store-Badge (Android steht im Hero). */
@media (max-width: 340px) {
  .stores-top .soon { display: none; }
}

/* Startseite (Sprachweiche) und 404 */
.mini { min-height: 100vh; display: grid; place-items: center; }
.mini-main { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 48px 0; }
.mini-main img { border-radius: 22px; box-shadow: var(--shadow); }
.mini-main p { color: var(--muted); }
.langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.lang { padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 600; }
.lang:hover { text-decoration: none; border-color: var(--accent); }
.mini-legal { display: flex; gap: 18px; margin-top: 28px; font-size: 0.85rem; }
.mini-legal a { color: var(--muted); }

/* ---------- Unterseiten (gleiche Bausteine, gleiche Farben) ---------- */
.subhero { position: relative; padding: 48px 0 24px; overflow: hidden; }
.subhero h1 { max-width: 20em; }
.subhero-inner.narrow { max-width: 760px; }
.subhero h1 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.1rem); font-weight: 800; letter-spacing: -0.03em; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 0.9rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.article-meta { margin-top: 14px; font-size: 0.9rem; color: var(--muted); }

.block { padding: 40px 0; }
.block-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 64px; align-items: center; }
.block-text { max-width: 640px; }
.block-text p { margin-top: 12px; color: var(--muted); }
.block-text h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li, .note-box li { position: relative; padding-left: 28px; }
.checks li::before, .note-box li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.plan-h { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.01em; }

.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guide-card { color: var(--text); display: flex; flex-direction: column; }
.guide-card:hover { text-decoration: none; }
.guide-h { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.01em; }
.guide-card p { flex: 1; }
.guide-more { margin-top: 16px; color: var(--accent); font-weight: 600; }

.prose { max-width: 760px; padding: 16px 0 24px; }
.prose section { margin-top: 40px; padding: 0; }
.prose h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); }
.prose p, .prose li { color: var(--muted); }
.prose p { margin-top: 12px; }
.prose ul { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.note-box { padding: 24px 26px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid rgb(79 70 229 / 0.25); }
.note-box h2 { font-size: 1.1rem; }
.note-box ul { list-style: none; padding: 0; margin-top: 12px; }
.note-box li { color: var(--text); }
.table-wrap { margin-top: 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.prose caption { text-align: left; padding: 14px 16px 0; font-size: 0.85rem; color: var(--muted); }
.prose th, .prose td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.prose th { font-weight: 650; }
.prose tbody tr:last-child td { border-bottom: 0; font-weight: 650; color: var(--text); }
.app-box { display: flex; gap: 18px; align-items: flex-start; margin-top: 44px; padding: 24px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.app-box img { border-radius: 14px; flex: none; }
.app-box h2 { font-size: 1.1rem; }
.app-box p { margin-top: 6px; }
.sources { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.92rem; }
.sources .disclaimer { margin: 0 0 14px; font-style: italic; }
.sources ul { padding-left: 20px; }

@media (max-width: 860px) {
  .block-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .block-shot { display: flex; justify-content: center; }
  .guide-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .prose th, .prose td { white-space: normal; padding: 10px 12px; }
}
@media (max-width: 360px) {
  .prose th, .prose td { padding: 8px 8px; font-size: 0.86rem; }
}
