/* === Grundlayout === */
body {
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
  background: #f3f5f7;
  color: #222;
}
h2 { color: #007c91; font-size: 1.8em; margin-bottom: 15px; }
h3 { color: #00acc1; font-size: 1.3em; margin: 12px 0; }
p { margin: 6px 0; }
.hidden { display:none; }

/* Karten */
.card {
  background: #fff;
  padding: 16px;
  margin: 10px 0;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.section { margin-top: 20px; }

/* Login */
.login { max-width: 400px; margin: 100px auto; text-align: center; }
.login input {
  width: 100%; padding: 14px; margin: 10px 0;
  border-radius: 8px; border: 1px solid #ccc; font-size: 1.1em;
}
.login button {
  width: 100%; padding: 14px; border: none; border-radius: 8px;
  background: #4caf50; color: #fff; font-size: 1.2em; cursor: pointer;
}
.login button:hover { background: #45a049; }

/* Buttons */
button {
  padding: 8px 14px; border: none; border-radius: 6px;
  cursor: pointer; background: #007c91; color: #fff;
}
button:hover { background: #006070; }
.btn-logout { background: #e74c3c; }
.btn-logout:hover { background: #c0392b; }

/* Kleine Buttons (z. B. Kundenliste) */
.btn-small {
  padding: 4px 8px;
  font-size: 0.8em;
  margin-left: 6px;
  background: #007c91;
  border-radius: 4px;
}
.btn-small:hover { background: #006070; }

/* Links (u.a. WhatsApp) */
a { color: #25D366; text-decoration: none; font-weight: bold; }
a:hover { text-decoration: underline; }

/* Terminfarben */
.termin { margin: 4px 0; padding: 8px; border-radius: 6px; }
.termin.soon  { background: rgba(255,200,0,0.15); }
.termin.later { background: rgba(0,200,255,0.15); }
.termin.past  { background: rgba(200,200,200,0.2); color:#777; }

/* kleine rote Lösch-Icons */
.delete-icon {
  display:inline-block; background:#e74c3c; color:#fff; border-radius:50%;
  width:20px; height:20px; font-size:12px; line-height:20px; text-align:center;
  cursor:pointer; margin-left:6px; user-select:none;
}
.delete-icon:hover { background:#c0392b; }

/* Admin-Layout */
.flex-columns { display:flex; gap:20px; margin-top:20px; align-items:stretch; }
.flex-col {
  background:#fff; border-radius:10px; box-shadow:0 2px 6px rgba(0,0,0,0.1);
  padding:16px; flex:1; display:flex; flex-direction:column;
}
/* Scrollbare linke Spalte in der Adminansicht */
.flex-col.scrollable {
  max-height: 75vh;
  overflow-y: auto;
}

/* Kunden-Tab Layout */
#kundenTab .flex-col:first-child { flex: 0 0 320px; }
#kundenTab .flex-col:last-child { flex: 1; }

/* Kundendaten Grid */
.customer-data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* drei Spalten */
  gap: 12px;
}
.customer-data-grid label {
  font-weight: bold;
  font-size: 0.9em;
  margin-top: 6px;
  display: block;
}
.customer-data-grid input,
.customer-data-grid select {
  width: 100%;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* Responsive für kleinere Screens */
@media (max-width: 1200px) {
  .customer-data-grid {
    grid-template-columns: 1fr 1fr; /* zwei Spalten */
  }
}
@media (max-width: 700px) {
  .customer-data-grid {
    grid-template-columns: 1fr; /* eine Spalte */
  }
}

/* Hinweisfelder */
#editHinweise,
#editProdukteText {
  width: 100%;
  min-height: 30px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.95em;
}
#editBehandlungen {
  width: 100%;
  min-height: 100px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.95em;
}

/* Tabs + Buttons gemeinsam in Reihe */
.tabs { margin-bottom:15px; }
.tabs.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.tabs button {
  padding:10px 16px; border:none; background:#007c91; color:#fff;
  border-radius:6px; cursor:pointer;
}
.tabs button:hover { background:#006070; }
.admin-tab { display:block; }
.admin-tab.hidden { display:none; }

/* Kalender */
.kalender-flex { overflow-x: auto; }
.flex-col #calendar1,
.flex-col #calendar2,
.flex-col #calendar3,
.flex-col #calendar4,
.flex-col #calendar5 {
  height:70vh;
  border: 1px solid #e0e6ea;
  border-radius: 6px;
  background: #fafafa;
  min-width: 260px;
}
.fc { font-size: 0.75em; }
.fc .fc-col-header-cell { background:#f9f9f9; }
.fc .fc-daygrid-day-number { font-size:0.8em; padding:2px; }

/* Mini-Kalender */
#miniCalendar {
  max-width:100%;
  background:#fafafa;
  border-radius:6px;
  border: 1px solid #e0e6ea;
  padding:10px;
  min-height: 300px;
  box-shadow:0 1px 3px rgba(0,0,0,0.05);
}
#miniCalendar .fc-toolbar-title { font-size: 1.1em; font-weight: bold; }
#miniCalendar .fc-button {
  background: #007c91; color: #fff; border: none;
  padding: 2px 6px; font-size: 0.8em; border-radius: 4px; cursor: pointer;
}
#miniCalendar .fc-button:hover { background: #006070; }

/* Textarea im Popup */
textarea {
  font-family: inherit; font-size:1em; padding:8px;
  border-radius:6px; border:1px solid #ccc; margin:8px 0; resize:vertical;
}

/* Popup Overlay */
body::after {
  content:""; display:none; position:fixed; inset:0;
  background:rgba(0,0,0,0.5); z-index:9998;
}
body.popup-open::after { display:block; }

/* Popup Box */
.popup {
  position:fixed; top:25%; left:50%; transform:translate(-50%,-25%);
  z-index:9999; max-width:420px; width:90%;
}

:root{
  --h-list: 36vh;   /* Kundenliste links */
  --h-soon: 22vh;   /* 24h-Termine links */
  --h-past: 22vh;   /* Vergangene Termine links */
  --h-all:  40vh;   /* Alle kommenden Termine rechts */
}

/* Scroll-Container in Kunden-Ansicht (responsive, VH-basiert) */
#customerList     { max-height: var(--h-list); overflow: auto; }
#customerView #appointmentsSoon { max-height: 200px; overflow: auto; }
#customerView #appointmentsPast { max-height: 200px; overflow: auto; }
#customerView #appointmentsAll { max-height: 260px; overflow: auto; }

@media (max-width: 1200px){
  :root{
    --h-list: 34vh;
    --h-soon: 20vh;
    --h-past: 20vh;
    --h-all:  36vh;
  }
}
@media (max-width: 900px){
  :root{
    --h-list: 32vh;
    --h-soon: 18vh;
    --h-past: 18vh;
    --h-all:  34vh;
  }
}

/* Drei-Spalten-Layout für Produkte / Kommende / Vergangene (rechts) */
.triple-grid{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 1200px){
  .triple-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px){
  .triple-grid{ grid-template-columns: 1fr; }
}
/* Karten im Triple-Grid etwas kompakter */
.triple-grid .card{ margin: 0; }

/* Mobile */
@media (max-width: 900px) {
  body { background:#1c2e1c; color:#fff; }
  .card { background:rgba(0,0,0,0.2); color:#fff; box-shadow:none; }
  .flex-columns { flex-direction:column; }
  h2 { color:#fff; } h3 { color:#b8e6b8; }
  button { width:100%; margin-top:10px; }
  #calendar1,#calendar2,#calendar3,#calendar4,#calendar5,
  #miniCalendar { background:rgba(0,0,0,0.2); }
}

/* Events: Ruhezeiten grau markieren */
.fc-event.break-time {
  background-color: #999 !important;
  border: none !important;
  color: #fff !important;
}

/* Buttons in einer Reihe (generisch) */
.button-row {
  display: flex;
  gap: 10px;
  margin: 10px 0;
  flex-wrap: wrap;
}

/* Scroll-Container in Kunden-Ansicht */
#customerList { max-height: 800px; overflow: auto; }
#customerView #appointmentsSoon { max-height: 200px; overflow: auto; }
#customerView #appointmentsPast { max-height: 200px; overflow: auto; }
#customerView #appointmentsAll { max-height: 260px; overflow: auto; }

/* === Fix: Inputs ragen nicht mehr aus dem Login-Container === */
*, *::before, *::after { box-sizing: border-box; }

.login.card { 
  width: min(92vw, 420px);
  margin: 80px auto;
}

.login input,
.login button {
  width: 100%;
  max-width: 100%;
  display: block;
  box-sizing: border-box;
}

.login input {
  background: #fff;
  border: 1px solid #dbe3e8;
  border-radius: 10px;
}


.login input:focus {
  outline: none;
  border-color: #00acc1;
  box-shadow: 0 0 0 3px rgba(0,172,193,0.15);
}

.login button {
  border-radius: 10px;
  font-weight: 600;
}

/* Überschriften über den 5 Kalender-Spalten */
.calendar-name{
  margin: 0 0 8px 0;
  padding: 4px 6px;
  text-align: center;
  font-weight: 700;
  color: #007c91;
  background: #e9f6f8;
  border: 1px solid #d2ecef;
  border-radius: 6px;
}

/* FullCalendar Titel kleiner machen */
.fc-toolbar-title {
  font-size: 0.5em;
  font-weight: 600;
}
.fc-toolbar-title {
  font-size: 0.5em;
  font-weight: normal;
}

/* ===== Desktop-Optimierung für Kalender-Spalten ===== */
@media (min-width: 901px) {
  .kalender-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  .calendar-col {
    flex: 1 1 260px;
    min-width: 260px;
  }
}

/* Scrollbare Listen im Adminbereich */
.scroll-box {
  max-height: 250px;
  overflow-y: auto;
}

/* Farben für die Mitarbeiter */
.fc-event.MA1 {
  background-color: peru !important;
  border-color: peru !important;
  color: #000 !important;
}
.fc-event.Kristina {
  background-color: blue !important;
  border-color: blue !important;
  color: #fff !important;
}
.fc-event.Sabine {
  background-color: green !important;
  border-color: green !important;
  color: #fff !important;
}
.fc-event.Tina {
  background-color: lightcoral !important;
  border-color: lightcoral !important;
  color: #000 !important;
}
.fc-event.Claudia {
  background-color: orange !important;
  border-color: orange !important;
  color: #000 !important;
}
/* Grid für Hinweise + Produkte nebeneinander */
.hinweise-produkte-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;  /* zwei gleich breite Spalten */
  gap: 16px;
  margin-bottom: 16px;
}
.hinweise-produkte-grid > div {
  display: flex;
  flex-direction: column;
}
.hinweise-produkte-grid textarea {
  min-height: 60px;
}

/* Behandlung darunter wieder volle Breite */
.behandlung-box {
  margin-top: 16px;
}
.behandlung-box textarea {
  min-height: 100px;
}

/* Termintext größer machen (überschreibt FullCalendar) */
.fc-event .fc-event-title,
.fc-event .fc-event-time,
.fc-event .fc-event-main {
  font-size: 1.1em !important;
  line-height: 1.2em !important;
}
.fc-event .fc-event-title {
  font-size: 1.1em !important;
  font-weight: 400;
}



/* Heading row for title + inline input/button */
.heading-row{display:flex;align-items:center;gap:8px;margin:8px 0 6px;}
.heading-row h3{margin:0;flex:0 0 auto;}
.heading-row input { flex:0 0 40%; max-width:180px; padding:6px; border:1px solid #ccc; border-radius:6px; }
.heading-row button{flex:0 0 auto;}


/* === Rechte Notizspalte neben den Kalendern === */
.notes-col{ flex:0 0 240px; }
.notes-area{
  width:100%;
  height:70vh;
  border:1px solid #e0e6ea;
  border-radius:6px;
  padding:10px;
  background:#fafafa;
  box-sizing:border-box;
  font-family: inherit;
  font-size: 0.95em;
  resize: vertical;
}
@media (max-width: 1100px){
  .notes-col{ flex:0 0 200px; }
}
/* === Admin: Termin-Tab Spalten länger === */
#adminView #termineTab #appointmentsSoon,
#adminView #termineTab #appointmentsPast,
#adminView #termineTab #appointmentsAll {
  height: 1000px;      /* Höhe der Spalten im Termin-Tab */
  max-height: none;   /* Deckelung aufheben */
  overflow-y: auto;
}
/* Uhrzeit im Kalender dezenter anzeigen */
.fc-event .fc-event-time {
  font-size: 0.9em !important;
  color: #fff !important;
  font-weight: normal !important;
  opacity: 1;
}
.customer-popup {
  max-width: 600px;  /* größer */
}

.customer-popup h2 {
  color: #00acc1;
  margin-bottom: 15px;
}

.popup-grid {
  display: grid;
  grid-template-columns: 1fr 2fr; /* Label links, Feld rechts */
  gap: 10px 15px;
  margin-bottom: 15px;
}

.popup-grid label {
  font-weight: bold;
  align-self: center;
}

.popup-grid input,
.popup-grid select {
  width: 100%;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.customer-popup textarea {
  width: 100%;
  min-height: 70px;
  margin: 10px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
  padding: 6px;
}
/* === Mobile/Tablet Optimierung für Popups === */
@media (max-width: 900px) {
  .popup {
    top: 5% !important;
    left: 50% !important;
    transform: translate(-50%, 0) !important;
    width: 95% !important;
    max-width: 95% !important;
    height: auto !important;
    max-height: 90vh;
    overflow-y: auto;
  }
}
/* === Kundenübersicht schöner machen === */
#customerView h2 {
  color: #007c91;
  margin-bottom: 10px;
}

#customerView .section {
  margin-top: 25px;
}

#customerView .section h3 {
  margin-bottom: 10px;
  font-size: 1.2em;
  color: #00acc1;
}

/* Kommende Termine */
.customer-appointments {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.customer-appointments .appt-card {
  background: #e9f6f8;
  border: 1px solid #d2ecef;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.95em;
}

/* Produkte Liste */
.customer-products {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
}

.customer-products li {
  background: #fafafa;
  border: 1px solid #ddd;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 0.95em;
}

/* Eingabe Neues Produkt */
.customer-product-input {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.customer-product-input input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.customer-product-input button {
  padding: 8px 14px;
  background: #007c91;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.customer-product-input button:hover {
  background: #006070;
}
/* === Fix: Sichtbarkeit auf Mobile/Tablet (Dark Mode) === */
@media (max-width: 900px) {
  .customer-appointments .appt-card {
    background: rgba(0, 172, 193, 0.2); /* leicht türkis */
    color: #fff;  /* weiße Schrift */
    border-color: #00acc1;
  }

  .customer-products li {
    background: rgba(255, 255, 255, 0.1); /* leichtes Grau */
    color: #fff;
    border-color: #aaa;
  }

  .customer-product-input input {
    background: #fff;
    color: #000;
  }

  .customer-product-input button {
    background: #00acc1;
    color: #fff;
  }
}




/* === Admin: Kundenliste links scrollbar machen === */
#adminView #customerList {
  max-height: 70vh;
  overflow-y: auto;
}
/* Scrollbare Spalten in der Termine-Ansicht */
#adminView #termineTab .flex-col {
  max-height: 75vh;   /* Höhe begrenzen (75% der Viewport-Höhe) */
  overflow-y: auto;   /* vertikales Scrollen */
}


/* === Admin: Detailansicht scrollbare Spalten (Produkte / Kommende Termine / Vergangene Termine) === */
#customerDetail .customer-products,
#customerDetail .customer-appointments,
#customerDetail .section .scroll-box {
  max-height: 220px;   /* entspricht ca. 4 Einträgen */
  overflow-y: auto;
}

/* === Fix: Produkte (Liste), Kommende Termine, Vergangene Termine auf 2cm fixieren + Scrollbar === */
#customerDetail .triple-grid .card .customer-products,
#customerDetail .triple-grid .card .customer-appointments,
#customerDetail .triple-grid .card ul {
  height: 2cm;
  max-height: 2cm;
  overflow-y: auto;
}
/* === Einheitliche Höhe für Hinweise / Produkte / Behandlungen / Diodenlaser === */
#editHinweise,
#editProdukteText,
#editBehandlungen,
#editDiodenlaser {
  min-height: 140px;    /* gleiche Höhe */
  height: 140px;        /* feste Grundhöhe */
  resize: vertical;     /* optional verstellbar */
}
/* === Admin-Listenfelder (Hinweise, Produkte, Behandlungen, Diodenlaser) === */
.list-box {
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  min-height: 140px;
  max-height: 140px;
  overflow-y: auto;
  padding: 8px;
  margin-top: 4px;
}

.entry-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  margin: 3px 0;
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 6px;
  word-break: break-word;
}

.delete-icon {
  background: #e74c3c;
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  line-height: 20px;
}
.delete-icon:hover {
  background: #c0392b;
}
.modal {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center;
}
.modal.hidden { display: none; }
.modal-content {
  background: white; padding: 20px; border-radius: 10px;
  width: 60%; max-width: 600px; max-height: 80%;
  overflow-y: auto;
}
.modal-content textarea {
  width: 100%; height: 80px; margin-top: 10px;
}
.popup-buttons {
  text-align: right; margin-top: 10px;
}
.btn-anamnese {
  background-color: #007c91; /* Türkis wie Sidebar */
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.2s;
}
.btn-anamnese:hover {
  background-color: #009fb5;
}
/* === Anamnese-Block === */
#anamneseDisplay {
  width: 100%;
  grid-column: 1 / -1;
  background: #fff;
  border: 1px solid #d2ecef;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 20px 0;
  box-shadow: 0 2px 6px rgba(0, 124, 145, 0.15);
  box-sizing: border-box;
}

#anamneseDisplay h3 {
  color: #007c91;
  font-size: 1.3em;
  margin-bottom: 10px;
  border-bottom: 2px solid #00acc1;
  padding-bottom: 4px;
}

#anamneseDisplay p {
  font-size: 0.95em;
  line-height: 1.5;
  margin: 4px 0;
}

#anamneseDisplay b {
  color: #007c91;
}

#anamneseDisplay button {
  background: #00acc1;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 10px;
  font-size: 0.9em;
  transition: background 0.2s ease;
}
#anamneseDisplay button:hover {
  background: #007c91;
}
/* === Nur Termin-Popup größer machen === */
.popup.termin-popup .card {
  max-width: 800px;      /* bisher 600px oder kleiner */
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
}

.popup.termin-popup {
  top: 10%;
  transform: translate(-50%, -10%);
}
/* Nur das Termin-Popup größer machen */
.popup.termin-popup {
  max-width: 1150px;
  width: 96%;
}
.popup.termin-popup .card {
  padding: 24px; /* etwas mehr Innenabstand */
}


/* 🌿 Farbige Hinterlegung für Kundendatenfelder */
.customer-data-grid {
  background: #e8fbe8;       /* hellgrün */
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 15px;
}

/* optional: Labels etwas absetzen */
.customer-data-grid label {
  font-weight: 600;
  color: #064d06;
}
/* 🔎 Suchfeld-Design mit X-Button */
.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 8px;
}

#searchCustomer {
  width: 100%;
  padding: 12px 38px 12px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1em;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
  transition: all 0.2s;
}

#searchCustomer:focus {
  border-color: #00acc1;
  outline: none;
  box-shadow: 0 0 3px rgba(0,172,193,0.4);
}

#clearSearchBtn {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: #888;
  font-size: 1.2em;
  cursor: pointer;
  display: none;
}

#clearSearchBtn:hover {
  color: #e74c3c;
}
/* 🔹 Logout-Button unter Überschrift für Kundenansicht */
.logout-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .logout-wrapper {
    justify-content: flex-start;
    margin-top: 5px;
  }
  .logout-wrapper .btn-logout {
    width: 100%;
  }
}
/* Zoom-/Skalierungs-Fix für Tablet */
@media (max-width: 1200px) {
  #calendar {
    transform: scale(0.85);       /* verkleinert den Kalender leicht */
    transform-origin: top center; /* zentriert die Ansicht */
  }
}
/* === Schönere Darstellung: Pause + (NK) Neukunde === */
.pause-new-block {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
  background: #e9f6f8;          /* leicht türkis, passt zu deinem Layout */
  border-radius: 10px;
  padding: 10px 18px;
  margin-bottom: 12px;
  border: 1px solid #d2ecef;
  box-shadow: 0 2px 4px rgba(0, 124, 145, 0.1);
}

.pause-new-block label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #004d40;
  cursor: pointer;
}

.pause-new-block input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #00acc1;       /* dein Türkiston */
  cursor: pointer;
  transform: scale(1.1);
}
/* === Kalender-Navigation über den Mitarbeitern === */
.calendar-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 10px 0 15px;
}
.calendar-nav button {
  background: #00acc1;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9em;
}
.calendar-nav button:hover {
  background: #007c91;
}
/* Datum (z. B. 30. Oktober 2025) schwarz */
.fc-toolbar-title {
  color: #000;
}

/* Wochentag (z. B. Donnerstag) größer und schwarz */
.fc-col-header-cell-cushion {
  color: #000;
  font-size: 1.1em;
  font-weight: 600;
}
:root{
  --h-list: 70vh;   /* mehr Kunden sichtbar */
}
#adminView #customerList {
  max-height: 85vh; /* auch im Admin etwas höher */
}
.fc-timeline-slot {
  background: #fafafa;
}
.fc-datagrid-cell {
  background: #eef6f8;
  font-weight: 600;
  text-align: center;
}
.fc-timeline-event {
  border-radius: 8px !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.fc-col-header-cell[data-resource-id="MA1"] { background:#e8f9e8; }
.fc-col-header-cell[data-resource-id="Kristina"] { background:#e8f3fa; }
.fc-col-header-cell[data-resource-id="Sabine"] { background:#fdf3e6; }
.fc-col-header-cell[data-resource-id="Tina"] { background:#f7e8f9; }
.fc-col-header-cell[data-resource-id="Claudia"] { background:#f2f7e8; }
/* === Kalender-Spalten optisch verbessern === */
.fc-col-header-cell {
  background: #e6f7fb;
  color: #007c91;
  font-weight: 600;
  text-align: center;
}
.fc-timegrid-slot {
  border-color: #eee !important;
}
.fc-resource-timegrid {
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
}
.fc-license-message {
  display: none !important;
}
/* Kopfzeilen-Farben der Mitarbeiter */
.fc-resource-column[data-resource-id="MA1"]   { background:#c8facc !important; }
.fc-resource-column[data-resource-id="Kristina"] { background:#fcd6e2 !important; }
.fc-resource-column[data-resource-id="Sabine"]   { background:#d3f7f7 !important; }
.fc-resource-column[data-resource-id="Tina"]     { background:#fff2cc !important; }
.fc-resource-column[data-resource-id="Claudia"]  { background:#e6d6fc !important; }
.fc-tooltip {
  box-shadow: 0 2px 6px rgba(15, 157, 77, 0.719);
  transition: opacity 0.1s ease-in-out;
}
/* === Geburtstage heute (Scroll erst bei vielen Einträgen) === */
#birthdaysToday {
  max-height: 480px;   /* erst ab ca. 10–12 Personen Scrollbar */
  overflow-y: auto;
  padding-right: 6px;  /* etwas Platz für Scrollbar */
}

#birthdaysToday .termin {
  padding: 6px 8px;
  margin: 4px 0;
}
/* Einheitliches Design für "Kunde öffnen"-Button */
button.customer-open {
  background: #00acc1;
  color: #fff;
  border: none;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9em;
  margin-left: 6px;
}
button.customer-open:hover {
  background: #007c91;
}
/* --- ALT: Popup Inline-Fix (nicht mehr aktiv, kann später entfernt werden) --- */

@keyframes fadeInOut {
  0% { opacity: 0; transform: translate(-50%, -60%); }
  10%, 90% { opacity: 1; transform: translate(-50%, -50%); }
  100% { opacity: 0; transform: translate(-50%, -40%); }
}
/* Klickbarer Kundenname in Terminlisten */
.cust-link {
  color: #007c91;
  font-weight: 600;
  text-decoration: none;
}
.cust-link:hover {
  text-decoration: underline;
  color: #00acc1;
}
/* === Breiteres Kunden-Detail-Popup === */
.popup.customer-popup .card {
  max-width: 1200px !important;
  width: 95% !important;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  box-sizing: border-box;
}

/* Für große Monitore noch breiter */
@media (min-width: 1400px) {
  .popup.customer-popup .card {
    max-width: 1300px;
  }
}

/* Für Tablets leicht kleiner */
@media (max-width: 900px) {
  .popup.customer-popup .card {
    width: 95%;
    max-width: 95%;
    padding: 16px;
  }
}
/* ========== Kunden-Detail-Popup (breit + 3 Spalten) ========== */
.popup.customer-popup .customer-card {
  max-width: 1200px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  box-sizing: border-box;
}

.popup.customer-popup h2 {
  color: #007c91;
  margin-bottom: 18px;
}

/* Header (Anrede, Tel, Ort...) */
.customer-header {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 16px;
  background: #e8fbe8;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
}

/* 3 Spalten für Hinweise / Produkte / Behandlungen */
.customer-sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 10px;
}

.cust-box {
  background: #f9fffa;
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid #d2ecef;
}

.cust-box h3 {
  color: #00acc1;
  margin-bottom: 8px;
}

/* Diodenlaser extra unterhalb */
.cust-box.diodenlaser {
  margin-top: 20px;
}

/* Schließen-Button rechts */
.close-row {
  text-align: right;
  margin-top: 20px;
}

/* Responsive Anpassung */
@media (max-width: 1000px) {
  .customer-header,
  .customer-sections {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .customer-header,
  .customer-sections {
    grid-template-columns: 1fr;
  }
  .popup.customer-popup .customer-card {
    width: 95%;
    max-width: 95%;
    padding: 16px;
  }
}
/* === Breiteres Kunden-Detail-Popup (wie Kundendatei) === */
.popup.customer-popup {
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 96vw;              /* volle Bildschirmbreite */
  max-width: 1150px;        /* identisch mit Kundendatei */
  max-height: 90vh;
  overflow-y: auto;
  z-index: 9999;
}

.popup.customer-popup .card.customer-detail-card {
  width: 100%;
  padding: 24px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.customer-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: #e8fbe8;
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.card.light {
  background: #f9fffa;
  padding: 12px 16px;
  border-radius: 8px;
}
.btn-open {
  background: #00acc1;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
}
.btn-open:hover {
  background: #007c91;
}
/* === Breiteres Kunden-Detail-Popup (wie Kundendatei) === */
.popup.customer-popup {
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 96vw;              /* volle Bildschirmbreite */
  max-width: 1150px;        /* identisch mit Kundendatei */
  max-height: 90vh;
  overflow-y: auto;
  z-index: 9999;
}

.popup.customer-popup .card.customer-detail-card {
  width: 100%;
  padding: 24px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.customer-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: #e8fbe8;
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.card.light {
  background: #f9fffa;
  padding: 12px 16px;
  border-radius: 8px;
}
/* === Farbige Admin-Buttons für bessere Übersicht === */
.tabs.button-row button {
  color: white;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Jeder Button eigene Farbe */
#btnRefresh       { background: #007c91; }  /* Türkis */
#btnCustomers     { background: #009688; }  /* Smaragdgrün */
#btnCalendar      { background: #3f51b5; }  /* Blau */
#btnAppointments  { background: #795548; }  /* Braun */
#btnNewCustomer   { background: #9c27b0; }  /* Violett */
#btnSaveCustomer  { background: #4caf50; }  /* Grün */
#btnDeleteCustomer{ background: #f44336; }  /* Rot */

/* Hover-Farben */
#btnRefresh:hover       { background: #006070; }
#btnCustomers:hover     { background: #00796b; }
#btnCalendar:hover      { background: #303f9f; }
#btnAppointments:hover  { background: #5d4037; }
#btnNewCustomer:hover   { background: #7b1fa2; }
#btnSaveCustomer:hover  { background: #388e3c; }
#btnDeleteCustomer:hover{ background: #d32f2f; }
.fc-event.holiday {
  font-weight: bold;
  text-align: center;
  opacity: 0.9;
}
/* Feiertage sichtbar machen */
.fc .holiday-bg {
  background-color: #ffebc6 !important;
  opacity: 0.6 !important;
}

/* WICHTIG: Hintergrund auch in resource columns anzeigen */
.fc-resourceTimeGrid .fc-bg-event {
  z-index: 1 !important;
}

/* Normaler Inhalt soll darüber bleiben */
.fc-resourceTimeGrid .fc-event {
  z-index: 2 !important;
}
/* Feiertag im Datum oben (Bild 1) */
.holiday-label {
  color: #b30000 !important;   /* kräftiges Rot */
  font-weight: 700 !important; /* fett */
}
