/* ============================================================
   Navigation (leicht verfeinert)
   ============================================================ */
#menu {
  padding: 15px;
  transition: all 0.8s;
}
#menu.navbar-default {
  background: #fff;
  border-color: transparent;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.12);
}
#menu a.navbar-brand {
  font-family: "Raleway", sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #111827;
  text-transform: uppercase;
}
#menu a.navbar-brand:hover {
  color: var(--brand-blue-700);
}
#menu.navbar-default .navbar-nav > li > a {
  font-family: "Lato", sans-serif;
  text-transform: uppercase;
  color: #555;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 2px;
  margin: 9px 20px 0;
  border-radius: 0;
  position: relative;
}
#menu.navbar-default .navbar-nav > li > a:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #6372ff 0%, #5ca9fb 100%);
  transition: width 0.2s;
}
#menu.navbar-default .navbar-nav > li > a:hover:after {
  width: 100%;
}
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  background: transparent;
}
.navbar-default .navbar-nav > .active > a:after,
.navbar-default .navbar-nav > .active > a:hover:after,
.navbar-default .navbar-nav > .active > a:focus:after {
  width: 100% !important;
}

/* ============================================================
   Header / Intro
   ============================================================ */
header {
  width: 100%;
  padding-top: 30px;
  display: flex;
  justify-content: center;
}
.intro {
  position: relative;
  width: 100%;
  max-width: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  min-height: 300px;
}
.intro .overlay {
  position: relative;
  background: url(../img/banner.png) no-repeat center/cover;
  border-radius: 24px;
  box-shadow: var(--shadow-2);
  width: 100%;
  max-width: 1000px;
  min-height: 300px;
  z-index: 1;
}
.intro-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 800px;
  padding: 20px;
}
.navbar-brand:hover {
  color: var(--brand-blue-700);
}
@media (max-width: 1000px) {
  .intro {
    padding: 60px 0;
    min-height: 400px;
  }
  .intro .overlay {
    max-width: 90%;
    border-radius: 12px;
  }
  .intro-text p {
    font-size: 18px;
  }
}
@media (max-width: 600px) {
  .intro .overlay {
    max-width: 95%;
    max-height: 350px;
  }
}

/* ============================================================EnergyHeroCTA============================================================ */
.energy-hero-cta {
  --cta-bg: linear-gradient(135deg, #378be6 0%, #0112a3 100%);
  --cta-bg-accent: radial-gradient(
      1200px 300px at 20% 0%,
      rgba(255, 255, 255, 0.22) 0%,
      rgba(255, 255, 255, 0) 60%
    ),
    radial-gradient(
      900px 260px at 80% 100%,
      rgba(255, 255, 255, 0.16) 0%,
      rgba(255, 255, 255, 0) 60%
    );
  --cta-text: #0f172a;
  --cta-muted: #334155;
  --cta-panel: #ffffff;
  --cta-shadow: 0 12px 30px rgba(2, 8, 23, 0.08);
  --cta-shadow-hover: 0 18px 46px rgba(2, 8, 23, 0.12);
  --cta-radius: 18px;

  width: 100%;
  padding: 0;
  background: transparent;
}

.energy-hero-cta__inner {
  max-width: 1600px;
  margin: clamp(10px, 2.2vw, 22px) auto;
  padding: clamp(14px, 2vw, 18px) clamp(12px, 2vw, 20px);

  background: var(--cta-panel);
  border: 1px solid rgba(99, 114, 255, 0.2);
  border-radius: var(--cta-radius);
  box-shadow: var(--cta-shadow);

  position: relative;
  overflow: hidden;
}
.energy-hero-cta__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cta-bg);
  opacity: 0.18;
  z-index: 0;
}
.energy-hero-cta__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cta-bg-accent);
  pointer-events: none;
  z-index: 0;
}

.energy-hero-cta__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(12px, 2vw, 20px);
  align-items: center;
}

.energy-hero-cta__icon {
  position: relative;
  z-index: 1;
  width: clamp(52px, 5.2vw, 64px);
  height: clamp(52px, 5.2vw, 64px);
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: clamp(26px, 3.4vw, 32px);
  color: #fff;
  background: linear-gradient(135deg, #4f46e5 0%, #22d3ee 100%);
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.28);
  transform: translateZ(0);
}

.energy-hero-cta__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
}
.energy-hero-cta__content h3 {
  margin: 0;
  font-family: "Raleway", system-ui, -apple-system, "Segoe UI", Roboto,
    sans-serif;
  font-weight: 800;
  font-size: clamp(18px, 2.1vw, 22px);
  color: var(--cta-text);
  letter-spacing: 0.2px;
}
.energy-hero-cta__content p {
  margin: 0;
  font-size: clamp(14px, 1.6vw, 16px);
  color: var(--cta-muted);
  opacity: 0.95;
}

.energy-hero-cta__actions {
  position: relative;
  z-index: 1;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.energy-hero-cta__btn {
  appearance: none;
  border: 0;
  outline: 0;
  cursor: pointer;

  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 14px;

  color: #fff;
  background: linear-gradient(135deg, #5ca9fb 0%, #6372ff 100%);
  box-shadow: 0 12px 20px rgba(99, 114, 255, 0.25);
  transform: translateZ(0);
  transition: transform 120ms ease, box-shadow 180ms ease, filter 160ms ease;
}
.energy-hero-cta__btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: var(--cta-shadow-hover);
}
.energy-hero-cta__btn:active {
  transform: translateY(0);
}

.energy-hero-cta__link {
  appearance: none;
  border: 1px solid rgba(99, 102, 241, 0.28);
  background: #fff;
  color: #1f2a44;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease,
    transform 120ms ease;
}
.energy-hero-cta__link:hover {
  background: #f3f4f6;
  border-color: #a5b4fc;
  transform: translateY(-1px);
}
.energy-hero-cta__link:active {
  transform: translateY(0);
}

.energy-hero-cta__inner:hover {
  box-shadow: 0 18px 46px rgba(2, 8, 23, 0.12);
}

.energy-hero-cta__btn:focus-visible,
.energy-hero-cta__link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.28),
    0 0 0 6px rgba(99, 102, 241, 0.14);
}
  max-width: 1500px;
}

/* ============================================================
   B2C + B2B Services – EIN Style für beide
   ============================================================ */
.B2Cservices,
.B2Bservices {
  background: #fff;
  padding-top: 28px;
  padding-bottom: 40px;
}
.B2Cservices .section-title h2,
.B2Bservices .section-title h2 {
  color: var(--ink-900);
  letter-spacing: 0.3px;
}
.B2Cservices .section-title p,
.B2Bservices .section-title p {
  color: var(--ink-700);
  opacity: 0.95;
}

/* Grid – identisch (3 Spalten desktop, 2 / 1 responsiv)
   B2C nutzt .b2c-cards, B2B nutzt .b2b-cards */
.B2Cservices .b2c-cards,
.B2Bservices .b2b-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--card-gap);
}
@media (max-width: 1100px) {
  .B2Cservices .b2c-cards,
  .B2Bservices .b2b-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .B2Cservices .b2c-cards,
  .B2Bservices .b2b-cards {
    grid-template-columns: 1fr;
  }
}

/* Einheitliche Karten (Bild-Hintergrund, Overlay, Typografie) */
.B2Cservices .service-card,
.B2Bservices .service-card {
  position: relative;
  height: var(--card-height);
  border-radius: var(--card-radius);
  overflow: hidden;
  background: #a5a5a5; /* Fallback */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: var(--shadow-2);
  transform: translateZ(0);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

/* Overlay identisch */
.B2Cservices .service-card::before,
.B2Bservices .service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, var(--card-overlay-top-alpha)) 35%,
    rgba(15, 23, 42, var(--card-overlay-bottom-alpha)) 100%
  );
  pointer-events: none;
}

/* Content unten links (gleich) */
.B2Cservices .service-card-content,
.B2Bservices .service-card-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.B2Cservices .service-card-content h3,
.B2Bservices .service-card-content h3 {
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  margin: 0 0 6px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.25);
}
.B2Cservices .service-card-content span,
.B2Bservices .service-card-content span {
  display: inline-block;
  color: #e8edff;
  font-size: 14px;
  line-height: 1.45;
  background: rgba(15, 23, 42, 0.45);
  padding: 8px 10px;
  border-radius: 12px;
  backdrop-filter: blur(3px);
}

/* Hover / Focus identisch */
.B2Cservices .service-card:hover,
.B2Cservices .service-card:focus-within,
.B2Bservices .service-card:hover,
.B2Bservices .service-card:focus-within {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 18px 42px rgba(2, 8, 23, 0.12), 0 4px 12px rgba(2, 8, 23, 0.06);
}
.B2Cservices .service-card[role="button"],
.B2Bservices .service-card[role="button"] {
  outline: none;
}
.B2Cservices .service-card[role="button"]:focus,
.B2Bservices .service-card[role="button"]:focus {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.28), var(--shadow-2);
  transform: translateY(-4px) scale(1.005);
}

/* Responsive Kartenhöhe (gleich) */
@media (max-width: 576px) {
  :root {
    --card-height: 220px;
  }
  .B2Cservices .service-card-content,
  .B2Bservices .service-card-content {
    padding: 18px;
  }
  .B2Cservices .service-card-content h3,
  .B2Bservices .service-card-content h3 {
    font-size: 18px;
  }
  .B2Cservices .service-card-content span,
  .B2Bservices .service-card-content span {
    font-size: 13px;
  overflow: hidden;
}
.testimonial-content p {
  margin-bottom: 0;
  font-size: 14px;
  font-style: italic;
}
.testimonial-meta {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #666;
}

/* ============================================================
   Contact
   ============================================================ */
#contact {
  background: linear-gradient(to right, #6372ff 0%, #5ca9fb 100%);
  color: rgba(255, 255, 255, 0.85);
  padding: 64px;
}
#contact .section-title {
  margin-bottom: 40px;
}
#contact .section-title p {
  font-size: 16px;
}
#contact h2 {
  color: #fff;
  margin-top: 10px;
  margin-bottom: 15px;
  padding-bottom: 15px;
}
#contact .section-title h2::after {
  content: "";
  position: absolute;
  height: 4px;
  width: 60px;
  bottom: 0;
  left: 30px;
  background: rgba(255, 255, 255, 0.3);
}
#contact h3 {
  color: #fff;
  margin-top: 80px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  font-weight: 500;
}
#contact form {
  padding-top: 20px;
}
#contact .text-danger {
  color: #cc0033;
  text-align: left;
}
#contact .btn-custom {
  margin: 30px 0;
  background: transparent;
  border: 2px solid #fff;
}
#contact .btn-custom:hover {
  color: #1f386e;
  background: #fff;
}
label {
  font-size: 12px;
  font-weight: 400;
  font-family: "Open Sans", sans-serif;
  float: left;
}
#contact .form-control {
  display: block;
  width: 100%;
  padding: 10px 12px;
  font-size: 16px;
  color: #444;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: none;
}
#contact .form-control:focus {
  border-color: #999;
/* ============================================================
   Slider / Schadensanalyse / Header Slider
   ============================================================ */
.slider-item {
  padding: 0 12px;
}
#handwerkerSlider .handwerker-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
#handwerkerSlider .handwerker-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px; /* kompakter */
}
#handwerkerSlider .handwerker-card h3 {
  font-size: 20px;
  margin: 4px 0;
  color: #1e3a8a;
  font-weight: 700;
}
.slick-dots li button:before {
  font-size: 10px;
  color: #5ca9fb;
}
.slick-dots li.slick-active button:before {
  color: #6372ff;
}

textarea {
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 1rem;
  resize: vertical;
}

/* Header Slider fixes */
#header .slick-list,
#header .slick-track {
  height: 100%;
}
#header .slick-track {
  display: flex;
}
#header .slick-slide {
  height: auto !important;
}
#header .slick-slide > div {
  height: 100%;
}
#header .slick-slider {
  position: relative;
  z-index: 3;
}
#header .slick-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 10;
  pointer-events: auto;
}
#header .intro .overlay {
  z-index: 1;
}
#header .intro-text {
  position: relative;
  z-index: 4;
}

/* HandwerkerSlider Höhe stabilisieren & Whitespace entfernen */
#handwerkerSlider .slick-slider {
  margin: 0;
}
#handwerkerSlider .slick-list {
  overflow: visible;
}
#handwerkerSlider .slick-track {
  display: flex;
  align-items: stretch;
}
#handwerkerSlider .slick-slide {
  height: auto;
}
#handwerkerSlider .slick-slide > div,
#handwerkerSlider .slider-item,
#handwerkerSlider .handwerker-card {
  height: 100%;
}
#handwerkerSlider .slick-dotted.slick-slider {
  margin-bottom: 0;
}

#contact {
  padding-bottom: 64px;
}
