/* mein_portal — branded landing for mein.zahnarzt-alghussin.de.
   Designed to feel like an extension of the booking page and the
   future patient-portal flows but visibly distinct from the staff UI. */

:root {
  --p-bg:        #f4f6fa;
  --p-text:      #0f172a;
  --p-muted:     #64748b;
  --p-border:    #e2e8f0;
  --p-accent:    #0d9488;
  --p-accent-d:  #0f766e;
  --p-card:      #ffffff;
  --p-radius:    12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px; line-height: 1.55;
  color: var(--p-text);
  background: var(--p-bg);
}
a { color: var(--p-accent-d); }
a:hover { text-decoration: underline; }

.container { max-width: 760px; margin: 0 auto; padding: 0 16px; }

.portal-header {
  background: #ffffff;
  border-bottom: 1px solid var(--p-border);
  padding: 20px 0 18px;
}
.portal-header .header-row {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.portal-logo {
  display: block; height: 64px; width: auto; max-width: 100%;
}
.portal-header .sub {
  margin: 0; font-size: 13px; font-weight: 500;
  color: var(--p-accent-d); letter-spacing: .02em;
  padding: 4px 10px; border: 1px solid var(--p-border);
  border-radius: 999px; background: #ecfdf5;
}
@media (max-width: 480px) {
  .portal-logo { height: 48px; }
}

main.container { padding-top: 24px; padding-bottom: 32px; }

.card {
  background: var(--p-card); border: 1px solid var(--p-border);
  border-radius: var(--p-radius); padding: 22px;
  box-shadow: 0 2px 10px rgba(15,23,42,.04);
  margin-bottom: 16px;
}
.card h2 { margin: 0 0 8px; font-size: 19px; }
.card h3 { margin: 0 0 6px; font-size: 15px; }
.card.welcome p { margin: 0; color: var(--p-text); }

.card-grid {
  display: grid; gap: 12px; margin-bottom: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.big-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px; border-radius: var(--p-radius);
  border: 1px solid var(--p-border);
  background: var(--p-card);
  text-decoration: none; color: inherit;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.big-card.primary {
  border-color: var(--p-accent);
  background: linear-gradient(180deg, #ffffff 0%, #ecfdf5 100%);
}
.big-card.primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(13,148,136,.18); text-decoration: none; }
.big-card.muted-card { background: #f8fafc; color: var(--p-muted); cursor: default; }
.big-card-icon { font-size: 26px; }
.big-card-title { font-weight: 600; font-size: 16px; color: var(--p-text); }
.big-card-desc  { font-size: 13px; color: var(--p-muted); }

.notes ul { margin: 6px 0 0; padding-left: 18px; }
.notes li { margin: 4px 0; color: var(--p-muted); }

/* Booking demo — day columns with time-slot buttons */
.slot-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.slot-day h4 {
  margin: 0 0 8px; font-size: 13px; font-weight: 600;
  color: var(--p-muted); text-transform: uppercase; letter-spacing: .04em;
}
.slot-times { display: flex; flex-direction: column; gap: 6px; }
.slot-btn {
  padding: 8px 10px; border: 1px solid var(--p-border);
  background: #fff; border-radius: 8px; cursor: not-allowed;
  font-size: 14px; color: var(--p-text); font-variant-numeric: tabular-nums;
  text-align: center;
}
.slot-btn:disabled { opacity: .65; }

/* Röntgen gallery */
.xray-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.xray-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px; border: 1px solid var(--p-border);
  border-radius: var(--p-radius); background: #fff;
}
.xray-thumb {
  aspect-ratio: 4 / 3; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 30% 40%, #475569 0%, #1e293b 60%, #0f172a 100%);
  color: rgba(255,255,255,.65); position: relative; overflow: hidden;
}
.xray-thumb::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse at 50% 60%, rgba(255,255,255,.18) 0%, transparent 55%),
    radial-gradient(ellipse at 30% 35%, rgba(255,255,255,.10) 0%, transparent 45%),
    radial-gradient(ellipse at 70% 70%, rgba(255,255,255,.08) 0%, transparent 50%);
  pointer-events: none;
}
.xray-thumb-opg { background: radial-gradient(ellipse at 50% 55%, #475569 0%, #1e293b 65%, #0f172a 100%); }
.xray-thumb-pa  { background: radial-gradient(circle at 50% 50%, #64748b 0%, #1e293b 70%, #0f172a 100%); }
.xray-thumb-bw  { background: linear-gradient(180deg, #334155 0%, #0f172a 100%); }
.xray-kind {
  position: relative; z-index: 1;
  font-size: 11px; font-weight: 600; letter-spacing: .08em;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(255,255,255,.18); color: #fff;
}
.xray-meta { display: flex; flex-direction: column; gap: 2px; }
.xray-label { font-size: 14px; font-weight: 500; }
.xray-date  { font-size: 12px; color: var(--p-muted); font-variant-numeric: tabular-nums; }
.xray-btn {
  padding: 6px 10px; border: 1px solid var(--p-border);
  background: #f8fafc; border-radius: 6px; cursor: not-allowed;
  font-size: 12px; color: var(--p-muted);
}

/* Code-entry form (Rechnungen / Röntgenbilder landing) */
.code-form { display: flex; flex-direction: column; gap: 10px; }
.code-form label { font-size: 13px; font-weight: 500; color: var(--p-muted); }
.code-form input[type="text"] {
  padding: 12px 14px; border: 1px solid var(--p-border);
  border-radius: 8px; font-size: 15px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #fff; color: var(--p-text); width: 100%;
}
.code-form input[type="text"]:focus {
  outline: none; border-color: var(--p-accent);
  box-shadow: 0 0 0 3px rgba(13,148,136,.15);
}
.primary-btn {
  align-self: flex-start;
  padding: 10px 18px; border: 1px solid var(--p-accent);
  background: var(--p-accent); color: #fff; border-radius: 8px;
  font-size: 15px; font-weight: 500; cursor: pointer;
  transition: background .12s ease;
}
.primary-btn:hover { background: var(--p-accent-d); }
.form-error { margin: 0; color: #991b1b; font-size: 14px; }
.form-hint  { margin: 4px 0 0; color: var(--p-muted); font-size: 12px; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em; background: #f1f5f9; padding: 1px 4px; border-radius: 3px;
}

.demo-note {
  margin: 10px 0 0; padding: 8px 10px;
  background: #fef3c7; border-left: 3px solid #f59e0b;
  border-radius: 4px; font-size: 13px; color: #92400e;
}

.invoice-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.invoice-table th, .invoice-table td {
  text-align: left; padding: 10px 8px;
  border-bottom: 1px solid var(--p-border);
}
.invoice-table th { font-weight: 500; color: var(--p-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.invoice-table td.num, .invoice-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.invoice-table tbody tr:hover { background: #f8fafc; }
.invoice-link { font-weight: 500; text-decoration: none; }
.invoice-link:hover { text-decoration: underline; }

.status {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 500;
}
.status-offen     { background: #fee2e2; color: #991b1b; }
.status-ratenplan { background: #fef3c7; color: #92400e; }
.status-bezahlt   { background: #d1fae5; color: #065f46; }

.portal-footer {
  margin-top: 24px; padding: 18px 0;
  color: var(--p-muted); font-size: 12px; text-align: center;
}
.portal-footer a { color: var(--p-muted); text-decoration: underline; }
