:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --dark: #0f172a;
  --dark-muted: #cbd5e1;
  --accent: #2563eb;
  --radius: 28px;
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
  --header-bg: rgba(255, 255, 255, 0.86);
  --button-primary-bg: #0f172a;
  --button-primary-ink: #ffffff;
  --button-primary-hover: #1e293b;
}

[data-theme="dark"] {
  --bg: #0f172a;
  --surface: #1e293b;
  --ink: #f8fafc;
  --muted: #94a3b8;
  --line: #334155;
  --dark: #1e293b;
  --dark-muted: #94a3b8;
  --header-bg: rgba(15, 23, 42, 0.86);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  --button-primary-bg: #f8fafc;
  --button-primary-ink: #0f172a;
  --button-primary-hover: #e2e8f0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* Verhindert, dass der Sticky-Header Anker-Ziele verdeckt */
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  /* Erlaubt das Trennen von Wörtern */
  /* hyphens: auto; */ 
  /* Unterstützt den Umbruch, falls das Wort extrem lang ist */
  /* word-wrap: break-word; */
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(16px);
}

.theme-toggle {
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  background: var(--line);
  color: var(--ink);
}

.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }

[data-theme="dark"] .theme-toggle .sun-icon { display: block; }
[data-theme="dark"] .theme-toggle .moon-icon { display: none; }

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-logo {
  height: 34px;
  width: auto;
  display: block;
}

.brand span {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.main-nav a:hover {
  color: var(--ink);
}

.section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 88px clamp(20px, 5vw, 72px);
}

.hero {
  max-width: none;
  background:
    radial-gradient(circle at 80% 10%, rgba(37, 99, 235, 0.12), transparent 32%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}


.hero-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 104px clamp(20px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}

.hero-content {
  max-width: 960px;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 18px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 960px;
  margin-bottom: 28px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 14px;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.gtv-link {
  color: #3597B2; /* Türkis aus dem TVG-Logo */
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
  transition: all 0.2s ease;
}

.gtv-link:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
}

.button.primary {
  color: var(--button-primary-ink);
  background: var(--button-primary-bg);
}

.button.primary:hover {
  background: var(--button-primary-hover);
}

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
}

.button.secondary:hover {
  border-color: var(--muted);
}

.button.accent {
  background: var(--accent);
  color: #ffffff;
  padding: 0 28px;
}

.button.accent:hover {
  background: #1d4ed8;
  color: #ffffff;
}

.hero-panel {
  max-width: 480px;
  padding: 32px;
  border-radius: 36px;
  color: white;
  background: var(--dark);
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  font-size: 28px;
  margin-bottom: 28px;
}

.task-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.task-list li {
  position: relative;
  padding: 16px 16px 16px 44px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  color: var(--dark-muted);
  background: rgba(255,255,255,0.04);
}

.task-list li::before {
  content: "✓";
  position: absolute;
  left: 18px;
  color: white;
}

.two-column {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.section-intro {
  max-width: 780px;
  margin-bottom: 44px;
}

.section-intro p,
.two-column p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.testimonial {
  margin: 0;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
}

.two-column .testimonial p {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.testimonial footer {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.testimonial footer strong {
  display: block;
  color: var(--ink);
}

.legal-content {
  max-width: 820px;
}

.legal-content h2 {
  margin-top: 56px;
  font-size: clamp(24px, 3vw, 32px);
}

.legal-content h3 {
  margin-top: 36px;
  font-size: 20px;
}

.legal-content p,
.legal-content ul {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 20px;
}

.legal-content ul {
  padding-left: 24px;
}

.legal-content a {
  color: var(--accent);
}

.cards {
  display: grid;
  gap: 20px;
}

.cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.035);
}

.project-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.035);
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.project-image {
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: #f1f5f9;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card span,
.project-card h3,
.project-card p {
  padding-left: 30px;
  padding-right: 30px;
}

.project-card span {
  display: inline-flex;
  margin-top: 24px;
  margin-bottom: 20px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.project-card p {
  margin-bottom: 30px;
}

.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  border-radius: 18px;
  background: var(--bg);
  color: var(--ink);
  font-weight: 800;
}

.card p,
.project-card p {
  color: var(--muted);
}

.card ul {
  padding-left: 18px;
  margin-bottom: 0;
  color: var(--muted);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill-row span {
  display: inline-flex;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--bg);
}

.logo-marquee {
  --marquee-gap: 80px;
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: var(--marquee-gap);
  padding: 60px 0 20px;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-content {
  display: flex;
  flex-shrink: 0;
  gap: var(--marquee-gap);
  min-width: 100%;
  animation: scroll 60s linear infinite;
}

.marquee-content .logo-item {
  height: 48px;
  display: flex;
  align-items: center;
}

.marquee-content img {
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(0.6);
  transition: all 0.4s ease;
}

.marquee-content img[src*="Festo"] {
  height: 50%;
}

.marquee-content img[src*="Audi"] {
  height: 140%;
}

.marquee-content img[src*="Liebherr"] {
  height: 50%;
}

.marquee-content img[src*="DIN_Solutions"] {
  height: 150%;
}

[data-theme="dark"] .marquee-content img {
  filter: grayscale(1) brightness(2) opacity(0.6);
}

/* Specific logic for logos with explicit dark/light variants */
.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }

/* Invert primarily black WebP logos in dark mode if they don't have variants */
[data-theme="dark"] .marquee-content img[src*=".webp"] {
  filter: invert(1) brightness(2) grayscale(1) opacity(0.6);
}

.marquee-content img:hover,
[data-theme="dark"] .marquee-content img:hover {
  filter: grayscale(0) opacity(1) brightness(1) invert(0);
  transform: scale(1.05);
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - var(--marquee-gap))); }
}

@media (max-width: 900px) {
  .logo-marquee {
    --marquee-gap: 40px;
  }
  .marquee-content .logo-item {
    height: 36px;
  }
}

@media (max-width: 600px) {
  .logo-marquee {
    --marquee-gap: 30px;
    padding: 40px 0 10px;
  }
  .marquee-content .logo-item {
    height: 28px;
  }
}

.dark {
  max-width: none;
  color: white;
  background: var(--dark);
}

.dark > .two-column {
  max-width: 1440px;
  margin: 0 auto;
}

.dark .eyebrow {
  color: #94a3b8;
}

.branchen-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.branchen-cards span {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: var(--surface);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 32px;
  max-width: 1024px;
  margin: 0 auto 64px auto;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: var(--surface);
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.04);
}

.contact p {
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
  font-size: 18px;
}

.tech-in-contact {
  margin: 36px 0;
}

.tech-in-contact p {
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-nav {
  display: none; /* Auf Desktop versteckt, dient als mobiles Fallback */
}

.site-footer a:hover {
  color: var(--ink);
}

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
    gap: 16px;
  }

  .main-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 12px 16px;
  }

  .two-column,
  .cards.three,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .hero-content,
  .hero-panel {
    justify-self: stretch;
    max-width: none;
  }

  .contact {
    align-items: center;
    flex-direction: column;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .footer-nav {
    display: block;
  }

  .theme-toggle {
    margin-left: auto;
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
  }

  h1 {
    font-size: 44px;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .hero-panel,
  .card,
  .project-card,
  .contact {
    border-radius: 22px;
  }

  .hero-actions .button {
    width: 100%;
  }
}
