@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
    --primary-blue: #1C2B4D;
    /* Deep Sapphire Navy */
    --accent-blue: #1C2B4D;
    --blue-overlay: rgba(28, 43, 77, 0.75);
    --bg-warm: #FAF9F6;
    /* Cream White */
    --bg-white: #FAF9F6;
    --text-main: #000000;
    /* Black text */
    --text-muted: #4A5568;
    --border-subtle: rgba(61, 80, 119, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(0, 0, 0, 0.08);
    --header-height: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Visibility Utilities */
.mobile-only {
    display: none !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-warm);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-bottom: 60px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

strong,
b {
    font-weight: 600;
}


/* --- Impact Typography (Reference Bam-Works) --- */

.impact-statement {
    font-size: 2.6rem;
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 60px;
    text-align: left;
    max-width: 850px;
}

.text-active {
    color: inherit;
    /* Inherits from section (White or Primary Blue) */
    opacity: 1;
    font-weight: 600;
}

.text-faded {
    opacity: 0.3;
}

.statement-block {
    margin-bottom: 80px;
}

.dark-section .text-active {
    color: white;
}

.dark-section .text-faded {
    color: rgba(255, 255, 255, 0.4);
    opacity: 1;
}

.light-section .text-active {
    color: var(--primary-blue);
}

.light-section .text-faded {
    color: var(--primary-blue);
    opacity: 0.3;
}


/* --- Impact Numbers (Black Section) --- */

.impact-row {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.impact-item {
    flex: 1;
}

.impact-item .big-number {
    font-family: 'Inter', sans-serif;
    font-size: 8rem;
    font-weight: 400;
    color: white;
    margin-bottom: 20px;
    letter-spacing: -0.05em;
}

/* --- Global Header Configuration --- */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    padding: 0 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 3000;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1), color 0.5s ease-in-out;
    background: transparent;
    color: var(--primary-blue); /* Standardmäßig Blau (für Desktop und Mobile) */
}

.main-header.scrolled {
    height: 80px;
    background: transparent;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: -5px;
    /* Fine-tune visual alignment */
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-logo {
    height: 55px; /* Von 80px reduziert für eine feinere Anmutung */
    width: auto;
    overflow: visible;
    fill: currentColor;
    display: block;
}

/* Logo Assembly Animation */
.logo-part {
    opacity: 0;
}

.logo-part-1 {
    animation: assemble 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.logo-part-2 {
    animation: assemble 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.logo-part-3 {
    animation: assemble 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

@keyframes assemble {
    0% {
        transform: translateY(20px) scale(0.8);
        opacity: 0;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.logo-text {
    display: flex;
    flex-direction: column;
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    overflow: hidden;
}

/* Scroll-away effect */
.main-header.scrolled .logo-text {
    opacity: 0;
    transform: translateX(-30px);
    max-width: 0;
    margin-left: -20px;
    pointer-events: none;
}

.logo-container .company-name {
    font-size: 1.4rem; /* Von 1.6rem reduziert für mobile Proportionen */
    font-weight: 400;
    color: inherit; /* Nutzt die Farbe des Headers (Blau) */
    letter-spacing: -0.01em;
    line-height: 1.1;
    transition: color 0.4s ease;
}

.logo-container .tagline {
    font-size: 0.58rem; /* Von 0.65rem reduziert für mobile Proportionen */
    color: inherit; /* Nutzt die Farbe des Headers (Blau) */
    opacity: 0.7;
    font-weight: 400;
    margin-top: 0;
    transition: color 1s ease-in-out, opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    text-transform: uppercase;
    letter-spacing: 0.33em;
    padding-left: 0.1em;
}

.menu-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    background: transparent;
    color: inherit; /* Folgt nun immer der Farbe des Logos (Blau oder Weiß) */
    padding: 10px 0;
    font-weight: 400;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: opacity 0.3s ease;
    letter-spacing: 0.1em;
}

.menu-btn:hover {
    opacity: 0.7;
}

/* --- Menu Overlay --- */

/* --- Menu Overlay (Screenshot Perfect) --- */

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 40%;
    right: 0;
    left: auto;
    height: 100%;
    background: var(--blue-overlay);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    z-index: 4000;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 160px 60px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.menu-branding {
    position: absolute;
    top: 40px;
    left: 80px;
    color: white;
}

.menu-branding .company-name,
.menu-branding .tagline {
    color: white;
}

.menu-branding h2 {
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.menu-branding span {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    opacity: 0.6;
}

.menu-close {
    position: absolute;
    top: 60px;
    right: 80px;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 400;
    letter-spacing: 0.15em;
    border: none;
    background: transparent;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.menu-close:hover {
    opacity: 1;
}

.menu-links {
    list-style: none;
    text-align: left;
    margin-top: 40px;
}

.menu-links li {
    margin: 15px 0;
    overflow: hidden;
}

.menu-links a {
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--bg-warm);
    display: block;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: -0.02em;
    transform: translateY(100%);
    opacity: 0;
    line-height: 1.2;
}

.menu-overlay.active .menu-links a {
    transform: translateY(0);
    opacity: 1;
}

.menu-links a:hover {
    color: rgba(255, 255, 255, 0.4);
    transform: translateX(20px);
}

.menu-overlay.active .menu-links li:nth-child(1) a {
    transition-delay: 0.1s;
}

.menu-overlay.active .menu-links li:nth-child(2) a {
    transition-delay: 0.15s;
}

.menu-overlay.active .menu-links li:nth-child(3) a {
    transition-delay: 0.2s;
}

.menu-overlay.active .menu-links li:nth-child(4) a {
    transition-delay: 0.25s;
}

.menu-overlay.active .menu-links li:nth-child(5) a {
    transition-delay: 0.3s;
}

/* --- Open Content Wrapper (Updated) --- */

/* --- Full-Screen Immersive Hero --- */

.full-hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 80px 80px 60px 80px; /* Von 100px auf 60px reduziert (noch tiefer gerückt) */
    color: white; /* Überschrift wieder Weiß für maximalen Kontrast auf Slide 1 */
    box-sizing: border-box;
    overflow: hidden;
    transition: color 1s ease;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
    transition: opacity 1.5s ease-in-out;
    opacity: 0;
}

.hero-bg.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(61, 80, 119, 0.15);
    z-index: -1;
    transition: background 1s ease;
}

/* Light theme for light backgrounds (e.g., titelbild 2) */
.full-hero.hero-theme-light {
    color: var(--primary-blue);
}

.full-hero.hero-theme-light .hero-overlay {
    background: rgba(255, 255, 255, 0.05);
    /* Very subtle to not wash out the blue text */
}

.full-hero.hero-theme-light .scroll-indicator {
    color: var(--primary-blue);
}

.full-hero.hero-theme-light .main-title {
    color: var(--primary-blue);
}

/* Header Response to Hero Themes */
.header-theme-light .logo-container .company-name,
.header-theme-light .logo-container .tagline,
.header-theme-light .site-logo {
    color: var(--primary-blue) !important;
}

.header-theme-light .menu-btn {
    color: var(--primary-blue) !important;
}



.full-hero .main-content-area {
    position: relative;
    z-index: 10;
}

.full-hero .main-title {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 7.5rem;
    line-height: 1.0;
    font-weight: 400;
    /* Wieder auf Regular für stärkere Präsenz auf Desktop */
    max-width: 1300px;
    letter-spacing: -0.03em;
    margin-bottom: 60px;
    transition: opacity 0.6s ease-in-out, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), color 0.6s ease-in-out;
    opacity: 1;
    transform: translateY(0);
}

.stag-1, .stag-2, .stag-3 {
    display: block;
}


.scroll-indicator {
    position: absolute;
    bottom: 40px;
    right: 80px;
    color: var(--primary-blue);
    /* Geändert zu Dunkelblau */
    animation: bounce 2s infinite;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.scroll-arrow {
    width: 45px;
    height: 45px;
    stroke-width: 1px;
    /* Minimal dicker für bessere Sichtbarkeit */
    transition: opacity 0.3s ease;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
    }

    60% {
        transform: translateY(-7px);
    }
}

/* --- Glassmorphic Hero Container (Scroll Reveal) --- */

.hero-glass-container {
    padding: 120px 80px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    position: relative;
    overflow: hidden;
    background: #1C263A;
    /* Harmonized Dark */
    border-top: 1px solid var(--glass-border);
}

/* --- Section Layouts --- */

.dark-section {
    background-color: var(--primary-blue);
    color: white;
    padding: 160px 80px;
    display: flex;
    flex-direction: column;
}

.dark-section h1 {
    color: white !important;
}

.light-section {
    background-color: var(--bg-warm);
    padding: 120px 80px;
}

.white-section {
    background-color: var(--bg-white);
    padding: 120px 80px;
}

.main-content-wrapper {
    padding: 60px 0;
    display: flex;
    justify-content: flex-start;
}

.content-container {
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: 350px 1fr;
    padding: 0 80px;
    /* Wider padding */
    gap: 0;
}

.content-container.full-width {
    display: block;
}

/* --- Sidebar Navigation --- */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding-left: 0;
}

.sidebar-branding .name {
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--primary-blue);
    display: block;
    margin-bottom: 5px;
    letter-spacing: -0.02em;
}

.sidebar-branding .type {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 400;
}

.sidebar-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 60px;
}

.sidebar-nav ul li a {
    color: var(--text-muted);
    font-size: 1.35rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    letter-spacing: -0.01em;
    transition: all 0.3s ease;
}

.sidebar-nav ul li a:hover {
    color: var(--primary-blue);
    padding-left: 5px;
}

.sidebar-nav ul li.active a {
    color: var(--primary-blue);
    font-weight: 400;
}

/* --- Content Area --- */

.service-body p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-muted);
    font-weight: 400;
    margin: 0;
}

.content-body h1 {
    font-size: 2.6rem;
    font-weight: 400;
    color: var(--primary-blue);
    margin-bottom: 3rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.content-body p {
    margin-bottom: 2rem;
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 800px;
    line-height: 1.7;
}

.content-body a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.content-body a:hover {
    opacity: 0.7;
}

/* --- Legal Text Stylings (Datenschutz / Impressum) --- */
.content-body h2,
.content-body h3 {
    margin-top: 3.5rem;
    color: var(--primary-blue);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}


.legal-text ul {
    padding-left: 2rem;
    margin-bottom: 2rem;
}

.legal-text ul li {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-text strong {
    font-weight: 400;
}

/* --- Project Grid --- */

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 100px 60px;
    margin-top: 60px;
}

.project-item {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-subtle);
    padding-top: 20px;
}

.project-image-box {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #f0f0f0;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}

.project-image-box::before {
    content: "© Schulte Immobilien Gruppe";
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
    pointer-events: none;
}

.project-item:hover .project-image-box::before {
    opacity: 1;
}

.project-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-item:hover img {
    transform: scale(1.05);
}

.project-location {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--primary-blue);
    margin: 0 0 25px 0;
    letter-spacing: -0.015em;
    line-height: 1.2;
}

.project-spec {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    font-size: 0.95rem;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.spec-label {
    color: var(--text-muted);
    width: 120px;
    font-weight: 400;
}

.spec-value {
    color: var(--primary-blue);
    font-weight: 400;
}



/* --- Large Static Footer (Mobile Only) --- */
.site-footer {
    display: none;
    /* Versteckt auf Desktop */
    position: relative;
    width: 100%;
    background: var(--primary-blue);
    color: white;
    z-index: 10;
    padding: 80px;
    font-size: 1.1rem;
    text-transform: none;
    letter-spacing: normal;
    border-top: none;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.footer-column h4 {
    color: white;
    font-size: 1.15rem;
    font-weight: 400;
    margin-bottom: 20px;
}

.footer-column p,
.footer-column a {
    color: white;
    font-size: 1.15rem;
    line-height: 1.6;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1400px;
    margin: 60px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    font-size: 1.05rem;
    color: white;
}

.footer-bottom a {
    color: white;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: white;
}

/* --- Translucent Sticky Footer (Desktop) --- */
.desktop-sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    z-index: 3000;
    padding: 15px 80px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: all 0.4s ease;
}

.sticky-footer-content {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

/* Page Theme Specifics for Sticky Footer */
.hero-theme-light~.desktop-sticky-footer,
.light-section~.desktop-sticky-footer,
.white-section~.desktop-sticky-footer,
body:not(:has(.dark-section)) .desktop-sticky-footer {
    background: rgba(244, 241, 238, 0.8);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--primary-blue);
}

@media (max-width: 768px) {
    .desktop-sticky-footer {
        display: none !important;
    }
}

/* Page Theme Specifics */
.header-theme-light {
    color: var(--primary-blue) !important;
}

.header-theme-light .menu-btn {
    color: var(--primary-blue) !important;
}



/* --- Vertical Service Stack --- */

.services-wrapper {
    margin-top: 40px;
}

.services-stack {
    margin-top: 40px;
}

.service-row {
    display: flex;
    align-items: center;
    padding: 30px 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    cursor: default;
}

.service-header {
    display: flex;
    align-items: center;
    width: 450px;
    flex-shrink: 0;
}

.service-title {
    color: var(--primary-blue);
    font-size: 2.6rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-icon {
    display: none;
}

.service-body {
    flex-grow: 1;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    visibility: hidden;
    padding-left: 220px;
}

.service-body p {
    color: var(--text-muted);
    font-size: 1.25rem;
    line-height: 1.6;
    max-width: 700px;
}

/* Hover States */
.service-row:hover {
    padding-left: 20px;
}

.service-row:hover .service-title {
    color: rgba(28, 43, 77, 0.3);
    /* Dark to Light (Faded) */
    transform: translateX(10px);
}

.service-row:hover .service-body {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
}

.service-row::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-row:hover::after {
    width: 100%;
}

/* --- Team Grid --- */

.team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 60px;
}

.team-tile {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    width: 250px;
}

.team-tile:hover {
    transform: translateY(-10px);
}

.team-tile .profile-pic {
    width: 100%;
    aspect-ratio: 1 / 1.2;
    background-color: #eee;
    margin-bottom: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.team-tile:hover .profile-pic {
    transform: scale(1.02);
}

.team-tile .profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-tile .person-name {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.team-tile .person-role {
    font-size: 1rem;
    color: var(--text-muted);
}

/* --- Project Grid Steckbrief --- */

.project-specs {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.project-specs div {
    margin-bottom: 5px;
}

.project-specs strong {
    color: var(--primary-blue);
    font-weight: 400;
    margin-right: 5px;
}

/* --- Detail View Layout --- */

.profile-detail-container {
    padding: 120px 160px;
    display: grid;
    grid-template-columns: 350px auto 320px;
    gap: 0 80px;
    justify-content: start;
}

.profile-sidebar {
    grid-column: 3;
}

.profile-sidebar h1 {
    font-size: 2.3rem;
    color: var(--primary-blue);
    margin-bottom: 30px;
    line-height: 1.1;
}

.profile-sidebar .profile-pic {
    margin-top: 85px;
}

.cv-section {
    grid-column: 2;
    grid-row: 1;
    max-width: 800px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.cv-section h2 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-subtle);
    padding-bottom: 10px;
}

.cv-item {
    margin-bottom: 25px;
}

.cv-item .year {
    font-weight: 400;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.cv-item p {
    color: var(--text-muted);
    line-height: 1.6;
}

.cv-item strong {
    color: var(--primary-blue);
    font-weight: 400;
    /* Regular weight blue text */
}

.cv-section a {
    color: var(--primary-blue);
    text-decoration: none;
}

/* --- Responsive --- */

@media (max-width: 1280px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {

    .content-container,
    .profile-detail-container {
        grid-template-columns: 1fr;
        padding: 40px 25px;
        display: flex;
        flex-direction: column;
    }

    .profile-sidebar, .cv-section {
        grid-column: auto !important;
        grid-row: auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .content-container > h1 {
        grid-column: 1;
        margin-bottom: 30px;
    }

    .sidebar {
        grid-column: 1;
        width: 100%;
        margin-bottom: 2rem;
    }

    .sidebar-nav ul {
        margin-top: 0;
        flex-direction: row;
        gap: 30px;
        flex-wrap: wrap;
    }

    .sidebar-nav ul li a {
        font-size: 1.1rem;
    }

    .content-body {
        grid-column: 1;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* --- Offset for Larger Header --- */
main>.dark-section:first-child {
    padding-top: 220px !important;
}

main>.white-section:first-child,
main>.light-section:first-child {
    padding-top: 180px !important;
}

main>.profile-detail-container:first-child {
    padding-top: 180px !important;
}

@media (max-width: 1024px) {

    main>.profile-detail-container:first-child,
    main>.white-section:first-child,
    main>.light-section:first-child {
        padding-top: 140px !important;
    }

    main>.dark-section:first-child {
        padding-top: 180px !important;
    }
}

/* --- Mobile Responsiveness (Smartphones/Tablets) --- */
@media (max-width: 800px) {

    /* Visibility Utilities */
    .mobile-only {
        display: block !important;
    }

    .desktop-only {
        display: none !important;
    }

    body {
        --text-muted: #3A4A62;
        /* Kontrast erhöhen für grauen Text auf Mobile */
    }

    /* Layout - Extremer Whitespace The CubeHouse Style */
    .dark-section,
    .light-section,
    .white-section {
        padding: 130px 45px;
        /* Seitenabstand erhöht */
    }

    .dark-section+.light-section,
    .dark-section+.white-section {
        padding-top: 80px;
        /* Weniger Abstand beim Farbumschlag für weicheren Übergang */
    }

    .full-hero {
        padding: 40px 45px 80px 0; /* Von 100px auf 80px reduziert (tiefer gerückt) */
    }

    .hero-bg {
        background-attachment: scroll !important; /* Verhindert extremes Zoomen auf Mobilgeräten */
    }

    #bg2 {
        background-position: center center;
        background-size: cover;
    }

    .content-container,
    .profile-detail-container {
        padding: 30px 45px;
        /* Seitenabstand erhöht */
    }

    /* Typography Adjustments */
    .full-hero .main-title {
        font-size: clamp(1.8rem, 9.5vw, 2.6rem);
        /* Vereinheitlichte Größe für beide Slides auf Mobil */
        font-weight: 800;
        /* Maximaler Impact auf Smartphone (Extra-Bold) */
        margin-bottom: 30px;
        line-height: 1.05;
        letter-spacing: -0.06em;
        /* Noch enger, um die maximale Größe zu ermöglichen */
        padding-left: 10px;
        /* Minimaler Seitenabstand für maximale Breite */
        word-break: keep-all;
        white-space: normal;
        /* Erlaubt Umbruch für beide Slides */
    }

    .full-hero .main-title.title-long {
        letter-spacing: -0.04em;
    }

    /* Staggered Typography - Wiederhergestellt & verfeinert */
    .stag-1,
    .stag-2,
    .stag-3 {
        display: block;
        margin-bottom: 8px;
        /* Etwas mehr Abstand zwischen den Zeilen */
        font-weight: 400;
        /* Revertiert auf feine Schrift */
    }

    .stag-1 {
        margin-left: 0;
    }

    .stag-2 {
        margin-left: 12%;
    }

    .stag-3 {
        margin-left: 24%;
    }

    .impact-statement {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .impact-row {
        flex-direction: column;
        gap: 20px;
        margin-top: 20px;
    }

    .impact-item .big-number {
        font-size: 4.5rem;
    }

    /* Services Adjustments */
    .services-wrapper,
    .services-stack {
        margin-top: 0 !important;
        /* Dienste maximal nach oben rücken */
    }

    .service-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 0;
        /* Erhöht von 25px, um Felder mehr auseinanderzuziehen */
        border-top: 0.5px solid rgba(0, 0, 0, 0.15);
        /* Dünnere und elegantere Linie */
    }

    .service-row::after {
        display: none;
    }

    .service-header {
        width: 100%;
        margin-bottom: 0;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .service-title {
        font-size: 1.7rem;
        /* Beibehalten für Vergleichbarkeit */
        line-height: 1.1;
        font-weight: 400;
        /* Nicht fett gedruckt für einen feineren Look */
        color: var(--primary-blue);
        padding-right: 20px;
    }

    .service-icon {
        display: block;
        width: 28px;
        height: 28px;
        stroke: var(--primary-blue);
        /* Passend zum Titel */
        stroke-width: 1px !important;
        /* Dünnere Icon-Linien */
        transition: transform 0.4s ease;
        flex-shrink: 0;
    }

    .service-row.is-open .service-icon {
        transform: rotate(180deg);
    }

    .service-row {
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    .service-body {
        padding-left: 0;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        transform: translateY(-10px);
        transition: all 0.4s ease;
        margin-top: 0;
    }

    .service-row.is-open .service-body {
        max-height: 500px;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        margin-top: 20px;
    }

    .service-body p {
        font-size: 1.15rem;
        /* Angeglichen an "Präzise Planung..." */
        font-weight: 400;
        line-height: 1.5;
        color: var(--text-muted);
    }

    /* Header and Menu Adjustments */
    .main-header {
        padding: 0 45px 0 20px;
        /* Branding etwas mehr nach rechts gerückt (von 8px auf 20px) */
        height: 80px;
        align-items: center;
    }

    .logo-container {
        gap: 0;
        margin-top: 4px;
        /* Minimal nach unten gerückt */
    }

    .site-logo {
        display: block;
        height: 48px;
        margin-right: 6px;
        color: inherit; /* Bezieht Farbe vom Parent für dynamischen Wechsel */
    }

    .logo-container .company-name {
        font-size: 1.25rem;
        font-weight: 400;
        letter-spacing: -0.01em;
        line-height: 1.1;
        color: inherit; /* Bezieht Farbe vom Parent */
    }

    .logo-container .tagline {
        display: block;
        font-size: 0.52rem;
        letter-spacing: 0.34em;
        text-transform: uppercase;
        opacity: 0.8;
        margin-top: 1px;
        color: inherit; /* Bezieht Farbe vom Parent */
    }

    /* Standardfarbe auf Mobil ist jetzt Blau (da meist heller Grund) */
    .main-header {
        color: var(--primary-blue);
    }

}

/* Spezialklasse für dunkle Sektionen (wird per JS gesteuert) - JETZT GLOBAL */
.header-white-mode .site-logo,
.header-white-mode .menu-btn {
    color: white !important;
}

.header-white-mode .logo-part {
    fill: white !important;
}

@media (max-width: 800px) {

    /* Menu minimalistisch gestaltet */
    .menu-btn {
        background: transparent;
        color: var(--text-main);
        padding: 5px 0 5px 15px;
        border-radius: 0;
        backdrop-filter: none;
        box-shadow: none;
        letter-spacing: normal;
    }

    .menu-btn span {
        display: none;
        /* Verstecke "Menu" Text */
    }

    .menu-btn i {
        font-size: 1.6rem;
    }

    .header-theme-light .menu-btn {
        background: transparent;
        color: var(--primary-blue) !important;
    }

    .menu-overlay {
        width: 100%;
        padding: 120px 30px;
    }

    .menu-branding {
        position: absolute;
        top: 0px; /* Noch etwas tiefer gesetzt */
        left: 15px; /* Minimal nach rechts gerückt */
        height: 80px;
        display: flex;
        align-items: center;
    }

    .menu-overlay .site-logo,
    .menu-overlay .company-name,
    .menu-overlay .tagline {
        color: white !important;
        /* Maximale Lesbarkeit auf blauem Grund */
    }

    .menu-links a {
        font-size: 1.8rem;
    }

    .menu-close {
        position: absolute;
        top: 0px; /* Zurück auf Standardhöhe */
        right: 51.5px; /* Finale Korrektur für horizontale Deckungsgleichheit */
        height: 80px;
        color: white;
        opacity: 0.9;
        display: flex;
        justify-content: center;
        align-items: center;
        background: transparent;
        border: none;
        cursor: pointer;
    }

    body {
        padding-bottom: 0;
    }

    .scroll-indicator {
        right: 45px;
        /* Seitenabstand an mobile Version angepasst (The Cube House Style) */
        bottom: 30px;
        color: var(--primary-blue);
    }

    .scroll-arrow {
        width: 40px;
        height: 40px;
        stroke-width: 0.8px;
        /* Auch auf Mobile für Sichtbarkeit leicht erhöht */
    }

    /* Mobile Footer */
    .site-footer {
        display: block;
        /* Info Footer auf Smartphone anzeigen */
        padding: 20px 20px;
    }

    .site-footer .footer-column h4 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .site-footer .footer-column p,
    .site-footer .footer-column a {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }

    .site-footer .footer-bottom {
        font-size: 0.7rem;
        margin-top: 25px;
        padding-top: 15px;
    }

    .site-footer .footer-column:nth-child(3) h4 {
        display: none;
        /* Versteckt Überschrift "Informationen" */
    }

    /* Pages / Content Body */
    .content-body h1 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .content-body p,
    .legal-text ul li {
        font-size: 1.1rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 80px 0;
    }

    .project-location {
        font-size: 1.5rem !important;
        margin-bottom: 15px;
    }

    .project-spec {
        flex-direction: column;
        margin-bottom: 15px;
        align-items: flex-start;
        gap: 2px;
    }

    .spec-label {
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        opacity: 0.6;
        width: 100%;
    }

    .spec-value {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    /* Team / Profile */
    .team-grid {
        grid-template-columns: 1fr;
        justify-content: center;
    }

    .team-tile {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .cv-section h2 {
        font-size: 1.6rem;
    }

    /* Hide profile picture and back button on individual profile detail pages */
    .profile-sidebar .profile-pic,
    .profile-sidebar a[href="../team.html"] {
        display: none !important;
    }

    main>.dark-section:first-child,
    main>.white-section:first-child,
    main>.light-section:first-child,
    main>.profile-detail-container:first-child {
        padding-top: 120px !important;
    }

    /* Profile Detail Improvements */
    .profile-detail-container {
        padding: 40px 25px !important; /* Slightly less padding for more content space */
    }

    .profile-sidebar h1 {
        font-size: 1.8rem !important; /* Smaller on mobile to prevent overflow */
        line-height: 1.2;
        margin-bottom: 5px !important;
    }

    .profile-sidebar p {
        font-size: 1rem !important;
        margin-bottom: 25px !important;
    }

    .cv-section h2 {
        font-size: 1.4rem !important;
        margin-top: 40px !important;
    }

    /* Kontakt Seite Optimierungen */
    .contact-phone {
        font-size: 1.5rem !important;
        /* Kleiner auf Mobil für Einzeiligkeit */
    }

    .address-block {
        margin-top: 30px !important;
        /* Höher rücken auf Mobil */
    }
}