/* ==========================================================================
   Kfz-Meisterbetrieb Wagner — Stylesheet
   Werkstatt-/Auftragsschein-Optik: dunkler Asphaltgrund, Warnorange,
   gestrichelte Linien, Ticket-Stempel-Elemente.
   ========================================================================== */

:root {
  --color-bg: #1B1B1D;
  --color-surface: #242426;
  --color-surface-alt: #2C2C2E;
  --color-text: #EDEDEA;
  --color-text-soft: #A8A8A2;
  --color-line: #3A3A3C;
  --color-chrome: #9DA3A6;

  --color-orange: #E85D2C;
  --color-orange-dark: #c74a1f;

  --font-display: "Barlow Condensed", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Impact, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --wrap-width: 1120px;
  --radius: 2px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-orange); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.2px;
  margin: 0 0 0.4em;
  color: var(--color-text);
}

h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; margin-bottom: 0.3em; }

p { margin: 0 0 1em; }

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

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
}

/* ------------------------- Buttons ------------------------- */

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--color-orange);
  color: #17130F;
}

.btn-primary:hover { background: var(--color-orange-dark); }

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-line);
}

.btn-ghost:hover {
  border-color: var(--color-chrome);
  background: var(--color-surface);
}

/* ------------------------- Header ------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-bg);
  border-bottom: 1px dashed var(--color-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-text);
}

.logo span { color: var(--color-orange); }
.logo:hover { text-decoration: none; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--color-text-soft);
  font-size: 0.9rem;
  font-weight: 500;
}

.main-nav a:hover { color: var(--color-orange); text-decoration: none; }

.nav-cta {
  padding: 9px 18px;
  background: var(--color-orange);
  color: #17130F !important;
  border-radius: var(--radius);
  font-weight: 600;
}

.nav-cta:hover { background: var(--color-orange-dark); }

@media (max-width: 760px) {
  .main-nav { gap: 14px; }
  .main-nav a:not(.nav-cta) { display: none; }
}

/* ------------------------- Hero ------------------------- */

.hero { padding: 70px 0 50px; }

.hero-inner {
  display: grid;
  gap: 46px;
}

.hero-text { max-width: 620px; }

.ticket-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-orange);
  letter-spacing: 0.5px;
  margin-bottom: 0.9em;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--color-text-soft);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.hero-visual {
  display: grid;
  justify-content: center;
  gap: 18px;
}

.hero-visual .seal {
  width: min(280px, 80vw);
  justify-self: center;
}

.hero-visual .gauge {
  width: min(220px, 60vw);
  justify-self: center;
}

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.3fr 1fr; align-items: center; }
}

/* ------------------------- Services / Checklist ------------------------- */

.services {
  padding: 64px 0;
  background: var(--color-surface);
  border-top: 1px dashed var(--color-line);
  border-bottom: 1px dashed var(--color-line);
}

.section-head { max-width: 60ch; margin-bottom: 2.4em; }

.section-lead { color: var(--color-text-soft); }

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border-top: 1px dashed var(--color-line);
}

.checklist li {
  display: flex;
  gap: 16px;
  padding: 22px 20px;
  border-bottom: 1px dashed var(--color-line);
  border-right: 1px dashed var(--color-line);
}

.check {
  flex: none;
  width: 26px;
  height: 26px;
  border: 2px solid var(--color-orange);
  border-radius: var(--radius);
  color: var(--color-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.checklist-body p { color: var(--color-text-soft); font-size: 0.95rem; margin-bottom: 0; }

/* ------------------------- Process / Stubs ------------------------- */

.process { padding: 68px 0; }

.stub-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
}

.stub {
  padding: 26px 22px;
  border-left: 1px dashed var(--color-line);
  position: relative;
}

.stub:first-child { border-left: none; }

.stub-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--color-orange);
  margin-bottom: 10px;
}

.stub p { color: var(--color-text-soft); font-size: 0.95rem; margin-bottom: 0; }

@media (max-width: 700px) {
  .stub { border-left: none; border-top: 1px dashed var(--color-line); padding-left: 0; }
  .stub:first-child { border-top: none; }
}

/* ------------------------- References ------------------------- */

.references {
  padding: 64px 0;
  background: var(--color-surface);
  border-top: 1px dashed var(--color-line);
  border-bottom: 1px dashed var(--color-line);
}

.tag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.tag-card {
  margin: 0;
  padding: 24px;
  background: var(--color-surface-alt);
  border: 1px dashed var(--color-line);
  border-radius: var(--radius);
}

.tag-number {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-orange);
  margin-bottom: 14px;
}

.tag-card blockquote {
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.45;
}

.tag-card figcaption {
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

/* ------------------------- About ------------------------- */

.about { padding: 68px 0; }

.about-inner {
  display: grid;
  gap: 40px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  align-content: start;
}

.about-stats div {
  padding: 18px 0;
  border-top: 1px dashed var(--color-line);
}

.about-stats dt {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-orange);
}

.about-stats dd {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

@media (min-width: 860px) {
  .about-inner { grid-template-columns: 1.3fr 1fr; }
}

@media (max-width: 500px) {
  .about-stats { grid-template-columns: 1fr; }
}

/* ------------------------- Contact ------------------------- */

.contact {
  padding: 68px 0 84px;
  background: var(--color-surface);
  border-top: 1px dashed var(--color-line);
}

.contact-inner {
  display: grid;
  gap: 44px;
}

.contact-info address {
  font-style: normal;
  color: var(--color-text-soft);
  line-height: 1.7;
  margin-bottom: 20px;
}

.hours-table {
  border-collapse: collapse;
  font-size: 0.9rem;
}

.hours-table th, .hours-table td {
  text-align: left;
  padding: 4px 14px 4px 0;
  color: var(--color-text-soft);
  font-weight: 500;
}

.hours-table th { color: var(--color-text); }

.contact-form {
  display: grid;
  gap: 6px;
  background: var(--color-surface-alt);
  padding: 28px;
  border: 1px dashed var(--color-line);
  border-radius: var(--radius);
}

.contact-form label {
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 10px;
  color: var(--color-text-soft);
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 10px 4px;
  border: none;
  border-bottom: 1px solid var(--color-line);
  border-radius: 0;
  background: transparent;
  color: var(--color-text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--color-orange);
}

.contact-form button {
  margin-top: 16px;
  justify-self: start;
  cursor: pointer;
}

@media (min-width: 860px) {
  .contact-inner { grid-template-columns: 1fr 1.1fr; }
}

/* ------------------------- Footer ------------------------- */

.site-footer {
  padding: 26px 0;
  border-top: 1px dashed var(--color-line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

.footer-inner nav a {
  color: var(--color-text-soft);
  margin-left: 18px;
}

/* ------------------------- Reduced motion ------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
