/* madaDo – Webseite. Farben wie in der App. */
:root {
  --accent: #5c59f2;
  --accent-2: #7b61ff;
  --teal: #12b5a3;
  --amber: #faa01a;
  --pink: #ff3b6b;
  --note: #f2bf1a;
  --bg: #f7f7fb;
  --surface: #ffffff;
  --text: #15151f;
  --muted: #5d5f72;
  --border: rgba(20, 20, 40, 0.08);
  --shadow: 0 20px 60px rgba(60, 50, 160, 0.12);
  --radius: 22px;
  --max: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d14;
    --surface: #17171f;
    --text: #f2f2f7;
    --muted: #a3a4b5;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Kopf */
.nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--text); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span b { color: var(--accent); }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.lang { font-size: 14px; font-weight: 600; padding: 6px 12px; border: 1px solid var(--border); border-radius: 99px; color: var(--text); }
@media (max-width: 760px) { .nav-links { display: none; } .lang { margin-left: auto; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 84px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 820px; z-index: -1;
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(92, 89, 242, 0.28), transparent 70%),
    radial-gradient(35% 45% at 80% 20%, rgba(18, 181, 163, 0.22), transparent 70%),
    radial-gradient(30% 40% at 60% 70%, rgba(250, 160, 26, 0.18), transparent 70%);
  filter: blur(10px);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); padding: 6px 14px; border-radius: 99px; }
h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.04; letter-spacing: -0.035em; margin: 18px 0 18px; font-weight: 800; }
h1 .grad { background: linear-gradient(120deg, var(--accent), var(--teal) 60%, var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 20px; color: var(--muted); max-width: 560px; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 14px; font-weight: 700; font-size: 16px; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); background: var(--surface); }
.btn svg { width: 20px; height: 20px; }
.platforms { margin-top: 22px; font-size: 14px; color: var(--muted); }

/* Geräte */
.devices { position: relative; height: 560px; }
.device { position: absolute; border-radius: 36px; overflow: hidden; background: #111; box-shadow: var(--shadow); border: 8px solid #111; }
.device img { width: 100%; height: 100%; object-fit: cover; }
.device.phone { width: 250px; height: 540px; right: 6%; top: 10px; z-index: 2; border-radius: 42px; }
.device.tablet { width: 380px; height: 507px; left: 0; top: 30px; border-radius: 26px; border-width: 10px; }
@media (max-width: 900px) { .devices { height: 560px; } .device.tablet { left: 4%; } }
@media (max-width: 520px) { .device.tablet { display: none; } .device.phone { left: 50%; transform: translateX(-50%); right: auto; } }

/* Abschnitte */
section { padding: 90px 0; }
.section-head { max-width: 700px; margin: 0 auto 48px; text-align: center; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.03em; margin: 12px 0 14px; font-weight: 800; }
.section-head p { font-size: 18px; color: var(--muted); margin: 0; }

/* Funktionen */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: 0 2px 0 rgba(0,0,0,0.02); }
.card h3 { margin: 14px 0 6px; font-size: 19px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 22px; }
.i-accent { background: linear-gradient(135deg, #8a86ff, var(--accent)); }
.i-teal { background: linear-gradient(135deg, #3fd6c4, var(--teal)); }
.i-amber { background: linear-gradient(135deg, #ffc35a, var(--amber)); }
.i-pink { background: linear-gradient(135deg, #ff7a98, var(--pink)); }
.i-note { background: linear-gradient(135deg, #ffd95a, var(--note)); }
.i-gray { background: linear-gradient(135deg, #9a9aac, #6c6c80); }

/* Workflow */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: step; }
@media (max-width: 960px) { .flow { grid-template-columns: 1fr; } }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 20px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; margin-bottom: 12px; }
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }
.flow-note { text-align: center; margin-top: 26px; color: var(--muted); }

/* Showcase */
.show { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 90px; }
.show:last-child { margin-bottom: 0; }
.show.rev .show-text { order: 2; }
@media (max-width: 900px) { .show { grid-template-columns: 1fr; } .show.rev .show-text { order: 0; } }
.show-text h3 { font-size: 30px; letter-spacing: -0.02em; margin: 10px 0 12px; line-height: 1.15; }
.show-text p { color: var(--muted); font-size: 17px; }
.show-text ul { padding: 0; list-style: none; margin: 18px 0 0; }
.show-text li { padding-left: 30px; position: relative; margin: 10px 0; }
.show-text li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.tag { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.shots { display: flex; gap: 16px; justify-content: center; align-items: flex-end; }
.shot { border-radius: 30px; overflow: hidden; border: 7px solid #111; background: #111; box-shadow: var(--shadow); }
.shot.phone { width: 240px; border-radius: 38px; }
.shot.tablet { width: 100%; max-width: 440px; border-radius: 24px; border-width: 9px; }
.shot.mac { width: 100%; max-width: 620px; border-radius: 12px; border-width: 0; }
.shot.small { width: 200px; }

/* Plattformen */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .tiles { grid-template-columns: 1fr; } }
.tile { text-align: center; }
.tile .shot { margin: 0 auto 18px; }
.tile .shot.tablet { max-width: 300px; }
.tile .shot.phone.small { width: 210px; }
.tile .muted, .muted { color: var(--muted); }

/* Datenschutz-Banner */
.privacy-band { background: linear-gradient(135deg, var(--accent), #3b39b8); color: #fff; border-radius: 32px; padding: 54px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; }
.privacy-band h2 { color: #fff; margin-top: 0; }
.privacy-band p { color: rgba(255,255,255,0.85); font-size: 17px; }
.privacy-band ul { margin: 0; padding: 0; list-style: none; }
.privacy-band li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.18); font-weight: 600; }
.privacy-band li:last-child { border: 0; }
@media (max-width: 820px) { .privacy-band { grid-template-columns: 1fr; padding: 34px 26px; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px 22px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--accent); font-weight: 800; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 12px 0 0; }

/* Fuß */
footer { border-top: 1px solid var(--border); padding: 40px 0 60px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
footer .links { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
footer .links a { color: var(--muted); }
footer .made { display: flex; align-items: center; gap: 10px; }
footer .made img { height: 22px; width: auto; background: #111; padding: 4px 8px; border-radius: 6px; }

/* Rechtstexte */
.doc { max-width: 820px; margin: 0 auto; padding: 60px 20px 90px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); }
.doc h2 { font-size: 24px; margin-top: 40px; letter-spacing: -0.01em; }
.doc h3 { font-size: 18px; margin-top: 26px; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--text); }
.doc .box { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px 24px; }
.todo { background: #fff3c4; color: #6b4e00; padding: 1px 6px; border-radius: 6px; font-weight: 600; }
.updated { font-size: 14px; }
