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 Parallax-Sektion..............................Zeile 220
      2.5 CTA-Sektion...................................Zeile 235
      2.6 Leistungen-Sektion.............................Zeile 250
      2.7 Kontakt-Sektion.................................Zeile 265

   3. Footer............................................Zeile 250
      3.1 Footer-Basis...................................Zeile 255
      3.2 Footer-Links...................................Zeile 270
*/

/* ==========================================================================
   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: 4px;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

@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 */
    }
}

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

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: var(--font-size-h1-fluid);
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    padding: 0 1rem;
}

.hero-content p {
    font-size: var(--font-size-text-fluid);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

/* 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: 6rem 8rem; /* Padding oben von 4rem auf 6rem erhöht */
    margin: 0;
    position: relative;
    background-color: var(--white); /* Gleiche Hintergrundfarbe wie andere Abschnitte */
}

.intro-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(to right, 
        rgba(26, 54, 93, 0), 
        rgba(26, 54, 93, 0.3), /* Stärkere Opazität für bessere Sichtbarkeit */
        rgba(26, 54, 93, 0.3), 
        rgba(26, 54, 93, 0)
    );
    z-index: 5; /* Z-index hinzufügen für bessere Sichtbarkeit */
    min-height: 1px; /* Mindesthöhe sicherstellen */
}

.intro-text {
    max-width: 1400px;
    margin: 0 auto;
    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; /* Fließtext zentrieren */
    max-width: 800px; /* Begrenzte Breite für bessere Lesbarkeit */
    margin-left: auto;
    margin-right: auto;
}

/* 2.2 Expertise-Section
   ========================================================================== */
.expertise-section {
    padding: 6rem 8rem; /* Padding oben von 4rem auf 6rem erhöht */
    margin: 0;
    background-color: var(--white);
}

/* Gemeinsame Oberklasse für alle Hauptsektionen der Seiten */
.page-section {
    padding: 4rem 8rem 2rem 8rem; /* Einheitliches padding: 4rem oben, 8rem links/rechts, 2rem 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;
    max-width: 1400px;
    margin: 0 auto;
}

/* 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 */
    margin: 0 auto; /* Margin-bottom komplett entfernt */
    max-width: 1400px;
    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-h3-fluid);
    margin-bottom: 1rem;
    font-weight: 600;
}

.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: 0; /* 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;
}

/* 2.4 Parallax-Sektion
   ========================================================================== */
.parallax-section {
    position: relative;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.parallax-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(26, 54, 93, 0.7), rgba(26, 54, 93, 0.7)), url('../img/steiner_web_14.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    z-index: -1;
}

.parallax-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    width: 100%;
}

.parallax-heading {
    font-size: var(--font-size-h1-fluid);
    font-weight: 600;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    max-width: 80%;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .parallax-section {
        height: 60vh;
        min-height: 60vh;
    }
    
    .parallax-section::before {
        /* Auf mobilen Geräten funktioniert position: fixed nicht gut mit Scrolling */
        position: absolute;
        background-attachment: scroll;
    }
    
    /* Schriftgrößen werden jetzt von flüssigen Variablen gehandhabt */
}

@media (max-width: 576px) {
    .parallax-section {
        height: 30vh;
        min-height: 30vh;
    }
    
    /* Schriftgrößen werden jetzt von flüssigen Variablen gehandhabt */
}

.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;
    max-width: 1400px;
    margin: 0 auto;
}

/* 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-color: var(--secondary-color-dark);
}

.cta-main-button:hover {
    background: var(--accent-color, #007bff);
    color: #fff;
}

@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: 4rem 2rem;
    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: 1200px; /* Erweitert von 800px auf 1200px für längere Titel */
    margin: 0 auto;
    padding: 0 2rem; /* Padding hinzufügen für bessere Ränder */
}

.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 .button-on-blue {
    background-color: var(--accent-color);
    color: var(--white);
}

/* 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;
}

@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 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;
}

.map-container {
    width: 100%;
    height: 300px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.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);
}

.kontakt-form h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.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);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: var(--font-size-text-fluid);
}

.form-group textarea {
    min-height: 120px;
    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(--primary-color-dark);
}

@media (max-width: 992px) {
    .kontakt-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@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: 1200px;
    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;
}

