/* Globales CSS fuer tafel_kunden */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #fafafa;
  color: #333;
  overflow: hidden;
}

header {
  background-color: #FF8800;
  color: white;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 100;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo h1 {
  font-size: 14pt;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.header-info {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 10.5pt;
  font-weight: 500;
}

.info-item {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

main {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.column-left {
  width: 250px;
  background-color: #ffffff;
  border-right: 1px solid #FF8800;
  display: flex;
  flex-direction: column;
  padding: 15px 0;
}

.menu-title {
  font-size: 9pt;
  text-transform: uppercase;
  color: #777;
  padding: 0 18px 10px 18px;
  font-weight: bold;
  letter-spacing: 1px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  color: #444;
  text-decoration: none;
  font-size: 11pt;
  font-weight: 500;
  border-left: 4px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.menu-item:hover {
  background-color: #FFF3E0;
  color: #E65100;
  border-left-color: #FF8800;
}

.menu-item.active {
  background-color: #FFE0B2;
  color: #E65100;
  border-left-color: #FF8800;
  font-weight: bold;
}

.column-center {
  flex: 1;
  background-color: #fdfdfd;
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.search-row {
  display: flex;
  gap: 15px;
  width: 100%;
  margin-bottom: 24px;
}

.search-box {
  flex: 1;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-box label {
  font-size: 9pt;
  font-weight: bold;
  color: #E65100;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-input-group {
  display: flex;
  gap: 8px;
}

.search-input-group input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 11pt;
  outline: none;
  transition: border-color 0.2s;
}

.search-input-group input:focus {
  border-color: #FF8800;
}

.search-input-group button {
  background-color: #FF8800;
  color: white;
  border: none;
  padding: 0 16px;
  border-radius: 4px;
  font-size: 10pt;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-input-group button:hover {
  background-color: #E65100;
}

.results-card {
  background: white;
  border: 1px solid #FFE0B2;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 20px;
}

.results-card h2 {
  font-size: 12pt;
  color: #E65100;
  margin-bottom: 12px;
  border-bottom: 2px solid #FFF3E0;
  padding-bottom: 6px;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.results-table th {
  padding: 10px;
  border-bottom: 2px solid #eee;
  color: #777;
  font-size: 9pt;
  text-transform: uppercase;
}

.results-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 10.5pt;
}

.results-table tr {
  cursor: pointer;
  transition: background-color 0.15s;
}

.results-table tr:hover {
  background-color: #FFF8F0;
}

.customer-card {
  background: white;
  border: 1px solid #FF8800;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.customer-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #FFF3E0;
  padding-bottom: 15px;
}

.customer-name-address h2 {
  font-size: 16pt;
  color: #333;
}

.customer-name-address p {
  font-size: 10pt;
  color: #666;
  margin-top: 4px;
}

.customer-badge {
  background-color: #E65100;
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 9pt;
  font-weight: bold;
}

.finance-row {
  display: flex;
  gap: 15px;
}

.finance-box {
  flex: 1;
  border-radius: 6px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.finance-box.saldo-green {
  background-color: #E8F5E9;
  border: 1px solid #C8E6C9;
}

.finance-box.saldo-red {
  background-color: #FFEBEE;
  border: 1px solid #FFCDD2;
}

.finance-box.preis-orange {
  background-color: #FFF3E0;
  border: 1px solid #FFE0B2;
}

.finance-label {
  font-size: 8.5pt;
  text-transform: uppercase;
  font-weight: bold;
  color: #555;
}

.finance-value {
  font-size: 18pt;
  font-weight: 800;
}

.saldo-green .finance-value { color: #2E7D32; }
.saldo-red .finance-value { color: #C62828; }
.preis-orange .finance-value { color: #E65100; }

.booking-section {
  background-color: #fafafa;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.booking-inputs {
  display: flex;
  gap: 15px;
  align-items: center;
}

.booking-input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.booking-input-group label {
  font-size: 8.5pt;
  font-weight: bold;
  color: #555;
}

.booking-input-group input {
  padding: 8px 12px;
  font-size: 12pt;
  font-weight: bold;
  width: 100px;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-align: right;
  color: #E65100;
}

.btn-book {
  background-color: #4CAF50;
  color: white;
  border: none;
  font-size: 13pt;
  font-weight: bold;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-book:hover {
  background-color: #388E3C;
}

.family-list-title {
  font-size: 11pt;
  font-weight: bold;
  color: #444;
  margin-top: 10px;
}

.family-member-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid #f9f9f9;
  font-size: 10pt;
}

.family-member-row:nth-child(even) {
  background-color: #fafafa;
}

.alert-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.alert-box {
  background: white;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  max-width: 450px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.alert-box.success {
  border-top: 10px solid #4CAF50;
}

.alert-box h3 {
  font-size: 16pt;
  color: #333;
}

.alert-box p {
  color: #666;
  font-size: 11pt;
}

.countdown-bar {
  width: 100%;
  height: 6px;
  background-color: #eee;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 5px;
}

.countdown-progress {
  height: 100%;
  background-color: #4CAF50;
  width: 100%;
}

.column-right {
  width: 350px;
  background-color: #ffffff;
  border-left: 1px solid #FF8800;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.right-header {
  padding: 15px 18px;
  background-color: #FFF8F0;
  border-bottom: 1px solid #FFE0B2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.right-header h2 {
  font-size: 11.5pt;
  font-weight: bold;
  color: #E65100;
}

.right-header .count-badge {
  background-color: #FF8800;
  color: white;
  font-size: 8.5pt;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 10px;
}

.booking-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.booking-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 18px;
  border-bottom: 1px solid #f3f3f3;
  font-size: 10pt;
  transition: background-color 0.15s ease;
}

.booking-row:hover {
  background-color: #fafafa;
}

.booking-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.booking-id-name {
  font-weight: 600;
  color: #333;
}

.booking-time {
  font-size: 8.5pt;
  color: #888;
}

.booking-price {
  font-weight: bold;
  color: #E65100;
  font-size: 11pt;
  background-color: #FFF3E0;
  padding: 4px 8px;
  border-radius: 4px;
}

.placeholder-text {
  color: #888;
  font-size: 11pt;
  margin-top: 40px;
  border: 2px dashed #eee;
  padding: 30px;
  border-radius: 6px;
  background-color: #fafafa;
  text-align: center;
}
