/* ============================================================
   KFZ Werkstatt Gerhard Niedermeier — Scheyern
   Design: "Industrial Precision" — Grounded, bold, mechanical
   ============================================================ */

:root {
  --brand1: #0c2340;
  --brand2: #ea580c;
  --brand3: #16a34a;

  --bg: #f3f4f6;
  --surface: #ffffff;
  --surface2: #e9ecf0;
  --text: #111827;
  --muted: #4b5563;
  --line: #d1d5db;

  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
  --radius: 8px;
  --max: 1100px;
}

/* === RESET === */
*{box-sizing:border-box}
html{scroll-behavior:smooth; overflow-x:hidden}
body{
  margin:0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit}
.phone-link{text-decoration:none; color:inherit; font-weight:inherit}
.phone-link:hover{color:var(--brand2)}
img{max-width:100%; height:auto; display:block}
.container{max-width:var(--max); margin:0 auto; padding:0 20px}

.skip-link{
  position:absolute; left:-999px; top:10px;
  background:var(--brand1); color:#fff;
  padding:10px 14px; border-radius:var(--radius);
  z-index:9999; text-decoration:none; font-weight:700;
}
.skip-link:focus{left:20px}

/* === HEADER === */
header.site-header{
  position:sticky; top:0; z-index:100;
  background:var(--brand1);
  transition: transform .3s ease;
}
header.site-header.header-hidden{
  transform:translateY(-100%);
}
.header-row{
  display:flex; align-items:center; justify-content:space-between;
  min-height:64px;
}
.brand{
  display:flex; gap:10px; align-items:center;
  text-decoration:none; color:#fff;
}
.brand img{width:36px; height:36px; border-radius:4px}
.brand .name{
  font-weight:800; font-size:.95rem;
  letter-spacing:.3px; text-transform:uppercase;
  line-height:1.2;
}

nav{display:flex; align-items:center; gap:8px}
.nav-links{display:flex; gap:2px; align-items:center}
.nav-links a{
  text-decoration:none; color:rgba(255,255,255,.75);
  padding:8px 12px; border-radius:var(--radius);
  font-size:.9rem; font-weight:500;
  transition: color .2s, background .2s;
}
.nav-links a:hover{color:#fff; background:rgba(255,255,255,.1)}
.nav-cta{
  text-decoration:none; padding:9px 18px;
  border-radius:var(--radius); font-weight:700;
  font-size:.88rem; color:#fff;
  background:#c2410c;
  transition: filter .2s;
}
.nav-cta:hover{filter:brightness(1.15)}

.burger{
  display:none; width:42px; height:42px;
  border:1px solid rgba(255,255,255,.2);
  background:transparent; border-radius:var(--radius);
  cursor:pointer;
}
.burger span{display:block; width:18px; height:2px; background:#fff; margin:4px auto}
.mobile-menu{
  display:none; padding:8px 0 16px;
  border-top:1px solid rgba(255,255,255,.1);
}
.mobile-menu a{
  display:block; text-decoration:none;
  padding:12px 16px; color:rgba(255,255,255,.8);
  border-radius:var(--radius); font-weight:500;
}
.mobile-menu a:hover{background:rgba(255,255,255,.08); color:#fff}
.mobile-menu .nav-cta{display:inline-block; margin:10px 16px 0}

/* === HERO === */
.hero{
  background:var(--brand1);
  padding:48px 0 0;
  position:relative;
  overflow:hidden;
}
.hero::after{
  content:''; position:absolute; bottom:-1px; left:0; right:0;
  height:60px;
  background:var(--bg);
  clip-path:polygon(0 100%, 100% 100%, 100% 0);
}
.hero-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:32px; align-items:center;
}
.hero-content{padding-bottom:60px}
.kicker{
  display:inline-flex; align-items:center; gap:8px;
  color:var(--brand2); font-weight:700;
  font-size:.85rem; text-transform:uppercase;
  letter-spacing:1.5px; margin-bottom:12px;
}
.kicker .bar{width:28px; height:3px; background:var(--brand2); border-radius:2px}
h1{
  font-size:clamp(2rem, 4vw, 3rem);
  color:#fff; margin:0 0 16px;
  line-height:1.1; font-weight:800;
}
h1 .accent{color:var(--brand2)}
.lead{
  color:rgba(255,255,255,.7); font-size:1.05rem;
  margin:0 0 24px; max-width:480px;
}
.hero-actions{display:flex; flex-wrap:wrap; gap:10px}

.hero-visual{
  position:relative; display:flex;
  align-items:flex-end; justify-content:center;
  min-height:320px;
}
.hero-visual img{
  border-radius:var(--radius) var(--radius) 0 0;
  object-fit:cover; width:100%; max-height:400px;
}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  text-decoration:none; font-weight:700;
  padding:13px 24px; border-radius:var(--radius);
  font-size:.95rem; border:none; cursor:pointer;
  transition: filter .2s, transform .15s;
}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:#c2410c; color:#fff}
.btn-primary:hover{filter:brightness(1.15)}
.btn-outline{
  background:transparent; color:#fff;
  border:2px solid rgba(255,255,255,.3);
}
.btn-outline:hover{border-color:#fff}
.btn-secondary{background:var(--brand1); color:#fff}
.btn-secondary:hover{filter:brightness(1.3)}
.btn-cta{background:#c2410c; color:#fff; font-size:1rem; padding:15px 28px}
.btn-cta:hover{filter:brightness(1.15)}

/* === TRUST BAR === */
.trust-bar{
  padding:28px 0;
  position:relative; z-index:2;
}
.trust-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:16px;
}
.trust-item{
  display:flex; align-items:center; gap:10px;
  font-weight:600; color:var(--muted); font-size:.9rem;
  background:var(--surface);
  padding:14px 16px;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.trust-item svg{
  width:28px; height:28px; flex-shrink:0;
  color:var(--brand2);
}

/* === SECTIONS === */
.section{padding:72px 0}
.section-alt{background:var(--surface); padding:72px 0}
.section-dark{background:var(--brand1); color:#fff}
.section-dark .muted-text{color:rgba(255,255,255,.65)}
.section-dark h2{color:#fff}

.section-head,
.section-header{text-align:center; margin-bottom:48px; max-width:650px; margin-left:auto; margin-right:auto}
.section-label,
.section-kicker{
  display:inline-block; font-size:.78rem; font-weight:700;
  text-transform:uppercase; letter-spacing:2px;
  color:var(--brand2); margin-bottom:8px;
}
.section-lead{color:var(--muted); font-size:1rem; margin:0; line-height:1.6}
h2{font-size:clamp(1.5rem, 3vw, 2.2rem); margin:0 0 12px; line-height:1.15; font-weight:800}
h3{font-size:1.15rem; margin:0 0 8px; font-weight:700}
.muted-text{color:var(--muted)}

/* === SERVICE CARDS === */
.service-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:20px;
}
.service-card{
  background:var(--surface);
  border-radius:var(--radius);
  padding:28px 24px;
  border-left:4px solid var(--brand2);
  box-shadow:var(--shadow);
  transition: transform .2s, box-shadow .2s;
  text-decoration:none; color:inherit;
  display:block;
  cursor:pointer;
  -webkit-user-select:none; user-select:none;
  -webkit-tap-highlight-color:rgba(234,88,12,.1);
  -webkit-touch-callout:none;
}
.service-card:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow-lg);
}
.service-card .card-icon{
  width:44px; height:44px;
  background:rgba(234,88,12,.08);
  border-radius:var(--radius);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:14px;
}
.service-card .card-icon svg{width:22px; height:22px; fill:var(--brand2)}
.service-card h3{margin-bottom:6px}
.service-card p{color:var(--muted); font-size:.9rem; margin:0; line-height:1.5}
.service-card .card-link{
  display:inline-flex; align-items:center; gap:4px;
  color:#b84a08; font-weight:700; font-size:.85rem;
  margin-top:12px; text-decoration:none;
}

/* === PROCESS / STEPS === */
.steps-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:24px;
}
.step{
  text-align:center; position:relative;
  background:var(--surface);
  padding:28px 20px;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.step-icon{
  width:52px; height:52px;
  background:rgba(234,88,12,.08);
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 10px;
}
.step-icon svg{width:24px; height:24px; color:var(--brand2)}
.step-nr{
  display:inline-flex; align-items:center; justify-content:center;
  width:26px; height:26px;
  background:var(--brand2); color:#fff;
  border-radius:50%; font-weight:800; font-size:.75rem;
  margin-bottom:8px;
}
.step h3{margin-bottom:6px}
.step p{color:var(--muted); font-size:.88rem; margin:0}

/* === ADVANTAGES === */
.advantages-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:20px;
}
.advantage{
  display:flex; flex-direction:column;
  background:var(--surface);
  padding:28px 24px;
  border-radius:var(--radius);
  border-left:4px solid var(--brand2);
  box-shadow:var(--shadow);
  transition:transform .2s, box-shadow .2s;
}
.advantage:hover{transform:translateY(-3px); box-shadow:var(--shadow-lg)}
.advantage-icon{
  width:44px; height:44px;
  background:rgba(234,88,12,.08);
  border-radius:var(--radius);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:14px;
}
.advantage-icon svg{width:22px; height:22px}
.advantage h3{font-size:1rem; margin-bottom:6px}
.advantage p{color:var(--muted); font-size:.88rem; margin:0; line-height:1.5}

/* === CTA BANNER === */
.cta-banner{
  background:var(--brand1);
  border-radius:20px;
  padding:48px 40px;
  display:flex; align-items:center; justify-content:space-between;
  gap:24px; flex-wrap:wrap;
}
.cta-banner h2{color:#fff; margin:0 0 6px}
.cta-banner p{color:rgba(255,255,255,.7); margin:0; font-size:1rem}
.cta-banner .btn-cta{flex-shrink:0}
.cta-actions{display:flex; flex-wrap:wrap; gap:12px}

/* === FAQ === */
.faq-list{max-width:740px; margin:0 auto}
.faq-item{
  border-bottom:1px solid var(--line);
  padding:0;
}
.faq-q{
  width:100%; background:none; border:none;
  padding:18px 0; cursor:pointer;
  display:flex; justify-content:space-between; align-items:center;
  font-size:1rem; font-weight:700; color:var(--text);
  text-align:left; font-family:inherit;
}
.faq-q::after{
  content:'+'; font-size:1.4rem; color:var(--brand2);
  font-weight:400; transition:transform .2s;
  flex-shrink:0; margin-left:12px;
}
.faq-q[aria-expanded="true"]::after{transform:rotate(45deg)}
.faq-a{
  max-height:0; overflow:hidden;
  transition:max-height .3s ease;
}
.faq-a-inner{
  padding:0 0 18px;
  color:var(--muted); font-size:.92rem; line-height:1.65;
}

/* === CONTACT === */
.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:32px;
}
.contact-info-card{
  background:var(--surface);
  border-radius:var(--radius);
  padding:28px 24px;
  box-shadow:var(--shadow);
}
.contact-info-card h3{margin-bottom:16px}
.contact-row{
  display:flex; align-items:flex-start; gap:12px;
  padding:10px 0;
  border-bottom:1px solid var(--line);
}
.contact-row:last-child{border-bottom:none}
.contact-row svg{width:18px; height:18px; fill:var(--brand2); flex-shrink:0; margin-top:2px}
.contact-row a{text-decoration:none; color:var(--brand2); font-weight:600}
.contact-row strong{display:block; font-size:.88rem; color:var(--text)}
.contact-row span{color:var(--muted); font-size:.88rem}

.contact-form{
  background:var(--surface);
  border-radius:var(--radius);
  padding:28px 24px;
  box-shadow:var(--shadow);
}
.form-group{margin-bottom:16px}
.form-group label{display:block; font-weight:600; font-size:.88rem; margin-bottom:6px}
.form-group input,
.form-group select,
.form-group textarea{
  width:100%; padding:11px 14px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  font-size:.95rem; font-family:inherit;
  background:var(--bg);
  transition:border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
  outline:none; border-color:var(--brand2);
}
.form-group textarea{resize:vertical; min-height:100px}
.form-row{display:grid; grid-template-columns:1fr 1fr; gap:12px}

/* === MAP PLACEHOLDER === */
.map-wrap{
  border-radius:var(--radius);
  overflow:hidden;
  margin-top:24px;
  box-shadow:var(--shadow);
}
.map-wrap iframe{width:100%; height:320px; border:0; display:block}

/* === TEAM / ABOUT === */
.about-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:32px; align-items:center;
}
.about-img{
  border-radius:var(--radius);
  overflow:hidden; box-shadow:var(--shadow-lg);
}
.about-img img{object-fit:contain; width:100%; border-radius:var(--radius)}

.stat-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:20px; margin-top:32px;
}
.stat{
  text-align:center;
  background:var(--surface);
  padding:24px 16px;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.stat-num{
  font-size:2rem; font-weight:800;
  color:var(--brand2); line-height:1;
  margin-bottom:4px;
}
.stat-label{color:var(--muted); font-size:.85rem; font-weight:500}

/* === LOCATION CARDS === */
.location-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:20px;
}
.location-card{
  background:var(--surface);
  border-radius:var(--radius);
  padding:24px;
  box-shadow:var(--shadow);
  text-decoration:none; color:inherit;
  display:block;
  transition:transform .2s, box-shadow .2s;
}
.location-card:hover{transform:translateY(-3px); box-shadow:var(--shadow-lg)}
.location-card h3{margin-bottom:4px}
.location-card p{color:var(--muted); font-size:.88rem; margin:0 0 10px}
.location-card .card-link{
  color:#b84a08; font-weight:700;
  font-size:.85rem; text-decoration:none;
}

/* === PAGE HERO (Unterseiten ohne Bild) === */
.page-hero{
  background:var(--brand1);
  padding:48px 20px 60px;
  position:relative;
  overflow:hidden;
  text-align:center;
}
.page-hero::after{
  content:''; position:absolute; bottom:-1px; left:0; right:0;
  height:60px;
  background:var(--bg);
  clip-path:polygon(0 100%, 100% 100%, 100% 0);
}
.page-hero h1{
  font-size:clamp(1.8rem, 4vw, 2.6rem);
  color:#fff; margin:0 0 12px; font-weight:800;
}
.page-hero p{
  color:rgba(255,255,255,.7); font-size:1.05rem;
  max-width:600px; margin:0 auto;
}

/* === BREADCRUMB === */
.breadcrumb{
  padding:14px 0; font-size:.83rem;
  background:var(--surface2);
  border-bottom:1px solid var(--line);
}
.breadcrumb ol{
  list-style:none; margin:0; padding:0;
  display:flex; flex-wrap:wrap; align-items:center; gap:4px;
}
.breadcrumb li{color:var(--muted)}
.breadcrumb li:not(:last-child)::after{
  content:'/'; margin-left:6px; color:var(--line);
}
.breadcrumb a{
  text-decoration:none; color:var(--brand2); font-weight:500;
}
.breadcrumb a:hover{text-decoration:underline}

/* === LEGAL / TEXT PAGES === */
.text-page{padding:40px 0 60px}
.text-page h1{color:var(--text); font-size:clamp(1.6rem, 3vw, 2.2rem)}
.text-page h2{font-size:1.3rem; margin-top:32px}
.text-page p, .text-page li{color:var(--muted); font-size:.92rem; line-height:1.7}
.text-page ul{padding-left:20px}
.text-page a{color:var(--brand2); text-decoration:none; font-weight:600}
.text-page a:hover{text-decoration:underline}

/* === 404 === */
.page-404{
  text-align:center; padding:80px 0;
}
.page-404 .big-num{
  font-size:clamp(5rem, 15vw, 10rem);
  font-weight:900; color:var(--brand2);
  line-height:1; margin-bottom:8px;
}
.page-404 p{color:var(--muted); font-size:1.1rem; margin-bottom:24px}

/* === FOOTER === */
footer{
  background:var(--brand1); color:rgba(255,255,255,.85);
  padding:48px 0 0;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr .8fr;
  gap:28px;
}
.footer-grid strong{color:#fff; display:block; margin-bottom:10px; font-size:.92rem}
.footer-grid a{
  text-decoration:none; color:rgba(255,255,255,.85);
  font-size:.88rem; transition:color .2s;
}
.footer-grid a:hover{color:#fff}
.footer-grid span{font-size:.88rem}
.social-links{display:flex; gap:10px; margin-top:4px}
.social-links a{
  width:36px; height:36px;
  background:rgba(255,255,255,.08);
  border-radius:var(--radius);
  display:flex; align-items:center; justify-content:center;
  transition:background .2s;
}
.social-links a:hover{background:rgba(255,255,255,.16)}
.social-links svg{width:18px; height:18px; fill:#fff}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.15);
  padding:18px 0;
  margin-top:36px;
  font-size:.82rem;
  color:rgba(255,255,255,.7);
}

/* === SERVICES GRID (Leistungen-Übersicht) === */
.services-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:20px;
}
.service-card-icon{
  width:48px; height:48px;
  background:rgba(234,88,12,.08);
  border-radius:var(--radius);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:14px;
  color:var(--brand2);
}

/* === PROCESS STEPS (Leistungsseiten) === */
.process-steps{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:20px;
  margin-top:24px;
}
.process-step{
  background:var(--surface);
  padding:28px 24px;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  display:flex; flex-direction:column;
  align-items:center;
  text-align:center;
  border-top:3px solid var(--brand2);
}
.process-step .step-icon{
  width:48px; height:48px;
  background:rgba(234,88,12,.08);
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  margin-bottom:12px;
  color:var(--brand2);
}
.process-step .step-icon svg{width:22px; height:22px}
.step-num{
  display:inline-flex; align-items:center; justify-content:center;
  width:28px; height:28px;
  background:var(--brand2); color:#fff;
  border-radius:50%; font-weight:800; font-size:.8rem;
  margin-bottom:10px;
}
.process-step strong{font-size:1.05rem; margin-bottom:4px; display:block}
.process-step p{color:var(--muted); font-size:.88rem; margin:0; line-height:1.55}

/* === CONTENT NARROW === */
.content-narrow{max-width:820px; margin-left:auto; margin-right:auto}

/* === RELATED LINKS === */
.related-links{
  display:flex; flex-wrap:wrap; gap:12px;
}
.related-links a{
  display:inline-flex; align-items:center; gap:6px;
  text-decoration:none; color:var(--brand2);
  font-weight:600; font-size:.92rem;
  padding:10px 18px;
  background:var(--surface);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  transition:transform .2s, box-shadow .2s;
}
.related-links a:hover{transform:translateY(-2px); box-shadow:var(--shadow-lg)}

/* === ABOUT PAGE === */
.about-highlights{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:20px;
  margin-top:32px;
}
.about-highlight{
  background:var(--surface);
  padding:24px;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  border-left:4px solid var(--brand2);
}
.about-highlight strong{display:block; margin-bottom:4px; font-size:1rem}
.about-highlight p{color:var(--muted); font-size:.88rem; margin:0; line-height:1.55}

/* === CTA SECTION (full-width) === */
section.cta-section{
  padding:48px 0;
  background:var(--brand1);
}
section.cta-section .cta-banner{
  box-shadow:none;
}

/* === RESPONSIVE === */
@media(max-width:920px){
  .service-grid, .services-grid{grid-template-columns:repeat(2, 1fr)}
  .steps-grid{grid-template-columns:repeat(2, 1fr)}
  .advantages-grid{grid-template-columns:repeat(2, 1fr)}
  .location-grid{grid-template-columns:repeat(2, 1fr)}
  .footer-grid{grid-template-columns:1fr 1fr}
  .stat-grid{grid-template-columns:repeat(3, 1fr)}
  .about-highlights{grid-template-columns:repeat(2, 1fr)}
}
@media(max-width:768px){
  .nav-links, nav .nav-cta{display:none}
  .burger{display:flex; flex-direction:column; justify-content:center}
  .mobile-menu:not([hidden]){display:block}

  .hero-grid{grid-template-columns:1fr}
  .hero-visual{display:none}
  .hero{padding:36px 0 0}
  .hero::after{height:40px}
  .hero-content{padding-bottom:50px}

  .trust-grid{grid-template-columns:repeat(2, 1fr)}

  .contact-grid{grid-template-columns:1fr}
  .about-grid{grid-template-columns:1fr}
  .cta-banner{flex-direction:column; text-align:center; padding:36px 24px}
  .cta-actions{justify-content:center}
}
@media(max-width:560px){
  .service-grid, .services-grid{grid-template-columns:1fr}
  .steps-grid{grid-template-columns:1fr}
  .advantages-grid{grid-template-columns:1fr}
  .process-steps{grid-template-columns:1fr}
  .location-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .stat-grid{grid-template-columns:repeat(3, 1fr)}
  .form-row{grid-template-columns:1fr}
  .trust-grid{grid-template-columns:repeat(2, 1fr)}
  .about-highlights{grid-template-columns:1fr}
}
