/* ============================================================
   Cloud & Peak — One-Pager Stylesheet
   CI: Crayola Red #F31B4B · Mikado Yellow #FFE80A
       Charcoal #424955 · Slate Gray #6C7B8A
   Fonts: Roboto Slab (Headlines) · Open Sans (Body)
   ============================================================ */

/* ---- Fonts ------------------------------------------------- */
@font-face {
  font-family: "Roboto Slab";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("assets/fonts/RobotoSlab-Bold.ttf") format("truetype");
}
@font-face {
  font-family: "Roboto Slab";
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  src: url("assets/fonts/RobotoSlab-Black.ttf") format("truetype");
}
@font-face {
  font-family: "Open Sans";
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url("assets/fonts/OpenSans-Light.ttf") format("truetype");
}
@font-face {
  font-family: "Open Sans";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("assets/fonts/OpenSans-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Open Sans";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("assets/fonts/OpenSans-Semibold.ttf") format("truetype");
}
@font-face {
  font-family: "Open Sans";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("assets/fonts/OpenSans-Bold.ttf") format("truetype");
}

/* ---- Tokens ------------------------------------------------ */
:root {
  --red: #F31B4B;
  --red-dark: #c8133c;
  --yellow: #FFE80A;
  --charcoal: #424955;
  --slate: #6C7B8A;
  --ink: #1a1d24;
  --bg: #ffffff;
  --bg-muted: #f4f5f7;
  --line: rgba(108, 123, 138, 0.18);

  --font-head: "Roboto Slab", "Times New Roman", serif;
  --font-body: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;
  --container-narrow: 760px;
  --radius: 6px;
  --shadow: 0 12px 40px -16px rgba(26, 29, 36, 0.18);
  --transition: 220ms cubic-bezier(.2, .7, .2, 1);
}

/* ---- Reset & base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
address { font-style: normal; }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.container--narrow { max-width: var(--container-narrow); }

/* ---- Navigation -------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 18px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.nav__inner {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav__logo img { height: 38px; width: auto; }
.nav__menu {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav__menu a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  position: relative;
  padding: 4px 0;
}
.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--yellow);
  transition: right var(--transition);
}
.nav__menu a:hover { color: var(--yellow); }
.nav__menu a:hover::after { right: 0; }

.nav.is-scrolled {
  background: rgba(26, 29, 36, 0.96);
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  backdrop-filter: saturate(180%) blur(8px);
}
.nav.is-scrolled .nav__logo img { height: 32px; }

/* mobile toggle */
.nav__toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: transform var(--transition), opacity var(--transition);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Hero -------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(26,29,36,0.65) 0%, rgba(26,29,36,0.92) 100%),
    url("assets/img/bg-hero.jpg") center/cover no-repeat;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 80% 20%, rgba(243,27,75,0.35), transparent 60%),
    radial-gradient(50% 50% at 10% 90%, rgba(255,232,10,0.18), transparent 60%);
  pointer-events: none;
}
.hero__inner {
  text-align: center;
  padding: 140px 0 100px;
  width: min(100% - 2.5rem, var(--container));
}
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 12px;
  font-weight: 600;
  color: var(--yellow);
  margin: 0 0 1.2rem;
}
.hero__title {
  font-family: var(--font-head);
  font-weight: 900;
  color: #fff;
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 1.4rem;
  text-shadow: 0 2px 30px rgba(0,0,0,0.35);
}
.hero__sub {
  max-width: 640px;
  margin: 0 auto 2.4rem;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  color: rgba(255,255,255,0.85);
  font-weight: 300;
}
.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.hero__social {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.hero__social a {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  transition: background var(--transition), transform var(--transition);
}
.hero__social a:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); }
.hero__social img { width: 20px; height: 20px; filter: brightness(0) invert(1); }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  width: 28px; height: 44px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 14px;
  display: grid; place-items: start center;
  padding-top: 8px;
}
.hero__scroll span {
  display: block;
  width: 3px; height: 8px;
  background: #fff;
  border-radius: 2px;
  animation: scrollDown 1.8s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---- Buttons ----------------------------------------------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}
.btn--primary {
  background: var(--red);
  color: #fff;
}
.btn--primary:hover {
  background: var(--red-dark);
  color: #fff;
  transform: translateY(-2px);
}
.btn--ghost {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  transform: translateY(-2px);
}

/* ---- Section base ----------------------------------------- */
.section {
  padding: clamp(64px, 9vw, 130px) 0;
  position: relative;
}
.section--light { background: #fff; color: var(--charcoal); }
.section--muted { background: var(--bg-muted); color: var(--charcoal); }
.section--dark {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark a { color: var(--yellow); }
.section--dark a:hover { color: #fff; }

.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}
.section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 0.6em;
}
.section__lead {
  font-size: 1.1rem;
  color: var(--slate);
  font-weight: 300;
}
.section--dark .section__lead { color: rgba(255,255,255,0.7); }

.kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  margin: 0 0 1.2rem;
  position: relative;
  padding-left: 28px;
}
.kicker::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 20px; height: 2px;
  background: currentColor;
  transform: translateY(-50%);
}
.kicker--yellow { color: var(--yellow); }

/* ---- Intro lede ------------------------------------------- */
.lede {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 1.4rem;
}

/* ---- Cards (Leistungen) ----------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 36px 32px 32px;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,232,10,0.4);
  background: rgba(255,255,255,0.06);
}
.card__num {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 2.6rem;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.card__title {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.card p { color: rgba(255,255,255,0.78); font-size: 0.98rem; }
.card__claim {
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: var(--yellow) !important;
  font-weight: 600;
  font-style: italic;
}

/* ---- Quote ------------------------------------------------- */
.quote {
  background: var(--red);
  color: #fff;
  padding: clamp(72px, 10vw, 120px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quote::before {
  content: "“";
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-head);
  font-size: 320px;
  color: rgba(255,255,255,0.08);
  line-height: 1;
  font-weight: 900;
  pointer-events: none;
}
.quote blockquote {
  margin: 0;
  position: relative;
}
.quote p {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.3;
  font-style: italic;
  margin: 0 0 1.4rem;
  color: #fff;
}
.quote cite {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
}

/* ---- Trio (Über uns) -------------------------------------- */
.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.trio__item h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}
.trio__icon {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  margin-bottom: 1.4rem;
  box-shadow: var(--shadow);
}
.trio__icon svg { width: 38px; height: 38px; }
.trio__item p { color: var(--slate); }

/* ---- Referenzen-Slider (Marquee) -------------------------- */
.refs-slider {
  position: relative;
  width: 100%;
  margin: 0 0 32px;
  overflow: hidden;
  /* Fade-Out an den Rändern, damit Logos sanft erscheinen/verschwinden */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}
.refs-slider__track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: refs-scroll 60s linear infinite;
}
.refs-slider:hover .refs-slider__track {
  animation-play-state: paused;
}
.refs-slider__item {
  flex: 0 0 220px;
  height: 180px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.refs-slider__item:hover {
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: var(--shadow);
}
.refs-slider__item img {
  max-height: 84px;
  max-width: 85%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) contrast(0.95);
  opacity: 0.7;
  transition: filter var(--transition), opacity var(--transition);
  margin-top: auto;
  margin-bottom: auto;
}
.refs-slider__item:hover img {
  filter: none;
  opacity: 1;
}
.refs-slider__caption {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--slate);
  line-height: 1.3;
  display: block;
  /* Caption-Höhe gleich halten, damit nicht je nach Textlänge ruckelt */
  min-height: 2.6em;
}

@keyframes refs-scroll {
  from { transform: translateX(0); }
  /* 50 %, weil wir die Logos verdoppelt haben (10 + 10 = 20 Items) */
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .refs-slider__track {
    animation: none;
    /* Auf wrap umstellen, damit alle sichtbar sind */
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 16px;
  }
  .refs-slider { -webkit-mask-image: none; mask-image: none; }
}

.refs__note {
  text-align: center;
  color: var(--slate);
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 8px;
}

/* ---- Kontakt ----------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}
.contact__item {
  padding: 24px;
  border-left: 3px solid var(--red);
  background: rgba(255,255,255,0.03);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.contact__label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 0.6rem;
}
.contact__item a,
.contact__item p,
.contact__item address {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
}
.contact__item a:hover { color: var(--yellow); }
.contact__item address { font-weight: 400; line-height: 1.5; }

/* ---- Footer ------------------------------------------------ */
.footer {
  background: #0f1116;
  color: rgba(255,255,255,0.55);
  padding: 48px 0;
  font-size: 0.9rem;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
}
.footer__brand { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer__brand img {
  height: 40px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  flex-shrink: 0;
}
.footer__brand p { margin: 0; font-size: 0.85rem; }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.footer__links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.footer__links a:hover { color: var(--yellow); }
.footer__social {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.footer__social a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  transition: background var(--transition);
}
.footer__social a:hover { background: var(--red); }
.footer__social img { filter: brightness(0) invert(1); width: 16px; height: 16px; }

/* ---- Reveal animations ------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---- Responsive ------------------------------------------- */
@media (max-width: 900px) {
  .cards, .trio { grid-template-columns: 1fr; gap: 22px; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; }
  .footer__brand { align-items: center; }
  .footer__social { justify-content: center; }
}
@media (max-width: 720px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(15,17,22,0.98);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }
  .nav__menu.is-open { max-height: 360px; padding: 12px 0; }
  .nav__menu a {
    padding: 14px 28px;
  }
  .nav__menu a::after { display: none; }
  .hero__inner { padding: 130px 0 90px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .btn { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
