/* Basis-Stylesheet der newLanding (rekonstruiert — das Original aus Mareks lokalem
   Site-Layout wurde nicht mitcommittet). Definiert die Design-Tokens und alle
   Komponenten, auf denen site.css aufbaut. Design-Sprache: helles Paper, Ink-Text,
   Rot als Akzent, Mono-Labels, Haarlinien, schwere Editorial-Headlines. */

:root {
  --red: #e7000b;
  --ink: #141414;
  --paper: #faf9f7;
  --gray: #565550;
  --muted: #b9b6af;
  --line: #e2dfda;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: min(1200px, 92vw);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-weight: 900;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px calc((100vw - var(--wrap)) / 2);
  background: rgba(250, 249, 247, var(--header-bg-opacity, 0.55));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(20, 20, 20, calc(0.06 + var(--header-darkness, 0)));
  box-shadow: 0 8px 30px rgba(20, 20, 20, var(--header-shadow-opacity, 0));
  transition: box-shadow 0.25s ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  display: block;
  height: 42px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 26px;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s ease;
}

.nav-links a span {
  color: var(--red);
  margin-right: 5px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--red);
}

/* Hamburger — nur mobil sichtbar */
.menu-button {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--ink);
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.is-menu-open .menu-button span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.is-menu-open .menu-button span:nth-child(2) {
  opacity: 0;
}

.is-menu-open .menu-button span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 92vh;
  padding: 140px calc((100vw - var(--wrap)) / 2) 90px;
  text-align: center;
}

.hero-copy {
  max-width: 940px;
  margin: 0 auto;
}

.hero h1 {
  margin: 0 0 32px;
  font-size: clamp(44px, 8.4vw, 108px);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.hero h1 span {
  display: block;
}

.hero h1 span:last-child {
  color: var(--red);
}

.hero p {
  margin: 0 auto;
  max-width: 760px;
  color: var(--gray);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 32px;
  display: inline-flex;
  padding: 8px;
}

.scroll-cue-icon {
  width: 30px;
  height: 30px;
  animation: cue-bob 2.2s ease-in-out infinite;
}

@keyframes cue-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

/* Scan-Frame: technischer Rahmen mit laufender roter Scanlinie */
.scan-frame::before {
  content: "";
  position: absolute;
  inset: 96px 4vw 4vh;
  border: 1px solid var(--line);
  pointer-events: none;
}

.scan-frame::after {
  content: "";
  position: absolute;
  left: 4vw;
  right: 4vw;
  top: 96px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0.6;
  animation: scanline 7s linear infinite;
  pointer-events: none;
}

@keyframes scanline {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(calc(92vh - 96px - 4vh));
  }
}

/* ---------- Buttons ---------- */
.contact-button {
  display: inline-block;
  padding: 16px 34px;
  background: var(--red);
  border: 1px solid var(--red);
  color: #fff;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.contact-button:hover,
.contact-button:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
}

.contact-button--ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.contact-button--ghost:hover,
.contact-button--ghost:focus-visible {
  background: transparent;
  border-color: var(--red);
  color: var(--red);
}

/* ---------- Signal-Zeile ---------- */
.signal-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 0;
  width: var(--wrap);
  margin: 48px auto 0;
  padding-bottom: 72px;
}

.signal-row span {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  padding: 0 22px;
  border-right: 1px solid var(--line);
}

.signal-row span:last-child {
  border-right: none;
}

/* ---------- Sektionen ---------- */
section {
  position: relative;
}

.section-title {
  width: var(--wrap);
  margin: 0 auto;
  text-align: center;
}

.section-title h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.1;
}

.section-title p {
  margin: 0 auto;
  max-width: 640px;
  color: var(--gray);
  font-size: 18px;
}

.section-title.align-left {
  text-align: left;
}

.section-title.align-left p {
  margin: 0;
}

.section-intro {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-top: 24px;
}

.corner-illustration {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
}

.section-intro p {
  margin: 0;
  font-size: 19px;
  line-height: 1.5;
}

/* Dunkle (invertierte) Sektionen */
.dark {
  background: var(--ink);
  color: var(--paper);
  padding: 112px 0;
}

.dark .section-title h2 {
  color: var(--paper);
}

.dark .section-title p,
.dark .section-intro p {
  color: var(--muted);
}

/* ---------- Statement ---------- */
.statement {
  width: var(--wrap);
  margin: 0 auto;
  padding: 112px 0;
  border-top: 1px solid var(--line);
}

.statement p {
  max-width: 880px;
  margin: 0 auto;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
  color: var(--gray);
}

.statement strong {
  color: var(--ink);
  font-weight: 800;
}

/* ---------- Sonderlösungen (dunkle Sektion) ---------- */
.consulting .section-title {
  width: var(--wrap);
}

.consulting-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: var(--wrap);
  margin: 64px auto 0;
  background: rgba(250, 249, 247, 0.14);
  border: 1px solid rgba(250, 249, 247, 0.14);
}

.consult-card {
  padding: 34px 30px 40px;
  background: var(--ink);
}

.consult-card > span {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--red);
}

.consult-card h3 {
  margin: 16px 0 14px;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--paper);
}

.consult-card .quote {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.5;
  color: var(--red);
}

.consult-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- FAQ / Accordion ---------- */
.automation {
  width: var(--wrap);
  margin: 0 auto;
  padding: 112px 0;
  border-top: 1px solid var(--line);
}

.accordion {
  max-width: 880px;
  margin: 56px auto 0;
  border-top: 1px solid var(--line);
}

.accordion-item {
  border-bottom: 1px solid var(--line);
}

.accordion-item button {
  display: flex;
  align-items: baseline;
  gap: 22px;
  width: 100%;
  padding: 24px 4px;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: var(--ink);
}

.accordion-item .num {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--red);
}

.accordion-item strong {
  flex: 1 1 auto;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

/* Plus/Kreuz rein per CSS — script.js leert den .toggle-Textinhalt */
.accordion-item .toggle {
  position: relative;
  flex: 0 0 auto;
  align-self: center;
  width: 18px;
  height: 18px;
}

.accordion-item .toggle::before,
.accordion-item .toggle::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 0;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: translateY(-50%);
  transition: transform 0.25s ease;
}

.accordion-item .toggle::after {
  transform: translateY(-50%) rotate(90deg);
}

.accordion-item.is-open .toggle::after {
  transform: translateY(-50%) rotate(0deg);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-item.is-open .accordion-panel {
  max-height: 400px;
}

.accordion-panel p {
  margin: 0;
  padding: 0 4px 26px 55px;
  color: var(--gray);
  line-height: 1.65;
}

/* ---------- CTA-Ticker ---------- */
.cta {
  padding: 96px 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
  text-align: center;
}

.ticker-title {
  margin: 0 0 28px;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  gap: 64px;
  animation: ticker 18s linear infinite;
}

.ticker-track span {
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--red);
  padding-right: 64px;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.cta p {
  width: var(--wrap);
  max-width: 680px;
  margin: 0 auto;
  color: var(--gray);
  font-size: 18px;
}

/* ---------- Kontakt ---------- */
.contact {
  width: var(--wrap);
  margin: 0 auto;
  padding: 112px 0;
  border-top: 1px solid var(--line);
  text-align: center;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 44px;
}

.contact-note {
  margin: 36px 0 0;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ---------- Footer ---------- */
.footer {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  width: var(--wrap);
  margin: 0 auto;
  padding: 80px 0 48px;
  border-top: 1px solid var(--ink);
}

.footer h2 {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer p {
  margin: 0;
  max-width: 420px;
  color: var(--gray);
  font-size: 15px;
}

.footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer nav a {
  font-size: 15px;
  color: var(--gray);
  text-decoration: none;
}

.footer nav a:hover,
.footer nav a:focus-visible {
  color: var(--red);
}

.footer .legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--gray);
}

.footer .legal a {
  color: var(--gray);
  text-decoration: none;
}

.footer .legal a:hover,
.footer .legal a:focus-visible {
  color: var(--red);
}

/* ---------- Reveal-Animationen (script.js) ---------- */
.reveal-item {
  opacity: 0;
  transform: translateY(var(--reveal-distance, 28px));
  transition: opacity 0.7s ease var(--reveal-delay, 0ms),
    transform 0.7s ease var(--reveal-delay, 0ms);
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-cue-icon,
  .ticker-track,
  .scan-frame::after {
    animation: none;
  }
}

/* ---------- Responsiv ---------- */
@media (max-width: 960px) {
  .consulting-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .site-header {
    padding: 12px 4vw;
  }

  .menu-button {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: 70px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 4vw 16px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .is-menu-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .hero {
    min-height: 84vh;
    padding-top: 120px;
  }

  .scan-frame::before,
  .scan-frame::after {
    display: none;
  }

  .footer {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .accordion-panel p {
    padding-left: 4px;
  }
}
