/* CSS für die Kacheln */
.card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.card-header {
    background: #c6e4f9;
    color: var(--hermes-dunkelgrau);
    padding: 0.8rem;
    text-align: center;
    min-height: 200px;
}


.card-header .title a:link{
    background-color: #c6e4f9;
    color: var(--hermes-dunkelblau);
}
.card-header .title a:visited{
    background-color: #c6e4f9;
    color: var(--hermes-dunkelblau);
}

.card-header:hover{
    background-color: var(--hermes-dunkelblau);
    color: white;
}

.card-header:hover .title a{
    background-color: var(--hermes-dunkelblau);
    color: white;
}

.card-body {
    background-color: white;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /*justify-content: space-between;*/
    justify-content: flex-start;
}

.card-body span {
    display: block;
    margin-bottom: 0.5rem;
}


/* Tadirah Tags auf den Kacheln */
.listing-keywords .tag_tadirah {
    display: inline-block;
    /*display: inline-flex;*/
    background-color: #66dadd;
    color: #423d4d;
    padding:.25em .75em;
    margin:0.15em;
    font-size:.65em;
    text-transform:uppercase;
    border:solid 0px;
    border-color: white;
    border-radius:.25rem;
}

.listing-keywords .tag_thema {
    display: inline-block;
    /*display: inline-flex;*/
    align-items: center;
    background-color: var(--hermes-dunkelgrau);
    color: white;
    padding:.25em .75em;
    margin:0.15em;
    font-size:.65em;
    text-transform:uppercase;
    border:solid 0px;
    border-color: white;
    border-radius:.25rem;
}

h4 a {
    text-decoration: none;
    color: var(--hermes-dunkelblau);
}

h2 {
  font-weight: normal;
}

/* filter tags formal */
.tag, .tag_tadirah, .tag_thema {
    display: inline-block;
    color: #423d4d;
    padding: .25em .75em;
    margin: 0.15em;
    font-size: .65em;
    text-transform: uppercase;
    border: solid 0px white;
    border-radius: .25rem;
}

.tag {
    background-color: #eeebe6;
}

.tag_tadirah {
    background-color: #66dadd;
}

.tag_thema {
    background-color: var(--hermes-dunkelgrau);
    color: white;
}

/* Definition der Suchleiste */
#searchInput {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    padding-right: 70px; /* Platz für Icons rechts */
    box-sizing: border-box;
    height: 42px; /* Optional explizit setzen für stabilere Layouts */
}

/* Wrapper um Input + Buttons */
.search-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 1em;
}

/* Gemeinsames Styling für Buttons */
.search-icon {
    position: absolute;
    top: 0;
    bottom: 15px; /* gleiche Höhe wie margin-bottom vom Input */
    height: 42px; /* gleiche Höhe wie Input */
    margin: 0;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    line-height: 42px; /* vertikal zentrieren durch Zeilenhöhe */
    text-align: center;
}

/* Positionieren */
#searchButton {
    right: 40px;
}

#clearButton {
    right: 10px;
}

details.callout {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 0.8em;
    margin-bottom: 1.5em;
    background-color: #f9f9f9;
}

details.callout[open] {
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

details.callout summary {
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 0.5em;
}

/* Die Tags für die logischen Operatoren */
.operator-tags {
    display: flex;
    gap: 0.5em;
    margin-top: 0.5em;
}
.operator-tag {
    display: inline-block;
    cursor: pointer;
    background-color: #c6e4f9;
    color: #343548;
    padding:.25em .75em;
    margin:0.15em;
    font-size:.65em;
    text-transform:uppercase;
    border:solid 0px;
    border-color: white;
    border-radius:.25rem;
}
.operator-tag:hover {
background-color: #161eac;
color: white;
}