:root {
    --primary-color: #ffd34e;  /* Sanfteres Gelb */
    --secondary-color: #1e88e5;  /* Sanfteres Blau */
    --secondary-light: #64b5f6;  /* Helleres Blau für Gradienten */
    --accent-color: #ffd34e;  /* Sanfteres Gelb für Akzente */
    --text-color: #2c3e50;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --dark-bg: #1976d2;  /* Dunkleres Blau */
    --gradient: linear-gradient(135deg, #1e88e5, #64b5f6);
    --gradient-yellow: linear-gradient(135deg, #ffd34e, #ffecb3);
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

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

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo svg {
    width: 35px;
    height: 35px;
    transition: transform 0.3s ease;
}

.logo:hover svg {
    transform: scale(1.1);
}

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

.nav-logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

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

.nav-links a {
    color: var(--secondary-color);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

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

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

/* Hero Section */
.hero {
    position: relative;
    background: var(--gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 100px 20px;
    overflow: hidden;
}

.hero-slider-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: #1976d2;
    background-size: cover;
    background-position: center;
    transition: background-image 0.8s cubic-bezier(.4,0,.2,1), opacity 0.8s;
    opacity: 1;
}

.hero-slider-bg.fade-out {
    opacity: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(30,136,229,0.45) 0%, rgba(25,118,210,0.55) 100%);
    z-index: 2;
}

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

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.tagline {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: var(--gradient-yellow);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Services Section */
.services {
    padding: 8rem 0;
    background: var(--white);
}

.services h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    color: var(--secondary-color);
    position: relative;
}

.services h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-yellow);
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(30, 136, 229, 0.2);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

.service-card:hover {
    background: linear-gradient(145deg, #ffffff, #f0f4f8);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.service-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.service-card:hover i {
    transform: scale(1.1);
}

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

.service-card p {
    color: #666;
    line-height: 1.8;
}

/* Before-After Section */
.before-after {
    padding: 8rem 0;
    background: var(--light-bg);
}

.before-after h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    color: var(--secondary-color);
    position: relative;
}

.before-after h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-yellow);
    border-radius: 2px;
}

.before-after-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.before-after-item {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.video-container {
    position: relative;
    width: 100%;
    padding-top: 150%;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project-title {
    background: var(--gradient);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.before-after-item:hover .project-title {
    background: var(--gradient-yellow);
    color: var(--text-color);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Gallery Section */
.gallery {
    padding: 8rem 0;
    background: var(--white);
}

.gallery h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.8rem;
    color: var(--secondary-color);
    font-weight: 800;
    letter-spacing: 1.5px;
    text-shadow: 0 4px 18px rgba(30,136,229,0.10), 0 1px 0 #fff;
    position: relative;
}

.gallery h2::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 5px;
    background: var(--gradient-yellow);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(255,211,78,0.18);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    height: 300px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.gallery-item .placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        #f8f9fa 25%, 
        #e9ecef 25%, 
        #e9ecef 50%, 
        #f8f9fa 50%, 
        #f8f9fa 75%, 
        #e9ecef 75%, 
        #e9ecef);
    background-size: 20px 20px;
    animation: placeholder 1s linear infinite;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
    padding: 2rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    background: var(--light-bg);
    margin-top: 64px;
}

.contact h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    color: var(--secondary-color);
    position: relative;
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-yellow);
    border-radius: 2px;
}

/* Modernes Kontaktformular */
.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  align-items: flex-start;
}
.contact-info {
  flex: 1 1 320px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-form-wrapper {
  flex: 1 1 340px;
  min-width: 300px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 32px 28px 24px 28px;
  margin-top: 0;
}
.form-group {
  margin-bottom: 18px;
}
label {
  display: block;
  margin-bottom: 6px;
  color: #333;
  font-weight: 500;
}
input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #bdbdbd;
  border-radius: 6px;
  font-size: 1rem;
  background: #f9f9f9;
  transition: border 0.2s;
  box-sizing: border-box;
}
input:focus, select:focus, textarea:focus {
  border-color: #3949ab;
  outline: none;
  background: #fff;
}
textarea {
  min-height: 90px;
  resize: vertical;
}
.btn {
  background: #3949ab;
  color: #fff;
  border: none;
  padding: 12px 0;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
  transition: background 0.2s;
}
.btn:hover {
  background: #1a237e;
}
.form-error {
  color: #d32f2f;
  margin-bottom: 12px;
  font-size: 0.98rem;
  display: none;
}
.form-success {
  color: #388e3c;
  margin-bottom: 12px;
  font-size: 1.05rem;
  display: none;
}
@media (max-width: 900px) {
  .contact-content {
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
  }
  .contact-form-wrapper, .contact-info {
    max-width: 100%;
  }
  .contact {
    margin-top: 32px;
  }
  .contact-info {
    gap: 18px;
  }
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(30, 136, 229, 0.2);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.contact-item i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

.contact-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231e88e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
    padding-right: 2.5rem;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.2);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder,
.contact-form select::placeholder {
    color: #9e9e9e;
}

.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.2rem;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.submit-button i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.submit-button:hover {
    background: var(--gradient-yellow);
    color: var(--text-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.submit-button:hover i {
    transform: translateX(3px);
}

/* Footer */
footer {
    background: var(--gradient);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .nav-logo {
        height: 45px;
    }
    
    .nav-links {
        display: none;
    }

    .before-after-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .video-container {
        padding-top: 150%;
    }

    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        font-size: 16px; /* Prevents zoom on mobile */
    }

    .project-title {
        font-size: 1rem;
        padding: 0.7rem 1.5rem;
    }

    .hero-logo {
        max-width: 400px;
    }

    .tagline {
        font-size: 1.2rem;
        padding: 0 1rem;
    }

    .quality-features {
        grid-template-columns: 1fr;  /* Ändert zu einer Spalte */
        width: 100%;
        max-width: 400px;
        gap: 1rem;
    }

    .feature {
        padding: 1.2rem;
        flex-direction: row;  /* Icons neben Text */
        justify-content: flex-start;
        text-align: left;
        gap: 1.5rem;
    }

    .feature i {
        font-size: 1.8rem;
        margin: 0;
    }

    .feature span {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        max-width: 250px;
        margin-bottom: 1rem;
    }
    
    .hero {
        padding: 100px 0 40px;
    }

    .hero h2 {
        font-size: 1.3rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .quality-features {
        padding: 0 1rem;
    }

    .feature {
        padding: 1rem;
    }

    .feature i {
        font-size: 1.5rem;
    }

    .feature span {
        font-size: 0.95rem;
    }

    .nav-logo {
        height: 40px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .quality-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
}

.popup-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.popup-overlay.active .popup-content {
    transform: translateY(0);
}

.popup-icon {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 1rem;
    animation: scaleIn 0.5s ease;
}

.popup-content h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.popup-content p {
    color: #666;
    margin-bottom: 1.5rem;
}

.popup-close {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: var(--gradient-yellow);
    color: var(--text-color);
    transform: translateY(-2px);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

/* Quality Features */
.quality-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 4rem auto;
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
}

.feature {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(30, 136, 229, 0.1);
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.feature i {
    font-size: 3rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.feature span {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.25rem;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .quality-features {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
        gap: 1.5rem;
        max-width: 500px;
        margin: 3rem auto;
    }

    .feature {
        padding: 2rem;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        gap: 1.5rem;
    }

    .feature i {
        font-size: 2.5rem;
        margin-bottom: 0;
    }

    .feature span {
        font-size: 1.1rem;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .quality-features {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }
}

/* Success Section */
.success {
    padding: 8rem 0;
    background: var(--white);
}

.success h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    color: var(--secondary-color);
    position: relative;
}

.success h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-yellow);
    border-radius: 2px;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
}

.success-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.success-item {
    text-align: center;
    padding: 2.5rem;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(30, 136, 229, 0.1);
    position: relative;
    overflow: hidden;
}

.success-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.success-item:hover::before {
    transform: scaleX(1);
}

.success-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    background: linear-gradient(145deg, #ffffff, #f0f4f8);
}

.success-number {
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.success-item:hover .success-number {
    transform: scale(1.1);
}

.success-item h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.success-item:hover h3 {
    color: var(--secondary-color);
}

.success-item p {
    color: #666;
    line-height: 1.8;
}

@media screen and (max-width: 768px) {
    .success-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
        padding: 0 1.5rem;
    }

    .success-number {
        font-size: 3rem;
    }

    .success-item h3 {
        font-size: 1.3rem;
    }
}

/* Tablet-Ansicht */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .container {
        width: 90%;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .success-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Kleine Mobilgeräte */
@media screen and (max-width: 480px) {
    .hero h2 {
        font-size: 20px;
    }

    .tagline {
        font-size: 16px;
    }

    .contact-item {
        padding: 15px;
    }

    .submit-button {
        width: 100%;
    }
}

/* Verbesserte Touch-Ziele für mobile Geräte */
@media (hover: none) {
    .nav-links a,
    .cta-button,
    .submit-button {
        padding: 12px 20px;
        min-height: 44px; /* Minimum touch target size */
    }

    .form-group select {
        height: 44px;
    }
}

.hero-logo {
    width: 100%;
    max-width: 700px;
    height: auto;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

@media screen and (max-width: 768px) {
    .hero-logo {
        max-width: 200px;
    }
}

@media screen and (max-width: 480px) {
    .hero-logo {
        max-width: 92%;
    }
}

.before-after-slider {
    margin: 20px 0;
}

@media (min-width: 768px) {
    .before-after-slider {
        display: inline-block;
        width: 48%;
        margin: 1%;
    }
}

@media (max-width: 767px) {
    .before-after-slider {
        display: block;
        width: 100%;
        margin: 20px 0;
    }
}

.ba-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/7;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.ba-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: none;
    user-select: none;
    pointer-events: none;
}
.ba-img-after {
    clip-path: inset(0 0 0 50%);
    /* transition: clip-path 0.2s; */
}
.ba-slider {
    position: absolute;
    left: 0; right: 0; bottom: 20px;
    width: 90%;
    margin: 0 auto;
    z-index: 2;
    appearance: none;
    height: 8px;
    background: rgba(30,136,229,0.2);
    border-radius: 4px;
    outline: none;
}
.ba-slider::-webkit-slider-thumb {
    appearance: none;
    width: 28px; height: 28px;
    background: var(--gradient);
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(30,136,229,0.2);
    cursor: pointer;
    transition: background 0.2s;
}
.ba-slider::-moz-range-thumb {
    width: 28px; height: 28px;
    background: var(--gradient);
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(30,136,229,0.2);
    cursor: pointer;
    transition: background 0.2s;
}
.ba-slider::-ms-thumb {
    width: 28px; height: 28px;
    background: var(--gradient);
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(30,136,229,0.2);
    cursor: pointer;
    transition: background 0.2s;
}

@media (max-width: 600px) {
    .before-after-slider {
        max-width: 100vw;
        margin: 1.2rem -8px 1.2rem -8px;
    }
    .ba-container {
        aspect-ratio: 4/3;
        min-height: 220px;
        border-radius: 10px;
    }
    .ba-slider {
        width: 98%;
        height: 12px;
    }
    .ba-slider::-webkit-slider-thumb,
    .ba-slider::-moz-range-thumb,
    .ba-slider::-ms-thumb {
        width: 34px;
        height: 34px;
    }
}

/* Neue Galerie-Kategorien und Slideshow */
.gallery-category {
    height: 500px;
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(30,136,229,0.07);
    padding: 1.2rem 1rem 1.2rem 1rem;
    margin-bottom: 0;
}
.gallery-category h3 {
    text-align: center;
    margin-bottom: 0.7rem;
    font-size: 1.2rem;
    color: var(--secondary-color);
    letter-spacing: 1px;
    min-height: 2.2em;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-slider {
    position: relative;
    width: 100%;
    height: 360px;
    aspect-ratio: 4/3;
    width: 100%;
    max-width: unset;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.gallery-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(.4,0,.2,1);
    z-index: 1;
}
.gallery-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}
.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(30,136,229,0.10);
    background: #f3f3f3;
    transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}
.gallery-indicator {
    text-align: center;
    margin-top: 0.7rem;
    font-size: 1.05rem;
    color: var(--secondary-color);
    font-weight: 500;
    letter-spacing: 1px;
}
@media (max-width: 1100px) {
    .gallery-category {
        height: 320px;
    }
    .gallery-slider {
        height: 160px;
    }
}
@media (max-width: 700px) {
    .gallery-category {
        height: 260px;
        padding: 0.7rem 0.2rem 0.7rem 0.2rem;
    }
    .gallery-slider {
        height: 110px;
    }
}

#gallery-categories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: center;
    gap: 2.5rem;
    max-width: 1300px;
    margin: 0 auto;
}
.gallery-category {
    margin-bottom: 0;
}
@media (max-width: 1100px) {
    #gallery-categories {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .gallery-category {
        height: 370px;
    }
}
@media (max-width: 700px) {
    #gallery-categories {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .gallery-category {
        height: 320px;
    }
}

/* Galerie-Buttons nur innerhalb der Galerie-Slideshow */
.gallery-controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.1rem;
    margin-bottom: 0.4rem;
}
.gallery-controls .gallery-prev,
.gallery-controls .gallery-next {
    position: static;
    transform: none;
    background: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 1;
    box-shadow: 0 4px 16px rgba(30,136,229,0.18);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.92;
    outline: none;
}
.gallery-controls .gallery-prev:hover,
.gallery-controls .gallery-next:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: scale(1.12);
    box-shadow: 0 8px 24px rgba(30,136,229,0.25);
    opacity: 1;
}
.gallery-controls .gallery-indicator {
    min-width: 60px;
    text-align: center;
    font-size: 1.05rem;
    color: var(--secondary-color);
    font-weight: 500;
    letter-spacing: 1px;
    background: none;
    box-shadow: none;
}

@media (max-width: 600px) {
    .gallery-category {
        height: 320px;
        max-width: 100%;
        padding: 0.7rem 0.2rem 0.7rem 0.2rem;
    }
    .gallery-slider {
        height: 240px;
        aspect-ratio: 4/3;
        width: 100%;
    }
    .gallery-controls {
        gap: 1rem;
        margin-top: 0.5rem;
        margin-bottom: 0.2rem;
    }
}

#imgLightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(30, 48, 80, 0.85);
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s;
}
#imgLightbox.active {
    display: flex;
}
#imgLightbox .lightbox-img {
    max-width: 92vw;
    max-height: 82vh;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.25);
    background: #fff;
    object-fit: contain;
    animation: scaleIn 0.3s;
}
#imgLightbox .lightbox-close {
    position: absolute;
    top: 32px;
    right: 48px;
    font-size: 2.5rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.2s;
}
#imgLightbox .lightbox-close:hover {
    color: var(--primary-color);
}
@media (max-width: 600px) {
    #imgLightbox .lightbox-img {
        max-width: 98vw;
        max-height: 60vh;
    }
    #imgLightbox .lightbox-close {
        top: 12px;
        right: 16px;
        font-size: 2rem;
    }
}
@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.before-after-slider-row {
    display: flex;
    gap: 2%;
    justify-content: center;
    align-items: flex-start;
    margin: 32px 0;
}

@media (max-width: 900px) {
    .before-after-slider-row {
        flex-direction: column;
        gap: 24px;
        margin: 24px 0;
    }
    .before-after-slider {
        width: 100% !important;
        margin: 0 !important;
    }
}

/* Hiring Banner */
.hiring-banner {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.hiring-banner .container {
    text-align: center;
}

.hiring-image {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.hiring-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

/* Kontaktformular mit Icons und einheitlichem Stil */
.contact-form-wrapper {
  position: relative;
}
.kontakt-form-icon {
  position: static;
  margin-right: 12px;
  min-width: 22px;
  color: #3949ab;
  font-size: 1.15em;
  flex-shrink: 0;
}
.form-group {
  display: flex;
  align-items: center;
  margin-bottom: 22px;
  position: relative;
}
.form-group label {
  margin-bottom: 0;
  margin-right: 10px;
  min-width: 110px;
  flex-shrink: 0;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  flex: 1 1 0%;
  box-sizing: border-box;
  padding-left: 12px;
}
@media (max-width: 900px) {
  .form-group {
    flex-direction: column;
    align-items: stretch;
  }
  .kontakt-form-icon {
    margin-bottom: 6px;
    margin-right: 0;
  }
  .form-group label {
    margin-bottom: 6px;
    margin-right: 0;
  }
}

/* Einheitlicher Schatten und Hintergrund */
.contact-form-wrapper {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 32px 28px 24px 28px;
}

/* Button wie Kontaktboxen */
.btn {
  background: #3949ab;
  color: #fff;
  border: none;
  padding: 12px 0;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(57,73,171,0.08);
}
.btn:hover {
  background: #1a237e;
}