/* ============================================================
   LAYOUT – Header/Navigation, Seitenstruktur, Footer
   Masse und Farben 1:1 aus style.css / colors.css
   ============================================================ */

/* ================= MAIN MENU ================== */
.nav-container {
    z-index: 99;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--color-primary);
}
.nav-container-inner {
    margin: 0 auto;
    max-width: var(--max-width);
    position: relative;
    transition: all 0.2s ease-in-out;
}
.logo {
    float: left;
    padding-left: 40px;
    font-size: 60px;
}
.logo img {
    height: 120px;
    width: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    vertical-align: bottom;
    margin: 0;
    transition: all 0.2s ease-in-out;
}
.toggleMenu {
    display: none;
    list-style: none;
    padding: 15px 40px;
    margin: 0;
    width: 100%;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    background-color: var(--color-primary);
    background-image: url("../images/downArrow.png");
    background-repeat: no-repeat;
    background-position: 95% 50%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.toggleMenu:hover { text-decoration: none; }

.nav {
    font-family: 'ralewayregular';
    font-size: 17px;
    list-style: none;
    padding: 0 40px 0 0;
    margin: 0;
    line-height: 110px;
    float: right;
}
.nav a {
    color: #fff;
    padding: 5px 15px;
    transition: all 0.2s ease-in-out;
    display: block;
}
.nav li { position: relative; }
.nav > li { float: left; }
.nav > li > a:hover { background-color: var(--color-primary-light); color: #fff; }
.nav ul {
    font-size: 15px;
    list-style: none;
    width: 14em;
    padding: 0;
    margin: 0;
    line-height: 40px;
    position: absolute;
    left: -9999px;
    background: var(--color-primary-light);
    z-index: 9999;
}
.nav li:hover > ul,
.nav li:focus-within > ul { left: 0; }
.nav ul li a { padding: 5px 20px; color: #fff; }
.nav ul li a:hover { background-color: rgba(255, 255, 255, 0.1); color: #fff; }

/* ================= PAGE STRUCTURE ================== */
#site-container {
    position: relative;
    border-top: 120px solid var(--color-primary); /* blauer Balken hinter fixed Header */
}
.page-block {
    width: 100%;
    max-width: var(--max-width);
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px;
    background-color: #fff;
}

/* Seitentitel mit Vollbild-Hintergrund (backstretch-Ersatz per CSS) */
.page-title {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 350px 0 0 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.page-title-inner { max-width: var(--max-width); width: 100%; height: 100%; margin: 0 auto; }
.page-title h1 {
    display: block;
    padding: 40px;
    margin: 0;
    color: #fff;
    background-color: var(--color-primary);
}

/* ================= FOOTER ================== */
#footer {
    height: auto;
    margin: 0 auto;
    width: 100%;
    max-width: var(--max-width);
    padding: 0;
    position: relative;
    overflow: hidden;
    background-color: var(--color-dark);
    color: #fff;
}
#footer h5,
#footer .footer-title { color: #fff; }
/* Footer-Titel: h5-Optik (22px) bei korrekter Heading-Ebene */
.footer-title {
    font-family: 'ralewaybold';
    font-weight: normal;
    font-size: 22px;
    line-height: 1;
    margin-top: 0;
    margin-bottom: 30px;
}
#footer-widgets { padding: 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
#footer-widgets p { margin-bottom: 24px; opacity: 0.5; color: #fff; }
#footer-widgets p:last-child { margin-bottom: 0; }
#footer-widgets a { color: #fff; }
/* Labels im Footer nicht dunkel faerben, sondern weiss erben */
#footer-widgets strong { color: #fff; }

.qrcode-container { position: relative; display: inline-block; }
img.qrcode { position: relative; width: 100%; }

.footer-info {
    position: relative;
    width: 100%;
    display: inline-block;
    padding: 10px 40px;
    margin: 0;
}
.credits {
    float: left;
    margin: 0;
    padding: 0;
    line-height: 32px;
    font-size: 11px;
    opacity: 0.5;
    color: #fff;
}
.social-icons {
    list-style-type: none;
    margin: 0;
    padding: 0;
    float: right;
}
.social-icons li { float: left; display: block; margin: 0 0 0 15px; padding: 0; line-height: 32px; }
.social-icons li a { color: #fff; }

/* ================= BACK TO TOP ================== */
.back-to-top {
    position: fixed;
    bottom: 0;
    right: 0;
    display: none;
    background-image: url('../images/gototop.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-color: var(--color-primary);
    width: 60px;
    height: 60px;
    transition: background 0.2s ease-in-out;
}
.back-to-top:hover { background-color: var(--color-primary-light); }
.back-to-top.visible { display: block; }
