/* ================================================================
   DGS CORPORATE STYLES
   Based on: DGS Corporate Design Catalog v1.0
   ================================================================ */

:root {
    --dgs-primary:        #00427F;
    --dgs-primary-light:  #D8E2EB;
    --dgs-primary-lighter:#EDF1F6;
    --dgs-primary-dark:   #00315F;
    --dgs-primary-darker: #002445;
    --dgs-accent:         #C4841D;
    --dgs-accent-light:   #E8A840;
    --dgs-accent-dark:    #9A6814;
    --dgs-neutral-50:     #F7F9FB;
    --dgs-neutral-100:    #EFF3F7;
    --dgs-neutral-200:    #E0E8EF;
    --dgs-neutral-300:    #BFCFDF;
    --dgs-white:          #FFFFFF;
    --dgs-gray-50:        #F8F9FA;
    --dgs-gray-100:       #F1F3F5;
    --dgs-gray-200:       #E9ECEF;
    --dgs-gray-300:       #DEE2E6;
    --dgs-gray-400:       #ADB5BD;
    --dgs-gray-500:       #6C757D;
    --dgs-gray-600:       #495057;
    --dgs-gray-700:       #343A40;
    --dgs-gray-800:       #212529;
    --font-heading:       'DM Serif Display', Georgia, 'Times New Roman', serif;
    --font-body:          'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --shadow-sm:  0 1px 2px rgba(0,66,127,0.06);
    --shadow-md:  0 4px 12px rgba(0,66,127,0.08);
    --shadow-lg:  0 8px 24px rgba(0,66,127,0.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--dgs-gray-800);
    background: var(--dgs-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── HEADER / NAVIGATION ──────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--dgs-gray-200);
    transition: box-shadow 0.3s;
}
.site-header.scrolled {
    box-shadow: 0 2px 12px rgba(0,66,127,0.06);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.site-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}
.logo-img {
    height: 48px;
    width: auto;
}

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a {
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dgs-gray-600);
    transition: color 0.2s;
    position: relative;
}
.main-nav a:hover,
.main-nav a.active { color: var(--dgs-primary); }
.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--dgs-accent);
    border-radius: 1px;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: var(--dgs-primary);
    color: var(--dgs-white) !important;
    border-radius: var(--radius-md);
    font-size: 0.8125rem !important;
    font-weight: 500;
    transition: background 0.2s;
}
.nav-cta:hover { background: var(--dgs-primary-dark); }
.nav-cta::after { display: none !important; }

/* Hamburger (mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dgs-gray-800);
    border-radius: 1px;
    transition: all 0.3s;
}

/* Mobile nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--dgs-white);
    border-bottom: 1px solid var(--dgs-gray-200);
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    z-index: 999;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
    display: block;
    padding: 0.75rem 0;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--dgs-gray-700);
    border-bottom: 1px solid var(--dgs-gray-100);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--dgs-primary); }

/* ── HERO SECTION ─────────────────────────────────────── */
.hero {
    padding: 10rem 0 5rem;
    background: linear-gradient(168deg, var(--dgs-white) 0%, var(--dgs-neutral-50) 50%, var(--dgs-primary-lighter) 100%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 10%;
    right: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(0,66,127,0.03) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--dgs-white);
    border: 1px solid var(--dgs-gray-200);
    border-radius: 99px;
    padding: 0.375rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--dgs-gray-600);
    margin-bottom: 1.5rem;
}
.hero-badge .dot {
    width: 6px;
    height: 6px;
    background: var(--dgs-accent);
    border-radius: 50%;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--dgs-gray-800);
    max-width: 700px;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--dgs-gray-600);
    max-width: 580px;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ── BUTTONS (global) ─────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    letter-spacing: 0.01em;
}
.btn-primary {
    background: var(--dgs-primary);
    color: var(--dgs-white);
    border-color: var(--dgs-primary);
}
.btn-primary:hover {
    background: var(--dgs-primary-dark);
    border-color: var(--dgs-primary-dark);
    box-shadow: var(--shadow-md);
}
.btn-outline {
    background: transparent;
    color: var(--dgs-primary);
    border-color: var(--dgs-primary);
}
.btn-outline:hover {
    background: var(--dgs-primary);
    color: var(--dgs-white);
}
.btn-accent {
    background: var(--dgs-accent);
    color: var(--dgs-white);
    border-color: var(--dgs-accent);
}
.btn-accent:hover {
    background: var(--dgs-accent-dark);
    border-color: var(--dgs-accent-dark);
}
.btn-ghost {
    background: transparent;
    color: var(--dgs-primary);
    border-color: transparent;
    padding-left: 0;
    padding-right: 0;
}
.btn-ghost:hover { opacity: 0.7; }
.btn-white {
    background: var(--dgs-white);
    color: var(--dgs-primary);
    border-color: var(--dgs-white);
}
.btn-white:hover {
    background: var(--dgs-gray-50);
    box-shadow: var(--shadow-md);
}
.btn svg { width: 1em; height: 1em; }

/* ── SECTION UTILITY ──────────────────────────────────── */
.section { padding: 5rem 0; }
.section-alt { background: var(--dgs-gray-50); }
.section-blue { background: var(--dgs-neutral-50); }
.section-dark {
    background: var(--dgs-primary-darker);
    color: rgba(255,255,255,0.85);
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dgs-accent);
    margin-bottom: 0.75rem;
}
.section-dark .section-label { color: var(--dgs-accent-light); }

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 400;
    color: var(--dgs-gray-800);
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}
.section-dark .section-title { color: var(--dgs-white); }

.section-sub {
    font-size: 1.0625rem;
    color: var(--dgs-gray-600);
    max-width: 600px;
    line-height: 1.7;
}
.section-dark .section-sub { color: rgba(255,255,255,0.6); }

/* ── SPLIT SCREEN (Leistungsbereiche) ─────────────────── */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 400px;
}
.split-panel {
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.split-projects {
    background: var(--dgs-primary);
    color: var(--dgs-white);
    position: relative;
    overflow: hidden;
}
.split-projects::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40%;
    background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.04) 100%);
    pointer-events: none;
}
.split-fm {
    background: var(--dgs-neutral-50);
    border: 1px solid var(--dgs-neutral-200);
}

.split-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
    opacity: 0.6;
}
.split-projects .split-label { color: var(--dgs-accent-light); opacity: 1; }
.split-fm .split-label { color: var(--dgs-accent); }

.split h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.25;
    margin-bottom: 1rem;
}
.split-fm h3 { color: var(--dgs-gray-800); }

.split p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 380px;
}
.split-projects p { color: rgba(255,255,255,0.75); }
.split-fm p { color: var(--dgs-gray-600); }

.split-projects .btn-outline {
    border-color: rgba(255,255,255,0.4);
    color: var(--dgs-white);
}
.split-projects .btn-outline:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.6);
}

/* ── USP BLOCK ────────────────────────────────────────── */
.usp-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.usp-item {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: var(--radius-lg);
    background: var(--dgs-white);
    border: 1px solid var(--dgs-gray-200);
    transition: all 0.25s ease;
}
.usp-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--dgs-primary-light);
    transform: translateY(-2px);
}

.usp-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    background: var(--dgs-primary-lighter);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dgs-primary);
}

.usp-title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--dgs-gray-800);
    margin-bottom: 0.25rem;
}

.usp-text {
    font-size: 0.8125rem;
    color: var(--dgs-gray-500);
    line-height: 1.5;
}

/* ── PROCESS TIMELINE ─────────────────────────────────── */
.timeline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    margin-top: 3rem;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 48px;
    right: 48px;
    height: 2px;
    background: var(--dgs-primary-light);
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    flex: 1;
}

.timeline-dot {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--dgs-white);
    border: 2px solid var(--dgs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dgs-primary);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.25s;
}
.timeline-step:hover .timeline-dot {
    background: var(--dgs-primary);
    color: var(--dgs-white);
}

.timeline-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--dgs-gray-800);
    margin-bottom: 0.25rem;
}

.timeline-desc {
    font-size: 0.75rem;
    color: var(--dgs-gray-500);
    max-width: 140px;
}

/* ── LIFECYCLE BLOCK ──────────────────────────────────── */
.lifecycle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.lifecycle-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: var(--dgs-gray-800);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.lifecycle-text p {
    font-size: 1.0625rem;
    color: var(--dgs-gray-600);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.lifecycle-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.lifecycle-benefit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--dgs-gray-700);
}
.lifecycle-benefit svg {
    width: 20px;
    height: 20px;
    color: var(--dgs-accent);
    flex-shrink: 0;
}

/* Lifecycle diagram */
.lifecycle-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
}
.lifecycle-svg {
    width: 100%;
    max-width: 500px;
    height: auto;
    overflow: visible;
}

/* ── PROJECT CARDS (Referenzen Teaser) ────────────────── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 2rem;
}

.project-card {
    background: var(--dgs-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--dgs-gray-200);
    overflow: hidden;
    transition: all 0.25s ease;
}
.project-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.project-card-img {
    height: 200px;
    background: linear-gradient(135deg, var(--dgs-primary-light), var(--dgs-neutral-300));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dgs-neutral-400);
    font-size: 0.8125rem;
    overflow: hidden;
}
.project-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Image slider (for cards with multiple images) ── */
.img-slider {
    position: relative;
    width: 100%;
    height: 100%;
}
.img-slider .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
}
.img-slider .slide.active {
    opacity: 1;
    pointer-events: auto;
}
.img-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slider-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 2;
}
.slider-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    transition: background 0.3s;
}
.slider-dots .dot.active {
    background: #fff;
}

.project-card-body {
    padding: 1.5rem;
}

.project-card-tag {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--dgs-accent);
    margin-bottom: 0.375rem;
}

.project-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--dgs-gray-800);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.project-card-text {
    font-size: 0.875rem;
    color: var(--dgs-gray-500);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-card-meta {
    display: flex;
    gap: 1.25rem;
    font-size: 0.75rem;
    color: var(--dgs-gray-400);
    font-weight: 500;
}
.project-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ── CTA SECTION ──────────────────────────────────────── */
.cta {
    text-align: center;
    padding: 5rem 1.5rem;
}
.cta h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    color: var(--dgs-white);
    margin-bottom: 1rem;
}
.cta p {
    color: rgba(255,255,255,0.6);
    font-size: 1.0625rem;
    margin-bottom: 2rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ── FOOTER ───────────────────────────────────────────── */
.site-footer {
    background: var(--dgs-primary-darker);
    color: rgba(255,255,255,0.6);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-desc {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}
.footer-contact-item a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-contact-item a:hover { color: var(--dgs-white); }
.footer-contact-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.4;
    flex-shrink: 0;
}

.footer-col h4 {
    color: var(--dgs-white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.625rem; }
.footer-col ul a {
    font-size: 0.875rem;
    text-decoration: none;
    color: rgba(255,255,255,0.55);
    transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--dgs-white); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
}
.footer-bottom a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }
.footer-legal { display: flex; gap: 1.5rem; }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1024px) {
    .main-nav { display: none; }
    .hamburger { display: flex; }
    .usp-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hero { padding: 8rem 0 3.5rem; }
    .hero h1 { font-size: 2rem; }
    .split { grid-template-columns: 1fr; }
    .split-panel { padding: 3rem 1.5rem; }
    .usp-grid { grid-template-columns: 1fr 1fr; }
    .timeline { flex-direction: column; gap: 1.5rem; align-items: flex-start; }
    .timeline::before {
        top: 0;
        bottom: 0;
        left: 24px;
        right: auto;
        width: 2px;
        height: auto;
    }
    .timeline-step {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
    }
    .timeline-dot { margin-bottom: 0; flex-shrink: 0; }
    .lifecycle { grid-template-columns: 1fr; gap: 2.5rem; }
    .projects-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}

@media (max-width: 480px) {
    .usp-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
}

/* ── ANIMATIONS ───────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
