/* ==========================================================================
   AK-Lineartechnik GmbH — Stylesheet
   ========================================================================== */

:root {
  --color-dark: #1d1d1f;
  --color-primary: #1d1d1f;
  --color-primary-light: #3a3a3c;
  --color-accent: #0071e3;
  --color-accent-dark: #0058b0;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f7;
  --color-border: #e5e5e7;
  --color-text: #1d1d1f;
  --color-text-muted: #6e6e73;
  --font-base: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1180px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 980px;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 1.03rem;
}

img { max-width: 100%; display: block; }

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}
a:hover { color: var(--color-accent-dark); }

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-base);
  color: var(--color-dark);
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }

p { margin: 0 0 1em; color: var(--color-text-muted); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}
.section--alt { background: var(--color-bg-alt); }
.section--dark {
  background: linear-gradient(135deg, #000000, #1d2a35);
  color: #fff;
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #a1a1a6; }

.section-head {
  max-width: 700px;
  margin: 0 auto 52px;
  text-align: center;
}
.section-head .eyebrow {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 12px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease, color 0.2s ease;
}
.btn--primary {
  background: var(--color-accent);
  color: #fff;
}
.btn--primary:hover { background: var(--color-accent-dark); color: #fff; }
.btn--outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.btn--outline:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255,255,255,0.8); }
.btn--outline-dark {
  border-color: var(--color-border);
  color: var(--color-dark);
}
.btn--outline-dark:hover { background: var(--color-dark); border-color: var(--color-dark); color: #fff; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: var(--color-accent);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  pointer-events: none;
}
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--color-dark);
}
.logo:hover { color: var(--color-dark); }
.logo__icon {
  height: 32px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo__text small {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}
.logo__img {
  height: 46px;
  width: auto;
  display: block;
}
.logo--footer {
  display: inline-flex;
  background: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}
.logo--footer .logo__img { height: 38px; }

.wlw-badge {
  display: inline-flex;
  background: #fff;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: opacity 0.15s ease;
}
.wlw-badge:hover { opacity: 0.85; }
.wlw-badge img { height: 15px; width: auto; display: block; }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__list {
  display: flex;
  gap: 30px;
}
.nav__list a {
  font-weight: 400;
  color: var(--color-text);
  font-size: 0.92rem;
}
.nav__list a:hover,
.nav__list a[aria-current="page"] {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-border);
  margin-left: 4px;
}
.lang-switch a {
  color: var(--color-text-muted);
  padding: 3px 4px;
}
.lang-switch a:hover { color: var(--color-accent); }
.lang-switch a.is-active { color: var(--color-dark); font-weight: 700; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: #fff;
  color: var(--color-dark);
}
.hero__inner {
  padding: 88px 0 0;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
.hero h1 { color: var(--color-dark); }
.hero p.lead {
  color: var(--color-text-muted);
  font-size: 1.25rem;
  max-width: 620px;
  margin: 0 auto;
}
.hero__cta {
  display: flex;
  gap: 24px;
  margin-top: 34px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.hero__stats {
  display: flex;
  gap: 56px;
  margin-top: 64px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__stats div { text-align: center; }
.hero__stats div strong {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-dark);
  letter-spacing: -0.02em;
}
.hero__stats div span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.hero__art {
  position: relative;
  height: 320px;
  overflow: hidden;
  margin: 72px auto 0;
  max-width: 980px;
  border-radius: 28px;
  background: linear-gradient(155deg, #eef1f4, #dde3e8);
}
.rail {
  position: absolute;
  background: linear-gradient(90deg, #ffffff, #c3ccd3);
  border-radius: 4px;
  box-shadow: inset 0 -3px 6px rgba(0,0,0,0.1);
}
.rail--1 { width: 80%; height: 14px; top: 20%; left: 10%; }
.rail--2 { width: 80%; height: 14px; top: 48%; left: 10%; }
.rail--3 { width: 80%; height: 14px; top: 76%; left: 10%; }
.carriage {
  position: absolute;
  width: 68px;
  height: 44px;
  background: linear-gradient(160deg, var(--color-accent), var(--color-accent-dark));
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}
.carriage--1 { top: 13%; animation: travel-a 4.8s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
.carriage--2 { top: 41%; animation: travel-b 6.2s cubic-bezier(0.45, 0, 0.55, 1) infinite; animation-delay: -2s; }
.carriage--3 { top: 69%; animation: travel-a 5.5s cubic-bezier(0.45, 0, 0.55, 1) infinite; animation-delay: -3.4s; }

@keyframes travel-a {
  0%, 100% { left: 12%; }
  50% { left: 76%; }
}
@keyframes travel-b {
  0%, 100% { left: 76%; }
  50% { left: 12%; }
}
@media (prefers-reduced-motion: reduce) {
  .carriage--1, .carriage--2, .carriage--3 { animation: none; left: 30%; }
}

/* ---------------- Feature / value grid ---------------- */
.grid {
  display: grid;
  gap: 20px;
}
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--color-bg-alt);
  border: none;
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}
.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 113, 227, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card__icon svg { width: 24px; height: 24px; stroke: var(--color-accent); }
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; }
.card a.card-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-accent);
}

/* ---------------- Product categories ---------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .3s ease, transform .3s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-4px); }
.product-card__media {
  height: 140px;
  background: linear-gradient(150deg, var(--color-bg-alt), #e8ebee);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card__media svg { width: 52px; height: 52px; stroke: var(--color-dark); }
.product-card__media--photo { background: #fff; }
.product-card__media--photo img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.product-card__body { padding: 24px 24px 28px; }
.product-card ul {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-card ul li {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  padding-left: 18px;
  position: relative;
}
.product-card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

/* ---------------- Two column with image block ---------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split__visual {
  background: linear-gradient(150deg, var(--color-bg-alt), #e8ebee);
  border-radius: var(--radius);
  padding: 40px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}
.split__visual svg { width: 100%; height: auto; max-width: 320px; }

.pf-slideshow {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  overflow: hidden;
}
.pf-slideshow__track {
  position: relative;
  aspect-ratio: 4 / 3;
}
.pf-slideshow__track img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 32px;
  background: #fff;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.pf-slideshow__track img.is-active {
  opacity: 1;
  pointer-events: auto;
}
.pf-slideshow__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-dark);
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.pf-slideshow__nav svg { width: 18px; height: 18px; stroke: currentColor; }
.pf-slideshow:hover .pf-slideshow__nav,
.pf-slideshow__nav:focus-visible { opacity: 1; }
.pf-slideshow__nav:hover { background: #fff; }
.pf-slideshow__nav--prev { left: 12px; }
.pf-slideshow__nav--next { right: 12px; }
.pf-slideshow__dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.pf-slideshow__dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.pf-slideshow__dots button.is-active {
  background: var(--color-accent);
  transform: scale(1.25);
}
@media (hover: none) {
  .pf-slideshow__nav { opacity: 1; }
}
.product-feature + .product-feature { margin-top: 8px; }

.checklist { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--color-text);
  font-weight: 400;
}
.checklist li svg {
  width: 22px; height: 22px; flex-shrink: 0;
  stroke: var(--color-accent);
}

/* ---------------- CTA banner ---------------- */
.cta-banner {
  background: var(--color-dark);
  border-radius: var(--radius);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: #fff;
  text-align: left;
}
.cta-banner h2 { color: #fff; margin-bottom: 6px; }
.cta-banner p { color: #a1a1a6; margin-bottom: 0; }
.cta-banner .btn--primary {
  background: #fff;
  color: var(--color-dark);
}
.cta-banner .btn--primary:hover { background: #e5e5e7; color: var(--color-dark); }

/* ---------------- Timeline (Über uns) ---------------- */
.timeline { display: flex; flex-direction: column; gap: 0; margin-top: 10px; }
.timeline__item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-left: 2px solid var(--color-border);
  position: relative;
  padding-left: 26px;
  margin-left: 6px;
}
.timeline__item:not(:last-child) { border-left-color: var(--color-border); }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -7px; top: 26px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid #fff;
}
.timeline__year { font-weight: 600; color: var(--color-accent); font-size: 1.05rem; }

/* ---------------- Values grid ---------------- */
.value {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.value__icon {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(0, 113, 227, 0.1);
  display: flex; align-items: center; justify-content: center;
}
.value__icon svg { width: 22px; height: 22px; stroke: var(--color-accent); }

/* ---------------- Contact page ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}
.contact-info__item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-border);
}
.contact-info__item:last-child { border-bottom: none; }
.contact-info__item svg {
  width: 22px; height: 22px; stroke: var(--color-accent); flex-shrink: 0; margin-top: 2px;
}
.contact-info__item strong { display: block; color: var(--color-dark); }

.hp-field {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--color-dark);
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--color-bg-alt);
  color: var(--color-text);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--color-accent);
  background: #fff;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 6px;
}
.form-note {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: -6px;
}
.form-success {
  display: none;
  background: #e9f7ee;
  border: 1px solid #b7e4c7;
  color: #1c6b3a;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-weight: 600;
}
.form-success.is-visible { display: block; }
.form-error {
  display: none;
  background: #fdecea;
  border: 1px solid #f3b4ac;
  color: #a32a1f;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-weight: 600;
}
.form-error.is-visible { display: block; }

.map-embed {
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  overflow: hidden;
}
.map-embed iframe {
  width: 100%;
  height: 460px;
  border: 0;
  display: block;
}
@media (max-width: 680px) {
  .map-embed iframe { height: 320px; }
}

/* ---------------- Legal pages ---------------- */
.legal {
  max-width: 820px;
  margin: 0 auto;
}
.legal h2 { margin-top: 40px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--color-text-muted); }
.legal ul { margin: 0 0 1em; padding-left: 20px; list-style: disc; }
.legal .placeholder {
  background: #fff6e9;
  border: 1px dashed var(--color-accent);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--color-accent-dark);
  font-weight: 600;
}
.legal-notice {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 36px;
  color: var(--color-text-muted);
}

/* ---------------- Page header (inner pages) ---------------- */
.page-header {
  background: var(--color-bg-alt);
  color: var(--color-dark);
  padding: 72px 0 60px;
}
.page-header h1 { color: var(--color-dark); margin-bottom: 8px; }
.page-header p { color: var(--color-text-muted); margin-bottom: 0; max-width: 620px; }
.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-accent); }

/* ---------------- Footer ---------------- */
.site-footer {
  background: #000000;
  color: #a1a1a6;
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 0.95fr 0.85fr 1fr 0.75fr;
  gap: 28px;
  padding-bottom: 40px;
}
.footer-grid h4 {
  color: #fff;
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.footer-grid ul { display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: #a1a1a6; font-size: 0.9rem; }
.footer-grid a:hover { color: #fff; }
.footer-about p { color: #86868b; font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #86868b;
}
.footer-bottom a { color: #86868b; }
.footer-bottom a:hover { color: #fff; }

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .hero__art { height: 240px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .product-feature .pf-slideshow { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 680px) {
  .nav { position: fixed; inset: 60px 0 0 0; background: #fff; flex-direction: column; padding: 24px; gap: 24px; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; gap: 18px; width: 100%; }
  .nav-toggle { display: flex; }
  .lang-switch { margin-left: 0; font-size: 0.85rem; }
  .grid--4, .grid--3, .grid--2, .product-grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 32px; }
  .hero__inner { padding-top: 56px; }
  .cta-banner { flex-direction: column; text-align: center; padding: 40px 28px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 64px 0; }
}
