html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1d1d1f;
    background-color: #fbfbfd;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 8px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: padding 0.4s ease, box-shadow 0.4s ease;
}

header.header-scrolled {
    padding: 4px 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.95);
}

header .container {
    max-width: 1400px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 70px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.phone-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #1d1d1f;
    background: #f5f5f7;
    padding: 8px 18px;
    border-radius: 20px;
    transition: 0.3s;
}

.phone-link:hover {
    background: #e8e8ed;
}

.nav-phone-icon {
    height: 18px;
    margin-right: 8px;
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #fbfbfd;
    padding-top: 80px;
}

.hero-content {
    background: #0066cc;
    padding: 80px 40px;
    border-radius: 50px;
    color: white;
    box-shadow: 0 30px 100px rgba(0, 102, 204, 0.3);
    max-width: 1000px;
    margin: 0 20px;
}

.hero h1 {
    font-size: 4.5rem;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 20px;
    color: white;
}

.hero h1 span {
    color: rgba(255, 255, 255, 0.9);
}

.hero p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.hero .btn-main {
    background: white;
    color: #0066cc;
    font-weight: 600;
}

.hero .btn-main:hover {
    background: #f5f5f7;
    transform: scale(1.05);
}

.btn-main {
    background: #0066cc;
    color: white;
    padding: 16px 32px;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-main:hover {
    background: #0077ed;
    transform: scale(1.02);
}

.services {
    padding: 120px 0;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 70px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 50px 30px;
    border-radius: 25px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    border: 1px solid rgba(0,0,0,0.04);
    will-change: transform;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 102, 204, 0.12);
    border-color: rgba(0, 102, 204, 0.1);
}

.icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

footer {
    background: #1d1d1f;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.footer-sub {
    color: #86868b;
    margin-bottom: 30px;
}

.footer-contact a {
    color: #0066cc;
    text-decoration: none;
    font-size: 1.3rem;
}

.legal-links {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: center;
    gap: 25px;
    color: #86868b;
}

.legal-links a {
    color: #86868b;
    text-decoration: none;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    overflow-y: auto;
}

.modal-content {
    background: white;
    margin: 10% auto;
    padding: 40px;
    border-radius: 30px;
    max-width: 500px;
    position: relative;
}

/* Fullscreen Modal */
.fullscreen-modal-content {
    background: white;
    width: 90%;
    max-width: 900px;
    margin: 5% auto;
    padding: 50px;
    border-radius: 30px;
    position: relative;
    box-shadow: 0 40px 100px rgba(0,0,0,0.2);
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlideIn {
    0% { transform: translateY(30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.fullscreen-modal-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
    align-items: start;
}

.fullscreen-modal-content .modal-image-container {
    width: 100%;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    margin: 0;
}

.modal-text-content h2 {
    font-size: 2rem;
    color: #1d1d1f;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.modal-intro {
    color: #86868b;
    font-size: 1rem;
    line-height: 1.6;
}

.modal-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.modal-bullets li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #1d1d1f;
    background: #f5f5f7;
    padding: 12px 16px;
    border-radius: 12px;
}

.modal-bullets li i {
    color: #0066cc;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.fullscreen-modal-content .modal-cta {
    display: block;
    text-align: center;
    margin-top: 30px;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 15px;
}

.close-btn {
    position: absolute;
    right: 25px;
    top: 15px;
    font-size: 30px;
    cursor: pointer;
    color: #86868b;
}

.modal-image-container {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
}

.modal-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-cta {
    width: 100%;
    text-align: center;
    margin-top: 25px;
    display: inline-block;
}

@media (max-width: 600px) {
    .hero-content {
        padding: 50px 20px;
        border-radius: 30px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .phone-text {
        display: none;
    }

    .logo img {
        height: 50px;
    }
}

.cookie-notice {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    padding: 15px 25px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 3000;
}

/* Button-Style analog zum Apple-Look */
.cookie-notice button {
    background: #0066cc;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 15px;
    cursor: pointer;
}

.icon {
    font-size: 3rem;
    color: #0066cc;
    /* Das ASA BAU Blau */
    margin-bottom: 20px;
    display: block;
}

.service-card:hover .icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Kontakt-Seite */
.contact-hero {
    min-height: 100vh;
    padding: 120px 0 80px 0;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.contact-card {
    position: relative;
    background: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact-card h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #1d1d1f;
}

.contact-card p {
    color: #86868b;
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-form {
    text-align: left;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #1d1d1f;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: 0.3s;
    background: #f5f5f7;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

.privacy-note {
    font-size: 0.8rem;
    color: #86868b;
    margin: 20px 0;
    text-align: center;
}

.privacy-note a {
    color: #0066cc;
    text-decoration: none;
}

.submit-btn {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 18px;
    border-radius: 15px;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .contact-card {
        padding: 40px 20px;
        border-radius: 20px;
    }
}

/* Direktkontakt Sektion */
.direct-contact {
    padding: 80px 0;
    text-align: center;
}

.direct-title {
    font-size: 2rem;
    margin-bottom: 50px;
    color: #1d1d1f;
}

.blue-badge {
    background: #0066cc;
    color: white;
    padding: 4px 15px;
    border-radius: 8px;
    display: inline-block;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.method-box {
    background: white;
    border: 2px solid #0066cc;
    padding: 30px 50px;
    border-radius: 20px;
    min-width: 300px;
    transition: 0.3s;
}

.method-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.1);
}

.method-box h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #1d1d1f;
}

.method-box a {
    color: #0066cc;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-footer {
    padding: 40px 0;
    border-top: 1px solid #e8e8ed;
    background: white;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 0.9rem;
    color: #86868b;
}

.footer-bottom a {
    color: #86868b;
    text-decoration: none;
    transition: 0.3s;
}

.footer-bottom a:hover {
    color: #0066cc;
}

@media (max-width: 600px) {
    .method-box {
        min-width: 100%;
        padding: 25px;
    }
}

/* Erfolgs-Modal Styling */
.success-content {
    text-align: center;
    padding: 50px 40px;
}

.success-icon {
    font-size: 5rem;
    color: #0066cc;
    margin-bottom: 25px;
    animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes successPop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.modal-footer-brand {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e8e8ed;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #86868b;
}

.modal-footer-brand img {
    height: 30px;
    opacity: 0.8;
}

.success-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #1d1d1f;
}

.success-content p {
    color: #86868b;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .fullscreen-modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 30px 20px;
        border-radius: 20px;
    }
    
    .fullscreen-modal-top {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .fullscreen-modal-content .modal-image-container {
        height: 200px;
    }
    
    .modal-bullets {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .modal-text-content h2 {
        font-size: 1.6rem;
    }
}

/* ==========================================
   Splitting.js – Word-Wrapper Styles
   ========================================== */
.word {
    display: inline-block;
    overflow: hidden;
}

/* ==========================================
   Stats Counter Sektion
   ========================================== */
.stats-section {
    background: #0066cc;
    padding: 70px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    opacity: 0; /* GSAP animiert es rein */
}

.stat-number {
    font-size: 4rem;
    font-weight: 900;
    color: white;
    letter-spacing: -3px;
    line-height: 1;
}

.stat-suffix {
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(255,255,255,0.7);
    margin-top: -50px;
    margin-left: 4px;
    align-self: flex-start;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    .stat-number {
        font-size: 3rem;
    }
}

/* ==========================================
   Vorteile Sektion (3D Flip-Cards)
   ========================================== */
.vorteile {
    padding: 120px 0;
    text-align: center;
}

.badge-container {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.vorteile-badge {
    border: 2px solid #0066cc;
    color: #0066cc;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.vorteile-title {
    font-size: 3rem;
    margin-bottom: 25px;
    color: #1d1d1f;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.highlight-box {
    background: #0066cc;
    color: white;
    padding: 4px 15px;
    border-radius: 12px;
    display: inline-block;
    transform: rotate(-1.5deg);
}

.vorteile-subtitle {
    max-width: 800px;
    margin: 0 auto 60px auto;
    font-size: 1.15rem;
    color: #86868b;
    line-height: 1.6;
}

.vorteile-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.vorteil-card {
    background: transparent;
    perspective: 1000px; /* 3D-Effekt aktivieren */
    height: 320px;
}

.vorteil-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    cursor: pointer;
}

.vorteil-card:hover .vorteil-card-inner {
    transform: rotateY(180deg);
}

.vorteil-card-front, .vorteil-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; /* Versteckt die Rückseite beim Drehen */
    border-radius: 24px;
    padding: 40px 25px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.vorteil-card-front {
    background: white;
    border: 1px solid #e8e8ed;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.vorteil-card-back {
    background: #0066cc;
    color: white;
    transform: rotateY(180deg);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.15);
}

.vorteil-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f5f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #0066cc;
    margin-bottom: 25px;
    transition: 0.3s;
}

.vorteil-card-front h3 {
    font-size: 1.25rem;
    color: #1d1d1f;
    font-weight: 700;
}

.vorteil-card-back h3 {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 15px;
    font-weight: 700;
}

.vorteil-card-back p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
}

/* Orangener Button (Modernes Design) */
.vorteile-cta-container {
    display: flex;
    justify-content: center;
}

.btn-orange {
    background: linear-gradient(135deg, #ff6b00, #e65c00);
    color: white;
    padding: 16px 40px;
    border-radius: 20px;
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(230, 92, 0, 0.25);
    border: none;
    cursor: pointer;
}

.btn-orange:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 40px rgba(230, 92, 0, 0.35);
}

.btn-orange-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.btn-orange-subtitle {
    font-size: 0.8rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Blauer Button für hellen Hintergrund */
.btn-blue {
    background: linear-gradient(135deg, #0066cc, #0052a3);
    color: white;
    padding: 16px 40px;
    border-radius: 20px;
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(0, 102, 204, 0.25);
    border: none;
    cursor: pointer;
}

.btn-blue:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.35);
}

.btn-blue-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.btn-blue-subtitle {
    font-size: 0.8rem;
    opacity: 0.9;
    font-weight: 500;
}

/* ==========================================
   Qualitätsgarantie Sektion (Schräg & Blau)
   ========================================== */
.qualitaetsgarantie-section {
    background: #0f2e69;
    color: white;
    padding: 180px 0;
    margin: 80px 0 0 0;
    clip-path: polygon(0 6vw, 100% 0, 100% calc(100% - 6vw), 0 100%);
    position: relative;
}

.qualitaetsgarantie-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.qualitaetsgarantie-content {
    text-align: left;
}

.qualitaets-badge {
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 25px;
}

.qualitaetsgarantie-content h2 {
    font-size: 3rem;
    margin-bottom: 25px;
    color: white;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.highlight-box-white {
    background: white;
    color: #0f2e69;
    padding: 4px 15px;
    border-radius: 12px;
    display: inline-block;
    transform: rotate(1.5deg);
}

.qualitaetsgarantie-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

.qualitaetsgarantie-content p:last-of-type {
    margin-bottom: 40px;
}

.text-left-btn {
    align-items: flex-start;
    text-align: left;
}

.qualitaetsgarantie-image {
    width: 100%;
    height: 460px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.qualitaetsgarantie-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Anpassungen */
@media (max-width: 1024px) {
    .vorteile-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .qualitaetsgarantie-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .qualitaetsgarantie-image {
        height: 380px;
    }
}

@media (max-width: 768px) {
    .vorteile-title, .qualitaetsgarantie-content h2 {
        font-size: 2.2rem;
    }
    .vorteile {
        padding: 80px 0;
    }
    .qualitaetsgarantie-section {
        padding: 120px 0;
        clip-path: polygon(0 4vw, 100% 0, 100% calc(100% - 4vw), 0 100%);
    }
    .vorteil-card {
        height: 280px;
    }
    .vorteil-card-front, .vorteil-card-back {
        padding: 30px 20px;
    }
}

@media (max-width: 500px) {
    .vorteile-grid {
        grid-template-columns: 1fr;
    }
}