/*
 * CHANGELOG 2024-07-10 (5P4S-TLD-C-M-MP):
 * - max-width und margin aus .intro-text, .image-text-box, .intro-section-2 .intro-two-column, .expertise-grid, .leistungen-grid entfernt
 * - Breitensteuerung erfolgt jetzt ausschließlich über .main-container
 * - Ziel: Einheitliche, zentrale Layoutsteuerung, bessere Wartbarkeit, keine Redundanzen
 * - Validiert: Layout auf Start- und Kontaktseite ist jetzt konsistent
 */
Mhm/* ==========================================================================
   SECTIONS.CSS
   ==========================================================================
   Enthält seitenspezifische Bereiche, Content-Sections und spezielle Layouts.
*/

/* ==========================================================================
   INHALTSVERZEICHNIS
   ==========================================================================

   1. Header.............................................Zeile 50
      1.1 Header-Basis...................................Zeile 55
      1.2 Top-Header.....................................Zeile 70
      1.3 Hero-Sektion (Startseite)......................Zeile 85
         1.3.1 Hero-Container............................Zeile 90
         1.3.2 Hero-Content..............................Zeile 105
         1.3.3 Hero-Logo.................................Zeile 120
      1.4 Subpage-Header................................Zeile 135
         1.4.1 Subpage-Hero..............................Zeile 140
         1.4.2 Back-Button...............................Zeile 155

   2. Content-Sektionen..................................Zeile 170
      2.1 Intro-Section..................................Zeile 175
      2.2 Expertise-Section..............................Zeile 190
      2.3 Image-Text-Box................................Zeile 205
      2.4 CTA-Sektion...................................Zeile 220
      2.5 Leistungen-Sektion.............................Zeile 235
      2.6 Kontakt-Sektion.................................Zeile 250

   3. Footer............................................Zeile 270
      3.1 Footer-Basis...................................Zeile 275
      3.2 Footer-Links...................................Zeile 280
*/

/* ==========================================================================
   1. Header
   ========================================================================== */

/* 1.1 Header-Basis
   ========================================================================== */
.header {
    width: 100%;
    position: relative;
    background-color: var(--primary-color);
    color: var(--white);
    margin: 0;
    padding: 0;
}

/* 1.2 Top-Header
   ========================================================================== */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    background-color: var(--primary-color);
    min-height: 60px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (min-width: 1200px) {
    .top-header {
        padding: 0.5rem 4rem;
    }
}

@media (min-width: 1600px) {
    .top-header {
        padding: 0.5rem 6rem;
    }
}

@media (min-width: 2000px) {
    .top-header {
        padding: 0.5rem 8rem;
    }
}

.header-left {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.header-center {
    flex: 1;
    display: flex;
    align-items: center;
    padding-left: 4rem;
}

.header-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2rem;
    margin-left: auto;
}

.logo {
    height: 25px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.phone-number {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-size-small-fluid);
    height: 25px;
}

.phone-number svg {
    width: 16px;
    height: 16px;
}

.header-right .cta-button,
.header-right .button-on-blue {
    height: 25px;
    padding: 0.2rem 1rem 0;
    font-size: var(--font-size-small-fluid);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.header-right .button-on-blue:hover {
    background-color: var(--secondary-color-bright) !important;
}

@media (min-width: 769px) {
    .header-right .button-on-blue {
        padding: 0.2rem 1rem 0;
    }
}

/* ===== HAMBURGER MENU STYLES ===== */

/* Mobile Menu Toggle (hidden checkbox) */
.mobile-menu-toggle {
    display: none;
}

/* Hamburger Button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    background: none;
    border: none;
    padding: 0;
    transition: all 0.3s ease;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger Animation when active */
.mobile-menu-toggle:checked + .hamburger-btn .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background-color: white;
}

.mobile-menu-toggle:checked + .hamburger-btn .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle:checked + .hamburger-btn .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background-color: white;
}

/* Fullscreen Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--primary-color); /* Schlichte Header-Farbe ohne Gradient */
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
    overflow: hidden;
}

/* Show overlay when toggle is checked */
.mobile-menu-toggle:checked ~ .mobile-menu-overlay {
    right: 0;
}

/* Menu Content Container */
.mobile-menu-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Linksbündig statt center */
    height: 100%;
    padding: 2rem;
    text-align: left; /* Linksbündig */
    max-width: 400px; /* Maximale Breite für bessere Kontrolle */
    margin: 0 auto; /* Zentriert den Container selbst */
}

/* Mobile Navigation */
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
    width: 100%; /* Volle Breite für einheitliche Ausrichtung */
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: white;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 300;
    font-family: 'Playfair Display', serif;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    text-align: left; /* Linksbündig */
}

/* Staggered animation delay for nav links */
.mobile-menu-toggle:checked ~ .mobile-menu-overlay .mobile-nav-link:nth-child(1) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.1s;
}

.mobile-menu-toggle:checked ~ .mobile-menu-overlay .mobile-nav-link:nth-child(2) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.2s;
}

.mobile-menu-toggle:checked ~ .mobile-menu-overlay .mobile-nav-link:nth-child(3) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.3s;
}

.mobile-menu-toggle:checked ~ .mobile-menu-overlay .mobile-nav-link:nth-child(4) {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.4s;
}

.mobile-nav-link:hover {
    transform: translateX(-10px);
    color: var(--secondary-color);
}

.nav-text {
    position: relative;
}

.nav-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.mobile-nav-link:hover .nav-text::after {
    width: 100%;
}

/* Mobile Contact Section */
.mobile-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start; /* Linksbündig */
    width: 100%; /* Volle Breite */
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:checked ~ .mobile-menu-overlay .mobile-contact {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

/* Telefon-Button mit gleicher Breite */
.mobile-phone-link {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Inhalt linksbündig */
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-size: var(--font-size-small-fluid);
    font-weight: 400;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    padding: 0.8rem 1.2rem; /* Höher gemacht */
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    background: transparent;
    width: 100%; /* Gleiche Breite wie Kontakt-Button */
    box-sizing: border-box;
}

.mobile-phone-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.mobile-phone-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0; /* Icon behält Größe */
}

/* Kontakt Button mit gleicher Breite */
.mobile-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.2rem; /* Höher gemacht */
    background: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    font-size: var(--font-size-small-fluid);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%; /* Gleiche Breite wie Telefon-Button */
    box-sizing: border-box;
}

.mobile-contact-btn:hover {
    background: var(--secondary-color-dark);
    transform: translateY(-1px);
}

/* Desktop: Hide hamburger, show main nav */
@media (min-width: 1024px) {
    .hamburger-btn,
    .mobile-menu-overlay {
        display: none !important;
    }
    
    .main-nav {
        display: flex !important;
    }
}

/* Mobile: Show hamburger, hide main nav */
@media (max-width: 1023px) {
    .main-nav {
        display: none !important;
    }
    
    .hamburger-btn {
        display: flex !important;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .mobile-nav-link {
        font-size: 2rem;
        gap: 1rem;
    }
    
    .mobile-menu-content {
        padding: 1.5rem;
    }
    
    .mobile-nav {
        gap: 1.5rem;
        margin-bottom: 3rem;
    }
}

@media (max-width: 480px) {
    .mobile-nav-link {
        font-size: 1.8rem;
    }
    
    .nav-number {
        font-size: 1rem;
        min-width: 2.5rem;
    }
}

/* 1.3 Hero-Sektion (Startseite)
   ========================================================================== */
.hero {
    position: relative;
    width: 100%;
    height: 600px; /* Basis-Höhe für Desktop */
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 60px; /* Entspricht der Höhe des Top-Headers */
}

/* Ab 1025px: Vollbildschirm-Hero */
@media (min-width: 1025px) {
    .hero {
        height: 100vh; /* Volle Bildschirmhöhe */
    }
}

/* Responsive Hero-Höhen für verschiedene Bildschirmgrößen */
@media (min-width: 1200px) {
    .hero {
        height: 100vh; /* Bleibt bei 100vh für große Bildschirme */
    }
}

@media (min-width: 1600px) {
    .hero {
        height: 100vh; /* Bleibt bei 100vh für sehr große Bildschirme */
    }
}

@media (max-width: 1024px) {
    .hero {
        height: 500px; /* Kleinere Bildschirme unter 1025px */
    }
}

@media (max-width: 992px) {
    .hero {
        height: 400px; /* Tablets */
    }
}

/* Intro-Bild unter Willkommen-Abschnitt */
.intro-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    padding: 2rem 0 2.5rem 0;
}
.intro-image-representative {
    width: 100%;
    max-width: 1400px;
    aspect-ratio: 16/6;
    object-fit: cover;
    object-position: center 80%;
    border: none;
    border-radius: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    display: block;
    margin: 0 auto;
    margin-top: 6rem;
}

@media (max-width: 600px) {
    .intro-image-representative {
        margin-top: 1.2rem;
    }
}

/* Hero-Overlay Fix */
.hero {
    position: relative;
    overflow: hidden;
}
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/steiner_web_21.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(26, 54, 93, 0.8), rgba(26, 54, 93, 0.9));
    z-index: 1;
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content-logo {
    filter: brightness(0) invert(1);
    max-width: clamp(200px, 25vw, 400px);
    height: auto;
}

/* 1.4 Subpage-Header (für andere Seiten)
   ========================================================================== */
.subpage-hero {
    position: relative;
    width: 100%;
    height: 500px;
    background-image: url('../img/steiner_web_21.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 60px;
}

.subpage-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(26, 54, 93, 0.8), rgba(26, 54, 93, 0.9));
}

.subpage-hero-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.subpage-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: var(--font-size-h1-fluid);
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: white;
    position: relative;
    z-index: 1;
    padding: 0 1rem;
}

/* ==========================================================================
   2. Content-Sektionen
   ========================================================================== */

/* 2.1 Intro-Section
   ========================================================================== */
.intro-section {
    padding: 5rem 5rem 0 5rem;
    margin: 0;
    position: relative;
    background-color: var(--white);
}


.intro-text {
    text-align: center; /* Text zentrieren */
}

.intro-text h2 {
    color: var(--primary-color);
    font-size: var(--font-size-h2-fluid);
    margin-bottom: 1.5rem;
    text-align: center; /* Überschrift zentrieren */
}

.intro-text p {
    color: var(--text-color);
    font-size: var(--font-size-text-fluid);
    line-height: 1.6;
    text-align: center;
}

/* 2.2 Intro-Section-2
   ========================================================================== */
.intro-section-2 {
    padding: 5rem 5rem 0 5rem;
    margin: 0;
    position: relative;
    background-color: var(--white);
}

/* Zwei-spaltiges Layout für intro-section-2 */
.intro-section-2 .intro-two-column {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.intro-section-2 .intro-left,
.intro-section-2 .intro-right {
    flex: 1;
    width: 50%;
}

.intro-section-2 .intro-left .intro-text {
    text-align: left;
}

.intro-section-2 .intro-left .intro-text h2 {
    color: var(--primary-color);
    font-size: var(--font-size-h2-fluid);
    margin-bottom: 1.5rem;
    text-align: left;
}

.intro-section-2 .intro-left .intro-text p {
    color: var(--text-color);
    font-size: var(--font-size-text-fluid);
    line-height: 1.6;
    text-align: left;
}



/* Gemeinsame Oberklasse für alle Hauptsektionen der Seiten */
.page-section {
    padding: 5rem 5rem 0 5rem; /* Einheitliches padding: 5rem oben, 5rem links/rechts, 0rem unten */
    margin: 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    margin-top: 0; /* Kein zusätzlicher Abstand nach oben, da bereits durch Padding in .page-section definiert */
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: var(--font-size-h2-fluid);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Gemeinsame Kartenklasse für Expertise und Leistungen */
.card-base, .expertise-card, .leistung-card {
    background: white;
    padding: 2.2rem 2.5rem;
    border: 1px solid rgba(26, 54, 93, 0.15);
    border-bottom: 2px solid rgba(26, 54, 93, 0.25);
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    height: calc(100% - 1.5rem);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Dezenter Akzent am unteren Rand */
.card-base::after, .expertise-card::after, .leistung-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    opacity: 0.3;
}

.card-base h3, .expertise-card h3, .leistung-card h3 {
    color: var(--primary-color);
    font-size: var(--font-size-h3-fluid);
    margin-bottom: 1rem;
    font-weight: 600;
}

.expertise-content p {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: var(--font-size-text-fluid);
    line-height: 1.5;
}

.expertise-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.expertise-content li {
    color: var(--text-color);
    padding: 0.35rem 0;
    font-size: var(--font-size-text-fluid);
    position: relative;
    padding-left: 1.25rem;
    line-height: 1.3;
}

.expertise-content li::before {
    content: "—";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0.35rem;
}

/* 2.3 Image-Text-Box
   ========================================================================== */
.image-text-box {
    display: flex;
    align-items: flex-start; /* Text und Bild oben ausrichten */
    gap: 1.5rem; /* Gap von 2rem auf 1.5rem reduziert */
    background: white;
    padding: 0.5rem; /* Basis-Padding */
    border: none !important; /* Explizit alle Borders entfernen */
    outline: none !important; /* Explizit alle Outlines entfernen */
    box-shadow: none !important; /* Explizit alle Schatten entfernen */
    transition: all 0.3s ease;
}

/* Content Section Container-System für Abstände */
.content-section {
    background-color: var(--white);
    padding: 0; /* Generell kein padding oben und unten */
}

.content-section-first {
    padding-top: 8rem; /* 128px - Erste content-section bekommt oben Padding */
}

.content-section-last {
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    padding-bottom: 8rem; /* 128px - Letzte Section bekommt unten Padding */
}

.last {
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    padding-bottom: 8rem; /* 128px - Letzte Section bekommt unten Padding */
}

/* Standard Content Bereiche */
.text-content {
    flex: 0 0 50%;
    padding-right: 0.5rem;
}

.image-content {
    flex: 0 0 50%;
    position: relative;
    display: flex;
    justify-content: center;
}

/* Layout-Varianten */
.image-text-box.reverse {
    flex-direction: row-reverse;
}

.image-text-box.reverse-layout {
    flex-direction: row-reverse;
    align-items: center;
}

.image-text-box.reverse .text-content,
.image-text-box.reverse-layout .text-content {
    padding-right: 0;
    padding-left: 0.5rem;
}

.image-text-box:last-child {
    margin-bottom: 0;
}

.text-content h2 {
    color: var(--primary-color);
    font-size: var(--font-size-h2-fluid);
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: left;
}

.text-content p {
    color: var(--text-color);
    font-size: var(--font-size-text-fluid);
    line-height: 1.5;
    margin: 0;
}

.image-content img {
    width: 90%; /* Nicht mehr volle Breite, sondern nur 90% */
    aspect-ratio: 16/9; /* 16:9 Seitenverhältnis für alle Bilder */
    object-fit: cover;
    border: none; /* Kein Rahmen */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08); /* Subtiler Schatten */
}

/* Bild rechts: Dezenter Schatten statt Überlappung */
.image-text-box .image-content img {
    border-radius: 4px; /* Keine abgerundeten Ecken */
}

/* Bild links: Dezenter Schatten statt Überlappung */
.image-text-box.netzwerk-section .image-content img {
    border-radius: 0; /* Keine abgerundeten Ecken */
    margin-left: 0; /* Kein negativer Margin mehr */
}

/* Rahmen der Box entfernen für ein saubereres Design */
.image-text-box {
    border: none;
    overflow: visible;
}
.image-text-box .image-content img,
.image-text-box.reverse .image-content img {
    background: #fff;
}



.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

/* 2.5 CTA-Sektion
   ========================================================================== */
.cta-section {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 4rem 2rem;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: var(--font-size-h2-fluid);
    margin-bottom: 1.5rem;
    color: var(--white);
}

.cta-content p {
    font-size: var(--font-size-text-fluid);
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* 2.6 Leistungen-Sektion
   ========================================================================== */
.leistungen-section {
    /* Padding wird jetzt von .page-section übernommen */
    /* margin: 0; -- Entfernt, da jetzt in .page-section definiert */
    /* background-color: var(--white); -- Entfernt, da jetzt in .page-section definiert */
}

/* Entfernt, da es die gemeinsamen Stile überschreibt und zu Inkonsistenzen führt */
/* .leistungen-section h2 {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--primary-color);
    font-size: 2.2rem;
} */

.leistungen-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Spezifische Eigenschaften für leistung-card, falls nötig */
.leistung-card {
    /* Alle gemeinsamen Eigenschaften werden von .card-base geerbt */
}

.leistung-card h3 {
    font-weight: 600; /* Spezifische Eigenschaft nur für leistung-card */
}

.leistung-card .expertise-content p {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: var(--font-size-text-fluid);
    line-height: 1.5;
}

.leistung-card .expertise-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.leistung-card .expertise-content li {
    color: var(--text-color);
    padding: 0.35rem 0;
    font-size: var(--font-size-text-fluid);
    position: relative;
    padding-left: 1.25rem;
    line-height: 1.3;
}

.leistung-card .expertise-content li::before {
    content: "—";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0.35rem;
}

.leistung-card .cta-button {
    align-self: flex-end;
    margin-top: 1.5rem;
    display: inline-block;
}

/* Neue CTA-Bereich unterhalb der Leistungskarten */
.leistungen-cta {
    margin-top: 2.5rem;
    background: var(--primary-color, #1a365d);
    color: #fff;
    border-radius: 10px;
    padding: 2.5rem 1.5rem 2.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 24px rgba(26,54,93,0.08);
}

.leistungen-cta-inner {
    max-width: 600px;
    margin: 0 auto;
}

.leistungen-cta h2 {
    font-size: var(--font-size-h2-fluid);
    margin-bottom: 0.7em;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.leistungen-cta p {
    font-size: var(--font-size-text-fluid);
    margin-bottom: 1.5em;
}

.cta-main-button {
    height: 25px;
    padding: 0.2rem 1rem 0;
    font-size: var(--font-size-small-fluid);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.cta-main-button:hover {
    background: var(--secondary-color-dark);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .leistungen-section {
        padding: 2rem;
    }
    
    .leistungen-grid {
        grid-template-columns: 1fr;
    }
}

/* 2.6.1 Footer-CTA-Sektion (für Leistungen-Seite)
   ========================================================================== */
/* Einheitliche CTA-Sektion für alle Seiten */
.blue-cta-section {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 6rem 2rem 3rem;
    margin: 0; /* Alle Margins entfernen */
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
    z-index: 10;
    border: none;
    outline: none;
    box-shadow: none;
}

.blue-cta-inner {
    max-width: 1400px; /* Angepasst an die Kontaktseite */
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.blue-cta-inner h2 {
    color: var(--white);
    font-size: var(--font-size-h2-fluid);
    margin-bottom: 1.5rem;
    white-space: nowrap; /* Verhindert Zeilenumbrüche bei kurzen Titeln */
    overflow-wrap: break-word; /* Erlaubt Umbrüche nur bei sehr langen Wörtern */
}

/* Responsive Anpassung für kleinere Bildschirme */
@media (max-width: 1024px) {
    .blue-cta-inner h2 {
        white-space: normal; /* Erlaube Zeilenumbrüche auf kleineren Bildschirmen */
    }
}

.blue-cta-inner p {
    color: var(--white);
    font-size: var(--font-size-text-fluid);
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.9;
}

.blue-cta-inner .cta-button-footer {
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 3px;
    font-weight: bold;
    height: 25px;
    padding: 1.8rem 1.6rem;
    font-size: var(--font-size-2xl);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-button-footer:hover {
    background-color: var(--secondary-color-bright);
}




/* Behalte die alte Klasse für Abwärtskompatibilität */
.footer-cta-section {
    background-color: var(--gray-100);
    padding: 4rem 0;
    margin-top: 2rem;
}

.footer-cta-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}

.footer-cta-inner h2 {
    color: var(--primary-color);
    font-size: var(--font-size-h2-fluid);
    margin-bottom: 1.5rem;
}

.footer-cta-inner p {
    color: var(--text-color);
    font-size: var(--font-size-text-fluid);
    margin-bottom: 2rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .footer-cta-section {
        padding: 3rem 0;
    }
    
    /* Schriftgrößen werden jetzt von flüssigen Variablen gehandhabt */
}

@media (max-width: 576px) {
    .footer-cta-section {
        padding: 2rem 0;
    }
    
    /* Schriftgrößen werden jetzt von flüssigen Variablen gehandhabt */
}

/* 2.7 Kontakt-Sektion
   ========================================================================== */
.kontakt-section {
    /* Padding wird jetzt von .page-section übernommen */
    /* margin-top: 60px; -- Entfernt, da jetzt in .page-section definiert */
}

.button-on-blue:not(.header-right .button-on-blue) {
    padding: 1rem 2rem;
    border-radius: 3px;
}

@media (max-width: 768px) {
    .header-right .cta-button,
    .header-right .button-on-blue {
        padding: 0.2rem 1rem 0;
    }
}

@media (min-width: 769px) {
    .header-right .cta-button,
    .header-right .button-on-blue {
        padding: 0.2rem 1rem 0;
    }
}

/* Fix for CSS errors at lines 448, 452 */
@media (max-width: 768px) {
    .header-right .cta-button,
    .header-right .button-on-blue {
        padding: 0.2rem 1rem 0;
    }
}

/* Fix for CSS errors at lines 448, 452, 453 */
@media (min-width: 769px) {
    .header-right .cta-button,
    .header-right .button-on-blue {
        padding: 0.2rem 1rem 0;
    }
}

.kontakt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.kontakt-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.info-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.info-card h2 {
    font-size: var(--font-size-h2-fluid);
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-family: inherit; /* Schriftfamilie an .kontakt-form h2 angleichen */
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: var(--font-size-h3-fluid);
}

.info-card p {
    color: var(--text-color);
    line-height: 1.6;
    margin-top: 0.25rem;
    margin-bottom: 1rem;
}

.map-container {
    width: 100%;
    height: 300px;
    border-radius: 4px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.kontakt-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 0; /* Entfernt da jetzt in .contact-form geregelt */
}

.contact-form .kontakt-form {
    margin-top: 0; /* Kein zusätzlicher Abstand da bereits in .contact-form */
}

.kontakt-form h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: var(--font-size-h2-fluid);
    font-family: 'Montserrat', sans-serif;
}

.kontakt-form p {
    color: var(--text-color);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* Screen reader only labels */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.3rem !important;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: var(--font-size-text-fluid);
    min-height: auto;
    height: auto; /* feste Höhe entfernen */
}

.form-group textarea {
    height: 8rem;
    resize: vertical;
}

.submit-button {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: var(--font-size-text-fluid);
    transition: background-color 0.3s ease;
    outline: none;
}

.submit-button:focus-visible {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.submit-button:hover {
    background: var(--secondary-color);
}

/* Contact container layout */
.contact-container {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-details {
    flex: 1;
}

.contact-image {
    flex: 0 0 35%;
    max-width: 35%;
}

.contact-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.contact-form {
    width: 100%;
    margin-top: 1.5rem;
    clear: both;
}

/* Legacy building image styles (fallback) */
.building-image {
    text-align: center;
    margin-bottom: 2rem;
}

.building-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

@media (max-width: 992px) {
    .kontakt-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .contact-image {
        flex: none;
        max-width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .kontakt-section {
        padding: 1rem;
    }
    
    .info-cards {
        gap: 1rem;
    }
    
    .kontakt-form {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   3. Footer
   ========================================================================== */

/* 3.1 Footer-Basis
   ========================================================================== */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2rem;
    position: relative;
    z-index: 10;
    margin: 0;
    margin-top: -1px;
    margin-bottom: 0;
    border: none;
    outline: none;
    box-shadow: none;
}

.footer .section-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.footer p {
    margin: 0;
    font-size: var(--font-size-small-fluid);
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-left {
    color: var(--white);
    font-size: var(--font-size-small-fluid);
}

.footer-right {
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* 3.2 Footer-Links
   ========================================================================== */
.footer a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer a:hover {
    opacity: 1;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer .section-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-right {
        gap: 1rem;
    }
}

.main-nav {
    display: flex;
    gap: 3.5rem;
    align-items: center;
    height: 100%;
    position: relative;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-size: var(--font-size-small-fluid);
    padding: 0.5rem 0;
    position: relative;
    transition: opacity 0.3s ease;
}

.nav-link:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: -1.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.3);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--white);
    transition: width 0.3s ease;
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link:hover {
    opacity: 0.9;
}

/* Panel Layouts
   ========================================================================== */
.panel-two-column-layout {
    width: 100%;
    margin: 2rem 0;
    padding: 2rem;
    background: #fff;
    overflow: hidden; /* Verhindert Margin-Collapse */
}

.text-column {
    width: 70%;
    float: left;
    padding-right: 2rem;
    box-sizing: border-box;
}

.image-column {
    width: 30%;
    float: left;
    box-sizing: border-box;
}

.image-column img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

/* Layout-Varianten */
.layout-text-image .text-column {
    float: left;
}
.layout-text-image .image-column {
    float: right;
}

.layout-image-text .text-column {
    float: right;
}
.layout-image-text .image-column {
    float: left;
}

.responsive-break {
    white-space: nowrap;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    line-height: inherit;
}
@media (max-width: 600px) {
    .responsive-break {
        display: block;
        white-space: normal;
    }
}

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
}

@media (max-width: 600px) {
    .section-container,
    .main-container,
    .legal-container {
        padding-left: 0rem;
        padding-right: 0rem;
    }
}

@media (min-width: 1920px) {
    .section-container,
    .main-container {
        max-width: 1600px; /* Erweiterte maximale Breite für große Bildschirme */
    }
    
    /* Ensures proper spacing on ultra-wide screens */
    .intro-section {
        padding: 5rem 5rem 0rem 5rem;
    }
}

@media (min-width: 2560px) {
    .section-container,
    .main-container {
        max-width: 2000px; /* Noch größere maximale Breite für 4K+ Bildschirme */
    }
    
/* Neue Klasse für Button im Footer-CTA */
.cta-button-footer {
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 3px;
    font-weight: bold;
    height: 25px;
    padding: 0.2rem 1rem 0;
    font-size: var(--font-size-small-fluid);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-button-footer:hover {
    background-color: var(--secondary-color-dark) !important;
}
    /* Ultra-wide screen optimizations */
    .intro-section {
        padding: 5rem 5rem 0rem 5rem;
    }
}
/* Hover-Farbe für Button im CTA-Bereich */
.blue-cta-inner .button-on-blue:hover {
    background-color: #ff0000 !important;
}
