/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size-adjust: none; /* Disable deprecated H1UserAgentFontSizeInSection API */
}

:root {
    /* Brainexx Brand Colors - Custom Color Palette */
    --base: #FFFFFF;               /* White */
    --base-2: #F0F0F0;            /* Light Gray */
    --base-3: #E0E0E0;            /* Medium Gray */
    --base-4: #B0B0B0;            /* Medium dark Gray */
    --contrast: #333333;          /* Dark Gray */
    --contrast-2: #051F2A;        /* Dark Blue */
    --contrast-3: #051F2A;        /* Dark Blue */
    --accent: #44B8A3;            /* Teal */
    
    /* Derived Colors */
    --primary-color: var(--accent);
    --primary-dark: #3a9d8a;      /* Darker Teal */
    --primary-light: #5cc5b1;     /* Lighter Teal */
    --secondary-color: var(--contrast-2);
    --secondary-dark: #041a24;    /* Darker Blue */
    
    /* Text Colors */
    --text-primary: var(--contrast);
    --text-secondary: var(--contrast-2);
    --text-muted: #666666;        /* Medium Gray */
    
    /* Background Colors */
    --bg-primary: var(--base);
    --bg-secondary: var(--base-2);
    --bg-tertiary: var(--base-3);
    
    /* Status Colors */
    --success-color: var(--accent);
    --error-color: #e74c3c;       /* Red */
    --warning-color: #f39c12;     /* Orange */
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--accent), var(--primary-dark));
    --gradient-secondary: linear-gradient(135deg, var(--contrast-2), var(--accent));
    --gradient-accent: linear-gradient(135deg, var(--accent), var(--contrast-2));
}

html {
    scroll-behavior: auto; /* JavaScript übernimmt das Scrollen */
}

/* Performance optimizations */
* {
    box-sizing: border-box;
}

/* Prevent font loading layout shifts */
@font-face {
    font-family: 'Acumin Variable';
    font-display: swap;
    src: url('https://use.typekit.net/pye1chz.css');
}

/* Font loading optimization */
.font-loading {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.font-loaded {
    font-family: 'Acumin Variable', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Layout Shift Prevention */
.layout-stable {
    contain: layout style;
    will-change: auto;
}

/* Prevent layout shifts during font loading - exclude navigation elements */
h1, h2, h3, h4, h5, h6, p, span {
    contain: layout style;
}

/* Navigation elements need normal flow */
.nav-menu, .nav-item, .nav-link, .hamburger, .nav-container {
    contain: none !important;
}

/* Ensure hamburger functionality */
.hamburger {
    cursor: pointer;
    z-index: 1001;
}

.nav-menu {
    z-index: 1000;
}

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

/* GPU acceleration for smooth animations */
.section::before {
    will-change: transform;
    transform: translateZ(0);
}

/* Smooth background loading transitions */
.section {
    transition: opacity 0.3s ease;
}

.section.bg-loaded {
    opacity: 1;
}

body {
    font-family: 'Acumin Variable', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
    background: linear-gradient(to top, var(--base) 0%, var(--base-4) 100%);
    padding-bottom: 80px; /* Platz für fixiertes Footer */
    font-size-adjust: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

/* Top Logo */
.top-logo {
    position: fixed;
    top: 60px;
    left: 20px;
    z-index: 1001;
}

.top-logo .logo-link {
    display: inline-block;
    text-decoration: none;
    border: none;
    outline: none;
}

.top-logo .logo-img {
    height: 180px;
    width: auto;
    transition: transform 0.3s ease;
    display: block;
}

.top-logo .logo-img:hover {
    transform: scale(1.05);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 50px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 16px;
    transition: color 0.2s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link.active {
    color: var(--accent);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent);
}

/* Legal links styling */
.nav-legal {
    display: none;
}

.nav-legal .nav-link {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size-adjust: none;
}

.nav-legal:first-of-type .nav-link {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
    padding-top: 1rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Sections */
.section {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    position: relative;
    padding: 0;
    padding-top: 50px; /* Navbar height */
    contain: layout style;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 20px;
}

.section-title {
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text-primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    font-size-adjust: none;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Home Section */
.home-section {
    background: linear-gradient(180deg, var(--base) 0%, var(--base-4) 100%);
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
    padding-top: 50px; /* Navbar height */
    position: relative;
    overflow: hidden;
    contain: layout style;
}

.home-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('Bilder/01_Hintergrund_Homepage.svg');
    background-size: 80%;
    background-position: center right;
    background-repeat: no-repeat;
    z-index: 1;
    margin-right: 5%;
    opacity: 0.8;
    will-change: transform;
    transform: translateZ(0);
}

.home-container {
    width: 100%;
    height: calc(100vh - 50px);
    display: flex;
    align-items: center;
    padding: 0 40px;
    contain: layout style;
}

.home-content {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 2;
    text-align: left;
    padding-top: 30vh;
    padding-left: 5%;
    contain: layout style;
}

.home-text {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    text-align: right;
    width: 100%;
    max-width: 600px;
    contain: layout style;
}

.home-tagline {
    font-size: 3rem;
    color: var(--text-primary);
    font-weight: 400;
    margin: 0 0 0.3rem 0;
    line-height: 1.4;
    min-height: 4.2rem; /* 3rem * 1.4 */
    display: block;
}

.home-tagline-secondary {
    font-size: 2.2rem;
    color: var(--text-primary);
    font-weight: 400;
    margin: 0 0 1.6rem 0;
    line-height: 1.4;
    min-height: 3.08rem; /* 2.2rem * 1.4 */
    display: block;
}

.home-logo {
    font-size: 3.9rem;
    font-weight: 400;
    margin: 0;
    line-height: 1;
    min-height: 3.9rem;
    display: block;
    font-family: 'Acumin Variable', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.logo-br, .logo-nexx {
    color: var(--contrast-2);
}

.logo-ai {
    color: var(--accent);
}

.home-subtitle {
    font-size: 2.9rem;
    color: var(--text-primary);
    font-weight: 400;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-height: 2.9rem;
    display: block;
}

.home-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.brain-graphic {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    object-fit: contain;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(68, 184, 163, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 1.5rem;
    color: white;
    opacity: 0.7;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Team Section */
.team-section {
    background: linear-gradient(180deg, var(--base) 0%, var(--base-4) 100%);
    position: relative;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: url('Bilder/02_Hintergrund_Team.svg');
    background-size: 70%;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
    margin-right: 8%;
    opacity: 0.8;
}

.team-content {
    position: relative;
    z-index: 2;
    margin-top: 2rem;
}

.team-text {
    padding: 3rem;
    border-radius: 20px;
    max-width: 800px;
    margin: 0 auto 0 0;
}

.team-text p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}


.team-strengths {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.team-strengths li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 2rem;
    font-size: 1.1rem;
}

.team-strengths li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
    font-size: 1.5rem;
}

/* Services Section */
.services-section {
    background: linear-gradient(180deg, var(--base) 0%, var(--base-4) 100%);
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: url('Bilder/03_Hintergrund_Leistungen.svg');
    background-size: 70%;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 0.8;
    margin-left: 8%;
}

.services-content {
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

.services-text {
    max-width: 1100px;
    margin-left: 35%;
}

.service-section {
    padding: 2rem;
    border-radius: 12px;
}

.client-logos {
    margin-top: 3rem;
    margin-left: 35%;
    padding-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.client-logos h3 {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.client-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.client-logo {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    min-height: 110px;
}

.client-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.client-logo img {
    max-height: 45px;
    width: auto;
    opacity: 0.95;
    transition: transform 0.3s ease;
}

.client-logo img:hover {
    transform: scale(1.05);
}

.client-logo-pmc img {
    max-height: 60px;
}

.client-logo-mrai img {
    max-height: 85px;
}

.service-section h3 {
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-section p {
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 1rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(68, 184, 163, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(68, 184, 163, 0.15);
}

.service-icon {
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    text-align: left;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-muted);
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Zoho Solutions Section */
.zoho-section {
    background: linear-gradient(180deg, var(--base) 0%, var(--base-4) 100%);
    position: relative;
}

.zoho-logo {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    margin-right: 8%;
    pointer-events: none;
}

.zoho-logo-img {
    max-width: 42%;
    max-height: 42%;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.8;
}

.zoho-content {
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

.zoho-text {
    max-width: 800px;
    margin-left: 0;
    margin-right: auto;
}

/* Academy Section */
.academy-section {
    background: linear-gradient(180deg, var(--base) 0%, var(--base-4) 100%);
    position: relative;
}

.academy-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: url('Bilder/04_Hintergrund_Akademie.svg');
    background-size: 70%;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 0.8;
    margin-right: 8%;
}

.academy-content {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.academy-text {
    max-width: 1100px;
    margin-right: 35%;
}

.academy-text h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.academy-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.academy-text h4 {
    color: var(--accent);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
}

.academy-text h4:first-of-type {
    margin-top: 1rem;
}

.academy-features {
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 0.25rem;
}

.feature h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature p {
    color: var(--text-secondary);
    margin: 0;
}

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

.academy-image i {
    font-size: 8rem;
    color: var(--accent-color);
    opacity: 0.3;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(180deg, var(--base) 0%, var(--base-4) 100%);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: url('Bilder/05_Hintergrund_Kontakt.svg');
    background-size: 70%;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 0.8;
    margin-left: 8%;
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
    margin-left: 0;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    margin-left: 45%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.contact-item i {
    font-size: 1.75rem;
    color: var(--accent);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.contact-item p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.contact-item p a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item p a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.contact-item p a.btn,
.contact-item p a.btn-primary {
    color: white !important;
}

.contact-item p a.btn:hover,
.contact-item p a.btn-primary:hover {
    color: white !important;
    text-decoration: none;
}

.flag-emoji {
    display: inline-block;
    margin-right: 0.3rem;
    font-style: normal;
    vertical-align: middle;
    font-size: 1.2em;
    line-height: 1;
    font-family: Inter, system-ui, "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}

.country-code-fallback {
    display: inline-block;
    background: var(--accent);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    margin-right: 0.5rem;
    vertical-align: middle;
    opacity: 0.5;
    line-height: 1.2;
}

/* Wenn Emojis nicht unterstützt werden (z.B. in älteren Chrome-Versionen), 
   werden die Ländercodes als Fallback sichtbarer */
@supports (-webkit-appearance: none) {
    .country-code-fallback {
        opacity: 0.7;
    }
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 600px;
}

.form-group {
    margin-bottom: 1.5rem;
}

/* CAPTCHA Styling */
.g-recaptcha {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
}

.form-text {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    text-align: center;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(68, 184, 163, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Booking Section */
.booking-section {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    text-align: center;
}

.booking-section h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.booking-section p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.booking-section .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 15px 30px;
    font-size: 1rem;
    text-decoration: none;
    background: var(--accent);
    color: white;
    border: 2px solid var(--accent);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.booking-section .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.booking-section .btn:hover::before {
    left: 100%;
}

.booking-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(68, 184, 163, 0.4);
    color: white;
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.booking-section .btn i {
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.95), rgba(17, 24, 39, 0.95));
    color: white;
    padding: 1rem 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: auto;
    min-height: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 0.5rem;
    color: white;
    font-size: 1rem;
}

.footer-section p {
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.footer-section ul li {
    margin: 0;
}

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.8rem;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

.footer-section ul li a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.footer-center {
    text-align: center;
    flex: 1;
}

.footer-center p {
    color: #d1d5db;
    font-size: 0.8rem;
    margin: 0;
}

.footer-bottom {
    color: #9ca3af;
    font-size: 0.8rem;
    margin: 0;
    text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {

    /* Farbverlauf in mobiler Ansicht von base-4 auf base-3 ändern */
    body {
        background: linear-gradient(to top, var(--base) 0%, var(--base-3) 100%) !important;
    }
    
    .home-section,
    .team-section,
    .services-section,
    .zoho-section,
    .academy-section,
    .contact-section {
        background: linear-gradient(180deg, var(--base) 0%, var(--base-3) 100%) !important;
    }

    .section {
        min-height: 100vh;
        padding-top: 70px;
    }
    
    .home-section {
        min-height: 100vh;
        padding-top: 70px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        right: -100%;
        top: 60px;
        flex-direction: column;
        background-color: white;
        width: 50%;
        text-align: center;
        transition: 0.3s;
        box-shadow: -10px 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }
    
    .nav-legal {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .home-content {
        justify-content: center;
        text-align: center;
        padding-left: 0;
        padding-bottom: 5vh;
    }

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

    .home-logo {
        font-size: 2.8rem;
        min-height: 2.8rem;
    }

    .home-tagline {
        font-size: 2rem;
        min-height: 2.8rem; /* 2rem * 1.4 */
    }
    
    .home-tagline-secondary {
        font-size: 1.6rem;
        min-height: 2.24rem; /* 1.6rem * 1.4 */
    }

    .home-subtitle {
        font-size: 1.8rem;
        min-height: 1.8rem;
    }

    .brain-graphic {
        max-width: 300px;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .academy-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .academy-text {
        margin-right: 0;
        max-width: 100%;
    }
    
    .contact-content {
        flex-direction: column;
        gap: 2rem;
        margin-left: 0;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
        width: 100%;
        margin-right: 0;
        margin-left: 0;
    }
    
    .contact-item {
        padding: 1.25rem;
    }
    
    .contact-form {
        width: 100%;
    }
    
    .booking-section {
        padding: 2rem;
        margin-top: 1.5rem;
    }
    
    .booking-section h3 {
        font-size: 1.3rem;
    }

    .team-text {
        padding: 2rem;
        margin-left: 0;
        max-width: 100%;
    }

    .team-text p,
    .team-strengths li {
        font-size: 1rem;
    }
    

    .services-text,
    .zoho-text {
        margin-left: 0;
        max-width: 100%;
    }
    
    .client-logos {
        margin-left: 0;
        padding-bottom: 1rem;
    }

    .client-logos-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .client-logo {
        padding: 1rem;
    }

    .zoho-logo {
        position: relative;
        width: 100%;
        height: 200px;
        margin: 2rem 0;
        margin-right: 0;
    }
    
    .zoho-logo-img {
        max-width: 30%;
        max-height: 100%;
    }

    .service-section {
        padding: 1.5rem;
    }
    
    .service-section h3 {
        font-size: 1.3rem;
    }

    .footer {
        position: static;
        max-height: none;
        overflow-y: visible;
    }
    
    body {
        padding-bottom: 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-section ul {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .footer-section h4 {
        margin-bottom: 0.5rem;
    }
    
    .footer-center {
        order: 2;
    }
    
    .footer-bottom {
        text-align: center;
        order: 3;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .home-container {
        padding: 0 20px;
    }

    .home-logo {
        font-size: 2.4rem;
        min-height: 2.4rem;
    }

    .home-tagline {
        font-size: 1.8rem;
        min-height: 2.52rem; /* 1.8rem * 1.4 */
    }
    
    .home-tagline-secondary {
        font-size: 1.4rem;
        min-height: 1.96rem; /* 1.4rem * 1.4 */
    }

    .home-subtitle {
        font-size: 1.5rem;
        min-height: 1.5rem;
    }

    .brain-graphic {
        max-width: 250px;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-card,
    .team-text,
    .contact-form {
        padding: 1.5rem;
    }

    .team-text {
        margin-left: 0;
        max-width: 100%;
    }

    .team-text p,
    .team-strengths li {
        font-size: 0.9rem;
    }

    .academy-text h3 {
        font-size: 2rem;
    }
    
    .impressum-text,
    .datenschutz-text,
    .agb-text {
        padding: 1.5rem;
    }
    
    .impressum-text h3,
    .datenschutz-text h3,
    .agb-text h3 {
        font-size: 1.3rem;
    }
}

/* Impressum, Datenschutz, AGB Pages */
.impressum-section,
.datenschutz-section,
.agb-section {
    background: var(--base);
    position: relative;
}

.impressum-content,
.datenschutz-content,
.agb-content {
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

.impressum-text,
.datenschutz-text,
.agb-text {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.impressum-text h3,
.datenschutz-text h3,
.agb-text h3 {
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.impressum-text h3:first-child,
.datenschutz-text h3:first-child,
.agb-text h3:first-child {
    margin-top: 0;
}

.impressum-text p,
.datenschutz-text p,
.agb-text p {
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Listen in rechtlichen Seiten einrücken */
.impressum-text ul,
.datenschutz-text ul,
.agb-text ul {
    margin: 1rem 0;
    padding-left: 2rem;
    list-style-type: disc;
}

.impressum-text li,
.datenschutz-text li,
.agb-text li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.impressum-text ul ul,
.datenschutz-text ul ul,
.agb-text ul ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    list-style-type: circle;
}

.impressum-text ul ul ul,
.datenschutz-text ul ul ul,
.agb-text ul ul ul {
    list-style-type: square;
}

/* Nummerierte Listen in AGB */
.agb-text ol {
    margin: 1rem 0;
    padding-left: 0;
    list-style-type: none;
    counter-reset: agb-counter;
}

.agb-text ol > li {
    counter-increment: agb-counter;
    margin-bottom: 2rem;
    padding-left: 2.5rem;
    position: relative;
}

.agb-text ol > li::before {
    content: counter(agb-counter) ".";
    position: absolute;
    left: -0.4rem;
    top: 0;
    font-weight: 600;
    color: var(--accent);
    font-size: 1.5rem;
}

.agb-text ol > li h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    padding-left: 0;
}

/* Verschachtelte nummerierte Listen in AGB */
.agb-text ol > li ol {
    margin: 1rem 0;
    padding-left: 2rem;
    list-style-type: none;
    counter-reset: agb-sub-counter;
}

.agb-text ol > li ol > li {
    counter-increment: agb-sub-counter;
    margin-bottom: 1rem;
    padding-left: 0;
    position: relative;
}

.agb-text ol > li ol > li::before {
    content: counter(agb-counter) "." counter(agb-sub-counter);
    position: absolute;
    left: -2.4rem;
    top: 0;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 1rem;
}

.agb-text ol > li ol > li p {
    margin-bottom: 1rem;
    padding-left: 0;
}

.agb-text ol > li ul {
    margin: 1rem 0;
    padding-left: 2rem;
    list-style-type: disc;
}

.agb-text ol > li ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Smooth scrolling deaktiviert */

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid #000;
    }
    
    .btn-secondary {
        border: 2px solid #fff;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: #e5e7eb;
        --text-muted: #9ca3af;
        --bg-primary: #1f2937;
        --bg-secondary: #374151;
        --bg-tertiary: #4b5563;
        --contrast: #ffffff;
        --contrast-2: #f9fafb;
        --contrast-3: #f3f4f6;
    }
    
    body {
        background: linear-gradient(to top, var(--bg-primary) 0%, var(--bg-secondary) 100%);
        color: var(--text-primary);
    }
    
    .home-section,
    .team-section,
    .services-section,
    .zoho-section,
    .academy-section,
    .contact-section {
        background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%) !important;
    }
    
    .section-title {
        color: var(--text-primary) !important;
        background: none !important;
        -webkit-background-clip: unset !important;
        -webkit-text-fill-color: unset !important;
        background-clip: unset !important;
    }
    
    .home-tagline,
    .home-tagline-secondary,
    .home-subtitle {
        color: var(--text-primary) !important;
    }
    
    .logo-br, .logo-nexx {
        color: var(--text-primary) !important;
    }
    
    .logo-ai {
        color: var(--accent) !important;
    }
    
    .nav-link {
        color: var(--text-primary) !important;
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: var(--accent) !important;
    }
    
    .team-text p,
    .service-section p,
    .academy-text p {
        color: var(--text-secondary) !important;
    }
    
    .team-strengths li {
        color: var(--text-secondary) !important;
    }
    
    .contact-item h4 {
        color: var(--text-primary) !important;
    }
    
    .contact-item p {
        color: var(--text-secondary) !important;
    }
    
    .contact-form {
        background: var(--bg-secondary) !important;
        border: 1px solid var(--bg-tertiary);
    }
    
    .form-group input,
    .form-group textarea {
        background: var(--bg-primary) !important;
        border-color: var(--bg-tertiary) !important;
        color: var(--text-primary) !important;
    }
    
    .form-group input:focus,
    .form-group textarea:focus {
        border-color: var(--accent) !important;
    }
    
    .booking-section {
        background: var(--bg-secondary) !important;
        border: 1px solid var(--bg-tertiary);
    }
    
    .booking-section h3 {
        color: var(--text-primary) !important;
    }
    
    .booking-section p {
        color: var(--text-secondary) !important;
    }
    
    .navbar {
        background: rgba(31, 41, 55, 0.95) !important;
        border-bottom: 1px solid var(--bg-tertiary);
    }
    
    .nav-menu {
        background-color: var(--bg-secondary) !important;
    }
    
    .hamburger .bar {
        background-color: var(--text-primary) !important;
    }
    
    /* Invertierte SVG-Grafiken im Dark Mode verwenden */
    .home-section::before {
        background: url('Bilder/01_Hintergrund_Homepage_inv.svg') !important;
        background-size: 80% !important;
        background-position: center right !important;
        background-repeat: no-repeat !important;
    }
    
    .team-section::before {
        background: url('Bilder/02_Hintergrund_Team_inv.svg') !important;
        background-size: 70% !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }
    
    .services-section::before {
        background: url('Bilder/03_Hintergrund_Leistungen_inv.svg') !important;
        background-size: 70% !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }
    
    .zoho-logo-img {
        opacity: 0.9 !important;
        filter: brightness(1.2) !important;
    }
    
    .academy-section::before {
        background: url('Bilder/04_Hintergrund_Akademie_inv.svg') !important;
        background-size: 70% !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }
    
    .contact-section::before {
        background: url('Bilder/05_Hintergrund_Kontakt_inv.svg') !important;
        background-size: 70% !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }
    
    .footer {
        background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(31, 41, 55, 0.95)) !important;
    }
    
    /* Impressum, Datenschutz und AGB Seiten Dark Mode */
    .impressum-section,
    .datenschutz-section,
    .agb-section {
        background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%) !important;
    }
    
    .impressum-text,
    .datenschutz-text,
    .agb-text {
        background: var(--bg-secondary) !important;
        border: 1px solid var(--bg-tertiary);
    }
    
    .impressum-text h3,
    .datenschutz-text h3,
    .agb-text h3 {
        color: var(--text-primary) !important;
    }
    
    .impressum-text p,
    .datenschutz-text p,
    .agb-text p {
        color: var(--text-secondary) !important;
    }
    
    .impressum-text li,
    .datenschutz-text li,
    .agb-text li {
        color: var(--text-secondary) !important;
    }
    
    /* Logo in inverser Variante im Dark Mode */
    .top-logo .logo-img {
        content: url('Bilder/Logo_inv.svg') !important;
    }
}

/* Logo responsive adjustments */
@media (max-width: 768px) {
    .top-logo .logo-img {
        height: 150px;
    }
    
    .top-logo {
        top: 70px;
        left: 15px;
    }
}

@media (max-width: 480px) {
    .top-logo .logo-img {
        height: 135px;
    }
    
    .top-logo {
        top: 75px;
        left: 10px;
    }
}

/* Very small screens */
@media (max-width: 320px) {
    .footer {
        position: static;
        padding: 0.5rem 0;
    }
    
    body {
        padding-bottom: 0;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .footer-section ul {
        gap: 1rem;
    }
    
    .footer-section ul li a {
        font-size: 0.8rem;
    }
    
    .footer-center p {
        font-size: 0.7rem;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-bottom p {
        font-size: 0.7rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .scroll-indicator,
    .hero-buttons,
    .contact-form {
        display: none;
    }
    
    .section {
        min-height: auto;
        page-break-inside: avoid;
    }
}

