:root {
    /* Color Palette - Landing Page (Unternehmer Gruppe) */
    --landing-bg: #1a1a1a;
    /* Dark Slate */
    --landing-text: #f0f0f0;
    --landing-accent: #d4af37;
    /* Gold */

    /* Color Palette - Energiemanagement (Sabine) */
    --energy-bg: #f4f9f4;
    /* Very light green/white */
    --energy-primary: #2e7d32;
    /* Green */
    --energy-secondary: #81c784;
    /* Light Green */
    --energy-text: #1b3a1b;

    /* Color Palette - Consulting (Maximilian) */
    --consulting-bg: #f0f4f8;
    /* Very light blue/white */
    --consulting-primary: #1565c0;
    /* Blue */
    --consulting-secondary: #64b5f6;
    /* Light Blue */
    --consulting-text: #0d2b4d;

    /* Common */
    --white: #ffffff;
    --transition-speed: 0.3s;
    --font-main: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed);
    cursor: pointer;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* --- Landing Page Styles --- */
body.landing-page {
    background-color: var(--landing-bg);
    color: var(--landing-text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.landing-hero {
    text-align: center;
    padding: 4rem 2rem;
    animation: fadeIn 1s ease-out;
}

.landing-hero h1 {
    font-size: 3rem;
    color: var(--landing-accent);
    margin-bottom: 0.5rem;
}

.landing-hero p {
    font-size: 1.2rem;
    opacity: 0.8;
}

.split-container {
    display: flex;
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    gap: 2rem;
}

.split-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all var(--transition-speed);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.split-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

.split-card h2 {
    font-size: clamp(1.2rem, 4vw, 2rem);
    margin-bottom: 1rem;
    hyphens: auto;
    word-break: break-word;
}

.split-card.energy:hover {
    border-color: var(--energy-secondary);
    box-shadow: 0 0 20px rgba(46, 125, 50, 0.3);
}

.split-card.consulting:hover {
    border-color: var(--consulting-secondary);
    box-shadow: 0 0 20px rgba(21, 101, 192, 0.3);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

/* --- Sub-page Styles --- */
.sub-page header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
}

.nav-links a {
    margin-left: 2rem;
    font-weight: 500;
}

.hero-section {
    padding: 6rem 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.content-section {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed);
}

.service-card:hover {
    transform: translateY(-5px);
}

/* Energy Specifics */
body.energy-page {
    background-color: var(--energy-bg);
    color: var(--energy-text);
    background-image: linear-gradient(rgba(244, 249, 244, 0.85), rgba(244, 249, 244, 0.85)), url('energy_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.energy-page .btn-primary {
    background-color: var(--energy-primary);
    color: var(--white);
}

.energy-page .btn-primary:hover {
    background-color: #1b5e20;
}

.energy-page .logo,
.energy-page h1,
.energy-page h2 {
    color: var(--energy-primary);
}

/* Consulting Specifics */
body.consulting-page {
    background-color: var(--consulting-bg);
    color: var(--consulting-text);
}

.consulting-page .btn-primary {
    background-color: var(--consulting-primary);
    color: var(--white);
}

.consulting-page .btn-primary:hover {
    background-color: #0d47a1;
}

.consulting-page .logo,
.consulting-page h1,
.consulting-page h2 {
    color: var(--consulting-primary);
}

/* About Section */
.about-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.about-image {
    flex: 0 0 250px;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.about-content {
    flex: 1;
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }
}

/* Footer */
footer {
    margin-top: auto;
    padding: 2rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

.landing-page footer {
    color: var(--landing-text);
}

.sub-page footer {
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .split-container {
        flex-direction: column;
    }

    .landing-hero h1 {
        font-size: 2rem;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Legal Pages */
.legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
}

.legal-container section {
    margin-bottom: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-container h2 {
    color: var(--landing-accent);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.legal-container h3 {
    color: var(--white);
    padding: 6rem 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.content-section {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed);
}

.service-card:hover {
    transform: translateY(-5px);
}

/* Energy Specifics */
body.energy-page {
    background-color: var(--energy-bg);
    color: var(--energy-text);
    background-image: linear-gradient(rgba(244, 249, 244, 0.85), rgba(244, 249, 244, 0.85)), url('energy_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.energy-page .btn-primary {
    background-color: var(--energy-primary);
    color: var(--white);
}

.energy-page .btn-primary:hover {
    background-color: #1b5e20;
}

.energy-page .logo,
.energy-page h1,
.energy-page h2 {
    color: var(--energy-primary);
}

/* Consulting Specifics */
body.consulting-page {
    background-color: var(--consulting-bg);
    color: var(--consulting-text);
}

.consulting-page .btn-primary {
    background-color: var(--consulting-primary);
    color: var(--white);
}

.consulting-page .btn-primary:hover {
    background-color: #0d47a1;
}

.consulting-page .logo,
.consulting-page h1,
.consulting-page h2 {
    color: var(--consulting-primary);
}

/* About Section */
.about-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.about-image {
    flex: 0 0 250px;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.about-content {
    flex: 1;
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }
}

/* Footer */
footer {
    margin-top: auto;
    padding: 2rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

.landing-page footer {
    color: var(--landing-text);
}

.sub-page footer {
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .split-container {
        flex-direction: column;
    }

    .landing-hero h1 {
        font-size: 2rem;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Legal Pages */
.legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
}

.legal-container section {
    margin-bottom: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-container h2 {
    color: var(--landing-accent);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.legal-container h3 {
    color: var(--white);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.legal-container p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* Team Section for Energy Page */
.team-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.team-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.team-card h3 {
    color: var(--energy-primary);
    margin-bottom: 0.5rem;
}

.team-card p {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.team-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
    text-align: left;
    width: 100%;
}

.team-card li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.team-card li::before {
    content: "✓";
    color: var(--energy-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}