/* Erweiterung für die HTML-/Dreamweaver-Version.
   Die alten CSS-Dateien bleiben zunächst unverändert. */

/* Der alte Footer mit #top war nur für "Nach oben" gedacht. */
.back-top-wrap {
    clear: both;
    text-align: right;
    width: 775px;
    margin: 0 0 0 auto;
}
#top {
    display: none;
    margin: 0 0 .667em auto;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
#top img { display: block; width: 22px; height: auto; }
.touch #top { display: inline-block; }

.site-footer {
    clear: both;
    width: 775px;
    margin: 36px 0 15px auto;
    padding: 15px 0 0;
    border-top: 1px solid #d2d6d8;
}
.site-footer__links {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px 25px;
    text-align: right;
    font-size: .9em;
}
.site-footer__links a,
.site-footer__links a:link,
.site-footer__links a:visited {
    color: #555;
    text-decoration: none;
}
.site-footer__links a:hover,
.site-footer__links a:focus-visible { color: #008c91; text-decoration: underline; }

/* Im Desktop-Layout die bestehende Navigation unverändert lassen. */
#menu-toggle { display: none; }

/* Sichtbare Tastaturfokussierung statt des alten CSS-Resets ohne Outline. */
#nav a:focus-visible,
#menu-toggle:focus-visible,
.site-footer a:focus-visible,
#top:focus-visible,
main a:focus-visible {
    outline: 2px solid #008c91;
    outline-offset: 3px;
}
.projects li:focus-within .listbg { opacity: 1; }

@media screen and (max-width: 950px) {
    .back-top-wrap, .site-footer { width: 82%; }
}
@media screen and (max-width: 660px) {
    #nav { height: auto; min-height: 40px; }
    #nav #menu-toggle {
        display: none;
        float: right;
        width: auto;
        min-height: 44px;
        padding: 8px 17px;
        margin: 0 0 10px auto;
        border: 1px solid #999;
        background: #fff;
        border-radius: 4px;
        color: #000;
        cursor: pointer;
        font: 17px/1.3 Helvetica, Arial, sans-serif;
        text-transform: none;
    }
    .js-enabled #nav #menu-toggle { display: block; }

    /* Ohne JavaScript werden alle Links sichtbar und bleiben bedienbar. */
    #nav ul {
        clear: both;
        display: block;
        position: relative;
        width: 100%;
        min-width: 0;
        padding: 4px 0;
        box-shadow: 0 0 5px rgba(0,0,0,.25);
        z-index: 20;
    }
    #nav li, #nav li.active {
        display: block;
        padding: 8px 10px;
        line-height: 1.15;
    }
    #nav li a, #nav li mark a {
        display: block;
        min-height: 44px;
        padding: 7px 8px 7px 30px;
        margin-right: 0;
    }
    .js-enabled #nav ul { display: none; }
    .js-enabled #nav ul.is-open { display: block; }
    #nav ul li.active { background: url(../img/base/li_sel.png) no-repeat 15px center; }
    #nav ul:hover li.active { background: url(../img/base/li_sel.png) no-repeat 15px center; }
    .back-top-wrap, .site-footer { width: 98%; margin-left: auto; margin-right: auto; }
    .site-footer { margin-top: 32px; }
    .site-footer__links { justify-content: center; text-align: center; }
}

/* Korrektur der bisherigen Mindestbreite auf sehr schmalen Geräten. */
@media screen and (max-width: 380px) {
    body { min-width: 0; padding-left: 10px; padding-right: 10px; }
}

/* H1-Überschriften: semantisch korrekt, optisch wie die bisherige erste H2. */
#info h1.profile-title,
#info h1.page-title {
    font-size: 105%;
    line-height: 1.2;
    margin: 0 0 .667em;
    text-transform: uppercase;
}
#info h1.profile-title span,
#info h1.page-title span {
    display: block;
    text-transform: none;
    border-top: 0;
    padding-top: 0;
}
/* Rechtliche Seiten */

#info.legal-page {
    line-height: 1.5;
}

/* Hauptüberschrift */
#info.legal-page h1 {
    font-size: 1.7em;
    line-height: 1.3;
    margin: 0 0 1.8em;
    font-weight: normal;
    text-transform: uppercase;
    text-shadow: none;
}

/* Abschnittsüberschriften */
#info.legal-page h2 {
    font-size: 1.2em;
    line-height: 1.4;
    margin: 2.2em 0 0.7em;
    font-weight: normal;
    text-shadow: none;
}

#info.legal-page h3 {
    font-size: 1.13em;
    line-height: 1.4;
    margin: 2em 0 0.6em;
    font-weight: normal;
    text-shadow: none;
}

#info.legal-page h4 {
    font-size: 1.05em;
    line-height: 1.4;
    margin: 1.3em 0 0.4em;
    font-weight: normal;
}

/* Fließtext */
#info.legal-page p,
#info.legal-page p + p {
    margin: 0 0 0.9em;
    line-height: 1.5;
}

/* Hervorhebungen */
#info.legal-page strong,
#info.legal-page b {
    font-weight: 600;
}

/* Aufzählungen */
#info.legal-page ul {
    margin: 0.5em 0 1.2em;
    padding-left: 1.5em;
}

#info.legal-page ul li {
    margin-bottom: 0.4em;
}



/* Projektinformationen: keine automatische Worttrennung */
#projectinfo {
    -webkit-hyphens: none;
    hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
    word-wrap: normal;
}