/* ================= BASIC SETTINGS ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #111;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    padding-top: 60px;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth !important;
}

body {
    display: flex;
    flex-direction: column;
    -webkit-overflow-scrolling: touch;
    background: #fbfbfd;
}

.mobile-only {
  display: none;
}

.main-wrapper {
    flex: 1;
    padding: 40px 20px; /* Optional: Abstand für Impressum/Datenschutz */
    max-width: 1200px;  /* Optional: Damit der Text nicht zu breit läuft */
    margin: 0 auto;     /* Zentriert den Inhalt auf breiten Bildschirmen */
    width: 100%;        /* Stellt sicher, dass er die volle Breite nutzt */
}

main.content {
    flex: 1 0 auto;
    display: block;
}

.center-all {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    flex-direction: column;
    align-items: center;
}

a, a:visited, a:hover, a:active {
    color: #0071e3;
    text-decoration: none !important;
    outline: none;
}
 

.problem {
    padding: 60px 0;
    padding-left: 20px !important;
}
.process {
    padding: 60px 0;
    width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: hidden;
    text-align: center;
}

.process h2 {
    padding-left: 0 !important;
    padding-bottom: 15px;    
}
.process .container{
    width: 90%;
    align-items: center;
}

.process ol {
list-style: none;
    padding: 15px 25px !important; 
    margin: 0 auto !important; 
    display: flex;
    flex-direction: column;
    max-width: 500px;
    counter-reset: process-counter;
    background: #ffffff; 
    border: 1px solid #e5e5e7; 
    border-radius: 24px; 
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.process ol li {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 10px 0;
    font-weight: 700;
    color: #1d1d1f;
    counter-increment: process-counter; 
}

/* Trennlinie zwischen den Punkten (optional) */
.process ol li:not(:last-child) {
    border-bottom: 1px solid #f2f2f7;
}

.process ol li::before {
    content: counter(process-counter); 
    font-size: 1.2rem; 
    font-weight: bold;
    color: #0071e3; 
    margin-right: 8px;
    line-height: 0;
    flex-shrink: 0;
    padding-bottom: 2px;
}


/* footer moved to homepage section */

/* --- 2. CTA Bereich ("Zeit zu sparen?") --- */
.cta {
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
}

.cta .buttons {
    display: flex;
    justify-content: center;
    width: 100%;
}

.cta h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.cta .btn {
    margin-top: 10px;
    margin-bottom: 60px;
}

/* --- 3. Kontaktformular Vorname/Nachname Breite fixen --- */

.form-row .form-group {
    flex: 1;
}

/* --- 4. Links nicht unterstreichen --- */
a, .btn { text-decoration: none !important; }

/* ================= NAVIGATION ================= */
.navbar {
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid #eee;
    position: fixed;
    top: 0;
    z-index: 2000;
}

.nav-container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.nav-logo {
    height: 30px !important;
    width: auto;
    display: block;
}

.logo a { 
    display: flex;
    gap: 8px;
    font-weight: bold; 
    font-size: 1.3rem; 
    color: black !important; 
}


.nav-links a { margin-left: 20px; color: black; font-size: 14px; font-weight: 600;}

.nav-cta {
    background: linear-gradient(160deg, #1a8aff 0%, #0060cc 100%) !important;
    color: white !important;
    height: 36px !important;
    padding: 0 18px !important;
    border-radius: 980px !important;
    font-weight: 500;
    display: inline-flex !important;
    align-items: center !important;
    transition: all 0.2s ease-in-out !important;
}

.nav-cta:hover {
    background: linear-gradient(160deg, #2e97ff 0%, #0050b3 100%) !important;
    transform: scale(1.05);
}

/* Dropdown Container */
.nav-links .dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Content verstecken */
.nav-links .dropdown-content {
    display: none;
    position: absolute;
    top: 100%; /* direkt unter dem Button */
    left: 0;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 12px;
    overflow: hidden;
    z-index: 3000;
    transition: all 0.3s ease;
}

/* Dropdown Links */
.nav-links .dropdown-content a {
    display: block;
    padding: 10px 20px;
    color: #111;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}

.nav-links .dropdown-content a:hover {
    background-color: #f5f5f7;
}

/* Hover Effekt */
.nav-links .dropdown:hover .dropdown-content {
    display: block;
    animation: slideDown 0.3s ease forwards;
}
.nav-img {
    width: 30px !important;
    height: auto;
    display: block;
}

/* Animation */
@keyframes slideDown {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ================= HERO (STARTSEITE ZENTRIERT) ================= */
.hero {
    text-align: center; 
    padding: 0px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.hero h1 { 
    font-size: 2.2rem; 
    margin: 35px auto 40px auto; 
    max-width: 800px; 
    line-height: 1.1; 
    color: #1d1d1f;
}

.hero p { 
    font-size: 1.4rem; 
    color: #1d1d1f; 
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* ================= Beispielseiten ============= */
.service-detail-section {
    background-color: transparent; 
    margin: 0px auto 40px auto; 
    padding: 20px 20px 20px 20px;
    min-height: 80vh;
    justify-content: flex-start;
}
.service-header {
    padding-top: 0 !important; 
    margin-top: -10px;        
}

@media (max-width: 768px) {

    .service-content-card {
        padding: 28px !important;
    }
    
    .service-header h1 {
        font-size: 2rem;
    }
    
    .service-header .subtitle {
        font-size: 1.1rem !important;
    }

    .nav-cta {
        display: none !important;
    }

}

/* ================= BUTTONS ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* height is the single source of truth – no vertical padding allowed */
    height: 44px;
    line-height: 1;
    padding: 0 22px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 980px;
    border: 1.5px solid transparent; /* both variants share identical box */
    box-sizing: border-box;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    width: auto;
    -webkit-appearance: none;
    appearance: none;
    vertical-align: middle;
}
.btn.primary:hover {
    background: linear-gradient(160deg, #2e97ff 0%, #0050b3 100%) !important;
    box-shadow: 0 4px 16px rgba(0,80,179,0.36) !important;
    opacity: 1 !important;
}

.btn.secondary:hover {
    background-color: #0071e3 !important;
    color: #fff !important;
}

/* Primary: border stays transparent from .btn baseline */
.btn.primary, a.primary, button.primary {
    background: linear-gradient(160deg, #1a8aff 0%, #0060cc 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 2px 10px rgba(0,96,204,0.28);
}
/* Secondary: colored border, same 1.5px as .btn baseline → identical height */
.btn.secondary, a.secondary, button.secondary {
    background: transparent;
    color: #0071e3;
    border-color: #0071e3;
    margin-left: 10px;
}

/* ================= SERVICES (CARD & SLIDER) ================= */
.services h2 {
    padding-left: 20px;
    padding-bottom: 15px;
}
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

#leistungen {
    scroll-margin-top: 110px;
}

.card {
    padding: 40px;
    border: 1px solid #eee;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s ease, 
                border-color 0.3s ease;}
.card:hover {
    /* Leichtes Anheben */
    transform: scale(1.03);    /* Schatten wird tiefer und weicher */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    
    /* Optional: Dezente Akzentfarbe am Rand */
    border-color: #0071e3;
}
/* Bildgrößen Fix */
.card img, #modal-body img {
    width: 80px !important;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
}
/* ================= GEGENÜBERSTELLUNG ================= */
.comparison-section {
    padding: 30px 0;
    margin-top: 20px;
    margin-bottom: 20px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Zwei gleich große Spalten */
    gap: 10px;
    width: 80%;
    margin: 0 auto;
    text-align: left;
}

.comparison-card {
    padding: 0px;
}

.comparison-card h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.comparison-card ul {
    list-style: none; 
    padding: 0;
}

.comparison-card ul li {
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
}

.card p {
    margin-top: 5px;    /* Abstand zur Überschrift (h3) */
    margin-bottom: 5px; /* Abstand zum "Mehr erfahren" Link (span) */
    color: #515154;      /* Etwas weicheres Grau für den Fließtext */
    line-height: 1.5;    /* Bessere Lesbarkeit */
}

/* ================= KONTAKT FORMULAR DESIGN ================= */
.contact-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;  /* vertikale Zentrierung */
    min-height: auto;
    text-align: center;
    padding: 30px 20px 40px 20px; /* optional für mobile Screens */
}
.contact h1 {
    text-align: center;
}

#contact-content-area h1 {
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
}

#contact-content-area p {
    font-size: 1rem; 
    color: #1d1d1f; 
    max-width: 800px;
    margin: 0 auto 30px auto;
}

#contact-content-area form {
    width: 100%;
    max-width: 600px;
}

#contact-content-area {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    padding: 0 15px;
}

.form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 0px; /* Abstand zur nächsten Zeile */
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 0; /* Abstand über .form-row */
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 15px; /* Standard-Abstand zwischen allen Feldern */
}

.form-button-wrapper {
    font-size: 18px;
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 60px;
}

/* INPUT DESIGN */
.form-group input, 
.form-group textarea, 
.apple-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    font-size: 16px; /* 16px verhindert das automatische Zoomen auf dem iPhone */
    background: #ffffff !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    appearance: none;
    -webkit-appearance: none; /* Fix für Safari Mobile */
}


/* FOKUS BLUE */
.form-group input:focus, 
.form-group textarea:focus, 
.apple-select:focus {
    border-color: #0071e3;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}
.checkbox-group {
    display: flex;
    flex-direction: row; /* Nebeneinander statt untereinander */
    align-items: flex-start;
    gap: 4px;
    margin-top: 5px;
    margin-bottom: 5px;
    padding-left: 10px;
    
}

/* 2. Setzt die Textfeld-Styles für die Checkbox zurück */
.checkbox-group input[type="checkbox"] {
    width: 14px !important;  /* Feste Größe statt 100% */
    height: 14px !important;
    min-width: 20px;
    margin-top: 4px;
    padding: 0 !important;
    background: #fff !important;
    border: 1px solid #d2d2d7 !important;
    cursor: pointer;
    -webkit-appearance: checkbox !important; /* Erzwingt das Checkbox-Aussehen */
    appearance: checkbox !important;
}

/* 3. Styling für das Label daneben */
.checkbox-group label {
    font-size: 13px;
    color: #1d1d1f;
    line-height: 1.7;
    cursor: pointer;
    user-select: none;
}

.checkbox-group label a {
    color: #0071e3;
    text-decoration: none;
}
.checkbox-group label small {
    font-size: 11px !important; /* Noch etwas dezenter */
    margin-top: 0px !important; /* Abstand zum Newsletter-Text verringern */
    color: #86868b;
}

.success-actions {
    display: flex;
    flex-direction: row; /* Nebeneinander auf Desktop */
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
    margin-top: 40px;
}

#success-message h2 {
    font-size: 2.5rem; /* Deutlich größer für den "Erfolg"-Effekt */
    margin-bottom: 20px;
}

#success-message p:not(.spam-notice) {
    font-size: 1.2rem;
    margin-bottom: 40px !important; /* Dein gewünschter Abstand von 40px */
    color: #1d1d1f;
    line-height: 1.5;
}

.spam-notice {
    font-size: 0.9rem !important; /* Etwas kleiner als der Standard */
    color: #86868b !important;    /* Das Apple-Sekundär-Grau */
    max-width: 400px;
    margin: 0 auto;               /* Zentrierung */
    line-height: 1.4;
    border-top: 1px solid #f2f2f7; /* Eine ganz feine Trennlinie darüber */
    padding-top: 15px;
}
.spam-notice strong {
    font-weight: 500;
    color: #515154; /* Nur das Wort 'Spam' minimal dunkler für die Lesbarkeit */
}

.privacy-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  line-height: 1.6;
  color: #333;
}

.privacy-container h1 {
  margin-bottom: 30px;
  font-size: 2.5em;
}

.privacy-container h2 {
  margin-top: 40px;
  margin-bottom: 15px;
  font-size: 1.5em;
}

.privacy-container p {
  margin-bottom: 15px;
}

.privacy-container ul {
  margin: 15px 0 20px 25px;
  list-style-type: disc;
}

.privacy-container li {
  margin-bottom: 8px;
}

/* ================= MODAL ================= */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: white;
    margin: 10vh auto;
    padding: 40px;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    position: relative;
    text-align: center;
}

.close-modal {
    position: absolute;
    right: 20px; top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #86868b;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

/* MOBILE ANPASSUNG */
@media (max-width: 600px) {
    #contact-content-area {
        padding: 0 15px; /* Puffer für kleine Screens */
    }

    .form-row {
        gap: 10px; /* optional kleinerer Abstand */
    }
    .mobile-only {
    display: block; /* oder 'inline', beides erzwingt hier den Umbruch */
  }
}
/* ================= MOBILE OPTIMIERUNG ================= */
.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2100;
}


.mobile-menu a { margin: 15px 0; font-size: 18px; font-weight: 500; color: black; }

@media (max-width: 768px) {
/*
    body {
        background-size: 100% !important;
    }
*/
    h1 { font-size: 2rem !important; }
 
    .services {
        padding-bottom: 0 !important
    }
    .services h2 {
    padding-left: 20px !important;
    padding-bottom: 0 !important;
    }   

#was .services-grid {
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.section-header {
    margin-bottom: 16px !important;
}
.services-section {
    padding-bottom: 0 !important;
}
    .example-card {
        position: sticky;
        top: 60px;
        background: #fff;
        border-radius: 0 !important;
        border: none !important;
        border-bottom: 1px solid #e5e5e7 !important;
        padding: 10px 20px !important;
        cursor: pointer;
        box-shadow: none !important;
        margin: 0 !important;
        z-index: 10;
    }
    .example-card:nth-child(2) { z-index: 11; }
    .example-card:nth-child(3) { z-index: 12; }
    .example-card:nth-child(4) { z-index: 13; }
    .example-card:nth-child(5) { z-index: 14; }
    .example-card:nth-child(6) { z-index: 15; }
    .example-card:first-child {
        border-top: 1px solid #e5e5e7 !important;
    }
    .example-card p { display: none !important; }
    .example-card.open p {
        display: block !important;
        margin-top: 10px;
    }
    .example-card h3 {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 0;
        font-size: 1rem !important;
    }
    .example-card h3 span {
        font-size: 1rem;
    }
    .example-card h3::after {
        content: '+';
        font-size: 1.3rem;
        font-weight: 300;
        color: #0071e3;
        margin-left: 12px;
    }
    .example-card.open h3::after {
        content: '−';
    }


    .process {
        padding-top: 5px !important;
    }

    .process h2 {
        margin-bottom: 0px !important;
        padding-bottom: 0 !important;
    }

    .process ol {
        justify-content: flex-start !important; /* Startet links für den Swipe */
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        /* Padding oben reduziert, um den Abstand zur H2 weiter zu verringern */
        padding: 10px 20px 25px 20px !important; 
        margin-left: -20px !important;
        width: calc(100% + 40px);
        -webkit-overflow-scrolling: touch;
    }

    .process ol li {
        padding: 10px 20px;
    }

    .problem {
        padding-left: 20px;
    }

    .nav-links a { 
        display: none;
        font-weight: 600;
    }
    .hamburger { display: block; }

    .service-grid {
        display: flex !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        gap: 15px;
        padding: 20px 8px 50px !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        margin-bottom: 0 !important;
    }

    .card {
        min-width: 80vw !important;
        max-width: 80vw !important;
        scroll-snap-align: center;
        flex-shrink: 0;
    }

    .form-row {
        flex-direction: column;
        gap: 0px; 
    }

    .modal-buttons { flex-direction: column; }
    .btn.secondary { margin-left: 0; margin-top: 12px; }

        .comparison-grid {
        grid-template-columns: 1fr; /* Untereinander auf dem Handy */
        gap: 20px;
        margin-left: 20px;
    }
    .btn.secondary:hover {
        background-color: #0071e3 !important;
        color: #fff !important;
    }
    .secondary:focus,
    .secondary:active {
    background-color: transparent !important;
    color: #0071e3 !important;
    border: 1px solid #0071e3 !important;
    outline: none !important;
    }

    @media (max-width: 768px) {
    .nav-cta {
        white-space: nowrap;
        font-size: 12px;
        padding: 0 12px !important;
        height: 32px !important;
        margin-right: 14px;
    }
}

}

/* ---- Mobile Menu Active ---- */

.mobile-menu {
    position: fixed;
    top: 72px;
    right: 0;
    width: 100%;
    background: white;
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none; 
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* Mobile Menu Active */
.mobile-menu.active {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
}

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

/* ── Hero: Split Layout ── */
.hero-split {
    /* Fixed height so the image col has a defined anchor — no overflow into next section */
    height: 420px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* NO overflow:hidden on the section itself – each col clips its own content */
}

/* ── Left column: white, bleeds to left edge on ultra-wide ── */
.hero-split .hero-text-col {
    background: #fbfbfd;
    display: flex;
    align-items: center;
    padding: 88px 48px 60px max(32px, calc(50vw - 570px));  /* aligns with container, min 32px */
    position: relative;
    z-index: 1;
}
/* White stripe extending left of the column on wide viewports */
.hero-split .hero-text-col::before {
    content: '';
    position: absolute;
    inset: 0;
    right: 100%;
    width: 100vw;
    background: #fbfbfd;
    pointer-events: none;
}


.hero-split .hero-image-col img {
    /* Full column height, anchored bottom-right, natural aspect ratio */
    position: relative;
    right: 0;
    top: 0;
    height: 100%;
    width: auto;
    display: block;
}

.hero-text {
    max-width: 520px;
}
.hero-split > .container {
    display: none;
}
.hero-text { text-align: left; }
.hero-eyebrow {
font-size: 15px;
font-weight: 700;
letter-spacing: 0.12em;
text-transform: uppercase;
color: #0071e3;
margin-bottom: 18px;
display: block;
}
.hero-text h1 {
font-size: 3rem;
font-weight: 800;
color: #1d1d1f;
letter-spacing: -0.04em;
line-height: 1.1;
margin: 0 0 22px;
}
.hero-text h1 em {
font-style: normal;
color: #0071e3;
}
.hero-text p {
font-size: 1.1rem;
color: #515154;
line-height: 1.65;
margin: 0 0 36px;
max-width: 460px;
}
.hero-buttons {
display: flex;
gap: 12px;
align-items: center;
flex-wrap: wrap;
margin-top: 28px;
justify-content: center;
}
.hero-image { display: flex; justify-content: center; }
@keyframes heroFloat {
0%, 100% { transform: translateY(0); }
50%       { transform: translateY(-12px); }
}

/* ── Pain Section ── */
.pain-section {
background: #fff;
padding: 36px 0 64px;
border-top: none;
margin-top: 0px;
}
.pain-section .container {
width: 90%;
max-width: 1100px;
margin: 0 auto;
}
.pain-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 24px;
}
.pain-card {
background: #f9f9fb;
border: 1px solid #e5e5e7;
border-radius: 20px;
padding: 36px;
}
.pain-card.solution {
background: #f0f7ff;
border-color: #c7dff7;
}
.pain-card h3 {
font-size: 1.5rem;
font-weight: 700;
color: #1d1d1f;
margin-bottom: 20px;
letter-spacing: -0.01em;
}
.pain-card ul {
list-style: none;
padding: 0;
margin: 0;
}
.pain-card ul li {
font-size: 1.1rem;
color: #515154;
padding: 8px 0;
border-bottom: 1px solid #f2f2f7;
display: flex;
align-items: flex-start;
gap: 5px;
line-height: 1.5;
}
.pain-card ul li:last-child { border-bottom: none; }

/* ── Section Header ── */
.section-header {
text-align: center;
margin-bottom: 52px;
}
.section-eyebrow {
font-size: 15px;
font-weight: 700;
letter-spacing: 0.12em;
text-transform: uppercase;
color: #0071e3;
display: block;
margin-bottom: 12px;
}
.section-header h2 {
font-size: 2rem;
font-weight: 800;
color: #1d1d1f;
letter-spacing: -0.035em;
margin: 0 0 14px;
}
.section-header p {
font-size: 1rem;
color: #515154;
max-width: 520px;
margin: 0 auto;
line-height: 1.65;
}

/* ── Services ── */
.services-section {
background: #fbfbfd;
padding: 60px 0;
}
.services-section .container {
width: 90%;
max-width: 1100px;
margin: 0 auto;
}
.services-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
}
.service-card, .example-card {
background: #fff;
border: 1px solid #e5e5e7;
border-radius: 20px;
padding: 36px 32px;
cursor: pointer;
transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
position: relative;
overflow: hidden;
text-decoration: none;
display: block;
}
.service-card::before, .example-card::before {
content: '';
position: absolute;
inset: 0;
border-radius: 20px;
background: linear-gradient(135deg, rgba(0,113,227,0.04) 0%, transparent 60%);
opacity: 0;
transition: opacity 0.3s ease;
}
.service-card:hover, .example-card:hover  { transform: translateY(-5px); box-shadow: 0 20px 48px rgba(0,0,0,0.10); border-color: #0071e3; }
.service-card:hover::before, .example-card:hover::before  { opacity: 1; }
.service-img {
height: 200px;
width: auto;
font-size: 2.4rem;
margin: 0 auto 25px; 
display: block;
}

.service-card h3, .example-card h3 {
font-size: 1.3rem;
font-weight: 700;
color: #1d1d1f;
margin: 0 0 10px;
letter-spacing: -0.02em;
}
.service-card p, .example-card p {
font-size: 1.1rem;
color: #515154;
line-height: 1.6;
margin: 0 0 20px;
}
.service-card-tags, .example-card .service-card-tags  {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-bottom: 24px;
}
.service-tag {
font-size: 11.5px;
font-weight: 600;
color: #0071e3;
background: #e8f0fb;
border-radius: 980px;
padding: 3px 10px;
}
.service-link {
font-size: 13px;
font-weight: 600;
color: #0071e3;
display: flex;
align-items: center;
gap: 4px;
}
.service-link::after { content: '→'; transition: transform 0.2s ease; }
.service-card:hover .service-link::after { transform: translateX(4px); }

/* ── Process ── */
.process-section {
background: #fff;
padding: 40px 0 20px 0;
border-top: 1px solid #f2f2f7;
}
.process-section .container {
width: 90%;
max-width: 1100px;
margin: 0 auto;
}
.process-steps {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 0;
position: relative;
}
.process-steps::before {
content: '';
position: absolute;
top: 28px;
left: calc(12.5%);
right: calc(12.5%);
height: 2px;
background: linear-gradient(90deg, #0071e3 0%, #c7dff7 100%);
z-index: 0;
}
.process-step {
text-align: center;
padding: 0 16px;
position: relative;
z-index: 1;
}
.process-num {
width: 56px;
height: 56px;
border-radius: 50%;
background: #0071e3;
color: #fff;
font-size: 1.1rem;
font-weight: 800;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 20px;
letter-spacing: -0.03em;
position: relative;
z-index: 1;
}
.process-step h4 {
font-size: 0.95rem;
font-weight: 700;
color: #1d1d1f;
margin: 0 0 8px;
letter-spacing: -0.01em;
}
.process-step p {
font-size: 0.83rem;
color: #86868b;
line-height: 1.5;
margin: 0;
}

/* ── About ── */
.about-section {
background: #fbfbfd;
padding: 60px 0;
border-top: 1px solid #f2f2f7;
}
.about-section .container {
width: 90%;
max-width: 1100px;
margin: 0 auto;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 80px;
align-items: center;
}

.about-text h2 {
font-size: 1.9rem;
font-weight: 800;
color: #1d1d1f;
letter-spacing: -0.035em;
line-height: 1.15;
margin: 0 0 20px;
}
.about-text h2 em {
font-style: normal;
color: #0071e3;
}
.about-text p {
font-size: 0.97rem;
color: #515154;
line-height: 1.7;
margin: 0 0 16px;
}
.about-chips {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 24px;
}
.about-chip {
font-size: 12px;
font-weight: 600;
color: #1d1d1f;
background: #f5f5f7;
border: 1px solid #e5e5e7;
border-radius: 980px;
padding: 5px 14px;
}
.about-stats {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
}
.about-stat {
background: #fff;
border: 1px solid #e5e5e7;
border-radius: 16px;
padding: 24px;
text-align: center;
}
.about-stat-num {
font-size: 2.2rem;
font-weight: 800;
color: #0071e3;
letter-spacing: -0.05em;
line-height: 1;
margin-bottom: 6px;
}
.about-stat-label {
font-size: 12px;
color: #86868b;
font-weight: 500;
}

/* ── CTA ── */
.cta-section {
background: #1d1d1f;
padding: 100px 0;
}
.cta-section .container {
width: 90%;
max-width: 680px;
margin: 0 auto;
text-align: center;
}
.cta-section h2 {
font-size: 2.2rem;
font-weight: 800;
color: #fff;
letter-spacing: -0.04em;
line-height: 1.15;
margin: 0 0 16px;
}
.cta-section p {
font-size: 1rem;
color: rgba(255,255,255,0.6);
line-height: 1.65;
margin: 0 0 36px;
}
.cta-section .btn.primary {
    background: linear-gradient(160deg, #1a8aff 0%, #0060cc 100%);
    box-shadow: 0 2px 10px rgba(0,96,204,0.28);
    padding: 0 36px;
    font-size: 16px;
    height: 50px;
    border-color: transparent;
}
.cta-section .btn.primary:hover {
background: linear-gradient(160deg, #2e97ff 0%, #0050b3 100%) !important;
box-shadow: 0 4px 16px rgba(0,80,179,0.36) !important;
}
.cta-section .btn.secondary {
    padding: 0 36px;
    font-size: 16px;
    height: 50px; /* MUST match .cta-section .btn.primary exactly */
    border-color: rgba(255,255,255,0.45);
    color: #fff;
}
.cta-section .btn.secondary:hover {
background: rgba(255,255,255,0.1) !important;
color: #fff !important;
}

/* ── Footer – homepage only (scoped via .footer-inner) ── */
footer {
background: #1d1d1f;
border-top: 1px solid rgba(255,255,255,0.08);
padding: 32px 0;
text-align: center;
}
footer .footer-inner {
width: 90%;
max-width: 1100px;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: space-between;
}
footer p {
font-size: 12.5px;
color: rgba(255,255,255,0.4);
margin: 0;
}
footer .footer-links {
display: flex;
gap: 20px;
}
footer .footer-links a {
font-size: 12.5px;
color: rgba(255,255,255,0.4);
text-decoration: none;
transition: color 0.2s;
}
footer .footer-links a:hover { color: rgba(255,255,255,0.8); }

/* ── Animate on scroll ── */
.fade-up {
opacity: 0;
transform: translateY(24px);
transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
opacity: 1;
transform: translateY(0);
}
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* ── Responsive ── */
@media (max-width: 768px) {
/* hero-split mobile: handled by new grid rules below */
/* hero container: replaced by new column structure */
.hero-text { max-width: 100% !important; }
.hero-text h1 { font-size: 2rem; }
.hero-text p { font-size: 0.97rem; max-width: 100%; }
.hero-buttons { justify-content: center; }

.pain-grid { grid-template-columns: 1fr; }
.pain-card h3 { font-size: 1.1rem; }
.pain-card ul li { font-size: 0.9rem; }
.services-grid { grid-template-columns: 1fr; }

.services-section, .process-section {
        padding: 40px 0 60px !important; /* Noch kompakter auf Mobile */
    }

.process-steps { grid-template-columns: 1fr 1fr; gap: 32px; }
.process-steps::before { display: none; }

.about-section .container { grid-template-columns: 1fr; gap: 40px; }
.about-stats { grid-template-columns: 1fr 1fr; }

.cta-section h2 { font-size: 1.6rem; }
.section-header h2 { font-size: 1.5rem; }

footer .footer-inner { flex-direction: column; gap: 12px; }

.pain-section {
display: none;
}
}




/* ── Page Hero (service pages) ── */
/*
.page-hero {
    background-image: url('../assets/Bild.jpg');
    background-size: contain;
    background-position: center top;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    height: auto;
    display: flex;
    align-items: flex-start;
    padding-top: 0px;
    padding-bottom: 42px;
}
    */
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(251,251,253,0.97) 0%, rgba(251,251,253,0.85) 50%, rgba(251,251,253,0.2) 100%);
    z-index: 0;
}
.page-hero-inner {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 680px;
    margin: 0 auto;
}
.page-hero-compat {
    font-size: 11.5px;
    color: #86868b;
    margin-bottom: 28px;
    letter-spacing: 0.01em;
}
@media (max-width: 768px) {
    .page-hero {
        height: auto;
        min-height: 0;
        padding: 20px 0 42px;
        background-size:70% !important;
    }
    .page-hero-inner {
        text-align: center;
    }
    /* hero-split: handled by new grid media rules */
}



/* ── Services mobile carousel (index only) ── */
.services-carousel-wrap {
    position: relative;
}
.services-carousel-dots {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    margin-bottom: 3px;
}
.services-carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d1d1d6;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    border: none;
    padding: 0;
}
.services-carousel-dot.active {
    background: #0071e3;
    transform: scale(1.3);
}
@media (max-width: 768px) {
    .services-carousel-wrap {
        margin-left: -5%;
        margin-right: -5%;
        overflow: hidden;
    }
    .services-carousel-dots {
        display: flex;
    }
    .services-grid-carousel {
        display: flex !important;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        padding: 8px 12vw 16px !important;
        gap: 0 !important;
        scrollbar-width: none;
    }
    .services-grid-carousel::-webkit-scrollbar { display: none; }
    .services-grid-carousel .service-card {
        flex: 0 0 76vw !important;
        max-width: 320px !important;
        margin-right: 12px !important;
        scroll-snap-align: center !important;
        scroll-snap-stop: always !important;
        opacity: 0.7;
        transform: scale(0.97);
        transition: opacity 0.3s, transform 0.3s;
    }
    .services-grid-carousel .service-card.active {
        opacity: 1;
        transform: scale(1);
    }
    .service-img {
    height: 130px;
    width: auto;
    font-size: 2.4rem;
    margin: 0 auto 25px; 
    display: block;
}
}

/* ── Dashboard Preview: desktop/mobile swap ── */
.lp-preview-desktop { display: block; }
.lp-preview-mobile  { display: none;  }

@media (max-width: 768px) {
    /* ── Hero mobile ── */
    .hero-split {
        grid-template-columns: 1fr !important;
        height: auto !important;
    }
    .hero-split .hero-image-col {
        height: 280px;
        order: -1;
        background-position: center center;
    }
    .hero-split .hero-image-col img {
        right: 50%;
        transform: translateX(50%);
        top: -40px;
        height: auto;
        max-height: 100%;
        width: 100%;
        object-fit: contain;
    }
    .hero-split .hero-text-col {
        padding: 36px 5% 44px !important;
        order: 1;
    }
    .hero-split .hero-text-col::before {
        display: none;
    }
    .hero-buttons {
        flex-direction: row !important;
        align-items: center;
    }
    .btn.secondary {
        margin-left: 0 !important;
        margin-top: 0px !important;
    }
    .lp-preview-desktop { display: none  !important; }
    .lp-preview-mobile  { display: block !important; }

    .mobile-only {
    display: block; /* oder 'inline', beides erzwingt hier den Umbruch */
  }
}


/* ═══════════════════════════════════════════════════════════
   HERO DARK – index.html
   Neue Sektion mit dunklem Gradient-Hintergrund,
   schwebendem Code-Block und Counter-Cards.
   Klasse: .hero-dark  (kein Konflikt mit bestehendem .hero)
═══════════════════════════════════════════════════════════ */

.hero-dark {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    padding: 40px 0 40px;
    margin-top: -60px;
    background: #0a0a0f;
}

/* Inner wrapper – centers the two-column layout like other pages */
.hd-inner {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 48px;
    justify-content: center;
}

/* ── Gradient Hintergrund ── */
.hero-dark .grad-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-dark .grad-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-dark .grad-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: .04;
    z-index: 1;
}

/* Licht-Orbs */
.hero-dark .hd-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    animation: hdOrbFloat var(--dur, 9s) ease-in-out infinite alternate;
}
.hero-dark .hd-orb-1 { width: 600px; height: 600px; background: #003d99; opacity: .5;  top: -220px; left: -120px; --dur: 10s; }
.hero-dark .hd-orb-2 { width: 450px; height: 450px; background: #5b21b6; opacity: .4;  top: 80px;  right: -60px; --dur: 13s; animation-direction: alternate-reverse; }
.hero-dark .hd-orb-3 { width: 350px; height: 350px; background: #0c4a6e; opacity: .45; bottom: -100px; left: 35%;  --dur: 8s; }

@keyframes hdOrbFloat {
    from { transform: translate(0,0) scale(1); }
    to   { transform: translate(24px,-18px) scale(1.05); }
}

/* ── Linke Spalte ── */
.hero-dark .hd-left {
    position: relative;
    z-index: 2;
    flex: 1;
    max-width: 580px;
    min-width: 0;
}

.hero-dark .hero-eyebrow {
    color: #60a5fa;
}

.hero-dark h1 {
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.08;
    color: #fff;
    margin-bottom: 22px;
}

.hero-dark h1 em {
    font-style: normal;
    background: linear-gradient(120deg, #60a5fa, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-dark .hd-p {
    font-size: 1.05rem;
    color: rgba(255,255,255,.6);
    line-height: 1.7;
    max-width: 420px;
    margin-bottom: 32px;
}

.hero-dark .hero-buttons {
    margin-bottom: 48px;
    justify-content: flex-start;
}

.hero-dark .btn.secondary {
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.85);
    border-color: rgba(255,255,255,.22);
    backdrop-filter: blur(10px);
}

.hero-dark .btn.secondary:hover {
    background: rgba(255,255,255,.14) !important;
    color: #fff !important;
}

/* ── Counter-Cards ── */
.hd-counters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 480px;
}

.hd-counter-card {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    padding: 18px 14px;
    text-align: center;
    backdrop-filter: blur(12px);
    transition: border-color .3s;
}

.hd-counter-card:hover {
    border-color: rgba(96,165,250,.4);
}

.hd-counter-num {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(120deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hd-counter-label {
    font-size: 10.5px;
    color: rgba(255,255,255,.45);
    font-weight: 500;
    line-height: 1.4;
}

/* ── Rechte Spalte: Schwebende Code-Card ── */
.hero-dark .hd-right {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    width: 280px;
    margin-left: 0;
    align-self: flex-start;
}

.hd-code-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 18px;
    overflow: hidden;
    backdrop-filter: blur(24px);
    box-shadow: 0 32px 80px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.08);
    animation: hdCodeFloat 7s ease-in-out infinite;
}

@keyframes hdCodeFloat {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

.hd-code-bar {
    padding: 12px 16px;
    background: rgba(255,255,255,.04);
    border-bottom: 1px solid rgba(255,255,255,.07);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hd-code-dots { display: flex; gap: 6px; }
.hd-cdot { width: 10px; height: 10px; border-radius: 50%; }
.hd-cdot-r { background: #ff5f57; }
.hd-cdot-y { background: #febc2e; }
.hd-cdot-g { background: #28c840; }

.hd-code-title {
    font-size: 11px;
    color: rgba(255,255,255,.35);
    flex: 1;
    text-align: center;
    font-family: 'SF Mono', Consolas, monospace;
}

.hd-code-body {
    padding: 20px 22px;
    font-family: 'SF Mono', 'Fira Mono', Consolas, monospace;
    font-size: 12px;
    line-height: 1.95;
    color: #e5e5ea;
}

.hd-kw  { color: #bf5af2; }
.hd-fn  { color: #0a84ff; }
.hd-str { color: #32d74b; }
.hd-cm  { color: rgba(255,255,255,.25); }
.hd-num { color: #ff9f0a; }

/* Status-Pill */
.hd-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(52,215,91,.12);
    border: 1px solid rgba(52,215,91,.25);
    border-radius: 980px;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 600;
    color: #34c75b;
    margin: 14px 0 16px 22px;
    animation: hdPillPulse 2.5s ease-in-out infinite;
}

.hd-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34c75b;
    animation: hdPillPulse 1.5s ease-in-out infinite;
}

@keyframes hdPillPulse {
    0%,100% { opacity: 1; }
    50%      { opacity: .6; }
}

/* ── Responsive ── */
@media (max-width: 860px) {
    .hero-dark .hd-right { display: none; }
    .hero-dark { padding: 28px 0 20px; }
    .hd-inner { flex-direction: column; }
    .hero-dark .hero-buttons { justify-content: center; }
    .hd-counters { max-width: 100%; }
}

@media (max-width: 540px) {
    .hd-counter-num   { font-size: 1.4rem; }
    .hd-counter-label { font-size: 9.5px; }
    .hd-counter-card  { padding: 13px 8px; }
}
