/* Components */
@import url('variables.css');

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-primary);
  font-weight: var(--font-weight-semibold);
  padding: var(--space-xs) var(--space-md);
  border-radius: 5px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  font-size: 1rem;
  text-align: center;
}

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

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

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

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

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.header.scrolled {
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

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

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

/* Hide nav logo before scrolling */
.nav-logo {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Show nav logo after scrolling */
.header.scrolled .nav-logo {
  opacity: 1;
  visibility: visible;
}

.nav-logo .logo-blue { display: block; }
.nav-logo .logo-white { display: none; }


.nav-links {
  display: flex;
  gap: var(--space-md);
}

.nav-links a {
  color: var(--color-white);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  position: relative;
}

.header.scrolled .nav-links a {
  color: var(--color-text);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-medium);
}

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

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-nav-toggle .icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-white);
    margin: 5px 0;
    transition: all var(--transition-medium);
}
.header.scrolled .mobile-nav-toggle .icon-bar {
     background-color: var(--color-text);
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--color-bg-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right var(--transition-medium);
        gap: var(--space-lg);
    }
    .nav-links.active {
        right: 0;
    }
    .mobile-nav-toggle {
        display: block;
    }
}


/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, #1a2a45 100%);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
}

.hero-logo {
    width: 700px;
    max-width: 95vw;
    margin: 0 auto var(--space-lg);
    overflow: visible;
}
.hero-logo img {
    width: 100%;
    max-width: 700px;
    height: auto;
    display: block;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-sm);
}

.hero p {
  font-size: 1.2rem;
  font-weight: var(--font-weight-light);
  max-width: 700px;
  margin: 0 auto var(--space-md);
  color: rgba(255,255,255,0.8);
}

/* Service Cards */
.card {
  background: var(--color-white);
  border-radius: 8px;
  padding: var(--space-md);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-medium);
  border-left: 5px solid transparent;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-left-color: var(--color-primary);
}

.card-icon {
    width: 50px;
    height: 50px;
    margin-bottom: var(--space-sm);
    color: var(--color-primary);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
}

/* Why Section */
#warum {
    background-color: var(--color-bg-gray);
}

.why-box {
    text-align: center;
}

.why-box-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-sm);
    color: var(--color-primary);
}

/* Approach Section (Timeline) */
.timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 15%;
    right: 15%;
    height: 2px;
    background-color: #e0e0e0;
    z-index: -1;
}

.timeline-step {
    text-align: center;
    width: 30%;
}

.timeline-step .step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    margin: 0 auto var(--space-sm);
    border: 3px solid var(--color-white);
    outline: 2px solid var(--color-primary);
}

/* Tech Grid */
/* Tech Carousel - infinite scrolling logos */
.tech-carousel {
    overflow: visible;
    width: 100%;
    margin: var(--space-lg) auto 0;
    /* mask removed to prevent logo clipping */
}

.tech-track {
    display: flex;
    gap: var(--space-lg);
    animation: scroll-tech 25s linear infinite;
    width: max-content;
}

.tech-track:hover {
    animation-play-state: paused;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    min-width: 120px;
    flex-shrink: 0;
}

.tech-item img,
.tech-item svg {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: all var(--transition-medium);
}

.tech-item:hover img,
.tech-item:hover svg {
    filter: grayscale(0%) opacity(1) drop-shadow(0 0 6px rgba(30, 150, 200, 0.4));
}

.tech-item span {
    font-size: 0.85rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-light);
    transition: color var(--transition-fast);
}

.tech-item:hover span {
    color: var(--color-primary);
}

@keyframes scroll-tech {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Stats Section */
#fakten {
    background-color: var(--color-bg-dark);
    color: var(--color-white);
}

.counter-box {
    text-align: center;
}

.counter-box .number {
    font-size: 3.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

.counter-box .text {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
}

/* Contact Form */
#kontakt {
    background-color: var(--color-bg-gray);
}
.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}


/* Footer */
.footer {
  background-color: #1a2a45;
  color: rgba(255,255,255,0.7);
  padding: var(--space-md) 0;
  text-align: center;
}

.footer-links {
  margin-top: var(--space-xs);
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  margin: 0 var(--space-xs);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

@media (max-width: 768px) {
    .timeline {
        flex-direction: column;
        gap: var(--space-md);
    }
    .timeline::before {
        left: 25px;
        top: 5%;
        bottom: 5%;
        width: 2px;
        height: 90%;
    }
    .timeline-step {
        text-align: left;
        width: 100%;
        padding-left: 70px;
        position: relative;
    }
    .timeline-step .step-number {
        position: absolute;
        left: 0;
        top: 0;
        margin: 0;
    }
}

/* removed duplicates */
