/* =========================================================
   Fine-Anders.de
   Cassiopeia-Anpassungen
   ========================================================= */

/* ---------------------------------------------------------
   Grundfarben
   --------------------------------------------------------- */

:root {
    --fine-orange: #f0683e;
    --fine-text: #555555;
    --fine-dark: #333333;
    --fine-light: #f7f7f7;

    --cassiopeia-color-primary: #f0683e;
    --cassiopeia-color-link: #f0683e;
    --cassiopeia-color-hover: #d9532f;
}

/* ---------------------------------------------------------
   Grundlayout
   --------------------------------------------------------- */

body {
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.75;
    color: var(--fine-text);
    background: #ffffff;
}

.container-header,
.container-nav,
.container-main,
.container-footer {
    max-width: none;
}

.grid-child {
    width: min(1240px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

.container-header {
    position: relative;
    background: #ffffff;
    background-image: none;
    color: var(--fine-dark);
    box-shadow: 0 2px 8px rgba(0,0,0,.08);

    /* Platz für mask.png */
    padding-bottom: 30px;
}

.container-header .grid-child {
    min-height: 80px;
}

.container-header .navbar-brand {
    color: var(--fine-dark);
}

.container-header .site-description {
    color: #777777;
}

/* ---------------------------------------------------------
   Headerbanner über komplette Breite
   --------------------------------------------------------- */

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

.container-header .container-topbar .mod-custom {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
}

.container-header .container-topbar img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0;
}

/* ---------------------------------------------------------
   mask.png unter dem Header
   --------------------------------------------------------- */

.container-header::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;

    width: 100%;
    height: 40px;

    background-image: url("/images/fine-anders/design/mask.png");
    background-repeat: no-repeat;
    background-position: center -3px;

    z-index: 2;
    pointer-events: none;
}

/* ---------------------------------------------------------
   Hauptnavigation
   --------------------------------------------------------- */

.container-header .container-nav {
    width: 100%;
    max-width: none;
    background: #ffffff;
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
}

.container-header .container-nav .grid-child {
    width: min(1140px, calc(100% - 40px));
    margin: 0 auto;
}

.container-header .mod-menu {
    margin: 0;
    padding: 0;
    color: var(--fine-dark);
}

.container-header .mod-menu > li > a,
.container-header .mod-menu > li > span {
    color: var(--fine-dark);
    font-weight: 400;
    text-decoration: none;
    transition: color .2s ease;

    padding-top: 16px;
    padding-bottom: 16px;
}

.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li > span:hover,
.container-header .mod-menu > li.active > a {
    color: var(--fine-orange);
}

/* Dropdown-Menüs */

.container-header .mod-menu .metismenu.mod-menu .mm-collapse {
    background: #ffffff;
    border: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,.12);
}

.metismenu.mod-menu .metismenu-item > ul {
    background: #ffffff;
}

.metismenu.mod-menu .metismenu-item li a {
    color: var(--fine-dark);
}

.metismenu.mod-menu .metismenu-item li a:hover {
    color: var(--fine-orange);
}

/* ---------------------------------------------------------
   Content-Hintergrund
   --------------------------------------------------------- */

.site-grid {
    background-image: url("/images/fine-anders/design/bg1.jpg");
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% auto;

    /* Platz für floralen unteren Bereich */
    padding-bottom: 260px;

    box-sizing: border-box;
}

/* ---------------------------------------------------------
   Inhalt allgemein
   --------------------------------------------------------- */

main {
    padding-top: 45px;

    /* kein weißer Balken zum Footer */
    padding-bottom: 0 !important;

    box-sizing: border-box;
}

/* Auf Desktop:
   links 70 px,
   rechts deutlich mehr Abstand wegen Hintergrundgrafik */
@media (min-width: 768px) {
    main {
        padding-left: 70px;
        padding-right: 150px;
    }
}

/* Überschriften */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--fine-dark);
    font-weight: 400;
    line-height: 1.3;
}

strong,
b {
    font-weight: 700;
}

h1 strong,
h2 strong,
h3 strong,
h4 strong,
h5 strong,
h6 strong {
    font-weight: 700;
}

h1 {
    font-size: clamp(2rem, 4vw, 2.7rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.4rem;
}

/* Links */

a {
    color: var(--fine-orange);
}

a:hover {
    color: #d9532f;
}

/* Bilder */

.item-page img,
.com-content-article img {
    max-width: 100%;
    height: auto;
}

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */

.btn-primary {
    background: var(--fine-orange);
    border-color: var(--fine-orange);
}

.btn-primary:hover,
.btn-primary:focus {
    background: #d9532f;
    border-color: #d9532f;
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

.container-footer {
    margin-top: 0 !important;
    background: #85B2CF;
    background-image: none;
    color: #333333;
}

/* Footer-Menü horizontal */

.container-footer .mod-menu {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

    gap: 30px;

    margin: 0;
    padding: 0;
}

.container-footer .mod-menu > li {
    display: inline-block;
    width: auto;
}

.container-footer .mod-menu > li > a {
    display: inline-block;
    padding: 5px 0;
    color: #333333;
    text-decoration: none;
}

.container-footer a {
    color: #333333;
    text-decoration: none;
}

.container-footer a:hover,
.container-footer .mod-menu > li > a:hover {
    color: #000000;
}

/* Trennstrich */

.container-footer .mod-menu > li:not(:last-child)::after {
    content: "|";
    margin-left: 15px;
    color: #333333;
}

/* ---------------------------------------------------------
   Startseite
   --------------------------------------------------------- */

.startseite {
    width: 100%;
}

.startseite-titel {
    text-align: center;
    margin-bottom: 35px;
}

.startseite-titel h4 {
    margin: 0 0 12px 0;
    font-size: 1.35rem;
}

.startseite-intro {
    display: flex;
    align-items: flex-start;

    gap: 70px;

    max-width: 1050px;
    margin: 0 auto;
}

.startseite-foto {
    flex: 0 0 181px;
}

.startseite-foto img {
    display: block;
    width: 181px;
    height: auto;
}

.startseite-text {
    flex: 1;
    min-width: 0;
}

.startseite-text p {
    margin-top: 0;
    margin-bottom: 18px;
}

/* ---------------------------------------------------------
   Tablet
   --------------------------------------------------------- */

@media (max-width: 991px) {

    .grid-child {
        width: min(100% - 30px, 1240px);
    }

    main {
        padding-top: 30px;
    }

    body {
        font-size: 16px;
    }

    .site-grid {
        padding-bottom: 220px;
    }
}

/* ---------------------------------------------------------
   Smartphone
   --------------------------------------------------------- */

@media (max-width: 767px) {

    main {
        padding-left: 0;
        padding-right: 0;
    }

    .site-grid {
        padding-bottom: 180px;
    }

    .startseite-titel {
        margin-bottom: 25px;
    }

    .startseite-intro {
        display: block;
        max-width: none;
    }

    .startseite-foto {
        text-align: center;
        margin-bottom: 25px;
    }

    .startseite-foto img {
        margin: 0 auto;
    }

    .startseite-text {
        width: 100%;
    }
}

/* =========================================================
   Cassiopeia – mobiles Collapsible-Menü
   ========================================================= */

@media (max-width: 991.98px) {

    /* Navigationsbereich sichtbar halten */
    .container-header .container-nav {
        display: flex !important;
        width: 100% !important;
        min-height: 55px;
        padding: 8px 15px;
        background: #ffffff;
        position: relative;
        z-index: 10;
    }

    /* Modul darf die Breite verwenden */
    .container-header .container-nav > * {
        width: 100%;
    }

    /* Hamburger-Button sichtbar */
    .container-header .navbar-toggler {
        display: block !important;
        margin-left: auto;
        color: #333333;
        border: 1px solid #cccccc;
        background: #ffffff;
    }

    /* Hauptmenü nach Öffnen */
    .container-header .navbar-collapse.show {
        display: block !important;
        width: 100%;
    }

    /* Hauptmenü vertikal */
    .container-header .metismenu.mod-menu {
        width: 100%;
    }

    /* Untermenüs */
    .container-header .metismenu.mod-menu .mm-collapse {
        position: static !important;
        width: 100% !important;
        background: #ffffff;
        box-shadow: none;
    }

    /* geöffnetes Untermenü */
    .container-header .metismenu.mod-menu .mm-collapse.mm-show {
        display: block !important;
        height: auto !important;
        visibility: visible !important;
    }

    /* Untermenüpunkte einrücken */
    .container-header .metismenu.mod-menu .mm-collapse > li {
        padding-left: 20px;
    }
}

/* =========================================================
   Frontend-Bearbeiten-Symbol im Footer
   nicht über Login / Logout anzeigen
   ========================================================= */

.container-footer .jmodedit {
    top: -35px !important;
    right: 10px !important;
    z-index: 10;
}