/* ===== Schriftarten laden ===== */

/* Source Sans 3 */
@font-face {
    font-family: 'Source Sans 3';
    src: url('/media/templates/site/cassiopeia_cassiopeia_child/fonts/source-sans-3-v19-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Source Sans 3';
    src: url('/media/templates/site/cassiopeia_cassiopeia_child/fonts/source-sans-3-v19-latin-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Source Sans 3';
    src: url('/media/templates/site/cassiopeia_cassiopeia_child/fonts/source-sans-3-v19-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}


/* Bitter */
@font-face {
    font-family: 'Bitter';
    src: url('/media/templates/site/cassiopeia_cassiopeia_child/fonts/bitter-v40-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Bitter';
    src: url('/media/templates/site/cassiopeia_cassiopeia_child/fonts/bitter-v40-latin-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Bitter';
    src: url('/media/templates/site/cassiopeia_cassiopeia_child/fonts/bitter-v40-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Bitter';
    src: url('/media/templates/site/cassiopeia_cassiopeia_child/fonts/bitter-v40-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}


/* ===== Grundschrift ===== */

body {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.75;
}


/* ===== Überschriften ===== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bitter', serif;
    font-weight: 500;
    letter-spacing: 0.2px;
}


/* ===== Seitentitel / Logo ===== */

.container-header .navbar-brand,
.container-header .navbar-brand a {
    font-family: 'Bitter', serif !important;
    font-weight: 700;
    letter-spacing: 0.4px;
}


/* ===== Hauptmenü ===== */

.container-header .mod-menu,
.container-header .mod-menu a,
.container-header .mod-menu .nav-link,
.container-header .mod-menu-dropdown-metismenu a {
    font-family: 'Bitter', serif !important;
    font-weight: 600;
    letter-spacing: 0.3px;
}


/* ===== H1 ===== */

h1 {
    font-size: 1.8rem;
    line-height: 1.2;
}

/* =========================================
   Satzungs-Listenformatierung
   Ebene 1 -> (1)
   Ebene 2 -> a)
   Ebene 3 -> 1.
========================================= */

/* Ebene 1 -> (1) */

.item-page ol {
    counter-reset: level1;
    list-style: none;
    padding-left: 2rem;
}

.item-page ol > li {
    counter-increment: level1;
    position: relative;
    margin-bottom: 0.6rem;
    line-height: 1.6;
}

.item-page ol > li::before {
    content: "(" counter(level1) ") ";
    position: absolute;
    left: -2rem;
}


/* Ebene 2 -> a) */

.item-page ol > li > ol {
    counter-reset: level2;
    list-style: none;
    margin-top: 0.5rem;
    padding-left: 2rem;
}

.item-page ol > li > ol > li {
    counter-increment: level2;
    position: relative;
    margin-bottom: 0.4rem;
}

.item-page ol > li > ol > li::before {
    content: counter(level2, lower-alpha) ") ";
    position: absolute;
    left: -2rem;
}


/* Ebene 3 -> 1. */

.item-page ol > li > ol > li > ol {
    counter-reset: level3;
    list-style: none;
    margin-top: 0.4rem;
    padding-left: 2rem;
}

.item-page ol > li > ol > li > ol > li {
    counter-increment: level3;
    position: relative;
    margin-bottom: 0.3rem;
}

.item-page ol > li > ol > li > ol > li::before {
    content: counter(level3) ". ";
    position: absolute;
    left: -2rem;
}

.item-page li {
    line-height: 1.6;
}

.container-header {
    background: #314a36;
}
.container-header .mod-menu > li > a {
    color: white !important;
}
.container-header .mod-menu > li > a:hover {
    color: #e6e6e6 !important;
}
.container-header .mod-menu > li.active > a {
    color: #e6e6e6 !important;
}

.container-component {
    padding-top: 2rem;
}
.page-header {
    margin-bottom: 1.5rem !important;
}
@media (max-width: 767px) {
  .navbar-brand span {
    display: block;
    max-width: 12ch;
    line-height: 1.2;
    white-space: normal;
  }
}

/* Login-Button einfärben */
.btn-primary,
.btn.btn-primary,
.mod-login__submit,
.mod-login__submit.btn,
.login button,
.login .btn-primary {
    background: #314a36 !important;
    background-color: #314a36 !important;
    border-color: #314a36 !important;
    color: #ffffff !important;
}


/* Hover */
.btn-primary:hover,
.btn.btn-primary:hover,
.mod-login__submit:hover,
.login button:hover {
    background: #3d5c44 !important;
    border-color: #3d5c44 !important;
}

.container-footer {
    background: #314a36 !important;
}

/* Footer Menü */
.container-footer .mod-menu {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Normale Schrift */
.container-footer .mod-menu a {
    color: #ffffff !important;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Hover wie Hauptmenü */
.container-footer .mod-menu a:hover {
    color: #d6d2c4 !important;
}

/* Aktive Seite */
.container-footer .mod-menu .current > a,
.container-footer .mod-menu .active > a {
    color: #d6d2c4 !important;
}

:root {
    --cassiopeia-font-family-body: 'Source Sans 3', sans-serif;
    --cassiopeia-font-family-headings: 'Bitter', serif;
}
/* Seitenüberschriften kleiner */

.page-header h1,
.item-title,
h1 {
    font-size: 2.2rem !important;
    line-height: 1.2;
    font-weight: 500;
}

/* Unterüberschriften */

h2 {
    font-size: 1.8rem;
    font-weight: 500;
}

h3 {
    font-size: 1.4rem;
    font-weight: 500;
}

/* Footer-Menü horizontal */

.container-footer .mod-menu {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.container-footer .mod-menu li {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.container-footer .mod-menu a {
    color: #ffffff !important;
    text-decoration: none;
}

.container-footer .mod-menu a:hover,
.container-footer .mod-menu .current > a,
.container-footer .mod-menu .active > a {
    color: #d6d2c4 !important;
}