/* ============================================================
   sx.company - OnePager Design System
   ============================================================ */

:root {
  /* Colors - strict CI */
  --red: #ec002b;
  --red-dark: #c40024;
  --black: #000000;
  --black-deep: #1a1a1a;
  --white: #ffffff;
  --grey: #e8e8e8;
  --grey-light: #f5f5f5;
  --grey-text: #666666;

  /* Fonts */
  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'Roboto Mono', ui-monospace, monospace;

  /* Layout */
  --container: 1280px;
  --container-wide: 1440px;
  --gutter: 24px;

  /* Spacing rhythm */
  --section-y: 80px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}
.section-title {
  font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.body-text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--grey-text);
  max-width: 62ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 15px 30px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--grey);
  transition: box-shadow 0.3s var(--ease), padding 0.3s var(--ease);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  transition: height 0.3s var(--ease);
}
.navbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.06); }
.navbar.scrolled .nav-inner { height: 64px; }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.nav-logo img { width: 40px; height: 40px; }

.nav-links { display: flex; gap: 34px; }
.nav-links a {
  position: relative;
  font-weight: 500;
  font-size: 15px;
  color: var(--black);
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-cta { padding: 11px 22px; font-size: 13.5px; letter-spacing: 0.05em; text-transform: uppercase; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--black);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile Menu ---------- */
.mobile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.mobile-backdrop.open { opacity: 1; }
.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  z-index: 99;
  width: min(80vw, 320px);
  height: 100dvh;
  background: var(--white);
  border-left: 1px solid var(--grey);
  padding: 100px 32px 40px;
  transform: translateX(100%);
  transition: transform 0.34s var(--ease);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-nav a {
  font-weight: 500;
  font-size: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--grey);
}
.mobile-cta {
  margin-top: 22px;
  border-bottom: none !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-vision { background: var(--grey-light); }
.section-units { background: var(--white); }
.section-method { background: var(--grey-light); }

/* ---------- Hero ---------- */
.hero { padding-top: 130px; padding-bottom: var(--section-y); }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.hero-title {
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 8px 0 32px;
}
.hero-media img {
  width: 100%;
  border-radius: 14px;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}
.hero-btn { font-size: 16px; }

/* ---------- Vision ---------- */
.vision-statement {
  max-width: none;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.25;
  margin-bottom: 72px;
}
.vision-formula-label {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 28px;
}
.vision-letters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
.vision-letter {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--grey);
}
.vision-letter:last-child { border-bottom: none; }
.big-letter {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(4rem, 9vw, 6.5rem);
  line-height: 0.85;
  color: var(--red);
  flex: none;
  min-width: 1.2em;
  text-align: center;
}
.vision-letter-text h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 6px; }
.vision-letter-text p { color: var(--grey-text); }

/* ---------- Story ---------- */
.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.story-media img {
  width: 100%;
  border-radius: 14px;
  height: auto;
  display: block;
  object-fit: contain;
}
.story-text .section-title { margin-bottom: 24px; }

/* ---------- Businessunits ---------- */
.units-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 48px;
}
.unit-card {
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: 14px;
  padding: 38px 32px;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.unit-card:hover {
  transform: translateY(-6px);
  border-color: var(--red);
  box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}
.card-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--red);
  display: block;
  margin-bottom: 18px;
}
.unit-card h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 16px; letter-spacing: -0.01em; }
.unit-card p { color: var(--grey-text); font-size: 16px; line-height: 1.7; }

/* ---------- Methodik ---------- */
.method-intro { margin: 24px 0 48px; max-width: 70ch; }
.formula {
  display: flex;
  align-items: stretch;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.formula-term {
  flex: none;
  display: flex;
  align-items: center;
  text-align: center;
  background: var(--grey);
  border-radius: 12px;
  padding: 24px 22px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
  width: 200px;
  min-height: 110px;
}
.formula-op {
  flex: none;
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 2rem;
  color: var(--red);
}
.mission {
  margin-top: 56px;
  background: var(--grey);
  border-radius: 14px;
  padding: 48px 40px;
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
  max-width: 56ch;
  margin-inline: auto;
}

/* ---------- Portfolio ---------- */
.section-portfolio .section-title { margin-bottom: 48px; }
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.port-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: 14px;
  padding: 32px 28px;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.port-card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}
.port-card .card-num {
  font-size: 24px;
  margin-bottom: 28px;
  line-height: 1;
}
.port-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  margin-bottom: 32px;
  padding: 8px 4px;
}
.port-logo img {
  max-height: 160px;
  max-width: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
@media (min-width: 900px) {
  .port-logo { height: 210px; }
  .port-logo img { max-height: 190px; max-width: 92%; }
}
/* GCZ-Wappen ist hoch-formatig - etwas zurückskalieren für stimmiges Bild */
.port-logo img[src*="logo-gcz"] { max-height: 140px; max-width: auto; }
@media (min-width: 900px) {
  .port-logo img[src*="logo-gcz"] { max-height: 170px; }
}
.port-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.01em; }
.port-card p { color: var(--grey-text); font-size: 15.5px; line-height: 1.65; flex: 1; }

/* Aktuell-inaktiv-Stamp (1:1 nach Vorbild der bestehenden Marken-Websites) */
.port-card.is-inactive { opacity: 0.72; }
.port-card.is-inactive:hover { opacity: 1; }
.stamp {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #0a1a2e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-12deg);
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  z-index: 3;
  pointer-events: none;
  outline: 2px solid #ffffff;
  outline-offset: -6px;
}
.stamp-top {
  font-family: var(--font-mono, "Roboto Mono", monospace);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #4dd4e4;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 4px;
}
.stamp-main {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1;
}
@media (min-width: 900px) {
  .stamp { width: 108px; height: 108px; top: 22px; right: 22px; }
  .stamp-top { font-size: 10px; }
  .stamp-main { font-size: 19px; }
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--red);
}
.card-link span { transition: transform 0.25s var(--ease); }
.card-link:hover span { transform: translateX(5px); }

.pipeline {
  margin-top: 56px;
  background: var(--black);
  color: var(--white);
  border-radius: 16px;
  padding: 48px 40px;
}
.pipeline-head { margin-bottom: 32px; }
.pipeline h3 { font-size: 1.6rem; font-weight: 700; margin-bottom: 10px; }
.pipeline-lead { color: rgba(255,255,255,0.7); font-size: 1rem; max-width: 60ch; }

.pipeline-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.pipeline-group {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 22px 24px;
}
.pipeline-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.pipeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pipeline-list li {
  line-height: 1.4;
  padding-left: 18px;
  position: relative;
}
.pipeline-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 1px;
  background: var(--red);
}
.pipeline-item-name {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}
.pipeline-item-desc {
  display: block;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255,255,255,0.7);
}

.pipeline-cta {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.pipeline-teaser { font-weight: 500; font-size: 1.1rem; margin-bottom: 8px; }
.pipeline-link { margin-top: 4px; }

@media (max-width: 720px) {
  .pipeline { padding: 36px 28px; }
  .pipeline-groups { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- Investieren (dark) ---------- */
.section-invest {
  background: var(--black-deep);
  color: var(--white);
}
.invest-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
}
.invest-title { color: var(--white); margin-bottom: 28px; }
.invest-body {
  color: rgba(255,255,255,0.85);
  font-size: 16.5px;
  line-height: 1.75;
  margin-bottom: 20px;
  max-width: 62ch;
}
.section-invest .btn-primary { margin-top: 12px; }
.invest-media img {
  width: 100%;
  border-radius: 14px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* ---------- Footer ---------- */
.footer { background: var(--black); color: rgba(255,255,255,0.65); padding-top: 72px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 19px;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-logo img { width: 44px; height: 44px; }
.footer-tagline { max-width: 42ch; margin-bottom: 18px; line-height: 1.6; font-weight: 500; color: rgba(255,255,255,0.92); }
.footer-text { max-width: 48ch; margin-bottom: 16px; line-height: 1.65; color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.footer-mission { color: rgba(255,255,255,0.85); margin-bottom: 28px; }
.footer-contact { font-style: normal; line-height: 1.7; color: rgba(255,255,255,0.65); }
.footer-contact a { color: var(--white); }
.footer-contact a:hover { color: var(--red); }
.footer-heading {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 22px;
}
.footer-links li { margin-bottom: 12px; }
.footer-links a {
  position: relative;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s var(--ease);
}
.footer-links a:hover { color: var(--red); }
.footer-map iframe { border-radius: 12px; display: block; filter: grayscale(0.2); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-block: 24px;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (min-width: 640px) {
  :root { --section-y: 96px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Desktop */
@media (min-width: 900px) {
  :root { --section-y: 120px; --gutter: 40px; }
  body { font-size: 18px; }

  .hero { padding-top: 160px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }

  .units-grid { grid-template-columns: repeat(3, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }

  .story-grid { grid-template-columns: 0.9fr 1.1fr; gap: 60px; }
  .invest-grid { grid-template-columns: 1.15fr 0.85fr; gap: 64px; }

  .vision-letters { grid-template-columns: repeat(2, 1fr); gap: 48px; }
  .vision-letter { border-bottom: none; padding-bottom: 0; }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; gap: 56px; }
}

/* Show hamburger on mobile/tablet */
@media (max-width: 899px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

@media (min-width: 900px) {
  .mobile-menu, .mobile-backdrop { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
