/* ==========================================================================
   Auto Horbach – Kfz-Werkstatt in Aachen
   ========================================================================== */

:root {
  --ink: #0b2545;
  --ink-soft: #123a68;
  --paper: #ffffff;
  --paper-alt: #eef4fb;
  --white: #ffffff;
  --steel: #4a5b6d;
  --steel-light: #8fa5ba;
  --accent: #1d78c9;
  --accent-dark: #145a99;
  --accent-light: #6fb3ef;
  --warm: #f2a71b;
  --warm-dark: #cf8a0c;
  --line: rgba(11, 37, 69, 0.12);
  --radius: 14px;
  --radius-sm: 6px;
  --shadow-soft: 0 20px 45px -20px rgba(21, 24, 28, 0.35);
  --shadow-tight: 0 8px 20px -10px rgba(21, 24, 28, 0.3);
  --shadow-hard: 6px 6px 0 var(--ink);
  --shadow-hard-sm: 4px 4px 0 var(--ink);
  --font-head: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 0.5em;
  color: var(--ink);
  overflow-wrap: break-word;
}

h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 2.9rem); }
h3 { font-size: 1.35rem; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  color: var(--ink);
  background: var(--warm);
  border: 2px solid var(--ink);
  padding: 5px 14px 3px;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-1.5deg);
  margin-bottom: 1.2em;
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
  padding: 13px 28px;
  border: 2.5px solid var(--ink);
  cursor: pointer;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  box-shadow: var(--shadow-hard-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.btn:hover {
  transform: translate(4px, 4px);
  box-shadow: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--ink);
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; }

.btn-ghost {
  background: var(--ink-soft);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
}
.btn-ghost:hover { border-color: #fff; color: #fff; background: var(--ink); }
.btn-ghost.on-light {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: var(--shadow-hard-sm);
}
.btn-ghost.on-light:hover { background: var(--ink); color: #fff; }

.btn-outline {
  background: #fff;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: #fff; }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 3px solid var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
}
@media (min-width: 900px) {
  .nav { gap: 24px; padding: 14px 24px; }
}

.brand {
  display: flex;
  align-items: center;
  color: #fff;
  min-width: 0;
}
.brand-logo {
  height: 38px;
  width: auto;
  border-radius: 8px;
  background: #fff;
  padding: 3px 6px;
  border: 2px solid var(--warm);
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.4);
}
@media (min-width: 900px) {
  .brand-logo { height: 48px; }
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: #e8e6e1;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--warm); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-phone {
  color: #fff;
  font-family: var(--font-head);
  letter-spacing: 0.03em;
  font-size: 0.95rem;
  white-space: nowrap;
  display: none;
}
.nav-call {
  display: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  align-items: center;
  justify-content: center;
}
.nav-call svg { width: 18px; height: 18px; }

.nav-toggle {
  display: inline-flex;
  background: none;
  border: none;
  color: #fff;
  padding: 6px;
  cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (min-width: 900px) {
  .nav-phone, .nav-call { display: none; }
  .nav-toggle { display: none; }
  .nav-links { display: flex; }
}
@media (min-width: 480px) and (max-width: 899px) {
  .nav-phone { display: inline-block; }
}
@media (max-width: 899px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink-soft);
    flex-direction: column;
    gap: 0;
    display: none;
    padding: 8px 0;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    display: block;
    padding: 14px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-cta .btn-primary { display: none; }
}

/* Hero ---------------------------------------------------------------- */
.hero {
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-soft) 65%, #1b4a80 100%);
  color: #fff;
  padding: 64px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
  position: relative;
}
.hero-grid > * { min-width: 0; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
}

.hero h1 { color: #fff; }
.hero-lead {
  color: #cfd3d8;
  font-size: 1.08rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 28px 0 40px;
}

.hero-facts {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-fact {
  display: flex;
  flex-direction: column;
}
.hero-fact strong {
  font-family: var(--font-head);
  font-size: 2.4rem;
  color: var(--warm);
  line-height: 1;
}
.hero-fact span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--steel-light);
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-logo-card {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 10px 10px 0 var(--warm);
  width: 100%;
  max-width: 420px;
  transform: rotate(-1.2deg);
  position: relative;
}
.hero-logo-card img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

.hero-stamp {
  position: absolute;
  top: -30px;
  right: 4%;
  width: 118px;
  height: 118px;
  z-index: 5;
}
.hero-stamp-ring {
  position: absolute;
  inset: 0;
  animation: spin 24s linear infinite;
}
.hero-stamp-ring svg { width: 100%; height: 100%; }
.hero-stamp-core {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 62%;
  height: 62%;
  border-radius: 50%;
  background: var(--warm);
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-stamp-core svg {
  width: 46%;
  height: 46%;
  color: var(--ink);
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@media (max-width: 640px) {
  .hero-stamp { width: 92px; height: 92px; top: -20px; right: 2%; }
}

/* Trust strip ------------------------------------------------------------ */
.trust-strip {
  background: var(--ink-soft);
  position: relative;
}
.trust-strip::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 26px;
  background: var(--ink-soft);
  clip-path: polygon(0 100%, 3% 0, 6% 100%, 9% 0, 12% 100%, 15% 0, 18% 100%, 21% 0, 24% 100%, 27% 0, 30% 100%, 33% 0, 36% 100%, 39% 0, 42% 100%, 45% 0, 48% 100%, 51% 0, 54% 100%, 57% 0, 60% 100%, 63% 0, 66% 100%, 69% 0, 72% 100%, 75% 0, 78% 100%, 81% 0, 84% 100%, 87% 0, 90% 100%, 93% 0, 96% 100%, 99% 0, 100% 100%);
  transform: translateY(-100%);
}
.trust-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  margin: 0;
  padding: 18px 0;
  justify-content: center;
}
.trust-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  letter-spacing: 0.03em;
  font-size: 1.05rem;
  color: #fff;
}
.trust-list svg {
  width: 20px;
  height: 20px;
  color: var(--warm);
  flex-shrink: 0;
}

/* Sections ----------------------------------------------------------------*/
.section {
  padding: 88px 0;
}
.section--alt {
  background: var(--paper-alt);
  background-image: radial-gradient(rgba(11, 37, 69, 0.07) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
}
.section--dark {
  background: var(--ink);
  color: #fff;
}
.section--dark h2, .section--dark .eyebrow { color: var(--ink); }
.section--dark p { color: #c7ccd1; }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* About / timeline ---------------------------------------------------------*/
.about-grid {
  display: grid;
  gap: 48px;
}
.about-grid > * { min-width: 0; }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

.timeline {
  counter-reset: stepnum;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background-image: repeating-linear-gradient(to bottom, var(--ink) 0 8px, transparent 8px 16px);
}
.timeline li {
  counter-increment: stepnum;
  position: relative;
  padding: 0 0 30px 46px;
}
.timeline li::before {
  content: counter(stepnum);
  position: absolute;
  left: 0;
  top: -2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--warm);
  border: 3px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--ink);
}
.timeline-year {
  display: block;
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--ink);
  text-transform: uppercase;
}
.timeline-text { color: var(--steel); font-size: 0.95rem; }

/* Services ------------------------------------------------------------- */
.services-grid {
  counter-reset: servicenum;
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.service-card {
  counter-increment: servicenum;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow-hard);
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.service-card::before {
  content: counter(servicenum, decimal-leading-zero);
  position: absolute;
  top: -18px;
  right: 4px;
  font-family: var(--font-head);
  font-size: 5.5rem;
  line-height: 1;
  color: rgba(11, 37, 69, 0.07);
  z-index: 0;
}
.service-card:hover {
  transform: translate(4px, 4px);
  box-shadow: 2px 2px 0 var(--ink);
}
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--accent);
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.service-icon svg {
  width: 26px;
  height: 26px;
  color: #fff;
}
.service-card h3 { margin-bottom: 8px; position: relative; z-index: 1; }
.service-card p { margin: 0; font-size: 0.94rem; position: relative; z-index: 1; }

/* Contact ------------------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: 32px;
}
.contact-grid > * { min-width: 0; }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-card {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-hard);
}
.contact-row {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}
.contact-row:last-of-type { border-bottom: none; }
.contact-row svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-row-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--steel-light);
  margin-bottom: 2px;
}
.contact-row a { color: var(--ink); font-weight: 600; }
.contact-row a:hover { color: var(--accent); }

.map-frame {
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hard);
  min-height: 320px;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

/* Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: #c7ccd1;
  padding: 48px 0 24px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}
.footer-brand {
  font-family: var(--font-head);
  text-transform: uppercase;
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
}
.footer-links a { color: #c7ccd1; }
.footer-links a:hover { color: var(--warm); }

.footer-bottom {
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--steel-light);
}

/* Floating call button --------------------------------------------------- */
.fab-call {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  background: var(--warm);
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  box-shadow: var(--shadow-hard-sm);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.fab-call:hover {
  background: var(--warm-dark);
  color: var(--ink);
  transform: translate(4px, 4px);
  box-shadow: none;
}
.fab-call svg { width: 18px; height: 18px; }
.fab-call span { display: none; }
@media (min-width: 640px) {
  .fab-call span { display: inline; }
}

/* Legal pages ------------------------------------------------------------ */
.legal {
  padding: 64px 0 96px;
  max-width: 820px;
}
.legal h1 { margin-bottom: 0.6em; }
.legal h2 {
  font-size: 1.3rem;
  margin-top: 1.6em;
  text-transform: none;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0;
}
.legal p, .legal li { color: var(--steel); font-size: 0.98rem; }
.legal a { word-break: break-word; }
.legal-back {
  display: inline-block;
  margin-bottom: 24px;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
}
