/* ==========================================================================
   Timo Christian Blasberg - Amazon Ads
   Design-System
   ========================================================================== */

:root {
  /* --------------------------------------------------------------
     Farben – abgeleitet aus dem TCB-Logo und den Case-Study-PDFs
     Navy = Flaeche | Tuerkis = Struktur | Orange = Handlung
     -------------------------------------------------------------- */

  /* Navy (dunkle Flaechen) */
  --ink:        #12232F;
  --ink-soft:   #1B3242;
  --ink-line:   #294455;

  /* Helle Flaechen */
  --paper:      #FBFCFC;
  --paper-alt:  #EFF4F5;

  /* Text */
  --text:       #12232F;
  --text-mute:  #57707F;
  --text-inv:   #E8F0F3;
  --text-inv-m: #93AEBC;

  /* Orange – ausschliesslich fuer Handlungselemente */
  --accent:     #F0932B;
  --accent-dk:  #B4650F;
  --accent-lt:  #FDF0DF;

  /* Tuerkis – Labels, Linien, Akzente */
  --teal:       #3FBFAF;
  --teal-dk:    #1C8577;
  --teal-lt:    #E3F5F2;

  --line:       #DCE5E8;

  /* Typografie */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Masse */
  --wrap: 1140px;
  --wrap-narrow: 780px;
  --radius: 14px;
  --radius-sm: 8px;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -0.022em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); letter-spacing: -0.032em; }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.5rem); letter-spacing: -0.028em; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

ul { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .45em; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.wrap--narrow { max-width: var(--wrap-narrow); }

section { padding: clamp(60px, 8vw, 108px) 0; }

.sec--alt  { background: var(--paper-alt); }
.sec--dark { background: var(--ink); color: var(--text-inv); }
.sec--dark h1, .sec--dark h2, .sec--dark h3 { color: #fff; }
.sec--dark .lead { color: var(--text-inv-m); }

.sec-head { max-width: 720px; margin-bottom: 48px; }
.sec-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal-dk);
  margin-bottom: 14px;
}

.sec--dark .eyebrow { color: var(--teal); }

.lead {
  font-size: clamp(1.05rem, 1.9vw, 1.22rem);
  color: var(--text-mute);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: .97rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
  white-space: nowrap;
}

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

.btn--primary {
  background: var(--accent);
  color: #1A1206;
  box-shadow: 0 6px 20px -8px rgba(240,147,43,.7);
}
.btn--primary:hover { background: #F5A44A; }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--text); }

.sec--dark .btn--ghost,
.hero .btn--ghost {
  border-color: var(--ink-line);
  color: var(--text-inv);
}
.sec--dark .btn--ghost:hover,
.hero .btn--ghost:hover { border-color: var(--text-inv-m); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251,252,252,.88);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}

.site-header.is-stuck { border-bottom-color: var(--line); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  position: relative;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.15;
}
.brand__name {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.02rem;
}
.brand__role {
  font-size: .7rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 600;
}

.nav { display: flex; align-items: center; gap: 30px; }

.nav a {
  text-decoration: none;
  font-size: .94rem;
  font-weight: 500;
  color: var(--text-mute);
  transition: color .15s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .btn { color: #1A1206; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 17px; height: 1.5px;
  background: var(--text);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ''; position: absolute; left: 0;
  width: 17px; height: 1.5px; background: var(--text);
}
.nav-toggle span::before { top: -5.5px; }
.nav-toggle span::after  { top:  5.5px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  background: var(--ink);
  color: var(--text-inv);
  padding: clamp(66px, 9vw, 118px) 0 clamp(60px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto -10% -60% 40%;
  height: 520px;
  background: radial-gradient(closest-side, rgba(63,191,175,.22), transparent 72%);
  pointer-events: none;
}

.hero__inner { position: relative; z-index: 1; max-width: 830px; }

.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--teal); }

.hero__sub {
  font-size: clamp(1.05rem, 2vw, 1.24rem);
  color: var(--text-inv-m);
  max-width: 640px;
  margin-bottom: 34px;
}

.hero__note {
  margin-top: 22px;
  font-size: .87rem;
  color: var(--text-inv-m);
}

.hero__strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid var(--ink-line);
  font-size: .88rem;
  color: var(--text-inv-m);
}
.hero__strip span::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--teal);
  margin-right: 9px;
  vertical-align: middle;
}

/* Kleiner Seitenkopf fuer Unterseiten */
.pagehead {
  background: var(--ink);
  color: var(--text-inv);
  padding: clamp(52px, 7vw, 88px) 0 clamp(46px, 6vw, 72px);
}
.pagehead h1 { color: #fff; }
.pagehead p { color: var(--text-inv-m); max-width: 620px; font-size: 1.1rem; }

/* --------------------------------------------------------------------------
   Grids & Karten
   -------------------------------------------------------------------------- */

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
}

.sec--dark .card {
  background: var(--ink-soft);
  border-color: var(--ink-line);
}

.card h3 { margin-bottom: .45em; }
.card p  { color: var(--text-mute); font-size: .96rem; margin: 0; }
.sec--dark .card p { color: var(--text-inv-m); }

.card__num {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--teal-dk);
  display: block;
  margin-bottom: 14px;
}
.sec--dark .card__num { color: var(--teal); }

/* Problem-Karten */
.problem {
  border-left: 3px solid var(--teal);
  background: #fff;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 22px 24px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.problem h3 { font-size: 1.04rem; margin-bottom: .3em; }
.problem p  { font-size: .94rem; color: var(--text-mute); margin: 0; }

/* Fakten */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2px;
  background: var(--ink-line);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.fact { background: var(--ink); padding: 30px 26px; }
.fact__k {
  display: block;
  font-size: clamp(1.6rem, 3.2vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--teal);
  line-height: 1.05;
  margin-bottom: 6px;
}
.fact__v { font-size: .9rem; color: var(--text-inv-m); }

/* --------------------------------------------------------------------------
   Tools
   -------------------------------------------------------------------------- */

.tool {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
}

.tool__tag {
  align-self: flex-start;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-dk);
  background: var(--teal-lt);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 16px;
}

.tool h3 { font-size: 1.3rem; }
.tool p { color: var(--text-mute); font-size: .96rem; }

.tool__list { margin: 6px 0 0; padding-left: 0; list-style: none; }
.tool__list li {
  position: relative;
  padding-left: 26px;
  font-size: .94rem;
  color: var(--text-mute);
}
.tool__list li::before {
  content: '';
  position: absolute;
  left: 4px; top: .5em;
  width: 7px; height: 11px;
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */

.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
}
.quote__text {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 22px;
  flex: 1;
}
.quote__by { font-size: .9rem; font-weight: 600; }
.quote__org { font-size: .85rem; color: var(--text-mute); }

/* --------------------------------------------------------------------------
   Prozess
   -------------------------------------------------------------------------- */

.steps { counter-reset: step; display: grid; gap: 0; }

.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 22px;
  padding: 28px 0;
  border-top: 1px solid var(--ink-line);
}
.step:last-child { border-bottom: 1px solid var(--ink-line); }

.step::before {
  content: counter(step, decimal-leading-zero);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: -0.02em;
  padding-top: 2px;
}
.step h3 { margin-bottom: .3em; color: #fff; }
.step p { color: var(--text-inv-m); font-size: .96rem; margin: 0; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq { border-top: 1px solid var(--line); }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 44px 22px 0;
  font-weight: 600;
  font-size: 1.03rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  position: absolute;
  right: 8px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--teal-dk);
  border-bottom: 2px solid var(--teal-dk);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details > div {
  padding: 0 20px 24px 0;
  color: var(--text-mute);
  font-size: .98rem;
  max-width: 68ch;
}

/* --------------------------------------------------------------------------
   Formular
   -------------------------------------------------------------------------- */

.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

label {
  display: block;
  font-size: .87rem;
  font-weight: 600;
  margin-bottom: 7px;
}

input, select, textarea {
  width: 100%;
  font: inherit;
  font-size: .97rem;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(63,191,175,.20);
}
textarea { resize: vertical; min-height: 130px; }

.consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: .87rem;
  color: var(--text-mute);
  line-height: 1.5;
}
.consent input { width: 17px; height: 17px; margin-top: 2px; flex: 0 0 auto; }

.form-note { font-size: .83rem; color: var(--text-mute); }

/* --------------------------------------------------------------------------
   CTA-Band
   -------------------------------------------------------------------------- */

.cta {
  background: var(--accent);
  color: #1A1206;
  border-radius: var(--radius);
  padding: clamp(38px, 5vw, 60px);
  text-align: center;
}
.cta h2 { color: #1A1206; margin-bottom: .35em; }
.cta p { color: #5A3B0C; max-width: 560px; margin-inline: auto; margin-bottom: 28px; }
.cta .btn--primary { background: var(--ink); color: #fff; box-shadow: none; }
.cta .btn--primary:hover { background: #1E3646; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--text-inv-m);
  padding: 64px 0 34px;
  font-size: .93rem;
}
.site-footer a { color: var(--text-inv-m); text-decoration: none; }
.site-footer a:hover { color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--ink-line);
}
.footer-grid h4 {
  color: #fff;
  font-size: .78rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; }

.footer-bottom {
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  justify-content: space-between;
  font-size: .84rem;
}

.legal-note {
  font-size: .78rem;
  color: #6E8896;
  line-height: 1.5;
  margin-top: 18px;
  max-width: 62ch;
}

/* --------------------------------------------------------------------------
   Prose
   -------------------------------------------------------------------------- */

.prose { max-width: 68ch; }
.prose h2 { margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.7em; }
.prose ul { color: var(--text-mute); }

/* --------------------------------------------------------------------------
   Utilities & Animation
   -------------------------------------------------------------------------- */

.mt-3 { margin-top: 34px; }
.center { text-align: center; }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: absolute;
    top: 100%; left: -24px; right: -24px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav .btn { margin-top: 14px; justify-content: center; border-bottom: none; }

  .form__row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .step { grid-template-columns: 44px 1fr; gap: 14px; }
  body { font-size: 16px; }
}

/* --------------------------------------------------------------------------
   Case Studies
   -------------------------------------------------------------------------- */

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 30px 0 0;
}

.kpi {
  background: var(--teal-lt);
  border: 1px solid #C9E9E4;
  border-radius: var(--radius-sm);
  padding: 22px 20px;
  text-align: center;
}
.kpi__k {
  display: block;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--teal-dk);
  line-height: 1.1;
  margin-bottom: 6px;
}
.kpi__v {
  font-size: .85rem;
  color: var(--text-mute);
  line-height: 1.45;
  display: block;
}

.sec--dark .kpi {
  background: var(--ink-soft);
  border-color: var(--ink-line);
}
.sec--dark .kpi__k { color: var(--teal); }
.sec--dark .kpi__v { color: var(--text-inv-m); }

.case {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  margin-bottom: 34px;
}

.case__head {
  background: var(--ink);
  color: var(--text-inv);
  padding: 34px 32px;
  border-left: 5px solid var(--teal);
}
.case__head h2 { color: #fff; margin-bottom: .3em; }
.case__head .eyebrow { color: var(--teal); }
.case__meta {
  color: var(--text-inv-m);
  font-size: .95rem;
  margin: 0;
}

.case__body { padding: 32px; }
.case__body .kpis { margin-top: 0; margin-bottom: 34px; }

.case__scale {
  font-size: .87rem;
  color: var(--text-mute);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  margin-bottom: 30px;
}

.case__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 34px;
}
.case__grid h3 { font-size: 1.05rem; margin-bottom: .7em; }

.pull {
  border-left: 3px solid var(--teal);
  background: var(--teal-lt);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 30px 0 0;
  font-size: 1rem;
  font-style: italic;
  color: var(--text);
}

.disclaimer {
  font-size: .85rem;
  color: var(--text-mute);
  background: var(--paper-alt);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  line-height: 1.55;
}

@media (max-width: 620px) {
  .case__head, .case__body { padding: 26px 22px; }
}

/* --------------------------------------------------------------------------
   Logo & Portraits
   -------------------------------------------------------------------------- */

.brand { flex-direction: row; align-items: center; gap: 11px; }
.brand__logo { width: 38px; height: 38px; flex: 0 0 auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }

/* Hero zweispaltig */
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0,1.3fr) minmax(0,.7fr);
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero__grid .hero__inner { max-width: none; }

.portrait { position: relative; justify-self: center; }
.portrait img {
  width: 100%;
  border-radius: 50%;
  display: block;
}
.portrait::after {
  content: '';
  position: absolute;
  inset: -12px;
  border: 2px solid var(--teal);
  border-radius: 50%;
  opacity: .55;
  pointer-events: none;
}
.portrait--hero { width: 100%; max-width: 320px; }

.portrait__cap {
  margin-top: 26px;
  text-align: center;
  font-size: .84rem;
  color: var(--text-inv-m);
  line-height: 1.5;
}
.portrait__cap strong { color: #fff; display: block; font-size: .95rem; margin-bottom: 3px; }

/* Seitenkopf zweispaltig (Über mich) */
.pagehead__grid {
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(0,.75fr);
  gap: 52px;
  align-items: center;
}
.portrait--sw { width: 100%; max-width: 300px; }
.portrait--sw img { border-radius: var(--radius); }
.portrait--sw::after { border-radius: var(--radius); inset: -10px; }

/* Kleines rundes Portrait (Kontakt) */
.portrait--mini {
  width: 78px;
  margin-bottom: 16px;
  justify-self: start;
}
.portrait--mini::after { inset: -5px; border-color: var(--teal); opacity: .7; }

@media (max-width: 880px) {
  .hero__grid,
  .pagehead__grid { grid-template-columns: 1fr; gap: 42px; }
  .portrait--hero { max-width: 230px; }
  .portrait--sw   { max-width: 240px; }
  .hero__grid .portrait,
  .pagehead__grid .portrait { justify-self: center; }
}
