
/* =========================================================
   custom.css — Dreamweaver-kompatibel (keine var(), keine …)
   Clemente Website
   ========================================================= */

/* ---------- Globale Basen ---------- */
html, body { height: 100%; margin: 0; }
.text-muted { color: #6c757d !important; }


/* ----------------------------
   Navigation – Kanzlei-Stil
   ---------------------------- */

.navbar {
  background-color: #f8fafc;  /* sehr helles Grau-Blau, wirkt professionell */
  border-bottom: 1px solid #e2e8f0;
  font-family: 'Lato', sans-serif;
  font-weight: 500;
  padding: 0.75rem 1rem;
}

.navbar-brand {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  color: #1a202c;
  font-size: 1.25rem;
  text-decoration: none;
}

.navbar-brand:hover {
  color: #2b6cb0; /* dezentes Kanzlei-Blau beim Hover */
}

/* Navigationslinks */
.navbar-nav .nav-link {
  color: #2d3748; /* ruhiges Dunkelgrau */
  font-size: 1rem;
  padding: 0.5rem 1rem;	
  transition: all 0.2s ease-in-out;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #2b6cb0; /* gleiche Farbe wie CTA-Button */
  background-color: rgba(43,108,176,0.08); /* dezente Hinterlegung */
  border-radius: 0.375rem;
  text-decoration: none;
}

/* Aktive Seite */
.navbar-nav .nav-link.active {
  color: #2b6cb0;
  font-weight: 600;
  border-bottom: 2px solid #2b6cb0;
}

/* Dropdown-Menü */
.dropdown-menu {
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.dropdown-item {
  font-family: 'Lato', sans-serif;
  color: #2d3748;
  transition: background-color 0.2s ease-in-out;
}

.dropdown-item:hover {
  background-color: #edf2f7;
  color: #2b6cb0;
}

.navbar-nav .nav-link {
  position: relative;
}

/* ---------- Breadcrumb ---------- */
/* HTML:
<nav class="breadcrumb-wrap border-bottom">
  <div class="container px-3 px-md-4 py-1">…</div>
</nav>
*/
.breadcrumb-wrap {
  background: #fff;
  border-bottom: 1px solid #dee2e6;
  margin-top: -0.25rem; /* rückt näher an die Navi */
}
.breadcrumb-wrap .breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 0;
}
.breadcrumb-wrap .breadcrumb a {
  color: #2f855a;
  text-decoration: none;
}
.breadcrumb-wrap .breadcrumb a:hover { text-decoration: underline; }


.quellenbox summary {
  font-size: 0.9rem;         /* kleiner als Standard */
  font-weight: 500;          /* etwas leichter */
  color: #495057;            /* dezentes Grau */
  cursor: pointer;
}

.quellenbox summary:hover {
  color: #0d6efd;            /* leichte blaue Hervorhebung bei Hover */
}
/* ---------- Content-Karten ---------- */
.content-wrap { max-width: 980px; margin: 0 auto; }
.content-card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 1rem;
  padding: 1.75rem 2rem;
  box-shadow: 0 .125rem .75rem rgba(0,0,0,.05);
  margin-bottom: 1.25rem;
}
/* ---------- Content-Karten ---------- */

.content-card:last-of-type { margin-bottom: 1.5rem; }
main .content-wrap {
  padding-top: 1.5rem;   /* oder 2rem für etwas mehr Luft */
}


/* Falls der Container selbst noch viel Bottom-Margin hat */
main > .container:last-of-type { margin-bottom: 0.5rem; }

/* ---------- CTA-Band (vollbreit, dunkler, harmonisch) ---------- */
/* HTML: steht NACH </main>, vollbreit!
<section class="cta-band text-center"><div class="container">…</div></section>
*/

/* CTA-Band – seriös, kontrastreich, ruhig */
.cta-band {
background-color: #f8fafc; /* gedecktes Mittelgrau-Blau */
  color: #1a202c;
  border-top: 1px solid #a0aec0;
  border-bottom: 1px solid #a0aec0;
}

.cta-band h3 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  color: #1a202c;
}

.cta-band p {
  font-family: 'Lato', sans-serif;
  font-size: 1.1rem;
  color: #2d3748;
}

.cta-band .btn-primary {
  background-color: #2b6cb0;   /* seriöses Kanzlei-Blau */
  border: none;
  font-family: 'Lato', sans-serif;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

.cta-band .btn-primary:hover {
  background-color: #2c5282;   /* dunklerer Hover-Effekt */
  transform: translateY(-1px);
}

.btn-group-custom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;              /* Abstand zwischen Buttons */
  justify-content: center; /* zentriert */
}

.btn-group-custom .btn {
  flex: 1 1 220px;        /* gleichmäßig skalieren */
  text-align: center;
  padding: 0.9rem 1.4rem;
  border-radius: 10px;
}

/* Container für zwei nebeneinanderstehende Buttons */
.cta-pair {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;            /* Abstand zwischen den Buttons */
  margin-top: 1.5rem;   /* gleicher Abstand wie mt-3 */
}

/* Button-Stil angleichen an „Erstberatung buchen“ */
.btn-cta {
  flex: 1 1 300px;         /* gleiche Breite, aber flexibel */
  background-color: #2b3a9b; /* identisch mit .btn-darkblue */
  color: #fff;
  font-weight: 600;
  font-size: 1.125rem;     /* exakt gleiche Schriftgröße wie „Erstberatung buchen“ */
  line-height: 1.3;
  text-align: center;
  padding: 0.75rem 1.25rem; /* gleiche Innenabstände */
  border-radius: 0.5rem;    /* identisch zur gelben Schaltfläche */
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.2s ease;
}

.btn-cta:hover {
  background-color: #3248b3; /* leicht heller beim Hover */
  transform: translateY(-2px);
}

/* Mobile Darstellung: Buttons untereinander */
@media (max-width: 768px) {
  .cta-pair {
    flex-direction: column;
  }
  .btn-cta {
    flex: 1 1 100%;
  }
}

/* Falls du Bootstrap verwendest: überschreibe nur die Weite */
.btn-group-custom .btn.w-100 { width: auto !important; }

/* ---------- Footer kompakt ---------- */
.site-footer {
  background:  #ffffff;
padding: 1.25rem 0 1rem;       /* oben minimal mehr Luft */
  border-top: 1px solid #d4dbe3; /* Linie passend zum CTA */
  color: #495057;
 
  margin: 0;
  font-size: .95rem;
}
 

.site-footer a { color: #2f855a; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { margin-bottom: .25rem; }
.site-footer p:last-child { margin-bottom: 0; }

/* Rechts unten fixiert */
#btn-back-to-top {
  position: fixed;
  bottom: 24px;       /* ⬅️ statt top: 50% */
  right: 24px;        /* rechtsbündig unten */
  z-index: 1030;
  width: 48px;
  height: 48px;
  padding: 0;
  display: none;       /* wird per JS eingeblendet, wenn Seite scrollbar ist */
  align-items: center;
  justify-content: center;
  line-height: 1;
  border-radius: 50%;
}

#btn-back-to-top:hover {
  background-color: #198754;
  color: #fff;
}


@media (max-width: 576px) {
  #btn-back-to-top {
    bottom: 16px;
    right: 16px;
  }
}



#btn-back-to-top:hover {
  background-color: #198754;
  color: #fff;
}

/* Optional: auf sehr kleinen Screens etwas nach unten setzen */
@media (max-width: 576px) {
  #btn-back-to-top {
    right: 12px;
  }
}

/* Barrierearmut: Animationen reduzieren, wenn gewünscht */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
}


/* ---------- Responsive Feinschliff ---------- */
@media (max-width: 576px) {
  .content-card { padding: 1.25rem 1.25rem; }
  .cta-band {
    padding: 2rem 0;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
  }
}

/* ---------- Druck ---------- */
@media print {
  .navbar, .back-to-top, .carousel, .cta-band { display: none !important; }
  a[href]:after { content: " (" attr(href) ")"; font-size: 90%; }
}
/* --- Bild rechts mit Textumfluss + zentrierte, kleine Bildunterschrift --- */
.figure-right { 
  float: right;
  max-width: 40ch;            /* begrenzt Zeilenlänge für guten Satz */
  margin: 0 0 1rem 1rem;      /* Abstand links/unten */
}
.figure-right img {
  display: block;
  width: 100%;
  height: auto;
}
.figure-right .caption-center-small {
  display: block;
  text-align: center;
  font-size: 0.8rem;          /* kleinerer Schriftzug */
  margin-top: 0.25rem;
  /* Farbe kommt über .text-muted aus custom.css */
}

@media (max-width: 640px) {
  .figure-right {
    float: none;
    max-width: 100%;
    margin: 0 0 1rem 0;
  }
}
