/* ============================================================
   tink.energy Landing Page
   Design tokens from Figma (node 5413:325)
   ============================================================ */

/* ---- Moderat Font (tink.energy brand font) ---- */
@font-face {
  font-family: 'Moderat';
  src: url('https://cdn.prod.website-files.com/6808f7913a16bb46e8d96c45/6809e0de5834991ef7a7a6df_Moderat-Regular.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Moderat';
  src: url('https://cdn.prod.website-files.com/6808f7913a16bb46e8d96c45/6809e0bd3b3c82431458d20d_Moderat-Medium.ttf') format('truetype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Moderat';
  src: url('https://cdn.prod.website-files.com/6808f7913a16bb46e8d96c45/6809e08f0b0efb6918a18022_Moderat-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Moderat';
  src: url('https://cdn.prod.website-files.com/6808f7913a16bb46e8d96c45/6809e0b3a4377a3269f8260f_Moderat-Light.ttf') format('truetype');
  font-weight: 300; font-style: normal; font-display: swap;
}

:root {
  --green:       #007f55;
  --green-dark:  #006644;
  --black:       #161616;
  --text:        #4a4a4a;
  --muted:       #555f6d;
  --bg:          #f9f9fa;
  --white:       #ffffff;
  --border:      #e5e7eb;
  --border-soft: #eeeeef;
  --border-card: #eae7e7;

  --font-primary: 'Moderat', 'DM Sans', sans-serif;
  --font-alt:     'Hanken Grotesk', sans-serif;
  --font-ui:      'Inter', sans-serif;

  --radius-card: 12px;
  --radius-btn:  9999px;
  --shadow-card: 0 10px 15px -3px rgba(0,0,0,.10), 0 4px 6px -4px rgba(0,0,0,.10);
  --shadow-sm:   0 1px 2px 0 rgba(0,0,0,.05);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-primary); color: var(--black); background: var(--white); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Layout helpers ---- */
.container       { max-width: 1280px; margin: 0 auto; padding: 0 64px; }
.container-wide  { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
.container-narrow{ max-width: 816px;  margin: 0 auto; padding: 0 48px; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.80);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.header__logo img {
  height: 56px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.header__counter {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.header__counter-label {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
}

.header__counter-number {
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.03em;
}

.header__counter-arrow {
  flex-shrink: 0;
  display: block;
}

/* ============================================================
   INFO BAR
   ============================================================ */
.info-bar {
  background: var(--green);
}

.info-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.info-bar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}

.info-bar__item img {
  height: 18px;
  width: auto;
}

/* ============================================================
   HEYFLOW
   ============================================================ */
.heyflow-section {
  background: var(--white);
  padding: 40px 0;
  text-align: center;
  overflow: hidden;
}

.heyflow-headline {
  font-family: var(--font-primary);
  font-size: 36px;
  font-weight: 400;
  color: var(--black);
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.heyflow-section heyflow-wrapper {
  display: inline-block;
  width: 800px;
  max-width: 100%;
  text-align: left;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: rgba(249,249,250,.34);
  padding: 16px 0;
  overflow: visible;
}

.hero__inner {
  display: flex;
  align-items: stretch;
  gap: 48px;
  overflow: visible;
}

.hero__text {
  flex: 0 0 auto;
  width: 52%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero__image {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  border-radius: 12px;
}

.hero__text h1 {
  font-family: var(--font-primary);
  font-size: 44px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--black);
  letter-spacing: -0.02em;
}

.hero__text h1 strong {
  font-weight: 800;
}

.hero__usps {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 0;
  list-style: none;
  align-self: flex-start;
}

.hero__usps li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-primary);
  font-size: 21px;
  font-weight: 800;
  color: var(--black);
  background: #ffffff;
  border-radius: 50px;
  padding: 10px 22px 10px 16px;
  justify-content: flex-start;
  box-shadow: 0 4px 20px rgba(0,0,0,0.13);
}

.hero__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

/* ============================================================
   LOGO SLIDER
   ============================================================ */
.logo-slider-section {
  background: var(--white);
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.logo-track-wrap {
  overflow: hidden;
  width: 100%;
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.logo-track:hover {
  animation-play-state: paused;
}

.logo-track img {
  height: 26px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  flex-shrink: 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   PROCESS
   ============================================================ */
.process {
  background: var(--green);
  padding: 64px 0;
}

.process__inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Timeline within left column */
.process__timeline {
  position: relative;
}

.process__timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: rgba(255,255,255,0.30);
  transform: translateX(-50%);
  z-index: 0;
}

.process__row {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  align-items: center;
  min-height: 110px;
  padding: 12px 0;
  gap: 24px;
}

.process__center {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.process__bullet {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  color: var(--green);
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.process__side {
  display: flex;
  align-items: center;
}

/* Odd rows: icon left → push right toward line */
.process__side--icon       { justify-content: flex-end; }
/* Even rows: icon right → push left toward line */
.process__side--icon-right { justify-content: flex-start; }

/* Odd rows: text right → push left toward line */
.process__side--text       { justify-content: flex-start; }
/* Even rows: text left → push right toward line */
.process__side--text-left  { justify-content: flex-end; text-align: right; }

.process__text h3 {
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* Video column */
.process__video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.process__video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   VIDEO SECTION
   ============================================================ */
.video-section {
  padding: 48px 0;
  background: var(--white);
}

.video-wrap {
  max-width: 560px;
  margin: 0 auto;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.video-wrap iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.comparison {
  padding: 48px 0 64px;
  background: var(--white);
}

.comparison__inner {
  max-width: 1136px;
  margin: 0 auto;
  padding: 0 72px;
}

.comparison__table-wrap {
  background: var(--white);
  border: none;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 32px;
}

.comparison__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.comparison__th {
  padding: 24px 20px;
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  color: var(--black);
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}

.comparison__th--feature {
  width: 34%;
  text-align: left;
}

.comparison__th--tink {
  background: var(--green);
  color: white;
  font-size: 20px;
  padding: 28px 20px;
}

.comparison__logo {
  height: 38px;
  width: auto;
  margin: 0 auto;
  filter: brightness(0) invert(1);
}

.comparison__feature {
  padding: 20px 24px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: #1a1c1d;
  line-height: 1.5;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}

.comparison__cell {
  text-align: center;
  padding: 18px 16px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}

.comparison__cell svg {
  display: block;
  margin: 0 auto;
}

.comparison__cell--tink {
  background: var(--green);
  border-bottom: none;
}

.comparison__th--tink {
  border-bottom: none;
}

.comparison__cta {
  display: flex;
  justify-content: center;
  padding-top: 16px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius-card);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .05em;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
}

.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--green {
  background: var(--green);
  color: var(--white);
}

.btn--green img { height: 16px; width: auto; filter: brightness(10); }

.btn--white {
  background: var(--white);
  color: var(--green);
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-primary);
  letter-spacing: .10em;
  text-transform: uppercase;
  padding: 20px 48px;
  border-radius: var(--radius-btn);
}

/* ============================================================
   TEAM
   ============================================================ */
.team {
  background: var(--white);
  padding: 56px 0 80px;
}

.team__header {
  text-align: center;
  margin-bottom: 48px;
}

.team__header h2 {
  font-family: var(--font-primary);
  font-size: 40px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
  margin-bottom: 12px;
}

.team__header p {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}

.team__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.team__card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  height: 440px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
}

.team__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .4s ease;
}

.team__card:hover img {
  transform: scale(1.05);
}

.team__card-info {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.80) 0%, rgba(0,0,0,.20) 50%, rgba(0,0,0,0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
}

.team__card-info h3 {
  font-family: var(--font-alt);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 4px;
}

.team__card-info span {
  font-family: var(--font-alt);
  font-size: 16px;
  font-weight: 400;
  color: var(--white);
  opacity: .80;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  background: var(--white);
  padding: 64px 0 100px;
}

.testimonials__header {
  text-align: center;
  margin-bottom: 64px;
}

.testimonials__header h2 {
  font-family: var(--font-primary);
  font-size: 40px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonial {
  background: var(--bg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 389px;
}

.testimonial__stars {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
}

blockquote {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 500;
  color: var(--black);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 32px;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.testimonial__name {
  font-family: var(--font-alt);
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 4px;
}

.testimonial__location {
  font-family: var(--font-alt);
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  background: var(--bg);
  padding: 100px 0;
}

.faq__inner h2 {
  font-family: var(--font-primary);
  font-size: 40px;
  font-weight: 700;
  color: var(--black);
  text-align: center;
  margin-bottom: 64px;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq__item {
  background: var(--white);
  border: 1px solid var(--border);
  list-style: none;
}

.faq__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px;
  cursor: pointer;
  list-style: none;
  gap: 24px;
}

.faq__summary::-webkit-details-marker { display: none; }

.faq__summary span {
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.5;
}

.faq__chevron {
  flex-shrink: 0;
  transition: transform .25s ease;
}

details[open] .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  padding: 0 32px 32px;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.6;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--green);
  padding: 96px 0;
}

.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.cta-banner__text h2 {
  font-family: var(--font-primary);
  font-size: 40px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 16px;
}

.cta-banner__text p {
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 500;
  color: var(--white);
  opacity: .90;
  line-height: 1.4;
}

/* ============================================================
   DISCLAIMER
   ============================================================ */
.disclaimer {
  background: #f9f9fa !important;
  padding: 48px 64px !important;
  font-size: 14px;
  color: #999;
  line-height: 1.5;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg);
  padding: 16px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.footer p {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.footer__links {
  display: flex;
  gap: 32px;
}

.footer__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: underline;
}

.footer__links a:hover { color: var(--green); }

/* ============================================================
   RESPONSIVE — tablet (≤1100px)
   ============================================================ */
@media (max-width: 1100px) {
  .hero__text h1 { font-size: 42px; }
}

/* ============================================================
   RESPONSIVE — tablet portrait (≤900px)
   ============================================================ */
@media (max-width: 900px) {
  .container, .container-wide, .container-narrow { padding: 0 24px; }
  .comparison__inner { padding: 0 24px; }

  /* Hero */
  .hero__inner { flex-direction: column; gap: 20px; }
  .hero__text { width: 100%; max-width: 100%; justify-content: flex-start; gap: 16px; }
  .hero__text h1 { font-size: 36px; }
  .hero__image { width: 100%; height: 260px; border-radius: 12px; }

  /* Process */
  .process__timeline::before { display: none; }
  .process__row {
    grid-template-columns: 1fr 48px 1fr;
    gap: 16px;
    min-height: 80px;
  }

  /* Team */
  .team__cards { grid-template-columns: repeat(3, 1fr); }
  .team__card { height: 300px; }

  /* Testimonials */
  .testimonials__grid { grid-template-columns: 1fr 1fr; gap: 20px; }

  /* CTA */
  .cta-banner__inner { flex-direction: column; align-items: flex-start; }
  .cta-banner__text h2 { font-size: 32px; }

  /* Info bar */
  .info-bar__inner { flex-direction: column; gap: 12px; padding: 16px 24px; }
  .info-bar__item { font-size: 14px; }
}

/* ============================================================
   RESPONSIVE — mobile (≤600px)
   ============================================================ */
@media (max-width: 600px) {

  /* ── Header ── */
  .header__logo img { height: 34px; max-width: 110px; }
  .header__counter { font-size: 12px; gap: 4px; }
  .header__counter-number { font-size: 15px; }
  .header__counter-arrow { width: 15px; height: 15px; }

  /* ── Hero ── */
  .hero { padding: 14px 0 20px; }
  .hero__inner { flex-direction: column; gap: 16px; }
  .hero__text { width: 100%; max-width: 100%; justify-content: flex-start; gap: 14px; }
  .hero__text h1 { font-size: 26px; line-height: 1.15; }
  .hero__image { width: 100%; height: 200px; border-radius: 10px; }
  .hero__usps { gap: 6px; align-self: stretch; }
  .hero__usps li { font-size: 15px; padding: 9px 14px 9px 10px; gap: 10px; width: 100%; justify-content: flex-start; }
  .hero__usps li svg { flex-shrink: 0; width: 20px; height: 20px; }

  /* ── Heyflow ── */
  .heyflow-section { padding: 28px 0; }
  .heyflow-headline { font-size: 24px; margin-bottom: 16px; }

  /* ── Logo Slider — ausblenden ── */
  .logo-slider-section { display: none; }

  /* ── Process — einfache vertikale Liste ── */
  .process { padding: 40px 0; }
  .process__inner { display: block; }
  .process__timeline { display: flex; flex-direction: column; gap: 0; }
  .process__timeline::before { display: none; }
  .process__row {
    display: flex;
    align-items: center;
    gap: 16px;
    grid-template-columns: unset;
    min-height: unset;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }
  .process__row:last-child { border-bottom: none; }
  /* Auf Mobile: alle Icons ausblenden, nur Bullet + Text */
  .process__side--icon,
  .process__side--icon-right { display: none; }
  /* Text immer links, egal ob left/right variant */
  .process__side--text,
  .process__side--text-left { text-align: left; justify-content: flex-start; }
  /* Bullet immer zuerst */
  .process__center { order: -1; }
  .process__text h3 { font-size: 18px; }
  .process__bullet { width: 40px; height: 40px; font-size: 17px; flex-shrink: 0; }

  /* ── Comparison — ausblenden ── */
  .comparison { display: none; }

  /* ── Team — kompakt ── */
  .team { padding: 36px 0 48px; }
  .team__header { margin-bottom: 28px; }
  .team__header h2 { font-size: 26px; }
  .team__cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .team__card { height: 180px; }
  .team__card-info { padding: 16px; }
  .team__card-info h3 { font-size: 16px; }
  .team__card-info span { font-size: 13px; }

  /* ── Video — ausblenden ── */
  .video-section { display: none; }

  /* ── Testimonials ── */
  .testimonials { padding: 40px 0 60px; }
  .testimonials__header { margin-bottom: 32px; }
  .testimonials__header h2 { font-size: 26px; }
  .testimonials__grid { grid-template-columns: 1fr; gap: 16px; }
  .testimonial { padding: 28px; min-height: unset; }
  blockquote { font-size: 16px; margin-bottom: 20px; }

  /* ── FAQ ── */
  .faq { padding: 48px 0; }
  .faq__inner h2 { font-size: 26px; margin-bottom: 32px; }
  .faq__summary { padding: 20px; gap: 16px; }
  .faq__summary span { font-size: 17px; }
  .faq__answer { padding: 0 20px 20px; font-size: 15px; }

  /* ── CTA Banner ── */
  .cta-banner { padding: 48px 0; }
  .cta-banner__inner { flex-direction: column; align-items: center; text-align: center; gap: 28px; }
  .cta-banner__text h2 { font-size: 26px; }
  .cta-banner__text p { font-size: 16px; }
  .btn--large { font-size: 16px; padding: 16px 32px; width: 100%; justify-content: center; }

  /* ── Disclaimer ── */
  .disclaimer { padding: 32px 24px !important; font-size: 13px; }

  /* ── Footer ── */
  .footer { padding: 12px 0; }
  .footer__inner { flex-direction: column; align-items: center; gap: 12px; text-align: center; }
  .footer__links { gap: 16px; flex-wrap: wrap; justify-content: center; }
}
