/* ==========================================================================
   eigene_stile.css (bereinigt)
   ==========================================================================
   Ziel:
   - Aufgeräumte Overrides zu main.css / Bootstrap
   - Mobile bleibt wie bisher, Desktop (>= 992px) mit:
     * Top-Services zweispaltig, linksbündig, Bullet links vor jedem Eintrag
     * Logo größer + näher an den Menüblock
   ========================================================================== */

/* --------------------------------------------------------------
   Textfarbe bei Markierung
-------------------------------------------------------------- */
html ::selection,
html ::-moz-selection {
  background: #1c8f34 !important;
  color: #fff !important;
}

/* --------------------------------------------------------------
   TYPO3 Content-Frames: clearfix
-------------------------------------------------------------- */
.frame::after,
.frame-default::after {
  content: "";
  display: block;
  clear: both;
}

/* --------------------------------------------------------------
   Buttons (Bootstrap Override)
-------------------------------------------------------------- */
.btn-primary {
  background-color: #1d9035;
  border: none;
  margin: 10px 10px 10px 0;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #44c45e;
  border: none;
  box-shadow: none;
  margin: 10px 10px 10px 0;
}

/* Optional: Fehlernachrichten oder Hinweise */
form .error-message {
  color: red;
  font-size: 0.9em;
  margin-top: -5px;
}

/* ===================================================================
   TOP SERVICES (oberes zweizeiliges Leistungsmenü)
   - Mobile: wie bisher gestapelt
   - Desktop: zweispaltig + Bullets links
   =================================================================== */
.top-services {
  padding: 1.25rem 0;
}

.services-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

/* Spalten (Basis) */
.services-col-left,
.services-col-right {
  text-align: left;
}

/* Listen */
.services-list,
.services-dot-list {
  margin: 0;
  padding: 0;
  list-style: none; /* Mobile bleibt ohne Standard-Bullets */
}

.services-item,
.services-dot-list li {
  margin: 0;
  padding: 0.15rem 0;
  font-size: 0.95rem;
  line-height: 1.2;
}

.services-link {
  color: #424242;
  text-decoration: none;
}

.services-link:hover,
.services-link:focus {
  text-decoration: underline;
}

/* Mobile (bis 768px): gestapelt, Punktspalte aus */
@media (max-width: 768px) {
  .services-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .services-col-center {
    display: none;
  }

  .services-col-left,
  .services-col-right {
    padding: 0;
    width: 100%;
  }

  .services-list {
    margin-bottom: 1rem;
  }
}

/* ===================================================================
   Kontaktzeile unter Header / über Hauptmenü
   =================================================================== */
.contact-bar {
  padding: 0.35rem 0;
  font-family: "Lato", sans-serif;
  font-size: 1rem;
  color: var(--brand-green);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background-color: #fff;
}

.contact-bar-desktop { display: block; }
.contact-bar-mobile  { display: none; }

.contact-icon-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 1rem;
  text-decoration: none;
  color: var(--brand-green);
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-icon-link i {
  font-size: 1rem;
}

.contact-icon-link:hover,
.contact-icon-link:focus {
  text-decoration: underline;
}

/* Mobile: nur kompakt (Icons + Telefon / Kontakt) */
@media (max-width: 991.98px) {
  .contact-bar { text-align: center; }
  .contact-bar-desktop { display: none; }
  .contact-bar-mobile {
    display: inline-flex;
    justify-content: center;
    gap: 1.75rem;
  }
}

/* ===================================================================
   Einheitliche Inhaltsbreite
   =================================================================== */
.main-wrapper {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding-inline: 1rem;
}

/* ===================================================================
   Navbar Anpassungen
   =================================================================== */

/* Mobil: Menü-Button im grünen Balken zentrieren */
@media (max-width: 991.98px) {
  .navbar-custom .main-wrapper {
    justify-content: center;
  }
  .navbar-custom .navbar-toggler {
    margin-left: 0;
    margin-right: 0;
  }
}

/* Desktop: Hauptmenü zentrieren */
@media (min-width: 992px) {
  .navbar-custom .navbar-collapse { justify-content: center; }
  .navbar-custom .navbar-nav {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ===================================================================
   DESKTOP-OVERRIDES (ab 992px)
   =================================================================== */
@media (min-width: 992px) {

  /* Header: weniger Luft oben/unten (statt py-4 optisch kompakter) */
  header .main-wrapper.py-4 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }

  /* Header-Row: Spalten vertikal zentrieren + Gutter reduzieren */
  .row.top-header {
    align-items: center !important;
    --bs-gutter-x: 0.5rem;
  }

  /* Logo größer + näher an den Menüblock (58/42) */
  .top-header .logo-column {
    flex: 0 0 58%;
    max-width: 58%;
    display: flex;
    justify-content: flex-end;
    padding-right: 0.25rem !important;
  }

  .top-header .textblock-column {
    flex: 0 0 42%;
    max-width: 42%;
    padding-left: 0.25rem !important;
  }

  header .logo-img {
    width: 100%;
    max-width: 650px;   /* bei Bedarf 680–750 erhöhen */
    height: auto;
    display: block;
  }

  /* Top-Services: wie Ziel.jpg -> 2 Spalten, linksbündig, Bullets links */
  .top-services .services-col-center { display: none !important; }

  .top-services .services-col-left,
  .top-services .services-col-right {
    text-align: left !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .top-services .services-list {
    list-style: disc !important;
    list-style-position: outside;
    padding-left: 1.1rem !important;
    margin: 0;
  }

  .top-services .services-item {
    padding: 0.12rem 0;
    line-height: 1.15;
  }

  /* Falls eine Fake-Punktliste noch vorhanden ist: deaktivieren */
  .top-services .services-dot-list li::before {
    content: none !important;
  }

  /* Kontaktzeile Desktop: Block zentriert und kompakt */
  .contact-bar .main-wrapper {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .contact-bar-desktop {
    display: inline-block !important;
    width: auto !important;
    text-align: center !important;
    white-space: nowrap;
    font-weight: 600;
  }

  .contact-bar-desktop img {
    margin: 0 2.5rem;
    vertical-align: middle;
  }
}



/* =====================================================
   DESKTOP: Weißraum über & unter dem Logo weiter reduzieren
   ===================================================== */
@media (min-width: 992px) {

  /* Header insgesamt noch kompakter */
  header .main-wrapper.py-4 {
    padding-top: 0.4rem !important;
    padding-bottom: 0.4rem !important;
  }

  /* Logo-Spalte: keine zusätzliche vertikale Luft */
  .top-header .logo-column {
    align-items: center;
  }

  /* Logo selbst: kein Zeilenabstand, kein extra Whitespace */
  header .logo-img {
    display: block;
    line-height: 0;
  }
}


@media (min-width: 992px) {
  .header-wrapper.py-4{
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
  }

  .header-wrapper .logo-img{
    display:block;
  }
}



/* ============================================================
   DESKTOP FEINTUNING HEADER (Rechtsbündigkeit Top-Services)
   ============================================================ */
@media (min-width: 992px) {

  .top-services {
    display: flex;
    justify-content: flex-end;
  }

  .top-services .services-row {
    width: fit-content;
    margin-left: auto;
    justify-content: flex-end !important;
    margin-right: -6px; /* exakte Ausrichtung mit info@kpw.eu */
  }

  header .logo-img {
    max-width: 700px;
  }
}
