/* ==========================================================================
   sendingbloom – Stylesheet
   Farben, Schriften und Abstände entsprechen der CD-Beschreibung.
   ========================================================================== */

/* ---------- Schriften (lokal, keine Verbindung zu Google) ---------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../assets/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  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: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  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: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../assets/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("../assets/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
}

/* ---------- Design-Tokens ---------- */
:root {
  --ink: #1E1433;          /* Nachtviolett */
  --rose: #D6335A;         /* Bloom Rosé */
  --rose-deep: #A3203F;    /* Tiefrosé */
  --bloom: #FF8FA8;        /* Blüte hell */
  --blush: #FCEBEF;        /* Blütenhauch */
  --mist: #F7F4FA;         /* Nebel */
  --line: #EFEAF4;         /* Linie */
  --line-strong: #D9D1E3;
  --slate: #5B5470;        /* Schiefer */
  --lilac: #B7AEC9;        /* Flieder */
  --ink-2: #3A2B57;
  --ink-3: #140D24;
  --white: #FFFFFF;
  --ok-bg: #E4F5EC;
  --ok: #1C6B45;

  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-card: 24px;
  --radius-lg: 32px;
  --shadow-float: 0 18px 40px -18px rgba(30, 20, 51, 0.28);
  --container: 1240px;
  --section-y: clamp(72px, 9vw, 112px);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--rose); }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 6px; }

.container { max-width: var(--container); margin: 0 auto; padding-inline: 24px; }
.section { padding-block: var(--section-y); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: 999px; text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--white); }

/* ---------- Typografie ---------- */
.h1, .h2 { font-family: var(--font-display); font-weight: 700; }
.h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.05; letter-spacing: -0.025em; }
.h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.1; letter-spacing: -0.02em; }
.h3 { font-size: 19px; font-weight: 600; line-height: 1.3; }
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--slate); }
.muted { color: var(--slate); }
.accent { color: var(--rose); }
.eyebrow {
  align-self: flex-start; display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--rose-deep); background: var(--blush); padding: 8px 14px; border-radius: 999px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--rose); color: var(--white); }
.btn--primary:hover { background: #C22A4F; color: var(--white); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-2); color: var(--white); }
.btn--ghost { color: var(--ink); border-color: var(--line-strong); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--white:hover { color: var(--rose); }
.btn--outline-white { color: var(--white); border-color: var(--white); }
.btn--outline-white:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: 15px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(30,20,51,.25); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 36px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 32px; }
.nav__links { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.nav__links a { text-decoration: none; padding-block: 10px; }
.nav__actions { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; }
.nav__login { text-decoration: none; padding: 12px; }
.nav__toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--white); color: var(--ink); align-items: center; justify-content: center; cursor: pointer;
}
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 880px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 8px;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 12px 24px 24px; box-shadow: 0 20px 30px -20px rgba(30,20,51,.25);
    display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__links { flex-direction: column; gap: 0; font-size: 17px; }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__actions { flex-direction: column; align-items: stretch; padding-top: 12px; }
  .nav__actions .btn, .nav__login { width: 100%; text-align: center; justify-content: center; }
}
/* Ohne JavaScript bleibt das Menü sichtbar */
.no-js .nav__toggle { display: none; }
@media (max-width: 880px) {
  .no-js .nav { flex-wrap: wrap; }
  .no-js .nav__menu { display: flex; position: static; box-shadow: none; border: 0; padding: 0 0 16px; width: 100%; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(56px, 8vw, 96px) clamp(64px, 9vw, 104px); }
.hero__grid { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero__copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero__copy .lead { max-width: 540px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.hero__note { font-size: 14px; color: var(--slate); }
.hero__visual { flex: 1 1 440px; min-width: 0; position: relative; height: 540px; }
.hero__bloom {
  position: absolute; left: 50%; top: 50%; width: min(500px, 100%); height: auto; aspect-ratio: 1;
  transform: translate(-50%, -50%);
}
.hero__bloom .petal-fly { transform-box: view-box; transform-origin: 32px 32px; }

.msg {
  position: absolute; width: min(300px, 78%);
  background: var(--white); border: 1px solid #ECE6F2; border-radius: 18px;
  padding: 18px 20px; box-shadow: var(--shadow-float);
  display: flex; flex-direction: column; gap: 8px;
}
.msg--1 { left: 0; top: 40px; }
.msg--2 { right: 0; top: 200px; }
.msg--3 { left: 40px; bottom: 40px; background: var(--ink); color: var(--white); border-color: var(--ink); box-shadow: 0 18px 40px -18px rgba(30,20,51,.5); }
.msg__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; color: var(--slate); }
.msg--3 .msg__meta, .msg--3 .msg__to { color: var(--lilac); }
.msg__subject { font-weight: 600; font-size: 15px; }
.msg__to { font-size: 13px; color: var(--slate); }
.status {
  font-weight: 600; font-size: 12px; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  background: var(--ok-bg); color: var(--ok);
  transition: background-color .4s ease, color .4s ease;
}
.status--sending { background: var(--mist); color: var(--slate); }
.status--opened { background: var(--ink-2); color: var(--bloom); }

@media (max-width: 560px) {
  .hero__visual { height: 480px; }
  .msg--2 { top: 180px; }
  .msg--3 { left: 0; bottom: 24px; }
}

/* ---------- Momente ---------- */
.moments { background: var(--blush); }
.moments__intro { display: flex; flex-direction: column; gap: 18px; max-width: 760px; margin-bottom: 56px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.moment { background: var(--white); border-radius: var(--radius-card); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.moment__time { font-size: 13px; font-weight: 600; color: var(--rose-deep); }
.moment__story { font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.moment__outcome { color: var(--slate); }

/* ---------- Features ---------- */
.features__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; }
.features__head .h2 { max-width: 680px; }
.features__head p { max-width: 400px; font-size: 17px; }
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden;
}
.feature { background: var(--white); padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.feature p { font-size: 15px; color: var(--slate); }
.feature svg { width: 28px; height: 28px; stroke: var(--rose); }

/* ---------- Entwickler ---------- */
.dev { background: var(--ink); color: var(--white); }
.dev__grid { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.dev__copy { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.dev__copy .accent { color: var(--bloom); }
.dev__copy .lead { color: var(--lilac); }
.steps { display: flex; flex-direction: column; gap: 16px; counter-reset: step; }
.steps li { display: flex; gap: 16px; align-items: center; font-size: 17px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  flex: none; width: 36px; height: 36px; border-radius: 999px; background: var(--ink-2); color: var(--bloom);
  font-weight: 600; display: flex; align-items: center; justify-content: center;
}
.code {
  flex: 1 1 520px; min-width: 0; background: var(--ink-3); border: 1px solid var(--ink-2);
  border-radius: 20px; overflow: hidden;
}
.code__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--ink-2); }
.code__tabs { display: flex; gap: 4px; flex-wrap: nowrap; min-width: 0; }
.code__tab, .code__copy {
  font: 500 14px var(--font-body); color: var(--lilac); background: transparent; border: 0;
  border-radius: 8px; padding: 10px 14px; min-height: 44px; cursor: pointer;
}
.code__tab:hover, .code__copy:hover { color: var(--white); }
.code__tab[aria-selected="true"] { color: var(--white); background: var(--ink-2); }
.code__copy { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 520px) {
  .code__tab { padding: 10px 10px; }
  .code__copy-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .code [role="tabpanel"] pre { padding: 20px; font-size: 13px; }
}
.code pre {
  margin: 0; padding: 28px; overflow-x: auto;
  font-family: var(--font-mono); font-size: 14px; line-height: 1.75; color: #EDE8F5; tab-size: 2;
}
.tok-k { color: var(--bloom); }
.tok-s { color: #FFC98A; }
.tok-c { color: #9E94B3; }

/* ---------- Vertrauen ---------- */
.trust__grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.trust__copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.trust__items { flex: 1 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.trust-item { border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.trust-item h3 { font-size: 18px; font-weight: 600; }
.trust-item p { font-size: 15px; color: var(--slate); }

/* ---------- Preise ---------- */
.pricing { background: var(--mist); }
.pricing__head { display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; margin-bottom: 56px; }
.pricing__head .lead { max-width: 560px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; align-items: stretch; }
.plan {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 36px; display: flex; flex-direction: column; gap: 22px;
}
.plan__name { font-family: var(--font-display); font-size: 26px; font-weight: 700; }
.plan__desc { font-size: 15px; color: var(--slate); }
.plan__price { font-family: var(--font-display); font-size: 40px; font-weight: 700; line-height: 1.1; }
.plan__price small { font-family: var(--font-body); font-size: 15px; font-weight: 400; color: var(--slate); }
.plan__list { display: flex; flex-direction: column; gap: 12px; font-size: 15px; flex-grow: 1; }
.plan__list li { display: flex; gap: 10px; align-items: flex-start; }
.plan__list li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
  color: var(--rose);
}
.plan .btn { width: 100%; }
.plan--featured { background: var(--ink); color: var(--white); border-color: var(--ink); }
.plan--featured .plan__desc, .plan--featured .plan__price small { color: var(--lilac); }
.plan--featured .plan__list li::before { color: var(--bloom); }
.plan__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.badge { font-size: 12px; font-weight: 600; background: var(--rose); color: var(--white); padding: 5px 12px; border-radius: 999px; }

/* ---------- CTA ---------- */
.cta {
  background: var(--rose); color: var(--white); border-radius: var(--radius-lg);
  padding: clamp(40px, 7vw, 88px); display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 40px; position: relative; overflow: hidden;
}
.cta__bloom { position: absolute; right: -60px; top: -60px; width: 380px; height: 380px; opacity: .16; pointer-events: none; }
.cta__copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; position: relative; }
.cta__copy .h2 { font-size: clamp(34px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.025em; }
.cta__copy p { font-size: clamp(17px, 1.6vw, 19px); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-block: 64px 48px; }
.footer__brand { flex: 1 1 260px; display: flex; flex-direction: column; gap: 14px; }
.footer__brand img { height: 32px; width: auto; align-self: flex-start; }
.footer__brand p { max-width: 280px; font-size: 14px; color: var(--slate); }
.footer__cols { display: flex; flex-wrap: wrap; gap: 64px; font-size: 14px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h2 { font-size: 14px; font-weight: 600; }
.footer__col a, .footer__legal a { text-decoration: none; color: var(--slate); }
.footer__col a:hover, .footer__legal a:hover { color: var(--rose); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  font-size: 13px; color: var(--slate); border-top: 1px solid var(--line); padding-block: 24px 40px;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 24px; }

/* ---------- Rechtliche Unterseiten ---------- */
.legal { padding-block: clamp(48px, 7vw, 88px); }
.legal__inner { max-width: 760px; display: flex; flex-direction: column; gap: 20px; }
.legal h2 { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin-top: 20px; }
.legal p, .legal li { color: var(--slate); }
.legal ul { list-style: disc; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.note {
  background: var(--blush); color: var(--ink); border-radius: 16px; padding: 18px 20px; font-size: 15px;
}

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: flex; align-items: center; }
.notfound__inner { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; max-width: 620px; }
.notfound__mark { width: 96px; height: 96px; }

/* ---------- Bewegung ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes petal-drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(1.6px, -0.8px) rotate(4deg); }
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: none; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.hero__bloom .petal-fly { animation: petal-drift 6s ease-in-out infinite; }
.js .msg { opacity: 0; }
.js .msg.is-in { opacity: 1; animation: card-in .6s cubic-bezier(.2,.7,.2,1) forwards, float 7s ease-in-out .6s infinite; }
.js .msg--2.is-in { animation-delay: 0s, 1.2s; }
.js .msg--3.is-in { animation-delay: 0s, 2.4s; }

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

.plan__price--custom { font-size: 1.8rem; line-height: 1.35; }
