/* ==========================================================================
   Bubbles — joinbubbles.app
   Handgeschriebenes CSS, kein Build-Step, keine externen Requests.
   Farben/Typo-Skala 1:1 aus dem App-Design-System
   (bubbles/src/constants/designTokens.ts + colors.ts, docs/Bubbles_v2_Design.md).
   ========================================================================== */

/* --- Nunito (Variable Font, selbst gehostet, SIL OFL — s. fonts/nunito-OFL.txt) --- */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../fonts/nunito-latin.woff2") format("woff2");
  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: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("../fonts/nunito-latin-ext.woff2") format("woff2");
  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;
}

/* --- Tokens ------------------------------------------------------------- */
:root {
  --primary: #009688;
  --primary-light: #4db6ac;
  --accent: #ff6b47;
  --accent-light: #ff8b6b;

  --bg: #ffffff;
  --surface: #e8f5f3;
  --text: #0a1f1c;
  --text-secondary: #4a7068;
  --border: #b2dfdb;
  --on-primary: #ffffff;
  --shadow: 0 2px 18px rgba(10, 31, 28, 0.07);

  /* Typo-Skala (P2 „Klar"): display 34 · heading 28 · title 23 · section 20
     · subhead 17 · body 18 · callout 16 · caption 14 · micro 12 */
  --t-display: 2.125rem;
  --t-heading: 1.75rem;
  --t-title: 1.4375rem;
  --t-section: 1.25rem;
  --t-body: 1.125rem;
  --t-subhead: 1.0625rem;
  --t-callout: 1rem;
  --t-caption: 0.875rem;
  --t-micro: 0.75rem;

  /* Abstände: 4er-Raster */
  --card-pad: 24px; /* Karten (Schritt, Feature, Hinweis) */
  --box-pad: 20px; /* kompakte Boxen (Prose-Box) */

  --radius: 16px; /* Karten */
  --radius-sm: 12px; /* kompakte Boxen, Badge */
  --maxw: 1060px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1f1c;
    --surface: #132e2a;
    --text: #e0f2f0;
    --text-secondary: #7abdb5;
    --border: #1e4540;
    --shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
  }
}

/* --- Reset / Basis ------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.01em;
}
p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 10;
  background: var(--bg);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* --- Kopfzeile ---------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--t-section);
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand:hover {
  color: var(--text);
}
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 32% 30%,
    var(--primary-light),
    var(--primary) 62%,
    var(--accent) 130%
  );
  flex: none;
}
.nav {
  display: flex;
  gap: 24px;
  font-size: var(--t-callout);
  font-weight: 600;
}
.nav a {
  color: var(--text-secondary);
  text-decoration: none;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--primary);
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  padding: 56px 0 20px;
}
.hero-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}
@media (min-width: 800px) {
  .hero {
    padding: 84px 0 40px;
  }
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }
}
.eyebrow {
  display: inline-block;
  font-size: var(--t-caption);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2.125rem, 5.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.lead {
  font-size: var(--t-title);
  color: var(--text-secondary);
  font-weight: 500;
  max-width: 34ch;
}
.hero-art {
  justify-self: center;
  max-width: 400px;
}
.hero-art img {
  width: 100%;
}

/* --- Buttons ------------------------------------------------------------ */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin-top: 32px;
}
.badge-soon {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-weight: 700;
  line-height: 1.3;
  cursor: default;
}
.badge-soon .small {
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}
.badge-soon .big {
  font-size: var(--t-subhead);
  color: var(--text);
}
.btn-text {
  font-weight: 700;
  font-size: var(--t-callout);
  color: var(--primary);
  text-decoration: none;
}
.btn-text:hover {
  text-decoration: underline;
}

/* --- Abschnitte --------------------------------------------------------- */
section {
  padding: 52px 0;
}
.section-title {
  font-size: var(--t-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-intro {
  color: var(--text-secondary);
  font-size: var(--t-body);
  max-width: 56ch;
  margin-bottom: 32px;
}

/* Schritte */
.steps {
  display: grid;
  gap: 20px;
  counter-reset: step;
}
@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--card-pad);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 800;
  font-size: var(--t-callout);
  margin-bottom: 16px;
}
.step h3 {
  font-size: var(--t-section);
  font-weight: 800;
  margin-bottom: 8px;
}
.step p {
  color: var(--text-secondary);
  font-size: var(--t-callout);
}

/* Feature-Karten */
.cards {
  display: grid;
  gap: 16px;
}
@media (min-width: 700px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--card-pad);
  background: var(--bg);
  box-shadow: var(--shadow);
}
.card .icon {
  color: var(--primary);
  margin-bottom: 16px;
}
.card h3 {
  font-size: var(--t-subhead);
  font-weight: 800;
  margin-bottom: 8px;
}
.card p {
  color: var(--text-secondary);
  font-size: var(--t-callout);
}

/* Highlight-Area: genau EINE solide Teal-Fläche pro Seite (Design § 1) */
.highlight {
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius);
  padding: 40px 24px;
}
@media (min-width: 760px) {
  .highlight {
    padding: 52px 48px;
  }
}
.highlight h2 {
  color: var(--on-primary);
  font-size: var(--t-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.highlight > p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 56ch;
}
.promises {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
@media (min-width: 760px) {
  .promises {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 32px;
  }
}
.promises li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: var(--t-callout);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.94);
}
.promises .icon {
  flex: none;
  margin-top: 4px;
}

/* Beta-Hinweis */
.note {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: var(--card-pad);
}
.note h2 {
  font-size: var(--t-section);
  font-weight: 800;
  margin-bottom: 8px;
}
.note p {
  color: var(--text-secondary);
  font-size: var(--t-callout);
}
.note p + p {
  margin-top: 12px;
}

/* --- Rechtstexte / Fließtext -------------------------------------------- */
.prose {
  max-width: 46rem;
  padding: 44px 0 8px;
}
.prose h1 {
  font-size: var(--t-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.prose .meta {
  color: var(--text-secondary);
  font-size: var(--t-caption);
  margin-bottom: 32px;
}
.prose h2 {
  font-size: var(--t-section);
  font-weight: 800;
  margin: 40px 0 12px;
}
.prose h3 {
  font-size: var(--t-subhead);
  font-weight: 700;
  margin: 24px 0 8px;
}
.prose p,
.prose li {
  font-size: var(--t-callout);
  color: var(--text);
}
.prose p + p {
  margin-top: 12px;
}
.prose ul {
  margin: 8px 0 0;
  padding-left: 24px;
}
.prose li {
  margin-bottom: 8px;
}
.prose .box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--box-pad);
  margin-top: 16px;
}
.prose .box p {
  font-size: var(--t-callout);
}
.address {
  font-style: normal;
  font-size: var(--t-callout);
  line-height: 1.75;
}

/* --- Fußzeile ----------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 32px 0 44px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: var(--t-caption);
  font-weight: 600;
}
.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--primary);
}
.copy {
  font-size: var(--t-caption);
  color: var(--text-secondary);
}
