/* Tilo – Landingpage
   Farben aus Shared/Brand.swift und Design/Mascot. */

:root {
  --bg: #FAF7F2;
  --bg-soft: #F3EDE4;
  --surface: #FFFFFF;
  --ink: #2B1D14;
  --ink-soft: #6E5E52;
  --line: #E7DFD4;
  --orange: #EE8E3A;
  --orange-deep: #C96F22;
  --orange-tint: #FCE6D1;
  --green: #5FB760;
  --green-deep: #3E8E46;
  --night: #1F2340;
  --phone: #1A1310;
  --shadow: 0 1px 2px rgba(43, 29, 20, .05), 0 12px 40px -12px rgba(43, 29, 20, .18);
  --radius: 28px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17110D;
    --bg-soft: #211914;
    --surface: #261D17;
    --ink: #F7EFE6;
    --ink-soft: #B9A99B;
    --line: #3A2E25;
    --orange-tint: #3A2412;
    --phone: #0C0807;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 48px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17110D;
  --bg-soft: #211914;
  --surface: #261D17;
  --ink: #F7EFE6;
  --ink-soft: #B9A99B;
  --line: #3A2E25;
  --orange-tint: #3A2412;
  --phone: #0C0807;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 48px -16px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
img[src*="assets/tilo-pixel/"] { image-rendering: pixelated; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: "Bricolage Grotesque", "Inter", sans-serif;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(48px, 8vw, 92px); font-weight: 800; }
h2 { font-size: clamp(34px, 5vw, 56px); font-weight: 750; }
h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.015em; }

p { margin: 0; text-wrap: pretty; }

.pixel { font-family: "Silkscreen", monospace; letter-spacing: .02em; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 32px); }

.accent { color: var(--orange); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 0 var(--orange-deep);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--orange-deep); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--orange-deep); }
.btn-small { padding: 10px 18px; font-size: 15px; box-shadow: 0 3px 0 var(--orange-deep); }
.btn-light { background: #fff; color: #2B1D14; box-shadow: 0 4px 0 rgba(0, 0, 0, .18); }
.btn-light:hover { box-shadow: 0 6px 0 rgba(0, 0, 0, .18); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 16px; height: 72px; }
.brand { display: flex; margin-right: auto; align-items: center; gap: 10px; font: 800 24px "Bricolage Grotesque", sans-serif; letter-spacing: -0.03em; }

/* Sprachwahl */
.lang { display: flex; gap: 6px; margin-right: -8px; }
.lang a { display: grid; place-items: center; padding: 6px; border-radius: 8px; opacity: .45; transition: opacity .15s ease, background .15s ease; }
.lang a:hover { opacity: 1; background: var(--bg-soft); }
.lang a[aria-current] { opacity: 1; }
.lang svg { display: block; border-radius: 3px; box-shadow: 0 0 0 1px var(--line); }

/* Hinweis englische Version */
.lang-note {
  display: flex; align-items: flex-start; gap: 10px; max-width: 34em;
  margin-bottom: 24px; padding: 12px 16px; border-radius: 16px;
  background: var(--orange-tint); color: var(--ink); font-size: 15px; line-height: 1.5;
}
.lang-note strong { color: var(--orange-deep); }
.lang-note img { flex: none; width: 27px; margin-top: -1px; }

/* Hero */
.hero { padding: 56px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; }
.lead { margin-top: 24px; font-size: 19px; color: var(--ink-soft); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 36px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--ink-soft); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 10px; height: 10px; background: var(--green); box-shadow: 2px 2px 0 var(--green-deep); }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 600px; }
.blob {
  position: absolute; inset: 6% 2%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--orange) 45%, transparent), transparent);
  filter: blur(30px); opacity: .7;
}
.hero-tilo {
  position: absolute; left: -10%; bottom: 0; width: 240px;
  filter: drop-shadow(0 12px 20px rgba(43, 29, 20, .15));
  animation: bob 3.2s ease-in-out infinite;
}
.bubble {
  position: absolute; left: 2%; bottom: 200px;
  padding: 10px 14px; border-radius: 14px 14px 14px 4px;
  background: var(--surface); color: var(--ink); font-size: 13px;
  box-shadow: var(--shadow);
  animation: bob 3.2s ease-in-out infinite reverse;
}

/* Phone frame + screenshot slot */
.phone {
  position: relative; margin: 0;
  width: 280px; aspect-ratio: 9 / 19.5;
  padding: 10px; border-radius: 48px;
  background: var(--phone);
  box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(255, 255, 255, .08);
  flex: none;
}
.phone::before { /* Dynamic Island */
  content: ""; position: absolute; z-index: 2; top: 20px; left: 50%; translate: -50% 0;
  width: 30%; height: 26px; border-radius: 99px; background: #000;
}
.phone-hero { width: 300px; rotate: 3deg; }
.screen {
  position: relative; overflow: hidden;
  width: 100%; height: 100%; border-radius: 38px;
  display: grid; place-items: center; text-align: center;
  background:
    repeating-linear-gradient(45deg, transparent 0 12px, color-mix(in srgb, var(--orange) 7%, transparent) 12px 24px),
    var(--bg-soft);
  outline: 2px dashed color-mix(in srgb, var(--orange) 45%, transparent);
  outline-offset: -14px;
}
.screen-label { font: 500 14px/1.4 "Silkscreen", monospace; color: var(--ink-soft); }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.screen.has-shot { outline: none; background: #000; }
.screen.has-shot .screen-label { display: none; }

/* Sections */
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.kicker { color: var(--orange); font-size: 14px; margin-bottom: 14px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.step {
  position: relative; padding: 28px 28px 32px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.step img { width: 100%; max-width: 220px; margin: 0 auto 12px; }
.step-num { position: absolute; top: 22px; right: 24px; font: 700 15px "Silkscreen", monospace; color: var(--orange); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 4px 24px; }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 26px/1 "Inter", sans-serif; color: var(--orange); transition: rotate .2s ease; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding-bottom: 20px; color: var(--ink-soft); }

/* CTA */
.cta {
  position: relative; overflow: hidden; text-align: center;
  padding: 72px 32px 80px; border-radius: 40px;
  background: var(--orange); color: #fff;
  background-image:
    linear-gradient(rgba(255, 255, 255, .08) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 2px, transparent 2px);
  background-size: 32px 32px;
}
.cta img {
  width: 200px; margin: 0 auto 28px; padding: 12px 16px 8px;
  background: var(--bg); border-radius: 32px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, .12);
  rotate: -3deg;
}
.cta p { margin: 16px auto 32px; max-width: 30em; font-size: 19px; opacity: .92; }

/* Footer */
.footer { padding: 40px 0 56px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 14px; color: var(--ink-soft); }
.footer .brand { font-size: 20px; color: var(--ink); }
.footer-links { display: flex; gap: 20px; margin-left: auto; }
.footer-links a:hover { color: var(--ink); }

/* Motion */
.js .reveal { opacity: 0; translate: 0 24px; transition: opacity .7s ease, translate .7s ease; }
.js .reveal.visible { opacity: 1; translate: 0 0; }

@keyframes bob { 50% { transform: translateY(-10px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; translate: none; }
  html { scroll-behavior: auto; }
}

/* Kostenlos-Vergleich */
.section-lead { margin-top: 20px; font-size: 19px; color: var(--ink-soft); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 880px; margin: 0 auto; }
.compare-card {
  position: relative; padding: 32px 32px 36px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.compare-tilo { border: 2px solid var(--orange); box-shadow: var(--shadow); }
.compare-card img { position: absolute; top: 20px; right: 24px; width: 88px; }
.compare-price { margin: 6px 0 22px; font: 800 40px/1 "Bricolage Grotesque", sans-serif; letter-spacing: -0.03em; color: var(--ink-soft); }
.compare-tilo .compare-price { color: var(--orange); }
.compare-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.compare-list li { display: flex; align-items: flex-start; gap: 12px; }
.compare-list li::before {
  flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px;
  border-radius: 6px; font: 700 14px/1 "Inter", sans-serif; color: #fff;
}
.compare-list .yes::before { content: "✓"; background: var(--green); }
.compare-list .no { color: var(--ink-soft); }
.compare-list .no::before { content: "✕"; background: color-mix(in srgb, var(--ink-soft) 55%, transparent); }
.compare-actions { display: flex; justify-content: center; margin-top: 40px; }
.compare-note { margin-top: 28px; text-align: center; font-size: 13px; color: var(--ink-soft); }

/* Responsive */
@media (max-width: 820px) {
  .hero { padding-top: 32px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 560px; }
  .hero-tilo { left: 0; width: 180px; }
  .bubble { left: 4%; bottom: 150px; }
  .steps { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .footer-links { margin-left: 0; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .phone-hero { width: 250px; }
  .hero-visual { min-height: 520px; }
  .hero-tilo { width: 150px; left: -4%; }
  .bubble { bottom: 120px; left: 0; }
  .cta { padding: 56px 20px 64px; }
}

/* Impressum & Datenschutz */
.legal { padding: 64px 0 96px; }
.legal h1 { font: 800 clamp(36px, 6vw, 52px)/1.05 "Bricolage Grotesque", sans-serif; letter-spacing: -0.03em; margin-bottom: 12px; }
.legal h2 { font: 700 22px/1.2 "Bricolage Grotesque", sans-serif; margin: 40px 0 12px; }
.legal p, .legal li { line-height: 1.65; color: var(--ink-soft); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; display: grid; gap: 10px; margin: 12px 0; }
.legal strong { color: var(--ink); }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal-meta { font-size: 14px; }
