

/****** Login********/

body.login {
    background-image: url("/img/background_tennis.jpg");
    background-repeat: no-repeat;
    background-size: cover;
}


/********INDEX*********/
.startseite_main{
    display:flex;
    flex: 1;
}

body.startseite, body.buchen {
    background-image: url("/img/background_tennis.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    font-family: 'Open Sans', sans-serif;
    color: #555555;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* volle Höhe */
    margin: 0;
}

body.halle {
    background-image: url("/img/background_tennishalle.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0px 83px;
}

h2{
    color: #ffffff;
    font-size: xxx-large;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1.9);
}

/* Einheitliche Button-Größe */
.navbar {
    width: 100%;
    height: 90px;
    background-color: rgba(0, 0, 0, 0.6) !important;
}

/* Einheitliches Button-Styling für alle Menüpunkte inkl. Logout */
.nav-button {
    background-color: #28a745;
    color: white !important;
    padding: 0.5rem 1.5rem;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    border-radius: 0.5rem;
    border: 1px solid lightgrey; /* <-- weißer Rand */
    text-align: center;
    transition: background-color 0.3s ease;
    font-weight: 600;
    white-space: nowrap;
}

/* Hover-Effekt */
.nav-button:hover {
    background-color: #218838;
    color: white !important;
    text-decoration: none;
}

.footer {
    background-color: rgba(0, 0, 0, 0.6);
    width: 100%;
    text-align: center;
    position: relative;
    bottom: 0;
    z-index: 10;
}

/* Links im Footer wie Buttons aussehen lassen */
.footer-link {
    background-color: #28a745;
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid lightgrey; /* <-- weißer Rand */
    text-align: center;
    transition: background-color 0.3s ease;
    font-weight: 600;
    min-width: 150px;           /* sorgt für gleiche Breite */
    display: inline-block;
    width: 150px;               /* erzwingt exakte Breite */
}

.footer-link:hover {
    background-color: #218838;
    color: white !important;
    text-decoration: none;
}

.booking-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr); /* Alle Spalten gleich breit */
    gap: 5px;
    align-items: center;
}

.grid-header {
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px; /* gleiche Höhe wie .grid-slot */
    padding: 10px;
    background-color: #343a40;
    color: white;
    border-radius: 6px;
    border: 2px solid grey; /* <-- weißer Rand */
}

.grid-time {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px; /* gleiche Höhe wie .grid-slot */
    background-color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    border: 2px solid grey; /* <-- weißer Rand */
    border-radius: 6px;
}


.grid-slot {
    width: 100%;
    padding: 10px 0;
    background-color: #28a745;
    height: 50px; /* gleiche Höhe wie .grid-slot */
    color: white;
    border: 1px solid lightgrey; /* <-- weißer Rand */
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}


.grid-slot:hover {
    background-color: #218838;
}


.grid-slot:hover {
    background-color: #218838;
}

.card-title{
    color: #000;
}

.date-nav {
    width: 48px;
    height: 48px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.date-nav:hover {
    background-color: rgba(255, 255, 255, 0.80); /* heller Hover */
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.card-body div {
    font-size: 0.9rem;
    line-height: 1.4;
}


/* Orange Button für Admin-Link */
.admin-button {
    background-color: #fd7e14; /* Bootstrap Orange */
    color: white !important;
    border-radius: 0.5rem;
    padding: 8px 16px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.admin-button:hover {
    background-color: #e96a04;
    color: white !important;
}

.logout-button {
    background-color: #dc3545; /* Bootstrap Rot */
    color: white !important;
    border-radius: 0.5rem;
    padding: 8px 16px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.logout-button:hover {
    background-color: #bb2d3b;
    color: white; !important;
}

.booking-grid {
    display: grid;
    gap: 1px;
    margin-bottom: 2rem;
}

.desktop-view {
    grid-template-columns: 100px repeat(7, 1fr);
}

.mobile-view-4 {
    display: none;
    grid-template-columns: repeat(4, 1fr);
}

.mobile-view-3 {
    display: none;
    grid-template-columns: repeat(3, 1fr);
}

.grid-header, .grid-time {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 6px;
    border: 2px solid grey;
}

.grid-header {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    text-transform: uppercase;
}

.grid-slot {
    min-height: 60px;
    padding: 10px;
    color: white;
    border-radius: 6px;
    text-align: center;
    font-size: 0.85rem;
    cursor: pointer;
}

.date-nav {
    width: 48px;
    height: 48px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hallen-Admin: Action-Buttons oben */
.hall-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.hall-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    /* Einheitliche Größe */
    height: 45px;
    width: 170px;            /* exakt gleiche Breite */
    border-radius: 0.5rem;

    /* Menü-Button-Feeling */
    border: 1px solid lightgrey;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.hall-legend .legend-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;          /* einheitliche Höhe */
    min-width: 140px;      /* einheitliche Breite */
    padding: 0 18px;
    border-radius: 999px;  /* „Pill“-Form */
    color: #fff;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,.6);
    text-transform: none;
}

/* Farben wie gewünscht */
.legend-free   { background: #28a745; }
.legend-hold   { background: #fd7e14; }
.legend-booked { background: #c23d1e; }

/* Optional: auf sehr kleinen Screens volle Breite untereinander */
@media (max-width: 480px) {
    .hall-legend .legend-chip {
        min-width: 110px;
        padding: 0 14px;
    }
}


/* Mobile: Buttons untereinander, volle Breite */
@media (max-width: 576px) {
    .hall-actions {
        width: 100%;
    }
    .hall-action-btn {
        width: 100%;
    }
}


@media (max-width: 767px) {
    .desktop-view {
        display: none;
    }
    .mobile-view-4, .mobile-view-3 {
        display: grid;
    }
}
