/* ==========================================
   LOADING SCREEN
   ========================================== */

.loading-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.loading-logo {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-logo-text {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 900;
    color: var(--color-white);
    letter-spacing: -0.02em;
    text-align: center;
    white-space: nowrap;
}

.loading-circle {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.loading-circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 4;
}

.loading-circle-progress {
    fill: none;
    stroke: var(--color-white);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    animation: loadingProgress 2s ease-in-out forwards;
}

.loading-text {
    font-size: var(--fs-md);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.05em;
    animation: loadingPulse 1.5s ease-in-out infinite;
}

@keyframes loadingProgress {
    0% {
        stroke-dashoffset: 283;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes loadingPulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */

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

:root {
    /* Color Palette - Professional Tech & Production Industry */
    --color-primary: #0066CC;        /* Vertrauenswürdiges Blau */
    --color-primary-dark: #004C99;   /* Dunkleres Blau */
    --color-secondary: #2C3E50;      /* Professionelles Dunkelgrau */
    --color-accent: #00A3E0;         /* Helles Tech-Blau */
    --color-black: #1A1A1A;
    --color-white: #FFFFFF;
    --color-gray-light: #F8F9FA;
    --color-gray: #E8EAED;
    --color-gray-dark: #495057;
    --color-text: #2C3E50;
    --hero-min: 640px;
    --hero-max: 1100px;
    
    /* Typography - Fluid scaling */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Fluid Typography */
    --fs-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --fs-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --fs-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --fs-md: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
    --fs-lg: clamp(1.2rem, 1.05rem + 0.65vw, 1.45rem);
    --fs-xl: clamp(1.45rem, 1.1rem + 1.3vw, 1.9rem);
    --fs-2xl: clamp(1.85rem, 1.3rem + 2vw, 2.8rem);
    --fs-3xl: clamp(2.3rem, 1.5rem + 3vw, 3.5rem);
    --fs-4xl: clamp(2.8rem, 1.8rem + 4vw, 4.5rem);
    
    /* Spacing - Fluid */
    --space-xs: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
    --space-sm: clamp(0.875rem, 0.75rem + 0.6vw, 1.3rem);
    --space-md: clamp(1.5rem, 1.2rem + 1.2vw, 2.8rem);
    --space-lg: clamp(2.5rem, 2rem + 2.5vw, 4.5rem);
    --space-xl: clamp(3.5rem, 2.5rem + 3.5vw, 5.5rem);
    --space-xxl: clamp(4.5rem, 3.5rem + 4vw, 6.5rem);
    --page-padding: clamp(2rem, 4vw, 4cm);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.6s ease;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ==========================================
   NAVIGATION - FIXED HEADER
   ========================================== */

.nav {
    position: relative;
    width: 100%;
    z-index: 10;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.nav-container {
    width: 100%;
    padding: clamp(0.75rem, 1vw, 1.1rem) var(--page-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: var(--fs-xl);
    font-weight: 900;
    color: var(--color-white);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-image {
    height: 42px;
    width: auto;
    display: block;
}

.logo-text {
    overflow: hidden;
    white-space: nowrap;
}

.logo-text::after {
    content: attr(data-mobile);
    display: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.15), transparent 45%),
        radial-gradient(circle at 80% 0%, rgba(0, 0, 0, 0.2), transparent 55%);
    mix-blend-mode: soft-light;
    animation: gradientShift 10s ease-in-out infinite alternate;
    display: inline-block;
    transition: transform var(--transition-fast);
    pointer-events: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: clamp(1.5rem, 3vw, 3rem);
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: var(--fs-sm);
    letter-spacing: 0.02em;
    transition: color var(--transition-fast), opacity var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-white);
    opacity: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.9);
    transition: width var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 100;
}

.burger-line {
    width: 100%;
    height: 3px;
    background-color: var(--color-white);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================
   HERO SECTION - FULL HEIGHT
   ========================================== */

.hero {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding-block: clamp(2rem, 6vh, 4rem);
}

.hero-content {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 clamp(2rem, 5vw, 6rem);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: center;
    justify-content: center;
}

@media (max-width: 1400px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: clamp(1.5rem, 3vw, 2.5rem);
    }
}

@media (max-width: 1200px) {
    .hero-content {
        padding: 0 var(--page-padding);
        grid-template-columns: 1fr 1fr;
        gap: clamp(1rem, 2.5vw, 2rem);
    }
}

@media (max-width: 1550px) {
    .hero-content {
        gap: clamp(1rem, 2vw, 1.5rem);
    }
    
    .hero-image {
        width: min(80vw, 480px);
        min-height: clamp(240px, 26vw, 360px);
    }
    
    .hero-headline {
        font-size: clamp(1.6rem, 4vw, 3rem);
    }
}

@media (max-width: 1350px) {
    .hero-image {
        width: min(82vw, 580px);
        min-height: clamp(250px, 27vw, 400px);
    }
}

@media (max-width: 900px) {
    .hero-image {
        width: min(75vw, 420px);
        min-height: clamp(220px, 24vw, 320px);
    }
}

.hero-text {
    animation: fadeInUp 1s ease-out;
    max-width: 100%;
    width: 100%;
    justify-self: end;
    position: relative;
    z-index: 5;
}

.hero-headline {
    font-size: clamp(1.8rem, 4.5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.15;
    color: var(--color-white);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 5;
    max-width: 100%;
}

.hero-headline-line1,
.hero-headline-line2 {
    display: block;
}

.hero-underline {
    width: clamp(80px, 15vw, 120px);
    height: clamp(3px, 0.5vw, 5px);
    background-color: var(--color-white);
    margin: var(--space-sm) 0;
    animation: expandWidth 0.8s ease-out 0.3s backwards;
}

.hero-tagline {
    font-size: clamp(1rem, 2vw, var(--fs-lg));
    font-weight: 600;
    color: var(--color-white);
    margin-top: var(--space-md);
    opacity: 0.95;
    line-height: 1.5;
}

.hero-description {
    font-size: var(--fs-base);
    color: rgba(255, 255, 255, 0.9);
    margin-top: var(--space-sm);
    max-width: min(85%, 52ch);
    word-wrap: break-word;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    flex-wrap: wrap;
    max-width: 100%;
}

.hero-support {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.8);
}

.hero .btn-primary {
    box-shadow: 0 8px 20px rgba(0, 163, 224, 0.3);
    animation: heroCtaPulse 4s ease-in-out infinite;
}

.hero .btn-primary:hover {
    animation-play-state: paused;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    animation: fadeInRight 1s ease-out 0.3s backwards;
    max-width: 100%;
    width: 100%;
    justify-self: start;
}

.hero-image {
    position: relative;
    width: min(95vw, 750px);
    max-width: 100%;
    min-height: clamp(320px, 35vw, 520px);
    aspect-ratio: 16/9;
    perspective: 1200px;
}

@media (max-width: 1400px) {
    .hero-image {
        width: min(90vw, 650px);
        min-height: clamp(280px, 32vw, 450px);
    }
}

@media (max-width: 1200px) {
    .hero-image {
        width: min(85vw, 550px);
        min-height: clamp(260px, 28vw, 400px);
    }
}

#heroCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    pointer-events: auto;
    z-index: 1;
}

/* ==========================================
   SECTIONS
   ========================================== */

.section {
    padding: var(--space-xxl) 0;
}

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

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

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

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

.section-contact {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.container {
    width: 100%;
    padding: 0 var(--page-padding);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-label {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.section-headline {
    font-size: var(--fs-3xl);
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.section-contact .section-headline {
    color: var(--color-white);
}

.section-highlights .section-headline {
    color: var(--color-secondary);
}

/* ==========================================
   ABOUT SECTION
   ========================================== */

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    font-size: var(--fs-md);
    line-height: 1.8;
    color: var(--color-gray-dark);
    text-align: center;
    margin-bottom: var(--space-lg);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

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

.stat-number {
    font-size: var(--fs-3xl);
    font-weight: 900;
    color: var(--color-primary);
    display: block;
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-item::before {
    display: none;
}

.stat-label {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--color-gray-dark);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ==========================================
   SERVICES SECTION
   ========================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: var(--space-lg);
}

@media (max-width: 1400px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    }
}

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

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-item {
    background-color: var(--color-white);
    padding: var(--space-lg) calc(var(--space-lg) * 1.2);
    border-radius: 8px;
    transition: all var(--transition-medium);
    border: 2px solid transparent;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.service-item:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.15);
}

.service-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(0, 102, 204, 0.08) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.service-item:hover::after {
    transform: translateX(0%);
}

.service-title,
.service-description {
    position: relative;
    z-index: 2;
}

.service-title {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
    word-wrap: normal;
    overflow-wrap: normal;
    word-break: keep-all;
    white-space: normal;
    line-height: 1.4;
}

.service-description {
    font-size: var(--fs-base);
    line-height: 1.7;
    color: var(--color-gray-dark);
    word-wrap: normal;
    overflow-wrap: normal;
    word-break: keep-all;
    white-space: normal;
    flex: 1;
}

/* ==========================================
   SOFTWARE SECTION
   ========================================== */

.software-content {
    max-width: 80%;
    margin: 0 auto;
}

.software-description {
    font-size: var(--fs-md);
    line-height: 1.8;
    color: var(--color-text);
    text-align: center;
    margin-bottom: var(--space-lg);
}

.software-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.software-feature {
    background-color: var(--color-gray-light);
    padding: var(--space-md);
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
}

.software-feature-title {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.software-feature-description {
    font-size: var(--fs-base);
    line-height: 1.7;
    color: var(--color-gray-dark);
}

.software-media {
    margin-bottom: var(--space-md);
}

.media-placeholder {
    background-color: var(--color-gray-light);
    border: 2px dashed var(--color-gray);
    border-radius: 12px;
    padding: var(--space-xl);
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-placeholder-content p {
    font-size: var(--fs-md);
    color: var(--color-gray-dark);
    font-style: italic;
}

.software-link {
    display: inline-block;
    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    padding: var(--space-xs) var(--space-sm);
    border: 2px solid var(--color-primary);
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.software-link:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* ==========================================
   HIGHLIGHTS SECTION
   ========================================== */

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: var(--space-lg);
    align-items: stretch;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 900px) {
    .highlights-grid {
        grid-template-columns: 1fr;
    }
}

.highlights-list {
    background-color: var(--color-gray-light);
    padding: var(--space-lg);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.highlight-item {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    align-items: flex-start;
    max-width: 100%;
    overflow: visible;
}

.highlight-item:last-child {
    margin-bottom: 0;
}

.highlight-icon {
    font-size: 1.5rem;
    color: var(--color-primary);
    transform-origin: center;
    transition: transform var(--transition-medium);
    flex-shrink: 0;
}

.highlight-icon svg {
    width: 2.25rem;
    height: 2.25rem;
    display: block;
    stroke: currentColor;
    fill: none;
}

.lucide-icon {
    width: 1.75rem;
    height: 1.75rem;
    display: inline-flex;
}

.highlight-content h3 {
    font-size: var(--fs-lg);
    margin-bottom: var(--space-xs);
    word-wrap: normal;
    overflow-wrap: normal;
    word-break: normal;
    max-width: 100%;
}
.highlight-item:hover .highlight-icon {
    transform: scale(1.2) rotate(-6deg);
}

.highlight-content {
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

.highlight-content p {
    font-size: var(--fs-base);
    color: var(--color-gray-dark);
    word-wrap: normal;
    overflow-wrap: normal;
    word-break: normal;
    max-width: 100%;
}

.highlights-badges {
    display: grid;
    gap: var(--space-sm);
    max-width: 100%;
    width: 100%;
}

.badge-card {
    padding: var(--space-md);
    border: 1px solid var(--color-gray);
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-white) 0%, #FAFBFC 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    min-height: auto;
    max-width: 100%;
    width: 100%;
    word-wrap: normal;
    overflow-wrap: normal;
    word-break: normal;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-medium);
    box-sizing: border-box;
}

.badge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-accent) 100%);
    transition: height var(--transition-medium);
    border-radius: 0 0 4px 0;
}

.badge-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 102, 204, 0.12);
    border-color: rgba(0, 102, 204, 0.2);
}

.badge-card:hover::before {
    height: 100%;
}

.badge-title {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: var(--space-xs);
    position: relative;
    z-index: 1;
    transition: color var(--transition-fast);
    word-wrap: normal;
    overflow-wrap: normal;
    word-break: normal;
    max-width: 100%;
}

.badge-card:hover .badge-title {
    color: var(--color-primary);
}

.badge-text {
    font-size: var(--fs-base);
    color: var(--color-gray-dark);
    line-height: 1.5;
    position: relative;
    z-index: 1;
    word-wrap: normal;
    overflow-wrap: normal;
    word-break: normal;
    max-width: 100%;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */

.contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    /*gap: var(--space-md);*/
}

.contact-text {
    font-size: var(--fs-md);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 auto;
    max-width: 640px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
}

.contact-link {
    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.contact-link:hover {
    color: var(--color-white);
    transform: translateX(3px);
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-sm);
    margin: 0 auto var(--space-sm);
    width: 100%;
    max-width: 720px;
    text-align: left;
    padding-top: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 0.35rem;
}

.form-label {
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.4rem;
}

.form-input,
.form-textarea,
.form-select {
    padding: 0.85rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    font-size: var(--fs-base);
    transition: border var(--transition-fast), background var(--transition-fast);
}

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

.form-group[data-field="message"],
.form-group.full-width {
    grid-column: 1 / -1;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(0, 0, 0, 0.15);
}

.form-checkbox-group {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-checkbox-group input {
    margin-top: 0.15rem;
    -webkit-appearance: none;
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.form-checkbox-group input:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.form-checkbox-group input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0, 227, 179, 0.15);
}

.form-checkbox-group input:checked {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.form-checkbox-group input:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 45%;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: translate(-50%, -60%) rotate(45deg);
}

.form-checkbox-group label {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.85);
}

.contact-disclaimer {
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, 0.7);
    margin-top: var(--space-sm);
    text-align: center;
}

.contact-form .contact-submit {
    grid-column: 1 / -1;
    width: 100%;
    justify-self: center;
}

.form-error {
    color: #ef4444;
    font-size: 0.875rem;
    /*margin-top: 0.35rem;*/
    margin-top: 0rem;
    display: none;
    font-weight: 500;
}

.form-group.has-error .form-input,
.form-group.has-error .form-textarea,
.form-group.has-error .form-select {
    border-color: #ef4444;
}

.form-success-message {
    grid-column: 1 / -1;
    width: 100%;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.4);
    padding: 0.5rem;
    border-radius: 8px;
    /*margin-top: var(--space-md);*/
    font-weight: 500;
    text-align: center;
    font-size: var(--fs-base);
    display: none;
}

.form-success-message.show {
    display: block;
}

/* ==========================================
   LEGAL PAGES
   ========================================== */

.legal-page {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    min-height: 100vh;
    font-family: var(--font-primary);
}

.legal-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-xxl) var(--page-padding) var(--space-xxl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.legal-back {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: var(--fs-base);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    width: fit-content;
}

.legal-back:hover {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(-4px);
}

.legal-header {
    padding: var(--space-lg) 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

.legal-header .section-label {
    color: var(--color-white);
    opacity: 0.8;
}

.legal-header h1 {
    font-size: var(--fs-4xl);
    margin-top: var(--space-sm);
    font-weight: 900;
    letter-spacing: -0.02em;
}

.legal-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: var(--space-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    line-height: 1.8;
}

.legal-section h2 {
    font-size: var(--fs-xl);
    margin-bottom: var(--space-sm);
    font-weight: 700;
    color: var(--color-white);
}

.legal-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.btn-revoke-consent {
    margin-top: var(--space-md);
    padding: 0.7rem 1.5rem;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-revoke-consent:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
    display: inline-block;
    padding: clamp(0.9rem, 1.2vw, 1.2rem) clamp(2rem, 3vw, 3rem);
    font-size: var(--fs-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 163, 224, 0.3);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    transition: transform 0.6s ease;
}

.btn-primary:hover::after {
    transform: translateX(220%);
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: var(--space-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--page-padding);
}

.footer-copyright {
    font-size: var(--fs-sm);
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.4);
}

.footer-link {
    color: var(--color-white);
    text-decoration: none;
    font-size: var(--fs-sm);
    opacity: 0.8;
    transition: opacity var(--transition-fast), color var(--transition-fast);
}

.footer-link:hover {
    opacity: 1;
    color: var(--color-accent);
}

/* ==========================================
   COOKIE BANNER
   ========================================== */

.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 100%);
    width: 100%;
    max-width: 100vw;
    background: rgba(12, 32, 56, 0.96);
    backdrop-filter: blur(10px);
    color: var(--color-white);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    padding: var(--space-md) var(--page-padding);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-medium), transform var(--transition-medium);
    z-index: 100;
}

.cookie-banner.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.cookie-banner-inner {
    display: flex;
    flex-direction: row;
    gap: var(--space-md);
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.cookie-banner-text {
    flex: 1;
    min-width: 0;
}

.cookie-banner-title {
    font-size: var(--fs-base);
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--color-white);
}

.cookie-banner-message {
    font-size: var(--fs-sm);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.cookie-banner-actions {
    display: flex;
    gap: var(--space-sm);
    flex-direction: row;
    align-items: center;
    flex-shrink: 0;
}

.cookie-banner-accept {
    white-space: nowrap;
    padding: 0.75rem 1.75rem;
}

.cookie-banner-reject {
    white-space: nowrap;
    padding: 0.75rem 1.75rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: var(--fs-sm);
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.cookie-banner-reject:hover {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.cookie-banner-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: var(--fs-xs);
    text-align: center;
    transition: color var(--transition-fast);
}

.cookie-banner-link:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-sm);
    }
    
    .cookie-banner-actions {
        flex-direction: column;
    }
    
    .cookie-banner-accept {
        width: 100%;
    }
}

/* ==========================================
   SWIPE GESTURE HINT
   ========================================== */

.swipe-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    animation: swipeHintFade 4s ease-in-out infinite;
}

.swipe-hint.hidden {
    display: none;
}

.swipe-hint-hand {
    width: 60px;
    height: 60px;
    background: rgba(0, 102, 204, 0.1);
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: swipeMove 3s ease-in-out infinite;
}

.swipe-hint-icon {
    width: 30px;
    height: 30px;
    color: var(--color-primary);
}

.swipe-hint-hand::after {
    content: '';
    position: absolute;
    inset: -10px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    opacity: 0;
    animation: swipeRipple 3s ease-out infinite;
}

@keyframes swipeMove {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(40px, -20px);
    }
    50% {
        transform: translate(80px, 0);
    }
    75% {
        transform: translate(40px, 20px);
    }
}

@keyframes swipeRipple {
    0% {
        inset: -10px;
        opacity: 0.6;
    }
    50% {
        inset: -25px;
        opacity: 0;
    }
    100% {
        inset: -25px;
        opacity: 0;
    }
}

@keyframes swipeHintFade {
    0%, 100% {
        opacity: 0;
    }
    10%, 90% {
        opacity: 1;
    }
}

/* ==========================================
   CAMERA RESET BUTTON
   ========================================== */

.camera-reset-btn {
    position: absolute;
    bottom: var(--space-sm);
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    font-size: var(--fs-xs);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 102, 204, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-fast);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.camera-reset-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

.camera-reset-btn:hover {
    background: rgba(0, 102, 204, 0.25);
    color: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.4);
}

.camera-reset-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroCtaPulse {
    0%, 100% {
        box-shadow: 0 8px 20px rgba(0, 163, 224, 0.35);
        filter: brightness(1);
    }
    50% {
        box-shadow: 0 12px 30px rgba(0, 163, 224, 0.5);
        filter: brightness(1.05);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes gradientShift {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05) translate(3%, -2%);
        opacity: 1;
    }
    100% {
        transform: scale(1.1) translate(-2%, 3%);
        opacity: 0.85;
    }
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 120px;
    }
}

@keyframes scrollDown {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) translateY(12px);
        opacity: 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotateY(-5deg);
    }
    50% {
        transform: translateY(-15px) rotateY(5deg);
    }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 1250px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .hero-visual {
        order: -1;
        justify-content: center;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .hero-image {
        width: min(80vw, 650px);
        min-height: clamp(320px, 35vw, 480px);
    }
    
    .hero-text {
        padding-right: 0;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        gap: var(--space-sm);
    }
    
    .hero-visual {
        max-width: 100%;
    }
    
    .hero-image {
        width: min(85vw, 700px);
        min-height: clamp(350px, 40vw, 520px);
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
    }
    
    .software-content {
        max-width: 100%;
    }
}

@media (max-width: 1024px) {
    .burger-menu {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(60vw, 280px);
        height: 100vh;
        background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-sm);
        padding: var(--space-md) var(--space-sm);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
        transition: right 0.3s ease;
        z-index: 99;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        font-size: var(--fs-base);
        display: block;
        padding: var(--space-xs) var(--space-sm);
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    :root {
        --page-padding: clamp(1rem, 4vw, 2rem);
    }
    
    .nav-container {
        padding: 0.75rem var(--page-padding);
    }
    
    .hero-content {
        padding: 0;
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .hero-visual {
        order: -1;
        width: 100%;
        max-width: 100%;
        margin: 0;
        justify-content: center;
    }
    
    .hero-text {
        order: 1;
        padding: clamp(1.5rem, 5vw, 3rem) var(--page-padding);
        text-align: center;
    }
    
    .hero-image {
        min-height: clamp(250px, 55vw, 380px);
        width: min(95vw, 500px);
        max-width: 100%;
        margin: 0 auto;
    }
    
    .hero-headline {
        font-size: clamp(1.8rem, 7vw, 2.8rem);
    }
    
    .hero-underline {
        margin: var(--space-sm) auto;
    }
    
    .hero-tagline,
    .hero-description,
    .hero-cta {
        margin-top: clamp(1rem, 4vw, 2rem);
    }
    
    .hero-tagline {
        font-size: clamp(1rem, 3.5vw, 1.25rem);
    }
    
    .hero-description {
        max-width: 100%;
        font-size: clamp(0.9rem, 3vw, 1.125rem);
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: clamp(0.5rem, 2vw, 1rem);
        justify-content: center;
    }
    
    .hero-support {
        text-align: center;
        font-size: clamp(0.85rem, 2.5vw, 1rem);
        font-weight: 600;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        padding: clamp(0.9rem, 3vw, 1.2rem) clamp(1.5rem, 4vw, 2rem);
        font-size: clamp(0.8rem, 2.5vw, 1rem);
    }
    
    .hero .btn-primary {
        width: 100%;
    }
    
    .highlights-badges {
        display: flex;
        flex-direction: column;
        gap: var(--space-sm);
        width: 100%;
    }
    
    .highlight-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--space-sm);
    }
    
    .highlight-icon {
        margin-bottom: var(--space-xs);
    }
    
    .highlight-content {
        width: 100%;
    }
    
    .badge-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .badge-title {
        word-wrap: normal;
        overflow-wrap: normal;
        word-break: keep-all;
    }
    
    .badge-text {
        word-wrap: normal;
        overflow-wrap: normal;
        word-break: keep-all;
    }
    
    .services-grid,
    .software-features {
        grid-template-columns: 1fr;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--space-xs);
    }
    
    .footer-separator {
        display: none;
    }
    
    .swipe-hint-hand {
        width: 56px;
        height: 56px;
    }
    
    .swipe-hint-hand svg {
        width: 32px;
        height: 32px;
    }
    
    .camera-reset-btn {
        font-size: var(--fs-xs);
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: var(--fs-lg);
    }
    
    .logo-image {
        height: 32px;
    }
    
    .logo-text {
        font-size: 0;
    }
    
    .logo-text::before {
        content: 'HPS';
        font-size: var(--fs-lg);
        font-weight: 900;
    }
    
    .hero-headline {
        font-size: var(--fs-2xl);
    }
    
    .section-headline {
        font-size: var(--fs-2xl);
    }
    
    .hero-image {
        min-height: 250px;
    }
    
    .swipe-hint-hand {
        width: 44px;
        height: 44px;
    }
    
    .swipe-hint-hand svg {
        width: 24px;
        height: 24px;
    }
}
