.kanzlei-slideshow {
  position: relative;
  width: min(980px, 100%);
  aspect-ratio: 980 / 500;
  margin: 0 auto 0.5rem;
  overflow: hidden;
}

.kanzlei-slideshow .kanzlei-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: kanzleiFade 21s infinite;
}

.kanzlei-slideshow .slide-1 {
  animation-delay: 0s;
}

.kanzlei-slideshow .slide-2 {
  animation-delay: 7s;
}

.kanzlei-slideshow .slide-3 {
  animation-delay: 14s;
}

@keyframes kanzleiFade {
  0% {
    opacity: 0;
  }

  5% {
    opacity: 1;
  }

  30% {
    opacity: 1;
  }

  35% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kanzlei-slideshow .kanzlei-slide {
    animation: none;
    opacity: 0;
  }

  .kanzlei-slideshow .slide-1 {
    opacity: 1;
  }
}
/* Kopfbereich an der 980px-Sliderbreite ausrichten */
.container-header .container-nav,
.container-header .navbar-brand {
    width: min(980px, calc(100% - 2rem));
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}
/* =====================================================
   STARTSEITE – Inhaltsgestaltung
   ===================================================== */

/* Einleitung */
.kanzlei-intro {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

/* Rechtsgebiete */
.kanzlei-bereiche {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0;
}
.kanzlei-bereich-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.kanzlei-bereich-link > div {
    height: 100%;
    background: #f5f6f7;
    border-left: 4px solid #274966;
    padding: 1.5rem 1.7rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.kanzlei-bereich-link:hover > div,
.kanzlei-bereich-link:focus > div {
    background: #eef1f3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.kanzlei-bereich-link h2 {
    margin-top: 0;
    margin-bottom: 0.6rem;
    color: #274966;
}

.kanzlei-bereich-link p {
    margin-bottom: 0;
}

/* Persönliche Beratung */
.kanzlei-kontakt {
    margin-top: 2.5rem;
    padding: 2rem;
    background: #274966;
    color: #fff;
}

.kanzlei-kontakt h2 {
    margin-top: 0;
    color: #fff;
}

.kanzlei-kontakt a {
    color: #fff;
    text-decoration: underline;
}

.kanzlei-kontakt a:hover {
    color: #ddd;
}

/* Smartphone */
@media (max-width: 700px) {
    .kanzlei-bereiche {
        grid-template-columns: 1fr;
    }

    .kanzlei-kontakt {
        padding: 1.4rem;
    }
}
.kanzlei-kontakt {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
}

.kanzlei-kontakt-daten p:first-child {
    margin-top: 0;
}

@media (max-width: 700px) {
    .kanzlei-kontakt {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}
/* Einstieg Startseite */

.kanzlei-einstieg {
    margin: 0.5rem 0 2rem;
}

.kanzlei-einstieg h1 {
    color: #274966;
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 1.4rem;
    padding-bottom: 0.7rem;
    border-bottom: 2px solid #274966;
}

.kanzlei-einstieg .kanzlei-intro {
    font-size: 1.15rem;
    line-height: 1.7;
}
.kanzlei-content {
    width: min(980px, calc(100% - 2rem));
    margin-left: auto;
    margin-right: auto;
}
/* Abstand unter dem Banner verkleinern */
.container-banner {
    margin-bottom: 0.5rem;
}

.container-main {
    padding-top: 0.5rem;
}
/* Abstand Slider -> Hauptinhalt */
.site-grid {
    row-gap: 0.5rem;
}
/* Startseite: Abstand Slider -> Inhalt gezielt steuern */

body.itemid-101 .kanzlei-slideshow {
    margin-bottom: 0;
}

body.itemid-101 .site-grid {
    row-gap: 0;
}

body.itemid-101 .container-component main {
    margin-top: 0;
}

body.itemid-101 .kanzlei-einstieg {
    margin: 1rem 0 2rem;
}
/* =========================================
   RECHTSGEBIETE
   ========================================= */

.rechtsgebiete-content {
    width: min(980px, calc(100% - 2rem));
    margin-left: auto;
    margin-right: auto;
}

.rechtsgebiete-einstieg {
    margin: 1.5rem 0 2rem;
}

.rechtsgebiete-einstieg h1 {
    color: #274966;
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 1.4rem;
    padding-bottom: 0.7rem;
    border-bottom: 2px solid #274966;
}

.rechtsgebiete-einstieg p {
    line-height: 1.7;
}

.rechtsgebiete-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0 3rem;
}

.rechtsgebiet-box {
    background: #f5f6f7;
    border-left: 4px solid #274966;
    padding: 1.5rem 1.7rem;
}

.rechtsgebiet-box h2 {
    margin-top: 0;
    margin-bottom: 0.7rem;
    color: #274966;
    font-size: 1.4rem;
}

.rechtsgebiet-box p {
    margin-bottom: 0;
    line-height: 1.6;
}

.rechtsgebiet-schwerpunkt {
    background: #eef1f3;
    border-left-width: 6px;
}

@media (max-width: 700px) {
    .rechtsgebiete-grid {
        grid-template-columns: 1fr;
    }
}
/* Feinschliff Rechtsgebiete */

.rechtsgebiete-grid {
    gap: 1.25rem;
}

.rechtsgebiet-box {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rechtsgebiet-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.rechtsgebiet-box:last-child {
    grid-column: 1 / -1;
}
/* =========================================
   ÜBER MICH
   ========================================= */

.uebermich-content {
    width: min(980px, calc(100% - 2rem));
    margin-left: auto;
    margin-right: auto;
}

.uebermich-einstieg {
    margin: 1.5rem 0 2rem;
}

.uebermich-einstieg h1 {
    color: #274966;
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 1.4rem;
    padding-bottom: 0.7rem;
    border-bottom: 2px solid #274966;
}

.uebermich-einstieg p {
    font-size: 1.1rem;
    line-height: 1.7;
}

.uebermich-bereich {
    margin: 2rem 0 2.5rem;
}

.uebermich-bereich h2 {
    color: #274966;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}

.vita-liste {
    border-left: 4px solid #274966;
    background: #f5f6f7;
    padding: 1rem 1.5rem;
}

.vita-eintrag {
    display: grid;
    grid-template-columns: 145px 1fr;
    gap: 1.5rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid #ddd;
}

.vita-eintrag:last-child {
    border-bottom: none;
}

.vita-jahr {
    font-weight: 600;
    color: #274966;
}

.vita-text {
    line-height: 1.5;
}

.uebermich-hinweis {
    margin-top: 1.2rem;
}

.uebermich-persoenlich {
    background: #eef1f3;
    border-left: 4px solid #274966;
    padding: 1.5rem 1.7rem;
}

.uebermich-persoenlich h2 {
    margin-top: 0;
}

.uebermich-persoenlich p {
    line-height: 1.7;
}

.mitgliedschaften-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.mitgliedschaft-box {
    background: #f5f6f7;
    border-left: 4px solid #274966;
    padding: 1.4rem 1.5rem;
}

.mitgliedschaft-box h3 {
    color: #274966;
    margin-top: 0;
    font-size: 1.15rem;
}

.mitgliedschaft-box p {
    line-height: 1.5;
}

@media (max-width: 800px) {
    .mitgliedschaften-grid {
        grid-template-columns: 1fr;
    }

    .vita-eintrag {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }
}
/* =========================================
   KOSTEN
   ========================================= */

.kosten-content {
    width: min(980px, calc(100% - 2rem));
    margin-left: auto;
    margin-right: auto;
}

.kosten-einstieg {
    margin: 1.5rem 0 2rem;
}

.kosten-einstieg h1 {
    color: #274966;
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 1.4rem;
    padding-bottom: 0.7rem;
    border-bottom: 2px solid #274966;
}

.kosten-einstieg p,
.kosten-bereich p,
.kosten-box p {
    line-height: 1.7;
}

.kosten-bereich {
    margin: 2rem 0;
}

.kosten-bereich h2,
.kosten-box h2,
.kosten-erstberatung h2 {
    color: #274966;
    font-size: 1.5rem;
    margin-top: 0;
}

.kosten-hinweis {
    margin: 1.5rem 0;
    padding: 1.2rem 1.5rem;
    background: #eef1f3;
    border-left: 4px solid #274966;
    font-size: 1.05rem;
}

.kosten-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin: 2rem 0;
}

.kosten-box {
    background: #f5f6f7;
    border-left: 4px solid #274966;
    padding: 1.5rem 1.7rem;
}

.kosten-erstberatung {
    margin: 2.5rem 0 3rem;
    padding: 1.7rem 2rem;
    background: #274966;
    color: #fff;
}

.kosten-erstberatung h2 {
    color: #fff;
}

.kosten-erstberatung p {
    line-height: 1.7;
}

@media (max-width: 700px) {
    .kosten-grid {
        grid-template-columns: 1fr;
    }

    .kosten-erstberatung {
        padding: 1.4rem;
    }
}
/* =========================================
   KONTAKT & SERVICE
   ========================================= */

.kontakt-content {
    width: min(980px, calc(100% - 2rem));
    margin-left: auto;
    margin-right: auto;
}

.kontakt-einstieg {
    margin: 1.5rem 0 2rem;
}

.kontakt-einstieg h1 {
    color: #274966;
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 1.4rem;
    padding-bottom: 0.7rem;
    border-bottom: 2px solid #274966;
}

.kontakt-einstieg p {
    font-size: 1.1rem;
    line-height: 1.7;
}

.kontakt-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin: 2rem 0;
}

.kontakt-box {
    background: #f5f6f7;
    border-left: 4px solid #274966;
    padding: 1.5rem 1.7rem;
}

.kontakt-box h2,
.kontakt-anfahrt h2 {
    color: #274966;
    font-size: 1.5rem;
    margin-top: 0;
}

.kontakt-box p,
.kontakt-anfahrt p {
    line-height: 1.7;
}

.kontakt-wichtig {
    font-weight: 600;
}

.kontakt-box a {
    color: #274966;
    font-weight: 600;
}

.kontakt-anfahrt {
    margin: 2rem 0;
}

.kontakt-anfahrt-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.25rem;
}

.kontakt-anfahrt-grid > div {
    background: #f5f6f7;
    border-left: 4px solid #274966;
    padding: 1.5rem 1.7rem;
}

.kontakt-anfahrt-grid h3 {
    color: #274966;
    margin-top: 0;
}


@media (max-width: 700px) {
    .kontakt-grid,
    .kontakt-anfahrt-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================
   FOOTER
   ========================================= */

.kanzlei-footer-links {
    text-align: center;
    padding: 1rem 0;
    font-size: 0.95rem;
}

.kanzlei-footer-links a {
    color: inherit;
    text-decoration: none;
}

.kanzlei-footer-links a:hover,
.kanzlei-footer-links a:focus {
    text-decoration: underline;
}

.kanzlei-footer-links span {
    margin: 0 0.6rem;
}
/* Footer kompakter */
.container-footer {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.kanzlei-footer-links {
    padding: 0;
}
/* =========================================
   IMPRESSUM
   ========================================= */

.impressum-content {
    width: min(980px, calc(100% - 2rem));
    margin-left: auto;
    margin-right: auto;
}

.impressum-einstieg {
    margin: 1.5rem 0 2rem;
}

.impressum-einstieg h1 {
    color: #274966;
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 1.4rem;
    padding-bottom: 0.7rem;
    border-bottom: 2px solid #274966;
}

.impressum-bereich {
    margin: 2rem 0 2.5rem;
}

.impressum-bereich h2 {
    color: #274966;
    font-size: 1.5rem;
    margin: 0 0 1rem;
}

.impressum-bereich h3 {
    color: #274966;
    font-size: 1.15rem;
    margin-top: 0;
    margin-bottom: 0.7rem;
}

.impressum-bereich p,
.impressum-bereich li {
    line-height: 1.7;
}

.impressum-box {
    background: #f5f6f7;
    border-left: 4px solid #274966;
    padding: 1.4rem 1.5rem;
}

.impressum-box p:last-child {
    margin-bottom: 0;
}

.impressum-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.impressum-hinweis {
    background: #eef1f3;
    border-left: 4px solid #274966;
    padding: 1.4rem 1.5rem;
}

.impressum-hinweis p:first-child {
    margin-top: 0;
}

.impressum-hinweis p:last-child {
    margin-bottom: 0;
}

@media (max-width: 700px) {
    .impressum-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================
   DATENSCHUTZ
   ========================================= */

.datenschutz-content {
    width: min(980px, calc(100% - 2rem));
    margin-left: auto;
    margin-right: auto;
}

.datenschutz-einstieg {
    margin: 1.5rem 0 2rem;
}

.datenschutz-einstieg h1 {
    color: #274966;
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 1.4rem;
    padding-bottom: 0.7rem;
    border-bottom: 2px solid #274966;
}

.datenschutz-einstieg p,
.datenschutz-bereich p,
.datenschutz-bereich li {
    line-height: 1.7;
}

.datenschutz-bereich {
    margin: 2rem 0 2.5rem;
}

.datenschutz-bereich h2 {
    color: #274966;
    font-size: 1.5rem;
    margin: 0 0 1rem;
}

.datenschutz-box {
    background: #f5f6f7;
    border-left: 4px solid #274966;
    padding: 1.4rem 1.5rem;
}

.datenschutz-box p:first-child {
    margin-top: 0;
}

.datenschutz-box p:last-child {
    margin-bottom: 0;
}
/* =========================================
   KANZLEI-BRAND IM HEADER
   ========================================= */

.container-header .navbar-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-height: 82px;
    padding-left: 112px;
}

/* DR-Monogramm */
.container-header .navbar-brand::before {
    content: "";
    position: absolute;

    left: 0;
    top: 50%;
    transform: translateY(-50%);

    width: 72px;
    height: 72px;

    background-image: url("/images/DianaReinhold_Logo_transparent.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* senkrechte Trennlinie */
.container-header .navbar-brand::after {
    content: "";
    position: absolute;

    left: 88px;
    top: 12px;
    bottom: 12px;

    width: 1px;
    background: rgba(255,255,255,0.75);
}

/* Kanzleiname */
.container-header .navbar-brand .brand-logo,
.container-header .navbar-brand .site-title {
    margin: 0;
}

/* Smartphone */
@media (max-width: 700px) {

    .container-header .navbar-brand {
        min-height: 68px;
        padding-left: 86px;
    }

    .container-header .navbar-brand::before {
        width: 58px;
        height: 58px;
    }

    .container-header .navbar-brand::after {
        left: 70px;
        top: 10px;
        bottom: 10px;
    }
}
/* =========================================
   MOBILE HEADER + HAMBURGER
   ========================================= */

@media (max-width: 700px) {

    .container-header {
        padding-top: 0.3rem;
        padding-bottom: 0.3rem;
    }

    .container-header .navbar-brand {
        position: relative;
        min-height: 72px;
        padding-left: 82px;
        padding-right: 60px;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .container-header .navbar-brand::before {
        width: 56px;
        height: 56px;
        left: 0;
    }

    .container-header .navbar-brand::after {
        left: 67px;
        top: 7px;
        bottom: 7px;
    }

    .container-header .navbar-brand a,
    .container-header .navbar-brand .site-title {
        font-size: 1.28rem !important;
        line-height: 1.08;
        white-space: normal;
    }

    .container-header .site-description {
        font-size: 0.82rem;
        line-height: 1.15;
        margin-top: 0.15rem;
        white-space: nowrap;
    }

    .container-header .container-nav {
        position: relative;
        margin: 0;
        padding: 0;
        min-height: 0;
    }

    /* Joomla erzeugt diesen Button beim Layout
       "Standardmenü einklappbar" selbst */
    .container-header .navbar-toggler {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 8px;
        top: -61px;
        width: 44px;
        height: 44px;
        z-index: 1000;
        border: 0;
        background: transparent;
        color: #fff;
        padding: 4px;
    }

    .container-header .navbar-toggler .icon-menu {
        font-size: 2rem;
        line-height: 1;
        color: #fff;
    }

    /* geschlossen */
    .container-header .collapse:not(.show) {
        display: none !important;
    }

    /* geöffnet */
    .container-header .collapse.show {
        display: block !important;
        width: 100%;
        padding: 0.45rem 0 0.65rem;
    }

    .container-header .mod-menu {
        display: block !important;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .container-header .mod-menu > li {
        display: block;
        margin: 0;
    }

    .container-header .mod-menu > li > a {
        display: block;
        padding: 0.45rem 0;
        font-size: 1rem;
        white-space: normal;
    }

    h1 {
        font-size: 2.15rem;
        line-height: 1.13;
    }
}
/* =========================================
   MOBILE HAMBURGER – KORREKTUR
   ========================================= */

@media (max-width: 700px) {

    .container-header {
        position: relative;
    }

    .container-header .container-nav {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        position: static;
    }

    .container-header .navbar {
        position: static;
        width: 100%;
    }

 .container-header .navbar-toggler {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;

    position: absolute !important;
    top: 22px !important;
    right: 16px !important;

    width: 46px;
    height: 46px;
    padding: 5px;

    align-items: center;
    justify-content: center;

    z-index: 9999;

    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;

    background: transparent !important;
    color: #fff !important;
}

.container-header .navbar-toggler:focus,
.container-header .navbar-toggler:focus-visible,
.container-header .navbar-toggler:active {
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.container-header .navbar-toggler .icon-menu {
    display: block !important;
    visibility: visible !important;
    color: #fff !important;
    font-size: 30px !important;
    line-height: 1 !important;
}

.container-header .navbar-collapse {
    width: 100%;
}

.container-header .navbar-collapse:not(.show) {
    display: none !important;
}

/* =========================================
   GEÖFFNETES MOBILE-MENÜ – ABSTÄNDE
   ========================================= */

.container-header .navbar-collapse.show {
    display: block !important;
    width: 100%;

    /* Abstand oben | rechts | unten | links */
    padding: 0.1rem 1.2rem 0.45rem !important;
}

.container-header .navbar-collapse.show .mod-menu {
    display: flex !important;
    flex-direction: column !important;

    margin: 0 !important;
    padding: 0 !important;

    /* Abstand zwischen den Menüpunkten */
    gap: 0.25rem !important;
}

.container-header .navbar-collapse.show .mod-menu > li {
    margin: 0 !important;
    padding: 0 !important;
}

.container-header .navbar-collapse.show .mod-menu > li > a {
    display: block !important;

    /* Höhe/Abstand jedes Menüpunktes */
    padding: 0.30rem 0 !important;
    margin: 0 !important;

    font-size: 1rem !important;
    line-height: 1.25 !important;
}