:root {
    --primary-color: #f7931a;
    --secondary-color: #4d4d4d;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --dark-text: #333333;
    --affiliate-height: 38px;
    --header-height-desktop: 60px;
    --header-height-mobile: 50px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--white);
    padding-top: calc(var(--affiliate-height) + var(--header-height-desktop));
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Affiliate Banner - fest am oberen Rand */
.affiliate-banner {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 0;
    font-size: 14px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 110;
    height: var(--affiliate-height);
    box-sizing: border-box;
    line-height: 1.4;
    white-space: normal;
    display: flex;
    align-items: center;
    justify-content: center;
}

.affiliate-banner .container {
    width: 100%;
}

.affiliate-banner a {
    color: white;
    font-weight: bold;
    text-decoration: underline;
}

.affiliate-label {
    background-color: var(--primary-color);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    margin-left: 5px;
    display: inline-block;
    vertical-align: middle;
}

/* Header - direkt unter dem Affiliate-Banner fixiert */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: var(--affiliate-height);
    left: 0;
    width: 100%;
    z-index: 100;
    height: var(--header-height-desktop);
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--secondary-color);
    z-index: 1000;
}

/* HEADER-NAVIGATION: horizontal auf Desktop, vertikal auf Mobil */
nav ul.horizontal-list {
    display: flex;
    flex-direction: row;
    list-style: none;
    gap: 18px;
    padding-left: 0;
    margin-bottom: 0;
}

nav ul.horizontal-list li {
    margin: 0;
}

nav ul.horizontal-list li a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    transition: color 0.3s;
}

nav ul.horizontal-list li a:hover {
    color: var(--primary-color);
}

/* Trenner nur Desktop/Tablet */
nav ul.horizontal-list li:not(:last-child)::after {
    content: "•";
    margin-left: 14px;
    color: var(--primary-color);
    font-weight: bold;
}

/* Mobiles Layout: Header-Navi wird vertikal, Trenner werden entfernt */
@media (max-width: 768px) {
    body {
        padding-top: calc(var(--affiliate-height) + var(--header-height-mobile));
    }
    
    header {
        height: var(--header-height-mobile);
    }
    
    .header-container {
        padding: 0 15px;
    }
    
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }
    
    .logo {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }
    
    nav#main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    nav#main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    nav ul.horizontal-list {
        flex-direction: column;
        align-items: center;
        gap: 0;
        width: 100%;
        padding: 20px 0;
        margin: 0;
    }
    
    nav ul.horizontal-list li {
        margin: 12px 0;
        width: 100%;
        text-align: center;
    }
    
    nav ul.horizontal-list li:not(:last-child)::after {
        content: '';
        margin: 0;
    }
    
    .mobile-menu-toggle.active i:before {
        content: "\f00d"; /* FontAwesome X-Symbol */
    }
}

/* Hero section */
.hero {
    padding: 80px 0;
    background-color: var(--light-bg);
    text-align: center;
}

.hero h1 {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    margin-top: 0.5em;
}

.hero p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
    color: var(--secondary-color);
}

.section {
    padding: 80px 0;
}

.section:nth-child(odd) {
    background-color: var(--light-bg);
}

.section-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.section:nth-child(even) .section-content {
    flex-direction: row-reverse;
}

.text-content {
    flex: 1;
}

.image-content {
    flex: 1;
    text-align: center;
}

.image-content img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

h3 {
    font-size: 24px;
    margin: 20px 0 15px;
    color: var(--secondary-color);
}

p {
    margin-bottom: 15px;
}

ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.cta {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.cta:hover {
    background-color: #e78208;
}

footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section a {
    color: var(--light-bg);
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.copyright {
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 14px;
    background: #222;
    color: #fff;
    border-radius: 8px;
    padding: 24px 20px 18px 20px;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.copyright .impressum-link {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 8px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 12px;
    margin-top: 4px;
    transition: background 0.2s;
}

.copyright .impressum-link:hover {
    background: #e78208;
}

.copyright hr {
    border: 0;
    border-top: 1.5px solid rgba(255,255,255,0.15);
    margin: 18px 0 14px 0;
}

/* Responsive Design */
@media (max-width: 900px) {
    .container {
        padding: 0 15px;
    }
    
    .section-content {
        flex-direction: column !important;
        gap: 30px;
    }
    
    .text-content, .image-content {
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-section {
        width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 500px) {
    .affiliate-banner {
        font-size: 13px;
        line-height: 1.3;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .hero {
        padding: 50px 0;
    }
    
    .hero h1 {
        font-size: 22px;
        margin-top: 1.2em;
    }
    
    .section {
        padding: 40px 0;
    }
    
    h2 {
        font-size: 24px;
    }
    
    h3 {
        font-size: 20px;
    }
    
    .cta {
        width: 100%;
        text-align: center;
    }
}
