/* Grundgeruest: Typografie, Kopf, Fuss, Knoepfe, Bausteine, die auf jeder
   Seite vorkommen. Seitenspezifisches steht in seiten.css. */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--schwarz);
  color: var(--weiss);
  font-family: var(--schrift-text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--schrift-titel);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1;
}

h1 {
  font-size: clamp(40px, 6.4vw, 80px);
}

h2 {
  font-size: clamp(32px, 4.4vw, 55px);
}

h3 {
  font-size: clamp(26px, 2.9vw, 35px);
  line-height: 1.2;
}

p {
  margin: 0;
}

.inhalt {
  width: 100%;
  max-width: var(--breite);
  margin-inline: auto;
  padding-inline: var(--rand);
}

/* Die kleine Pille ueber den Ueberschriften */
.pille {
  display: inline-block;
  padding: 10px 15px;
  border-radius: var(--rund-chip);
  background: var(--chip);
  color: var(--gelb);
  font-family: var(--schrift-pille);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.42px;
  text-transform: uppercase;
}

.pille--hell {
  color: var(--gelb-hell);
}

/* ---------------------------------------------------------------- Knoepfe */

.knopf {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  font-family: var(--schrift-ui);
  font-size: 20px;
  font-weight: 500;
  line-height: 26px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

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

.knopf--gelb {
  padding: 12px 24px;
  border-radius: var(--rund-knopf);
  background: var(--gelb);
  color: #000;
}

.knopf--gelb:hover {
  background: var(--gelb-hell);
}

/* Kopfzeile oben rechts */
.knopf--pille {
  padding: 12px 18px;
  border-radius: 50px;
  background: var(--gelb);
  color: var(--schwarz);
  font-family: var(--schrift-text);
  font-size: 14px;
  line-height: 15px;
  letter-spacing: -0.28px;
  text-transform: uppercase;
}

/* "Zum Report" auf der Startseite */
.knopf--klein {
  padding: 20px 30px;
  border-radius: 10px;
  background: var(--gelb);
  color: var(--dunkel);
  font-size: 16px;
  font-weight: 700;
  line-height: 19px;
}

/* Umrandet auf hellem Grund */
.knopf--linie {
  padding: 20px 30px;
  border: 1px solid var(--dunkel);
  border-radius: 10px;
  color: var(--dunkel);
  font-size: 16px;
  font-weight: 600;
  line-height: 19px;
}

.knopf--linie:hover {
  background: var(--dunkel);
  color: var(--weiss);
}

.knopf__pfeil {
  width: 1em;
  flex: none;
}

/* ------------------------------------------------------------------- Kopf */

.kopf {
  position: relative;
  z-index: 2;
  padding-block: 25px;
}

.kopf__reihe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--linie);
}

/* Feste Hoehe, sonst laeuft das Bild 8px hoeher als im Original und alles
   darunter rutscht mit. */
.kopf__logo img {
  width: 346px;
  max-width: 60vw;
  height: 141px;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 639px) {
  .kopf__logo img {
    max-width: 46vw;
    height: 74px;
  }
}

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

/* Der dunkle Block ganz oben liegt 10px eingerueckt und hat runde Ecken —
   genau wie im Original. */
.hero {
  position: relative;
  margin: 10px;
  border-radius: 10px;
  overflow: hidden;
  isolation: isolate;
}

.hero__grund {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero__text {
  padding-block: 100px 145px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

/* Auf den Report-Seiten steht die Ueberschrift im Original in einem 1135px
   breiten Kasten. Bei 1120px bricht "E-Commerce Guide für Black Friday" in
   eine dritte Zeile — deshalb hier dieselbe Breite wie im Original. */
@media (min-width: 1000px) {
  .hero__text--weit {
    padding-inline: 33px;
  }
}

.hero__lead {
  max-width: 1135px;
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.5;
  letter-spacing: -0.5px;
}

/* ------------------------------------------------------------------- Fuss */

.fuss {
  padding: 15px var(--rand) 0;
  background: var(--schwarz);
}

.fuss__innen {
  max-width: var(--breite);
  margin-inline: auto;
  padding: 32px 20px;
}

.fuss__oben {
  padding-bottom: 20px;
}

.fuss__logo {
  width: 136px;
}

.fuss__reihe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px 30px;
  padding-block: 20px;
}

.fuss__sozial {
  display: flex;
  gap: 10px;
}

.fuss__sozial a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--linie);
  border-radius: 60px;
  color: var(--weiss);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.fuss__sozial a:hover {
  background: var(--gelb);
  color: var(--schwarz);
}

.fuss__sozial svg {
  width: 18px;
  height: 18px;
}

.fuss__links {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  font-size: 16px;
  font-weight: 500;
  line-height: 32px;
  letter-spacing: -0.2px;
}

.fuss__links a {
  text-decoration: none;
}

.fuss__links a:hover {
  text-decoration: underline;
}

.fuss__links a.ist-gelb {
  color: var(--gelb);
  letter-spacing: -0.16px;
}

.fuss__copyright {
  font-size: 16px;
  letter-spacing: -0.32px;
}

/* ------------------------------------------------- wiederkehrende Baender */

.band {
  padding-block: var(--luft);
}

.band--weiss {
  background: var(--weiss);
  color: var(--dunkel);
}

.band--schwarz {
  background: var(--schwarz);
}

.band--eng {
  padding-block: calc(var(--luft) * 0.625);
}

.band__kopf {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
}

/* Über uns */
.ueberuns__text {
  display: grid;
  gap: 30px;
  margin-top: 30px;
  font-family: var(--schrift-ui);
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.5px;
}

/* Team-Karten */
.team {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: var(--luft);
}

.team__karte {
  background: var(--weiss);
  border-radius: var(--rund-karte);
  overflow: hidden;
}

.team__bild {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
}

.team__inhalt {
  display: grid;
  gap: 20px;
  padding: 40px 30px;
  font-family: var(--schrift-ui);
  color: var(--text-grau);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
}

.team__inhalt h3 {
  color: var(--tief);
  font-family: var(--schrift-ui);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.5px;
  text-transform: none;
}

/* Kundenstimmen */
.stimmen {
  padding: 40px;
  border-radius: 15px;
  background: var(--karte-dunkel);
}

.stimmen__kopf {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.stimmen__spalten {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 60px;
  margin-top: 30px;
}

.stimme {
  display: grid;
  gap: 24px;
  align-content: start;
}

.stimme__text {
  color: var(--text-hell);
  font-size: 16px;
  line-height: 24px;
}

.stimme__name {
  margin: 0;
  font-family: var(--schrift-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 19px;
  text-transform: none;
}

.stimme__firma {
  color: var(--text-hell);
  font-size: 14px;
  line-height: 21px;
}

/* Creme-Kasten "Planen Sie noch heute Ihr Erstgespräch bei uns" */
.termin-kasten {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding: 60px 40px;
  border-radius: 12px;
  background: var(--creme);
  color: var(--dunkel);
}

.termin-kasten h2 {
  max-width: 628px;
  font-family: var(--schrift-ui);
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1;
  letter-spacing: -1px;
  text-transform: none;
}

/* Bürobilder */
.buero {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: 30px;
}

.buero img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--rund-bild);
}

/* Terminbuchung (seit 29.09.2026 der eigene Kalender aus cp-sales, vorher
   Calendly). Die eingebettete Seite waechst in die Hoehe, die sie bekommt —
   eine feste Hoehe ist also Pflicht, sonst bleibt der Rahmen leer.

   Am laufenden Kalender gemessen, wieviel Hoehe der Inhalt braucht:
     390 px breit -> 1043    500 px -> 924    ab 700 px -> unter 900
   Schmal wird aus den zwei Spalten eine, deshalb braucht es dort mehr Hoehe.
   Ohne die Regel unten muesste man auf dem Handy IM Rahmen scrollen. */
.termin__rahmen {
  margin-top: 30px;
  min-height: 750px;
}

.termin__rahmen iframe {
  display: block;
  width: 100%;
  height: 750px;
  border: 0;
}

@media (max-width: 700px) {
  .termin__rahmen {
    min-height: 1060px;
  }

  .termin__rahmen iframe {
    height: 1060px;
  }
}

/* Marken-Laufband */
.laufband {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.laufband__spur {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: laufen 32s linear infinite;
}

.laufband__feld {
  display: grid;
  place-items: center;
  padding: 10px 20px;
  border-radius: 6px;
  background: rgba(20, 20, 20, 0.15);
}

.laufband__feld img {
  width: 154px;
  height: 38px;
  object-fit: contain;
}

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

@media (prefers-reduced-motion: reduce) {
  .laufband__spur {
    animation: none;
  }
  .knopf:hover,
  .karte__bild:hover img {
    transform: none;
  }
}

/* ---------------------------------------------------------------- Umbrueche */

@media (max-width: 999px) {
  .team,
  .buero,
  .stimmen__spalten {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
  }

  .hero__text {
    padding-block: 70px 90px;
  }

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

@media (max-width: 639px) {
  .team,
  .buero,
  .stimmen__spalten {
    grid-template-columns: minmax(0, 1fr);
  }

  .stimmen {
    padding: 24px;
  }

  .termin-kasten {
    padding: 32px 24px;
  }

  /* Nicht :not(.knopf--pille) sparen — sonst waechst der Kopf-Knopf mit und
     laeuft auf 375px aus dem Bild. */
  .knopf:not(.knopf--pille) {
    font-size: 17px;
  }

  .knopf--pille {
    padding: 10px 14px;
  }

  /* Die festen Umbrueche der Report-Ueberschriften ergeben auf dem Handy
     Zeilen mit einem einzelnen Wort. Dort laesst man den Text besser fliessen. */
  h1 br.uml {
    display: none;
  }

  .kopf__reihe {
    gap: 12px;
  }
}
