/* ===== STATUS BUTTON — Variante A: Clean & Compact ===== */

/* --- Pulse Animation --- */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* --- Container --- */
.status-button-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

/* --- Floating Button (Two-Line) --- */
.status-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: 30px;
  border: none;
  background: #7C284E;
  color: #fff;
  cursor: pointer;
  font-family: "Roboto Condensed", sans-serif;
  box-shadow: 0 4px 20px rgba(124,40,78,0.3);
  transition: all 0.3s ease;
  text-align: left;
}

.status-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(124,40,78,0.4);
}

.btn-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.btn-dot.open {
  background: #4CAF50;
  animation: pulse 2s infinite;
}

.btn-dot.closed {
  background: #e53935;
}

.btn-dot.vacation {
  background: #ff9800;
  animation: pulse 2s infinite;
}

.btn-dot.notdienst {
  background: #2196F3;
  animation: pulse 2s infinite;
}

.btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.btn-line1 {
  font-size: 20px;
  font-weight: 700;
}

.btn-line2 {
  font-size: 16px;
  font-weight: 400;
  opacity: 0.85;
}

.btn-line3 {
  font-size: 16px;
  font-weight: 400;
  opacity: 0.85;
}

/* --- Popup --- */
.status-popup {
  display: none;
  position: absolute;
  bottom: 105px;
  right: 0;
  background: #fff;
  border-radius: 18px;
  min-width: 380px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
  overflow: hidden;
  font-family: "Roboto Condensed", sans-serif;
}

.status-popup.active {
  display: block;
}

.status-popup.has-admin {
  min-width: 400px;
  max-height: 70vh;
  overflow-y: auto;
}

/* --- Status Header --- */
.status-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  background: #7C284E;
  color: #fff;
}

.sh-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sh-dot.open {
  background: #4CAF50;
  animation: pulse 2s infinite;
}

.sh-dot.closed {
  background: #e53935;
}

.sh-dot.vacation {
  background: #ff9800;
  animation: pulse 2s infinite;
}

.sh-dot.notdienst {
  background: #2196F3;
  animation: pulse 2s infinite;
}

.sh-text {
  font-size: 18px;
  font-weight: 600;
  flex: 1;
}

.sh-sub {
  font-size: 14px;
  opacity: 0.8;
}

/* --- Hours List --- */
.hours-list {
  padding: 14px 24px;
  list-style: none;
  margin: 0;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 15px;
  color: #2c2c2c;
  border-bottom: 1px solid #f3f3f3;
}

.hours-list li:last-child {
  border-bottom: none;
}

.hours-list li.today {
  font-weight: 700;
  color: #7C284E;
}

.hours-list .day {
  font-weight: 500;
}

.hours-list .day i {
  margin-right: 6px;
  font-size: 12px;
  color: #777;
}

.hours-list li.today .day i {
  color: #7C284E;
}

.hours-list .time {
  color: #777;
}

.hours-list li.today .time {
  color: #7C284E;
}

/* --- Sprechstunden Hinweis --- */
.hours-note {
  padding: 2px 24px 14px;
  font-size: 13px;
  color: #777;
  font-style: italic;
}

/* --- Vacation Notice --- */
.vacation-notice {
  margin: 0 24px 14px;
  padding: 12px 14px;
  background: #fff3e0;
  border-radius: 10px;
  color: #e65100;
  font-weight: 600;
  font-size: 14px;
}

.coverage-title {
  font-weight: 600;
  color: #7C284E;
  margin-top: 10px;
  margin-bottom: 5px;
  font-size: 13px;
}

.coverage-item {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 400;
  color: #333;
}

.coverage-item strong {
  display: block;
  font-weight: 600;
}

.coverage-detail {
  color: #999;
}

/* --- Notdienst Block --- */
.nd-block {
  background: #e3f2fd;
  border-top: 3px solid #1976D2;
  padding: 20px 24px;
}

.nd-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.nd-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #1976D2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 18px;
}

.nd-head-text {
  flex: 1;
}

.nd-title {
  font-size: 16px;
  font-weight: 700;
  color: #1976D2;
}

.nd-subtitle {
  font-size: 13px;
  color: #777;
  font-weight: 500;
}

.nd-grid {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px 12px;
  font-size: 16px;
  margin-bottom: 14px;
  align-items: start;
}

.nd-grid i {
  color: #1976D2;
  font-size: 16px;
  margin-top: 3px;
}

.nd-grid .nd-val {
  line-height: 1.5;
}

.nd-grid .nd-val strong {
  font-weight: 600;
}

.nd-grid .nd-val small {
  font-size: 12px;
  color: #777;
}

.nd-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  background: #1976D2;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  font-family: "Roboto Condensed", sans-serif;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}

.nd-call:hover {
  background: #1565c0;
}

/* ===== ADMIN TAB BAR ===== */
.status-tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #7C284E;
}

.status-tab {
  flex: 1;
  padding: 10px 15px;
  border: none;
  background: #f5f5f5;
  cursor: pointer;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  transition: all 0.2s;
}

.status-tab:first-child {
  border-radius: 16px 0 0 0;
}

.status-tab:last-child {
  border-radius: 0 16px 0 0;
}

.status-tab.active {
  background: #fff;
  color: #7C284E;
  font-weight: 600;
}

.status-tab:hover:not(.active) {
  background: #eee;
}

.status-tab-content {
  display: none;
}

.status-tab-content.active {
  display: block;
}

/* ===== ADMIN EDIT FORM ===== */
.saf-section {
  margin: 15px 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.saf-section:last-of-type {
  border-bottom: none;
}

.saf-section h4 {
  font-size: 13px;
  font-weight: 600;
  color: #7C284E;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.saf-field {
  margin-bottom: 8px;
}

.saf-field label {
  display: block;
  font-size: 11px;
  color: #888;
  margin-bottom: 3px;
  font-weight: 500;
}

.saf-field input,
.saf-field textarea {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 13px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.saf-field input:focus,
.saf-field textarea:focus {
  outline: none;
  border-color: #7C284E;
}

.saf-field textarea {
  resize: vertical;
  min-height: 60px;
}

.saf-save-btn {
  display: block;
  width: calc(100% - 40px);
  padding: 10px;
  margin: 12px 20px 0;
  background: #7C284E;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.saf-save-btn:hover {
  background: #a14675;
}

.saf-save-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.saf-notice {
  font-size: 12px;
  text-align: center;
  margin-top: 8px;
  padding: 0 20px;
  min-height: 16px;
}

.saf-notice.success {
  color: #2e7d32;
}

.saf-notice.error {
  color: #c62828;
}

.saf-admin-link {
  display: block;
  text-align: center;
  margin: 10px 0 15px;
  font-size: 12px;
  color: #7C284E;
  text-decoration: none;
}

.saf-admin-link:hover {
  text-decoration: underline;
}

/* ===== MOBILE ===== */
@media (max-width: 480px) {
  .status-popup {
    min-width: 320px;
    right: -10px;
  }

  .status-btn {
    padding: 10px 18px;
  }

  .btn-line1 {
    font-size: 17px;
  }

  .btn-line2 {
    font-size: 14px;
  }

  .btn-line3 {
    font-size: 14px;
  }
}
