:root {
    /* Brand Colors */
    --color-primary: #0093D5;
    --color-primary-dark: #0077AD;
    --color-primary-light: rgba(0, 147, 213, 0.1);
    --color-secondary: #004F70;
    --color-white: #FFFFFF;
    --color-text: #677C8F;
    --color-bg-light: #E9EFF2;
    --color-text-dark: #002838;
    
    /* System Colors */
    --color-accent: #FF5E00; /* Used sparingly for highlights like badges */

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Transitions & Shadows */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-sm: 0 4px 6px rgba(0, 40, 56, 0.05);
    --shadow-md: 0 10px 25px rgba(0, 40, 56, 0.08);
    --shadow-lg: 0 25px 50px rgba(0, 40, 56, 0.12);
    
    /* Spacing */
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-wrap: break-word; /* Prevents long text from causing horizontal overflow */
    hyphens: auto; /* Helps with long German compound words */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    line-height: 1.2;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

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

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.text-white { color: var(--color-white) !important; }
.text-light { color: rgba(255,255,255,0.8) !important; }
.bg-light { background-color: var(--color-bg-light); }
.bg-primary { background-color: var(--color-primary); }
.dark-bg { background-color: var(--color-text-dark); }

/* Typography Utility */
.text-large { font-size: 1.25rem; font-weight: 400; }

/* Grid & Layout System */
.grid {
    display: grid;
    gap: 2rem;
}

.layout-2-col { grid-template-columns: 1fr 1fr; }
.layout-3-col { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.align-center { align-items: center; }
.flex-row { display: flex; flex-direction: column; }
@media(min-width: 768px) {
    .flex-row { flex-direction: row; }
}

.section { padding: var(--space-xl) 0; }
.section-header { margin-bottom: var(--space-lg); max-width: 800px; margin-inline: auto; }
.section-title { font-size: 2.5rem; margin-bottom: 1rem; color: var(--color-secondary); }
.section-subtitle { font-size: 1.5rem; color: var(--color-primary); margin-bottom: 1.5rem; font-weight: 500; }
.section-desc { font-size: 1.125rem; }

/* Buttons & Badges */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: 4px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-primary);
}
.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 147, 213, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}
.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-text-dark);
}

.btn-light {
    background-color: var(--color-white);
    color: var(--color-primary);
    border: 2px solid var(--color-white);
}
.btn-light:hover {
    background-color: transparent;
    color: var(--color-white);
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}
.badge-accent { background-color: rgba(255, 255, 255, 0.1); color: var(--color-white); border: 1px solid rgba(255,255,255,0.3); }

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
}

.navbar.scrolled { padding: 0.75rem 0; }

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

.logo img { height: 40px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--color-text-dark);
    font-family: var(--font-heading);
}
.nav-links a:not(.btn):hover { color: var(--color-primary); }

.mobile-menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.mobile-menu-toggle span { display: block; width: 25px; height: 3px; background-color: var(--color-text-dark); transition: var(--transition-fast); }

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* offset nav */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
}
.hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-bg .overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(0, 40, 56, 0.95) 0%, rgba(0, 40, 56, 0.7) 50%, rgba(0, 40, 56, 0.4) 100%);
}

.hero-content {
    color: var(--color-white);
    max-width: 800px;
    z-index: 1;
}
.hero-content h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    color: var(--color-white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}
.hero-content p {
    font-size: 1.25rem;
    max-width: 650px;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* System Section */
.feature-list { list-style: none; margin-top: 2rem; }
.feature-list li {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}
.icon-box {
    width: 50px; height: 50px;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    padding: 12px;
}
.feature-content h4 { margin-bottom: 0.5rem; font-size: 1.25rem; }

.image-wrapper { position: relative; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-lg); }
.image-wrapper img { width: 100%; transition: transform 0.8s ease; }
.image-wrapper:hover img { transform: scale(1.05); }

.floating-stat {
    position: absolute;
    bottom: 30px; left: -20px;
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    display: flex; flex-direction: column; align-items: center;
    border-left: 5px solid var(--color-primary);
    animation: float 4s ease-in-out infinite;
}
.stat-number { font-size: 2.5rem; font-family: var(--font-heading); font-weight: 800; color: var(--color-primary); line-height: 1; }
.stat-label { font-size: 0.875rem; font-weight: 600; color: var(--color-text-dark); text-transform: uppercase; }

/* Benefits */
.card {
    background: var(--color-white);
    padding: 3rem 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border-top: 4px solid transparent;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--color-primary);
}
.card-icon {
    width: 60px; height: 60px;
    background: var(--color-bg-light);
    color: var(--color-secondary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
    padding: 15px;
    transition: var(--transition-fast);
}
.card:hover .card-icon { background: var(--color-primary); color: var(--color-white); }
.card h3 { margin-bottom: 1rem; font-size: 1.35rem; }

/* Use Case Highlight */
.use-case-highlight-section { position: relative; overflow: hidden; }
.highlight-image img { border-radius: 8px; box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.stat-container { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; }
.stat-big { display: block; font-size: 3rem; font-family: var(--font-heading); font-weight: 800; color: var(--color-primary); line-height: 1; }
.stat-small { font-size: 0.875rem; color: var(--color-text); text-transform: uppercase; letter-spacing: 1px; }

/* Applications */
.app-card {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    height: 100%;
}
.app-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.app-card img { height: 240px; width: 100%; object-fit: cover; }
.app-image-placeholder { height: 240px; width: 100%; background: linear-gradient(135deg, var(--color-bg-light) 0%, #d1dee3 100%); }
.app-content { padding: 2rem; }
.app-content h3 { font-size: 1.25rem; margin-bottom: 0.75rem; color: var(--color-secondary); }

/* About */
.about-card {
    background: var(--color-white);
    border-radius: 16px;
    padding: 4rem;
    position: relative;
    overflow: hidden;
    margin-top: -2rem; /* Pull up slightly */
    z-index: 10;
}
.about-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 8px; height: 100%; background: var(--color-primary);
}
.pillars { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.pillar { background: var(--color-bg-light); padding: 0.5rem 1rem; border-radius: 4px; font-weight: 500; color: var(--color-text-dark); font-size: 0.9rem; }

/* Enhanced Fachbereiche Tiles Box-Shadow */
.card.division-item {
    background-color: var(--color-white);
    box-shadow: 0 10px 30px rgba(0, 40, 56, 0.12);
    border: 1px solid rgba(0, 40, 56, 0.06);
}
.card.division-item:hover {
    box-shadow: 0 15px 40px rgba(0, 40, 56, 0.18);
}

/* Contact form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.form-group {
    margin-bottom: 1.25rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-white);
    background: rgba(255, 255, 255, 0.1);
}
.contact-form .btn {
    width: 100%;
    margin-top: 1rem;
}

/* Formular Status-Nachricht */
.form-status {
    display: none;
    margin-top: 1.25rem;
    padding: 0.875rem 1.25rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
}
.form-status--success {
    background: rgba(0, 200, 100, 0.2);
    border: 1px solid rgba(0, 200, 100, 0.5);
    color: #d4ffed;
}
.form-status--error {
    background: rgba(255, 80, 60, 0.2);
    border: 1px solid rgba(255, 80, 60, 0.5);
    color: #ffe0dd;
}

/* Contact CTA */
.cta-section { padding: var(--space-lg) 0; }
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p { margin-bottom: 2rem; }

/* Footer */
.footer { padding: var(--space-lg) 0 2rem; color: #a1b2bc; }
.footer h3 { color: var(--color-white); margin-bottom: 1.5rem; font-size: 1.125rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; margin-bottom: 3rem; }
.footer-logo { height: 50px; margin-bottom: 1.5rem; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a:hover { color: var(--color-primary); }
.footer-contact p { margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.875rem; }
.legal-links a { margin-left: 1.5rem; }
.legal-links a:hover { color: var(--color-white); }

/* Animations */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.fade-in-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in-right { opacity: 0; transform: translateX(30px); transition: opacity 0.8s ease, transform 0.8s ease; }

.is-visible { opacity: 1; transform: translate(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 1024px) {
    .nav-links {
        position: absolute; top: 100%; left: 0; width: 100%;
        background: var(--color-white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: var(--transition-smooth);
    }
    .nav-links.active { clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%); }
    .mobile-menu-toggle { display: flex; }
}

@media (max-width: 992px) {
    .layout-3-col { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .layout-2-col { grid-template-columns: 1fr; }
    .floating-stat { left: 10px; bottom: 10px; }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem; /* Reduces mobile padding to align hamburger menu and maximize space */
    }

    .layout-3-col { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    
    .section { padding: var(--space-lg) 0; }
    .about-card { padding: 2rem; margin-top: 0; }
    .hero-content h1 { font-size: 2.5rem; }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-text);
    color: var(--color-white);
    border: none;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
}
.back-to-top.visible {
    opacity: 0.7;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    opacity: 1;
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}
