/* Grundlegendes Layout und Hintergrund für das gesamte Widget */
.wp-bookyt-calendar {
    box-sizing: border-box;
    max-width:700px;
    margin:auto;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    padding: 15px;
    border-radius: 5px;
}

/* Flexibles Layout für die beiden Zeilen (Filter und Kalender) */
.wp-bookyt-calendar .wp-block-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Einspaltiges Layout je nach Platzangebot */
.wp-bookyt-calendar .wp-block-column {
    flex: 1;
    min-width: 200px;
    box-sizing: border-box;
}

/* Drop-down-Felder (Mietdauer, Station, Gruppe) */
.wp-bookyt-calendar select {
    width: 100%;
    padding: 0.5rem;
    font-size: 0.95rem;
    background-color: #fff;
    border-radius: 4px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease-in-out;
}



/* Kalender-Container (das Element mit id='bookytkalender') */
.wp-bookyt-calendar #bookytkalender {
    box-sizing: border-box;
    margin:auto;
}

/* --- jQuery UI Datepicker Overrides --- */
.wp-bookyt-calendar .ui-datepicker {
    background-color: #fff;       /* Weißer Hintergrund */
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.5rem;
    text-align: center;
    box-sizing: border-box;
}

/* Kopfbereich: Titel + Pfeile */
.wp-bookyt-calendar .ui-datepicker-header {
    background-color: #fff;       /* Kein farbiger Balken oben */
    border: none;
    color: #000;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-radius: 8px 8px 0 0;
    position: relative;
}

.ui-datepicker .ui-datepicker-title select{
    margin:2px;
}

/* Vor-/Zurückpfeile (links und rechts) */
.wp-bookyt-calendar .ui-datepicker-prev,
.wp-bookyt-calendar .ui-datepicker-next {
    cursor: pointer;
    border: none;
    background: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #0070bb !important;  /* Pfeil-Farbe */
    font-weight: bold;
}

/* Linker Pfeil nach links ausrichten */
.wp-bookyt-calendar .ui-datepicker-prev {
    left: 0.5rem;
}

/* Rechter Pfeil nach rechts ausrichten */
.wp-bookyt-calendar .ui-datepicker-next {
    right: 0.5rem;
}

.wp-bookyt-calendar .ui-widget-header{
    background: unset;
}
    /* Eventuelle Icons (jQuery UI-Klassen) anpassen */
.wp-bookyt-calendar .ui-datepicker-prev .ui-icon,
.wp-bookyt-calendar .ui-datepicker-next .ui-icon {
    background-image: none !important; /* Entfernt Standard-Sprite */
    border: solid #0070bb;
    border-width: 0 2px 2px 0;
    display: inline-block;
}

/* Pfeil-Form generieren (nach links) */
.wp-bookyt-calendar .ui-datepicker-prev .ui-icon {
    transform: rotate(135deg);
    margin-left: 2px;
}

/* Pfeil-Form generieren (nach rechts) */
.wp-bookyt-calendar .ui-datepicker-next .ui-icon {
    transform: rotate(-45deg);
    margin-right: 2px;
}

/* Monat/Jahr Titel */
.wp-bookyt-calendar .ui-datepicker-title {
    color: #000;
    font-weight: 400;
    font-size: 1rem;
}

/* Wochentagsüberschriften (Mo, Di, Mi, ...) */
.wp-bookyt-calendar .ui-datepicker thead tr th {
    color: #000;
    font-weight: bold;
    text-transform: uppercase;
    padding-bottom: 0.5rem;
}

/* Standard-Tage im Kalender */
.wp-bookyt-calendar .ui-state-default {
    color: #0070bb;
    background-color: #fff;
    text-align: center;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    display: inline-block;
    width: 2em;
    line-height: 2em;
    margin: 2px;
}

/* Hover-Effekt auf Tagen */
.wp-bookyt-calendar .ui-state-default:hover {
    background-color: #eaf2fb;
    color: #0070bb;
}

/* Aktiver/ausgewählter Tag */
.wp-bookyt-calendar .ui-state-active {
    background-color: #d9e7f6 !important;
    color: #0070bb !important;
    border-color: transparent !important;
}

/* Ausgegraute (nicht verfügbare) Tage */
.wp-bookyt-calendar .ui-datepicker-unselectable .ui-state-default,
.wp-bookyt-calendar .ui-state-disabled {
    color: #999 !important;
    cursor: default !important;
}
.wp-bookyt-calendar .ui-datepicker table {
    font-size: .8em;
}
.wp-bookyt-calendar .ui-datepicker-calendar {
    border:0;
}


.wp-bookyt-calendar .hide{
    display:none;
}


/* Kacheln */
.wp-bookyt-child-pages-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin:2rem;
}

.wp-bookyt-child-page-tile {
    background-color: #ffffff;
    border: 1px solid #cccccc;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    padding: 15px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.wp-bookyt-child-page-tile .child-page-content {
    margin-bottom: 0;
    text-align: center;
}

.wp-bookyt-child-page-tile h3 {
    text-align:center;
    font-size:20px;
    font-weight: bold;
}
.wp-bookyt-child-page-tile h4 {
    text-align:center;
    font-size:18px;
    font-weight: bold;
    margin-bottom: 0;
}

.wp-bookyt-child-page-tile .meta-description {
    font-size: 0.9em;
    line-height: 1.4;
    text-align: center;
}

.wp-bookyt-child-page-tile .meta-description.line-limit{
    display: -webkit-box; /* Aktiviert den flexiblen Box-Container */
    -webkit-box-orient: vertical; /* Legt die Box-Ausrichtung fest */
    -webkit-line-clamp: 6; /* Maximale Zeilenanzahl */
    overflow: hidden; /* Versteckt den überschüssigen Text */
    text-overflow: ellipsis; /* Optional: Fügt "..." am Ende hinzu */
    text-align: justify;
}

.wp-bookyt-child-page-tile .more-link {
    align-self: flex-end; /* Positioniert den Link am Ende der Kachel */
}

.wp-bookyt-child-page-tile div.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 280px;
    width: 100%;
    border: 0;
    background-color: rgba(0, 0, 0, 0.02);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.1), 0 0 0 rgba(255, 255, 255, 0.4); /* Kombinierter Schatten */
}

.wp-bookyt-child-page-tile div.image-container img.referenzlogo{
    max-width: 100%; /* Bild passt in den Container */
    max-height: 100%; /* Bild wird nicht größer als der Container */
}

.wp-bookyt-child-page-tile .buchen-button, .wp-bookyt-item .buchen-button{
    margin-top:20px;
    text-align: center;
}

.wp-bookyt-child-page-tile .buchen-button a, .wp-bookyt-item .buchen-button a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0070bb; /* Dezentes Blau passend zum Stil */
    color: #ffffff; /* Weißer Text */
    text-decoration: none; /* Entfernt Unterstreichung */
    border-radius: 5px; /* Abgerundete Ecken */
    font-size: 16px; /* Lesbare Schriftgröße */
    font-weight: 500; /* Mittlere Schriftstärke */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Leichter Schatten */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Smooth Hover-Effekt */
}

.wp-bookyt-child-page-tile .buchen-button a:hover, .wp-bookyt-item .buchen-button a:hover{
    background-color: #0572bb; /* Dunkleres Blau beim Hover */
    transform: translateY(-2px); /* Leichtes Anheben beim Hover */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15); /* Intensiverer Schatten beim Hover */
}

a.category-link {
    /* Auf inherite Farben setzen oder eine bestimmte Farbe vergeben */
    color: inherit;
    text-decoration: none;  /* Keine Unterstreichung */
    cursor: pointer;        /* Hand-Cursor beibehalten */
}

/* Alle zustände ebenfalls neutralisieren (Hover, Active, Focus usw.) */
a.category-link:hover,
a.category-link:active,
a.category-link:focus,
a.category-link:visited {
    color: inherit;
    text-decoration: none;
    outline: none;          /* Wenn gewünscht: Fokus-Rahmen ausblenden */
    box-shadow: none;       /* Falls ein Fokus-Shadow existiert */
    cursor: pointer;        /* Hand-Cursor bleibt bestehen */
}


/* Ansicht einer Mietartikel Kategorie */

.wp-bookyt-item {
    max-width:1200px;
    margin:auto;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    padding: 15px;
    border-radius: 5px;
}

.wp-bookyt-item.leftright {
    display: flex; /* Aktiviert Flexbox */
    flex-wrap: wrap; /* Erlaubt Umbruch der Spalten für kleinere Bildschirme */
    gap: 10px; /* Abstand zwischen den Spalten */
}

.wp-bookyt-item.leftright .item-left {
    flex: 1; /* Nimmt den restlichen Platz ein (33%) */
    padding: 10px;
}

.wp-bookyt-item.leftright .item-right {
    flex: 2; /* Nimmt 66% der Breite ein */
    padding: 10px;
    display: flex;
    flex-direction: column;
}

/* Responsive Einstellung */
@media (max-width: 768px) { /* Für Tablets und Handys */
    .wp-bookyt-item.leftright {
        flex-direction: column; /* Stapelt die Spalten untereinander */
    }
    .wp-bookyt-item.leftright .item-left, .wp-bookyt-item.leftright .item-right {
        flex: none; /* Deaktiviert Flex-Layout */
        width: 100%; /* Beide Spalten nehmen die gesamte Breite ein */
    }
}

.wp-bookyt-item h2 {
    text-align:center;
    font-size:1.3rem;
    font-weight: bold;
}

.wp-bookyt-item .meta-description {
    line-height: 1.4;
    text-align: justify;
}

.wp-bookyt-item .ausstattung {
    list-style-type: none; /* Entfernt die Bullet Points */
    margin: 0;
    padding: 0;
}

.wp-bookyt-item .ausstattung li {
    display: flex; /* Aktiviert Flexbox */
    align-items: center; /* Vertikal zentriert */
    gap: 10px; /* Abstand zwischen Bild und Text */
    margin-bottom: 10px; /* Abstand zwischen den Listenelementen */
    padding: 5px; /* Optional: Innenabstand */
    border-bottom: 0px solid #e0e0e0; /* Optional: Dezente Linie zwischen Items */
}

.wp-bookyt-item.leftright .buchen-button {
    margin-top: auto;
}

.wp-bookyt-item .ausstattung li img {
    width: 30px; /* Feste Breite für die Bilder */
    height: auto; /* Beibehaltung des Seitenverhältnisses */
}

/* Bilder-Container */
/* Container-Layout: Alle "bild"-Elemente sollen in einer flexiblen Zeile/Zeilen
   nebeneinander angeordnet werden und jeweils die gleiche Höhe bekommen. */
.wp-bookyt-item .bilder-container {
    display: flex;           /* Legt einen flex-Container an */
    flex-wrap: wrap;         /* Elemente umbrechen, wenn kein Platz mehr ist */
    gap: 10px;               /* Abstand zwischen den Kacheln */
    padding: 10px;           /* Innenabstand zum Rand (optional) */
    align-items: stretch;    /* Alle Kacheln in einer Zeile bekommen die gleiche Höhe */
    margin-top:20px;
}

/* Die Kachel selbst */
.wp-bookyt-item .bild {
    flex: 1 1 200px;         /* Kachel wird flexibel, Mindestbreite 200px */
    display: flex;           /* Für zentriertes Ausrichten des Bildes */
    justify-content: center; /* Horizontales Zentrieren */
    align-items: center;     /* Vertikales Zentrieren */
    padding-top:4px;
    padding-bottom:4px;

    border: 0;
    background-color: rgba(0, 0, 0, 0.02);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.1), 0 0 0 rgba(255, 255, 255, 0.4); /* Kombinierter Schatten */
    border-radius: 8px;

}

/* Das Bild selbst */
.wp-bookyt-item .bild img {
    max-width: 100%;  /* Bild passt sich maximal an die Kachelbreite an */
    height: auto;     /* Höhe bleibt im Verhältnis erhalten */
    display: block;   /* Verhindert zusätzliche Abstände bei img im Inline-Kontext */
}