input.inputError {
    background-color: #F08080;
    background-image: none
}

.error {
    position: relative;
    left: 10px;
    font-size: 10.5px;
    font-family: arial, sans-serif;
    font-style: italic;
    color: #FF0000
}

input[type="submit"] {
    cursor: pointer;
}

.bmButton {
    float: left;
    line-height: 24px;
    height: 24px;
    margin: 10px 5px 0 0;
    border-top: 1px solid #E3E7EF;
    border-bottom: 1px solid #E3E7EF;
    border-left: 1px solid #FFF;
    border-right: 1px solid #FFF;
    padding-left: 15px;
    padding-right: 15px;
    background-color: #F0F0F0;
}

.bmButton:hover {
    background-color: #FFF4C3;
}

.verstorbenensuche-list-barrier-free,
.verstorbenensuche-detail {
    overflow: auto;
}

.verstorbenensuche-list-barrier-free > div:first-of-type {
    border-top: 1px solid #cccccc;
}

.verstorbenensuche-list-barrier-free > div {
    float: left;
    clear: both;
    border-bottom: 1px solid #cccccc;
    padding: 20px;
}

.verstorbenensuche-detail > div {
    float: left;
    clear: both;
    border-top: 1px solid #cccccc;
    border-bottom: 1px solid #cccccc;
    padding: 20px;
}

.verstorbenensuche-list-barrier-free u,
.verstorbenensuche-detail u {
    text-decoration: underline;
}

.verstorbenensuche-detail > div > div {
    margin-bottom: 10px;
}

.no-matches-error {
    color: red;
}

.open-details {
    margin-top: 10px;
}

.search-criteria {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.active-filters {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding-bottom: 4px;
}

.filter-tag {
    background: #007bff;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-tag i {
    cursor: pointer;
    font-size: 0.8em;
    padding: 2px;
}

.filter-tag i:hover {
    opacity: 0.8;
}

.clear-all {
    color: #dc3545;
    cursor: pointer;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.clear-all:hover {
    opacity: 0.8;
}

.mobile-body {
    display: none;
}

/* Media Query für Mobile Geräte */
.mobile {
    .ui-datatable thead th {
        display: none !important;
    }

    .ui-datatable tbody td, .ui-datatable tfoot td, .ui-datatable tfoot th {
        border: none !important;
    }

    .content-header {
        padding: 0 !important;
    }
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.card {
    background: white;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-primary.card-outline {
    border-top: 3px solid #007bff;
}

.search-header {
    background: white;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
    border-top: 3px solid #007bff;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.search-field {
    flex: 1;
    min-width: 200px;
}

.search-field input, .search-field select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-button:hover {
    background: #0056b3;
}

.memorial-container {
    margin-top: 20px;
}

.memorial-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-top: 3px solid #007bff;
}

.cross-icon {
    width: 40px;
    height: 40px;
    background: #007bff;
    border-radius: 50%;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 26px;
    flex-shrink: 0;
}

.person-info {
    flex: 1;
    padding: 10px 0;
}

.person-name {
    color: #333;
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.dates {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.location {
    color: #666;
    font-size: 0.9em;
    font-style: italic;
    margin-bottom: 5px;
}

.burial-date {
    color: #666;
    font-size: 0.9em;
    margin-top: 5px;
    font-weight: bold;
}


@media (max-width: 480px) {
    .memorial-item {
        display: flex;
        align-items: center;
        min-height: 100px;
        text-align: left;
    }

    .cross-icon {
        margin-right: 15px;
        flex-shrink: 0;
        align-self: center;
    }

    .search-row {
        flex-direction: column;
    }

    .search-field {
        width: 100%;
    }

    .search-button {
        width: 100%;
        margin-top: 10px;
    }

    .search-toggle-button {
        width: 100%;
        justify-content: center;
    }


    .mobile-menu-button,
    .mobile-search-button {
        background: none;
        border: none;
        color: white;
        font-size: 1.2em;
        padding: 8px;
        cursor: pointer;
    }

    .mobile-title {
        font-size: 1.2em;
        margin: 0;
    }

    .mobile-search-container {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        padding: 15px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        z-index: 999;
        transition: transform 0.3s ease;
    }

    .mobile-search-container.collapsed {
        transform: translateY(-100%);
    }

    .mobile-search-field {
        margin-bottom: 10px;
    }

    .mobile-search-field input,
    .mobile-search-field select {
        width: 100%;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 16px;
    }

    .mobile-memorial-container {
        margin-top: 70px;
        padding: 10px;
    }

    @media (max-width: 768px) {
        .desktop-view {
            display: none;
        }

        .mobile-view {
            display: block;
        }

        .search-criteria {
            margin-top: 10px;
            padding: 10px;
            background: #f8f9fa;
            border-radius: 4px;
        }

        .active-filters {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            align-items: center;
        }

        .filter-tag {
            background: #007bff;
            color: white;
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 0.9em;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .filter-tag i {
            cursor: pointer;
            font-size: 0.8em;
            padding: 2px;
        }

        .filter-tag i:hover {
            opacity: 0.8;
        }

        .clear-all {
            color: #dc3545;
            cursor: pointer;
            font-size: 0.9em;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .clear-all:hover {
            opacity: 0.8;
        }
    }
}
