@charset "UTF-8";

/* ========== GLOBAL ========== */

html {
    overflow-y: scroll;
    overflow-x: hidden;
    background: url(hg_hd-red.jpg);
    width: 100%;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    font-size: 14px;
    color: #fecb6e;
    -webkit-font-smoothing: subpixel-antialiased;
    -webkit-text-stroke:1px transparent;
    background: transparent; /* <- wichtig! */
}

.anchor-offset {
    display: block;
    position: relative;
    margin-top: -200px;
    padding-top: 200px;
}

small {
    font-size: 14px;
    font-weight: 300!important;
}

a {
    color: #fecb6e;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4 {
    font-weight: 300;
    color: #fecb6e;
}

h1 {
    padding: 0 0 10px 0px;
}

/* ========== WRAPPER & LAYOUT ========== */

#wrapper {
    max-width: 1000px;
    margin: auto;
    padding: 0 15px;
    overflow: hidden; /* wichtig bei float-Layouts */
    min-height: 500px; /* <- das ist neu */
}

/* ========== HEADER ========== */

#header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 20px;
    width: 100%;
    height: 220px;
    margin-top: 20px;
    padding: 10px 0 30px 0;
    border-bottom: 3px double #fecb6e;
    box-sizing: border-box;
}

#logo {
    width: 180px;
    height: 180px;
    background: url(mv1600_logo.png) no-repeat center center;
    background-size: contain;
    flex-shrink: 0;
}

#slide {
    width: 560px;
    height: 180px;
    background: #ffcc66;
    overflow: hidden;
    flex-shrink: 0;
}

#titel {
    width: 180px;
    height: 180px;
    background: url(mv1600_rechts.png) no-repeat center center;
    background-size: contain;
    flex-shrink: 0;
}


/* ========== NAVIGATION ========== */

#nav {
    width: 100%;
    margin: 20px 0;
}

#nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

#nav li {
    margin: 0;
    padding: 0;
}

#nav li:not(:last-child) a {
    border-right: 1px dotted #fecb6e;
}

#nav a {
    display: inline-block;
    padding: 0 5px;
    line-height: 30px;
    color: #fecb6e;
    white-space: nowrap;
}

#nav a:hover,
#nav a.nav-path-selected {
     background-color: rgba(0,0,0,0.1);
    text-decoration: none;
    border-radius: 0px;
}









/* ========== TEXT CONTENT ========== */

#text {
    margin: 20px 0;
    overflow: hidden;
    min-height: 500px;
}

#text p {
    font-size: 16px;
}

#text h1 {
    margin-bottom: 20px;
}

/* ========== REFERENTENLISTE ========== */

.anchor-offset {
    position: relative;
    height: 0;
    margin-top: -200px;
    padding-top: 200px;
}

.pagelist-grid {
    border-top: 1px solid #fecb6e;
}

.pagelist-card {
    border-bottom: 1px solid #fecb6e;
    border-radius: 0px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

.pagelist-card-header {
    display: flex;
    align-items: center;
    padding: 10px;
}

.pagelist-card-img {
    width: 80px;
    height: auto;
    margin-right: 15px;
    object-fit: contain;
    flex-shrink: 0;
    border: 3px double #fecb6e;
}

.pagelist-card-info {
    flex-grow: 1;
}

.pagelist-card-title {
    font-weight: 400;
    margin: 0;
    color: #fecb6e;
}

.pagelist-card-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 5px;
}

.pagelist-card-more {
    cursor: pointer;
    color: #fecb6e;
    text-decoration: none;
}

.pagelist-edit-pencil {
    color: #fecb6e;
    font-size: 1.2em;
    text-decoration: none;
}

.pagelist-edit-pencil:hover {
    color: #f90;
}

.pagelist-card-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, border-top 0.2s ease;
    padding: 0 10px;
    background-color: rgba(0,0,0,0.3);
    border-top: 0 solid transparent;
    font-size: 16px;
}

.pagelist-card-details.open {
    border-top: 1px solid #fecb6e;
}

.pagelist-edit-pencil {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 1.2em;
    color: #fecb6e;
    text-decoration: none;
    z-index: 10;
}
.pagelist-edit-pencil:hover {
    color: #f90;
    text-decoration: none;
}

.vortraege-list {
    font-weight: 300;
    padding-bottom: 20px;
}

.vortraege-list a {
    font-weight: 400;
}

/* ========== FOOTER ========== */

footer {
    border-top: 3px double #fecb6e;
    text-align: center;
    padding: 10px 0;
    font-size: 12px;
    color: #fecb6e;
}








.scrollicon {
    display: none;
    position: fixed;
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #333;
    opacity: 0.5;
    border: 1px solid #3a5675;
    z-index: 9999;
    text-align: center;
    text-decoration: none;
}

.scrollicon div{
display: block;
font-weight:bold;
font-size:28px;
color:#fff;
padding-top:7px;
}

.scrollicon,
.scrollicon:link,
.scrollicon:visited,
.scrollicon:hover,
.scrollicon:active,
.scrollicon:focus {
    text-decoration: none;
}

/* ========== MOBILE ========== */

@media (max-width: 999px) {

    #header {
        flex-direction: column;
        height: auto;
        padding-bottom: 10px;
    }

    #slide {
        display: none;
    }

    #logo {
        width: 100px;
        height: 100px;
        margin-bottom: 10px;
        background-size: contain;
    }

    #titel {
        display: none;
    }

    #text {
        width: 100%;
        margin: 10px 0;
        padding: 0px;
        overflow: visible;
        min-height: auto;
    }

    
    
    
    #nav {
        float: left;
        min-height: 10px;
        height: 40px;
        position: relative;
        font-weight: 400;
        color: #fff;
        width: 100%;
        z-index: 1;
        padding-bottom: 0px;
        margin-top: 10px;
        margin-right: 0px;
    }

    #nav ul {
        margin-top: 0px;
        opacity: 1;
        width: 100%;
        float: left;
        padding: 0;
        background: #222;
        background-color: rgba(0, 0, 0, 0.7);
        background: url(hg_hd-red.jpg);
    }

    #nav ul li {
        display: none;
        width: 100%;
        list-style: none;
        float: none;
        border-right: 0;
        border-left: 0;
        position: relative;
    }

    #nav ul li:last-child {
        border-right: 0px;
    }

    #nav ul li a {
        padding: 0px 0px 0px 30px;
        text-align: left;
        line-height: 40px;
        width: 100%;
        border-top: 0px dotted;
        font-size: 18px;
    }

    #nav ul li a:hover {
        font-weight: 400;
        text-decoration: none;
    }

    #nav ul:hover li {
        display: block;
        margin: 0px;
        border-bottom: 1px dotted;
    }

    #nav ul li:last-child {
        border-bottom: 0px solid;
    }

    #nav .nav-path-selected {
        background: url(icon-menu_white.png) no-repeat 7px 14px;
        background-color: rgba(0, 0, 0, 0.7);
        display: block;
        font-weight: 400;
    }

    #nav ul:hover .nav-selected {
        background: url(icon-check.png) no-repeat 7px 14px;
        background-color: rgba(0, 0, 0, 0.3);
        font-weight: 400;
    }
    
    footer {
   padding-bottom: 100px;
}
    


.scrollicon{

right:20px;
    bottom: 50px

}
    
    
}
