/* 2Day app page – colours from the app (theme.ts, light + three blues), type from Tony's site
   (Lexend headings, Instrument Sans text and buttons). Set into the site as a slanted band.
   Layout follows bolt-app.ch/so-funktionierts: alternating app screenshot / text rows.
   All rules are scoped to .td so nothing leaks into the site. */
/* shared tokens: the full page (.td) and the teaser on Tony's start page (.td-teaser) */
.td, .td-teaser {
  --td-grund: #f6f9fc;
  --td-flaeche: #fdfeff;
  --td-linie: #e6edf4;
  --td-dunkel: #0a1832;
  --td-dunkel-heller: #142744;
  --td-auf-dunkel: #f7fafd;
  --td-auf-dunkel-leise: #a9bdd6;
  --td-text: #0a1832;
  --td-text-leise: #4a5a76;
  --td-akzent: #4a7fa7;
  --td-akzent-text: #35678c;
  --td-akzent-fuell: #3d6c90;
  --td-akzent-tief: #2c5a7d;
  --td-akzent-auf-dunkel: #b3cfe5;
  --td-akzent-gedaempft: #dce9f3;
  --td-schatten-handy: 0 30px 60px -20px rgba(10, 24, 50, 0.35), 0 12px 24px -12px rgba(10, 24, 50, 0.2);
  --td-kurve: cubic-bezier(0.22, 1, 0.36, 1);
  --td-handy-rahmen: #111214;
  --td-titel: var(--_typography---font--heading-font, Lexend, sans-serif);
  --td-text-schrift: var(--_typography---font--button-font, "Instrument Sans", sans-serif);
}
.td {
  position: relative;
  /* the whole page is the app's navy, no slanted edges (decided 03.11.2026) */
  background: var(--td-dunkel);
  color: var(--td-auf-dunkel);
  overflow: hidden;
  font-family: var(--td-text-schrift);
}
/* same text column as Tony's pages: ~236 px side margin at 1440, never closer than 1.5rem */
.td-inner { max-width: 66rem; margin: 0 auto; padding-left: clamp(1.5rem, 5vw, 3rem); padding-right: clamp(1.5rem, 5vw, 3rem); box-sizing: border-box; }
.td h1, .td h2, .td h3, .td-teaser h2 { font-family: var(--td-titel); font-weight: 500; letter-spacing: -0.02em; margin: 0;  text-wrap: balance; }
.td h1 span, .td h2 span, .td-teaser h2 span { color: var(--td-akzent-auf-dunkel); }

/* phone frame around a real screenshot */
.td-handy {
  position: relative; border-radius: 2.6rem; padding: 0.55rem; background: var(--td-handy-rahmen);
  box-shadow: 0 0 0 1px rgba(179, 207, 229, 0.18), 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}
.td-handy img { display: block; width: 100%; height: auto; border-radius: 2.1rem; }

/* the one dark block – navy hero with two tilted phones */
.td-hero-band {
  position: relative; background: var(--td-dunkel); color: var(--td-auf-dunkel);
  padding: 5.5rem 0 4rem; overflow: hidden;
}
.td-springer {
  position: absolute; right: -2rem; bottom: -3rem; width: 26rem; height: 26rem;
  fill: var(--td-akzent-auf-dunkel); opacity: 0.06; pointer-events: none;
}
.td-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.td-marke { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 2rem; }
.td-marke img { width: 2.75rem; height: 2.75rem; border-radius: 0.75rem; box-shadow: 0 0 0 1px rgba(179, 207, 229, 0.25); }
.td-marke-name { font-family: var(--td-titel); font-weight: 500; font-size: 1.4rem; letter-spacing: -0.02em; }
.td-bald {
  padding: 0.3rem 0.75rem; border-radius: 999px; font-size: 0.85rem; font-weight: 500;
  background: rgba(179, 207, 229, 0.14); color: var(--td-akzent-auf-dunkel);
}
.td-hero h1 { font-size: clamp(2.75rem, 5.4vw, 4.75rem); line-height: 1.04; color: var(--td-auf-dunkel); margin-bottom: 1.25rem; }
.td-hero h1 span { color: var(--td-akzent-auf-dunkel); }
.td-lead { font-size: 1.2rem; line-height: 1.55; color: var(--td-auf-dunkel-leise); max-width: 30rem; margin: 0 0 2rem; }
.td-aktionen { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.td-knopf {
  display: inline-flex; align-items: center; padding: 0.9rem 1.4rem; border-radius: 0.75rem;
  text-decoration: none; font-family: var(--td-text-schrift); font-weight: 600; font-size: 1rem; white-space: nowrap;
  transition: background-color 0.15s var(--td-kurve), transform 0.15s var(--td-kurve);
}
.td-knopf:active { transform: scale(0.98); }
.td-knopf.is-hell { background: var(--td-akzent-auf-dunkel); color: var(--td-dunkel); }
.td-knopf.is-hell:hover { background: #c8dcec; }
.td-knopf.is-rahmen { color: var(--td-auf-dunkel); box-shadow: inset 0 0 0 1px rgba(179, 207, 229, 0.4); }
.td-knopf.is-rahmen:hover { background: rgba(179, 207, 229, 0.12); }
.td-handys { position: relative; height: 38rem; }
.td-handys .td-handy { position: absolute; width: 16.5rem; }
.td-handys .is-vorne { right: 8%; top: 0.5rem; transform: rotate(6deg); z-index: 1; }
.td-handys .is-hinten { left: 4%; top: 3.5rem; transform: rotate(-7deg); }

/* feature rows: text beside a real screenshot, sides alternate */
.td-reihen { padding-top: 7rem; padding-bottom: 2rem; }
.td-reihe { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(3rem, 7vw, 6.5rem); align-items: center; }
.td-reihe + .td-reihe { margin-top: clamp(5rem, 9vw, 8rem); }
.td-reihe.is-gespiegelt { grid-template-columns: 1fr 1.25fr; }
.td-reihe.is-gespiegelt .td-reihe-bild { order: -1; }
.td-reihe-bild { display: flex; justify-content: center; }
.td-reihe-bild .td-handy { width: min(18.5rem, 100%); }
.td-reihe h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; margin-bottom: 1.25rem; color: var(--td-auf-dunkel); }
.td-reihe p { font-size: 1.1rem; line-height: 1.6; color: var(--td-auf-dunkel-leise); margin: 0 0 1.5rem; max-width: 34rem; }
.td-haken { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: 0.7rem; }
.td-haken li { display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.7rem; align-items: start; font-size: 1.02rem; line-height: 1.5; color: var(--td-auf-dunkel); }
.td-haken svg { width: 1.25rem; height: 1.25rem; margin-top: 0.1rem; fill: var(--td-akzent-auf-dunkel); }
.td-gewinn {
  margin: 0; padding: 1rem 1.25rem; border-radius: 0.75rem; max-width: 34rem;
  background: rgba(179, 207, 229, 0.1); box-shadow: inset 0 0 0 1px rgba(179, 207, 229, 0.18);
  color: var(--td-auf-dunkel); font-weight: 600; line-height: 1.5;
}
.td-gewinn b { color: var(--td-akzent-auf-dunkel); }

/* closing band */
.td-schluss { background: var(--td-dunkel); color: var(--td-auf-dunkel); margin-top: 7rem; padding: 5rem 0 6rem; border-top: 1px solid rgba(179, 207, 229, 0.12); }
.td-anmeldung { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.td-anmeldung-text img { width: 3.5rem; height: 3.5rem; border-radius: 0.9rem; margin-bottom: 1.5rem; box-shadow: 0 0 0 1px rgba(179, 207, 229, 0.25); }
.td-schluss h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; color: var(--td-auf-dunkel); }
.td-schluss h2 span { color: var(--td-akzent-auf-dunkel); }
.td-anmeldung-text p { margin: 1rem 0 0; color: var(--td-auf-dunkel-leise); font-size: 1.15rem; line-height: 1.55; max-width: 26rem; }

/* sign-up form (FormSubmit) */
.td-formular { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 2rem; border-radius: 1.25rem; background: var(--td-dunkel-heller); box-shadow: inset 0 0 0 1px rgba(179, 207, 229, 0.16); }
.td-feld { display: grid; gap: 0.45rem; }
.td-feld.is-breit, .td-formular .td-knopf, .td-formular-hinweis { grid-column: 1 / -1; }
.td-feld label { font-size: 0.95rem; font-weight: 500; color: var(--td-auf-dunkel); }
.td-feld input {
  width: 100%; box-sizing: border-box; padding: 0.85rem 1rem; border: 1px solid transparent; border-radius: 0.65rem;
  background: var(--td-auf-dunkel); color: var(--td-dunkel); font: inherit; font-size: 1rem;
}
.td-feld input:focus { outline: none; border-color: var(--td-akzent-auf-dunkel); box-shadow: 0 0 0 3px rgba(179, 207, 229, 0.35); }
.td-formular .td-knopf { justify-content: center; border: 0; cursor: pointer; margin-top: 0.5rem; }
.td-formular-hinweis { margin: 0.25rem 0 0; font-size: 0.92rem; line-height: 1.5; color: var(--td-auf-dunkel-leise); }
.td-formular-hinweis a { color: var(--td-akzent-auf-dunkel); }
.td-falle { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media screen and (max-width: 991px) {
  .td-hero { grid-template-columns: 1fr; }
  .td-handys { height: 34rem; max-width: 30rem; width: 100%; margin: 0 auto; }
  .td-reihe, .td-reihe.is-gespiegelt { grid-template-columns: 1fr; }
  .td-reihe.is-gespiegelt .td-reihe-bild { order: 0; }
  .td-reihe-bild .td-handy { width: min(16rem, 80%); }
  .td-anmeldung { grid-template-columns: 1fr; }
}
@media screen and (max-width: 767px) {
  .td-hero-band { padding-bottom: 3.5rem; }
  .td-springer { width: 14rem; height: 14rem; right: -3rem; bottom: auto; top: 6rem; }
  .td-handys { height: 25rem; }
  .td-handys .td-handy { width: 11rem; border-radius: 1.8rem; padding: 0.4rem; }
  .td-handys .td-handy img { border-radius: 1.45rem; }
  .td-handys .is-vorne { right: 6%; }
  .td-handys .is-hinten { left: 6%; }
  .td-reihen { padding-top: 4.5rem; }
  .td-schluss { margin-top: 4.5rem; padding-top: 3.5rem; }
  .td-formular { grid-template-columns: 1fr; padding: 1.5rem; }
}

/* teaser on Tony's start page, between "Führe mit Klarheit" and "Kontakt".
   Both phones stay fully inside the block, with the same air on every side. */
.td-teaser {
  position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center;
  padding: 4rem; border-radius: 1.5rem; overflow: hidden;
  background: var(--td-dunkel); color: var(--td-auf-dunkel); font-family: var(--td-text-schrift);
}
.td-teaser .td-springer { right: auto; left: -5rem; bottom: -6rem; width: 22rem; height: 22rem; }
.td-teaser-text { position: relative; }
.td-teaser .td-marke { margin-bottom: 1.5rem; }
.td-teaser h2 { font-size: clamp(2.25rem, 4vw, 3.5rem); line-height: 1.05; color: var(--td-auf-dunkel); margin: 0 0 1rem; }
.td-teaser h2 span { color: var(--td-akzent-auf-dunkel); }
.td-teaser p { font-size: 1.1rem; line-height: 1.55; color: var(--td-auf-dunkel-leise); max-width: 28rem; margin: 0 0 1.75rem; }
/* phone 12rem wide = ~26.6rem tall; container leaves room for the tilt and the offset */
.td-teaser .td-handys { position: relative; height: 31rem; width: 100%; max-width: 26rem; justify-self: center; }
.td-teaser .td-handys .td-handy { width: 12rem; }
.td-teaser .td-handys .is-vorne { right: 1rem; left: auto; top: 0.75rem; }
.td-teaser .td-handys .is-hinten { left: 1rem; top: 3.25rem; }
@media screen and (max-width: 991px) {
  .td-teaser { grid-template-columns: 1fr; padding: 3rem 2rem; gap: 2.5rem; }
}
@media screen and (max-width: 767px) {
  .td-teaser { padding: 2.5rem 1.5rem 2rem; border-radius: 1.25rem; }
  .td-teaser .td-springer { display: none; }
  .td-teaser .td-handys { height: 22.5rem; max-width: 17.5rem; }
  .td-teaser .td-handys .td-handy { width: 9rem; border-radius: 1.6rem; padding: 0.35rem; }
  .td-teaser .td-handys .td-handy img { border-radius: 1.3rem; }
  .td-teaser .td-handys .is-vorne { right: 0.5rem; top: 0.5rem; }
  .td-teaser .td-handys .is-hinten { left: 0.5rem; top: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .td-knopf { transition: none; }
}
