/* --- CSS VARIABLEN FÜR WÄRME UND HARMONIE --- */
:root {
    --bg-creme: #FAF8F5;
    /* Sehr warmer, heller Sand-Hintergrund */
    --text-dark: #333939;
    /* Weiches Anthrazit statt hartem Schwarz */
    --text-muted: #666D6D;
    /* Für Untertitel */
    --accent-sage: #8BA88E;
    /* Beruhigendes Salbeigrün */
    --accent-sage-hover: #759178;
    /* Etwas dunkleres Grün für Hover */
    --card-bg: #FFFFFF;
    /* Weiß für Kacheln, um sie abzuheben */

    /* Weiche Radien und Schatten für das "Schweben" */
    --radius-large: 24px;
    --radius-small: 12px;
    --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.08);
}

/* --- GRUNDLAGEN & RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-creme);
    color: var(--text-dark);
    font-family: 'Nunito', sans-serif;
    /* Weiche, empathische Schrift für Fließtext */
    font-size: 1.1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: 'Montserrat', sans-serif;
    /* Moderne, runde Schrift für Titel */
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1100px;
    /* Hier liegt der Schlüssel für die Breite */
    margin: 0 auto;
    padding: 0 2rem;
    /* Dieser seitliche Abstand darf nicht überschrieben werden */
}

/* --- SITE HEADER & LOGO --- */
.site-header {
    padding: 1rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
}

.logo-title {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.nav-link {
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-sage);
}

/* --- HERO BEREICH (STARTSEITE) --- */
.hero {
    padding: 1rem 0 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* --- DIE WEICHE (ZWEI SÄULEN STARTSEITE) --- */
.pillars {
    padding: 1rem 0 3rem;
}

.pillars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.pillar-card {
    background: var(--card-bg);
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.pillar-image {
    height: 250px;
    width: 100%;
    overflow: hidden;
}

.pillar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pillar-card:hover .pillar-image img {
    transform: scale(1.05);
}

.pillar-content {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pillar-content h2 {
    font-size: 1.6rem;
}

.pillar-content p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

/* --- KOMBINIERTES HEADER-BANNER (UNTERSEITEN) --- */
.hero-banner {
    position: relative;
    min-height: 400px;
    border-radius: var(--radius-large);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 4rem;
    box-shadow: var(--shadow-soft);
    padding: 3rem 2rem;
}

.hero-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(250, 248, 245, 0.70);
    z-index: 2;
}

.hero-banner-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.hero-banner-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.9), 0 0 40px rgba(255, 255, 255, 0.8);
}

.hero-banner-content p {
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.8;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.9), 0 0 30px rgba(255, 255, 255, 0.8);
}

/* --- THEMEN-GRID (UNTERSEITEN) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0 6rem;
}

.service-card {
    background: var(--card-bg);
    border-radius: var(--radius-large);
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-card h2,
.service-card h3 {
    font-size: 1.3rem;
    color: var(--accent-sage);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.text-link {
    font-weight: 600;
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.service-card:hover .text-link {
    color: var(--accent-sage);
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    background-color: var(--accent-sage);
    color: #FFF;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-align: center;
    transition: background-color 0.3s ease;
    align-self: flex-start;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--accent-sage-hover);
}

/* --- FOOTER & CONTACT FORMULAR --- */
.site-footer {
    background-color: #EBE5DB;
    padding: 3rem 0;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.footer-info p {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid transparent;
    border-radius: var(--radius-small);
    background-color: var(--bg-creme);
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    transition: border 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border: 1px solid var(--accent-sage);
}

.btn-submit {
    width: 100%;
    font-size: 1.1rem;
}

/* --- DETAIL-SEITEN (FEATURE ARTICLE LAYOUT) --- */
.detail-wrapper {
    /* WICHTIG: Hier wurden die seitlichen Paddings entfernt, damit der Container seine 2rem behält! */
    padding-top: 1rem;
    /* Weißraum oben drastisch reduziert */
    padding-bottom: 6rem;
}

/* Der Titel-Bereich oben */
.detail-header-top {
    margin-bottom: 1.5rem;
    /* Weißraum zwischen Text und Bild reduziert */
}

.back-link {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent-sage);
    margin-bottom: 1rem;
    /* Abstand nach unten halbiert */
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--accent-sage-hover);
}

.detail-header-top h1 {
    font-size: 3.2rem;
    /* Minimal kompakter */
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    /* Abstand zum Untertitel halbiert */
    letter-spacing: -1px;
}

.detail-header-top p.lead {
    font-size: 1.3rem;
    color: var(--text-muted);
    font-weight: 400;
    max-width: 800px;
    margin-bottom: 1rem;
    /* Abstand zum Bild massiv reduziert */
}

/* Die weiße Box im Feature-Article Layout */
.detail-card {
    background: var(--card-bg);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Das Panorama-Bild OBEN */
.detail-image {
    width: 100%;
    height: 450px;
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Der Text-Bereich DARUNTER, zentriert und ergonomisch schmal */
.detail-text {
    padding: 4rem;
    max-width: 850px;
    margin: 0 auto;
}

.detail-text h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.detail-text h2:not(:first-child) {
    margin-top: 3rem;
}

.detail-text p {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.detail-text ul {
    list-style: none;
    margin-bottom: 2.5rem;
    padding-left: 0;
}

.detail-text li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.detail-text li:last-child {
    margin-bottom: 0;
}

.detail-text li::before {
    content: "\2022";
    color: var(--accent-sage);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -2px;
}

.detail-cta {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #EBE5DB;
    text-align: center;
}

.detail-cta h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.detail-cta .btn {
    margin-top: 1rem;
    align-self: center;
}

/* --- RESPONSIVE DESIGN: MOBILE & TABLET --- */
@media (max-width: 768px) {

    .pillars-grid,
    .footer-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero {
        padding: 4rem 0 2rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-banner {
        min-height: 300px;
        padding: 2rem 1rem;
    }

    .hero-banner-content h1 {
        font-size: 2rem;
    }

    .detail-image {
        height: 250px;
    }

    .detail-text {
        padding: 2rem;
    }

    .detail-header-top h1 {
        font-size: 2.2rem;
    }
}
.footer-info h2 {
    font-size: 1.17em;
    margin-bottom: 1rem;
}

/* =========================================
   DETAIL PAGES V2 (NARRATIVE SPLIT LAYOUT)
   ========================================= */

.detail-v2-wrapper {
    max-width: 1000px; /* Let it breathe a bit */
    margin: 4rem auto;
    padding: 0 1.5rem;
}

.detail-v2-header {
    text-align: center;
    margin-bottom: 4rem;
}

.detail-v2-header h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 400;
    position: relative;
}

.detail-v2-header h1::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-sage);
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

.detail-v2-header .lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

.split-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 6rem;
}

.split-section.reverse {
    flex-direction: row-reverse;
}

.split-image-wrapper {
    flex: 1;
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    position: relative;
    /* Optional: Subtle transition for premium feel */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.split-image-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.split-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.split-content-wrapper {
    flex: 1;
}

.split-content-wrapper h2 {
    font-size: 1.8rem;
    color: var(--accent-sage);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.split-content-wrapper p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.split-content-wrapper ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.split-content-wrapper ul li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.split-content-wrapper ul li::before {
    content: "•";
    color: var(--accent-sage);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -2px;
}

/* Call to Action V2 */
.detail-v2-cta {
    background: var(--card-bg);
    border: 1px solid var(--accent-sage);
    border-radius: var(--radius-large);
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    margin-top: 4rem;
}

.detail-v2-cta h3 {
    font-size: 1.6rem;
    color: var(--accent-sage);
    margin-bottom: 1rem;
}

.detail-v2-cta p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .split-section,
    .split-section.reverse {
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 4rem;
    }
    
    .detail-v2-header h1 {
        font-size: 2rem;
    }
}

/* Copyright Overlay */
.image-copyright {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    color: var(--text-dark);
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-small);
    pointer-events: none;
    z-index: 10;
}
