/* Elmont-Elektromontagen — v3: Altes Design + neue Texte (Stand PDF Mai 2026)
 * Visuelles Vorbild: erste Rekonstruktion (web4business/CM4All cm_dh_070_2)
 * Akzentfarbe: #99cc00. Header angepasst für das neue große Logo (Wortmarke).
 */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Roboto", "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: #333;
  background: #f4f4f0;
}

/* ----- Layout ----- */
.page {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 18px rgba(0,0,0,0.08);
}

/* ----- Header (großes Logo, keine Textüberschrift) ----- */
.site-header {
  background: #fff;
  padding: 22px 30px 16px;
  border-bottom: 4px solid #99cc00;
  text-align: center;
}
.site-header .logo {
  display: block;
}
.site-header .logo img {
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* ----- Navigation ----- */
.main-nav {
  background: #2c2c2c;
  border-top: 1px solid #555;
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.main-nav li {
  position: relative;
}
.main-nav a {
  display: block;
  padding: 14px 26px;
  color: #f4f4f0;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: background 0.15s;
}
.main-nav a:hover,
.main-nav a:focus,
.main-nav li.active > a {
  background: #99cc00;
  color: #1a1a1a;
}

/* ----- Hero / Slideshow ----- */
.hero {
  position: relative;
  height: 360px;
  overflow: hidden;
  background: #222;
}
.hero .slides {
  position: absolute;
  inset: 0;
}
.hero .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.hero .slide.active { opacity: 1; }

/* ----- Content ----- */
.content-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 30px;
  padding: 30px;
}
.content-wrap.single { grid-template-columns: 1fr; }

@media (max-width: 800px) {
  .content-wrap { grid-template-columns: 1fr; }
  .main-nav ul { flex-direction: column; }
}

main h1 {
  color: #99cc00;
  font-size: 28px;
  margin: 0 0 16px;
  font-weight: 700;
}
main h2 {
  font-size: 20px;
  color: #2a2a2a;
  margin-top: 28px;
  border-bottom: 2px solid #99cc00;
  padding-bottom: 4px;
}
main h3 {
  font-size: 17px;
  color: #444;
  margin-top: 22px;
}
main p { margin: 0 0 14px; }
main ul { padding-left: 22px; }
main li { margin-bottom: 6px; }
main a { color: #6d9a00; }
main a:hover { color: #99cc00; }

main img.inline {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 12px 0;
}

.notice {
  background: #f4f8e6;
  border-left: 4px solid #99cc00;
  padding: 12px 16px;
  margin: 16px 0;
  border-radius: 0 4px 4px 0;
}
.notice strong { display: block; margin-bottom: 2px; color: #2a2a2a; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 18px 0 28px;
}
.service-card {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.service-card .body {
  padding: 14px 16px;
}
.service-card h3 {
  margin: 0 0 6px;
  color: #2a2a2a;
  font-size: 16px;
}
.service-card p {
  margin: 0;
  font-size: 14px;
  color: #555;
}

/* Feature-Block (Detail-Leistung mit Bild rechts) */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 24px;
  align-items: start;
  margin: 20px 0;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e5e5;
}
.feature-block:last-child { border-bottom: 0; }
.feature-block .visual {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.feature-block .visual img { width: 100%; height: 100%; object-fit: cover; }
.feature-block h3 { margin-top: 0; }
@media (max-width: 700px) {
  .feature-block { grid-template-columns: 1fr; }
  .feature-block .visual { max-width: 320px; }
}

.ref-list {
  columns: 2;
  column-gap: 30px;
  list-style: square inside;
  padding-left: 0;
}
@media (max-width: 600px) { .ref-list { columns: 1; } }
.ref-list li { break-inside: avoid; }

/* ----- Sidebar ----- */
aside.sidebar {
  background: #f4f4f0;
  border-left: 4px solid #99cc00;
  padding: 18px 20px;
  font-size: 14px;
  align-self: start;
}
aside.sidebar h3 {
  margin: 0 0 8px;
  color: #2a2a2a;
  font-size: 16px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 4px;
}
aside.sidebar p { margin: 4px 0; }
aside.sidebar a { color: #4a6a00; text-decoration: none; }
aside.sidebar a:hover { text-decoration: underline; }

/* Kompakte Anrufen/WhatsApp-Buttons in der Sidebar */
.side-cta { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.side-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  color: #fff;
}
.side-btn:hover { filter: brightness(0.93); text-decoration: none; }
.side-call { background: #99cc00; color: #1a1a1a; }
.side-wa   { background: #25d366; color: #0b3d1e; }

/* ----- Manager-Karten ----- */
.managers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 16px 0;
}
.manager {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 16px;
}
.manager strong { display: block; font-size: 16px; color: #2a2a2a; }
.manager span { display: block; color: #777; margin: 2px 0 8px; font-size: 14px; }
.manager a { color: #6d9a00; text-decoration: none; }
@media (max-width: 600px) { .managers { grid-template-columns: 1fr; } }

/* ----- Forms ----- */
form.contact {
  display: grid;
  gap: 14px;
  max-width: 640px;
}
form.contact label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  color: #444;
}
form.contact input,
form.contact select,
form.contact textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #c0c0c0;
  border-radius: 3px;
  font-family: inherit;
  font-size: 15px;
  background: #fff;
}
form.contact textarea { min-height: 140px; resize: vertical; }
form.contact .checkbox-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
}
form.contact .checkbox-row input { width: auto; margin-top: 4px; }
form.contact button {
  background: #99cc00;
  color: #1a1a1a;
  border: 0;
  padding: 11px 22px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 3px;
  font-size: 15px;
  justify-self: start;
}
form.contact button:hover { background: #80b000; }
form.contact .note { font-size: 12px; color: #777; }

/* ----- Legal (Impressum/Datenschutz) ----- */
.legal-section { margin-bottom: 18px; }
.legal-section h3 { margin-top: 0; }

/* ----- Footer ----- */
.site-footer {
  background: #2c2c2c;
  color: #ddd;
  padding: 28px 30px 18px;
  font-size: 13px;
}
.site-footer .footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 18px;
}
.site-footer h4 {
  margin: 0 0 8px;
  color: #99cc00;
  font-size: 14px;
}
.site-footer a {
  color: #ddd;
  text-decoration: none;
}
.site-footer a:hover { color: #99cc00; }
.site-footer .legal {
  border-top: 1px solid #555;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: #999;
}

/* Map */
.map-embed {
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: 4px;
  margin-top: 8px;
}
/* Karte: Zwei-Klick-Lösung (Consent-Box vor dem Laden) */
.map-consent {
  margin-top: 8px;
  border: 1px dashed #99cc00;
  background: #f4f8e6;
  border-radius: 6px;
  padding: 26px 22px;
  text-align: center;
}
.map-consent p { margin: 0 0 10px; }
.map-consent .map-hint {
  font-size: 13px;
  color: #666;
  max-width: 560px;
  margin: 0 auto 14px;
}
.map-btn {
  background: #99cc00;
  color: #1a1a1a;
  border: 0;
  padding: 11px 22px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 3px;
  cursor: pointer;
}
.map-btn:hover { background: #80b000; }
.map-loaded { margin-top: 8px; }

/* ----- Kontakt-CTA (Anrufen / WhatsApp / E-Mail statt Formular) ----- */
.kontakt-cta {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 20px;
  max-width: 640px;
}
.kontakt-cta label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}
.kontakt-cta textarea {
  width: 100%;
  min-height: 120px;
  padding: 10px 12px;
  border: 1px solid #c0c0c0;
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
  resize: vertical;
  background: #fff;
}
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.cta-btn {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  text-align: center;
  color: #fff;
  transition: filter 0.15s, transform 0.1s;
}
.cta-btn:hover { filter: brightness(0.93); transform: translateY(-1px); }
.cta-btn small { font-weight: 400; font-size: 12px; opacity: 0.92; }
.cta-btn .cta-ico { font-size: 18px; line-height: 1; }
.cta-call  { background: #99cc00; color: #1a1a1a; }
.cta-call small { color: #2a3a00; }
.cta-wa    { background: #25d366; color: #0b3d1e; }
.cta-wa small { color: #0b3d1e; }
.cta-mail  { background: #2c2c2c; }
@media (max-width: 560px) { .cta-btn { flex: 1 1 100%; } }

/* TODO marker */
.todo {
  background: #fff7d6;
  border-left: 4px solid #e6b800;
  padding: 10px 14px;
  margin: 14px 0;
  font-size: 14px;
  color: #715a00;
  font-style: italic;
}
