/* ==========================================================================
   Kläne-Menke Elektrotechnik — shared stylesheet
   ========================================================================== */

:root{
  --bg:            #0a0d14;
  --bg-panel:      #10141d;
  --bg-panel-2:    #161b26;
  --border:        #232936;
  --gold:          #d8a531;
  --gold-light:    #f2c669;
  --gold-dim:      #8a6c22;
  --white:         #f6f5f1;
  --grey:          #a3abba;
  --grey-dim:      #6b7385;

  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --maxw: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a{ color: inherit; text-decoration:none; }

h1,h2,h3,h4{
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em 0;
  letter-spacing: -0.01em;
}

h1{ font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }

.hero-accent{
  display: inline-block;
  color: var(--gold);
  font-size: 0.72em;
  font-weight: 600;
}
h2{ font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3{ font-size: 1.25rem; }

p{ margin: 0 0 1em 0; color: var(--grey); max-width: 62ch; }

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

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

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- header / nav ---------- */

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,13,20,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
}

.brand svg, .brand img{ height: 42px; width: auto; }

.brand-text{
  display:flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong{
  font-family: var(--font-head);
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}

.brand-text span{
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-top: 2px;
}

.nav-links{
  display:flex;
  align-items:center;
  gap: 30px;
  list-style:none;
  margin:0; padding:0;
}

.nav-links a{
  font-size: 0.92rem;
  color: var(--grey);
  position: relative;
  padding: 4px 0;
  transition: color .15s ease;
}

.nav-links a:hover{ color: var(--white); }

.nav-links a.active{ color: var(--white); }

.nav-links a.active::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-6px;
  height:2px;
  background: var(--gold);
}

.nav-cta{
  border: 1px solid var(--gold-dim);
  color: var(--gold-light) !important;
  padding: 9px 18px;
  border-radius: 3px;
  font-size: 0.88rem !important;
  white-space: nowrap;
  transition: border-color .15s ease, background .15s ease;
}

.nav-cta:hover{
  border-color: var(--gold);
  background: rgba(216,165,49,0.08);
}

.nav-toggle{
  display:none;
  background:none;
  border:none;
  color: var(--white);
  cursor:pointer;
  padding: 6px;
}

.nav-toggle svg{ width:26px; height:26px; }

@media (max-width: 860px){
  .nav-links{
    position: fixed;
    top: 71px; left:0; right:0;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 28px 28px;
    gap: 18px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .nav-links.open{
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-toggle{ display: block; }
  .nav-cta{ margin-top: 6px; }
}

/* ---------- buttons ---------- */

.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 3px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease;
}

.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: var(--gold);
  color: #14100a;
}
.btn-primary:hover{ background: var(--gold-light); }

.btn-ghost{
  border-color: var(--border);
  color: var(--white);
}
.btn-ghost:hover{ border-color: var(--gold-dim); color: var(--gold-light); }

.btn-row{ display:flex; gap:16px; flex-wrap:wrap; }

/* ---------- eyebrow / kicker (used sparingly, not on every heading) ---------- */

.kicker{
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 10px;
  display:block;
}

/* ---------- rule / divider ---------- */

.rule{
  width: 64px;
  height: 3px;
  background: var(--gold);
  border: none;
  margin: 18px 0 26px;
}

.rule-full{
  border:none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ---------- hero ---------- */

.hero{
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-grid{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 84px 28px 90px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-copy p{ font-size: 1.08rem; }

.hero-art{
  position: relative;
  aspect-ratio: 3/2;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    linear-gradient(160deg, rgba(216,165,49,0.14), transparent 55%),
    var(--bg-panel);
}

.hero-circuit{
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.5;
  pointer-events: none;
}

@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; }
  .hero-art{ order: -1; aspect-ratio: 16/10; }
}

/* ---------- page header (inner pages) ---------- */

.page-head{
  padding: 64px 0 46px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(680px 260px at 85% 0%, rgba(216,165,49,0.08), transparent 70%);
}

.page-head p{ font-size: 1.05rem; }

/* ---------- sections ---------- */

section{ padding: 84px 0; }

.section-tight{ padding: 56px 0; }

.section-alt{
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head{
  max-width: 640px;
  margin-bottom: 46px;
}

/* ---------- services / feature triplet ---------- */

.triplet{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.triplet-item{
  padding: 34px 30px;
  border-right: 1px solid var(--border);
  background: var(--bg-panel);
}

.triplet-item:last-child{ border-right:none; }

.triplet-item svg{ width: 34px; height: 34px; color: var(--gold); margin-bottom: 18px; }

.triplet-item h3{ margin-bottom: 8px; }
.triplet-item p{ margin-bottom: 0; font-size: 0.93rem; }

@media (max-width: 760px){
  .triplet{ grid-template-columns: 1fr; }
  .triplet-item{ border-right:none; border-bottom: 1px solid var(--border); }
  .triplet-item:last-child{ border-bottom:none; }
}

/* ---------- generic two column ---------- */

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 860px){
  .split{ grid-template-columns: 1fr; gap: 34px; }
}

.split.reverse .split-media{ order: -1; }
@media (max-width: 860px){ .split.reverse .split-media{ order: 0; } }

.split-media{
  border: 1px solid var(--border);
  border-radius: 4px;
  aspect-ratio: 4/3;
  background: var(--bg-panel);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow: hidden;
  position: relative;
}

.split-media svg{ width: 100%; height: 100%; }

/* ---------- stat row ---------- */

.stat-row{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 10px;
}

.stat{ border-left: 2px solid var(--gold); padding-left: 18px; }
.stat strong{
  display:block;
  font-family: var(--font-head);
  font-size: 2.1rem;
  color: var(--white);
}
.stat span{ color: var(--grey-dim); font-size: 0.85rem; }

@media (max-width: 700px){ .stat-row{ grid-template-columns: 1fr 1fr; } }

/* ---------- cards (values / offerings) ---------- */

.card-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card-grid.cards-4{
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 900px){ .card-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px){ .card-grid{ grid-template-columns: 1fr; } }

.card{
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px 26px;
  background: var(--bg-panel);
}

.card svg{ width: 28px; height: 28px; color: var(--gold); margin-bottom: 16px; }
.card h3{ font-size: 1.08rem; margin-bottom: 8px; }
.card p{ font-size: 0.92rem; margin: 0; }

/* ---------- leistungen detail blocks ---------- */

.service-block{
  display:grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 40px 0;
}

.service-block + .service-block{ border-top: 1px solid var(--border); }

.service-icon{
  width: 56px; height: 56px;
  border: 1px solid var(--border);
  border-radius: 4px;
  display:flex; align-items:center; justify-content:center;
  color: var(--gold);
}
.service-icon svg{ width: 28px; height: 28px; }

.service-list{
  list-style:none; margin: 18px 0 0; padding:0;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 26px;
}
.service-list li{
  color: var(--grey);
  font-size: 0.92rem;
  padding-left: 18px;
  position: relative;
}
.service-list li::before{
  content:"";
  position:absolute; left:0; top: 0.55em;
  width: 6px; height: 2px;
  background: var(--gold);
}

@media (max-width: 620px){
  .service-block{ grid-template-columns: 1fr; }
  .service-list{ grid-template-columns: 1fr; }
}

/* ---------- process steps (real sequence -> numbered ok) ---------- */

.steps{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

.step{
  padding: 0 20px 0 0;
  position: relative;
}

.step-num{
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  width: 30px; height: 30px;
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 16px;
}

.step h3{ font-size: 1rem; margin-bottom: 6px; }
.step p{ font-size: 0.86rem; margin: 0; }

.step-line{
  position:absolute;
  top: 15px; left: 30px; right: -20px;
  height: 1px;
  background: var(--border);
}

.step:last-child .step-line{ display:none; }

@media (max-width: 900px){
  .steps{ grid-template-columns: 1fr 1fr; gap: 30px; }
  .step-line{ display:none; }
}
@media (max-width: 560px){
  .steps{ grid-template-columns: 1fr; }
}

/* ---------- testimonial / reference card ---------- */

.ref-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
@media (max-width: 760px){ .ref-grid{ grid-template-columns: 1fr; } }

.ref-card{
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-panel);
  overflow: hidden;
}

.ref-media{
  aspect-ratio: 16/10;
  background: var(--bg-panel-2);
  position:relative;
  display:flex; align-items:center; justify-content:center;
  border-bottom: 1px solid var(--border);
}
.ref-media svg{ width: 46%; opacity: 0.9; }

.ref-tag{
  position:absolute; top:14px; left:14px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  border: 1px solid var(--gold-dim);
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(10,13,20,0.6);
}

.ref-body{ padding: 22px 24px 26px; }
.ref-body h3{ margin-bottom: 6px; }
.ref-body p{ font-size: 0.9rem; margin-bottom: 14px; }

.ref-meta{
  display:flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--grey-dim);
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.quote-block{
  border-left: 2px solid var(--gold);
  padding-left: 22px;
  margin: 0;
}
.quote-block p{
  font-size: 1.15rem;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.45;
}
.quote-block cite{
  font-style: normal;
  font-size: 0.85rem;
  color: var(--grey-dim);
}

/* ---------- FAQ ---------- */

.faq-item{
  border-top: 1px solid var(--border);
  padding: 22px 0;
}
.faq-item:last-child{ border-bottom: 1px solid var(--border); }

.faq-item summary{
  cursor: pointer;
  list-style: none;
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 20px;
  font-family: var(--font-head);
  font-size: 1.02rem;
  color: var(--white);
}

.faq-item summary::-webkit-details-marker{ display:none; }

.faq-plus{
  flex: none;
  width: 22px; height: 22px;
  position: relative;
}
.faq-plus::before, .faq-plus::after{
  content:"";
  position:absolute;
  background: var(--gold);
  top:50%; left:50%;
  transform: translate(-50%,-50%);
}
.faq-plus::before{ width:14px; height:2px; }
.faq-plus::after{ width:2px; height:14px; transition: transform .15s ease; }

.faq-item[open] .faq-plus::after{ transform: translate(-50%,-50%) rotate(90deg) scaleY(0); }

.faq-item p{ margin: 14px 0 0; font-size: 0.94rem; }

/* ---------- contact page ---------- */

.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
}
@media (max-width: 900px){ .contact-grid{ grid-template-columns: 1fr; } }

.contact-item{
  display:flex; gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.contact-item:last-child{ padding-bottom: 0; }
.contact-item svg{ width:20px; height:20px; color: var(--gold); flex:none; margin-top: 3px; }
.contact-item h3{ font-size: 0.95rem; margin-bottom: 4px; }
.contact-item p{ margin:0; font-size: 0.92rem; }

.hours-table{ width:100%; border-collapse: collapse; margin-top: 4px; }
.hours-table td{ padding: 6px 0; font-size: 0.9rem; color: var(--grey); border-top: 1px solid var(--border); }
.hours-table td:last-child{ text-align:right; color: var(--white); }
.hours-table tr:first-child td{ border-top:none; }

.form{
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-panel);
  padding: 34px;
}

.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 520px){ .form-row{ grid-template-columns: 1fr; } }

.field{ margin-bottom: 18px; }
.field label{
  display:block;
  font-size: 0.82rem;
  color: var(--grey);
  margin-bottom: 7px;
}
.field input, .field select, .field textarea{
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 12px 14px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.94rem;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline: none;
  border-color: var(--gold-dim);
}
.field textarea{ resize: vertical; min-height: 110px; }

.form-note{ font-size: 0.78rem; color: var(--grey-dim); margin-top: 10px; }

.form-success{
  display:none;
  border: 1px solid var(--gold-dim);
  background: rgba(216,165,49,0.08);
  color: var(--gold-light);
  padding: 14px 16px;
  border-radius: 3px;
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.form-success.show{ display:block; }

.map-frame{
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow:hidden;
  margin-top: 30px;
  aspect-ratio: 16/6;
}
.map-frame iframe{ width:100%; height:100%; border:0; filter: grayscale(0.4) invert(0.92) contrast(0.9); }

.map-placeholder{
  width:100%; height:100%;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  text-align:center;
  background: var(--bg-panel);
  padding: 20px;
}

/* ---------- CTA band ---------- */

.cta-band{
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(600px 220px at 15% 50%, rgba(216,165,49,0.10), transparent 70%),
    var(--bg-panel);
}
.cta-band .container{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding-top: 54px;
  padding-bottom: 54px;
}
.cta-band h2{ margin-bottom: 6px; }
.cta-band p{ margin:0; }

/* ---------- footer ---------- */

.site-footer{
  padding: 56px 0 30px;
  border-top: 1px solid var(--border);
}

.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 760px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px){
  .footer-grid{ grid-template-columns: 1fr; }
}

.footer-brand .brand{ margin-bottom: 14px; }
.footer-brand p{ font-size: 0.88rem; }

.footer-col h4{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--grey-dim);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.footer-col ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.footer-col a{ font-size: 0.9rem; color: var(--grey); transition: color .15s ease; }
.footer-col a:hover{ color: var(--gold-light); }

.footer-bottom{
  display:flex;
  justify-content: space-between;
  align-items:center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--grey-dim);
}
.footer-bottom a{ color: var(--grey-dim); }
.footer-bottom a:hover{ color: var(--gold-light); }

/* ---------- utility ---------- */

.mt-0{ margin-top:0; }
.center{ text-align:center; margin-left:auto; margin-right:auto; }

/* ---------- cookie banner ---------- */

.cookie-banner{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 100;
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  display: none;
}

.cookie-banner.show{ display: block; }

.cookie-banner-inner{
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner p{
  margin: 0;
  font-size: 0.88rem;
  color: var(--grey);
  max-width: 640px;
}

.cookie-banner p a{ color: var(--gold-light); text-decoration: underline; }

.cookie-banner-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex: none;
}

.cookie-banner .btn{ padding: 11px 20px; font-size: 0.88rem; }
