:root {
    /* Corporate Professional Colors */
    --navy-dark: #07101E;
    --navy-main: #142850;
    --gold-accent: #C29B57;
    --gold-dark-accent: #C29B57;
    --gold-light: #D4AF37;
    --gray-light: #F4F6F9;
    --gray-text: #5A6A85;
    --white: #FFFFFF;
    --text-main: #2C3E50;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    background-image: var(--active-pattern);
    background-size: var(--active-pattern-size);
    background-attachment: fixed;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Typography Hierarchy */
h2,
h3,
.footer-brand:not(.cta h2) {
    font-family: 'IBM Plex Serif', serif;
    font-weight: 600;
    color: var(--navy-dark);
}

h1 {
    font-family: 'IBM Plex Serif', serif;
    font-weight: 400;
    color: var(--navy-dark);
}

.brand {
    font-weight: 1000;
    color: var(--navy-main);
}

.bg-navy h1,
.bg-navy h2,
.bg-navy p,
.bg-navy .trust-badge {
    color: var(--white);
}

/* Global Backgrounds */
.bg-navy {
    background-color: var(--navy-main);
}

.bg-light {
    background-color: var(--gray-light);
}

.bg-white {
    background-color: var(--white);
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 5%;
}

.text-center {
    text-align: center;
}

/* Elegant Navigation */
.corp-header {
    background-color: var(--white);
    background-image: var(--active-pattern);
    background-size: var(--active-pattern-size);
    background-attachment: fixed;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.65rem;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
}

.nav-links a:not(.btn-primary-header) {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition);

    transition: all 0.3s ease;
}

.nav-links a:not(.btn-primary-header):hover {
    color: var(--gold-accent);
    transform: translateY(-2px);

}

/* ============== Authored Buttons ============== */

.btn-primary-header,
.btn-primary,
.btn-secondary {
    position: relative;
    display: inline-block;

    background: transparent;
    text-decoration: none;
    padding: 0.5rem 0;

    border: none;
    border-radius: 0;

    transition: all 0.3s ease;
}

/* Text colors */
.btn-primary-header {
    color: var(--gold-dark-accent);
    font-weight: 900;
}

.btn-primary {
    color: var(--gold-accent);
    font-weight: 600;
}

.btn-secondary {
    color: var(--white);
    font-weight: 600;
}

/* Animated underline */
.btn-primary-header::after,
.btn-primary::after,
.btn-secondary::after {
    content: "";
    position: absolute;

    left: 50%;
    bottom: -4px;

    width: 100%;
    height: 2px;

    background: currentColor;

    transform: translateX(-50%) scaleX(0.6);
    transform-origin: center;

    transition: transform 0.3s ease;
}

/* Hover effects */
.btn-primary-header:hover,
.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
}

.btn-primary-header:hover::after,
.btn-primary:hover::after,
.btn-secondary:hover::after {
    transform: translateX(-50%) scaleX(0.8);
}

.btn-tertiary {
    position: relative;
    display: inline-block;
    color: var(--white);
    background-color: var(--gold-accent);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius, 4px);
    font-weight: 600;

    transition: all 0.3s ease;
}

.btn-tertiary:hover {
    background-color: var(--gold-accent);
    color: var(--white);
    transform: translateY(-2px);
}


/* Hero Section */
.hero {
    padding: 7rem 0 8rem;
    border-bottom: 6px solid var(--gold-accent);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
}

.trust-badge {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--gold-accent);
    padding-bottom: 4px;
    font-weight: 500;
    color: var(--gold-light);
}

.hero h1 {
    font-size: clamp(2.5rem, 4.5vw, 4rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3rem;
    max-width: 540px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* Content Sections */
section {
    padding: 6.5rem 0;
}

.section-heading {
    margin-bottom: 4.5rem;
    padding-top: 3rem;
}

.section-heading h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-heading .subtitle {
    font-size: 1.15rem;
    color: var(--gray-text);
    font-weight: 300;
}

/* ================= Topography Background =================*/

.topography-bg {
    position: relative;
    background-color: #fff;
    overflow: hidden;
}

.topography-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../images/topography_color.svg");
    background-repeat: repeat;
    background-size: 200px;
    background-position: 0 0;

    background-color: transparent;
    opacity: 0.2;
    pointer-events: none;
}

.topography-bg>* {
    position: relative;
    z-index: 1;
}

/* ================= Building Background =================*/

.building-bg {
    position: relative;
    background-color: #142850;
    /* left solid blue */
    overflow: hidden;
}

.building-bg::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    /* pin to the right */
    height: 100%;
    width: min(60%);
    /* limit image width (example) */
    background: url("../images/building.jpg") no-repeat center center;
    background-size: cover;
    pointer-events: none;
    z-index: 0;

    -webkit-mask-image: linear-gradient(to left, black 0%, black 80%, transparent 100%);
    mask-image: linear-gradient(to left, black 0%, black 80%, transparent 100%);
    opacity: 1;
}

.building-bg>* {
    position: relative;
    z-index: 0;
}

/* Philosophy grid */
.phil-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    text-align: justify;
}

.phil-card {
    padding: 2.5rem;
    padding-bottom: 5rem;
}

.phil-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--navy-main);
}

.phil-card p {
    color: var(--gray-text);
    font-size: 0.95rem;
}

.phil-card [class^="icon-"] {
    width: 80px;
    height: 3px;
    background-color: var(--gold-accent);
    margin: 0 0 1.5rem 0;
    display: block;
}

/* Services */
.service-list {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch; /* statt start — sorgt für gleiche Höhe der Grid-Zellen */
}

.service-item {
  display: flex;           /* sicherstellen, dass Karte ein Flex-Container ist */
  flex-direction: column;
  height: 100%;            /* damit die Karte die volle Grid-Zellen-Höhe annimmt */
  border-radius: var(--radius);
  border-top: 4px solid var(--gold-accent);
  transition: all 0.3s ease;
  overflow: hidden;
  box-sizing: border-box;
}

.service-content {
  padding: 3rem 2.5rem;
  flex: 1 1 auto;    /* füllt verfügbaren Raum, sorgt für gleiche Höhe des Inhaltsbereichs */
  min-height: 0;     /* wichtig für korrektes Verhalten in flex-Kindern */
  box-sizing: border-box;
}


.shadow-soft {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.service-item h3 {
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

.service-item p {
    color: var(--gray-text);
    font-size: 0.95rem;
}

/* CTA */
.cta h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 3rem;
    font-weight: 400;
}

.cta .container .cta-text {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--gold-light);
    font-weight: 300;
}

.contact-details {
    margin-bottom: 3.5rem;
    font-size: 1.1rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.7);
}

.company-name {
    color: var(--white);
    font-weight: 500;
    font-size: 1.4rem
}

/* Footer */
.corp-footer {
    background-color: var(--navy-dark);
    color: rgba(255, 255, 255, 0.4);
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer-flex .footer-brand {
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
    font-weight: 600;
}

/* Liquid precision animations */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

/* Responsive adjustments */
@media (max-width: 992px) {

    .btn-primary-header,
    .btn-primary,
    .btn-secondary {
        font-size: 0.9rem;
    }

    .brand {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }

    .hero {
        padding-top: 2rem;
        padding-bottom: 4rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .hero h1 {
        font-size: clamp(1.5rem, 4.5vw, 4rem);
        line-height: 1.15;
        margin-bottom: 1.5rem;
    }

    .hero p {
        margin: 0 auto 2.5rem;
        font-size: 1rem;
        max-width: 1000px;
    }

    .hero-actions {
        justify-content: center;
    }

    .phil-grid,
    .service-list {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

    .nav-links a:not(.btn-primary-header) {
        display: none;
    }

    .building-bg::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;

        height: 100%;
        width: 100%;

        inset: 0;
        /* limit image width (example) */
        background: url("../images/building.jpg") no-repeat center center;
        background-size: cover;
        pointer-events: none;
        z-index: 0;

        -webkit-mask-image: linear-gradient(to top, black 0%, black 2%, transparent 40%);
        mask-image: linear-gradient(to top, black 0%, black 2%, transparent 40%);

        opacity: 1;
    }

    .trust-badge {
        margin: 0 auto 1.5rem;
    }

    .phil-card [class^="icon-"] {
        margin: 0 auto 1.5rem;
    }

    .phil-card {
        text-align: center;
    }

    .section-heading h2 {
        font-size: 2rem;
    }

    .section-heading {
        padding-top: 2rem;
    }
}