/* ===================================================
   Peter Elektrofachbetrieb GmbH – Shared Stylesheet
   =================================================== */

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

:root {
  --primary:       #3b82f6;
  --primary-dark:  #2563eb;
  --primary-light: #eff6ff;
  --primary-mid:   #93c5fd;
  --text:          #111827;
  --text-muted:    #6b7280;
  --border:        #e5e7eb;
  --bg:            #f9fafb;
  --dark:          #1e293b;
  --dark-mid:      #334155;
  --white:         #ffffff;
  --success:       #16a34a;
  --shadow:        0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:     0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:     0 10px 25px rgba(0,0,0,.1);
  --radius:        6px;
  --radius-lg:     10px;
  --font:          'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); line-height: 1.7; background: var(--white); font-size: 1rem; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* ── NAVIGATION ── */
.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.nav-logo .logo-mark {
  width: 34px; height: 34px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-logo .logo-mark svg { color: #fff; }
.nav-logo span { color: var(--primary); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .15s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a.active { font-weight: 600; }
.nav-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: .5rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600 !important;
  font-size: .875rem !important;
  transition: background .15s !important;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--primary-dark) !important; }

/* BURGER */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  color: var(--text);
}
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}
.nav-burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE MENU */
.nav-mobile {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 8px 16px rgba(0,0,0,.08);
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  padding: .9rem 1.5rem;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background .15s, color .15s;
}
.nav-mobile a:hover, .nav-mobile a.active { color: var(--primary); background: var(--primary-light); }
.nav-mobile a.active { font-weight: 600; }
.nav-mobile .nav-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  margin: 1rem 1.5rem 1rem;
  border-radius: var(--radius);
  text-align: center;
  border-bottom: none;
}
.nav-mobile .nav-cta:hover { background: var(--primary-dark) !important; }

/* ── PAGE HEADER (inner pages) ── */
.page-header {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-mid) 100%);
  padding: 3.5rem 0;
  color: var(--white);
}
.page-header .breadcrumb {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.page-header .breadcrumb a { color: rgba(255,255,255,.55); transition: color .15s; }
.page-header .breadcrumb a:hover { color: var(--white); }
.page-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: .5rem;
}
.page-header p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  max-width: 560px;
}

/* ── SECTION BASICS ── */
.section-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--primary);
  margin-bottom: .5rem;
}
.section-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: .75rem;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 560px;
  margin-bottom: 3rem;
}
.section-sub.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-header-center { text-align: center; }
.section-header-center .section-sub { margin-left: auto; margin-right: auto; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: all .15s;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { background: #f0f9ff; }
.btn-outline-white { background: transparent; border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

/* ── SVG ICON HELPER ── */
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon-lg { width: 28px; height: 28px; }

/* ── SERVICE CARDS ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--primary-mid);
}
.service-card .sc-icon {
  width: 52px; height: 52px;
  background: var(--primary-light);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--primary);
}
.service-card .sc-icon svg { width: 24px; height: 24px; }
.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .5rem;
}
.service-card p {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.service-card .card-link {
  font-size: .8rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  transition: gap .15s;
}
.service-card .card-link:hover { gap: .5rem; }

/* ── USP BAR ── */
.usp-bar { background: var(--dark); padding: 2.25rem 0; }
.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.usp-item {}
.usp-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: .3rem;
}
.usp-value span { color: var(--primary-mid); }
.usp-label { font-size: .8rem; color: rgba(255,255,255,.6); }

/* ── CHECK LIST ── */
.check-list { display: flex; flex-direction: column; gap: .65rem; }
.check-item {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .9rem;
  color: var(--text);
}
.check-item .ci-icon {
  width: 20px; height: 20px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: .1rem;
  color: var(--primary);
}
.check-item .ci-icon svg { width: 11px; height: 11px; }

/* ── TESTIMONIAL CARDS ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.t-stars { color: #f59e0b; font-size: .9rem; margin-bottom: .75rem; letter-spacing: .05em; }
.t-text {
  font-size: .875rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: italic;
}
.t-author { display: flex; align-items: center; gap: .75rem; }
.t-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: .8rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.t-name { font-weight: 600; font-size: .875rem; color: var(--text); }
.t-location { font-size: .75rem; color: var(--text-muted); }

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 4rem 0;
  text-align: center;
}
.cta-banner h2 { font-size: 2rem; font-weight: 800; color: var(--white); margin-bottom: .75rem; }
.cta-banner p { color: rgba(255,255,255,.8); margin-bottom: 2rem; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── CONTACT INFO ITEMS ── */
.contact-list { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.ci-icon-wrap {
  width: 44px; height: 44px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}
.ci-icon-wrap svg { width: 20px; height: 20px; }
.ci-label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: .15rem; }
.ci-value { font-size: .95rem; font-weight: 500; color: var(--text); }
.ci-value a { color: var(--primary); }
.ci-value a:hover { text-decoration: underline; }

/* ── FORM ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: .8rem; font-weight: 600; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .65rem .9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.form-group textarea { height: 120px; resize: vertical; }
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; background-size: 16px; padding-right: 2.5rem; }
.form-note { font-size: .75rem; color: var(--text-muted); margin-top: .25rem; }

/* ── GALLERY GRID ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  background: var(--bg);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(17,24,39,.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .25s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay-text {
  color: var(--white);
  font-weight: 600;
  font-size: .875rem;
  text-align: center;
  padding: 0 1rem;
}

/* ── VALUE CARDS ── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.value-card {
  padding: 1.5rem;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.value-card .vc-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-mid);
  line-height: 1;
  margin-bottom: .75rem;
  opacity: .4;
}
.value-card h3 { font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: .4rem; }
.value-card p { font-size: .825rem; color: var(--text-muted); line-height: 1.6; }

/* ── LEGAL PAGES ── */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 4rem 0 5rem;
}
.legal-content h2 { font-size: 1.35rem; font-weight: 700; color: var(--text); margin: 2rem 0 .75rem; }
.legal-content h3 { font-size: 1.05rem; font-weight: 600; color: var(--text); margin: 1.25rem 0 .4rem; }
.legal-content p { color: var(--text-muted); font-size: .9rem; line-height: 1.75; margin-bottom: 1rem; }
.legal-content a { color: var(--primary); }
.legal-content a:hover { text-decoration: underline; }

/* ── FOOTER ── */
.site-footer { background: var(--dark); color: rgba(255,255,255,.65); padding: 3.5rem 0 1.5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .fb-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .75rem;
}
.footer-brand .fb-logo .logo-mark { background: var(--primary); }
.footer-brand p { font-size: .825rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul li a {
  font-size: .825rem;
  color: rgba(255,255,255,.55);
  transition: color .15s;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-col .fc-contact-item {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .8rem; color: rgba(255,255,255,.55);
  margin-bottom: .6rem;
}
.footer-col .fc-contact-item svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: .15rem; color: var(--primary-mid); }
.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .775rem;
}
.footer-bottom-links { display: flex; gap: 1.25rem; }
.footer-bottom-links a { color: rgba(255,255,255,.4); transition: color .15s; }
.footer-bottom-links a:hover { color: var(--white); }

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .page-header h1 { font-size: 1.85rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .section-title { font-size: 1.65rem; }
  .cta-banner h2 { font-size: 1.65rem; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .usp-value { font-size: 1.75rem; }
  .cta-actions { flex-direction: column; align-items: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-header h1 { font-size: 1.5rem; }
  .section-title { font-size: 1.45rem; }
}
