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

body {
    font-family: Arial, sans-serif;
    background: #ffffff;
    color: #111;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    padding: 60px 0;
}
.problem .container {
    padding-top: 0;
    padding-bottom: 30px;
}

.services .container {
    padding-top: 30px;    
    padding-bottom: 20px;
}

a, a:visited {
    color: #0071e3; /* Das Apple Blau */
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #0077ed; /* Minimal heller beim Drüberfahren */
    text-decoration: underline;
}

/* ================= NAVBAR ================= */
.navbar {
    width: 100%;
    background: white;
    border-bottom: 1px solid #eee;
    position: fixed;
    top: 0;
    z-index: 1000;
}

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

.logo a {
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    color: black;
}

.nav-links a {
    margin-left: 20px;
    text-decoration: none;
    color: black;
}

.nav-cta {
    background-color: #0071e3 !important; /* Apple Blau */
    color: white !important;
    padding: 8px 18px !important; /* Etwas kompakter für die Navbar */
    border-radius: 980px !important; /* Pillen-Form */
    font-size: 14px; /* In der Navbar oft etwas kleiner für die Eleganz */
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    display: inline-block;
}

.nav-cta:hover {
    background-color: #0077ed !important;
    opacity: 0.9;
    transform: scale(1.02); /* Minimaler Vergrößerungs-Effekt beim Drüberfahren */
}

/* Hamburger (hidden on desktop) */
.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: white;
    padding: 20px;
}

.mobile-menu a {
    margin: 10px 0;
    text-decoration: none;
    color: black;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
    .btn-main {
        width: auto; /* Verhindert Riesen-Buttons */
        padding: 10px 20px;
        font-size: 14px;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .mobile-menu.active {
        display: flex;
    }

    .service-container {
        display: flex;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding-bottom: 20px;
    }
    .service-card {
        min-width: 85%; /* Zeigt ein Stück der nächsten Karte an */
        scroll-snap-align: center;
    }
}

/* Damit Hero nicht unter Navbar verschwindet */
.hero {
    margin-top: 20px;
}

/* ================= HERO ================= */
.hero {
    text-align: center;
    padding: 90px 20px 20px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* ================= BUTTONS ================= */
.btn {
    padding: 12px 24px;
    font-size: 17px;           /* Apple nutzt oft 17px für gute Lesbarkeit */
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border-radius: 980px;      /* Die typischen "Pill-Shaped" Buttons von Apple */
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    cursor: pointer;
    border: none;
    text-align: center;
}

/* Der blaue Apple Primary Button */
.primary {
    background-color: #0071e3; /* Original Apple Action Blue */
    color: #ffffff !important;
}

.primary:hover {
    background-color: #0077ed; /* Minimal heller beim Hover */
    opacity: 0.9;              /* Apple nutzt oft leichte Transparenz beim Hover */
}

/* Der Apple Secondary Button (Link-Style oder dezentes Grau) */
.secondary {
    background-color: transparent;
    color: #0066cc;            /* Etwas dunkleres Blau für Text-Links */
    border: 1px solid #0066cc;
    margin-left: 15px;
}

.secondary:hover {
    background-color: #0077ed;
    color: #ffffff;
    opacity: 0.9;
}

/* Speziell für die Hero-Sektion: Apple nutzt oft große, zentrierte Buttons */
.buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

/* ================= SERVICES ================= */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: #fff;
    display: flex;           /* Ermöglicht vertikale Ausrichtung */
    flex-direction: column;
    align-items: flex-start; /* Icons linksbündig (wie Text) */
}

.card img {
    width: 100px;            /* Einheitliche Breite für Icons */
    height: auto; 
    align-self: center;          /* Proportionale Höhe */
    margin-bottom: 20px;    /* Abstand zur Überschrift */
    object-fit: contain;    /* Verhindert Verzerrungen */
}

.card:hover {
    transform: scale(1.03);
    border-color: #0077ff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.card:active {
    transform: scale(0.98); /* "Click"-Effekt: Karte drückt sich leicht ein */
}

/* ================= CTA ================= */
.cta {
    text-align: center;
    background: #f5f5f5;
}

.cta h2 {
    margin-bottom: 10px; /* Vergrößert den Abstand zum Button deutlich */
    font-size: 1,2rem;
    color: #111;
}

/* ================= FOOTER ================= */
footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    background: #fafafa;
}

/* ================= Kontaktformular ================= */
.contact-section { padding: 80px 0; }
.contact-form { max-width: 600px; margin: 40px auto 0; text-align: left; background: #fff; }

.form-row { display: flex; gap: 20px; }
.form-group { display: flex; flex-direction: column; margin-bottom: 20px; flex: 1; }

/* Einheitliches Styling für Input, Textarea UND Dropdown */
.form-group input,
.form-group textarea,
.apple-select {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    width: 100%;
    background-color: #fff;
    color: #111;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

/* Spezielle Anpassung für das Dropdown (Höhe und Pfeil) */
.apple-select {
    height: 48px; /* Gleiche Höhe wie die Inputs */
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386868b' 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 15px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Dropdown Placeholder Farbe */
.apple-select:invalid, .apple-select option[value=""] {
    color: #86868b;
}

.form-group input:focus,
.form-group textarea:focus,
.apple-select:focus {
    outline: none;
    border-color: #0071e3;
}

::placeholder { color: #86868b; opacity: 1; }

/* Für Mobile: Vorname/Nachname untereinander */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

.form-group label {
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0077ff;
}

.checkbox {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.checkbox input {
    width: auto;
}

/* Button Full-Width auf Mobile */
.contact-form .btn {
    width: 100%;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    margin-top: 10px;
}

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

/* Modal Box */
.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 40px;
    border-radius: 18px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

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

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

@media (max-width: 600px) {
    .modal-buttons { flex-direction: column; }
}

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

/* Button innerhalb des Modals soll volle Breite auf Mobile haben */
@media (max-width: 600px) {
    .modal-buttons {
        flex-direction: column;
    }
    .modal-buttons .btn {
        width: 100%;
        margin-left: 0; /* Entfernt den margin vom secondary button */
    }
}