/* ============================================================
   Dosena – Website Design System
   Aesthetik: ruhige klinische Eleganz · warmes Papier · Teal
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --ink: #11302C;
  --ink-soft: #4B635E;
  --teal: #0D9488;
  --teal-700: #0F766E;
  --teal-deep: #0B5E57;
  --teal-900: #07403B;
  --mint: #E6F4F1;
  --mint-2: #EFF7F4;
  --sand: #F3ECE1;
  --paper: #FBFAF7;
  --surface: #FFFFFF;
  --line: #E7E3DA;
  --amber: #E2A03F;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", -apple-system, sans-serif;

  --radius-s: 12px;
  --radius: 20px;
  --radius-l: 28px;
  --shadow-s: 0 2px 10px rgba(17,48,44,.06);
  --shadow: 0 18px 50px -20px rgba(11,94,87,.28);
  --shadow-lg: 0 40px 90px -30px rgba(11,94,87,.40);
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Grain-Overlay für Atmosphäre */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Typografie ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -.01em; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--teal-700); display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--teal); display: inline-block; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font-family: var(--font-body); font-weight: 600; font-size: 16px;
  padding: 15px 26px; border-radius: 100px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .2s; white-space: nowrap;
}
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 14px 30px -12px rgba(13,148,136,.7); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -14px rgba(13,148,136,.8); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-700); transform: translateY(-3px); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, box-shadow .3s, padding .3s;
  padding: 18px 0;
}
.nav.scrolled {
  background: rgba(251,250,247,.78); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 1px 0 var(--line); padding: 12px 0;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.brand .mark {
  width: 38px; height: 38px; border-radius: 11px; background: var(--teal);
  display: grid; place-items: center; box-shadow: var(--shadow-s); transform: rotate(-6deg);
}
.brand .mark svg { width: 22px; height: 22px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.link { font-weight: 500; color: var(--ink-soft); font-size: 15px; transition: color .2s; position: relative; }
.nav-links a.link:hover { color: var(--ink); }
.nav-links a.link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--teal); transition: width .25s;
}
.nav-links a.link:hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 170px 0 90px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(50% 45% at 78% 18%, rgba(13,148,136,.16), transparent 70%),
    radial-gradient(45% 40% at 12% 30%, rgba(226,160,63,.10), transparent 70%),
    radial-gradient(60% 50% at 50% 100%, rgba(13,148,136,.10), transparent 70%);
}
.hero::after { /* feines Punktraster */
  content: ""; position: absolute; inset: 0; z-index: -2; opacity: .5;
  background-image: radial-gradient(rgba(17,48,44,.06) 1px, transparent 1px);
  background-size: 28px 28px; mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 70px); margin: 22px 0 20px; }
.hero h1 .accent { font-style: italic; color: var(--teal-700); position: relative; }
.hero h1 .accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 12px; z-index: -1;
  background: linear-gradient(90deg, rgba(13,148,136,.22), rgba(226,160,63,.22));
  border-radius: 8px;
}
.hero p.lead { max-width: 500px; }
.hero-cta { display: flex; gap: 14px; margin: 32px 0 22px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; color: var(--ink-soft); font-size: 14px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 16px; height: 16px; color: var(--teal); }

/* ---------- Phone Mockup ---------- */
.phone-stage { position: relative; display: grid; place-items: center; }
.phone {
  position: relative; width: 290px; height: 600px; border-radius: 44px;
  background: #0c1f1c; padding: 11px; box-shadow: var(--shadow-lg);
  animation: floaty 7s ease-in-out infinite;
}
.phone::before { /* Notch */
  content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 26px; background: #0c1f1c; border-radius: 0 0 16px 16px; z-index: 3;
}
.screen {
  width: 100%; height: 100%; border-radius: 34px; background: var(--paper);
  overflow: hidden; position: relative; padding: 40px 16px 16px;
}
.screen .s-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.screen .s-greet { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.screen .s-date { font-size: 11px; color: var(--ink-soft); }
.screen .s-ava { width: 34px; height: 34px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; color: var(--teal-700); }
.screen .s-ava svg { width: 18px; height: 18px; }
.s-hero {
  background: linear-gradient(135deg, var(--teal), var(--teal-deep)); color: #fff;
  border-radius: 18px; padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.s-hero .k { font-size: 10px; letter-spacing: .15em; opacity: .85; }
.s-hero .v { font-family: var(--font-display); font-size: 18px; margin: 4px 0 12px; }
.s-bar { height: 8px; border-radius: 6px; background: rgba(255,255,255,.28); overflow: hidden; }
.s-bar i { display: block; height: 100%; width: 0; background: #fff; border-radius: 6px; animation: fill 2.4s 1s forwards cubic-bezier(.2,.8,.2,1); }
.s-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.s-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.s-tile .ic { width: 30px; height: 30px; border-radius: 9px; background: var(--mint); display: grid; place-items: center; color: var(--teal-700); margin-bottom: 8px; }
.s-tile .ic svg { width: 17px; height: 17px; }
.s-tile .t { font-weight: 600; font-size: 13px; }
.s-tile .d { font-size: 10px; color: var(--ink-soft); }

/* Floating chips */
.chip {
  position: absolute; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500;
}
.chip .dot { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; }
.chip .dot svg { width: 16px; height: 16px; }
.chip-1 { top: 60px; left: -28px; animation: floaty 6s ease-in-out infinite; }
.chip-2 { bottom: 120px; right: -34px; animation: floaty 6.5s .8s ease-in-out infinite; }
.chip-3 { bottom: 24px; left: -20px; animation: floaty 7s .4s ease-in-out infinite; }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes fill { to { width: 65%; } }

/* ---------- Trust marquee ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--mint-2); }
.trust .wrap { display: flex; flex-wrap: wrap; gap: 18px 44px; justify-content: center; padding: 26px 24px; }
.trust b { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--teal-deep); font-size: 15px; }
.trust b svg { width: 20px; height: 20px; color: var(--teal); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 54px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); margin: 16px 0 14px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 28px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-s); }
.stat .num { font-family: var(--font-display); font-size: clamp(34px, 5vw, 50px); color: var(--teal-700); line-height: 1; }
.stat .lbl { font-size: 14px; color: var(--ink-soft); margin-top: 8px; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 30px; transition: transform .3s, box-shadow .3s, border-color .3s; position: relative; overflow: hidden;
}
.feature::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--amber)); transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature:hover::before { transform: scaleX(1); }
.feature .ficon { width: 54px; height: 54px; border-radius: 16px; background: var(--mint); display: grid; place-items: center; color: var(--teal-700); margin-bottom: 18px; }
.feature .ficon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 21px; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: 15px; }
.feature .premium { position: absolute; top: 22px; right: 22px; font-size: 11px; font-weight: 600; color: var(--amber); background: rgba(226,160,63,.12); padding: 4px 10px; border-radius: 100px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; position: relative; }
.step { text-align: center; padding: 0 10px; }
.step .circle {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 26px; color: #fff; background: var(--teal); box-shadow: var(--shadow);
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 15px; }

/* Showcase rows */
.showcase { display: flex; flex-direction: column; gap: 90px; }
.show-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.show-row.rev .show-text { order: 2; }
.show-text h3 { font-size: clamp(26px, 3.4vw, 38px); margin: 14px 0 14px; }
.show-text p { color: var(--ink-soft); font-size: 16px; margin-bottom: 18px; }
.show-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.show-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.show-list svg { width: 22px; height: 22px; color: var(--teal); flex: none; margin-top: 1px; }
.show-visual {
  border-radius: var(--radius-l); padding: 40px; min-height: 340px; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--mint), var(--sand)); border: 1px solid var(--line); position: relative; overflow: hidden;
}
.show-visual::before { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(13,148,136,.12); top: -60px; right: -60px; }

/* Mini-card visuals inside showcase */
.mini { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); width: 100%; max-width: 320px; padding: 18px; position: relative; z-index: 1; }
.mini h4 { font-family: var(--font-body); font-size: 13px; color: var(--ink-soft); font-weight: 600; margin-bottom: 12px; letter-spacing: .04em; }
.mini-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mini-row:last-child { border-bottom: 0; }
.mini-row .pill { width: 12px; height: 12px; border-radius: 50%; }
.mini-row .txt { flex: 1; }
.mini-row .txt b { display: block; font-size: 14px; }
.mini-row .txt small { color: var(--ink-soft); }
.mini-row .badge { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 100px; }
.badge-ok { background: rgba(31,174,99,.14); color: #1a8a52; }
.badge-warn { background: rgba(226,160,63,.16); color: #b5781f; }
/* Bar chart */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 130px; padding-top: 10px; }
.bars .b { flex: 1; background: linear-gradient(var(--teal), var(--teal-deep)); border-radius: 6px 6px 0 0; opacity: .9; }
/* calendar dots */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.cal i { aspect-ratio: 1; border-radius: 50%; background: var(--line); }
.cal i.g { background: var(--teal); }
.cal i.o { background: var(--amber); }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 860px; margin: 0 auto; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 36px; position: relative; }
.price-card.pro { border-color: var(--teal); box-shadow: var(--shadow); }
.price-card.pro::after {
  content: "Beliebt"; position: absolute; top: 22px; right: 22px; background: var(--teal); color: #fff;
  font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 100px;
}
.price-card h3 { font-size: 24px; margin-bottom: 6px; }
.price-card .sub { color: var(--ink-soft); font-size: 14px; margin-bottom: 20px; }
.price-card .amount { font-family: var(--font-display); font-size: 46px; color: var(--teal-700); line-height: 1; }
.price-card .amount span { font-family: var(--font-body); font-size: 16px; color: var(--ink-soft); }
.price-card .alt { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
.price-list { list-style: none; margin: 24px 0 28px; display: flex; flex-direction: column; gap: 12px; }
.price-list li { display: flex; gap: 10px; font-size: 15px; }
.price-list svg { width: 20px; height: 20px; color: var(--teal); flex: none; }
.price-card .btn { width: 100%; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 22px; transition: box-shadow .25s, border-color .25s;
}
.faq details[open] { box-shadow: var(--shadow-s); border-color: var(--teal); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 17px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pl { width: 22px; height: 22px; flex: none; position: relative; transition: transform .3s; }
.faq summary .pl::before, .faq summary .pl::after { content: ""; position: absolute; background: var(--teal); border-radius: 2px; }
.faq summary .pl::before { width: 16px; height: 2px; top: 10px; left: 3px; }
.faq summary .pl::after { width: 2px; height: 16px; top: 3px; left: 10px; transition: transform .3s; }
.faq details[open] summary .pl::after { transform: rotate(90deg); opacity: 0; }
.faq details p { padding: 0 0 20px; color: var(--ink-soft); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-l); padding: 70px 40px; text-align: center;
  background: linear-gradient(135deg, var(--teal-deep), var(--teal-900)); color: #fff; box-shadow: var(--shadow-lg); }
.cta-band::before { content: ""; position: absolute; inset: 0; opacity: .5;
  background: radial-gradient(40% 60% at 80% 10%, rgba(255,255,255,.16), transparent 70%), radial-gradient(40% 60% at 15% 90%, rgba(226,160,63,.22), transparent 70%); }
.cta-band h2 { font-size: clamp(30px, 4.5vw, 48px); margin-bottom: 14px; position: relative; }
.cta-band p { opacity: .9; max-width: 520px; margin: 0 auto 28px; position: relative; }
.cta-band .btn-primary { background: #fff; color: var(--teal-deep); }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }

/* App badges */
.store-badge { display: inline-flex; align-items: center; gap: 11px; background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 14px; transition: transform .25s; }
.store-badge:hover { transform: translateY(-3px); }
.store-badge svg { width: 24px; height: 24px; }
.store-badge .sb { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge .sb small { font-size: 10px; opacity: .8; }
.store-badge .sb b { font-size: 15px; font-weight: 600; }

/* Footer */
.footer { background: var(--ink); color: #cfe0db; padding: 70px 0 34px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer p.fdesc { max-width: 320px; font-size: 15px; color: #a9c2bc; }
.footer h4 { font-family: var(--font-body); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #8fada7; margin-bottom: 16px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer ul a { color: #cfe0db; font-size: 15px; transition: color .2s; }
.footer ul a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 13px; color: #8fada7; }
.footer-note { max-width: 620px; font-size: 12px; color: #7c9a94; margin-top: 14px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

/* ---------- Legal pages ---------- */
.legal { padding: 150px 0 60px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 8px; }
.legal .updated { color: var(--ink-soft); font-size: 14px; margin-bottom: 30px; }
.legal-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(26px, 5vw, 50px); box-shadow: var(--shadow-s); }
.legal-card h2 { font-size: 22px; color: var(--teal-deep); margin: 30px 0 10px; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p, .legal-card li { color: var(--ink-soft); }
.legal-card ul { margin: 8px 0 8px 20px; }
.legal-card a { color: var(--teal-700); font-weight: 500; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid, .show-row, .show-row.rev .show-text { grid-template-columns: 1fr; }
  .show-row.rev .show-text { order: 0; }
  .phone-stage { margin-top: 20px; }
  .features { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); background: var(--surface);
    flex-direction: column; align-items: flex-start; justify-content: center; padding: 40px; gap: 26px;
    transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1); box-shadow: var(--shadow-lg); }
  .nav-links.open { transform: none; }
  .nav-toggle { display: block; z-index: 101; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 130px; }
  .chip-1, .chip-2 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
