/* ── Kundenbereich Layout ────────────────────────────────── */
.customer-layout {
  display: flex;
  min-height: calc(100vh - 56px);
}

.customer-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
}

.customer-content {
  flex: 1;
  padding: 40px 48px;
  max-width: 860px;
}

/* ── Sidebar Navigation ──────────────────────────────────── */
.sidebar-section {
  padding: 0 16px;
  margin-bottom: 24px;
}

.sidebar-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-sub);
  padding: 0 8px;
  margin-bottom: 4px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background .1s;
}

.sidebar-nav a:hover {
  background: var(--surface2);
  text-decoration: none;
}

.sidebar-nav a.active {
  background: var(--accent-bg);
  color: var(--accent-fg);
  font-weight: 600;
}

.sidebar-nav a .nav-icon {
  font-size: 15px;
  opacity: .75;
}

/* ── Page Header ─────────────────────────────────────────── */
.page-header {
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 4px;
}

.page-header p {
  font-size: 13px;
  color: var(--text-sub);
}

/* ── Service Cards (Dashboard) ───────────────────────────── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}

.service-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0,0,0,.10);
  transform: translateY(-2px);
}

.service-card-icon {
  font-size: 30px;
  transition: transform .15s;
}

.service-card:hover .service-card-icon {
  transform: scale(1.12);
}

.service-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.service-card-desc {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.6;
  flex: 1;
}

.service-card-action {
  margin-top: 4px;
}

.service-card-action a {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.service-card-action a:hover { text-decoration: underline; }

.service-card-action .disabled-link {
  font-size: 12px;
  color: var(--text-sub);
  cursor: not-allowed;
}

/* ── Info Block (Profil / Organisation) ──────────────────── */
.info-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 28px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  margin-bottom: 20px;
}

.info-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.info-row:last-child { border-bottom: none; }

.info-label {
  width: 160px;
  flex-shrink: 0;
  font-weight: 600;
  color: var(--text-sub);
  font-size: 12px;
}

.info-value { color: var(--text); }

/* ── Login Box ───────────────────────────────────────────── */
.login-wrap {
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.login-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 48px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}

.login-brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 4px;
}

.login-sub {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 20px;
}

.login-desc {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 28px;
  line-height: 1.6;
}

.login-box label {
  display: block;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
  margin: 12px 0 4px;
}

.login-box input[type=email],
.login-box input[type=password] {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  background: var(--surface2);
  color: var(--text);
}

.login-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
  outline: none;
}

.login-btn {
  width: 100%;
  margin-top: 20px;
  padding: 10px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: filter .15s;
}

.login-btn:hover { filter: brightness(1.1); }

.login-error {
  font-size: 12px;
  color: var(--danger);
  background: var(--danger-bg);
  border-radius: 6px;
  padding: 8px 12px;
  margin-top: 14px;
  text-align: left;
}

.login-footer {
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 24px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 750px) {
  .customer-layout { flex-direction: column; }
  .customer-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); padding: 12px 0; }
  .customer-content { padding: 24px 20px; }
  .login-box { padding: 32px 24px; }
}

/* ── Flash Messages (auto-hide via JS in _layout_close.php) ─ */
.flash-msg {
  transition: opacity .6s;
}

/* ── Profile password form spacing ──────────────────────── */
.profile-pw-input {
  width: 100%;
  max-width: 360px;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  background: var(--surface2);
  color: var(--text);
  margin-bottom: 16px;
  display: block;
}

.profile-pw-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
  outline: none;
}
