/* Only loaded by /login/ and /kunde/. Public site styling is unchanged. */
.customer-area { font-size: 16px; }
.customer-area h1 { font-size: clamp(2rem, 3.2vw, 3.4rem); margin: 0 0 16px; }
.customer-area h2 { font-size: clamp(1.45rem, 2vw, 2rem); margin: 0 0 16px; }
.customer-area h3 { font-size: 1.2rem; margin: 0 0 8px; }
.customer-area p { margin: 0 0 20px; }
.customer-area .kicker { margin-bottom: 12px; }
.customer-area button { cursor: pointer; }
.customer-area .button { white-space: normal; text-align: center; min-height: 48px; }
.customer-area .button:disabled { opacity: .5; cursor: not-allowed; }
.customer-area a, .customer-area h1, .customer-area h2, .customer-area h3, .customer-area p, .customer-area strong { overflow-wrap: break-word; word-break: normal; }
.customer-nav-wrap nav a, .customer-status, .customer-filter, .customer-details dt { overflow-wrap: normal; word-break: normal; }
.customer-status, .customer-filter { white-space: nowrap; }
.customer-area :focus-visible { outline: 3px solid var(--coral-dark); outline-offset: 4px; }
.customer-area h1:focus { outline: none; }
.customer-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100dvh; }
.customer-sidebar { padding: 32px 22px; background: var(--white); border-right: 1px solid var(--line); align-self: start; position: sticky; top: 0; max-height: 100dvh; overflow-y: auto; }
.customer-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 44px; }
.customer-nav-wrap nav { display: grid; gap: 6px; }
.customer-nav-wrap nav a { display: flex; align-items: center; gap: 12px; padding: 12px; min-height: 48px; border-radius: var(--radius-sm); font-size: .9375rem; }
.customer-nav-wrap nav a span { width: 20px; flex-shrink: 0; text-align: center; font-size: 1.2rem; }
.customer-nav-wrap nav a:hover { background: var(--fog); }
.customer-nav-wrap nav a[aria-current="page"] { background: var(--glacier); font-weight: 600; }
.customer-account { display: grid; margin-top: 36px; padding: 24px 12px 0; border-top: 1px solid var(--line); font-size: .875rem; }
.customer-account > span { margin-top: 4px; }
.customer-text-link { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; font-size: .9375rem; }
.customer-menu-toggle { display: none; }
.customer-workspace { min-width: 0; display: flex; flex-direction: column; }
.customer-topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 36px; border-bottom: 1px solid var(--line); font-size: .8125rem; }
.customer-topbar > span:first-child { display: flex; flex-wrap: wrap; gap: 10px; }
.demo-pill { border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; font-size: .75rem; }
.customer-main { width: 100%; max-width: 1320px; margin: 0 auto; padding: 40px 36px; flex: 1; }
.customer-page-head { margin-bottom: 28px; }
.customer-page-head > p:last-child { margin: 0; max-width: 66ch; }
.customer-card { min-width: 0; padding: clamp(22px, 2.5vw, 32px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.customer-card > :last-child { margin-bottom: 0; }
.customer-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px; background: var(--forest); color: var(--white); margin-bottom: 28px; padding: clamp(24px, 3vw, 40px); }
.customer-hero p { max-width: 62ch; margin-bottom: 0; }
.customer-hero .kicker { color: var(--glacier); margin-bottom: 12px; }
.customer-columns { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.customer-stack { display: grid; gap: 24px; }
.customer-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.customer-shortcut { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: background .2s, border-color .2s; }
.customer-shortcut:hover { background: var(--glacier-hi); border-color: var(--glacier-deep); }
.customer-shortcut:last-child { grid-column: 1 / -1; background: var(--glacier-hi); }
.customer-shortcut strong { display: block; margin-bottom: 8px; font-size: 1rem; }
.customer-shortcut span { font-size: .875rem; }
.customer-section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.customer-section-heading h2 { margin: 0; }
.customer-site-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--glacier); font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 20px; }
.customer-site-card .customer-status { margin-bottom: 16px; }
.customer-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
.customer-status { display: inline-flex; gap: 7px; align-items: center; padding: 5px 10px; border-radius: 999px; font-size: .75rem; line-height: 1.5; font-weight: 500; border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.customer-status::before { content: '○'; font-size: .875rem; }
.customer-status.status-0 { background: var(--fog); }
.customer-status.status-1 { background: var(--glacier-hi); }
.customer-status.status-1::before { content: '◷'; }
.customer-status.status-2 { border-color: var(--forest); background: var(--white); }
.customer-status.status-2::before { content: '!'; font-weight: 700; }
.customer-status.status-3 { background: var(--glacier); border-color: var(--glacier-deep); }
.customer-status.status-3::before { content: '✓'; }
.customer-requests { display: grid; }
.customer-request { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.customer-request:last-child { border-bottom: 0; }
.customer-request:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.customer-request strong { display: block; margin-bottom: 6px; }
.customer-request small { display: block; font-size: .8125rem; }
.customer-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.customer-filter { min-height: 44px; padding: 10px 16px; border: 1px solid var(--line); background: var(--white); border-radius: 999px; font-size: .875rem; }
.customer-filter[aria-pressed="true"] { background: var(--forest); color: var(--white); border-color: var(--forest); }
.customer-field { display: grid; gap: 8px; font-weight: 500; margin-bottom: 24px; min-width: 0; }
.customer-field small { font-size: .8125rem; font-weight: 400; }
.customer-field input, .customer-field select, .customer-field textarea { display: block; width: 100%; min-width: 0; min-height: 52px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); padding: 14px 16px; font-size: 16px; font-weight: 400; }
.customer-field textarea { min-height: 180px; resize: vertical; }
.customer-form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 24px; align-items: start; }
.customer-categories { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.customer-categories legend { font-size: 1.2rem; font-weight: 600; margin-bottom: 16px; }
.customer-category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.customer-category { position: relative; display: flex; align-items: center; gap: 10px; min-height: 56px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; cursor: pointer; font-size: .875rem; }
.customer-category:has(input:checked) { border-color: var(--forest); background: var(--glacier-hi); }
.customer-category input { flex: 0 0 auto; width: 18px; height: 18px; accent-color: var(--forest); margin: 0; }
.customer-upload { position: relative; display: grid; justify-items: center; text-align: center; padding: 28px 16px; margin: 8px 0 24px; border: 2px dashed var(--glacier-deep); border-radius: var(--radius); background: var(--glacier-hi); }
.customer-upload.is-dragging, .customer-upload:focus-within { border-color: var(--forest); background: var(--glacier); }
.customer-upload input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.customer-upload strong { display: block; margin-bottom: 8px; }
.customer-upload small { display: block; margin-top: 8px; }
.customer-file-selection { padding: 0; margin: 0 0 24px; list-style: none; }
.customer-file-selection li { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-block: 8px; }
.customer-file-selection span { min-width: 0; overflow-wrap: anywhere; }
.customer-file-selection button { flex-shrink: 0; min-height: 44px; min-width: 44px; border: 0; border-radius: var(--radius-sm); background: var(--fog); }
.demo-note { padding: 14px 16px; background: var(--glacier-hi); border-radius: var(--radius-sm); font-size: .8125rem; }
.customer-help { font-size: .875rem; }
.customer-help a { text-decoration: underline; text-underline-offset: 3px; }
.customer-notice { padding: 16px 20px; background: var(--glacier); border-radius: var(--radius-sm); margin-bottom: 24px; }
.customer-details { display: grid; gap: 0; margin: 0; }
.customer-details > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.customer-details > div:first-child { padding-top: 0; }
.customer-details > div:last-child { border-bottom: 0; }
.customer-details dt { font-size: .8125rem; margin-bottom: 6px; }
.customer-details dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.customer-message { padding: 22px; background: var(--fog); border-radius: var(--radius); }
.customer-message.is-reply { background: var(--glacier-hi); }
.customer-message p { white-space: pre-wrap; }
.customer-message > :last-child { margin-bottom: 0; }
.customer-message-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; margin-bottom: 16px; font-size: .8125rem; }
.customer-file-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.customer-file-card { text-align: left; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; width: 100%; color: var(--ink); font: inherit; }
.customer-file-card:hover { border-color: var(--forest); }
.customer-file-icon { display: grid; place-items: center; min-width: 48px; height: 48px; padding: 8px; background: var(--glacier); border-radius: var(--radius-sm); font-size: .75rem; }
.customer-file-card strong { font-size: .9375rem; }
.customer-file-card small { font-size: .8125rem; }
.customer-attachment { display: inline-flex; min-height: 44px; padding: 10px 12px; margin: 4px 8px 4px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); max-width: 100%; overflow-wrap: anywhere; text-align: left; }
.customer-price { font: 500 clamp(2rem, 4vw, 3.4rem)/1.2 var(--font-display); margin-block: 24px !important; }
.customer-price small { display: block; font: 400 .9375rem/1.6 var(--font-sans); margin-top: 10px; }
.customer-plan > span, .customer-plan > strong { display:block; }
.customer-price .customer-price-period { display:inline; margin:0; }
.customer-benefits { padding: 0; margin: 28px 0; list-style: none; display: grid; gap: 16px; }
.customer-benefits li { display: flex; gap: 12px; }
.customer-benefits li::before { content: '✓'; }
.customer-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 16px 36px 24px; font-size: .8125rem; }
.customer-footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; }
.customer-dialog { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 32px); color: var(--ink); background: var(--white); }
.customer-dialog::backdrop { background: rgb(16 20 18 / 50%); }
.customer-dialog form { text-align: right; margin-bottom: 24px; }
.login-page { min-height: 100dvh; display: flex; flex-direction: column; }
.login-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 36px; }
.login-main { flex: 1; display: grid; place-items: center; padding: 24px 20px 48px; }
.login-card { width: 100%; max-width: 540px; padding: clamp(24px, 4vw, 44px); }
.login-card h1 { font-size: clamp(2rem, 3vw, 2.6rem); }
.login-card form .button { width: 100%; margin-bottom: 12px; }
.login-footer { text-align: center; padding: 0 20px 24px; font-size: .8125rem; }
@media (max-width: 1199px) {
  .customer-columns, .customer-form-layout { grid-template-columns: minmax(0, 1fr); }
  .customer-hero { grid-template-columns: minmax(0, 1fr); }
  .customer-hero > .button { justify-self: start; }
  .customer-file-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .customer-shell { grid-template-columns: minmax(0, 1fr); }
  .customer-sidebar { position: static; padding: 18px 24px; border-right: 0; border-bottom: 1px solid var(--line); max-height: none; }
  .customer-brand-row { margin-bottom: 0; }
  .customer-menu-toggle { display: inline-flex; }
  .customer-nav-wrap { display: none; margin-top: 24px; }
  .customer-sidebar.menu-expanded .customer-nav-wrap { display: block; }
  .customer-nav-wrap nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-account { margin-top: 20px; padding-top: 20px; }
  .customer-topbar { padding: 18px 24px; }
  .customer-main { padding: 28px 24px; }
  .customer-footer { padding-inline: 24px; }
}
@media (max-width: 540px) {
  .customer-sidebar { padding: 16px; }
  .customer-topbar { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
  .customer-main { padding: 28px 16px; }
  .customer-card { padding: 22px; border-radius: var(--radius); }
  .customer-shortcuts, .customer-category-grid, .customer-file-grid, .customer-nav-wrap nav { grid-template-columns: minmax(0, 1fr); }
  .customer-request { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .customer-actions { align-items: stretch; flex-direction: column; }
  .customer-hero > .button { width: 100%; }
  .customer-footer { padding-inline: 16px; }
  .customer-message { padding: 16px; }
  .login-header { padding: 16px; flex-wrap: wrap; }
  .login-main { padding-inline: 16px; }
  .customer-upload { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .customer-area *, .customer-area *::before, .customer-area *::after { transition: none !important; scroll-behavior: auto !important; }
}
