/* ============================================================
   innoX-IT Website 2026
   Aufbau: Tokens · Basis · Layout · Header · Buttons · Hero ·
           Sektionen · Karten · Bänder · Kontakt · Footer ·
           DSGVO-Seite · Responsive
   Tokens entsprechen dem Design System (InnoxDesignSystem/tokens/).
   ============================================================ */

/* ------------------------------------------------------------
   TOKENS
   Zwei Markenfarben, getrennt nach Untergrund:
   Cyan nur auf Navy, Blau auf hellem Grund. Cyan auf Weiss
   erreicht nur 2.08:1 und wird deshalb nie fuer Text verwendet.
   ------------------------------------------------------------ */
:root {
  --cyan-300: #72E6FD;
  --cyan-400: #36DBFC;
  --cyan-500: #03C4EB;
  --cyan-600: #03A8C9;

  --blue-50:  #EBF5FE;
  --blue-300: #60AFFB;
  --blue-500: #0560B8;
  --blue-600: #04509A;
  --blue-700: #03417C;

  --navy-900: #0d1b2a;
  --navy-800: #152236;

  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-800: #1e293b;

  --color-bg:            #ffffff;
  --color-surface:       #f6fafd;
  --color-text:          var(--slate-800);
  --color-text-muted:    var(--slate-500);
  --color-text-invert-muted: rgba(255,255,255,.65);
  --color-interactive:       var(--blue-500);
  --color-interactive-hover: var(--blue-600);
  --color-border:        #dde6f0;
  --color-border-invert: rgba(255,255,255,.14);
  --color-accent-glow:   rgba(3,196,235,.22);
  --gradient-brand: linear-gradient(135deg, var(--cyan-500) 0%, var(--blue-500) 100%);

  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-mono:    ui-monospace, SFMono-Regular, Menlo, monospace;

  --fs-3xs: .65rem;
  --fs-2xs: .75rem;
  --fs-xs:  .8rem;
  --fs-sm:  .88rem;
  --fs-md:  1.05rem;
  --fs-lg:  1.2rem;
  --fs-xl:  clamp(1.7rem, 3vw,   2.2rem);
  --fs-2xl: clamp(1.8rem, 3.5vw, 2.5rem);
  --fs-3xl: clamp(1.9rem, 3.4vw, 3.3rem);

  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  --lh-heading: 1.2;
  --lh-body: 1.7;
  --ls-tight: -.5px;
  --ls-snug: -.3px;
  --ls-eyebrow: 1px;

  --space-1: .25rem;  --space-2: .5rem;   --space-3: .75rem;
  --space-4: 1rem;    --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem;    --space-10: 2.5rem; --space-12: 3rem;

  --section-y: clamp(3.5rem, 8vw, 5.625rem);
  --container: 1160px;
  --container-pad: 1.5rem;
  --nav-h: 74px;

  --radius-s: 8px;
  --radius:   14px;
  --radius-l: 22px;
  --radius-pill: 99px;

  --shadow-s: 0 2px 10px  rgba(13,27,42,.06);
  --shadow:   0 6px 24px  rgba(13,27,42,.09);
  --shadow-l: 0 14px 48px rgba(13,27,42,.13);
  --shadow-c: 0 8px 32px  rgba(3,196,235,.22);

  --ease: cubic-bezier(.4,0,.2,1);
  --t: .28s var(--ease);
}

/* ------------------------------------------------------------
   BASIS
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-snug);
}

a { color: var(--color-interactive); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--color-interactive-hover); }

:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 3px; border-radius: 3px; }
.section-dark :focus-visible,
#header :focus-visible,
footer :focus-visible,
.foto-band :focus-visible { outline-color: var(--cyan-400); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* ------------------------------------------------------------
   LAYOUT
   ------------------------------------------------------------ */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section { padding: var(--section-y) 0; }
.section-alt  { background: var(--color-surface); }
.section-dark { background: var(--navy-900); }

.eyebrow {
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--color-interactive);
}
.section-dark .eyebrow { color: var(--cyan-500); }

.section-title {
  margin-top: var(--space-4);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
}
.section-dark .section-title { color: #fff; max-width: 24ch; }

.section-lead {
  margin-top: var(--space-4);
  max-width: 60ch;
  color: var(--color-text-muted);
}
.section-dark .section-lead {
  margin-top: var(--space-6);
  max-width: 70ch;
  color: var(--color-text-invert-muted);
}

/* ------------------------------------------------------------
   HEADER
   ------------------------------------------------------------ */
#header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13,27,42,.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
#header .container {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.logo { display: flex; align-items: center; gap: var(--space-3); margin-right: auto; }
.logo-mark { width: 38px; height: 38px; flex-shrink: 0; }
.logo-name {
  font-family: var(--font-heading);
  font-weight: var(--fw-extrabold);
  font-size: 1.1rem;
  letter-spacing: var(--ls-snug);
  color: #fff;
  line-height: 1.15;
}
.logo-name span { color: var(--cyan-500); }
.logo-sub {
  display: block;
  font-size: var(--fs-3xs);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--color-text-invert-muted);
}

#nav { display: flex; align-items: center; gap: var(--space-6); }
#nav a {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-invert-muted);
}
#nav a:hover { color: #fff; }
#nav .nav-cta {
  font-weight: var(--fw-semibold);
  color: #fff;
  background: var(--gradient-brand);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-s);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border: none;
  background: none;
  cursor: pointer;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: #fff; border-radius: 2px; transition: all var(--t);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: rgba(13,27,42,.97);
  backdrop-filter: blur(12px);
  z-index: 49;
  padding: var(--space-8) var(--container-pad);
  flex-direction: column;
  gap: var(--space-2);
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,.85);
  font-size: 1.1rem;
  font-weight: var(--fw-medium);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-s);
}
.mobile-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.mobile-nav .nav-cta {
  margin-top: var(--space-2);
  background: var(--gradient-brand);
  color: #fff;
  text-align: center;
  padding: var(--space-4);
}

/* ------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-s);
  font-weight: var(--fw-semibold);
  transition: all var(--t);
  border: 1px solid transparent;
}
.btn svg { flex: none; }

.btn-primary { background: var(--gradient-brand); color: #fff; box-shadow: var(--shadow-c); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); }

.btn-ghost { border-color: rgba(255,255,255,.28); color: #fff; }
.btn-ghost:hover { border-color: var(--cyan-500); color: #fff; background: rgba(255,255,255,.06); }

.btn-white { background: #fff; color: var(--blue-600); box-shadow: var(--shadow-l); }
.btn-white:hover { color: var(--blue-700); transform: translateY(-2px); }

.btn-blue { background: var(--blue-500); color: #fff; }
.btn-blue:hover { background: var(--blue-600); color: #fff; transform: translateY(-2px); }

/* ------------------------------------------------------------
   HERO — geteilte Flaeche, Text links, Signet rechts
   ------------------------------------------------------------ */
#hero {
  background: var(--navy-900);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  align-items: stretch;
}
.hero-text {
  /* linke Spalte buendig zum Container, rechts frei atmend */
  padding: clamp(3.5rem,7vw,6rem) clamp(1.5rem,4vw,3rem) clamp(3.5rem,7vw,6rem)
           max(var(--container-pad), calc((100vw - var(--container)) / 2));
}
.hero-eyebrow { font-size: var(--fs-2xs); font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--cyan-500); }
.hero-text h1 {
  margin-top: var(--space-6);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-extrabold);
  letter-spacing: var(--ls-tight);
  line-height: 1.06;
  color: #fff;
  max-width: 15em;
  text-wrap: pretty;
  hyphens: none;
}
.hero-text h1 span { white-space: nowrap; }
.hero-lead {
  margin-top: var(--space-6);
  max-width: 48ch;
  font-size: var(--fs-md);
  color: var(--color-text-invert-muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-10); }

.hero-visual {
  position: relative;
  background: linear-gradient(155deg, var(--blue-700) 0%, var(--navy-900) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem,6vw,5rem);
  overflow: hidden;
  min-height: 320px;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, var(--color-accent-glow) 0%, rgba(3,196,235,0) 60%);
}
.hero-visual img { position: relative; width: min(360px, 62%); height: auto; }

/* ------------------------------------------------------------
   UNTERNEHMEN
   ------------------------------------------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.about-text { max-width: 60ch; }
.about-text h2 { margin-top: var(--space-4); font-size: var(--fs-xl); font-weight: var(--fw-bold); }
.about-text p { margin-top: var(--space-6); color: var(--color-text-muted); }
.about-text p + p { margin-top: var(--space-4); }
.about-text strong { color: var(--color-text); }

.about-box {
  background: var(--color-surface);
  border-radius: var(--radius-l);
  padding: clamp(1.75rem, 4vw, 2.5rem);
}
.check-list { display: grid; gap: var(--space-5); margin-top: var(--space-6); }
.check-list li { display: flex; gap: var(--space-3); align-items: flex-start; }
.check-list svg { flex: none; margin-top: 5px; }

/* ------------------------------------------------------------
   KARTEN — Services, KI
   ------------------------------------------------------------ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-12);
}
.service-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-6);
  box-shadow: var(--shadow-s);
  transition: box-shadow var(--t), transform var(--t);
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.service-card h4 { font-size: var(--fs-lg); font-weight: var(--fw-semibold); }
.service-card p { margin-top: var(--space-3); font-size: var(--fs-sm); color: var(--color-text-muted); }

/* Erste Karte ueber zwei Spalten — loest das Sieben-Karten-Problem */
.service-card--wide {
  grid-column: span 2;
  min-width: 0;
  background: var(--navy-900);
  border-color: transparent;
  padding: var(--space-8);
}
.service-card--wide h4 { color: #fff; }
.service-card--wide p { font-size: 1rem; color: var(--color-text-invert-muted); }
.service-card--wide a {
  color: var(--cyan-500);
  border-bottom: 1px solid rgba(3,196,235,.4);
}
.service-card--wide a:hover { color: var(--cyan-300); }

.ki-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-12);
}
.ki-card {
  background: var(--navy-800);
  border: 1px solid var(--color-border-invert);
  border-radius: var(--radius);
  padding: var(--space-6);
}
.ki-card h4 { font-size: var(--fs-lg); font-weight: var(--fw-semibold); color: #fff; }
.ki-card p { margin-top: var(--space-3); font-size: var(--fs-sm); color: var(--color-text-invert-muted); }

/* ------------------------------------------------------------
   EIGENENTWICKLUNG
   ------------------------------------------------------------ */
.eigen-card {
  margin-top: var(--space-10);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-s);
}
.eigen-card h3 { font-size: var(--fs-lg); font-weight: var(--fw-semibold); }
.eigen-card p { margin-top: var(--space-4); max-width: 62ch; color: var(--color-text-muted); }
.eigen-link {
  display: inline-flex; align-items: center; gap: var(--space-2);
  margin-top: var(--space-6); font-weight: var(--fw-semibold);
}
.eigen-link svg { flex: none; }

/* Produktaufnahme: bewusst groesser als der Rahmen und oben links
   verankert. So bleibt der sichtbare Ausschnitt lesbar, statt den
   ganzen 1440px-Screenshot auf Briefmarkengroesse zu schrumpfen —
   und der angeschnittene Rand liest sich als echte Oberflaeche. */
.produktbild {
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  overflow: hidden;
  background: var(--slate-50);
  box-shadow: var(--shadow);
}
.produktbild img {
  width: 148%;
  max-width: none;   /* schlaegt die Basisregel img{max-width:100%} */
  height: auto;
  display: block;
}

/* Platzhalter, solange kein Screenshot vorliegt */
.platzhalter {
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, var(--slate-100) 0 12px, var(--slate-50) 12px 24px);
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  text-align: center;
}

/* ------------------------------------------------------------
   BAENDER — Foto-Band und CTA-Band
   ------------------------------------------------------------ */
.foto-band {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  background-color: var(--navy-900);
  background-image:
    linear-gradient(90deg, rgba(13,27,42,.96) 0%, rgba(13,27,42,.78) 46%, rgba(13,27,42,.18) 100%),
    url('../assets/img/hero-bg.jpg');
  background-size: cover, cover;
  background-position: center, 95% 50%;
  padding: clamp(3rem,6vw,4.5rem) 0;
}
.foto-band .eyebrow { color: var(--cyan-500); }
.foto-band h2 {
  margin-top: var(--space-5);
  max-width: 34ch;
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: #fff;
  text-wrap: pretty;
}
.foto-band p {
  margin-top: var(--space-4);
  max-width: 54ch;              /* 44ch war schmaler als die Ueberschrift daneben */
  text-wrap: pretty;            /* verhindert ein einzelnes Wort auf der letzten Zeile */
  color: var(--color-text-invert-muted);
}

.cta-band { background: var(--gradient-brand); padding: clamp(3rem,6vw,4.5rem) 0; }
.cta-band .container {
  display: flex; flex-wrap: wrap; gap: var(--space-8);
  align-items: center; justify-content: space-between;
}
.cta-band h2 { max-width: 52ch; font-size: var(--fs-xl); font-weight: var(--fw-bold); color: #fff; }
.cta-band p { margin-top: var(--space-3); max-width: 52ch; color: rgba(255,255,255,.88); }

/* ------------------------------------------------------------
   KONTAKT
   ------------------------------------------------------------ */
.kontakt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-10);
}
/* Ganze Kachel ist der Link, nicht nur Adresse bzw. Nummer */
.kontakt-card {
  display: block;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-6);
  color: var(--color-text);
  box-shadow: var(--shadow-s);
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}
.kontakt-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: var(--blue-300);
  color: var(--color-text);
}
.kontakt-icon {
  display: flex; width: 42px; height: 42px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-s);
  background: var(--blue-50);
}
.kontakt-card h4 { margin-top: var(--space-5); font-size: var(--fs-lg); font-weight: var(--fw-semibold); }
.kontakt-card p { margin-top: var(--space-2); color: var(--color-text-muted); }
.kontakt-wert { color: var(--color-interactive); font-weight: var(--fw-medium); }
.kontakt-hinweis { margin-top: var(--space-1); font-size: var(--fs-sm); color: var(--color-text-muted); }
.kontakt-card strong {
  display: block;
  color: var(--color-text);
  font-weight: var(--fw-semibold);
}
.standort + .standort { margin-top: var(--space-4); }

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
footer { background: var(--navy-900); padding: var(--space-12) 0; }
footer .container {
  display: flex; flex-wrap: wrap; gap: var(--space-6);
  align-items: center; justify-content: space-between;
}
footer .logo { margin-right: 0; }
footer .logo-mark { width: 30px; height: 30px; }
footer .logo-name { font-size: 1rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-6); }
.footer-links a { font-size: var(--fs-sm); color: var(--color-text-invert-muted); }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: var(--fs-sm); color: rgba(255,255,255,.45); }

/* ------------------------------------------------------------
   DSGVO-SEITE
   ------------------------------------------------------------ */
.dsgvo-hero { background: var(--navy-900); padding: var(--space-12) 0 var(--space-10); }
.dsgvo-hero h1 { font-size: var(--fs-2xl); font-weight: var(--fw-extrabold); color: #fff; }
.dsgvo-hero a { color: var(--cyan-500); font-size: var(--fs-sm); }
.dsgvo-hero a:hover { color: var(--cyan-300); }
.dsgvo-body { padding: var(--section-y) 0; }
.dsgvo-body h2 {
  margin-top: var(--space-10); margin-bottom: var(--space-3);
  font-size: var(--fs-lg); font-weight: var(--fw-semibold);
}
.dsgvo-body h2:first-child { margin-top: 0; }
.dsgvo-body p, .dsgvo-body li { color: var(--color-text-muted); max-width: 70ch; }
.dsgvo-body p + p { margin-top: var(--space-3); }
.dsgvo-body ul { margin-top: var(--space-3); display: grid; gap: var(--space-2); }
.dsgvo-body li { padding-left: var(--space-5); position: relative; }
.dsgvo-body li::before {
  content: "—"; position: absolute; left: 0; color: var(--blue-500);
}

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  #nav { display: none; }
  .hamburger { display: flex; }
  /* Breite Karte wieder einspaltig, sonst sprengt sie das Raster */
  .service-card--wide { grid-column: span 1; padding: var(--space-6); }
  .service-card--wide p { font-size: var(--fs-sm); }
}

@media (max-width: 640px) {
  .cta-band .container { flex-direction: column; align-items: flex-start; }
  footer .container { flex-direction: column; align-items: flex-start; gap: var(--space-5); }
  .hero-actions .btn { width: 100%; justify-content: center; }
  /* Auf dem Handy ist ein Ausschnitt ohnehin nicht lesbar und wirkt
     willkuerlich beschnitten — dort die ganze Oberflaeche zeigen. */
  .produktbild img { width: 100%; }
}
