/*
 * Fairwoll Firmen Stylesheet
 * Version 13.3 - Überarbeitete und optimierte Version
 * Änderungen: Angepasste Stile für Formulare, erweiterte Formularfelder und responsive Anpassungen.
 */

/* ========================================================= */
/* === GLOBALE STILE & GRUNDLEGENDES LAYOUT ================ */
/* ========================================================= */
body {
    background-color: #F0F7F4;
    color: #333333;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    margin: 0;
    padding: 0;
}

.fw-main-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    color: #333333;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1em;
    max-width: 75ch;
}

ul, ol {
    margin: 1em 0 1em 1.5em;
    padding: 0;
}

a {
    color: #388E3C;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover, a:focus {
    color: #FFC107;
    text-decoration: underline;
}

/* ========================================================= */
/* === KOPFBEREICH (Hero Section) ========================== */
/* ========================================================= */
.fw-single-header {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 50px;
    text-align: center;
    background-color: #6c757d;
    background-image: url('https://your-website.com/wp-content/uploads/standard-header-image.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.fw-single-header-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.fw-single-overlay {
    background-color: rgba(0, 0, 0, 0.4);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.fw-single-header-content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    margin: 0 auto;
    padding: 0 20px;
}

.fw-single-logo-wrapper {
    position: relative;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    padding: 10px;
    width: 180px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fw-single-logo {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.fw-single-title {
    font-size: 2.2rem;
    margin: 20px 0 10px;
    font-weight: 800;
    color: white;
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
}

.fw-single-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.fw-single-tag {
    background-color: rgba(255, 255, 255, 0.9);
    color: #333333;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.fw-single-tag:hover {
    transform: translateY(-2px);
}

.fw-single-tag.online {
    background-color: #6AA5C6;
    color: #fff;
}

.fw-single-tag.stationaer {
    background-color: #C6A26A;
    color: #fff;
}

.fw-single-tag.region {
    background-color: #388E3C;
    color: #fff;
}

.fw-single-tag.kategorie {
    background-color: #4CAF50;
    color: #fff;
}

/* ========================================================= */
/* === INHALTSBEREICH & SEITENLEISTE ======================= */
/* ========================================================= */
.fw-content-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 30px 0;
    max-width: 1400px;
    margin: 0 auto;
}

.fw-main-content {
    flex: 3;
    margin: 0 auto;
}

.fw-sidebar {
    flex: 1;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e7ee;
}

.fw-sidebar-widget {
    background-color: #f9fbfd;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.fw-sidebar-widget h3 {
    margin-top: 0;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #333333;
}

/* ========================================================= */
/* === NEUE CONTAINER FÜR INHALTSEKTIONEN ================== */
/* ========================================================= */
.fw-section-container {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e7ee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fw-section-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.fw-section-container h2 {
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #388E3C;
    padding-bottom: 10px;
}

/* ========================================================= */
/* === KONTAKT & INFOS ===================================== */
/* ========================================================= */
.fw-contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.fw-contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    border-left: 3px solid #388E3C;
    padding-left: 15px;
}

.fw-contact-item i {
    color: #388E3C;
    font-size: 1.3rem;
}

.fw-social-icons-wrapper {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.fw-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fw-social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.fw-social-link[href*="facebook"] {
    background-color: #3b5998;
}

.fw-social-link[href*="instagram"] {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.fw-social-link[href*="linkedin"] {
    background-color: #0077B5;
}

/* ========================================================= */
/* === NACHHALTIGKEIT SEKTION ============================== */
/* ========================================================= */
.fw-sustainability-block {
    background-color: #F5F5DC;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    margin-bottom: 30px;
    border: 1px solid #e0e7ee;
    transition: border-color 0.3s ease;
}

.fw-sustainability-block:hover {
    border-color: #C6A26A;
}

.fw-sustainability-block h2 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #388E3C;
    padding-bottom: 10px;
}

.fw-sustainability-block p {
    font-size: 1rem;
    color: #666;
}

.fw-sustainability-block a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.fw-sustainability-block a:hover {
    color: #388E3C;
}

/* ========================================================= */
/* === BEWERTUNGEN ========================================= */
/* ========================================================= */
.fw-reviews-section {
    padding: 30px;
}

.fw-reviews-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e7ee;
}

.fw-review-average-rating {
    font-size: 2.5rem;
    font-weight: bold;
    color: #4CAF50;
}

.fw-review-stars {
    color: #ffc107;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.fw-review-count {
    color: #7a94ad;
}

.fw-review-item {
    border-left: 4px solid #388E3C;
    background-color: #F5F5DC;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    transition: border-color 0.3s ease;
}

.fw-review-item:hover {
    border-color: #C6A26A;
}

.fw-review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.fw-review-author {
    font-style: italic;
    color: #7a94ad;
}

.fw-review-title {
    margin: 0;
    font-size: 1.2rem;
}

.fw-review-content {
    margin-top: 5px;
}

.fw-review-form-container {
    padding-top: 30px;
    border-top: 1px dashed #e0e7ee;
    margin-top: 30px;
}

/* ========================================================= */
/* === FORMULARELEMENTE (Bewertungssterne) ================= */
/* ========================================================= */
.fw-rating-stars-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.fw-rating-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0;
}

.fw-rating-stars input {
    display: none;
}

.fw-rating-stars label {
    font-size: 1.8rem;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s ease;
    margin: 0;
    padding: 0 2px;
}

.fw-rating-stars input:checked ~ label {
    color: #ffc107;
}

.fw-rating-stars label:hover,
.fw-rating-stars label:hover ~ label {
    color: #ffc107;
}

/* ========================================================= */
/* === FORMULARELEMENTE (Verbesserte Felder) =============== */
/* ========================================================= */
.fw-form-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-top: 30px;
    margin-bottom: 30px;
}

.fw-form-wrap h2 {
    text-align: center;
    margin-bottom: 20px;
}

.fw-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
}

.fw-form-group.checkbox {
    flex-direction: column;
    align-items: flex-start;
}

.fw-form-help-text {
    display: block;
    font-size: 0.9em;
    color: #7a94ad;
    margin-top: 5px;
    line-height: 1.4;
    max-width: 650px;
}

.fw-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
}

.fw-form input[type="text"],
.fw-form input[type="email"],
.fw-form input[type="url"],
.fw-form input[type="tel"],
.fw-form input[type="password"],
.fw-form textarea,
.fw-form select {
    width: 100%;
    padding: 0.8em 1em;
    border: 1px solid #d0dbe2;
    border-radius: 8px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #333;
}

.fw-form input:focus,
.fw-form select:focus,
.fw-form textarea:focus {
    outline: none;
    border-color: #388E3C;
    box-shadow: 0 0 0 3px rgba(56, 142, 60, 0.2);
    background-color: #fcfdfe;
}

.fw-form textarea {
    resize: vertical;
    min-height: 120px;
}

.fw-form-file-upload {
    display: flex;
    flex-direction: column;
    margin-top: 15px;
}

.fw-form-file-upload input[type="file"] {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.fw-form-file-upload .fw-current-image {
    max-width: 150px;
    height: auto;
    border-radius: 8px;
    margin-top: 10px;
    border: 1px solid #e0e0e0;
}

.fw-form button[type="submit"] {
    background-color: #5cb85c;
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.fw-form button[type="submit"]:hover {
    background-color: #4cae4c;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.fw-success,
.fw-error,
.fw-success-message,
.fw-error-message {
    padding: 1em;
    margin: 1.5em 0;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
}

.fw-success {
    background-color: #e6f7e6;
    color: #387038;
    border: 1px solid #a3e9a3;
}

.fw-error {
    background-color: #ffe6e6;
    color: #993d3d;
    border: 1px solid #ff9999;
}

.fw-success-message {
    background-color: #e6f7e6;
    color: #387038;
    border: 1px solid #a3e9a3;
}

.fw-error-message {
    background-color: #ffe6e6;
    color: #993d3d;
    border: 1px solid #ff9999;
}

.fw-success-message a,
.fw-error-message a {
    color: #4f8a10;
    text-decoration: underline;
    font-weight: normal;
}

.fw-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.fw-checkbox-group label {
    display: flex;
    align-items: center;
    margin-top: 0;
    margin-bottom: 0;
    font-weight: normal;
}

.fw-checkbox-group input[type="checkbox"] {
    margin-right: 8px; /* Etwas mehr Platz zur Checkbox */
    width: auto;
}

#bundesland_firmen {
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
    appearance: menulist !important;
}

/* ========================================================= */
/* === NEUE STILE FÜR BUTTONS IM EDIT-FORMULAR ============== */
/* ========================================================= */
.fw-edit-form-buttons,
.fw-password-form button[type="submit"] {
    margin-top: 25px;
    flex-wrap: wrap;
    text-align: center;
}

.fw-submit-button,
.fw-delete-button,
.fw-password-form button[type="submit"] {
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.15s ease;
    width: 100%;
    margin-top: 20px;
}

.fw-submit-button {
    background-color: #5cb85c;
    color: white;
}

.fw-submit-button:hover {
    background-color: #4cae4c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.fw-delete-button {
    background-color: #dc3232;
    color: white;
}

.fw-delete-button:hover {
    background-color: #a02020;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Anpassung für den Bearbeiten-Button (falls er im fw-form-wrap ist) */
.fw-form-wrap .fw-submit-button {
    width: 100%;
}


/* ========================================================= */
/* === STILE FÜR ADRESS-CONTAINER ========================== */
/* ========================================================= */
.fw-address-container {
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #d3d3d3;
    border-radius: 8px;
    background-color: #f7f7f7;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.fw-address-container:hover {
    border-color: #a3e9a3;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.fw-address-container h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #4CAF50;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 5px;
}

.fw-address-container .fw-form-group {
    margin-bottom: 15px;
}


/* ========================================================= */
/* === FIRMEN-GRID-LAYOUT & BESTENLISTE ==================== */
/* ========================================================= */
.fw-firmen-grid, .firmen-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.fw-firmen-card, .fw-grid-item-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.fw-firmen-card:hover, .fw-grid-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.fw-card-link, .fw-grid-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.fw-card-link:hover, .fw-grid-link:hover {
    text-decoration: none;
}

.fw-firmen-card-image, .fw-grid-item-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.fw-firmen-card-image img, .fw-grid-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fw-firmen-card-header, .fw-grid-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.fw-firmen-card-logo-wrapper, .fw-grid-logo-wrapper {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 5px;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    margin-bottom: 10px;
    overflow: hidden;
}

.fw-firmen-card-logo, .fw-grid-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.fw-firmen-card-title-wrapper, .fw-grid-title-wrapper {
    flex-grow: 1;
}

.fw-firmen-card-title, .fw-grid-title {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
    line-height: 1.2;
}

.fw-firmen-card-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 5px;
    font-size: 0.9em;
}

.fw-firmen-card-stars {
    color: #ffc107;
    font-size: 1.2em;
}

.fw-firmen-card-rating-value {
    font-weight: bold;
    color: #333;
}

.fw-firmen-card-review-count {
    color: #666;
}

.fw-firmen-card-tags-wrapper, .fw-grid-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    margin-bottom: 15px;
    margin-top: 10px;
}

.fw-tag, .fw-grid-tag {
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fw-tag-online {
    background-color: #6AA5C6;
}

.fw-tag-stationaer {
    background-color: #C6A26A;
}

.fw-tag-region {
    background-color: #388E3C;
}

.fw-tag-kategorie {
    background-color: #4CAF50;
}

.fw-firmen-card-content, .fw-grid-content {
    padding: 0 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.fw-firmen-card-excerpt, .fw-grid-excerpt {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
    flex-grow: 1;
}

.fw-firmen-card-button-wrapper, .fw-grid-button-wrapper {
    padding: 15px;
    text-align: center;
    margin-top: auto;
}

.fw-firmen-card-button, .fw-grid-button {
    background-color: #4CAF50;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.fw-firmen-card-button:hover, .fw-grid-button:hover {
    background-color: #388E3C;
    transform: translateY(-2px);
}

/* ========================================================= */
/* === RESPONSIVE DESIGN =================================== */
/* ========================================================= */
@media (min-width: 992px) {
    .fw-content-container {
        flex-direction: row;
    }

    .fw-sidebar {
        display: block;
    }

    .fw-form-buttons {
        display: flex;
        justify-content: flex-start;
        gap: 15px;
        flex-wrap: wrap;
    }

    .fw-submit-button,
    .fw-delete-button {
        width: auto;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .fw-content-container {
        flex-direction: column;
        gap: 20px;
    }

    .fw-sidebar {
        display: block;
    }
}

@media (max-width: 767px) {
    .fw-main-wrapper {
        padding: 0;
    }

    .fw-content-container {
        flex-direction: column;
        gap: 20px;
        padding: 0 20px;
        margin-top: 20px;
    }

    .fw-main-content {
        max-width: none;
        margin: 0;
    }

    .fw-sidebar {
        padding: 30px;
        max-width: none;
        margin: 0;
    }

    .firmen-filter-row {
        flex-direction: column;
    }

    .fw-firmen-grid, .firmen-grid {
        grid-template-columns: 1fr;
    }

    .fw-firmen-card, .fw-grid-item-card {
        margin: 0 auto;
        max-width: 500px;
    }

    .fw-single-header {
        height: 400px;
        padding: 0 20px;
        text-align: center;
        justify-content: center;
    }

    .fw-single-header-content-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        justify-content: space-around;
        max-width: 100%;
    }

    .fw-single-logo-wrapper {
        position: relative;
        margin-top: 0;
        margin-bottom: 20px;
        width: 120px;
        height: 120px;
        order: -1;
    }

    .fw-single-title {
        font-size: 2rem;
    }

    .fw-contact-info {
        grid-template-columns: 1fr;
    }

    .firmen-filter-item select,
    .firmen-filter-item input[type="text"] {
        min-width: 100%;
        padding: 12px;
        border-radius: 8px;
        border: 1px solid #e0e0e0;
        background-color: #ffffff;
    }

    .firmen-filter-buttons {
        display: flex;
        gap: 10px;
    }

    .firmen-filter-buttons button {
        flex-grow: 1;
    }

    /* === Mobile-spezifische Anpassungen für Bewertungssterne === */
    .fw-rating-stars {
        justify-content: flex-start;
        gap: 0;
    }

    .fw-rating-stars label {
        margin: 0 2px;
    }
}

/* ========================================================= */
/* === NEUE STILE FÜR TRUST-BADGE ========================== */
/* ========================================================= */
.fw-trust-badge-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 250px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease-in-out;
}

.fw-trust-badge-container:hover {
    transform: translateY(-2px);
}

.fw-badge-rating-display {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.fw-badge-value {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.fw-badge-stars {
    font-size: 18px;
    color: #FFD700;
    letter-spacing: 2px;
}

.fw-badge-info-display {
    font-size: 14px;
    color: #7f8c8d;
    text-align: center;
}

.fw-badge-count {
    font-weight: 500;
}

.fw-trust-badge-container a {
    text-decoration: none;
    color: inherit;
}

/* ========================================================= */
/* === KORREKTUREN FÜR FILTER UND GRID ===================== */
/* ========================================================= */

.firmen-filter-row {
    max-width: 1400px;
    margin: 0 auto 25px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
    background-color: #ffffff;
    padding: 18px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
}


.firmen-filter-item {
    flex-grow: 1;
    min-width: 150px;
}

.firmen-filter-item select,
.firmen-filter-item input[type="text"] {
    width: 100%;
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
    padding: 10px;
    border-radius: 6px;
    box-sizing: border-box;
}

.firmen-filter-buttons {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.firmen-filter-buttons button {
    flex-grow: 1;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.firmen-filter-buttons button:hover {
    background-color: #388E3C;
}

/* ========================================================= */
/* === KORRIGIERTES WIDGET-DESIGN (SIDEBAR) =================== */
/* ========================================================= */
.fw-widget-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 15px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.fw-widget-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.fw-widget-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    width: 100%;
}

.fw-widget-logo-wrapper {
    width: 80px;
    height: 80px;
    margin-bottom: 0;
    margin-right: 0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    flex-shrink: 0;
}

.fw-widget-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.fw-widget-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.fw-widget-title-link {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
    text-decoration: none;
}

.fw-widget-title-link:hover {
    color: #4CAF50;
    text-decoration: underline;
}

.fw-widget-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.fw-widget-cta-wrapper {
    width: 100%;
    text-align: center;
}

.fw-widget-cta-button {
    background-color: #4CAF50;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-block;
    width: 100%;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.fw-widget-cta-button:hover {
    background-color: #388E3C;
    transform: translateY(-2px);
}

@media (min-width: 768px) {
    .fw-widget-item {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }

    .fw-widget-content-wrapper {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 15px;
    }

    .fw-widget-logo-wrapper {
        margin-right: 15px;
        margin-bottom: 0;
    }

    .fw-widget-content {
        align-items: flex-start;
        text-align: left;
    }

    .fw-widget-tags {
        justify-content: flex-start;
    }

    .fw-widget-cta-wrapper {
        width: auto;
        margin-left: auto;
    }

    .fw-widget-cta-button {
        width: auto;
    }
}

/* ========================================================= */
/* === KORREKTUREN FÜR FILTER UND GRID (END) ================ */
/* ========================================================= */

/* ========================================================= */
/* === KORRIGIERTES FÜR MOBILE FILTER & STARS (spezifisch) === */
/* ========================================================= */
@media (max-width: 767px) {
    .fw-main-wrapper {
        padding: 0;
    }

    .fw-content-container {
        flex-direction: column;
        gap: 20px;
        padding: 0 20px;
        margin-top: 20px;
    }

    .fw-main-content {
        max-width: none;
        margin: 0;
    }

    .fw-sidebar {
        padding: 30px;
        max-width: none;
        margin: 0;
    }

    .firmen-filter-row {
        padding: 12px;
        gap: 10px;
        margin-bottom: 15px;
        border-radius: 8px;
    }

    .firmen-filter-item {
        width: 100%;
    }

    .firmen-filter-item select,
    .firmen-filter-item input[type="text"] {
        min-width: 100%;
        padding: 10px;
        border-radius: 6px;
        border: 1px solid #e0e0e0;
        background-color: #ffffff;
    }

    .firmen-filter-buttons {
        gap: 8px;
        display: flex;
        flex-direction: row;
    }

    .firmen-filter-buttons button {
        flex-grow: 1;
    }

    /* === Mobile-spezifische Anpassungen für Bewertungssterne === */
    .fw-rating-stars {
        justify-content: flex-start;
        gap: 0;
        font-size: 1.5rem;
    }

    .fw-rating-stars label {
        margin: 0 2px;
        font-size: 1.5rem;
    }
}

/* ========================================================= */
/* === NEUE STILE FÜR TRUST-BADGE (END) ===================== */
/* ========================================================= */

/* ========================================================= */
/* === SONSTIGE KLEINERE KORREKTUREN & SAFETY OVERRIDES ===== */
/* ========================================================= */
button,
.fw-firmen-card-button,
.fw-grid-button,
.fw-widget-cta-button,
.fw-form button[type="submit"],
.firmen-filter-buttons button {
    border-radius: 6px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.text-muted { color: #7a94ad; }
.small { font-size: 0.9rem; }
.center { text-align: center; }

/* ========================================================= */
/* === NEUE STILE FÜR BILD-VORSCHAU AUF BEARBEITUNGSSEITE == */
/* ========================================================= */
.fw-current-image-preview {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.fw-current-image-preview img {
    max-width: 150px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.fw-current-image-preview label {
    display: inline-flex;
    align-items: center;
    font-weight: normal;
    font-size: 0.9em;
    color: #666;
    cursor: pointer;
}

.fw-current-image-preview input[type="checkbox"] {
    margin-right: 5px;
    width: auto;
}

/* ========================================================= */
/* === ENDE STYLESHEET ===================================== */
/* ========================================================= */
