/* =========================================================
   TANDEMFACTORY DESIGN SYSTEM – GLOBAL CSS
   Version 1.0.0
   Enthält ausschließlich wiederverwendbare tf-* Komponenten.
   Keine Page-IDs, keine Themify-Builder-IDs, keine
   riskanten body/#pagewrap/#layout Overrides.
   ========================================================= */


/* =========================================================
   DESIGN TOKENS
   ========================================================= */

:root {
  --tf-blue:       #0032fc;
  --tf-blue-dark:  #061946;
  --tf-yellow:     #ffd200;
  --tf-text:       #0d1830;
  --tf-muted:      #667085;
  --tf-light:      #f4f7fb;
  --tf-divider:    #e8ecf3;
  --tf-white:      #ffffff;
  --tf-radius:     18px;
  --tf-shadow:     0 18px 60px rgba(6, 25, 70, 0.13);
}


/* =========================================================
   GRUNDLAYOUT
   ========================================================= */

.tf-fullbleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.tf-shell {
  width: min(1200px, calc(100% - 64px));
  margin-left: auto;
  margin-right: auto;
}


/* =========================================================
   EYEBROW – KLEINE BEREICHSÜBERSCHRIFTEN
   ========================================================= */

.tf-eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tf-yellow);
}

.tf-eyebrow-dark {
  color: var(--tf-blue);
}


/* =========================================================
   HERO
   ========================================================= */

.tf-hero {
  min-height: 820px;
  display: flex;
  align-items: center;
  color: var(--tf-white);
  background:
    linear-gradient(
      90deg,
      rgba(0, 12, 45, 0.84) 0%,
      rgba(0, 18, 63, 0.61) 43%,
      rgba(0, 0, 0, 0.08) 78%
    );
}

.tf-hero-inner {
  display: flex;
  align-items: center;
  min-height: 820px;
}

.tf-hero-copy {
  max-width: 760px;
  padding-top: 110px;
  padding-bottom: 90px;
}

.tf-hero h1 {
  margin: 0;
  color: var(--tf-white);
  font-size: clamp(48px, 6.4vw, 92px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.97;
}

.tf-hero h1 span {
  color: var(--tf-yellow);
}

.tf-hero p {
  max-width: 650px;
  margin-top: 28px;
  margin-bottom: 0;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}


/* =========================================================
   BUTTONS
   ========================================================= */

.tf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 34px;
}

.tf-btn {
  display: inline-flex;
  box-sizing: border-box;
  min-height: 54px;
  padding: 0 28px;
  border: 2px solid transparent;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  font-weight: 800;
  text-decoration: none !important;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease;
}

.tf-btn:hover {
  transform: translateY(-2px);
}

.tf-btn-primary {
  background: var(--tf-yellow);
  color: #050505 !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.20);
}

.tf-btn-primary:hover {
  background: #ffe04a;
  color: #000000 !important;
}

.tf-btn-secondary {
  border-color: rgba(255, 255, 255, 0.80);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
}

.tf-btn-secondary:hover {
  background: #ffffff;
  color: var(--tf-blue-dark) !important;
}

.tf-actions-dark .tf-btn-secondary {
  border-color: rgba(0, 50, 252, 0.30);
  background: transparent;
  color: var(--tf-blue) !important;
}

.tf-actions-dark .tf-btn-secondary:hover {
  background: var(--tf-light);
}


/* =========================================================
   TEXTLINKS
   ========================================================= */

.tf-text-link {
  color: var(--tf-blue) !important;
  font-weight: 800;
  text-decoration: none !important;
  border-bottom: 2px solid rgba(0, 50, 252, 0.18);
  padding-bottom: 3px;
}

.tf-text-link:hover {
  border-bottom-color: var(--tf-blue);
}

.tf-text-link-light {
  color: #ffffff !important;
  border-bottom-color: rgba(255, 255, 255, 0.35);
}


/* =========================================================
   STATISTIK-KACHELN
   ========================================================= */

.tf-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: -40px;
  position: relative;
  z-index: 3;
  border-radius: var(--tf-radius);
  overflow: hidden;
  background: var(--tf-divider);
  box-shadow: var(--tf-shadow);
}

.tf-stat {
  padding: 28px 24px;
  background: #ffffff;
  text-align: center;
}

.tf-stat strong {
  display: block;
  color: var(--tf-blue);
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.tf-stat span {
  display: block;
  margin-top: 4px;
  color: var(--tf-muted);
  font-size: 13px;
  font-weight: 600;
}


/* =========================================================
   CONTENT & SECTION HEADS
   ========================================================= */

.tf-content-block {
  max-width: 640px;
  padding: 24px 6%;
}

.tf-content-block h2,
.tf-section-head h2 {
  margin-top: 0;
  margin-bottom: 22px;
  color: var(--tf-text);
  font-size: clamp(38px, 4.6vw, 66px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.tf-content-block p,
.tf-section-head p {
  color: var(--tf-muted);
  font-size: 18px;
  line-height: 1.65;
}

.tf-section-head {
  padding-bottom: 36px;
}

.tf-section-head-center {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.tf-section-head-center p {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}


/* =========================================================
   ABSCHLUSS-CTA
   ========================================================= */

.tf-final {
  background: var(--tf-blue-dark);
  color: #ffffff;
}

.tf-final h2 {
  margin: 0;
  color: var(--tf-white);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.97;
}

.tf-final-inner {
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  padding-top: 70px;
  padding-bottom: 70px;
}

.tf-final-actions {
  display: flex;
  flex-direction: column;
  min-width: 260px;
  gap: 12px;
}

.tf-final-actions .tf-btn {
  width: 100%;
}


/* =========================================================
   DETAILSEITEN – FULLWIDTH SECTIONS
   ========================================================= */

.tf-info-full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 82px 0;
  background: #ffffff;
}

.tf-info-full-light {
  background: var(--tf-light);
}

/* Trenner zwischen aufeinanderfolgenden hellen Abschnitten */
.tf-info-full + .tf-info-full {
  border-top: 1px solid var(--tf-divider);
}


/* =========================================================
   DETAILSEITEN – SCHMALE CONTENT-SHELL
   ========================================================= */

.tf-detail-narrow {
  max-width: 860px;
}


/* =========================================================
   DETAILSEITEN – NUMMERIERTES BADGE
   ========================================================= */

.tf-detail-number {
  display: inline-flex;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--tf-yellow);
  color: #050505;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(255, 210, 0, 0.22);
}


/* =========================================================
   DETAILSEITEN – FLIESSTEXT
   ========================================================= */

.tf-detail-body {
  color: var(--tf-muted);
  font-size: 18px;
  line-height: 1.65;
}

.tf-detail-body p {
  margin: 0 0 18px;
}

.tf-detail-body p:last-child {
  margin-bottom: 0;
}

.tf-detail-body a {
  color: var(--tf-blue) !important;
  font-weight: 800;
  text-decoration: none !important;
  border-bottom: 2px solid rgba(0, 50, 252, 0.18);
  padding-bottom: 2px;
}


/* =========================================================
   DETAILSEITEN – ABSCHLUSS-HIGHLIGHT
   ========================================================= */

.tf-detail-finish {
  display: inline-block;
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 7px;
  background: var(--tf-yellow);
  color: #050505;
  font-weight: 900;
}


/* =========================================================
   DETAILSEITEN – BILDER IN ABSCHNITTEN
   ========================================================= */

.tf-detail-image-wrap {
  margin-top: 30px;
}

.tf-detail-image-wrap img {
  display: block;
  width: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--tf-shadow);
}


/* =========================================================
   DETAILSEITEN – SPLIT-LAYOUT (TEXT + BILD)
   Für Seiten mit seitlich angeordnetem Inhalt.
   ========================================================= */

.tf-detail-split .tf-content-block {
  max-width: 650px;
}

.tf-detail-split .tf-content-block .tf-eyebrow {
  margin-bottom: 14px;
}

.tf-detail-split .tf-content-block h2 {
  margin-bottom: 22px;
}


/* =========================================================
   DETAILSEITEN – DUNKLER ABSCHNITT
   ========================================================= */

.tf-detail-dark-copy {
  max-width: 720px;
  padding-top: 92px;
  padding-bottom: 92px;
}

.tf-detail-dark-copy h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(44px, 5.2vw, 72px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.tf-detail-dark-copy p {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.90);
  font-size: 19px;
  line-height: 1.62;
}


/* =========================================================
   DETAILSEITEN – ABSCHLUSS-NAVIGATION
   ========================================================= */

.tf-detail-nav {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 45px;
  align-items: center;
}

.tf-detail-nav-copy {
  max-width: 720px;
}

.tf-detail-nav-links {
  display: grid;
  min-width: 280px;
  gap: 10px;
}

.tf-detail-nav-links a {
  display: block;
  padding: 14px 17px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.06);
}

.tf-detail-nav-links a:hover {
  background: rgba(255, 255, 255, 0.12);
}


/* =========================================================
   RESPONSIVE – TABLET (max-width: 1024px)
   ========================================================= */

@media screen and (max-width: 1024px) {

  .tf-shell {
    width: calc(100% - 48px);
  }

  /* Hero */
  .tf-hero {
    min-height: 760px;
  }

  .tf-hero-inner {
    min-height: 760px;
  }

  .tf-hero-copy {
    max-width: 680px;
    padding-top: 100px;
    padding-bottom: 90px;
  }

  .tf-hero h1 {
    font-size: 68px;
  }

  /* Stats */
  .tf-stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -30px;
  }

  /* Final CTA */
  .tf-final-inner {
    gap: 30px;
  }

}


/* =========================================================
   RESPONSIVE – SMARTPHONE (max-width: 768px)
   ========================================================= */

@media screen and (max-width: 768px) {

  .tf-shell {
    width: calc(100% - 32px);
  }

  .tf-fullbleed {
    width: 100vw;
  }

  /* Eyebrow */
  .tf-eyebrow {
    margin-bottom: 14px;
    font-size: 11px;
  }

  /* Hero */
  .tf-hero {
    min-height: 700px;
    background:
      linear-gradient(
        180deg,
        rgba(0, 12, 45, 0.76) 0%,
        rgba(0, 18, 63, 0.73) 55%,
        rgba(0, 18, 63, 0.80) 100%
      );
  }

  .tf-hero-inner {
    min-height: 700px;
    align-items: center;
  }

  .tf-hero-copy {
    max-width: 100%;
    padding-top: 90px;
    padding-bottom: 40px;
  }

  .tf-hero h1 {
    font-size: 50px;
    line-height: 0.98;
  }

  .tf-hero p {
    margin-top: 20px;
    font-size: 18px;
  }

  /* Buttons */
  .tf-actions {
    margin-top: 26px;
    gap: 10px;
  }

  .tf-actions .tf-btn {
    width: 100%;
    min-height: 56px;
  }

  /* Stats */
  .tf-stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -20px;
    border-radius: 14px;
  }

  .tf-stat {
    padding: 20px 10px;
  }

  .tf-stat strong {
    font-size: 28px;
  }

  .tf-stat span {
    font-size: 11px;
  }

  /* Content */
  .tf-content-block {
    max-width: none;
    padding: 15px 0;
  }

  .tf-content-block h2,
  .tf-section-head h2 {
    font-size: 40px;
  }

  .tf-content-block p,
  .tf-section-head p {
    font-size: 16px;
  }

  /* Final CTA */
  .tf-final-inner {
    min-height: auto;
    display: block;
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .tf-final h2 {
    font-size: 42px;
  }

  .tf-final-actions {
    min-width: 0;
    margin-top: 30px;
  }

  /* Detail Sections */
  .tf-info-full {
    padding: 58px 0;
  }

  .tf-detail-image-wrap {
    margin-top: 24px;
  }

  .tf-detail-image-wrap img {
    min-height: 260px;
    border-radius: 18px;
  }

  .tf-detail-body {
    font-size: 16px;
  }

  .tf-detail-dark-copy {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .tf-detail-dark-copy h2 {
    font-size: 42px;
  }

  .tf-detail-dark-copy p {
    font-size: 17px;
  }

  /* Detail Navigation */
  .tf-detail-nav {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .tf-detail-nav-links {
    min-width: 0;
  }

  /* Detail Split-Layout: Mobile einspaltig */
  .tf-detail-split > .row_inner {
    --col: minmax(0, 1fr) !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-flow: row !important;
  }

  .tf-detail-split > .row_inner > .tb-column,
  .tf-detail-split > .row_inner > .module_column {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
  }

  .tf-detail-split-reverse > .row_inner > :nth-child(1) {
    order: 2 !important;
    margin-top: 28px !important;
  }

  .tf-detail-split-reverse > .row_inner > :nth-child(2) {
    order: 1 !important;
  }

  .tf-detail-split:not(.tf-detail-split-reverse) > .row_inner > :nth-child(2) {
    order: 2 !important;
    margin-top: 28px !important;
  }

  .tf-detail-split .tf-content-block {
    width: 100% !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

}


/* =========================================================
   RESPONSIVE – KLEINE SMARTPHONES (max-width: 480px)
   ========================================================= */

@media screen and (max-width: 480px) {

  .tf-shell {
    width: calc(100% - 24px);
  }

  /* Hero */
  .tf-hero h1 {
    font-size: 43px;
  }

  .tf-hero-copy {
    padding-top: 80px;
    padding-bottom: 35px;
  }

  .tf-hero p {
    font-size: 17px;
  }

  /* Stats */
  .tf-stat strong {
    font-size: 25px;
  }

  .tf-stat span {
    font-size: 10px;
  }

  /* Content */
  .tf-content-block h2,
  .tf-section-head h2 {
    font-size: 35px;
  }

  /* Final CTA */
  .tf-final h2 {
    font-size: 37px;
  }

  /* Detail */
  .tf-detail-dark-copy h2 {
    font-size: 37px;
  }

}

/* =========================================================
   WARUM-SEITE – REASON CARDS
   ========================================================= */
.tf-reason-card .tf-detail-number {
  display: block;
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  box-shadow: none;
  font-size: 32px;
  font-weight: 900;
  color: var(--tf-yellow);
  margin-bottom: 8px;
  padding: 0;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* =========================================================
   ÜBER UNS – GRÜNDER GRID
   ========================================================= */
.tf-founder-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: start;
}

@media screen and (max-width: 768px) {
  .tf-founder-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .tf-founder-grid img {
    width: 100% !important;
    max-width: 320px;
  }
}
