/* CSS für die Kacheln */
body {
  font-family: "IBM Plex Sans", sans-serif;
}

.card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card-header span{
    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;
}

.card-body span {
    display: block;
    margin-bottom: 0.5rem;
}
.card-header-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
    font-family: "IBM Plex Sans", sans-serif;
}

.card-header-link .card-header {
    background-color: var(--hermes-dunkelblau);
    padding: 0.8rem;
    text-align: center;
    min-height: 200px;
    font-family: "IBM Plex Sans", sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;  /* vertikale Zentrierung */
    align-items: center;      /* horizontale Zentrierung */
}

.card-header-link .card-header .title {
    margin: 0;
    margin-bottom: 1.0rem;
    color: white;
    font-family: "IBM Plex Sans", sans-serif;
}

.card-header-link .card-header span {
    color: white;
    font-family: "IBM Plex Sans", sans-serif;
}

.listing-keywords .tag {
    display: inline-block;
    background-color: #eeebe6;
    color: #423d4d;
    padding:.25em .75em;
    margin:0.15em;
    font-size:.65em;
    text-transform:uppercase;
    border:solid 0px;
    border-color: white;
    border-radius:.25rem;
}

/* Tadirah Tags auf den Kacheln */
.listing-keywords .tag_tadirah {
    display: inline-block;
    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;
}

/* filter tags */
.tag, .tag_tadirah {
    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;
}

/* 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; /* 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;
}