/* ==========================================================================
   Hanse Elektroservice MI.CK GmbH – zentrale Stylesheet-Datei
   Teil 1: Bestandsstyles 1:1 aus dem bisherigen <style>-Block der index.html
   Teil 2: Ergaenzungen fuer Menue, Notdienst-Button und Footer laut Briefing
   ========================================================================== */

/* ---------- Teil 1: Bestand (unveraendert) ---------- */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  margin-top: 0; /* Wichtig! */
  background-color: #ebb51e;
  color: white;
  padding: 8rem 1rem 4rem; /* genug Platz oben */
  text-align: center;
  position: relative; /* für z-index falls nötig */
  z-index: 0;
}

.animated {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

body {
  padding-top: 140px;
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #fff;
  color: #333;
}

header {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.logo-area img {
  height: 140px;
  width: auto;
}
.logo-area span {
  font-size: 1.6rem;
  font-weight: bold;
  color: #ffffff;
}

nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: #ebb51e;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

nav a.active {
  color: #003366; /* z. B. dunkles Blau für aktive Seite */
  border-bottom: 2px solid #003366;
}

nav a:hover {
  color: #000000;
}

.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.burger span {
  height: 3px;
  width: 25px;
  background: #ebb51e;
  margin: 4px 0;
}

#mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1rem;
  background-color: #ffffff;
}
#mobile-menu a {
  padding: 0.5rem 0;
  color: #ebb51e;
  font-weight: bold;
  text-decoration: none;
}
#mobile-menu a:hover {
  color: #000000;
}

@media (max-width: 768px) {
  nav {
    display: none;
  }
  .burger {
    display: flex;
  }
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 4rem 1rem;
  background-color: #f4f4f4;
}
.card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

footer {
  background-color: #eee;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}
footer a {
  color: #000000;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

.call-button {
  background-color: #ebb51e;
  color: #ffffff;
  padding: 0.5rem 1rem;
  margin-left: 1rem;
  border: 2px solid #ffffff;
  border-radius: 40px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.call-button:hover {
  background-color: #ffffff;
  color: #ebb51e;
}

.mobile-call-button {
  display: none;
}

@media (max-width: 768px) {
  .call-button {
    display: none;
    border: 4px solid #ffffff;
    border-radius: 40px;
  }
  .mobile-call-button {
    display: block;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ebb51e;
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 999;
  }
  .mobile-call-button:hover {
    background-color: #000000;
  }
}

.head-button {
  background-color: #ebb51e;
  color: #ffffff;
  padding: 0.8rem 2rem;
  margin-left: 1rem;
  border: 4px solid #ebb51e;
  border-radius: 40px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.head-button:hover {
  background-color: #ffffff;
  color: #000000;
}

.team-intro {
  max-width: 1120px;
  margin: 4rem auto 2rem;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 2rem;
  align-items: center;
}

.team-intro-image img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.16);
  display: block;
}

.team-intro-copy {
  padding: 1rem 0;
}

.team-intro-copy .eyebrow {
  color: #ebb51e;
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.team-intro-copy h2 {
  color: #111;
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 1rem;
}

.team-intro-copy p {
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 0 1.5rem;
}

.team-link {
  color: #ebb51e;
  font-weight: 700;
  text-decoration: none;
}

.team-link:hover {
  color: #000000;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .team-intro {
    grid-template-columns: 1fr;
    margin: 3rem auto 1rem;
  }

  .team-intro-copy h2 {
    font-size: 1.7rem;
  }
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #222;
  color: white;
  padding: 1.5rem;
  font-size: 0.9rem;
  z-index: 9999;
  display: none;
  text-align: center;
}

.cookie-buttons {
  margin-top: 1rem;
}

.cookie-banner button {
  background-color: #ebb51e;
  color: black;
  border: none;
  padding: 0.6rem 1.2rem;
  margin: 0 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cookie-banner button:hover {
  background-color: #d4a514;
}

.hero-bg {
  background-image: url('/images/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  padding: 7rem 1rem;
  color: white;
  text-align: center;
}
.hero-overlay {
  background-color: rgba(0, 0, 0, 0.5); /* dunkler Filter über Bild */
  padding: 3rem 1rem;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 18px;
}
.hero-overlay h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero-overlay p {
  font-size: 1.2rem;
}

.accordion-item {
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 1rem;
  overflow: hidden;
}
.accordion-header {
  background-color: #f9f9f9;
  color: #000000;
  cursor: pointer;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  width: 100%;
  text-align: left;
  transition: background-color 0.3s ease;
}
.accordion-header:hover {
  background-color: #eee;
}
.accordion-content {
  padding: 0 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.accordion-item.active .accordion-content {
  padding: 1rem;
}

.whatsapp-button {
  align-items: center;
  background: #25d366;
  border-radius: 50px;
  bottom: 22px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
  color: #ffffff;
  display: inline-flex;
  font-weight: 700;
  gap: 0.55rem;
  padding: 0.85rem 1.15rem;
  position: fixed;
  right: 22px;
  text-decoration: none;
  z-index: 999;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-button i {
  font-size: 1.35rem;
}

.whatsapp-button:hover {
  background: #1fb85a;
  box-shadow: 0 12px 28px rgba(0,0,0,0.24);
  color: #ffffff;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .whatsapp-button {
    bottom: 18px;
    right: 18px;
    padding: 0.8rem 1rem;
  }
}

@media (max-width: 420px) {
  .whatsapp-button span {
    display: none;
  }

  .whatsapp-button {
    border-radius: 999px;
    height: 58px;
    justify-content: center;
    padding: 0;
    width: 58px;
  }

  .whatsapp-button i {
    font-size: 1.65rem;
  }
}

/* ==========================================================================
   Teil 2: Ergaenzungen laut Briefing
   Gleiche Farbwelt (#ebb51e Gelb, #003366 Dunkelblau, #f4f4f4 / #eee Grau),
   gleiche Typografie, gleiche Radien und Schatten wie im Bestand.
   ========================================================================== */

/* --- Hero: H1 uebernimmt exakt die bisherige H2-Optik --- */
.hero-overlay h1 {
  font-size: 2.5rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

/* --- Primaerbutton: weiss auf gelb, fuer Buttons auf hellem Hintergrund --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.9rem;
  border: 2px solid #ebb51e;
  border-radius: 40px;
  background-color: #ebb51e;
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(235, 181, 30, 0.32);
  transition: background-color 0.25s ease, color 0.25s ease,
              transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-primary:hover {
  background-color: #ffffff;
  color: #ebb51e;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(235, 181, 30, 0.4);
}

/* --- Buttons: einheitliche Pillenform, weiche Schatten, Hover-Anhebung --- */
.head-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 2.25rem;
  font-size: 1.05rem;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  transition: background-color 0.25s ease, color 0.25s ease,
              border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.head-button:hover {
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.call-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.35rem;
  border-color: #ebb51e;
  font-size: 0.95rem;
  line-height: 1;
  transition: background-color 0.25s ease, color 0.25s ease,
              transform 0.25s ease, box-shadow 0.25s ease;
}
.call-button:hover {
  border-color: #ebb51e;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(235, 181, 30, 0.35);
}

.emergency-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 51, 102, 0.3);
}

/* --- Abschnittsueberschrift, bisher als Inline-Style auf der Seite --- */
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-top: 4rem;
  margin-bottom: 0;
  color: #ebb51e;
  padding: 0 1rem;
}

/* Die Ueberschrift steht jetzt mit im grauen Abschnitt.
   Dafuer wird .features zum Block-Container und das Karten-Raster
   wandert in .features-grid. Wichtig: Die Ueberschrift darf NICHT
   selbst Rasterelement sein – sonst belegt sie alle auto-fit-Spalten,
   die leeren Spuren klappen nicht mehr zusammen und die Karten
   werden schmal. */
.features {
  display: block;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.features .section-title {
  margin: 0 0 2rem;
  padding: 0;
}

/* --- Fliesstext-Bloecke --- */
.prose {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem 0;
  font-size: 1.05rem;
  line-height: 1.7;
}
.prose p {
  margin: 0 0 1.1rem;
}
.prose a {
  color: #b8890a;
  font-weight: 600;
}
.prose a:hover {
  color: #000000;
}

/* --- Textlinks in Karten und Abschnitten --- */
.card a,
.team-intro-copy p a {
  color: #b8890a;
  font-weight: 600;
}
.card a:hover,
.team-intro-copy p a:hover {
  color: #000000;
}

.card h3 {
  margin-top: 0;
  color: #111;
  line-height: 1.35;
}
.card h3 i {
  color: #ebb51e;
  margin-right: 0.35rem;
}
.card p {
  line-height: 1.65;
  margin-bottom: 0;
}
.card .card-link {
  display: inline-block;
  margin-top: 0.9rem;
  color: #b8890a;
  font-weight: 700;
  text-decoration: none;
}
.card .card-link:hover {
  color: #000000;
  text-decoration: underline;
}

/* --- Nummerierte Ablaufkarten (Wiederverwendung des Karten-Rasters) --- */
.card .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background-color: #ebb51e;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
}

/* --- Kopfzeilen-Navigation mit Aufklappmenue ---
   Nur ab Tablet aufwaerts, damit die Bestands-Regel
   "@media (max-width: 768px) { nav { display: none } }" wirksam bleibt. */
@media (min-width: 769px) {
  nav {
    display: flex;
    align-items: center;
  }
}

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0;
}

.nav-item .submenu-toggle {
  background: none;
  border: none;
  padding: 0.25rem;
  margin: 0;
  cursor: pointer;
  color: #ebb51e;
  font-size: 0.8rem;
  line-height: 1;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 1.5rem;
  min-width: 270px;
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 1010;
}

.nav-item:hover .submenu,
.nav-item:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu a {
  display: block;
  margin-left: 0;
  padding: 0.6rem 1.25rem;
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0;
  color: #333333;
  font-weight: 600;
}

.submenu a:hover {
  background-color: #f4f4f4;
  color: #000000;
}

/* --- Notdienst-Button in der Kopfzeile --- */
.emergency-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 1.5rem;
  padding: 0.6rem 1.35rem;
  border: 2px solid #003366;
  border-radius: 40px;
  background-color: #003366;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease,
              transform 0.25s ease, box-shadow 0.25s ease;
}
.emergency-button:hover {
  background-color: #ffffff;
  color: #003366;
}

/* --- Mobiles Aufklappmenue --- */
#mobile-menu .submenu-mobile {
  list-style: none;
  margin: 0;
  padding: 0 0 0.5rem 1rem;
}
#mobile-menu .submenu-mobile a {
  font-size: 0.95rem;
  font-weight: 600;
  color: #555555;
  text-transform: none;
}
#mobile-menu .submenu-mobile a:hover {
  color: #000000;
}
#mobile-menu .mobile-emergency {
  margin-top: 0.75rem;
  color: #003366;
}

/* --- Klebende Notdienst-Leiste auf Mobilgeraeten --- */
.sticky-bar {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 68px;
  }

  .sticky-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.18);
  }

  .sticky-bar a {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 1.05rem 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    color: #ffffff;
  }

  .sticky-bar .bar-call {
    background-color: #ebb51e;
  }

  .sticky-bar .bar-emergency {
    background-color: #003366;
  }

  /* WhatsApp-Button ueber die klebende Leiste heben */
  .whatsapp-button {
    bottom: 84px;
  }

  .cookie-banner {
    bottom: 68px;
  }
}

/* --- FAQ: H3 als echte Ueberschrift um den Accordion-Button --- */
.accordion-question {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: inherit;
}

.accordion-header::after {
  content: '\f078'; /* Font Awesome chevron-down */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.8rem;
  color: #ebb51e;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header::after {
  transform: rotate(180deg);
}

.accordion-content p {
  margin: 0;
  line-height: 1.7;
}

/* --- Notdienst-Hinweisband (nutzt den bestehenden CTA-Baustein) --- */
.cta {
  background-color: #ebb51e;
  color: #ffffff;
  text-align: center;
  padding: 3rem 1rem;
}
.cta h2 {
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 1rem;
}
.cta p {
  font-size: 1.1rem;
  max-width: 780px;
  margin: 0 auto 1rem;
  line-height: 1.65;
}
.cta p a {
  color: #ffffff;
  font-weight: 700;
}
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 1.75rem;
}
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background-color: #ffffff;
  color: #ebb51e;
  border: 2px solid #ffffff;
  border-radius: 40px;
  padding: 0.9rem 1.9rem;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
  transition: background-color 0.25s ease, color 0.25s ease,
              transform 0.25s ease, box-shadow 0.25s ease;
}
.cta-button:hover {
  background-color: transparent;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}
.cta-button.is-outline {
  background-color: transparent;
  color: #ffffff;
  box-shadow: none;
}
.cta-button.is-outline:hover {
  background-color: #ffffff;
  color: #ebb51e;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

/* Kontaktdaten unter dem Button – jede Angabe in einer eigenen Zeile */
.cta-contact {
  list-style: none;
  margin: 2rem auto 0;
  padding: 1.5rem 1rem 0;
  max-width: 420px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 1rem;
  text-align: left;
}
.cta-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}
.cta-contact li:last-child {
  margin-bottom: 0;
}
.cta-contact i {
  flex-shrink: 0;
  width: 1.25rem;
  margin-top: 0.15rem;
  text-align: center;
  opacity: 0.85;
}
.cta-contact a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap; /* Telefonnummer nie mitten drin umbrechen */
}
.cta-contact a:hover {
  text-decoration: none;
}

/* --- Vierspaltiger Footer --- */
.site-footer {
  background-color: #eee;
  color: #333333;
  padding: 3rem 1rem 1.5rem;
  font-size: 0.9rem;
  text-align: left;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer-col h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ebb51e;
  margin: 0 0 0.9rem;
}

.footer-col p {
  margin: 0 0 0.4rem;
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
  line-height: 1.5;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid #d5d5d5;
  text-align: center;
  color: #555555;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 2.5rem 1rem 1.5rem;
  }
  .section-title {
    font-size: 1.7rem;
    margin-top: 3rem;
  }
  .hero-overlay h1 {
    font-size: 1.9rem;
  }
  .cta h2 {
    font-size: 1.6rem;
  }
}

/* ==========================================================================
   Teil 3: Bausteine der Leistungsseite
   Uebernommen aus dem <style>-Block der bisherigen unsereleistungen.html,
   damit die Seite ihr gewohntes Aussehen behaelt.
   ========================================================================== */

/* --- Schlichter Hero ohne Hintergrundbild (Bestand Leistungsseite) --- */
.hero-plain {
  padding: 4rem 1rem;
}
.hero-plain h1 {
  font-size: 2.5rem;
  margin: 0 auto 1rem;
  max-width: 900px;
}
.hero-plain p {
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 820px;
  margin: 0 auto;
}

/* --- Service-Karten (Bestand) --- */
.services-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 4rem 1rem;
  background-color: #ffffff;
  max-width: 1200px;
  margin: 0 auto;
}
.service {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.service h2,
.service h3 {
  display: flex;
  align-items: center;
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 1rem;
  color: #111;
}
.service h2 i,
.service h3 i {
  margin-right: 0.5rem;
  color: #ebb51e;
  flex-shrink: 0;
}
.service p {
  line-height: 1.7;
  margin: 0;
}
.service a {
  color: #b8890a;
  font-weight: 600;
}
.service a:hover {
  color: #000000;
}

/* --- Galerie "Leistungen live erleben" (Bestand) --- */
.leistungen-live {
  text-align: center;
  padding: 4rem 1rem;
  background: #ffffff;
  max-width: 1200px;
  margin: 0 auto;
}

/* Flex statt Grid: Bei einem festen Spaltenraster bliebe in einer
   unvollstaendigen letzten Zeile rechts eine Luecke. So teilen sich die
   verbleibenden Karten die volle Breite gleichmaessig auf –
   zwei Karten also 50/50. */
.leistungen-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.leistungen-gallery .img-card {
  flex: 1 1 280px;
  min-width: 0;
}

.img-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

button.img-card {
  width: 100%;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: inherit;
}

.img-card img {
  width: 100%;
  height: 220px; /* gleiche Hoehe wie Service-Kacheln */
  object-fit: cover;
  transition: transform 0.5s ease;
}

.img-card:hover img {
  transform: scale(1.08);
}

.img-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.img-card:focus-visible {
  outline: 3px solid #ebb51e;
  outline-offset: 4px;
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.95rem;
}

/* --- Lightbox (Bestand) --- */
.image-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.82);
  z-index: 10000;
}

.image-lightbox.active {
  display: flex;
}

.lightbox-panel {
  position: relative;
  max-width: min(1100px, 94vw);
  max-height: 92vh;
}

.lightbox-panel img {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.lightbox-close {
  position: absolute;
  top: -0.75rem;
  right: -0.75rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: #ebb51e;
  color: #000000;
  cursor: pointer;
  font-size: 1.7rem;
  font-weight: bold;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero-plain h1 {
    font-size: 1.9rem;
  }
  .hero-plain p {
    font-size: 1.05rem;
  }
}

/* ==========================================================================
   Teil 4: Textseiten (Impressum, Datenschutz)
   Uebernommen aus dem <style>-Block der bisherigen impressum.html /
   datenschutz.html, damit der Rechtstext unveraendert aussieht.
   ========================================================================== */

.content {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1rem;
  line-height: 1.6;
}

.content h2 {
  color: #000000;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.content h2:first-child {
  margin-top: 0;
}

.content h3 {
  color: #000000;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.content p {
  margin-bottom: 1rem;
}

.content ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.content li {
  margin-bottom: 0.35rem;
}

.content a {
  color: #b8890a;
  font-weight: 600;
}

.content a:hover {
  color: #000000;
}

/* --- Agenturhinweis am Ende des Impressums --- */
.agency-credit {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e2e2;
  color: #666666;
  font-size: 0.9rem;
}

/* ==========================================================================
   Teil 5: Bausteine der Leistungs-Unterseiten
   Alles Varianten bereits vorhandener Bloecke – keine neuen Farben,
   Schriften oder Abstandsmasse.
   ========================================================================== */

/* Bild rechts statt links – fuer abwechselnde Text-Bild-Abschnitte */
.team-intro.is-reversed .team-intro-image {
  order: 2;
}
.team-intro.is-reversed .team-intro-copy {
  order: 1;
}

@media (max-width: 768px) {
  /* Auf schmalen Bildschirmen steht das Bild immer oben */
  .team-intro.is-reversed .team-intro-image { order: 1; }
  .team-intro.is-reversed .team-intro-copy  { order: 2; }
}

/* Aufzaehlung im Textteil eines Bild-Text-Abschnitts */
.team-intro-copy ul {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.65;
}
.team-intro-copy li {
  margin-bottom: 0.55rem;
}
.team-intro-copy li::marker {
  color: #ebb51e;
}

/* Ueberschrift im Fliesstextblock */
.prose h2 {
  color: #111;
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 1rem;
}
.prose {
  padding-bottom: 2rem;
}

/* Abschlusshinweis unter einem Kartenraster */
.features .prose {
  padding-top: 2.5rem;
  padding-bottom: 0;
}

/* --- Bild-Text-Abschnitt mit viel Text ---------------------------------
   Der Standard aus Teil 1 bleibt unveraendert: Bild vertikal zentriert,
   festes Seitenverhaeltnis 3:2. Nur textlastige Abschnitte bekommen diese
   Variante – Textspalte breiter als die Bildspalte, Bild fuellt die volle
   Zeilenhoehe. Bewusst NICHT global, weil das Bild sonst auch dort gross
   und dominant wird, wo es nur begleitend ist. */
.team-intro.is-tall {
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  align-items: stretch;
}

.team-intro.is-tall .team-intro-image {
  display: flex;
}

.team-intro.is-tall .team-intro-image img {
  aspect-ratio: auto;
  height: 100%;
  min-height: 340px;
  object-position: center;
}

@media (max-width: 768px) {
  .team-intro.is-tall {
    grid-template-columns: 1fr;
  }
  .team-intro.is-tall .team-intro-image img {
    aspect-ratio: 3 / 2;
    height: auto;
    min-height: 0;
  }
}

/* Etwas ruhigerer Rhythmus in der Aufzaehlung */
.team-intro-copy ul {
  padding-left: 1.15rem;
}
.team-intro-copy li {
  margin-bottom: 0.7rem;
  padding-left: 0.15rem;
}

/* --- Fliesstext-Abschnitt als eigener Block --------------------------- */
.prose-section {
  background-color: #f4f4f4;
  padding: 4rem 1rem;
}
.prose-section .section-title {
  margin: 0 0 1.5rem;
  padding: 0;
}
.prose-section .prose {
  padding: 0 1rem;
}

/* --- Ratgeber-Artikel --------------------------------------------------- */
.article-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1rem 1rem;
  font-size: 1.05rem;
  line-height: 1.75;
}
.article-body h2 {
  color: #111;
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 2.75rem 0 1rem;
}
.article-body h2:first-child {
  margin-top: 0;
}
.article-body p {
  margin: 0 0 1.15rem;
}
.article-body a {
  color: #b8890a;
  font-weight: 600;
}
.article-body a:hover {
  color: #000000;
}

/* Verantwortlich fuer den Inhalt */
.author-note {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
  color: #666666;
  font-size: 0.9rem;
  line-height: 1.6;
}
.author-note span {
  display: block;
  max-width: 100%;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e2e2;
}

/* Dreispaltiges Kartenraster – fuer Listen mit 6 Punkten, damit nicht
   5 Karten in Reihe eins und eine einzelne in Reihe zwei stehen. */
.features-grid.is-3col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .features-grid.is-3col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .features-grid.is-3col { grid-template-columns: 1fr; }
}

/* Karte ohne Ueberschrift: Symbol vor dem Text */
.card.is-plain {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.card.is-plain i {
  color: #ebb51e;
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* Zweispaltiges Service-Raster – fuer genau vier Karten, damit nicht
   drei in Reihe eins und eine einzelne in Reihe zwei stehen. */
.services-section.is-2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 768px) {
  .services-section.is-2col { grid-template-columns: 1fr; }
}

/* Zweispaltiges Kartenraster – fuer genau vier Karten (2+2). */
.features-grid.is-2col-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 768px) {
  .features-grid.is-2col-cards { grid-template-columns: 1fr; }
}

/* Kartenraster ohne Luecke – fuer Listen mit 5 Punkten.
   Wie bei der Galerie: Flex statt Grid, damit eine unvollstaendige letzte
   Zeile die Restbreite gleichmaessig unter sich aufteilt statt eine Luecke
   zu lassen. Ergibt bei fuenf Karten 3 + 2. */
.features-grid.is-fill {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.features-grid.is-fill > .card {
  flex: 1 1 380px;
  min-width: 0;
}

/* ==========================================================================
   Teil 6: Bausteine der Kontakt- und Ueber-uns-Seite
   1:1 aus den <style>-Bloecken von kontakt.html und ueberuns.html
   uebernommen, damit beide Seiten unveraendert aussehen.
   ========================================================================== */

/* --- Kontaktseite --- */
.contact-section {
  padding: 4rem 1rem;
  max-width: 800px;
  margin: 0 auto;
}
.contact-section h2 { margin-bottom: 1rem; color: #ebb51e; }
.contact-info p { margin: 0.5rem 0; }
.contact-info i { color: #ebb51e; margin-right: 0.5rem; }
.contact-info a { color: #333; text-decoration: none; }
.contact-info a:hover { color: #000; text-decoration: underline; }

.contact-section form { margin-top: 2rem; display: flex; flex-direction: column; }
.contact-section label { margin: 1rem 0 0.5rem; display: block; }
.contact-section input,
.contact-section textarea { padding: 0.75rem; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; }
.contact-section button {
  margin-top: 1rem; padding: 0.75rem; background-color: #ebb51e; color: white;
  border: none; border-radius: 4px; font-size: 1rem; font-weight: bold; cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.contact-section button:hover { background-color: #d4a514; transform: translateY(-1px); }

.input-wrapper { margin-bottom: 1rem; }
.field-icon { position: relative; }
.field-icon i { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: #aaa; }
.field-icon input,
.field-icon select {
  width: 100%; padding: 0.75rem 0.75rem 0.75rem 2.5rem;
  border: 1px solid #ccc; border-radius: 4px; font-size: 1rem;
}
.contact-section textarea {
  width: 100%; padding: 0.75rem; border: 1px solid #ccc;
  border-radius: 4px; font-size: 1rem; resize: vertical;
}
.fade-in { opacity: 0; transform: translateY(20px); animation: fadeInUp 0.8s ease forwards; }

/* --- Ueber-uns-Seite --- */
.about-section {
  max-width: 1000px; margin: 3rem auto; padding: 0 1rem;
  display: grid; gap: 2rem;
}
.about-section .box {
  background: #fff; border-radius: 8px; padding: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  opacity: 0; transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}
.about-section .box h2 { color: #ebb51e; margin-top: 0; margin-bottom: 1rem; }

.team-photo {
  margin: 0; opacity: 0; transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards; animation-delay: 0.15s;
}
.team-photo img {
  width: 100%; aspect-ratio: 3 / 2; border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.16); display: block;
  object-fit: cover; object-position: center;
}
.team-photo figcaption { color: #555; font-size: 0.95rem; line-height: 1.5; margin-top: 0.75rem; }

.werte { padding: 3rem 1rem; max-width: 1000px; margin: 0 auto; }
.werte h2 { text-align: center; color: #000000; }
.werte-boxes { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; margin-top: 2rem; }
.werte-boxes div { flex: 1 1 250px; text-align: center; }
.werte-boxes i { font-size: 2rem; color: #ebb51e; }

.einsatz-section {
  max-width: 1000px; margin: 0 auto 3rem; padding: 0 1rem;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem; align-items: center;
}
.einsatz-section img {
  width: 100%; height: 520px; border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12); object-fit: cover; object-position: center;
}
.einsatz-copy h2 { color: #ebb51e; margin-top: 0; }
.einsatz-copy p { line-height: 1.6; }

.referenzen { padding: 3rem 1rem; background-color: #f4f4f4; }
.referenzen h2 { text-align: center; color: #000000; }
.slider-wrapper {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 1rem 0;
}
.slider-track { display: flex; gap: 1rem; padding: 0.5rem; width: max-content; }
.slider-track img {
  flex: 0 0 auto; width: 280px; height: auto; border-radius: 8px;
  object-fit: cover; scroll-snap-align: start; background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .einsatz-section { grid-template-columns: 1fr; }
  .einsatz-section img { height: 300px; }
}

/* ==========================================================================
   Teil 7: Korrekturen
   ========================================================================== */

/* --- Aktiver Menuepunkt auf den Buttons ------------------------------------
   Die Bestandsregel "nav a.active { color: #003366 }" faerbt auf dem
   dunkelblauen Notdienst-Button die Schrift in derselben Farbe wie den
   Hintergrund – der Text verschwindet. Auf beiden Buttons bleibt die
   Schrift deshalb weiss und wird stattdessen unterstrichen. */
nav a.emergency-button.active,
nav a.call-button.active {
  color: #ffffff;
  border-bottom-width: 2px;
  border-bottom-style: solid;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
nav a.emergency-button.active {
  background-color: #003366;
  border-color: #003366;
}
nav a.call-button.active {
  background-color: #ebb51e;
  border-color: #ebb51e;
}
nav a.emergency-button.active:hover {
  background-color: #ffffff;
  color: #003366;
}
nav a.call-button.active:hover {
  background-color: #ffffff;
  color: #ebb51e;
}

/* --- Symbole in Karten ohne Ueberschrift ------------------------------------
   Vorher: kleines Symbol, oben am Kartenrand ausgerichtet, wirkte dadurch
   losgeloest vom Text. Jetzt groesser und auf der ersten Textzeile sitzend. */
.card.is-plain {
  gap: 1rem;
  align-items: flex-start;
}
.card.is-plain i {
  font-size: 1.5rem;
  width: 1.6rem;
  margin-top: 0;
  line-height: 1.55;   /* gleiche Zeilenhoehe wie der Text daneben */
  text-align: center;
}
.card.is-plain p {
  margin: 0;
  line-height: 1.55;
}

/* --- Bewerbungsseite (1:1 aus bewerbung.html) --- */
.bewerbung-section { max-width: 800px; margin: 3rem auto; padding: 1rem; }
.bewerbung-section h2 { color: #ebb51e; }
.bewerbung-section form { display: flex; flex-direction: column; gap: 1rem; }
.bewerbung-section label { font-weight: bold; }
.bewerbung-section input,
.bewerbung-section textarea,
.bewerbung-section select {
  padding: 0.75rem; border: 1px solid #ccc; border-radius: 4px;
  font-size: 1rem; width: 100%;
}
.bewerbung-section button {
  padding: 0.75rem; background-color: #ebb51e; color: white; border: none;
  border-radius: 4px; font-weight: bold; cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.bewerbung-section button:hover { background-color: #d4a514; transform: translateY(-1px); }
