/* ===========================================================
   netdriven — Design System
   Marke: dunkler Grund + netdriven-Blau #496E9D
   Schrift: IBM Plex Sans (Text) · Condensed (Titel) · Mono (Labels)
   Keine Frameworks, keine Kendo-Reste. Alles handgeschrieben.
   =========================================================== */

/* ─── Schriften, lokal ausgeliefert ─── */
@font-face {
  font-family: 'Plex Sans';
  src: url('/assets/fonts/ibm-plex-sans-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plex Sans';
  src: url('/assets/fonts/ibm-plex-sans-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plex Cond';
  src: url('/assets/fonts/ibm-plex-sans-condensed-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plex Cond';
  src: url('/assets/fonts/ibm-plex-sans-condensed-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('/assets/fonts/ibm-plex-mono-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('/assets/fonts/ibm-plex-mono-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ─── Tokens: Größen, Abstände, Zeit ─── */
:root {
  --t-xs:   0.78rem;
  --t-sm:   0.875rem;
  --t-base: clamp(1rem, 0.96rem + 0.2vw, 1.06rem);
  --t-lg:   clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  --t-xl:   clamp(1.45rem, 1.2rem + 1.1vw, 2rem);
  --t-2xl:  clamp(2rem, 1.4rem + 2.6vw, 3.4rem);

  --s-1: 0.25rem; --s-2: 0.5rem;  --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;    --s-7: 3rem;    --s-8: 4rem;
  --s-9: 6rem;

  --r-sm: 3px; --r-md: 5px; --r-lg: 10px; --r-full: 999px;
  --ease: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --w-page: 1120px;
  --w-prose: 68ch;

  --f-title: 'Plex Cond', 'Helvetica Neue', Arial, sans-serif;
  --f-body:  'Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --f-mono:  'Plex Mono', ui-monospace, Menlo, monospace;
}

/* ─── Dunkles Theme (Standard) ─── */
:root, [data-theme="dark"] {
  color-scheme: dark;
  --bg:        #0b0e13;
  --surface:   #10161e;
  --surface-2: #161f2a;
  --border:    rgba(255, 255, 255, 0.09);
  --border-2:  rgba(255, 255, 255, 0.05);

  --text:      #e8eef5;
  --muted:     #93a3b4;
  --faint:     #66768a;
  --on-accent: #ffffff;

  --accent:      #7ea8d8;
  --accent-rail: #496e9d;
  --accent-dim:  rgba(73, 110, 157, 0.16);
  --accent-glow: rgba(73, 110, 157, 0.30);

  --shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
}

/* ─── Helles Theme ─── */
[data-theme="light"] {
  color-scheme: light;
  --bg:        #f5f7f9;
  --surface:   #ffffff;
  --surface-2: #eef2f6;
  --border:    #dde4ea;
  --border-2:  #e8edf2;

  --text:      #131a22;
  --muted:     #55636f;
  --faint:     #8a97a4;
  --on-accent: #ffffff;

  --accent:      #3a5c88;
  --accent-rail: #496e9d;
  --accent-dim:  rgba(73, 110, 157, 0.09);
  --accent-glow: rgba(73, 110, 157, 0.18);

  --shadow: 0 10px 30px rgba(19, 26, 34, 0.10);
}

/* Systemvorgabe, solange der Nutzer nichts gewählt hat.
   Das Inline-Script im <head> stempelt data-theme vor dem ersten Paint;
   dieser Block deckt den Fall ab, dass JS nicht läuft. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --bg: #f5f7f9; --surface: #ffffff; --surface-2: #eef2f6;
    --border: #dde4ea; --border-2: #e8edf2;
    --text: #131a22; --muted: #55636f; --faint: #8a97a4;
    --accent: #3a5c88; --accent-rail: #496e9d;
    --accent-dim: rgba(73, 110, 157, 0.09);
    --accent-glow: rgba(73, 110, 157, 0.18);
    --shadow: 0 10px 30px rgba(19, 26, 34, 0.10);
  }
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: 1.65;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-sm); }

h1, h2, h3, h4 { font-family: var(--f-title); font-weight: 600; line-height: 1.15; text-wrap: balance; }

.container { width: 100%; max-width: var(--w-page); margin-inline: auto; padding-inline: var(--s-5); }
.prose { max-width: var(--w-prose); }
.text-accent { color: var(--accent); }

.skip-link {
  position: absolute; top: -60px; left: var(--s-4); z-index: 200;
  background: var(--accent-rail); color: var(--on-accent);
  padding: var(--s-2) var(--s-4); border-radius: var(--r-md);
}
.skip-link:focus { top: var(--s-4); }

.scroll-progress {
  position: fixed; inset: 0 auto auto 0; z-index: 120;
  height: 2px; width: 0;
  background: var(--accent-rail);
}

/* ─── Navigation ─── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease), background var(--ease);
}
.nav--scrolled { border-bottom-color: var(--border); }
.nav__inner {
  display: flex; align-items: center; gap: var(--s-5);
  min-height: 64px;
}
.nav__logo { color: var(--text); flex-shrink: 0; }
.nav__logo .logo img { height: 22px; }

/* Logo: zwei Dateien, weil currentColor in einer per <img> geladenen SVG
   nicht greift (eigenes Dokument, faellt auf Schwarz zurueck). Sichtbar ist
   immer genau eine — Standard dunkel, passend zum Standard-Theme. */
.logo { display: block; }
.logo img { width: auto; }
.logo__light { display: none; }
[data-theme="light"] .logo__dark { display: none; }
[data-theme="light"] .logo__light { display: block; }
/* Ohne data-theme-Stempel (JS aus) entscheidet die Systemvorgabe */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .logo__dark { display: none; }
  :root:not([data-theme]) .logo__light { display: block; }
}

.nav__links { display: flex; align-items: center; gap: var(--s-5); margin-left: auto; }
.nav__links a { color: var(--muted); font-size: var(--t-sm); }
.nav__links a:hover { color: var(--text); text-decoration: none; }
.nav__cta {
  color: var(--text) !important;
  border: 1px solid var(--accent-rail);
  background: var(--accent-dim);
  padding: 5px 13px; border-radius: var(--r-md);
}
.nav__cta:hover { background: var(--accent-rail); color: var(--on-accent) !important; }

.nav__actions { display: flex; align-items: center; gap: var(--s-3); }
.lang-link {
  font-family: var(--f-mono); font-size: var(--t-xs);
  color: var(--muted); letter-spacing: 0.05em;
  padding: 4px 6px; border-radius: var(--r-sm);
}
.lang-link:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }

.nav__theme, .nav__burger {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border: 1px solid var(--border); border-radius: var(--r-md);
  color: var(--muted);
}
.nav__theme:hover, .nav__burger:hover { color: var(--text); border-color: var(--accent-rail); }
.nav__burger { display: none; gap: 4px; }
.nav__burger span {
  display: block; width: 15px; height: 1.5px;
  background: currentColor; transition: transform var(--ease), opacity var(--ease);
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.nav__mobile {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: var(--s-2) var(--s-5) var(--s-4);
}
.nav__mobile[hidden] { display: none; }
.nav__mobile a {
  color: var(--text); padding: var(--s-3) 0;
  border-bottom: 1px solid var(--border-2); font-size: var(--t-sm);
}
.nav__mobile a:last-child { border-bottom: none; }

/* ─── Hero ─── */
.hero { position: relative; padding: var(--s-9) 0 var(--s-7); overflow: hidden; }
.hero__glow {
  position: absolute; z-index: -1; pointer-events: none;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 68%);
  top: -220px; right: -160px; opacity: 0.75;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--f-mono); font-size: var(--t-xs);
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--border); border-radius: var(--r-full);
  padding: 5px 13px;
}
.hero__badge i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent-rail); flex-shrink: 0;
}
.hero__heading {
  font-size: var(--t-2xl); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.03;
  margin-top: var(--s-5); max-width: 15ch;
}
.hero__heading em { font-style: normal; color: var(--accent); display: block; }
.hero__sub { margin-top: var(--s-5); max-width: 56ch; color: var(--muted); font-size: var(--t-lg); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

.btn {
  display: inline-block;
  padding: 11px 22px; border-radius: var(--r-md);
  font-size: var(--t-sm); font-weight: 600;
  border: 1px solid transparent; transition: background var(--ease), border-color var(--ease);
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--accent-rail); color: var(--on-accent); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent-rail) 82%, #000); }
.btn--ghost { border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent-rail); background: var(--accent-dim); }

.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--r-md);
  overflow: hidden; margin-top: var(--s-7);
}
.fact { background: var(--surface); padding: var(--s-4) var(--s-5); }
.fact dt {
  font-family: var(--f-mono); font-size: var(--t-xs);
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--faint);
}
.fact dd { margin-top: var(--s-1); font-weight: 600; font-size: var(--t-sm); }

/* ─── Tech-Laufband ─── */
.marquee {
  border-block: 1px solid var(--border);
  padding: var(--s-4) 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee__group { display: flex; align-items: center; gap: var(--s-7); padding-right: var(--s-7); }
.marquee__item {
  display: flex; align-items: center; gap: var(--s-2);
  font-family: var(--f-mono); font-size: var(--t-xs);
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--faint); white-space: nowrap;
}
.marquee__item img { width: 18px; height: 18px; object-fit: contain; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── Abschnitte ─── */
.section { padding: var(--s-9) 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--border); }
.section__header { margin-bottom: var(--s-7); }
.section__label {
  display: block; font-family: var(--f-mono); font-size: var(--t-xs);
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent);
  margin-bottom: var(--s-3);
}
.section__title { font-size: var(--t-xl); letter-spacing: -0.01em; }
.section__sub { margin-top: var(--s-3); max-width: var(--w-prose); color: var(--muted); }

/* ─── Karten mit blauer Schiene (das Markendetail) ─── */
.cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--s-4);
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent-rail);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: var(--s-5);
  transition: transform var(--ease), border-color var(--ease);
}
.section--alt .card { background: var(--bg); }
.card:hover { transform: translateY(-2px); border-color: var(--border); border-left-color: var(--accent); }
.card__title { font-size: 1.02rem; font-weight: 600; }
.card__sub { margin-top: var(--s-2); font-size: var(--t-sm); color: var(--muted); }

/* ─── Zertifikate ─── */
/* height:auto ist nötig: die width/height-Attribute im Markup tragen die
   echten Pixelmaße und damit das Seitenverhältnis — ohne das staucht der
   Browser das Logo auf die Attributhöhe. Die beiden Varianten haben
   unterschiedliche Verhältnisse (1232x788 bzw. 1233x902). */
.redhat-logo { display: block; margin-bottom: var(--s-6); }
.redhat-logo img { width: 170px; height: auto; }
.redhat-logo__light { display: none; }
[data-theme="light"] .redhat-logo__dark { display: none; }
[data-theme="light"] .redhat-logo__light { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .redhat-logo__dark { display: none; }
  :root:not([data-theme]) .redhat-logo__light { display: block; }
}

/* ─── Branchen ─── */
.tags { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.tag {
  border: 1px solid var(--border); border-radius: var(--r-full);
  padding: 8px 16px; font-size: var(--t-sm); color: var(--muted);
  background: var(--surface);
}
.section--alt .tag { background: var(--bg); }

/* ─── Kontakt ─── */
.contact-block {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s-8); align-items: start;
}
.contact-card {
  display: flex; gap: var(--s-5); align-items: center;
  margin-bottom: var(--s-6);
}
.contact-card img {
  width: 92px; height: 92px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--border);
}
.contact-card h3 { font-size: 1.1rem; }
.contact-card p { font-size: var(--t-sm); color: var(--muted); }
.contact-links { display: flex; flex-direction: column; gap: var(--s-2); margin-top: var(--s-5); }
.contact-link {
  display: inline-flex; align-items: center; gap: var(--s-3);
  color: var(--text); font-size: var(--t-sm);
}
.contact-link:hover { color: var(--accent); text-decoration: none; }
.contact-link svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--accent); }
.contact-social { display: flex; gap: var(--s-4); margin-top: var(--s-5); }
.contact-social a {
  display: grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid var(--border); border-radius: var(--r-md); color: var(--muted);
}
.contact-social a:hover { border-color: var(--accent-rail); color: var(--text); }
.contact-social svg { width: 17px; height: 17px; }

.contact-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--s-6);
  display: flex; flex-direction: column; gap: var(--s-4);
}
.section--alt .contact-form { background: var(--bg); }
.form-group { display: flex; flex-direction: column; gap: var(--s-2); }
.form-group label { font-size: var(--t-xs); font-weight: 600; color: var(--muted); }
.form-group input, .form-group textarea {
  font: inherit; font-size: var(--t-sm);
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 10px 13px; width: 100%;
}
.section--alt .form-group input, .section--alt .form-group textarea { background: var(--surface); }
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent-rail);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.btn--full { width: 100%; text-align: center; }
.honeypot { position: absolute; left: -9999px; }

/* ─── Tech-Stack-Seite ─── */
.page-head { padding: var(--s-8) 0 var(--s-6); }
.back-link {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--t-sm); color: var(--muted); margin-bottom: var(--s-5);
}
.back-link:hover { color: var(--accent); text-decoration: none; }
.stack-group { margin-bottom: var(--s-8); }
.stack-group h2 {
  font-size: 1.15rem; padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--border); margin-bottom: var(--s-5);
}
.stack-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: var(--s-3);
}
.stack-item {
  display: flex; flex-direction: column; align-items: center; gap: var(--s-3);
  padding: var(--s-4) var(--s-2);
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--surface);
  font-size: var(--t-xs); color: var(--muted); text-align: center;
  transition: border-color var(--ease), transform var(--ease);
}
.stack-item:hover {
  border-color: var(--accent-rail); color: var(--text);
  transform: translateY(-2px); text-decoration: none;
}
.stack-item img { width: 36px; height: 36px; object-fit: contain; }
/* Einige Hersteller-SVGs sind einfarbig dunkel und verschwinden auf dunklem Grund */
[data-theme="dark"] .stack-item img.on-white,
:root:not([data-theme]) .stack-item img.on-white {
  background: #fff; border-radius: var(--r-sm); padding: 3px;
}

/* ─── Fließtextseiten (Impressum, Datenschutz, 404) ─── */
.doc { padding: var(--s-7) 0 var(--s-9); }
.doc h1 { font-size: var(--t-xl); margin-bottom: var(--s-5); }
.doc h2 {
  font-size: 1.2rem; margin-top: var(--s-7); margin-bottom: var(--s-3);
  padding-bottom: var(--s-2); border-bottom: 1px solid var(--border);
}
.doc h3 { font-size: 1.02rem; margin-top: var(--s-5); margin-bottom: var(--s-2); }
.doc h4 { font-size: 0.95rem; margin-top: var(--s-4); margin-bottom: var(--s-2); color: var(--muted); }
.doc p, .doc ul { max-width: var(--w-prose); font-size: var(--t-sm); color: var(--muted); }
.doc p + p, .doc ul { margin-top: var(--s-3); }
.doc ul { padding-left: var(--s-5); }
.doc li { margin-bottom: var(--s-2); }
.doc strong { color: var(--text); font-weight: 600; }
.doc address { font-style: normal; font-size: var(--t-sm); color: var(--muted); }

.notfound { padding: var(--s-9) 0; text-align: center; }
.notfound .code {
  font-family: var(--f-mono); font-size: clamp(3rem, 10vw, 6rem);
  color: var(--accent-rail); line-height: 1;
}

/* ─── Footer ─── */
.footer { border-top: 1px solid var(--border); padding: var(--s-7) 0 var(--s-6); }
.footer__inner { display: flex; flex-direction: column; gap: var(--s-5); }
.footer__brand .logo img { height: 20px; }
.footer__tagline { margin-top: var(--s-2); font-size: var(--t-sm); color: var(--muted); }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.footer__links a { color: var(--muted); font-size: var(--t-sm); }
.footer__links a:hover { color: var(--text); }
.footer__meta {
  border-top: 1px solid var(--border-2); padding-top: var(--s-4);
  font-size: var(--t-xs); color: var(--faint);
}
.footer__trademarks { margin-top: var(--s-2); max-width: 78ch; }

/* ─── Einblenden beim Scrollen ─── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--d1 { transition-delay: 70ms; }
.reveal--d2 { transition-delay: 140ms; }
.reveal--d3 { transition-delay: 210ms; }

/* ─── Responsiv ─── */
@media (max-width: 860px) {
  .contact-block { grid-template-columns: 1fr; gap: var(--s-6); }
}
@media (max-width: 700px) {
  .nav__links { display: none; }
  .nav__burger { display: grid; }
  .nav__actions { margin-left: auto; }
  .hero { padding-top: var(--s-7); }
  .section { padding: var(--s-8) 0; }
  .contact-card { flex-direction: column; align-items: flex-start; }
}

/* ─── Bewegungsreduktion respektieren ─── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}
