/* Mein KI Buddy: Landingpage. Farben und Schriften wie in der App. */
@font-face { font-family: "Bricolage"; src: url("fonts/bricolage-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage"; src: url("fonts/bricolage-latin-ext.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson"; src: url("fonts/atkinson-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("fonts/atkinson-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --petrol: #12343b;
  --petrol-deep: #0c2429;
  --petrol-soft: #3d5a60;
  --nebel: #eaf2ee;
  --paper: #f6faf8;
  --salbei: #a8cbb7;
  --salbei-hell: #d3e5db;
  --gelb: #ffc93c;
  --gelb-dark: #f0b41f;
  --koralle: #e8503a;
  --ink: #12343b;
  --muted: #3d5a60;
  --line: rgba(18, 52, 59, .14);

  --display: "Bricolage", "Bricolage Grotesque", system-ui, sans-serif;
  --text: "Atkinson", "Atkinson Hyperlegible", system-ui, sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --r-lg: 24px; --r-md: 16px; --r-sm: 12px; --r-btn: 999px;
  --nav: 72px;
  --gut: 80px;
  --wrapw: 1280px;
}
@media (max-width: 1023px) { :root { --gut: 40px; } }
@media (max-width: 639px) { :root { --nav: 60px; --gut: 20px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav) + 8px); -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body { background: var(--nebel); color: var(--ink); font: 400 18px/1.6 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.025em; line-height: 1.04; margin: 0; hyphens: auto; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--petrol); outline-offset: 3px; border-radius: 4px; }
.sec--dark :focus-visible, .hero :focus-visible, .closing :focus-visible, .nav :focus-visible { outline-color: var(--gelb); }

.wrap { width: 100%; max-width: calc(var(--wrapw) + var(--gut) * 2); margin: 0 auto; padding-inline: var(--gut); }
.skip { position: absolute; left: var(--s4); top: -64px; z-index: 30; background: var(--gelb); color: var(--petrol); padding: var(--s3) var(--s5); border-radius: var(--r-btn); font-weight: 700; text-decoration: none; }
.skip:focus { top: var(--s3); }

/* Buttons: ein Paar, 48 px hoch */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--s5); border-radius: var(--r-btn); border: 2px solid transparent; font: 700 17px/1 var(--text); text-decoration: none; cursor: pointer; transition: transform .16s ease, background-color .16s ease, border-color .16s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--primary { background: var(--gelb); color: var(--petrol); }
.btn--primary:hover { background: var(--gelb-dark); }
.btn--secondary { background: transparent; color: inherit; border-color: currentColor; }
.btn--secondary:hover { background: rgba(255, 255, 255, .08); }
.sec--light .btn--secondary:hover, .sec--paper .btn--secondary:hover, .sec--sage .btn--secondary:hover { background: rgba(18, 52, 59, .07); }
.btn--xl { min-height: 60px; padding: 0 var(--s7); font-size: 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); }

.link { font-weight: 700; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; transition: background-size .25s ease; padding-bottom: 2px; }
.link:hover { background-size: 0 2px; background-position: 100% 100%; }

/* Header */
.nav { position: fixed; inset: 0 0 auto 0; height: var(--nav); background: var(--petrol); color: var(--nebel); border-bottom: 1px solid rgba(234, 242, 238, .16); z-index: 20; }
.nav__in { height: 100%; display: flex; align-items: center; gap: var(--s6); }
.logo { display: inline-flex; align-items: center; gap: var(--s3); text-decoration: none; color: inherit; }
.logo__mark { position: relative; width: 36px; height: 36px; border-radius: 50%; background: var(--gelb); flex: none; }
.logo__mark i { position: absolute; top: 14px; width: 5px; height: 7px; border-radius: 3px; background: var(--petrol); }
.logo__mark i:first-child { left: 10px; }
.logo__mark i:last-child { right: 10px; }
.logo__mark::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 9px; height: 6px; border-bottom: 3px solid var(--petrol); border-radius: 0 0 12px 12px; }
.logo__name { font: 700 21px/1 var(--display); letter-spacing: -.02em; }
.nav__links { display: flex; gap: var(--s5); margin-left: auto; }
.nav__links a { position: relative; text-decoration: none; font-size: 16px; font-weight: 700; color: rgba(234, 242, 238, .86); padding: var(--s2) 0; white-space: nowrap; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--gelb); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__toggle { display: none; width: 48px; height: 48px; border: 2px solid rgba(234, 242, 238, .5); background: transparent; border-radius: var(--r-btn); cursor: pointer; position: relative; flex: none; }
.nav__toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--nebel); border-radius: 2px; transition: transform .2s ease, top .2s ease; }
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 27px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }
@media (max-width: 1099px) {
  .nav__links { display: none; position: fixed; top: var(--nav); left: 0; right: 0; bottom: 0; flex-direction: column; gap: 0; margin: 0; padding: var(--s5) var(--gut); background: var(--petrol); overflow-y: auto; }
  .nav__links.is-open { display: flex; }
  .nav__links a { font: 700 26px/1.2 var(--display); padding: var(--s5) 0; border-bottom: 1px solid rgba(234, 242, 238, .14); }
  .nav__links a::after { display: none; }
  .nav__toggle { display: block; }
  .nav__cta { margin-left: auto; }
}
@media (max-width: 479px) { .nav__cta { display: none; } .nav__toggle { margin-left: auto; } .logo__name { font-size: 19px; } }

/* Hero */
.hero { position: relative; background: var(--petrol); color: var(--nebel); padding: calc(var(--nav) + var(--s8)) 0 0; min-height: 100svh; display: flex; overflow: hidden; }
.hero__disc { position: absolute; right: -8vw; top: 6vh; width: min(52vw, 760px); aspect-ratio: 1; border-radius: 50%; background: var(--petrol-soft); opacity: .55; pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: var(--s8); align-items: end; flex: 1; }
.hero__text { align-self: center; padding-bottom: var(--s9); }
.hero h1 { font-size: clamp(40px, 5.3vw, 82px); letter-spacing: -.035em; line-height: 1.01; max-width: 15ch; }
.hero .lead { margin-top: var(--s6); font-size: clamp(18px, 1.5vw, 22px); line-height: 1.55; color: rgba(234, 242, 238, .92); max-width: 36em; }
.hero .btn-row { margin-top: var(--s7); }
.hero__note { margin-top: var(--s5); font-size: 16px; color: rgba(234, 242, 238, .78); max-width: 34em; }
.phone--hero { align-self: end; justify-self: center; width: min(100%, 400px); margin-bottom: -2px; }
.phone--hero img { border-radius: 38px 38px 0 0; }
@media (max-width: 1023px) {
  .hero { min-height: 0; padding-top: calc(var(--nav) + var(--s7)); }
  .hero__grid { grid-template-columns: 1fr; gap: var(--s7); }
  .hero__text { padding-bottom: 0; }
  .hero h1 { max-width: 16ch; }
  .phone--hero { width: min(100%, 360px); }
  .hero__disc { width: 90vw; right: -30vw; top: 38vh; }
}
@media (max-width: 639px) { .hero .btn-row .btn { width: 100%; } }

/* Telefon-Rahmen um echte Bildschirme der App */
.phone { position: relative; width: min(100%, 360px); padding: 10px; background: var(--petrol-deep); border-radius: 46px; box-shadow: 0 0 0 1px rgba(234, 242, 238, .1), 0 34px 60px -34px rgba(12, 36, 41, .55); overflow: hidden; }
.phone img { width: 100%; border-radius: 36px; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.phone:hover img { transform: scale(1.02); }
.phone--hero { background: var(--petrol-deep); border-radius: 46px 46px 0 0; padding: 10px 10px 0; box-shadow: 0 0 0 1px rgba(234, 242, 238, .12); }
.phone--sm { width: min(100%, 300px); }

/* Sektionen */
.sec { padding: var(--s10) 0; }
.sec--light { background: var(--nebel); }
.sec--paper { background: var(--paper); }
.sec--sage { background: var(--salbei); }
.sec--dark { background: var(--petrol); color: var(--nebel); }
@media (max-width: 1023px) { .sec { padding: var(--s9) 0; } }
@media (max-width: 639px) { .sec { padding: var(--s8) 0; } }
.sec h2 { font-size: clamp(32px, 3.7vw, 54px); }
.sec__head { max-width: 760px; }
.sec__head--wide { max-width: 860px; }
.sec__head p { margin-top: var(--s5); font-size: 20px; color: var(--muted); max-width: 40em; }
.sec--dark .sec__head p, .sec--dark p { color: rgba(234, 242, 238, .9); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s9); align-items: center; }
.split--flip .call { order: 0; }
.split__text > p { margin-top: var(--s5); font-size: 20px; max-width: 32em; }
.sec--light .split__text > p, .sec--paper .split__text > p { color: var(--muted); }
.sec--sage .split__text > p { color: var(--petrol); }
.split .phone { justify-self: center; }
.split__text .btn { margin-top: var(--s6); }
.small { font-size: 16px; margin-top: var(--s5); opacity: .9; }
@media (max-width: 1023px) {
  .split { grid-template-columns: 1fr; gap: var(--s7); }
  .split--flip .call { order: 2; }
  .split .phone { order: 2; }
}

.ticks { list-style: none; margin-top: var(--s6); display: grid; gap: var(--s3); max-width: 34em; }
.ticks li { position: relative; padding-left: 36px; font-size: 18px; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--petrol); }
.ticks li::after { content: ""; position: absolute; left: 7px; top: 8px; width: 8px; height: 4px; border-left: 2.5px solid var(--gelb); border-bottom: 2.5px solid var(--gelb); transform: rotate(-45deg); }
.ticks--dark li::before { background: var(--gelb); }
.ticks--dark li::after { border-color: var(--petrol); }
.split__text .link { display: inline-block; margin-top: var(--s6); }

/* Karten */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s6); transition: transform .2s ease; }
.card:hover { transform: translateY(-2px); }
.card__tag { font-size: 15px; font-weight: 700; color: var(--muted); }
.card h3 { font-size: 26px; margin-top: var(--s2); }
.card p + p { margin-top: var(--s3); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--s4); border-radius: var(--r-btn); background: var(--salbei-hell); font-weight: 700; font-size: 16px; }
.chip--hot { background: var(--koralle); color: #fff; }

/* Szene: Brief wird Erklärung und Antwort */
.scene { margin-top: var(--s8); display: grid; grid-template-columns: minmax(0, .92fr) auto minmax(0, 1.08fr); gap: var(--s6); align-items: center; }
.paper { background: #fffdf8; border: 1px solid rgba(18, 52, 59, .12); border-radius: 6px; padding: var(--s6) var(--s6) var(--s7); font-size: 17px; line-height: 1.55; color: #26373b; box-shadow: 0 1px 0 rgba(18, 52, 59, .06), 0 24px 40px -30px rgba(18, 52, 59, .4); }
.paper__from { font-size: 14px; color: #5b6e72; border-bottom: 1px solid rgba(18, 52, 59, .16); padding-bottom: var(--s3); margin-bottom: var(--s5); }
.paper__title { font: 700 22px/1.2 var(--display); margin-bottom: var(--s4); color: var(--ink); }
.paper p + p { margin-top: var(--s3); }
.paper b { background: rgba(255, 201, 60, .5); padding: 0 3px; font-weight: 700; }
.paper__lines { display: grid; gap: 10px; margin-top: var(--s6); }
.paper__lines i { display: block; height: 7px; border-radius: 4px; background: rgba(18, 52, 59, .12); }
.paper__lines i:nth-child(2) { width: 82%; }
.paper__lines i:nth-child(3) { width: 58%; }
.scene__arrow { color: var(--petrol); }
.scene__stack { display: grid; gap: var(--s5); }
.reply { background: var(--petrol); color: var(--nebel); border-color: var(--petrol); }
.reply .card__tag { color: var(--salbei); }
.reply__bg { font-size: 18px; margin-top: var(--s3); }
.reply__de { font-size: 16px; color: rgba(234, 242, 238, .78); border-top: 1px solid rgba(234, 242, 238, .2); padding-top: var(--s3); margin-top: var(--s3) !important; }
@media (max-width: 1023px) {
  .scene { grid-template-columns: 1fr; gap: var(--s5); }
  .scene__arrow { transform: rotate(90deg); justify-self: center; }
}
/* Die eine bewegte Stelle: Erst der Brief, dann Erklärung, dann Antwort. Läuft einmal beim Erscheinen. */
.js .scene .explain, .js .scene .reply, .js .scene .scene__arrow { opacity: 0; transform: translateY(14px); }
.js .scene.is-in .scene__arrow { animation: develop .6s .5s both ease-out; }
.js .scene.is-in .explain { animation: develop .7s 1s both ease-out; }
.js .scene.is-in .reply { animation: develop .7s 2s both ease-out; }
@keyframes develop { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.facts { list-style: none; margin-top: var(--s8); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); }
.facts li { border-top: 2px solid var(--petrol); padding-top: var(--s4); font-size: 17px; color: var(--muted); }
.facts b { display: block; font: 700 22px/1.2 var(--display); color: var(--ink); margin-bottom: var(--s2); letter-spacing: -.02em; }
@media (max-width: 859px) { .facts { grid-template-columns: 1fr; gap: var(--s5); } }

/* Anrufe */
.call__steps { list-style: none; display: grid; gap: var(--s6); counter-reset: none; max-width: 560px; }
.call__steps li { display: grid; grid-template-columns: 48px 1fr; gap: var(--s5); align-items: start; position: relative; }
.call__steps li:not(:last-child)::before { content: ""; position: absolute; left: 23px; top: 52px; bottom: -28px; width: 2px; background: rgba(234, 242, 238, .22); }
.call__n { width: 48px; height: 48px; border-radius: 50%; background: var(--gelb); color: var(--petrol); display: grid; place-items: center; font: 700 22px/1 var(--display); }
.call__steps b { display: block; font: 700 22px/1.25 var(--display); letter-spacing: -.02em; }
.call__steps p { margin-top: var(--s2); font-size: 17px; }
.card--on-dark { background: var(--petrol-soft); border-color: rgba(234, 242, 238, .18); color: var(--nebel); margin-top: var(--s4); padding: var(--s5); }
.card--on-dark .card__tag { color: var(--salbei); }
.call__sum { margin-top: var(--s2); font: 700 21px/1.35 var(--display); letter-spacing: -.015em; color: #fff !important; }
.sec--dark .ticks li { color: rgba(234, 242, 238, .95); }

/* Fristen und Ausgaben */
.duo { margin-top: var(--s8); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s9); }
.duo__item { display: grid; justify-items: start; align-content: start; gap: 0; }
.duo__item .phone { margin-bottom: var(--s6); }
.duo__item h3 { font-size: 28px; }
.duo__item p { margin-top: var(--s3); color: var(--muted); max-width: 26em; }
.duo__item:nth-child(odd) { justify-items: end; }
.duo__item:nth-child(odd) h3, .duo__item:nth-child(odd) p { justify-self: end; text-align: right; }
@media (max-width: 859px) {
  .duo { grid-template-columns: 1fr; gap: var(--s8); }
  .duo__item, .duo__item:nth-child(odd) { justify-items: start; }
  .duo__item:nth-child(odd) h3, .duo__item:nth-child(odd) p { text-align: left; justify-self: start; }
}

/* Preise */
.plans { margin-top: var(--s8); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s6); display: flex; flex-direction: column; transition: transform .2s ease; }
.plan:hover { transform: translateY(-2px); }
.plan h3 { font-size: 30px; }
.plan__price { margin-top: var(--s3); font-size: 18px; color: var(--muted); }
.plan__price b { font: 700 44px/1 var(--display); letter-spacing: -.03em; color: var(--ink); margin-right: 4px; }
.plan__trial { margin-top: var(--s2); display: inline-flex; align-self: flex-start; padding: 2px var(--s3); border-radius: var(--r-btn); background: var(--gelb); color: var(--petrol); font-weight: 700; font-size: 15px; }
.plan ul { list-style: none; margin: var(--s6) 0; display: grid; gap: var(--s3); flex: 1; align-content: start; }
.plan li { position: relative; padding-left: 26px; font-size: 17px; line-height: 1.45; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 5px; border-left: 2.5px solid var(--petrol); border-bottom: 2.5px solid var(--petrol); transform: rotate(-45deg); }
.plan .btn { width: 100%; }
.plan--main { background: var(--petrol); color: var(--nebel); border-color: var(--petrol); }
.plan--main .plan__price { color: rgba(234, 242, 238, .85); }
.plan--main .plan__price b { color: #fff; }
.plan--main li::before { border-color: var(--gelb); }
@media (max-width: 1023px) { .plans { grid-template-columns: 1fr; max-width: 560px; } }

/* Fragen: offen, ohne Aufklappen */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--s9); align-items: start; }
.faq { display: grid; gap: 0; }
.faq div { padding: var(--s5) 0; border-top: 1px solid var(--line); }
.faq div:last-child { border-bottom: 1px solid var(--line); }
.faq dt { font: 700 22px/1.25 var(--display); letter-spacing: -.02em; }
.faq dd { margin-top: var(--s3); color: var(--muted); max-width: 40em; }
@media (max-width: 1023px) { .faq-wrap { grid-template-columns: 1fr; gap: var(--s6); } }

/* Schluss und Footer */
.closing { background: var(--petrol); color: var(--nebel); }
.closing__in { padding-top: var(--s10); padding-bottom: var(--s9); display: grid; justify-items: start; gap: var(--s7); }
.closing h2 { font-size: clamp(38px, 5.2vw, 78px); letter-spacing: -.035em; max-width: 14ch; }
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, .6fr)); gap: var(--s7); padding-top: var(--s7); padding-bottom: var(--s7); border-top: 1px solid rgba(234, 242, 238, .16); }
.foot__brand p { margin-top: var(--s4); color: rgba(234, 242, 238, .85); font-size: 16px; max-width: 26em; }
.foot__cols { display: grid; align-content: start; gap: var(--s2); }
.foot__cols h3 { font: 700 17px/1.2 var(--display); margin-bottom: var(--s2); color: var(--salbei); letter-spacing: -.01em; }
.foot__cols a { text-decoration: none; font-size: 16px; padding: var(--s2) 0; width: max-content; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .25s ease; }
.foot__cols a:hover { background-size: 100% 2px; }
.legal { padding-bottom: var(--s6); font-size: 14px; color: rgba(234, 242, 238, .75); }
@media (max-width: 767px) { .foot { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } .closing .btn--xl { width: 100%; padding: 0 var(--s5); } }

/* Einmaliger Auftritt des Heroes beim Laden */
.js .hero[data-enter] .hero__text > *, .js .hero[data-enter] .phone--hero { opacity: 0; transform: translateY(22px); animation: enter .8s cubic-bezier(.2, .7, .2, 1) forwards; }
.js .hero[data-enter] h1 { animation-delay: .05s; }
.js .hero[data-enter] .lead { animation-delay: .18s; }
.js .hero[data-enter] .btn-row { animation-delay: .3s; }
.js .hero[data-enter] .hero__note { animation-delay: .4s; }
.js .hero[data-enter] .phone--hero { animation-delay: .2s; transform: translateY(60px); }
@keyframes enter { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .hero[data-enter] .hero__text > *, .js .hero[data-enter] .phone--hero, .js .scene .explain, .js .scene .reply, .js .scene .scene__arrow { opacity: 1 !important; transform: none !important; }
}
