/* ============================================================
   REDLINE — Jörg Höche · Direct Sales Consulting
   Cockpit-Dark: Asphalt + Chrom, Aqua-Präzision, Ignition-Redline.
   Alle Farben als Tokens — kein hardcoded Hex außerhalb :root.
   ============================================================ */

:root {
  /* --- Light (Default: Tageslicht) --- */
  --bg:        #EEF0F2;
  --bg-deep:   #E3E7EB;
  --surface:   #FFFFFF;
  --surface-2: #F5F7F9;
  --line:      #D6DBE0;
  --line-soft: #E4E8EC;
  --text:      #14171A;
  --text-dim:  #3C444C;
  --muted:     #6B7178;
  --hot:       #E8481B;   /* Ignition */
  --hot-2:     #FF6234;
  --on-hot:    #fff;      /* Text auf --hot, mode-invariant */
  --cool:      #0FA891;   /* Dawn */
  --cool-dim:  #0C8676;

  /* Legacy-Aliase (falls Alt-Markup sie noch nutzt) */
  --color-gold: var(--hot);
  --color-gray: var(--text-dim);

  --header-h: 76px;
  --wrap: 1180px;
  --gap: clamp(1.5rem, 4vw, 3rem);
  --sp-section: clamp(4.5rem, 9vw, 8rem);

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

:root[data-theme="dark"] {
  /* --- Dark (Nachtfahrt) --- */
  --bg:        #14171A;
  --bg-deep:   #0E1013;
  --surface:   #1B1F24;
  --surface-2: #22272D;
  --line:      #2C333A;
  --line-soft: #23282E;
  --text:      #EAEEF2;
  --text-dim:  #B7BFC8;
  --muted:     #7E868F;
  --hot:       #FF5B2E;
  --hot-2:     #FF7A4D;
  --cool:      #34E0C8;
  --cool-dim:  #1FA894;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.container { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.02; margin: 0; letter-spacing: -0.02em; }

a { color: inherit; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--hot); color: var(--on-hot); padding: .7rem 1.1rem; font-family: var(--font-mono); font-size: .8rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:where(a, button, input, textarea, select):focus-visible {
  outline: 2px solid var(--cool); outline-offset: 3px; border-radius: 2px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* mono eyebrow / mile-marker */
.eyebrow, .section-eyebrow, .hero-eyebrow {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--cool); margin: 0 0 1rem;
}
.section-eyebrow::before { content: "▸ "; color: var(--hot); }

/* ===================== HEADER ===================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-header.scrolled { background: color-mix(in srgb, var(--bg-deep) 88%, transparent); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.header-logo { display: inline-flex; }
.logo-img { height: 60px; width: auto; display: block; }

.nav-list { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  font-family: var(--font-mono); font-size: .82rem; letter-spacing: .06em; text-decoration: none;
  color: var(--text-dim); position: relative; padding: .3rem 0; transition: color .2s var(--ease);
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--hot);
  transition: width .25s var(--ease);
}
.nav-list a:hover { color: var(--text); }
.nav-list a:hover::after { width: 100%; }

.header-controls { display: flex; align-items: center; gap: .75rem; }
.theme-toggle {
  width: 38px; height: 38px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  border-radius: 50%; cursor: pointer; display: grid; place-items: center; font-size: .95rem;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.theme-toggle:hover { border-color: var(--cool); transform: rotate(-12deg); }
.icon-moon { display: none; } .icon-sun { display: inline; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: inline; }

.lang-select {
  appearance: none; background: var(--surface); color: var(--text); border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .1em; padding: .45rem 1.6rem .45rem .7rem;
  border-radius: var(--radius); cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 14px) 52%, calc(100% - 9px) 52%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.lang-select:hover { border-color: var(--cool); }

.hamburger { display: none; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; padding: 8px; }
.hamburger span { display: block; height: 2px; background: var(--text); margin: 5px 0; transition: transform .25s var(--ease), opacity .2s; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== HERO ===================== */
.hero {
  min-height: 100svh; display: grid; align-items: center; position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  background:
    radial-gradient(120% 80% at 80% -10%, color-mix(in srgb, var(--cool) 12%, transparent), transparent 60%),
    radial-gradient(90% 60% at 0% 110%, color-mix(in srgb, var(--hot) 10%, transparent), transparent 55%),
    var(--bg-deep);
}
.hero-content { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.hero-headline {
  font-size: clamp(2.9rem, 9.5vw, 7.2rem); font-weight: 800; letter-spacing: -0.035em;
  text-transform: uppercase; max-width: 15ch; margin-top: .5rem;
}
.hero-headline em { font-style: normal; color: var(--hot); position: relative; }
.hero-sub { font-size: clamp(1rem, 2vw, 1.25rem); color: var(--text-dim); max-width: 46ch; margin: 1.6rem 0 0; line-height: 1.55; }

/* Road-line: Highway-Mittellinie mit Aqua-Sweep */
.road-line { position: relative; height: 2px; margin: 2.4rem 0 2.2rem; background: var(--line); max-width: 640px; overflow: hidden; }
.road-line::before {
  content: ""; position: absolute; top: 0; left: -30%; height: 100%; width: 30%;
  background: linear-gradient(90deg, transparent, var(--cool), transparent);
  animation: sweep 3.4s var(--ease) infinite;
}
.road-line::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, var(--muted) 0 14px, transparent 14px 34px);
  opacity: .35;
}
@keyframes sweep { 0% { left: -30%; } 60%, 100% { left: 100%; } }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }

.btn {
  display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-mono); font-size: .82rem;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none; padding: .95rem 1.6rem;
  border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; transition: all .22s var(--ease);
}
.btn-primary { background: var(--hot); color: var(--on-hot); box-shadow: 0 0 0 0 color-mix(in srgb, var(--hot) 60%, transparent); }
.btn-primary::after { content: "▶"; font-size: .7em; }
.btn-primary:hover { background: var(--hot-2); box-shadow: 0 8px 30px -6px color-mix(in srgb, var(--hot) 55%, transparent); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--cool); color: var(--cool); }

.scroll-indicator { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); width: 22px; height: 36px; border: 2px solid var(--muted); border-radius: 12px; }
.scroll-indicator span { display: block; width: 3px; height: 8px; background: var(--cool); border-radius: 2px; margin: 6px auto 0; animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(10px); } }

/* ===================== SECTIONS ===================== */
.section { padding: var(--sp-section) 0; position: relative; }
.section-title { font-size: clamp(1.9rem, 4.5vw, 3.1rem); text-transform: uppercase; letter-spacing: -0.03em; margin-bottom: 2.5rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .road-line::before, .scroll-indicator span { animation: none; }
}

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--gap); align-items: center; }
.about-image { position: relative; }
.about-image img { width: 100%; height: auto; display: block; border-radius: var(--radius); filter: grayscale(.25) contrast(1.05); }
.about-image::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.about-image::after { content: ""; position: absolute; left: -10px; top: 24px; bottom: 24px; width: 3px; background: linear-gradient(var(--cool), var(--hot)); }
.about-text p { color: var(--text-dim); margin: 0 0 1.1rem; }
.about-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.about-tags span {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; padding: .4rem .8rem;
  border: 1px solid var(--line); border-radius: 99px; color: var(--text-dim);
}

/* SERVICES */
.services-grid, .why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.service-card, .why-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.7rem; position: relative; overflow: hidden; transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.service-card::before, .why-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--hot); transition: width .3s var(--ease);
}
.service-card:hover, .why-card:hover { transform: translateY(-4px); border-color: var(--line); }
.service-card:hover::before, .why-card:hover::before { width: 100%; }
.service-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border: 1px solid var(--line); border-radius: 50%; margin-bottom: 1.2rem; }
.service-icon img { width: 26px; height: 26px; filter: invert(1); opacity: .9; }
:root[data-theme="dark"] .service-icon img { filter: none; }
.service-card h3, .why-card h3 { font-size: 1.3rem; margin-bottom: .7rem; text-transform: uppercase; letter-spacing: -0.01em; }
.service-card p, .why-card p { color: var(--text-dim); font-size: .96rem; margin: 0 0 1rem; }
.service-card ul { list-style: none; margin: 0; padding: 0; }
.service-card li { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); padding: .35rem 0 .35rem 1.2rem; position: relative; border-top: 1px solid var(--line-soft); }
.service-card li:first-child { border-top: 0; }
.service-card li::before { content: "—"; position: absolute; left: 0; color: var(--cool); }

.why-card-icon { font-size: 1.8rem; margin-bottom: 1rem; filter: grayscale(1) brightness(1.4); }

/* APPROACH — als Gänge/Phasen */
.approach-phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.approach-phase { border-top: 2px solid var(--line); padding-top: 1.2rem; position: relative; }
.approach-phase::before { content: ""; position: absolute; top: -2px; left: 0; width: 40px; height: 2px; background: var(--hot); }
.phase-number { font-family: var(--font-mono); font-size: .8rem; color: var(--cool); letter-spacing: .1em; margin-bottom: .6rem; }
.approach-phase h3 { font-size: 1.35rem; text-transform: uppercase; margin-bottom: .6rem; }
.approach-phase p { color: var(--text-dim); font-size: .92rem; margin: 0; }

/* EXPERIENCE — Tacho-Instrumente */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 3.5rem; }
.gauge { display: grid; justify-items: center; text-align: center; gap: .2rem; }
.gauge svg { width: 100%; max-width: 168px; height: auto; overflow: visible; }
.gauge .g-track { fill: none; stroke: var(--line); stroke-width: 10; stroke-linecap: round; }
.gauge .g-value { fill: none; stroke: url(#gaugegrad); stroke-width: 10; stroke-linecap: round; }
#gaugegrad stop:nth-child(1), #gaugegrad stop:nth-child(2) { stop-color: var(--cool); }
#gaugegrad stop:nth-child(3) { stop-color: var(--hot); }
.gauge .g-tick { stroke: var(--muted); stroke-width: 2; }
.gauge .g-tick.red { stroke: var(--hot); }
.stat-number { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.03em; margin-top: -1.6rem; }
.stat-label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; max-width: 18ch; }

/* TIMELINE */
.timeline { display: grid; gap: 0; border-left: 2px solid var(--line); margin-left: .5rem; }
.timeline-item { padding: 1.4rem 0 1.4rem 1.8rem; position: relative; border-bottom: 1px solid var(--line-soft); }
.timeline-item:last-child { border-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: -7px; top: 1.9rem; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--hot); }
.timeline-role { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; text-transform: uppercase; letter-spacing: -0.01em; }
.timeline-company { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; color: var(--cool); text-transform: uppercase; margin: .2rem 0 .5rem; }
.timeline-desc { color: var(--text-dim); font-size: .95rem; max-width: 68ch; }

/* TESTIMONIALS */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.testimonial-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.7rem; position: relative; }
.testimonial-card::before { content: "\201C"; font-family: var(--font-display); font-size: 4rem; line-height: 1; color: var(--hot); opacity: .35; position: absolute; top: .4rem; left: 1rem; }
.testimonial-quote { position: relative; z-index: 1; font-size: 1rem; color: var(--text); margin: 1.2rem 0 1.4rem; }
.testimonial-role { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }

/* QUOTE */
.quote-section { padding: var(--sp-section) 0; background: var(--bg-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quote-text { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.8rem); line-height: 1.12; letter-spacing: -0.02em; max-width: 24ch; margin: 0 auto; text-align: center; text-transform: uppercase; }
.quote-text::first-letter { color: var(--hot); }
.quote-author { font-family: var(--font-mono); font-size: .82rem; letter-spacing: .16em; color: var(--cool); text-align: center; margin-top: 1.6rem; text-transform: uppercase; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--gap); }
.form-group { margin-bottom: 1.2rem; }
.contact-form label { display: block; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.contact-form input, .contact-form textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); font-family: var(--font-body); font-size: 1rem; padding: .85rem 1rem; transition: border-color .2s var(--ease);
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--cool); outline: none; }
.contact-form input.error, .contact-form textarea.error { border-color: var(--hot); }
.form-error { display: none; color: var(--hot); font-family: var(--font-mono); font-size: .74rem; margin-top: .4rem; }
.form-error.visible { display: block; }
.form-success { display: none; margin-top: 1.2rem; padding: 1rem; border: 1px solid var(--cool); border-radius: var(--radius); color: var(--cool); font-family: var(--font-mono); font-size: .85rem; }
.form-success.visible { display: block; }

.contact-info h3 { font-size: 1.5rem; text-transform: uppercase; margin-bottom: 1.6rem; letter-spacing: -0.01em; }
.contact-detail { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.1rem; }
.contact-detail-icon { display: grid; place-items: center; width: 40px; height: 40px; min-width: 40px; border: 1px solid var(--line); border-radius: 50%; color: var(--cool); }
.contact-detail p { margin: 0; color: var(--text-dim); }
.contact-detail a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--hot); }
.contact-detail a:hover { color: var(--hot); }

/* FOOTER */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-logo img { height: 34px; width: auto; opacity: .8; }
.footer-links { display: flex; gap: 1.6rem; }
.footer-links a { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .06em; color: var(--text-dim); text-decoration: none; }
.footer-links a:hover { color: var(--hot); }
.footer-copy { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); margin: 0; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .services-grid, .why-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .approach-phases { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
@media (max-width: 720px) {
  .nav-list { display: none; }
  .nav-list.open {
    display: flex; flex-direction: column; position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--bg-deep); border-bottom: 1px solid var(--line); padding: 1.5rem 1.5rem 2rem; gap: 1.2rem; z-index: 99;
  }
  .hamburger { display: block; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr 1fr; } .approach-phases { grid-template-columns: 1fr; } }
