/*--------------------------------------------------------------
# Fabian Fronhofer - Unternehmensberatung
# Modern One-Pager Design (Forma Style)
# Designed for Digital Excellence
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# CSS Variables
--------------------------------------------------------------*/
:root {
    /* Primary Colors */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    
    /* Accent Colors */
    --accent: #06b6d4;
    --accent-light: #22d3ee;
    
    /* Gradient */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
    --gradient-dark: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
    
    /* Neutrals */
    --dark: #0f172a;
    --dark-lighter: #1e293b;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --white: #ffffff;
    
    /* Fonts */
    --font-primary: 'Space Grotesk', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

/*--------------------------------------------------------------
# Base Styles
--------------------------------------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
    /* iOS Safe Area Support */
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

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

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

a:hover {
    color: var(--primary-dark);
}

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

.section-padding {
    padding: 100px 0;
    overflow-x: hidden;
}

/*--------------------------------------------------------------
# Section Headers
--------------------------------------------------------------*/
.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

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

.section-header p {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.section-header.text-center {
    margin-bottom: 4rem;
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.btn {
    font-family: var(--font-primary);
    font-weight: 500;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: var(--white);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    color: var(--white);
}

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

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    padding-top: max(1rem, env(safe-area-inset-top));
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    padding: 0.5rem 0;
    padding-top: max(0.5rem, env(safe-area-inset-top));
    box-shadow: var(--shadow-lg);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-sub {
    font-size: 0.875rem;
    color: var(--gray-400);
    font-weight: 400;
}

.navbar ul {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar .nav-link {
    color: var(--gray-300);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border-radius: var(--radius);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.navbar .cta-btn {
    background: var(--gradient-primary);
    color: var(--white) !important;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
}

.navbar .cta-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.mobile-nav-toggle {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0.5rem;
    line-height: 1;
}

.mobile-nav-toggle:focus {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

@media (max-width: 991px) {
    .mobile-nav-toggle {
        display: block;
    }
    
    .navbar ul {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--dark);
        flex-direction: column;
        padding: 5rem 2rem;
        transition: var(--transition-slow);
        gap: 0.5rem;
        transform: translateX(100%);
    }

    .navbar ul.active {
        transform: translateX(0);
    }
    
    .navbar .nav-link {
        width: 100%;
        padding: 1rem;
    }
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
    min-height: 100vh;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.7) 50%, rgba(15, 23, 42, 0.85) 100%),
        url('../img/hero-digital-transformation.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-full);
    color: var(--primary-light);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-badge i {
    color: var(--accent);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-400);
    max-width: 540px;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat-item {
    text-align: left;
}

.stat-number {
    display: block;
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-300);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.hero-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.2;
    filter: blur(60px);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
    font-weight: 500;
    animation: float 6s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.5rem;
    color: var(--accent);
}

.floating-card.card-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.floating-card.card-2 {
    top: 45%;
    right: 5%;
    animation-delay: 2s;
}

.floating-card.card-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-indicator a {
    color: var(--gray-300);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

.scroll-indicator a:hover {
    color: var(--white);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about-image {
    position: relative;
    overflow: hidden;
}

.image-frame {
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl);
    padding: 3px;
}

.image-placeholder {
    background: var(--gray-100);
    border-radius: calc(var(--radius-2xl) - 3px);
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
}

.image-placeholder i {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.experience-badge .number {
    display: block;
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.3;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-700);
}

.feature-item i {
    color: var(--primary);
    font-size: 1.25rem;
}

@media (max-width: 768px) {
    .about-features {
        grid-template-columns: 1fr;
    }

    .experience-badge {
        right: 10px;
        bottom: -10px;
    }
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services {
    background: var(--gradient-dark);
    overflow-x: hidden;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-glow);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card.featured {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

.service-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.75rem;
    color: var(--white);
}

.service-card h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray-400);
    margin-bottom: 1.5rem;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    color: var(--gray-300);
    padding: 0.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.service-list li:first-child {
    border-top: none;
}

/*--------------------------------------------------------------
# Skills Section
--------------------------------------------------------------*/
.skill-item {
    margin-bottom: 1.5rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-weight: 500;
    color: var(--dark);
}

.skill-percent {
    color: var(--primary);
    font-weight: 600;
}

.skill-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 1s ease-out;
}

.tech-stack {
    background: var(--gray-100);
    border-radius: var(--radius-2xl);
    padding: 2rem;
}

.tech-stack h3 {
    font-size: 1rem;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.tech-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.tech-item i {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

.tech-item span {
    font-size: 0.75rem;
    color: var(--gray-600);
    font-weight: 500;
}

.tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tool-badge {
    background: var(--white);
    border: 1px solid var(--gray-300);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--gray-700);
    transition: var(--transition);
}

.tool-badge:hover {
    border-color: var(--primary);
    color: var(--primary);
}

@media (max-width: 768px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/*--------------------------------------------------------------
# Quote Section
--------------------------------------------------------------*/
.quote-section {
    background: var(--gradient-primary);
    padding: 80px 0;
    overflow-x: hidden;
}

.quote-card {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: var(--white);
}

.quote-card i {
    font-size: 3rem;
    opacity: 0.5;
    margin-bottom: 1rem;
}

.quote-card blockquote {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.quote-card cite {
    font-style: normal;
    opacity: 0.8;
}

/*--------------------------------------------------------------
# References Section
--------------------------------------------------------------*/
.references {
    background: var(--gray-100);
    overflow-x: hidden;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.client-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem 1rem;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.client-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.client-item span {
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.875rem;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card .stat-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.stat-card .stat-number {
    font-size: 2rem;
    color: var(--dark);
}

.stat-card .stat-label {
    color: var(--gray-600);
}

@media (max-width: 991px) {
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-row {
        grid-template-columns: 1fr;
    }
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact-info {
    margin-top: 2rem;
}

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

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.25rem;
    color: var(--white);
}

.contact-text .label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.contact-text a,
.contact-text span {
    color: var(--dark);
    font-weight: 500;
}

.contact-text a:hover {
    color: var(--primary);
}

.contact-form-wrapper {
    background: var(--gray-100);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
}

.form-control {
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-floating label {
    color: var(--gray-500);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
    background: var(--dark);
    color: var(--gray-400);
    padding: 4rem 0 2rem;
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
    overflow-x: hidden;
}

.footer-brand {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.footer-brand .logo-text {
    font-size: 2rem;
}

.footer-heading {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    font-family: var(--font-heading);
}

.footer-impressum p {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-impressum a {
    color: var(--primary);
    transition: color 0.3s;
}

.footer-impressum a:hover {
    color: var(--secondary);
}

.footer-legal-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-legal-links li {
    margin-bottom: 0.75rem;
}

.footer-legal-links a {
    color: var(--gray-400);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-legal-links a:hover {
    color: var(--white);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2.5rem 0 1.5rem;
}

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

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
}

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

.footer-bottom p {
    margin: 0;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .footer-brand {
        justify-content: center;
    }
    
    .footer .col-lg-4 {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/*--------------------------------------------------------------
# Back to Top Button
--------------------------------------------------------------*/
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    color: var(--white);
}

/*--------------------------------------------------------------
# Animations
--------------------------------------------------------------*/
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 991px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    /* Mobile Hero Adjustment - mehr Platz für Header */
    .hero {
        padding-top: 100px;
    }
    
    .hero .container {
        padding-top: 20px;
    }
    
    .hero .min-vh-100 {
        min-height: calc(100vh - 100px);
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 80px;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
        line-height: 1.15;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .hero {
        padding-top: 70px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
}

/*--------------------------------------------------------------
# Mobile Overflow Prevention (Bootstrap + iOS Safari Fix)
--------------------------------------------------------------*/
/* Global Bootstrap container fix */
.container,
.container-fluid,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    /* Prevent any horizontal overflow on mobile */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    main,
    section,
    article,
    header,
    footer,
    .container,
    .container-fluid {
        max-width: 100vw;
        overflow-x: hidden;
    }

    /* Fix Bootstrap row negative margins - CRITICAL */
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100%;
    }

    .row > * {
        padding-left: 12px;
        padding-right: 12px;
        max-width: 100%;
    }

    /* Bootstrap column fix */
    [class*="col-"] {
        max-width: 100%;
    }

    /* Hide mobile nav completely when not active */
    .navbar ul:not(.active) {
        visibility: hidden;
        pointer-events: none;
    }
}

