/*
 * monteurwohnung.net – Layout nach der TYPO3-6.2-Vorlage (fileadmin/D2/css/main.css),
 * Farben und Maße übernommen, Grafikmenüs (GMENU/GIFBUILDER) durch CSS-Text ersetzt.
 */

/* Source Sans 3 (SIL OFL) – lokal ausgeliefert, Ersatz für die Myriad-Grafiktexte */
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
    src: url('../Fonts/source-sans-3-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
        U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
    src: url('../Fonts/source-sans-3-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
        U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
        U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --mw-bg: #506574;
    --mw-ink: #444444;
    --mw-dark: #333333;
    --mw-yellow: #f7cd00;
    --mw-yellow-soft: #ffe899;
    --mw-side: #eeeeee;
    --mw-side-ink: #666666;
    --mw-rule: #f0f0f0;
    --mw-imgborder: #dfdfdf;
    --mw-display: 'Source Sans 3', Arial, Helvetica, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0 10px 20px;
    background-color: var(--mw-bg);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 150%;
    color: var(--mw-ink);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    font-weight: bold;
    color: var(--mw-dark);
}

a:hover,
a:focus-visible {
    text-decoration: underline;
    color: #000000;
}

.mw-skip {
    position: absolute;
    left: -9999px;
}

.mw-skip:focus {
    left: 10px;
    top: 10px;
    z-index: 10;
    padding: 6px 10px;
    background: #ffffff;
    border: 2px solid var(--mw-yellow);
}

/* ---------------------------------------------------------------- Rahmen */

/* 950px Inhalt + 5px Innenabstand + 5px Rahmen = 970px, wie #side in der Vorlage */
.mw-page {
    max-width: 970px;
    margin: 10px auto 0;
    padding: 5px;
    border: 5px solid #ffffff;
    background-color: #ffffff;
    overflow: hidden;
}

.mw-header img {
    display: block;
    width: 100%;
    height: auto;
}

/* ---------------------------------------------------------------- Hauptmenü */

.mw-nav {
    margin: 5px 0;
    background-color: var(--mw-dark);
    padding: 2px;
}

.mw-nav-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mw-nav-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    font-family: var(--mw-display);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--mw-yellow-soft);
    background-color: var(--mw-dark);
    text-decoration: none;
}

.mw-nav-item a:hover,
.mw-nav-item a:focus-visible,
.mw-nav-item.is-active > a,
.mw-nav-item.is-current > a {
    background-color: var(--mw-yellow);
    color: var(--mw-dark);
    text-decoration: none;
}

.mw-nav-toggle {
    display: none;
}

/* ---------------------------------------------------------------- Spalten */

.mw-body {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.mw-side {
    order: 1;
    flex: 0 0 234px;
    width: 234px;
    margin-top: 5px;
    padding: 7px;
    background-color: var(--mw-side);
    font-size: 12px;
}

.mw-content {
    order: 2;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 690px;
    margin-top: 10px;
}

/* ---------------------------------------------------------------- Untermenü */

.mw-subnav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mw-subnav-item a {
    display: block;
    min-height: 35px;
    padding: 8px 10px;
    font-family: var(--mw-display);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--mw-side-ink);
    text-decoration: none;
}

.mw-subnav-item a:hover,
.mw-subnav-item a:focus-visible,
.mw-subnav-item.is-active > a,
.mw-subnav-item.is-current > a {
    color: var(--mw-dark);
    text-decoration: none;
}

/* ---------------------------------------------------------------- Aktuelles */

.mw-aktuelles {
    margin: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--mw-dark);
}

.mw-aktuelles ul {
    margin: 0 0 8px;
    padding-left: 18px;
}

.mw-aktuelles h1,
.mw-aktuelles h2,
.mw-aktuelles h3 {
    font-family: var(--mw-display);
    font-size: 14px;
    margin: 0 0 6px;
    color: var(--mw-dark);
}

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

.mw-content h1 {
    font-family: var(--mw-display);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    margin: 5px 0;
    color: var(--mw-dark);
}

.mw-content h2,
.mw-content h3,
.mw-content h4 {
    font-family: var(--mw-display);
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: var(--mw-dark);
}

.mw-content p {
    margin: 0 0 1em;
}

.mw-content ul {
    padding-left: 20px;
}

/* Trennlinie zwischen den Inhaltselementen wie csc-frame-rulerAfter */
.mw-content .frame + .frame {
    border-top: 1px solid var(--mw-rule);
    margin-top: 10px;
    padding-top: 10px;
}

/* ------------------------------------------------- Text mit Bild (FSC) */

.ce-gallery img {
    display: block;
}

/* Rahmen nur bei Elementen mit gesetztem Bildrahmen – wie csc-textpic-border */
.ce-gallery.ce-border img {
    border: 3px solid var(--mw-imgborder);
    padding: 2px;
    background: #ffffff;
}

.ce-gallery figure {
    margin: 0;
}

.ce-gallery .ce-row + .ce-row {
    margin-top: 10px;
}

.ce-gallery .ce-column + .ce-column {
    margin-top: 10px;
}

/* Bild links / rechts neben dem Text */
.ce-intext.ce-left .ce-gallery,
.ce-nowrap.ce-left .ce-gallery {
    float: left;
    margin-right: 10px;
}

.ce-intext.ce-right .ce-gallery,
.ce-nowrap.ce-right .ce-gallery {
    float: right;
    margin-left: 10px;
}

.ce-above .ce-gallery {
    margin-bottom: 10px;
}

.ce-below .ce-gallery {
    margin-top: 10px;
}

/* "no wrap": Text bekommt eine eigene Spalte, fließt nicht unter das Bild */
.ce-nowrap .ce-bodytext {
    overflow: hidden;
}

.ce-textpic,
.ce-image,
.ce-nowrap,
.ce-intext {
    overflow: hidden;
}

/* ---------------------------------------------------------------- Formulare */

.mw-content form {
    margin: 10px 0 0;
}

.mw-content .form-group {
    margin-bottom: 10px;
}

.mw-content label {
    display: block;
    font-weight: bold;
    color: var(--mw-dark);
    margin-bottom: 3px;
}

.mw-content input[type='text'],
.mw-content input[type='email'],
.mw-content input[type='tel'],
.mw-content input[type='number'],
.mw-content input[type='date'],
.mw-content select,
.mw-content textarea {
    width: 100%;
    max-width: 420px;
    padding: 5px;
    border: 1px solid #cccccc;
    font-family: inherit;
    font-size: 13px;
    color: var(--mw-ink);
    background: #ffffff;
}

.mw-content textarea {
    max-width: 100%;
    min-height: 120px;
}

.mw-content button,
.mw-content input[type='submit'] {
    padding: 8px 18px;
    border: 0;
    background-color: var(--mw-yellow);
    color: var(--mw-dark);
    font-family: var(--mw-display);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.mw-content button:hover,
.mw-content input[type='submit']:hover {
    background-color: var(--mw-dark);
    color: var(--mw-yellow);
}

.mw-content .form-check label {
    display: inline;
    font-weight: normal;
}

/* ---------------------------------------------------------------- Mobil */

@media (max-width: 760px) {
    body {
        padding: 0 0 10px;
    }

    .mw-page {
        margin-top: 0;
        border-width: 0;
        padding: 0 0 10px;
    }

    .mw-nav {
        margin: 0;
        padding: 0;
    }

    .mw-nav-toggle {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        min-height: 46px;
        padding: 0 12px;
        border: 0;
        background-color: var(--mw-dark);
        color: var(--mw-yellow-soft);
        font-family: var(--mw-display);
        font-size: 18px;
        text-align: left;
        cursor: pointer;
    }

    .mw-nav-toggle-bars,
    .mw-nav-toggle-bars::before,
    .mw-nav-toggle-bars::after {
        display: block;
        width: 22px;
        height: 3px;
        background-color: currentColor;
    }

    .mw-nav-toggle-bars {
        position: relative;
    }

    .mw-nav-toggle-bars::before,
    .mw-nav-toggle-bars::after {
        content: '';
        position: absolute;
        left: 0;
    }

    .mw-nav-toggle-bars::before {
        top: -7px;
    }

    .mw-nav-toggle-bars::after {
        top: 7px;
    }

    .mw-nav-list {
        display: none;
        flex-direction: column;
        background-color: var(--mw-dark);
    }

    .mw-nav-list.is-open {
        display: flex;
    }

    .mw-nav-item a {
        justify-content: flex-start;
        min-height: 44px;
        border-top: 1px solid #4a4a4a;
    }

    .mw-body {
        flex-direction: column;
    }

    .mw-content {
        order: 1;
        width: 100%;
        margin-top: 0;
        padding: 10px 10px 0;
    }

    .mw-side {
        order: 2;
        flex: 1 1 auto;
        width: auto;
        align-self: stretch;
        margin: 10px 10px 0;
    }

    .mw-subnav-item a {
        min-height: 44px;
        border-top: 1px solid #dddddd;
    }

    /* Bilder auf Mobil nicht mehr umfließen lassen */
    .ce-intext .ce-gallery,
    .ce-nowrap .ce-gallery {
        float: none;
        margin: 0 0 10px;
    }

    .ce-gallery img {
        width: 100%;
        max-width: 400px;
    }
}
