        /* ==========================================
   1. GRUNDLEGENDE EINSTELLUNGEN & RESET
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #ffffff; /* Weißer Hintergrund */
    color: #1a202c;            /* Dunkle Textfarbe für Lesbarkeit */
    line-height: 1.6;
}

/* ==========================================
   2. HEADER & NAVIGATION
   ========================================== */
header {
    background-color: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo img {
    height: 80px;              /* Kürzere Höhe, damit die Navi nicht riesig wird */
    width: auto;
    display: block;
}

nav a {
    color: #1a202c;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #e85d1a;            /* Orange beim Hover */
}

nav a.btn-nav {
    background-color: #2a526e; /* Blaues Accent */
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

nav a.btn-nav:hover {
    background-color: #1c394e;
    box-shadow: 0 4px 12px rgba(42, 82, 110, 0.3);
}

/* ==========================================
   3. HERO SECTION (STARTSEITE)
   ========================================== */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.hero h1 {
    font-size: 2.8rem;
    color: #2a526e;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 30px;
}

/* ==========================================
   4. BUTTONS & EFFEKTE
   ========================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    margin: 8px 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary, 
.btn-anfragen, 
.btn-zentriert {
    background-color: #e85d1a; /* Orange aus dem Logo */
    color: #ffffff !important;
    font-weight: bold;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(232, 93, 26, 0.25);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-anfragen {
    display: block;
    width: 100%;
    padding: 12px 0;
    margin-top: 15px;
}

.btn-zentriert {
    display: inline-block;
    width: auto;
    padding: 12px 28px;
}

.btn-primary:hover, 
.btn-anfragen:hover, 
.btn-zentriert:hover {
    background-color: #c94c10;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #2a526e;
    color: #2a526e;
}

.btn-secondary:hover {
    background-color: #2a526e;
    color: #ffffff;
    transform: translateY(-3px);
}

/* ==========================================
   5. STARTSEITEN-KARTEN (SERVICES)
   ========================================== */
.services {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 60px 5%;
    flex-wrap: wrap;
}

.card {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 35px;
    width: 350px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    border-top: 4px solid #2a526e;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
    border-top-color: #e85d1a;
}

.card h2 {
    margin-bottom: 15px;
    color: #2a526e;
}

.card ul {
    margin-top: 15px;
    padding-left: 20px;
    color: #4a5568;
}

.card li {
    margin-bottom: 8px;
}

.btn-katalog {
    margin-top: 20px;
    width: 100%;
    text-align: center;
}

/* ==========================================
   6. KATALOG-SEITEN (WERKZEUGE)
   ========================================== */
.katalog-header {
    text-align: center;
    padding: 60px 20px 30px;
}

.katalog-header h1 {
    color: #2a526e;
}

/* Das Grid fängt wieder oben an (kein automatisches Mitstrecken) */
.katalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start !important; /* WICHTIG: Stoppt das Mitdehnen der Nachbarkarten */
}

/* Die Werkzeugkarte */
.katalog-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    color: #ffffff;
    box-shadow: 0 4px 15px #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    align-self: start !important;  /* WICHTIG: Jede Karte bleibt für sich */
}

.katalog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.img-box img, 
.katalog-card img {
    width: 100%;
    height: 180px;
    object-fit: contain; /* Zeigt das ganze Werkzeug ohne Abschneiden */
    padding: 10px;        /* Verhindert, dass das Bild am Rand klebt */
}
.katalog-info {
    padding: 20px;
}

.katalog-info h3 {
    color: #2a526e;
    margin-bottom: 10px;
}

.katalog-info .beschreibung {
    font-size: 0.9rem;
    color: #4a5568;
    margin-bottom: 15px;
    min-height: 45px;
}

.preis-box {
    margin-bottom: 15px;
}

.preis-box .preis {
    display: block;
    font-size: 1.3rem;
    font-weight: bold;
    color: #e85d1a;
}

.preis-box .sub-preis {
    font-size: 0.85rem;
    color: #718096;
}

.katalog-info .btn {
    width: 100%;
    text-align: center;
    margin-top: 15px;
}

/* ==========================================
   7. TECHNISCHE DATEN (AUSKLAPP-BEREICH)
   ========================================== */
.tech-info {
    margin-bottom: 20px;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.tech-info summary {
    padding: 10px 0;
    font-size: 0.9rem;
    color: #2a526e;
    cursor: pointer;
    font-weight: bold;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.tech-info summary::-webkit-details-marker {
    display: none;
}

.tech-info summary:hover {
    color: #e85d1a;
}

.tech-info summary .arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: #718096;
}

.tech-info[open] summary .arrow {
    transform: rotate(180deg);
    color: #e85d1a;
}

.tech-content {
    padding: 10px 0 15px;
    font-size: 0.85rem;
    color: #4a5568;
    animation: slideDown 0.3s ease-out;
}

.tech-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-content li {
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
}

.tech-content li strong {
    color: #1a202c;
    font-weight: 600;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   8. FORMULAR (ANFRAGE)
   ========================================== */
.anfrage-container {
    max-width: 650px;
    margin: 40px auto;
    padding: 35px;
    background-color: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #1a202c;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.anfrage-container h2 {
    text-align: center;
    margin-bottom: 8px;
    color: #2a526e;
}

.anfrage-container .subtitle {
    text-align: center;
    color: #718096;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }

.anfrage-form label {
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #2d3748;
}

.anfrage-form input, 
.anfrage-form textarea {
    padding: 12px;
    border-radius: 6px;
    border: 2px solid #cbd5e0;
    background-color: #ffffff;
    color: #1a202c;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.anfrage-form input:focus, 
.anfrage-form textarea:focus {
    outline: none;
    border-color: #e85d1a;
}

.anfrage-form input.is-valid,
.anfrage-form textarea.is-valid {
    border-color: #22c55e !important;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.2);
}

.anfrage-form input.is-invalid,
.anfrage-form textarea.is-invalid {
    border-color: #ff4d4d !important;
    box-shadow: 0 0 6px rgba(255, 77, 77, 0.2);
}

.error-msg {
    color: #ff4d4d;
    font-size: 0.85rem;
    margin-top: -10px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    margin-top: 10px;
    cursor: pointer;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #718096;
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover {
    color: #1a202c;
}

/* ==========================================
   9. KONTAKT & FOOTER
   ========================================== */
.custom-service-box {
    grid-column: 1 / -1;
    text-align: center;
    width: 100%;
    margin: 50px auto 20px auto;
    padding: 20px 0;
}

.custom-service-box p {
    color: #1a202c;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
}

.kontakt {
    text-align: center;
    padding: 80px 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #e2e8f0;
}

.kontakt-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

footer {
    width: 100%;
    text-align: center;
    padding: 20px 0 40px 0;
    margin-top: 60px;
    color: #718096;
    font-size: 0.85rem;
    border-top: 1px solid #e2e8f0;
    background-color: #ffffff;
}

footer p {
    margin: 0;
    text-align: center;
}
/* ==========================================
   MOBILE ANPASSUNG (FÜR SMARTPHONES)
   ========================================== */
@media screen and (max-width: 768px) {
    
    /* Navigation untereinander statt nebeneinander */
    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        text-align: center;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    nav a {
        margin-left: 0;
        margin: 5px;
    }

    /* Hero-Bereich kompakter machen */
    .hero {
        padding: 50px 15px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    /* Katalog-Grid: Macht aus 3 Spalten 1 Spalte auf dem Handy */
    .katalog-grid {
        grid-template-columns: 1fr !important;
        padding: 0 15px;
    }

    .katalog-card {
        width: 100% !important;
        margin-bottom: 20px;
    }

    /* Services-Karten auf volle Breite */
    .services {
        padding: 30px 15px;
    }

    .card {
        width: 100% !important;
    }

    /* Formulare an Bildschirmgröße anpassen */
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .anfrage-container {
        margin: 20px 15px;
        padding: 20px;
    }
}