/* style.css */

/* --- ALLGEMEINES & HEADER --- */
body {
    background-color: #f4f4f4;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #333;
    margin: 0;
}

/* SICHERHEITS-REGEL: Bilder dürfen nie breiter als der Container sein */
img {
    max-width: 100%;
    height: auto;
}

/* Der Header-Bereich MIT FARBVERLAUF (Bordeaux -> Rot) */
.header-search-section {
    background: linear-gradient(180deg, #A60002 0%, #400C00 100%);
    color: white;
    padding: 40px 20px 80px 20px;
    text-align: center;
    margin-bottom: 0; 
}

/* Styling für das Logo */
.header-logo {
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto 25px auto;
}

.header-search-section h1 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 28px;
    font-weight: bold;
}

.header-search-section p {
    font-size: 16px;
    opacity: 0.95;
    margin-bottom: 30px;
}

/* Suchfeld Styling */
.search-wrapper {
    max-width: 700px;
    margin: 0 auto 30px auto;
    display: flex;
    gap: 10px;
}

.search-wrapper input {
    flex-grow: 1;
    padding: 15px;
    border-radius: 4px;
    border: none;
    font-size: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    color: #333; 
    background-color: #ffffff;
}

.search-wrapper button {
    padding: 15px 15px;
    background-color: #ff9900; 
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: background-color 0.2s;
}
.search-wrapper button:hover { background-color: #e68a00; }

/* --- HAUPTCONTAINER --- */
.troubleshooter-container {
    width: 90%;
    max-width: 1000px;
    margin: -50px auto 50px auto;
    background: #fff;
    /* HIER GEÄNDERT: Padding von 40px auf 20px reduziert */
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

/* --- BUTTONS & OPTIONEN (MIT ICONS) --- */
.btn-option {
    margin-bottom: 15px;
    white-space: normal;
    text-align: left;
    padding: 15px 20px;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: none;
    
    /* Flexbox für Icon + Text Ausrichtung */
    display: flex;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover-Effekt für die Buttons: Leichtes Anheben */
.btn-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    z-index: 1;
}

.btn-default.btn-option {
    background-color: #f8f9fa;
    color: #004a99; /* Textfarbe Blau */
}
.btn-default.btn-option:hover {
    background-color: #e9ecef;
}

/* Styling für das Icon links im Button */
.btn-option .cat-icon {
    font-size: 24px;       
    margin-right: 15px;    
    color: #800020;        
    min-width: 50px;       
    text-align: center;
}

/* --- FEEDBACK & KONTAKT --- */
.solution-box {
    background-color: #dff0d8; border: 1px solid #d6e9c6; color: #3c763d;
    padding: 20px; border-radius: 4px; margin-top: 20px; text-align: center;
}
.contact-box {
    background-color: #f9f9f9; border: 1px solid #eee;
    padding: 30px; border-radius: 8px; margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.contact-box .col-sm-4 {
    margin-bottom: 15px;
}
.contact-box .col-sm-4:last-child {
    margin-bottom: 0;
}

.btn-whatsapp { background-color: #25D366; border-color: #25D366; color: white; }
.btn-whatsapp:hover { background-color: #128C7E; color: white; }


/* --- ANHÄNGE & GALERIE (OPTIMIERT) --- */
.attachments-area {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.attachments-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #555;
}

/* Flexibles Grid: Kacheln sind mind. 150px breit, aber passen sich an */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.gallery-item {
    width: 180px;           /* Basis-Breite der Kachel */
    height: 120px;          /* Feste Höhe für Einheitlichkeit */
    overflow: hidden;       /* Was übersteht, wird abgeschnitten */
    border-radius: 6px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    cursor: pointer;
    background: #f9f9f9;
}

/* Mobile Optimierung: Auf sehr kleinen Handys etwas kleiner */
@media (max-width: 480px) {
    .gallery-item {
        width: 140px;
        height: 100px;
    }
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #bbb;
}

/* Das Bild füllt die Kachel komplett aus (Zoom/Crop), ohne Verzerrung */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

/* PDF Liste */
.pdf-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pdf-item {
    margin-bottom: 8px;
}

.btn-pdf {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background-color: #fff;
    border: 2px solid #e37425;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-pdf:hover {
    background-color: #f2f2f2;
    border-color: #aaa;
    text-decoration: none;
    color: #000;
}

.btn-pdf .icon {
    margin-right: 8px;
    font-size: 1.2em;
}

/* --- VIDEO CONTAINER (Responsive) --- */
.video-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.video-item {
    flex: 1 1 300px; /* Mindestens 300px breit, wächst aber */
    max-width: 100%;
}

.embed-responsive {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    height: auto !important; 
}

.embed-responsive::before {
    display: block;
    content: "";
}

.embed-responsive-16by9::before {
    padding-top: 56.25%; /* 16:9 Verhältnis */
}

.embed-responsive .embed-responsive-item,
.embed-responsive iframe {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* --- Breadcrumb Style --- */
.breadcrumb-buttons {
    margin-bottom: 60px;
    width: 100%;
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px; 
}

/* --- Style für den Lösungstext --- */
.step-description {
    font-size: 1.6em;   
    line-height: 1.6;
    color: #444;
    margin-bottom: 20px;
}

/* --- MOBILE OPTIMIERUNG FÜR BREADCRUMBS --- */
@media (max-width: 768px) {
    /* Container noch etwas schmaler/flexibler auf Handy */
    .troubleshooter-container {
        width: 95%;
        padding: 15px; /* Auf sehr kleinen Schirmen reichen auch 15px */
    }

    /* Breadcrumb Buttons optimieren */
    .breadcrumb-buttons {
        padding: 10px;
        gap: 3px;
        margin-bottom: 30px; /* Weniger Abstand auf Handy */
    }

    .breadcrumb-buttons .btn {
        white-space: normal; /* HIER GEÄNDERT: Text darf umbrechen! */
        height: auto;        /* Button passt sich der Höhe an */
        text-align: left;    /* Linksbündig liest sich bei Mehrzeilern besser */
        font-size: 13px;     /* Schrift etwas kompakter */
        padding: 5px 8px;    /* Weniger Innenabstand */
        
        /* Trick für den Pfeil: */
        max-width: 88%;      /* Button darf nie 100% füllen, damit rechts Platz für Pfeil ist */
        display: inline-block;
        vertical-align: middle;
    }

    /* Den Pfeil etwas kleiner machen */
    .breadcrumb-buttons .glyphicon-chevron-right {
        font-size: 0.9em;
        margin: 0 1px;
    }
}