/* HappyDi – Website
   Farben aus Logo & App-Icon, Schriften lokal eingebunden (keine Google-Server, keine Cookies). */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-italic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../fonts/caveat.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --forest: #0b3d24;      /* Schrift, Logo */
  --green: #0e5a35;       /* Buttons */
  --leaf: #2fae4e;        /* Maskottchen */
  --mint: #edf7e7;        /* helle Flächen */
  --mint-2: #dff0d6;
  --sun: #ffc605;         /* Sterne */
  --cream: #faf8f0;
  --paper: #ffffff;
  --ink: #23302a;
  --muted: #5d6b62;
  --line: #e4e8dc;
  --radius: 22px;
  --shadow: 0 18px 50px -20px rgba(11, 61, 36, .35);
  --max: 1160px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.65 var(--sans); color: var(--ink); background: var(--cream); }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--green); }
a:hover { color: var(--forest); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--forest); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

h1, h2, h3 { font-family: var(--serif); color: var(--forest); font-weight: 500; letter-spacing: -.02em; line-height: 1.08; margin: 0 0 .5em; font-variation-settings: "opsz" 120, "SOFT" 50; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: 1.45rem; line-height: 1.2; }
h2 em, h1 em { font-style: italic; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.eyebrow { font: 600 .78rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--green); margin-bottom: 1.2rem; }
.squiggle { display: block; width: 120px; height: 14px; margin: .2em 0 1.2em; }
.center { text-align: center; }
.center .squiggle, .center .lead { margin-inline: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .6em; padding: .95em 1.6em; border-radius: 999px; font: 600 1rem/1 var(--sans); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; border: 0; cursor: pointer; }
.btn svg { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--forest); color: #fff; box-shadow: 0 10px 24px -10px rgba(11,61,36,.6); }
.btn-primary:hover { background: var(--green); color: #fff; transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--forest); }
.btn-light:hover { color: var(--forest); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--forest); box-shadow: inset 0 0 0 2px var(--forest); }
.note { font-size: .88rem; color: var(--muted); margin-top: .8rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 240, .9); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand img { height: 54px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--forest); text-decoration: none; font-weight: 500; font-size: .97rem; }
.nav-links a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--sun); text-decoration-thickness: 3px; }
.nav-links .btn { color: #fff; padding: .8em 1.3em; }
.nav-links .btn:hover { text-decoration: none; color: #fff; }
.lang { font-size: .85rem !important; font-weight: 600 !important; border: 1.5px solid var(--line); padding: .35em .7em; border-radius: 999px; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--forest); }
.menu-toggle svg { width: 28px; height: 28px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 60px 0 90px; }
.hero::before { content: ""; position: absolute; right: -10%; top: -20%; width: 62%; height: 140%; background: radial-gradient(closest-side, var(--mint-2), transparent 75%); z-index: 0; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: .2em; }
.phone-wrap .stars { position: absolute; width: 96px; left: 2%; top: -2%; z-index: 2; }

/* iPhone-Mockup (reines HTML/CSS) */
.phone-wrap { position: relative; display: flex; justify-content: center; }
.phone-wrap .leaf { position: absolute; width: 160px; left: -40px; bottom: -30px; opacity: .95; }
.phone { position: relative; width: min(330px, 80vw); aspect-ratio: 9 / 19.3; background: #1d1f1e; border-radius: 52px; padding: 12px; box-shadow: var(--shadow), inset 0 0 0 2px #3a3c3b; transform: rotate(4deg); }
.screen { position: relative; height: 100%; background: var(--cream); border-radius: 41px; overflow: hidden; display: flex; flex-direction: column; padding: 14px 18px 18px; gap: 12px; }
.island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 34%; height: 26px; background: #111; border-radius: 20px; }
.status { display: flex; justify-content: space-between; font: 600 .78rem/1 var(--sans); color: #111; padding: 4px 8px 0; }
.app-top { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.app-top img { height: 30px; width: auto; }
.app-top .icons { display: flex; gap: 10px; color: var(--forest); }
.app-top .icons svg { width: 18px; height: 18px; }
.app-label { font-size: .68rem; color: var(--muted); text-align: center; }
.app-q { font: 500 1.45rem/1.15 var(--serif); color: var(--forest); }
.app-card { background: #fff; border-radius: 18px; padding: 14px 16px; box-shadow: 0 6px 18px -10px rgba(0,0,0,.25); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.app-card p { margin: 0; font: 500 1.3rem/1.2 var(--hand); color: #2a3a31; }
.app-card svg { width: 34px; flex: none; }
.app-photo { flex: 1; min-height: 0; border-radius: 16px; overflow: hidden; }
.app-photo img { width: 100%; height: 100%; object-fit: cover; }
.app-bar { display: flex; align-items: center; gap: 16px; color: var(--muted); padding: 2px 4px; }
.app-bar svg { width: 18px; height: 18px; }
.app-bar .ok { margin-left: auto; width: 42px; height: 42px; border-radius: 50%; background: var(--forest); display: grid; place-items: center; color: #fff; }

/* Sektionen */
section { padding: 96px 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.credit { font-size: .75rem; color: var(--muted); margin-top: .6rem; }
.credit a { color: inherit; }

.steps-sec { background: var(--mint); position: relative; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 56px; counter-reset: step; }
.step { position: relative; }
.step .num { font: 400 2.2rem/1 var(--serif); color: #8bbf8f; }
.step .illu { height: 150px; display: flex; align-items: end; margin: 6px 0 18px; }
.step .illu svg { height: 100%; width: auto; }
.step p { color: var(--muted); }

.versions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 48px; }
.version { background: #fff; border-radius: 20px; padding: 24px 20px; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.version:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.version .dot { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px; color: #fff; }
.version .dot svg { width: 22px; height: 22px; }
.version h3 { font-size: 1.25rem; margin-bottom: .3em; }
.version p { font-size: .93rem; color: var(--muted); margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.feature { display: flex; gap: 16px; padding: 22px; background: #fff; border-radius: 20px; border: 1px solid var(--line); }
.feature .ic { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--mint); color: var(--green); display: grid; place-items: center; }
.feature .ic svg { width: 24px; height: 24px; }
.feature h3 { font: 600 1.02rem/1.3 var(--sans); color: var(--forest); margin: 2px 0 4px; letter-spacing: 0; }
.feature p { font-size: .93rem; color: var(--muted); margin: 0; }

.price { background: #fff; border-radius: 32px; padding: 56px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; border: 1px solid var(--line); }
.price .amount { font: 500 4rem/1 var(--serif); color: var(--forest); }
.price .amount small { font: 500 1.1rem var(--sans); color: var(--muted); }
.price ul { list-style: none; padding: 0; margin: 0 0 1.4em; }
.price li { padding-left: 32px; position: relative; margin: .5em 0; }
.price li::before { content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e5a35' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/14px no-repeat; }
.price .mascot { width: 100%; max-width: 280px; margin-inline: auto; }

.faq { max-width: 820px; margin: 40px auto 0; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; margin-bottom: 12px; padding: 0 24px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; color: var(--forest); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--serif); color: var(--green); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

.cta { position: relative; color: #fff; overflow: hidden; padding: 110px 0; background: var(--forest); }
.cta .bg { position: absolute; inset: 0; }
.cta .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.cta .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(1,55,37,.92) 30%, rgba(1,55,37,.55)); }
.cta .container { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 40px; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.85); font-size: 1.12rem; }
.cta .mascot { width: min(300px, 70%); margin-inline: auto; filter: drop-shadow(0 20px 30px rgba(0,0,0,.35)); }

/* Unterseiten */
.page-hero { padding: 70px 0 30px; }
.page-hero .lead { margin-bottom: 0; }
.prose { max-width: 780px; padding-bottom: 90px; }
.prose h2 { font-size: 1.8rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose .todo { background: #fff6cc; border-radius: 6px; padding: 0 .3em; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 30px 0 60px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.card .big { font: 500 2.4rem/1 var(--serif); color: var(--forest); margin-bottom: 12px; }
.form { display: grid; gap: 14px; max-width: 620px; }
.form label { font-weight: 600; font-size: .92rem; color: var(--forest); display: grid; gap: 6px; }
.form input, .form textarea, .form select { font: inherit; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(47,174,78,.15); }
.steps-list { counter-reset: s; list-style: none; padding: 0; }
.steps-list li { counter-increment: s; position: relative; padding: 0 0 18px 56px; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 38px; height: 38px; border-radius: 50%; background: var(--forest); color: #fff; display: grid; place-items: center; font-weight: 700; }

/* Footer */
.site-footer { background: var(--cream); border-top: 1px solid var(--line); padding: 44px 0; font-size: .92rem; }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer img { height: 36px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--forest); text-decoration: underline; }
.copy { color: var(--muted); font-size: .82rem; width: 100%; margin: 0; }

/* Einblenden beim Scrollen */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 1020px) {
  .versions { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav-links { position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; display: none; }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border: 0; padding-top: 16px; }
  .hero-grid, .split, .price, .cta .container { grid-template-columns: 1fr; }
  .hero { padding-top: 30px; }
  .phone-wrap .stars { width: 70px; left: 0; }
  .phone { transform: none; margin-top: 20px; }
  .steps, .card-grid { grid-template-columns: 1fr; }
  .versions { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
  section { padding: 70px 0; }
  .price { padding: 32px 24px; }
  .split .photo { order: -1; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .versions { grid-template-columns: 1fr; }
  .brand img { height: 38px; }
}

/* Echte App-Screenshots */
.screen.shot { padding: 0; display: block; background: var(--cream); }
.screen.shot > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.screen.shot .island { top: 9px; height: 24px; width: 30%; }
.phone { aspect-ratio: 720 / 1565; height: auto; }
.phone .screen { height: 100%; }

.shots-sec { background: #fff; }
.shots { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 36px max(24px, calc((100vw - 1180px) / 2)) 28px; scrollbar-width: thin; scrollbar-color: var(--forest) transparent; }
.shots:focus-visible { outline: 2px solid var(--forest); outline-offset: -2px; }
.shot-item { flex: 0 0 auto; width: 250px; margin: 0; scroll-snap-align: center; }
.phone.small { width: 100%; padding: 9px; border-radius: 40px; transform: none; box-shadow: 0 24px 50px -28px rgba(14,58,36,.45), inset 0 0 0 2px #3a3c3b; }
.phone.small .screen { border-radius: 32px; }
.phone.small .island { top: 7px; height: 18px; }
.shot-item figcaption { margin-top: 16px; font-size: .95rem; color: var(--muted); line-height: 1.45; }
.shot-item figcaption strong { display: block; font: 600 1.15rem/1.3 var(--serif); color: var(--forest); margin-bottom: 2px; }

.share-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; margin-top: 56px; }
.share-text h3 { font: 500 clamp(1.6rem, 3vw, 2.2rem)/1.15 var(--serif); color: var(--forest); margin: 0 0 12px; }
.share-text p { color: var(--muted); font-size: 1.05rem; }
.share-cards { display: flex; gap: 20px; justify-content: center; }
.share-cards img { width: min(46%, 240px); height: auto; border-radius: 18px; box-shadow: 0 24px 50px -24px rgba(14,58,36,.5); }
.share-cards img:first-child { transform: rotate(-3deg); }
.share-cards img:last-child { transform: rotate(3deg) translateY(18px); }
@media (max-width: 800px) {
  .share-row { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .shot-item { width: 210px; }
}
