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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2000;
    padding: 10px 14px;
    background: var(--cp-accent);
    color: var(--cp-deep);
    border-radius: 10px;
    font-weight: 700;
    transform: translateY(-140%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid rgba(var(--cp-accent-rgb), 0.65);
    outline-offset: 3px;
}

/* Legal pages */
.legal-page {
    padding: 120px 0 90px;
}

.legal-header {
    text-align: left;
    margin-bottom: 26px;
}

.legal-title {
    color: var(--cp-deep);
}

.legal-subtitle {
    margin-top: 10px;
    color: var(--cp-muted);
    max-width: 70ch;
}

.legal-content {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 34px;
    box-shadow: var(--shadow-md);
    max-width: 980px;
}

.legal-content h2 {
    margin: 26px 0 10px;
    font-size: 1.35rem;
}

.legal-content p {
    margin: 10px 0;
}

.legal-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.95em;
    background: rgba(var(--cp-deep-rgb), 0.06);
    padding: 2px 6px;
    border-radius: 8px;
}

html[lang="de"] .lang-en { display: none; }
html[lang="en"] .lang-de { display: none; }

.cookie-privacy-link {
    margin: -18px 0 26px;
    text-align: center;
}

.cookie-privacy-link a {
    font-weight: 700;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Typography */
h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--primary-color);
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.125rem;
    font-weight: 600;
}

p {
    color: var(--text-light);
}

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

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

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

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

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.btn-full {
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 76px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-color);
    line-height: 1;
}

.logo-img {
    height: 64px;
    width: auto;
    display: block;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-portal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: -0.2px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background:
        radial-gradient(120% 140% at 20% 10%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 55%),
        linear-gradient(135deg, var(--cp-primary) 0%, var(--cp-primary-hover) 55%, var(--cp-deep) 100%);
    box-shadow:
        0 10px 18px rgba(var(--cp-deep-rgb), 0.18),
        0 2px 0 rgba(255, 255, 255, 0.12) inset;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.nav-portal-btn::after {
    content: '';
    position: absolute;
    top: -30%;
    left: -60%;
    width: 60%;
    height: 160%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(18deg);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.nav-portal-btn:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow:
        0 14px 24px rgba(var(--cp-deep-rgb), 0.22),
        0 2px 0 rgba(255, 255, 255, 0.14) inset;
}

.nav-portal-btn:hover::after {
    transform: translateX(260%) rotate(18deg);
}

.nav-portal-btn:active {
    transform: translateY(0);
}

.nav-portal-btn:focus-visible {
    outline: 3px solid rgba(var(--cp-accent-rgb), 0.55);
    outline-offset: 3px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: #00A2AA;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: #101a33;
}

.lang-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
}

.lang-btn {
    background: transparent;
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 2px;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.5;
}

.lang-btn:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.lang-btn.active {
    opacity: 1;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px var(--cp-focus);
}

.lang-btn svg {
    display: block;
    border-radius: 2px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 140px 0 100px;
    background: var(--cp-hero-grad);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 520px at 15% 18%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 62%),
        radial-gradient(700px 420px at 85% 40%, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 60%);
    pointer-events: none;
}

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

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    margin-bottom: 20px;
    color: #fff;
}

.hero-content p {
    font-size: 1.125rem;
    margin-bottom: 32px;
    max-width: 540px;
    color: rgba(255, 255, 255, 0.84);
}

.hero .btn-primary {
    background: var(--cp-accent);
    color: var(--cp-deep);
    border-color: transparent;
}

.hero .btn-primary:hover {
    background: var(--cp-accent-hover);
    color: var(--cp-deep);
}

.hero .btn-secondary {
    color: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.52);
}

.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.server-rack {
    width: 200px;
    height: 280px;
    background: var(--cp-deep);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-lg);
}

.server-row {
    height: 50px;
    background: linear-gradient(135deg, var(--cp-primary-hover) 0%, var(--cp-deep) 100%);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.server-row::before {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--cp-accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    margin-bottom: 12px;
}

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

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    color: var(--accent-color);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    margin-bottom: 16px;
    color: var(--primary-color);
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content h2 {
    margin-bottom: 24px;
}

.about-content > p {
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.values {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.value-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.value-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.value-icon svg {
    width: 24px;
    height: 24px;
}

.value-text h4 {
    margin-bottom: 4px;
    color: var(--primary-color);
}

.value-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--cp-tint) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.server-icon-large {
    width: 200px;
    height: 200px;
    color: var(--secondary-color);
    opacity: 0.8;
}

.server-icon-large svg {
    width: 100%;
    height: 100%;
}

/* Team Section */
.team {
    padding: 100px 0;
    background: var(--bg-white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.team-card {
    text-align: center;
}

.team-avatar {
    margin-bottom: 16px;
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 2rem;
    font-weight: 700;
}

.team-card h4 {
    color: var(--primary-color);
    margin-bottom: 4px;
}

.team-role {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info h2 {
    margin-bottom: 16px;
}

.contact-info > p {
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-text span {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-text a {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.contact-form-wrapper {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    color: #1F2C33 !important;
    transition: var(--transition);
    background: #FFFFFF;
}

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

.form-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    color: var(--cp-success);
}

.success-icon svg {
    width: 100%;
    height: 100%;
}

.form-success h3 {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.form-success p {
    color: var(--text-light);
}

.form-error {
    border: 1px solid rgba(var(--cp-danger-rgb), 0.35);
    background: rgba(var(--cp-danger-rgb), 0.08);
    color: var(--primary-color);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-top: 14px;
}

.form-error strong {
    display: block;
    margin-bottom: 6px;
    color: var(--cp-danger);
}

/* Footer */
.footer {
    background: var(--cp-deep);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
}

.footer-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: white;
    margin-bottom: 16px;
}

.footer-logo-img {
    height: 64px;
    width: auto;
    display: block;
}

.footer-logo-img-text {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    filter: brightness(0) invert(1);
    opacity: 0.96;
    -webkit-mask-image: linear-gradient(90deg, transparent 0 32%, #000 40% 100%);
    mask-image: linear-gradient(90deg, transparent 0 32%, #000 40% 100%);
}

@media (max-width: 768px) {
    .nav-wrapper {
        height: 72px;
    }

    .logo-img {
        height: 56px;
    }
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 300px;
}

.footer-column h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    text-align: center;
}

/* Footer Social Links */
.footer-social {
    display: flex;
    flex-direction: column;
}

.footer-social h4 {
    color: white;
    margin-bottom: 16px;
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-link svg {
    width: 22px;
    height: 22px;
}

/* Active social links (future use) */
.social-link:not([data-coming-soon="true"]):hover {
    background: var(--cp-accent);
    color: var(--cp-deep);
    transform: translateY(-2px);
}

/* Disabled/Coming Soon state */
.social-link[data-coming-soon="true"] {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
}

.social-link[data-coming-soon="true"]:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

/* Focus states for accessibility */
.social-link:focus-visible {
    outline: 3px solid rgba(var(--cp-accent-rgb), 0.65);
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .about-image {
        order: -1;
    }
    
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-portal-btn {
        height: 38px;
        padding: 0 12px;
        font-size: 0.88rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content p {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
        margin-bottom: 40px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-brand p {
        max-width: 100%;
    }
    
    .contact-form-wrapper {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 0 80px;
    }
    
    .services,
    .about,
    .team,
    .contact {
        padding: 60px 0;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
}

/* Mobile Menu */
.nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    gap: 16px;
}
