/* ctp-tec GmbH — Landingpage Styles */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/inter-variable-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-variable-latin.woff2") format("woff2");
}

:root {
  --ink: #0e1116;
  --ink-soft: #1a2029;
  --paper: #faf9f7;
  --white: #ffffff;
  --muted: #667085;
  --line: rgba(14, 17, 22, 0.1);
  --line-dark: rgba(250, 249, 247, 0.12);
  --accent: #0ea5a0;
  --accent-dark: #0b8a86;
  --accent-soft: rgba(14, 165, 160, 0.12);

  --font-head: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --maxw: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.1;
  margin: 0;
}

p { line-height: 1.65; color: var(--muted); margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-ghost {
  border-color: var(--line-dark);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-outline {
  border-color: var(--line);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-dark); }

/* Header */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(14, 17, 22, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: rgba(250, 249, 247, 0.82);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--white); }

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

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  padding: 200px 0 140px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(250, 249, 247, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250, 249, 247, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 40%, transparent 90%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  margin: 20px 0 24px;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero p.lead {
  color: rgba(250, 249, 247, 0.72);
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  margin-top: 88px;
  padding-top: 32px;
  border-top: 1px solid var(--line-dark);
}
.hero-stats .stat {
  flex: 1;
  padding: 0 32px;
}
.hero-stats .stat:first-child { padding-left: 0; }
.hero-stats .stat:last-child { padding-right: 0; }
.hero-stats .stat:not(:first-child) {
  border-left: 1px solid var(--line-dark);
}
.hero-stats .stat b {
  display: block;
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--white);
}
.hero-stats .stat span {
  font-size: 0.85rem;
  color: rgba(250, 249, 247, 0.6);
}

/* Sections */
section { padding: 120px 0; }

.section-head {
  max-width: 640px;
  margin-bottom: 64px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  margin-top: 16px;
  letter-spacing: -0.01em;
}

/* Leistungen */
.leistungen { background: var(--white); }
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  position: relative;
  padding: 40px 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px -20px rgba(14, 17, 22, 0.18);
}
.card .num {
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.05em;
}
.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0 24px;
}
.card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

/* Prozess */
.prozess { background: var(--ink); color: var(--white); }
.prozess .section-head p { color: rgba(250, 249, 247, 0.65); }
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-dark);
}
.tstep {
  position: relative;
  padding-top: 56px;
}
.tstep::before {
  content: attr(data-n);
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tstep h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  margin: 0 0 8px;
  color: var(--white);
}
.tstep p { font-size: 0.9rem; color: rgba(250, 249, 247, 0.55); }

/* Über uns */
.ueber { background: var(--white); }
.ueber-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.ueber-text p { font-size: 1.05rem; margin-bottom: 20px; }
.ueber-text p:last-child { margin-bottom: 0; }
.ueber-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-soft) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ueber-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ueber-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(14, 17, 22, 0.75) 100%);
}
.ueber-badge { z-index: 1; }
.ueber-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(250, 249, 247, 0.08);
  border: 1px solid var(--line-dark);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: 16px 20px;
  color: var(--white);
  font-size: 0.85rem;
}
.ueber-badge b { color: var(--accent); font-family: var(--font-head); }

/* Kontakt */
.kontakt { background: var(--paper); }
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.kontakt-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 40px;
}
.kontakt-card h3 {
  font-size: 1.2rem;
  margin-bottom: 24px;
}
.kontakt-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.kontakt-row:last-child { margin-bottom: 0; }
.kontakt-row .ic {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.kontakt-row a { text-decoration: none; font-weight: 500; }
.kontakt-row a:hover { color: var(--accent-dark); }
.kontakt-card .btn { margin-top: 12px; }

.kontakt-cta {
  background: var(--ink);
  color: var(--white);
  border-radius: 18px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.kontakt-cta h3 { font-size: 1.4rem; margin-bottom: 12px; }
.kontakt-cta p { color: rgba(250, 249, 247, 0.65); margin-bottom: 28px; }

/* Footer */
footer {
  background: var(--ink);
  color: rgba(250, 249, 247, 0.55);
  padding: 40px 0;
  border-top: 1px solid var(--line-dark);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { text-decoration: none; color: rgba(250, 249, 247, 0.55); }
.footer-links a:hover { color: var(--white); }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .timeline::before { display: none; }
  .ueber-grid { grid-template-columns: 1fr; }
  .ueber-visual { aspect-ratio: 16/9; }
  .kontakt-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: block; }
  .hero { padding: 160px 0 100px; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .hero-stats .stat { padding: 0; }
  .hero-stats .stat:not(:first-child) { padding: 0; border-left: none; }
  section { padding: 84px 0; }
  .timeline { grid-template-columns: 1fr 1fr; }

  header.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--ink);
    padding: 24px 28px 32px;
    gap: 20px;
    border-bottom: 1px solid var(--line-dark);
  }
}
