body {
    font-family: "Merriweather", serif;
    color: #ccc;
    margin: 0;
    padding: 20px;
    /* Hintergrundbild wird über das WP-Customizer Feature "Hintergrundbild" gesteuert */
}

.container {
    max-width: 1200px;
    margin: auto;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.logo {
    max-width: 100%;
    margin: auto;
    min-width: 300px;
}
/* Support WP custom logo output */
.custom-logo {
    max-width: 100%;
    height: auto;
}
.site-title {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Style the navigation menu */
.topnav {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: center;
    justify-items: center;
    list-style: none;
    margin: 0;
    padding: 20px 10px;
}
.topnav li {
    list-style: none;
    padding: 10px;
}

/* Style navigation menu links */
.topnav a {
    color: white;
    padding: 5px 15px 5px 15px;
    text-decoration: none;
    font-size: 17px;
    border-right: 1px solid white;
}

.topnav a:last-child {
    border-right: none;
}
/* Ensure last item from WP menu has no border */
.topnav li:last-child a {
    border-right: none;
}

nav {
    position: relative;
}

/* Style the hamburger menu */
.burgerIcon {
    display: none;
    cursor: pointer;
    font-size: 25px;
    text-decoration: none;
}

/* Add a grey background color on mouse-over */
.topnav a:hover {
    color: #f69b00;
}

.content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.sidebar {
    flex: 1;
    max-width: 200px;
    order: 1;
    font-size: 0.8em;
}

.main-content {
    flex: 3;
    order: 2;
}

h3 { text-decoration: underline; }

h1,
h2,
h3 {
    color: #eee;
    margin-top: 20px;
    margin-bottom: 15px;
    /* border-bottom: 1px solid #444 */
    padding-bottom: 10px;
}

p {
    margin: 10px 0;
    line-height: 1.6;
}

.partner-logo {
    width: 100px;
    height: auto;
    margin: 20px auto;
    display: block;
}

.social-links { display: flex; }
.social-links a { margin: auto; max-width: 60px; }
.social-links img { width: 100%; height: auto; }

/* WP Custom Background helpers */
body.custom-background {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

footer {
    margin-top: 40px;
    padding: 15px;
    /* background-color: #111 */
    color: #ddd;
    font-size: 14px;
    text-align: left;
}

.phone {
    background-color: #222;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
    display: inline-block;
    margin: 10px 0;
}

.divider {
    border-top: 1px solid #444;
    margin: 50px 0;
}

/* Accessibility helpers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Buttons reset for burger */
.burgerIcon {
    background: transparent;
    border: 0;
    color: #fff;
}
.burgerIcon:focus-visible {
    outline: 3px solid #ffcc00;
    outline-offset: 2px;
}

/* Link focus styles */
.topnav a:focus-visible {
    outline: 2px dashed #ffcc00;
    outline-offset: 2px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .burgerIcon { display: block; }

    .topnav {
        display: none;
        flex-direction: column;
        position: absolute;
        background-color: black;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    .topnav.is-open { display: flex; }

    .content { flex-direction: column; }
    .sidebar { order: 2; max-width: none; }
    .main-content { order: 1; }
}
