.calendar-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.calendar {
  table-layout: fixed;
  width: 100%;
}
.calendar td, .calendar th {
  width: 14.28%; /* 100 / 7 Spalten */
  min-width: unset;
  word-wrap: break-word;
}
.calendar .day-number {
    font-weight: bold;
}
.calendar .clickable {
    background-color: #e9f7ef;
    cursor: pointer;
}
.calendar .clickable:hover {
    background-color: #d4efdf;
}
.calendar .selected {
    border: 2px solid #28a745;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f8f4ef;
    color: #333;
    padding: 1rem;
    background:
    radial-gradient(1200px 600px at 30% -10%, #c3af9be2, #c3af9be2) fixed,
    url("login_bg.png") center/cover no-repeat fixed;
}

h1, h2 {
    color: #7a4c2f;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: top;
}

th {
    background-color: #e6d4c5;
    font-weight: 600;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background-color: #f3ece7;
}

.status-paid {
    color: green;
    font-weight: bold;
}

.status-unpaid {
    color: #c0392b;
    font-weight: bold;
}

.btn {
    display: inline-block;
    padding: 6px 12px;
    background-color: #7a4c2f;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    margin: 3px 0;
}

.btn:hover {
    background-color: #5c3721;
}

.slot-info {
    font-size: 0.9em;
    color: #555;
}

.logout {
    margin-top: 2rem;
    display: inline-block;
}

/* Container auf maximale Breite begrenzen */
.kundenbereich-container, .booking-card, .box, .card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
}

/* Buttons in Spaltenansicht */
.kundenbereich-container .btn-block {
  display: block;
  width: 100%;
  margin-bottom: 0.5rem;
  text-align: center;
}

a {
    color: var(--color-link);
    text-decoration: none;
    transition: color 0.7s ease;
    padding-bottom: 4px;
    position: relative;
}

a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background-color: currentColor;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

a:hover {
    color: var(--color-link-hover);
}

a:hover::after {
    transform: scaleX(1);
}

/* kompakter, einzeiliger Flash-Banner – auf Mobil stackend */
.flash {
  border-radius: .8rem;
}
.flash .btn {
  white-space: nowrap;
}

/* gleiche Button-Höhen im Kopf */
.toolbar .btn,
.flash .btn {
  padding: .45rem .85rem;
  line-height: 1.25;
  font-size: .95rem;
}
.toolbar form { margin: 0; } /* kein Form-Spacing neben Buttons */

#scrollTopBtn {
    position: fixed;
    bottom: 45px;
    right: 30px;
    z-index: 999;
    background-color: #7b5e57;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: none;
    align-items: center;
    justify-content: center;
    display: flex;
    transition: background-color 0.3s;
}

#scrollTopBtn:hover {
    background-color: #5a413b;
}


@media (max-width: 700px) {
table:not(.calendar), thead:not(.calendar thead), tbody:not(.calendar tbody), 
  th:not(.calendar th), td:not(.calendar td), tr:not(.calendar tr) {
    display: block;
  }
  table:not(.calendar) thead tr {
    display: none;
  }
  table:not(.calendar) td {
    position: relative;
    padding-left: 50%;
  }
  table:not(.calendar) td:before {
    position: absolute;
    top: 14px;
    left: 16px;
    width: 45%;
    font-weight: bold;
    white-space: nowrap;
  }

.calendar td {
    font-size: 0.8rem;
    height: 80px;
    padding: 3px;
  }

  .calendar .day-number {
    font-size: 0.9rem;
  }
.calendar th {
    min-width: 120px;
    font-size: 0.95rem;
}
.kundenbereich-container button, .kundenbereich-container .btn {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }
}