/* ====================================================================
   TBF — Default Theme (editorial-warm)
   --------------------------------------------------------------------
   Cream paper background, deep black text, single terracotta accent.
   Display: Fraunces (variable serif).
   Body:    Manrope (modern geometric sans).
   Mono:    JetBrains Mono (chips & technical labels).
   ==================================================================== */


/* --------------------------------------------------------------------
   1. Reset
   -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }


/* --------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------- */
:root {
  /* Color */
  --bg:           #f7f3ec;       /* warm cream paper           */
  --bg-elevated:  #fdfaf3;       /* card / lifted surfaces     */
  --text:         #0c0c0c;       /* near-black                 */
  --text-muted:   #5c5852;       /* warm gray                  */
  --text-faint:   #94908a;       /* very faint                 */
  --border:       #e5dfd2;       /* hairline border            */
  --accent:       #d4543a;       /* terracotta                 */
  --accent-dark:  #a93f29;
  --accent-soft:  #f5e6e0;

  /* Type */
  --font-display: 'Fraunces', 'Times New Roman', Georgia, serif;
  --font-body:    'Manrope', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', Consolas, monospace;

  /* Spacing */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   32px;
  --space-xl:   64px;
  --space-2xl:  96px;
  --space-3xl:  144px;

  /* Layout */
  --container:  1280px;
  --gutter:     32px;

  /* Misc */
  --radius:     2px;
  --transition: 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}


/* --------------------------------------------------------------------
   3. Base typography
   -------------------------------------------------------------------- */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  /* Subtle paper-grain via radial gradients */
  background-image:
    radial-gradient(circle at 20% 10%, rgba(212, 84, 58, 0.025) 0, transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(26, 58, 58, 0.020) 0, transparent 50%);
  background-attachment: fixed;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text);
}

h1 { font-size: clamp(48px, 8vw, 120px); font-weight: 400; }
h2 { font-size: clamp(36px, 5vw, 72px);  font-weight: 400; }
h3 { font-size: clamp(24px, 3vw, 36px);  font-weight: 500; }
h4 { font-size: 20px; font-weight: 600; line-height: 1.3; }

p { color: var(--text); }

.lead {
  font-size: 21px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 56ch;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.section-label::before {
  content: '// ';
  color: var(--accent);
}


/* --------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  padding: var(--space-3xl) 0;
  position: relative;
}

section + section {
  border-top: 1px solid var(--border);
}


/* --------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
}

.btn--primary {
  background: var(--text);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.btn--secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
}
.btn--secondary:hover {
  background: var(--text);
  color: var(--bg);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid var(--text);
  border-radius: 0;
}
.btn--ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
}


/* --------------------------------------------------------------------
   6. Top nav (sticky after Hero)
   -------------------------------------------------------------------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: opacity var(--transition);
}

.topnav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}

.topnav__brand {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text);
}
.topnav__brand-slash {
  color: var(--accent);
  margin-right: 4px;
}

.topnav__links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.topnav__link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}
.topnav__link:hover { color: var(--accent); }

.topnav__cta {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.topnav__cta:hover {
  background: var(--accent);
  transform: translateY(-1px);
}


/* --------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------- */
.hero {
  min-height: 92vh;
  padding: var(--space-3xl) 0 var(--space-2xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: none;
  position: relative;
  overflow: hidden;
}

.hero__topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-2xl);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__location::before {
  content: '— ';
  color: var(--accent);
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__status-dot {
  width: 8px;
  height: 8px;
  background: #2d8a3a;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(56px, 11vw, 168px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-xl);
}
.hero__headline .accent {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.hero__sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: end;
  margin-top: auto;
}

.hero__intro {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 48ch;
}
.hero__intro strong {
  color: var(--text);
  font-weight: 600;
}

.hero__stats {
  display: flex;
  gap: var(--space-xl);
  justify-content: flex-end;
}

.hero__stat-num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
}
.hero__stat-num--accent { color: var(--accent); }

.hero__stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 8px;
}

.hero__cta-row {
  margin-top: var(--space-xl);
  display: flex;
  gap: var(--space-md);
  align-items: center;
}


/* --------------------------------------------------------------------
   8. About
   -------------------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.about__title {
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
}
.about__title .accent {
  color: var(--accent);
  font-style: italic;
}

.about__body p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}
.about__body p strong {
  color: var(--text);
  font-weight: 600;
}

.about__people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.about__person {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md);
  text-align: center;
}

.about__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--border);
  margin: 0 auto var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 22px;
  color: var(--text-muted);
}

.about__person h4 { margin-bottom: 2px; }
.about__person p {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}


/* --------------------------------------------------------------------
   9. Projects (horizontal carousel)
   -------------------------------------------------------------------- */
.projects__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  gap: var(--space-lg);
}

.projects__title {
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 400;
}
.projects__title .accent { color: var(--accent); font-style: italic; }

.projects__controls {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.projects__nav {
  width: 48px;
  height: 48px;
  border: 1px solid var(--text);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all var(--transition);
}
.projects__nav:hover {
  background: var(--text);
  color: var(--bg);
}
.projects__nav:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.projects__rail {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: var(--space-md);
  /* extend rail to viewport edge for cinematic feel */
  margin: 0 calc(var(--gutter) * -1);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.projects__rail::-webkit-scrollbar { height: 4px; }
.projects__rail::-webkit-scrollbar-track { background: transparent; }
.projects__rail::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.project-card {
  flex: 0 0 420px;
  scroll-snap-align: start;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--text);
}

.project-card__visual {
  height: 200px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow: hidden;
  position: relative;
}
.project-card:nth-child(2n) .project-card__visual { background: #e8e1d0; }
.project-card:nth-child(3n) .project-card__visual { background: #d8e0d6; }
.project-card:nth-child(4n) .project-card__visual { background: #f0e0d2; }

.project-card__category {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.project-card__title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.05;
}

.project-card__what {
  font-size: 15px;
  color: var(--text);
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.project-card__why {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: var(--space-md);
  font-style: italic;
}

.project-card__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tech-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 5px 9px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
}


/* --------------------------------------------------------------------
   10. Social proof
   -------------------------------------------------------------------- */
.proof {
  background: var(--bg-elevated);
}

.proof__head {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.proof__title {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 400;
  margin-bottom: var(--space-sm);
}
.proof__title .accent { color: var(--accent); font-style: italic; }

.proof__sub {
  font-size: 16px;
  color: var(--text-muted);
}

.proof__logos {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  align-items: center;
  flex-wrap: wrap;
  padding: var(--space-lg) 0;
  margin-bottom: var(--space-2xl);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.proof__logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text-muted);
  opacity: 0.7;
  transition: opacity var(--transition);
}
.proof__logo:hover { opacity: 1; color: var(--text); }

.proof__quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.quote {
  padding: var(--space-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}

.quote::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 96px;
  line-height: 0.6;
  color: var(--accent);
  position: absolute;
  top: 24px;
  left: 24px;
  opacity: 0.3;
}

.quote__text {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.4;
  font-weight: 400;
  margin-bottom: var(--space-md);
  position: relative;
  padding-left: var(--space-md);
}

.quote__author {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-left: var(--space-md);
}
.quote__author strong { color: var(--text); font-weight: 600; }


/* --------------------------------------------------------------------
   11. Services
   -------------------------------------------------------------------- */
.services__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: end;
  margin-bottom: var(--space-2xl);
}

.services__title {
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 400;
}
.services__title .accent { color: var(--accent); font-style: italic; }

.services__intro {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.service-bucket {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  transition: all var(--transition);
}
.service-bucket:hover {
  border-color: var(--text);
  transform: translateY(-2px);
}

.service-bucket__price {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.service-bucket__title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.service-bucket__desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: var(--space-md);
}

.service-bucket__list {
  list-style: none;
}
.service-bucket__list li {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  padding: 6px 0;
  border-top: 1px dashed var(--border);
}
.service-bucket__list li::before {
  content: '+ ';
  color: var(--accent);
  font-weight: 600;
}

.sprints {
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius);
  padding: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.sprints__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: var(--space-lg);
  gap: var(--space-md);
}

.sprints__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  color: var(--bg);
  line-height: 1;
}
.sprints__title .accent { color: var(--accent); font-style: italic; }

.sprints__sub {
  font-size: 15px;
  color: rgba(247, 243, 236, 0.6);
  max-width: 32ch;
}

.sprints__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.sprint {
  border: 1px solid rgba(247, 243, 236, 0.18);
  border-radius: var(--radius);
  padding: var(--space-md);
  transition: all var(--transition);
}
.sprint:hover {
  background: rgba(247, 243, 236, 0.05);
  border-color: var(--accent);
}

.sprint__name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--bg);
}

.sprint__price {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.beratung-cta {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

.beratung-cta__text h4 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 4px;
}

.beratung-cta__text p {
  font-size: 14px;
  color: var(--text-muted);
}


/* --------------------------------------------------------------------
   12. Contact
   -------------------------------------------------------------------- */
.contact {
  background: var(--text);
  color: var(--bg);
}
.contact .section-label { color: rgba(247, 243, 236, 0.5); }
.contact .section-label::before { color: var(--accent); }

.contact__title {
  font-size: clamp(56px, 9vw, 144px);
  font-weight: 300;
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--bg);
  margin-bottom: var(--space-lg);
}
.contact__title .accent { color: var(--accent); font-style: italic; }

.contact__sub {
  font-size: 19px;
  color: rgba(247, 243, 236, 0.7);
  max-width: 56ch;
  margin-bottom: var(--space-2xl);
}

.contact__channels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.channel {
  border: 1px solid rgba(247, 243, 236, 0.18);
  border-radius: var(--radius);
  padding: var(--space-md);
  transition: all var(--transition);
}
.channel:hover {
  background: rgba(247, 243, 236, 0.05);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.channel__label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(247, 243, 236, 0.5);
  margin-bottom: 6px;
}

.channel__value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--bg);
  word-break: break-word;
}

.partner-cta {
  border-top: 1px solid rgba(247, 243, 236, 0.18);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.partner-cta__text {
  font-size: 16px;
  color: rgba(247, 243, 236, 0.7);
  max-width: 60ch;
}
.partner-cta__text strong { color: var(--bg); }

.partner-cta a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: all var(--transition);
}
.partner-cta a:hover {
  color: var(--bg);
  border-color: var(--bg);
}


/* --------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------- */
.footer {
  padding: var(--space-xl) 0;
  background: var(--text);
  color: rgba(247, 243, 236, 0.5);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  border-top: 1px solid rgba(247, 243, 236, 0.12);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__brand strong { color: var(--bg); font-weight: 600; }

.footer__links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}
.footer__links a {
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--accent); }


/* --------------------------------------------------------------------
   14. Theme switcher (overrides shared injected DOM)
   -------------------------------------------------------------------- */
.tbf-theme-switcher {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: rgba(12, 12, 12, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.tbf-theme-switcher__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 243, 236, 0.5);
  padding: 0 10px 0 12px;
}

.tbf-theme-switcher__btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 8px 14px;
  border-radius: 999px;
  color: rgba(247, 243, 236, 0.55);
  transition: all 150ms ease;
}
.tbf-theme-switcher__btn:hover {
  color: var(--bg);
  background: rgba(247, 243, 236, 0.08);
}
.tbf-theme-switcher__btn.is-active {
  background: var(--accent);
  color: var(--bg);
}


/* --------------------------------------------------------------------
   15. Reveal animation (single page-load stagger)
   -------------------------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 800ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.fade-up:nth-child(1) { animation-delay: 0ms;   }
.fade-up:nth-child(2) { animation-delay: 100ms; }
.fade-up:nth-child(3) { animation-delay: 200ms; }
.fade-up:nth-child(4) { animation-delay: 300ms; }
.fade-up:nth-child(5) { animation-delay: 400ms; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}


/* --------------------------------------------------------------------
   16. Responsive (mobile-graceful, desktop-priority)
   -------------------------------------------------------------------- */
@media (max-width: 900px) {
  :root {
    --space-3xl: 80px;
    --space-2xl: 56px;
    --gutter:    20px;
  }

  .topnav__links { display: none; }

  .hero__sub          { grid-template-columns: 1fr; gap: var(--space-lg); }
  .hero__stats        { justify-content: flex-start; gap: var(--space-md); }
  .hero__stat-num     { font-size: 36px; }

  .about__grid        { grid-template-columns: 1fr; gap: var(--space-lg); }

  .projects__head     { flex-direction: column; align-items: flex-start; }
  .projects__controls { display: none; }
  .project-card       { flex: 0 0 80vw; }

  .proof__quotes      { grid-template-columns: 1fr; }
  .proof__logos       { gap: var(--space-md); }
  .proof__logo        { font-size: 20px; }

  .services__head     { grid-template-columns: 1fr; }
  .services__grid     { grid-template-columns: 1fr; }
  .sprints__grid      { grid-template-columns: 1fr 1fr; }
  .sprints__head      { flex-direction: column; align-items: flex-start; }
  .beratung-cta       { flex-direction: column; align-items: flex-start; }

  .contact__channels  { grid-template-columns: 1fr 1fr; }

  .footer__inner      { justify-content: flex-start; }

  .tbf-theme-switcher { top: 12px; right: 12px; }
  .tbf-theme-switcher__label { display: none; }
  .tbf-theme-switcher__btn   { padding: 8px 10px; font-size: 10px; }
}

@media (max-width: 520px) {
  .sprints__grid       { grid-template-columns: 1fr; }
  .contact__channels   { grid-template-columns: 1fr; }
}
