/* ============================================================
   up2future — Kundenportal Styles
   ============================================================ */

:root {
  --sand:       #c8b280;
  --taupe:      #a76e38;
  --black:      #0a0a0a;
  --eggshell:   #f0ead6;
  --white:      #fefdfb;
  --gray-100:   #f5f0e8;
  --gray-200:   #e8e1d4;
  --gray-300:   #d4cabb;
  --gray-500:   #8b8173;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--gray-100);
  color: var(--black);
  min-height: 100dvh;
  font-size: 15px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* ── LOGIN PAGE ─────────────────────────────────────────── */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 2rem 1rem;
}

.login-wrap {
  width: 100%;
  max-width: 440px;
}

.login-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 4px 32px rgba(0,0,0,0.06);
}

.login-back {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}
.login-back:hover { color: var(--taupe); }

.login-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.login-logo .up     { color: var(--black); }
.login-logo .two    { color: var(--taupe); }
.login-logo .future { color: var(--sand); }

.login-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.login-sub {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

/* ── FORMS ──────────────────────────────────────────────── */
.login-form { display: flex; flex-direction: column; gap: 1.1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus { border-color: var(--taupe); }

.form-group small {
  font-size: 0.78rem;
  color: var(--gray-500);
}

.btn-login {
  margin-top: 0.5rem;
  padding: 0.85rem 1.5rem;
  background: var(--taupe);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-login:hover { background: var(--sand); transform: translateY(-1px); }

.login-register-hint {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-500);
}
.login-register-hint a { color: var(--taupe); font-weight: 600; text-decoration: underline; }

/* ── ALERTS ─────────────────────────────────────────────── */
.alert {
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.alert-error   { background: #fef2f2; color: #c0392b; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* ── PORTAL LAYOUT ──────────────────────────────────────── */
.portal-body { min-height: 100dvh; display: flex; flex-direction: column; }

.portal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(254,253,251,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 2rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Portal Nav (Dashboard header only) */
.portal-nav { display: flex; gap: 0.25rem; align-items: center; flex: 1; margin-left: 1.5rem; }
.portal-nav-item {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 7px;
  color: var(--gray-500);
  transition: background 0.15s, color 0.15s;
}
.portal-nav-item:hover { background: var(--gray-100); color: var(--black); }
.portal-nav-active { background: var(--eggshell); color: var(--black) !important; font-weight: 700; }

/* ── DASHBOARD 2-COLUMN LAYOUT ───────────────────────────── */
.dash-body { background: var(--gray-100); }

.dash-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 1.25rem;
  height: calc(100dvh - 56px);
  padding: 1.25rem;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.dash-sidebar { overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--gray-300) transparent; }
.dash-content  { overflow-y: auto; min-height: 0; scrollbar-width: thin; scrollbar-color: var(--gray-300) transparent; }

.dash-sidebar::-webkit-scrollbar,
.dash-content::-webkit-scrollbar  { width: 5px; }
.dash-sidebar::-webkit-scrollbar-track,
.dash-content::-webkit-scrollbar-track  { background: transparent; }
.dash-sidebar::-webkit-scrollbar-thumb,
.dash-content::-webkit-scrollbar-thumb  { background: var(--gray-300); border-radius: 10px; }
.dash-sidebar::-webkit-scrollbar-thumb:hover,
.dash-content::-webkit-scrollbar-thumb:hover { background: var(--taupe); }

.dash-panel {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.dash-panel-head { margin-bottom: 1.25rem; }
.dash-panel-head--row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.dash-panel-title { font-size: 1.15rem; font-weight: 700; margin-top: 0.15rem; }

/* ── TABS ────────────────────────────────────────────────── */
.dash-tabs { display: flex; gap: 0.35rem; align-items: center; }
.dash-tab {
  padding: 0.3rem 0.85rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--gray-200);
  background: transparent;
  color: var(--gray-500);
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.dash-tab:hover { border-color: var(--sand); color: var(--black); }
.dash-tab--active { background: var(--taupe); color: #fff; border-color: var(--taupe); }
.dash-tab--active:hover { background: var(--sand); border-color: var(--sand); }
.dash-tab-count {
  background: rgba(255,255,255,0.25);
  border-radius: 4px;
  padding: 0 0.35rem;
  font-size: 0.75rem;
}
.dash-tab--active .dash-tab-count { background: rgba(255,255,255,0.3); }

/* ── BOOKING FORM (sidebar) ──────────────────────────────── */
.dash-book-form { display: flex; flex-direction: column; gap: 0.75rem; flex: 1; }
.dash-book-row  { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

.form-group { display: flex; flex-direction: column; gap: 0.3rem; }
.form-group label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-500); }
.form-group small { font-size: 0.75rem; color: var(--gray-500); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.55rem 0.75rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.88rem;
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus { border-color: var(--taupe); }

.bk-hint {
  font-size: 0.8rem;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 7px;
  padding: 0.45rem 0.75rem;
}

.bk-price-info {
  font-size: 0.8rem;
  color: var(--taupe);
  background: var(--eggshell);
  border: 1px solid var(--gray-300);
  border-radius: 7px;
  padding: 0.45rem 0.75rem;
  font-weight: 600;
}

.btn-book {
  margin-top: auto;
  padding: 0.75rem 1rem;
  background: var(--taupe);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-book:hover { background: var(--sand); transform: translateY(-1px); }

.alert-sm { font-size: 0.82rem; padding: 0.6rem 0.85rem; margin-bottom: 0.75rem; }

/* ── EXTRAS / AUSSTATTUNG PILLS ─────────────────────────── */
.extras-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-height: 120px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) transparent;
}
.extras-pills::-webkit-scrollbar        { width: 4px; }
.extras-pills::-webkit-scrollbar-track  { background: transparent; }
.extras-pills::-webkit-scrollbar-thumb  { background: var(--gray-300); border-radius: 10px; }
.extras-pills::-webkit-scrollbar-thumb:hover { background: var(--taupe); }

.extras-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.75rem;
  border: 1.5px solid var(--gray-300);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  background: var(--white);
  color: var(--black);
  transition: all 0.15s;
  user-select: none;
}
.extras-pill:hover { border-color: var(--taupe); background: var(--eggshell); }
.extras-pill--on   { background: var(--taupe); border-color: var(--taupe); color: #fff; }
.extras-pill input[type="checkbox"] { display: none; }

/* ── BOOKING TABLE (right column) ────────────────────────── */
.bk-table { display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }

.bk-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-size: 0.85rem;
}
.bk-row--active { border-left: 3px solid var(--taupe); }
.bk-row--past   { opacity: 0.7; }

.bk-row-main {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  min-width: 0;
}

.bk-ref   { font-family: monospace; font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.bk-room  { font-weight: 600; white-space: nowrap; }
.bk-date  { color: var(--gray-500); white-space: nowrap; }
.bk-time  { color: var(--gray-500); font-size: 0.8rem; white-space: nowrap; }

.bk-row-codes { display: flex; gap: 0.5rem; }
.bk-code {
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--eggshell);
  color: var(--taupe);
  padding: 0.15rem 0.5rem;
  border-radius: 5px;
  white-space: nowrap;
}

.bk-row-actions { display: flex; gap: 0.35rem; align-items: center; }
.bk-row-actions form { display: inline; }

.bk-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--gray-500);
  font-size: 0.9rem;
  padding: 2rem;
  text-align: center;
}
.bk-empty span { font-size: 2rem; }

.portal-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
}
.portal-logo .up     { color: var(--black); }
.portal-logo .two    { color: var(--taupe); }
.portal-logo .future { color: var(--sand); }

.portal-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.portal-user {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.btn-logout {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-500);
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.btn-logout:hover { background: var(--gray-100); color: var(--black); }

.portal-main {
  flex: 1;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.portal-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.82rem;
  color: var(--gray-500);
  border-top: 1px solid var(--gray-200);
}
.portal-footer a { color: var(--taupe); text-decoration: underline; }

/* ── WELCOME ────────────────────────────────────────────── */
.portal-welcome {
  margin-bottom: 2.5rem;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 0.4rem;
}

.portal-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

/* ── SECTIONS ───────────────────────────────────────────── */
.portal-section { margin-bottom: 2.5rem; }

.portal-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--gray-200);
}

/* ── EMPTY STATE ────────────────────────────────────────── */
.empty-state {
  background: var(--white);
  border: 1px dashed var(--gray-300);
  border-radius: 14px;
  padding: 2.5rem;
  text-align: center;
  color: var(--gray-500);
}
.empty-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.empty-state p { margin-bottom: 1.25rem; }

.btn-primary {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  background: var(--taupe);
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--sand); }

/* ── BOOKING CARDS ──────────────────────────────────────── */
.booking-list { display: flex; flex-direction: column; gap: 1rem; }

.booking-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  overflow: hidden;
}

.booking-card--active { border-left: 4px solid var(--taupe); }
.booking-card--past   { opacity: 0.85; }

.booking-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}

.booking-ref {
  font-family: monospace;
  font-size: 0.9rem;
  font-weight: 700;
  margin-right: 0.5rem;
}

.status-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--sc) 15%, transparent);
  color: var(--sc);
  border: 1px solid color-mix(in srgb, var(--sc) 30%, transparent);
}

.booking-card-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.booking-card-body { padding: 1.25rem; }

.booking-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem 1.5rem;
}

.booking-info-item { display: flex; flex-direction: column; gap: 0.15rem; }

.info-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
}

.info-val { font-size: 0.9rem; font-weight: 500; }

.access-code {
  font-family: monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--taupe);
}

/* ── BUTTONS (small) ────────────────────────────────────── */
.btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  border: none;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gray-300);
  color: var(--black);
}
.btn-outline:hover { background: var(--gray-100); border-color: var(--taupe); }

.btn-danger {
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  color: #c0392b;
}
.btn-danger:hover { background: #fee2e2; }

.btn-primary-sm {
  background: var(--taupe);
  color: #fff;
  border: none;
}
.btn-primary-sm:hover { background: var(--sand); }

/* ── SETTINGS ───────────────────────────────────────────── */
.settings-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 1.5rem;
}

.settings-info-row {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-200);
}
.settings-info-row:last-child { border-bottom: none; }
.settings-info-row .info-label { min-width: 140px; }

.settings-form { display: flex; flex-direction: column; gap: 0.9rem; }
.settings-row  { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.form-actions  { padding-top: 0.25rem; }

@media (max-width: 600px) {
  .settings-row { grid-template-columns: 1fr; }
}

/* ── INVOICE ────────────────────────────────────────────── */
.invoice-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.invoice {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.invoice-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.invoice-brand { display: flex; flex-direction: column; gap: 0.75rem; }

.invoice-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
}
.invoice-logo .up     { color: var(--black); }
.invoice-logo .two    { color: var(--taupe); }
.invoice-logo .future { color: var(--sand); }

.invoice-company-info {
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.7;
}

.invoice-meta { text-align: right; }

.invoice-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.invoice-meta-table { font-size: 0.88rem; border-collapse: collapse; margin-left: auto; }
.invoice-meta-table td { padding: 0.2rem 0.5rem 0.2rem 0; }
.invoice-meta-table td:first-child { color: var(--gray-500); padding-right: 1rem; }

.invoice-divider {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 1.5rem 0;
}

.invoice-parties { margin-bottom: 0.5rem; }

.invoice-party {
  font-size: 0.9rem;
  line-height: 1.8;
}
.invoice-party-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  margin-bottom: 0.3rem;
}

.invoice-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  margin: 1.5rem 0 0.75rem;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.invoice-table th {
  background: var(--gray-100);
  padding: 0.6rem 1rem;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
}
.invoice-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: top;
}
.invoice-table tr:last-child td { border-bottom: none; }
.invoice-table td:first-child { font-weight: 600; color: var(--gray-500); width: 140px; }

.invoice-chip {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  background: var(--eggshell);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--taupe);
  margin-left: 0.4rem;
}

/* ── CODES ──────────────────────────────────────────────── */
.invoice-codes { margin-top: 1.5rem; }

.codes-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.code-box {
  flex: 1;
  min-width: 160px;
  background: var(--eggshell);
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.code-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
}

.code-value {
  font-family: monospace;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--taupe);
  margin-bottom: 0.35rem;
}

.code-hint {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* ── INVOICE FOOTER ─────────────────────────────────────── */
.invoice-footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gray-200);
  font-size: 0.8rem;
  color: var(--gray-500);
  line-height: 1.7;
}
.invoice-footer a { color: var(--taupe); text-decoration: underline; }
.invoice-footer .disclaimer { margin-top: 0.5rem; font-style: italic; font-size: 0.75rem; }

/* ── PRINT ──────────────────────────────────────────────── */
@media print {
  .no-print { display: none !important; }
  body { background: white; font-size: 13px; }
  .portal-main { padding: 0; max-width: 100%; }
  .invoice {
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }
  .btn-sm, .btn-login { display: none; }
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .dash-layout {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }
  .dash-sidebar, .dash-content { overflow-y: visible; }
  .dash-panel { height: auto; }
  .bk-row { grid-template-columns: 1fr auto; }
  .bk-row-codes { display: none; } /* codes im Invoice sichtbar */
}

@media (max-width: 600px) {
  .portal-header { padding: 0 1rem; }
  .portal-user   { display: none; }
  .portal-nav    { display: none; }
  .portal-main   { padding: 1.5rem 1rem; }
  .portal-title  { font-size: 1.5rem; }
  .invoice       { padding: 1.5rem; }
  .invoice-head  { flex-direction: column; }
  .invoice-meta  { text-align: left; }
  .invoice-meta-table { margin-left: 0; }
  .dash-layout   { padding: 0.75rem; gap: 0.75rem; }
  .dash-book-row { grid-template-columns: 1fr; }
}
