/* ============================================================
   Hundepension Buchungssystem – Frontend CSS
   Brand: Auf Fellfreundschaft
   Farben: #83c06f (Grün), #77ab57 (Grün Dunkel), #d8c04a (Gelb),
           #d6d6d6 (Grau), #2e2d2c (Schwarz Crushed)
   Fonts: Grandstander ExtraBold (Headlines), Baloo Tamma 2 (Body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Grandstander:wght@800&family=Baloo+Tamma+2:wght@400;500;600&display=swap');

:root {
  --hpb-primary:    #77ab57;
  --hpb-primary-l:  #83c06f;
  --hpb-primary-d:  #5d8e40;
  --hpb-accent:     #d8c04a;
  --hpb-accent-d:   #b8a030;
  --hpb-dark:       #2e2d2c;
  --hpb-gray:       #d6d6d6;
  --hpb-gray-light: #f5f5f3;
  --hpb-success:    #77ab57;
  --hpb-danger:     #c0392b;
  --hpb-warning:    #d8c04a;
  --hpb-border:     #e0ddd8;
  --hpb-radius:     12px;
  --hpb-shadow:     0 3px 16px rgba(46,45,44,.10);
  --hpb-font-head:  'Grandstander', 'Baloo Tamma 2', sans-serif;
  --hpb-font-body:  'Baloo Tamma 2', sans-serif;
}

/* ---- Base ---- */
.hpb-wrap {
  max-width: 880px;
  margin: 0 auto;
  font-family: var(--hpb-font-body);
  color: var(--hpb-dark);
}
.hpb-wrap * { box-sizing: border-box; }

/* ---- Logo-Header ---- */
.hpb-brand-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--hpb-primary-l);
}
.hpb-brand-header img {
  width: 72px;
  height: auto;
}
.hpb-brand-header h1 {
  font-family: var(--hpb-font-head);
  color: var(--hpb-primary-d);
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.1;
}
.hpb-brand-header span {
  display: block;
  font-family: var(--hpb-font-body);
  font-size: .9rem;
  color: #666;
  font-weight: 400;
}

/* ---- Titles ---- */
.hpb-title {
  font-family: var(--hpb-font-head);
  color: var(--hpb-primary-d);
  margin-bottom: 24px;
  font-size: 1.6rem;
}
h2, h3, h4 {
  font-family: var(--hpb-font-head);
}

/* ---- Steps / Cards ---- */
.hpb-step {
  background: #fff;
  border: 1px solid var(--hpb-border);
  border-radius: var(--hpb-radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--hpb-shadow);
  border-top: 4px solid var(--hpb-primary-l);
}
.hpb-step h3 {
  margin-top: 0;
  color: var(--hpb-primary-d);
  font-size: 1.15rem;
}

/* ---- Buttons ---- */
.hpb-btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--hpb-font-body);
  font-size: .95rem;
  font-weight: 600;
  transition: background .2s, transform .1s, box-shadow .2s;
  text-decoration: none;
  letter-spacing: .02em;
}
.hpb-btn:active { transform: scale(.97); }

.hpb-btn-primary {
  background: var(--hpb-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(119,171,87,.35);
}
.hpb-btn-primary:hover {
  background: var(--hpb-primary-d);
  box-shadow: 0 4px 14px rgba(119,171,87,.45);
}

.hpb-btn-accent {
  background: var(--hpb-accent);
  color: var(--hpb-dark);
  box-shadow: 0 2px 8px rgba(216,192,74,.35);
}
.hpb-btn-accent:hover { background: var(--hpb-accent-d); }

.hpb-btn-secondary {
  background: #edf6e8;
  color: var(--hpb-primary-d);
  border: 1px solid var(--hpb-primary-l);
}
.hpb-btn-secondary:hover { background: #daefd2; }

.hpb-btn-danger { background: var(--hpb-danger); color: #fff; }
.hpb-btn-danger:hover { background: #a93226; }

.hpb-btn-sm { padding: 6px 14px; font-size: .85rem; }

.hpb-btn-nav {
  background: rgba(255,255,255,.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
  padding: 7px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--hpb-font-body);
  font-size: .9rem;
  transition: background .2s;
}
.hpb-btn-nav:hover { background: rgba(255,255,255,.35); }

/* ---- Forms ---- */
.hpb-form-row { margin-bottom: 16px; }
.hpb-form-row > label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--hpb-dark); }
.hpb-form-row input[type="text"],
.hpb-form-row input[type="email"],
.hpb-form-row input[type="password"],
.hpb-form-row input[type="tel"],
.hpb-form-row input[type="number"],
.hpb-form-row select,
.hpb-form-row textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--hpb-border);
  border-radius: 8px;
  font-family: var(--hpb-font-body);
  font-size: .95rem;
  color: var(--hpb-dark);
  transition: border-color .2s, box-shadow .2s;
  background: #fff;
}
.hpb-form-row input:focus,
.hpb-form-row select:focus,
.hpb-form-row textarea:focus {
  border-color: var(--hpb-primary);
  box-shadow: 0 0 0 3px rgba(119,171,87,.15);
  outline: none;
}
.hpb-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hpb-radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: 20px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 14px;
  border: 2px solid var(--hpb-border);
  border-radius: 8px;
  transition: border-color .2s, background .2s;
}
.hpb-radio-group label:has(input:checked) {
  border-color: var(--hpb-primary);
  background: #edf6e8;
}
.hpb-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  cursor: pointer;
}

/* ---- Tabs ---- */
.hpb-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 3px solid var(--hpb-gray);
}
.hpb-tab {
  padding: 10px 22px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--hpb-font-body);
  font-weight: 600;
  color: #888;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: color .2s, border-color .2s;
  font-size: .95rem;
}
.hpb-tab.active { color: var(--hpb-primary-d); border-bottom-color: var(--hpb-primary); }
.hpb-tab:hover  { color: var(--hpb-primary); }
.hpb-tab-content { display: none; }
.hpb-tab-content.active { display: block; }

/* ---- Kalender ---- */
.hpb-calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--hpb-primary-d) 0%, var(--hpb-primary-l) 100%);
  color: #fff;
  padding: 14px 18px;
  border-radius: var(--hpb-radius) var(--hpb-radius) 0 0;
}
.hpb-month-label {
  font-family: var(--hpb-font-head);
  font-size: 1.25rem;
  letter-spacing: .03em;
}

.hpb-calendar {
  border: 2px solid var(--hpb-primary-l);
  border-top: none;
  border-radius: 0 0 var(--hpb-radius) var(--hpb-radius);
  overflow: hidden;
}
.hpb-cal-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #edf6e8;
}
.hpb-cal-header span {
  text-align: center;
  padding: 9px 0;
  font-weight: 700;
  font-size: .82rem;
  color: var(--hpb-primary-d);
  font-family: var(--hpb-font-body);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.hpb-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.hpb-cal-day {
  text-align: center;
  padding: 11px 4px;
  cursor: pointer;
  border: 1px solid #f0ede8;
  font-size: .92rem;
  font-family: var(--hpb-font-body);
  transition: background .15s, color .15s;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hpb-cal-day:hover:not(.hpb-day-disabled):not(.hpb-day-empty) {
  background: #daefd2;
  color: var(--hpb-primary-d);
}
.hpb-day-empty    { background: #fafaf8; cursor: default; }
.hpb-day-disabled { background: #f5f5f3; color: #bbb; cursor: not-allowed; }
.hpb-day-today    { font-weight: 800; color: var(--hpb-primary-d); }
.hpb-day-today::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px; height: 5px;
  background: var(--hpb-accent);
  border-radius: 50%;
}
.hpb-day-selected {
  background: var(--hpb-primary) !important;
  color: #fff !important;
  border-radius: 6px;
  font-weight: 700;
}
.hpb-day-range    { background: #daefd2 !important; }
.hpb-day-booked   { background: #fde8e8 !important; color: #c00 !important; cursor: not-allowed; }
.hpb-day-weekend  { color: #aaa; background: #fafaf8; }

/* ---- Preisbox ---- */
.hpb-price-box {
  background: #edf6e8;
  border: 2px solid var(--hpb-primary-l);
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 12px;
}
.hpb-price-box strong { color: var(--hpb-primary-d); }

.hpb-info-box {
  background: #fefbe8;
  border: 2px solid var(--hpb-accent);
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 12px;
}
.hpb-info-box ul { margin: 8px 0 0 0; padding-left: 20px; }
.hpb-info-box li { margin-bottom: 5px; }

/* ---- Zusammenfassung ---- */
.hpb-summary-box {
  background: var(--hpb-gray-light);
  border: 1px solid var(--hpb-border);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 18px;
}
.hpb-summary-table { width: 100%; border-collapse: collapse; }
.hpb-summary-table td { padding: 7px 10px; border-bottom: 1px solid var(--hpb-border); font-family: var(--hpb-font-body); }
.hpb-total-row td {
  border-top: 2px solid var(--hpb-primary);
  font-size: 1.1rem;
  color: var(--hpb-primary-d);
  padding-top: 12px;
}

/* ---- Badges ---- */
.hpb-badge {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 700;
  font-family: var(--hpb-font-body);
  letter-spacing: .03em;
}
.hpb-badge-pending   { background: #fef3c7; color: #92400e; }
.hpb-badge-confirmed { background: #dbeafe; color: #1e40af; }
.hpb-badge-paid      { background: #dcfce7; color: #166534; }
.hpb-badge-cancelled { background: #fee2e2; color: #991b1b; }
.hpb-badge-active    { background: #dcfce7; color: #166534; }

/* ---- Tabellen ---- */
.hpb-table { width: 100%; border-collapse: collapse; font-size: .9rem; font-family: var(--hpb-font-body); }
.hpb-table th {
  background: #edf6e8;
  color: var(--hpb-primary-d);
  padding: 11px 14px;
  text-align: left;
  font-family: var(--hpb-font-head);
  font-size: .85rem;
  letter-spacing: .04em;
}
.hpb-table td { padding: 11px 14px; border-bottom: 1px solid var(--hpb-border); vertical-align: middle; }
.hpb-table tr:hover td { background: #fafaf8; }
.hpb-table-muted td { color: #999; }

/* ---- Abo-Karten ---- */
.hpb-abo-card {
  border: 1px solid var(--hpb-border);
  border-radius: var(--hpb-radius);
  padding: 20px;
  margin-bottom: 18px;
  background: #fff;
  box-shadow: var(--hpb-shadow);
}
.hpb-abo-active    { border-left: 5px solid var(--hpb-primary); }
.hpb-abo-cancelled { border-left: 5px solid var(--hpb-danger); opacity: .85; }
.hpb-abo-header    { font-size: 1rem; margin-bottom: 12px; font-family: var(--hpb-font-head); color: var(--hpb-dark); }
.hpb-abo-details   { display: flex; flex-wrap: wrap; gap: 18px; font-size: .88rem; margin-bottom: 12px; color: #666; }
.hpb-abo-details span strong { color: var(--hpb-dark); }
.hpb-abo-notice    { padding: 10px 14px; border-radius: 8px; font-size: .88rem; margin-bottom: 14px; }
.hpb-notice-ok     { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.hpb-notice-warn   { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.hpb-abo-actions   { display: flex; gap: 10px; flex-wrap: wrap; }
.hpb-change-dates-wrap { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--hpb-border); }

/* ---- Hunde-Grid ---- */
.hpb-dogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.hpb-dog-card {
  border: 2px solid var(--hpb-border);
  border-radius: var(--hpb-radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.hpb-dog-card:hover { border-color: var(--hpb-primary-l); box-shadow: var(--hpb-shadow); }
.hpb-dog-icon { font-size: 2.8rem; margin-bottom: 10px; }
.hpb-dog-info { display: flex; flex-direction: column; gap: 3px; margin-bottom: 14px; font-size: .9rem; }
.hpb-dog-info strong { font-size: 1.05rem; color: var(--hpb-dark); }

/* ---- Dashboard Header ---- */
.hpb-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 18px 22px;
  background: linear-gradient(135deg, var(--hpb-primary-d) 0%, var(--hpb-primary-l) 100%);
  border-radius: var(--hpb-radius);
  color: #fff;
}
.hpb-dashboard-header h2 {
  margin: 0;
  color: #fff;
  font-size: 1.4rem;
}

/* ---- Notices ---- */
.hpb-notice { background: #edf6e8; border: 2px solid var(--hpb-primary-l); border-radius: 10px; padding: 22px; text-align: center; }
.hpb-empty  { color: #999; font-style: italic; }
.hpb-hint   { font-size: .85rem; color: #777; margin-top: 6px; }

/* ---- Ergebnis-Meldungen ---- */
.hpb-result-ok  { background: #dcfce7; color: #166534; border: 1px solid #86efac; border-radius: 8px; padding: 13px 18px; margin-top: 14px; font-weight: 600; }
.hpb-result-err { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; border-radius: 8px; padding: 13px 18px; margin-top: 14px; font-weight: 600; }

/* ---- Zeiten-Auswahl ---- */
.hpb-times-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---- Ausgewählte Termine ---- */
#hpb-selected-dates-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
#hpb-selected-dates-list li {
  background: var(--hpb-primary);
  color: #fff;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 600;
}

/* ---- Auth-Wrap ---- */
#hpb-auth-wrap { max-width: 500px; margin: 0 auto; }
#hpb-auth-wrap h2 { color: var(--hpb-primary-d); font-size: 1.4rem; margin-bottom: 20px; }

/* ---- Accent-Stripe ---- */
.hpb-accent-stripe {
  background: var(--hpb-accent);
  color: var(--hpb-dark);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 16px;
  display: inline-block;
}

/* ---- Utility ---- */
.hpb-hidden { display: none !important; }
.hpb-mt-16  { margin-top: 16px; }
.hpb-mb-16  { margin-bottom: 16px; }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .hpb-two-col, .hpb-times-row { grid-template-columns: 1fr; }
  .hpb-dashboard-header { flex-direction: column; gap: 12px; align-items: flex-start; }
  .hpb-cal-day { padding: 6px 2px; font-size: .78rem; min-height: 38px; }
  .hpb-abo-details { flex-direction: column; gap: 5px; }
  .hpb-brand-header h1 { font-size: 1.3rem; }
  .hpb-step { padding: 16px; }
}
