/* Globale Variablen für einfaches Branding */
:root {
    --primary-color: #0b2240; /* Tiefblau / Anthrazit analog myEnergySolutions */
    --accent-color: #ff9900;  /* Solar-Orange für Akzente */
    --text-color: #333333;
    --bg-light: #f8f9fa;
    --white: #ffffff;
}

/* Reset & Basis-Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

/* Header */
header {
    background-color: var(--white);
    border-bottom: 1px solid #eaeaea;
    padding: 20px;
    text-align: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.logo span {
    color: var(--accent-color);
}

/* Hero-Bereich */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a60 100%);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Layout-Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Grid-System für Text-/Bild-Wechsel */
.section-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .section-grid {
        grid-template-columns: 1fr 1fr;
    }
    .reverse {
        direction: rtl;
    }
    .reverse .text-block {
        direction: ltr;
    }
}

/* Typografie & visuelle Anker */
h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background-color: var(--accent-color);
    margin-top: 10px;
}

p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Highlight-Box für die Rolle von Solar Campus */
.highlight-box {
    background-color: var(--bg-light);
    border-left: 4px solid var(--accent-color);
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

/* Iframe-Einbindung */
.iframe-container {
    background-color: var(--bg-light);
    padding: 60px 20px;
    text-align: center;
}

.iframe-container h2 {
    text-align: center;
    margin-bottom: 40px;
}

.iframe-container h2::after {
    margin: 10px auto 0 auto;
}

.iframe-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

iframe {
    border: none;
    display: block;
    margin: 0 auto;
}

/* Footer & Kontakt */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 20px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

/* Schützt die E-Mail-Adresse vor Standard-Scrapern */
.reverse-email {
    unicode-bidi: bidi-override;
    direction: rtl;
    display: inline-block;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-info p {
    margin-bottom: 10px;
    opacity: 0.85;
}

.footer-info a {
    color: var(--white);
    text-decoration: underline;
}

.footer-info a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.7;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-bottom a {
    color: var(--white);
    text-decoration: none;
    margin-left: 15px;
}

.footer-bottom a:hover {
    text-decoration: underline;
}
