/* ============================================================
   Vöhri-Tech — shared site styles
   Used by: werkstattleistungen.html, ueber-uns.html, verkauf.html,
   kontakt.html, neuigkeiten.html
   ============================================================ */

:root {
  --bg: oklch(98% 0.004 250);
  --surface: oklch(100% 0 0);
  --fg: oklch(22% 0.018 250);
  --muted: oklch(52% 0.014 250);
  --border: oklch(90% 0.008 250);
  --accent: oklch(44% 0.124 256);
  --accent-soft: oklch(92% 0.04 256);
  --accent-deep: oklch(30% 0.09 256);
  --success: oklch(52% 0.14 145);
  --warn: oklch(72% 0.15 75);
  --danger: oklch(58% 0.2 27);
  --radius: 14px;
  --radius-tight: 8px;
  --shadow: 0 2px 18px -10px oklch(10% 0.02 250 / 0.18);
  --shadow-lg: 0 24px 60px -24px oklch(10% 0.02 250 / 0.28);
  --container: 1200px;
  --font-display: "Hind", "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Hind", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.01em; color: var(--accent-deep); margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 4.5vw, 48px); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 600; }
h3 { font-size: 20px; font-weight: 600; }
h4 { font-size: 16px; font-weight: 600; }
p { margin: 0 0 1rem; max-width: 70ch; }
ul, ol { margin: 0 0 1rem; padding-left: 1.4em; }
li { margin-bottom: 6px; }
section { padding: 56px 0; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .12s, background .15s, color .15s, box-shadow .15s;
  letter-spacing: 0.01em;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); text-decoration: none; box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); background: var(--accent-soft); text-decoration: none; }

/* ---- HEADER ---- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: oklch(100% 0 0 / 0.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; flex-wrap: nowrap; gap: 28px;
  max-width: 1100px; margin: 0 auto; padding: 10px 20px;
}
.logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo img { height: 64px; width: auto; display: block; }
.nav { display: flex; gap: 4px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav > li { position: relative; }
.nav > li > a {
  display: block; padding: 10px 12px; white-space: nowrap;
  color: var(--fg); font-weight: 500; font-size: 14.5px; letter-spacing: 0.01em;
  border-radius: var(--radius-tight);
  transition: background .15s, color .15s;
}
.nav > li > a:hover, .nav > li.active > a { background: var(--accent-soft); color: var(--accent-deep); text-decoration: none; }
.nav .sub { position: absolute; left: 0; top: 100%; min-width: 240px; list-style: none; margin: 8px 0 0; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-tight); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(4px); transition: all .15s; z-index: 200; }
.nav li:hover > .sub, .nav li:focus-within > .sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav .sub li { margin: 0; }
.nav .sub a { display: block; padding: 8px 14px; color: var(--fg); font-size: 14px; border-radius: 4px; text-decoration: none; transition: background .12s; }
.nav .sub a:hover { background: var(--accent-soft); color: var(--accent-deep); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 6px; width: 42px; height: 42px; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--fg); border-radius: 2px; margin: 4px 0; transition: .2s; }

/* ---- PAGE HERO (subpages) ---- */
.page-hero {
  background: linear-gradient(135deg, oklch(30% 0.09 256), oklch(44% 0.124 256));
  color: white;
  padding: 64px 0 48px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("https://571124454.swh.strato-hosting.eu/.cm4all/uproc.php/0/titel/.titel2.jpg/picture-1600?_=19afcd6e870") center/cover;
  opacity: .22; filter: saturate(.85);
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { color: white; margin-bottom: 12px; }
.page-hero p { color: oklch(90% 0.01 256); max-width: 60ch; margin-bottom: 0; font-size: 17px; }
.breadcrumb { font-size: 13px; letter-spacing: 0.04em; color: oklch(82% 0.06 256); margin-bottom: 16px; }
.breadcrumb a { color: oklch(82% 0.06 256); }
.breadcrumb a:hover { color: white; }

/* ---- SECTION HELPERS ---- */
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .eyebrow { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 10px; display: block; }
.section-head h2::after { content: ''; display: block; width: 48px; height: 3px; background: var(--accent); border-radius: 2px; margin: 14px auto 0; }
.section-head .lead { font-size: 18px; color: var(--muted); max-width: 60ch; margin: 12px auto 0; }

.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.split.reverse { grid-template-columns: 1fr 1.2fr; }
.split-img { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-text h2 { margin-bottom: 16px; }
.split-text ul { list-style: none; padding: 0; margin: 16px 0; }
.split-text ul li { padding-left: 28px; position: relative; margin-bottom: 10px; }
.split-text ul li::before { content: ''; position: absolute; left: 0; top: 8px; width: 14px; height: 14px; background: var(--accent-soft); border: 2px solid var(--accent); border-radius: 50%; }

/* ---- FEATURES GRID ---- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .15s, box-shadow .15s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon { width: 56px; height: 56px; background: var(--accent-soft); border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; }
.feature-icon svg { width: 28px; height: 28px; stroke: var(--accent); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 15px; color: var(--muted); margin: 0; }

/* ---- DETAIL subsections (services page) ---- */
.detail-row { padding: 56px 0; border-top: 1px solid var(--border); }
.detail-row:nth-child(even) { background: oklch(96% 0.004 250); }
.detail-row .split { gap: 48px; }

/* ---- CTA STRIP ---- */
.cta-strip { background: var(--accent-deep); color: white; padding: 56px 0; }
.cta-strip .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-strip h2 { color: white; margin: 0; }
.cta-strip p { color: oklch(88% 0.01 256); margin: 8px 0 0; }
.cta-strip .btn-primary { background: white; color: var(--accent-deep); }
.cta-strip .btn-primary:hover { background: oklch(96% 0.005 256); }

/* ---- CONTACT CARD (sidebar) ---- */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-card h3 { color: var(--accent-deep); margin-bottom: 18px; font-size: 18px; }
.contact-line { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.contact-line:last-child { border-bottom: 0; }
.contact-line svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 1.8; flex-shrink: 0; margin-top: 2px; }
.contact-line .label { font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.contact-line .value { font-size: 16px; color: var(--fg); }
.contact-line .value a { color: var(--fg); }
.contact-line .value a:hover { color: var(--accent); }

/* ---- FORM ---- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; color: var(--fg); }
.form-group label .req { color: var(--danger); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 8px;
  font: inherit; font-size: 16px; color: var(--fg);
  background: var(--bg);
  transition: border-color .12s, box-shadow .12s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.form-check input { width: auto; margin-top: 4px; }
.form-success { padding: 16px 20px; background: oklch(94% 0.06 145); border: 1px solid oklch(72% 0.14 145); border-radius: 10px; color: oklch(36% 0.1 145); font-weight: 500; display: none; }
.form-success.show { display: block; }

/* ---- TIMELINE / Step cards ---- */
.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.step-card { text-align: center; padding: 24px 16px; }
.step-num { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: white; font-family: var(--font-display); font-weight: 700; font-size: 22px; display: grid; place-items: center; margin: 0 auto 16px; }
.step-card h4 { margin-bottom: 6px; }
.step-card p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---- FOOTER ---- */
.footer { background: oklch(20% 0.02 250); color: oklch(72% 0.01 250); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: oklch(92% 0.005 250); font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 18px; }
.footer p, .footer a, .footer li { font-size: 14px; line-height: 1.7; color: oklch(72% 0.01 250); }
.footer a:hover { color: white; text-decoration: none; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer-bottom { border-top: 1px solid oklch(28% 0.02 250); padding-top: 24px; text-align: center; font-size: 13px; }

/* ---- RESPONSIVE ---- */
/* Header: breites Banner-Logo + 6 Nav-Links brauchen ~1220px — darunter Burger-Menü */
@media (max-width: 1280px) {
  .logo img { width: min(300px, 56vw); height: auto; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); flex-direction: column; padding: 12px; gap: 0; border-top: 1px solid var(--border); box-shadow: var(--shadow-lg); margin: 0; }
  .nav.open { display: flex; }
  .nav li { width: 100%; }
  .nav > li > a { padding: 14px 16px; }
  .nav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding-left: 16px; min-width: auto; display: none; }
  .nav .sub.open { display: block; }
  .nav-toggle { display: block; margin-left: auto; }
}
@media (max-width: 880px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 32px; }
  .split-img { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-strip .container { flex-direction: column; text-align: center; }
}
@media (max-width: 560px) {
  section { padding: 40px 0; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}