* {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;

  font-family: Inter, Arial, Helvetica, sans-serif;

  background: #f4f6f8;
  color: #1f2933;
}

a {
  color: inherit;
}

/* =========================================================
   APP
   ========================================================= */

.backend-app {
  min-height: 100vh;
}

/* =========================================================
   HEADER
   ========================================================= */

.backend-header {
  height: 72px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 32px;

  background: #ffffff;

  border-bottom: 1px solid #e5e7eb;
}

.backend-header__brand {
  display: flex;
  align-items: center;
}

.backend-header__logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.backend-header__logo {
  display: block;
  width: auto;
  height: 43px;
  max-width: 180px;
}

.backend-header__user {
  font-size: 14px;
  font-weight: 600;

  color: #6b7280;
}

/* =========================================================
   LAYOUT
   ========================================================= */

.backend-content {
  display: flex;

  min-height: calc(100vh - 72px);
}

/* =========================================================
   SIDEBAR
   ========================================================= */

.backend-sidebar {
  width: 240px;
  flex-shrink: 0;

  padding: 24px 16px;

  background: #ffffff;

  border-right: 1px solid #e5e7eb;
}

.backend-nav {
  display: flex;
  flex-direction: column;

  gap: 6px;
}

.backend-nav__link {
  display: block;

  padding: 12px 14px;

  color: #4b5563;

  text-decoration: none;
  font-size: 14px;
  font-weight: 600;

  border-radius: 8px;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.backend-nav__link:hover {
  background: #f3f4f6;
  color: #111827;
}

.backend-nav__link--active {
  background: #fce7f3;
  color: #be185d;
}

.backend-nav__separator {
  height: 1px;

  margin: 12px 0;

  background: #e5e7eb;
}

.backend-nav__link--logout {
  color: #b91c1c;
}

.backend-nav__link--logout:hover {
  background: #fef2f2;
  color: #991b1b;
}

/* =========================================================
   MAIN
   ========================================================= */

.backend-main {
  flex: 1;
  min-width: 0;

  padding: 32px;

  overflow: visible;
}

.backend-main h1 {
  margin: 0 0 8px;

  font-size: 28px;
  line-height: 1.2;

  color: #111827;
}

.backend-main p {
  margin-top: 0;

  color: #6b7280;
}

/* =========================================================
   CARDS
   ========================================================= */

.card {
  width: 100%;

  padding: 24px;

  background: #ffffff;

  border: 1px solid #e5e7eb;
  border-radius: 12px;

  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.card--table {
  padding: 0;

  overflow: hidden;
}

/* =========================================================
   PAGE HEADER
   ========================================================= */

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 24px;

  margin-bottom: 28px;
}

.page-header h1 {
  margin: 0 0 8px;
}

.page-header p,
.page-header__subtitle {
  margin: 0;

  font-size: 14px;

  color: #6b7280;
}

.back-link {
  display: inline-block;

  margin-bottom: 14px;

  color: #6b7280;

  font-size: 13px;
  font-weight: 700;

  text-decoration: none;
}

.back-link:hover {
  color: #be185d;
}

/* =========================================================
   DASHBOARD SECTIONS
   ========================================================= */

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 24px;

  margin-bottom: 16px;
}

.section-header h2 {
  margin: 0 0 6px;

  font-size: 20px;

  color: #111827;
}

.section-header p {
  margin: 0;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 40px;

  padding: 0 16px;

  box-sizing: border-box;

  font-family: inherit;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;

  text-decoration: none;

  color: #ffffff;
  background: #be185d;

  border: 1px solid #be185d;
  border-radius: 8px;

  cursor: pointer;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.button:hover {
  background: #9d174d;
  border-color: #9d174d;
}

.button--secondary {
  color: #374151;
  background: #ffffff;

  border-color: #d1d5db;
}

.button--secondary:hover {
  color: #111827;
  background: #f9fafb;

  border-color: #9ca3af;
}

/* =========================================================
   EMPTY STATE
   ========================================================= */

.empty-state {
  padding: 40px 20px;

  text-align: center;
}

.empty-state__title {
  margin-bottom: 8px;

  font-size: 16px;
  font-weight: 700;

  color: #374151;
}

.empty-state__text {
  max-width: 520px;

  margin: 0 auto;

  font-size: 14px;
  line-height: 1.6;

  color: #9ca3af;
}

.empty-state--compact {
  padding: 20px 0;
}

/* =========================================================
   TABLES
   ========================================================= */

.table-wrapper {
  width: 100%;

  overflow-x: auto;
}

.backend-table {
  width: 100%;

  border-collapse: collapse;

  font-size: 14px;
}

.backend-table th {
  padding: 14px 18px;

  text-align: left;

  font-size: 12px;
  font-weight: 700;

  color: #6b7280;

  text-transform: uppercase;
  letter-spacing: 0.04em;

  background: #f9fafb;

  border-bottom: 1px solid #e5e7eb;
}

.backend-table td {
  padding: 16px 18px;

  color: #374151;

  border-bottom: 1px solid #f0f1f3;
}

.backend-table tbody tr:last-child td {
  border-bottom: 0;
}

.backend-table tbody tr:hover {
  background: #fafafa;
}

.table-subtext {
  margin-top: 4px;

  font-size: 12px;

  color: #9ca3af;
}

.table-action {
  width: 1%;

  white-space: nowrap;
}

.table-link {
  color: #be185d;

  font-weight: 700;
  text-decoration: none;
}

.table-link:hover {
  text-decoration: underline;
}

/* =========================================================
   STATUS BADGES
   ========================================================= */

.status-badge {
  display: inline-flex;
  align-items: center;

  padding: 5px 9px;

  border-radius: 999px;

  font-size: 12px;
  font-weight: 700;

  white-space: nowrap;
}

.status-badge--neu {
  background: #fce7f3;
  color: #be185d;
}

.status-badge--in_bearbeitung {
  background: #dbeafe;
  color: #1d4ed8;
}

.status-badge--warten_auf_kunde {
  background: #ffedd5;
  color: #c2410c;
}

.status-badge--angebot_gesendet {
  background: #ede9fe;
  color: #6d28d9;
}

.status-badge--beauftragt {
  background: #dcfce7;
  color: #15803d;
}

.status-badge--in_produktion {
  background: #cffafe;
  color: #0e7490;
}

.status-badge--abholbereit {
  background: #fef9c3;
  color: #854d0e;
}

.status-badge--versandt {
  background: #d1fae5;
  color: #047857;
}

.status-badge--abgeschlossen {
  background: #e5e7eb;
  color: #374151;
}

.status-badge--storniert {
  background: #fee2e2;
  color: #b91c1c;
}

/* =========================================================
   DETAILANSICHT
   ========================================================= */

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 20px;

  margin-bottom: 20px;
}

.detail-section {
  margin-top: 32px;
}

.card-header {
  margin-bottom: 20px;
}

.card-header h2 {
  margin: 0;

  font-size: 18px;
  line-height: 1.3;

  color: #111827;
}

.detail-list {
  display: flex;
  flex-direction: column;
}

.detail-list--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 0 32px;
}

.detail-row {
  display: grid;
  grid-template-columns: 140px 1fr;

  gap: 16px;

  padding: 12px 0;

  border-bottom: 1px solid #f0f1f3;
}

.detail-row:last-child {
  border-bottom: 0;
}

.detail-label {
  font-size: 13px;
  font-weight: 700;

  color: #9ca3af;
}

.detail-value {
  font-size: 14px;
  line-height: 1.5;

  color: #374151;

  word-break: break-word;
}

.detail-value a {
  color: #be185d;

  text-decoration: none;
}

.detail-value a:hover {
  text-decoration: underline;
}

.message-box {
  font-size: 14px;
  line-height: 1.7;

  color: #374151;

  white-space: normal;
}

/*
|--------------------------------------------------------------------------
| Filter Card
|--------------------------------------------------------------------------
*/

.filter-card {
  margin-bottom: 32px;
  padding: 0;
  overflow: hidden;
}

.filter-card__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  padding: 20px 24px;

  cursor: pointer;
  user-select: none;

  list-style: none;
}

.filter-card__summary::-webkit-details-marker {
  display: none;
}

.filter-card__summary::marker {
  display: none;
  content: "";
}

.filter-card__title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.filter-card__subtitle {
  margin-top: 4px;

  font-size: 13px;
  color: #6b7280;
}

.filter-card__toggle {
  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
}

.filter-card__arrow {
  display: inline-block;

  font-size: 18px;
  line-height: 1;

  transition: transform 0.2s ease;
}

.filter-card[open] .filter-card__arrow {
  transform: rotate(180deg);
}

.filter-card__content {
  padding: 24px;

  border-top: 1px solid #e5e7eb;
}

/* =========================================================
   STATUS CONTROL
   ========================================================= */

.status-control {
  min-width: 210px;
}

.status-control__label {
  margin-bottom: 7px;

  font-size: 12px;
  font-weight: 700;

  color: #6b7280;

  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-select {
  width: 100%;
  height: 42px;

  padding: 0 38px 0 12px;

  background: #ffffff;
  color: #374151;

  border: 1px solid #d1d5db;
  border-radius: 8px;

  font-family: inherit;
  font-size: 14px;
  font-weight: 700;

  cursor: pointer;
}

.status-select:hover {
  border-color: #9ca3af;
}

.status-select:focus {
  outline: none;

  border-color: #be185d;

  box-shadow: 0 0 0 3px rgba(190, 24, 93, 0.1);
}

/* =========================================================
   STATUS TIMELINE
   ========================================================= */

.timeline {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  position: relative;

  display: grid;
  grid-template-columns: 18px 1fr;

  gap: 14px;

  padding: 0 0 22px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";

  position: absolute;

  left: 5px;
  top: 12px;
  bottom: -2px;

  width: 2px;

  background: #e5e7eb;
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-item__marker {
  position: relative;
  z-index: 1;

  width: 12px;
  height: 12px;

  margin-top: 5px;

  background: #be185d;

  border: 3px solid #fce7f3;
  border-radius: 50%;
}

.timeline-item__content {
  min-width: 0;
}

.timeline-item__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 8px;
}

.timeline-item__arrow {
  color: #9ca3af;
}

.timeline-item__meta {
  margin-top: 8px;

  font-size: 12px;

  color: #9ca3af;
}

/* =========================================================
   DATEIEN
   ========================================================= */

.file-list {
  display: flex;
  flex-direction: column;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 16px 0;

  border-bottom: 1px solid #f0f1f3;
}

.file-item:first-child {
  padding-top: 0;
}

.file-item:last-child {
  padding-bottom: 0;

  border-bottom: 0;
}

.file-item__info {
  min-width: 0;
}

.file-item__name {
  margin-bottom: 5px;

  font-size: 14px;
  font-weight: 700;

  color: #374151;

  overflow-wrap: anywhere;
}

.file-item__meta {
  font-size: 12px;
  line-height: 1.5;

  color: #9ca3af;
}

.file-item__action {
  flex-shrink: 0;
}

.file-upload {
  display: flex;
  align-items: center;

  gap: 12px;

  margin-bottom: 24px;
  padding: 16px;

  background: #f9fafb;

  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.file-upload__input {
  flex: 1;
  min-width: 0;

  font-size: 13px;

  color: #4b5563;
}

/* =========================================================
   FORMULARE / EINGABEN
   ========================================================= */

.request-form {
  width: 100%;

  display: flex;
  flex-direction: column;

  gap: 20px;
}

.request-form > .card {
  width: 100%;

  margin: 0;
}

.request-form .detail-section {
  margin: 0;
}

.request-form .card-header {
  margin: 0 0 22px;
  padding: 0;
}

.request-form .card-header h2 {
  margin: 0;

  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;

  color: #111827;
}

/* FORM GRID */

.form-grid {
  width: 100%;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 20px 24px;
}

/* FORM FIELD */

.form-field {
  min-width: 0;

  margin: 0;

  display: flex;
  flex-direction: column;

  gap: 7px;
}

.detail-section > .form-field + .form-field {
  margin-top: 20px;
}

/* LABEL */

.form-field label {
  display: block;

  margin: 0;

  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;

  color: #374151;
}

/* INPUTS */

.form-field input,
.form-field select,
.form-field textarea {
  display: block;

  width: 100%;
  max-width: 100%;
  min-width: 0;

  margin: 0;

  padding: 11px 12px;

  box-sizing: border-box;

  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;

  color: #1f2933;
  background: #ffffff;

  border: 1px solid #d1d5db;
  border-radius: 8px;

  outline: none;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.form-field input,
.form-field select {
  height: 42px;
}

.form-field textarea {
  min-height: 150px;
  height: auto;

  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #be185d;

  box-shadow: 0 0 0 3px rgba(190, 24, 93, 0.1);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #9ca3af;
}

/* FORM HELP */

.form-help {
  margin-top: 10px;

  font-size: 12px;
  line-height: 1.5;

  color: #9ca3af;
}

/* DYNAMISCHE BEREICHE */

.form-type-fields {
  width: 100%;
}

.form-type-fields[hidden] {
  display: none !important;
}

/* EMPTY STATE IM FORMULAR */

.request-form .empty-state--compact {
  padding: 12px 0 4px;

  text-align: left;
}

.request-form .empty-state--compact .empty-state__text {
  max-width: none;

  margin: 0;

  font-size: 13px;

  color: #9ca3af;
}

/* FILE INPUT */

.form-field input[type="file"] {
  height: auto;
  min-height: 46px;

  padding: 7px;

  background: #f9fafb;

  cursor: pointer;
}

.form-field input[type="file"]::file-selector-button {
  margin-right: 12px;

  padding: 8px 12px;

  font-family: inherit;
  font-size: 13px;
  font-weight: 700;

  color: #374151;
  background: #ffffff;

  border: 1px solid #d1d5db;
  border-radius: 7px;

  cursor: pointer;
}

/* FORM MELDUNGEN */

.form-message {
  width: 100%;

  margin: 0 0 20px;

  padding: 14px 16px;

  font-size: 14px;
  line-height: 1.5;

  border-radius: 8px;
}

.form-message--error {
  color: #991b1b;
  background: #fee2e2;

  border: 1px solid #fecaca;
}

.form-message--success {
  color: #166534;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
}

/* FORM ACTIONS */

.form-actions {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 12px;

  padding: 4px 0 32px;
}

.form-actions .button {
  width: auto;
  min-width: 140px;
}

/*
|--------------------------------------------------------------------------
| Dashboard
|--------------------------------------------------------------------------
*/

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;

  margin-bottom: 32px;
}

.dashboard-stat-card {
  display: block;

  padding: 24px;

  background: #ffffff;

  border: 1px solid #e5e7eb;
  border-radius: 12px;

  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);

  text-decoration: none;

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.dashboard-stat-card:hover {
  transform: translateY(-2px);

  border-color: #d1d5db;

  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.06);
}

.dashboard-stat-card__label {
  margin-bottom: 12px;

  font-size: 13px;
  font-weight: 700;

  color: #6b7280;
}

.dashboard-stat-card__value {
  margin-bottom: 8px;

  font-size: 34px;
  line-height: 1;

  font-weight: 800;

  color: #111827;
}

.dashboard-stat-card__meta {
  font-size: 12px;

  color: #9ca3af;
}

/*
|--------------------------------------------------------------------------
| Dashboard Card Header
|--------------------------------------------------------------------------
*/

.dashboard-section {
  margin-top: 0;
}

.dashboard-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  padding: 20px 24px;

  border-bottom: 1px solid #e5e7eb;
}

.dashboard-card-header h2 {
  margin: 0 0 4px;

  font-size: 17px;

  color: #111827;
}

.dashboard-card-header p {
  margin: 0;

  font-size: 13px;

  color: #6b7280;
}

.form-field input[readonly] {
  background: #f9fafb;
  color: #6b7280;
}

/*
|--------------------------------------------------------------------------
| Projektstatus
|--------------------------------------------------------------------------
*/

.status-badge--geplant {
  background: #f3f4f6;
  color: #4b5563;
}

.status-badge--fertig {
  background: #dcfce7;
  color: #166534;
}

.status-badge--pausiert {
  background: #fef3c7;
  color: #92400e;
}

/*
|--------------------------------------------------------------------------
| Priorität
|--------------------------------------------------------------------------
*/

.priority-badge {
  display: inline-flex;
  align-items: center;

  padding: 4px 9px;

  border-radius: 999px;

  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.priority-badge--normal {
  background: #f3f4f6;
  color: #4b5563;
}

.priority-badge--hoch {
  background: #ffedd5;
  color: #9a3412;
}

.priority-badge--dringend {
  background: #fee2e2;
  color: #991b1b;
}

/*
|--------------------------------------------------------------------------
| Projekt Detail – Seitenkopf
|--------------------------------------------------------------------------
*/

.project-page-header {
  align-items: center;
}

.project-page-header__info {
  min-width: 0;
}

.project-page-header__info h1 {
  margin-top: 10px;
}

.project-page-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

/*
|--------------------------------------------------------------------------
| Login
|--------------------------------------------------------------------------
*/

.login-page {
  min-height: 100vh;
  margin: 0;

  background: #f4f6f8;

  color: #1f2933;
}

.login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 100vh;

  padding: 32px 20px;
}

.login-card {
  width: 100%;
  max-width: 430px;

  padding: 38px;

  background: #ffffff;

  border: 1px solid #e5e7eb;
  border-radius: 16px;

  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
}

.login-logo {
  display: flex;
  justify-content: center;

  margin-bottom: 34px;
}

.login-logo img {
  display: block;

  width: auto;
  max-width: 210px;
  height: 32px;
}

.login-header {
  margin-bottom: 28px;

  text-align: center;
}

.login-header h1 {
  margin: 0 0 8px;

  color: #111827;

  font-size: 24px;
  font-weight: 800;
}

.login-header p {
  margin: 0;

  color: #6b7280;

  font-size: 13px;
  line-height: 1.6;
}

.login-error {
  margin-bottom: 22px;
  padding: 12px 14px;

  background: #fef2f2;

  border: 1px solid #fecaca;
  border-radius: 9px;

  color: #991b1b;

  font-size: 13px;
  font-weight: 600;
}

.login-form {
  display: flex;
  flex-direction: column;

  gap: 18px;
}

.login-field {
  display: flex;
  flex-direction: column;

  gap: 7px;
}

.login-field label {
  color: #374151;

  font-size: 13px;
  font-weight: 700;
}

.login-field input {
  width: 100%;
  min-height: 46px;

  padding: 11px 13px;

  background: #ffffff;

  border: 1px solid #d1d5db;
  border-radius: 9px;

  color: #111827;

  font: inherit;
  font-size: 14px;

  outline: none;
}

.login-field input:focus {
  border-color: #da3389;

  box-shadow: 0 0 0 3px rgba(218, 51, 137, 0.08);
}

.login-button {
  width: 100%;
  min-height: 46px;

  margin-top: 4px;

  border: 1px solid #da3389;
  border-radius: 9px;

  background: #da3389;

  color: #ffffff;

  font-size: 14px;
  font-weight: 800;

  cursor: pointer;

  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.login-button:hover {
  background: #c72d7c;
  border-color: #c72d7c;
}

.login-footer {
  margin-top: 28px;
  padding-top: 20px;

  border-top: 1px solid #e5e7eb;

  color: #9ca3af;

  font-size: 11px;
  font-weight: 600;

  text-align: center;

  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/*
|--------------------------------------------------------------------------
| Projektstatus Auswahl
|--------------------------------------------------------------------------
*/

.project-status-switch {
  display: flex;
  align-items: center;
  gap: 10px;

  height: 42px;
  padding: 0 12px;

  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
}

.project-status-switch__label {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
}

.project-status-switch__form {
  margin: 0;
}

.project-status-switch__select {
  min-width: 160px;

  padding: 0 28px 0 0;

  border: 0;
  outline: 0;
  background-color: transparent;

  font: inherit;
  font-size: 13px;
  font-weight: 700;

  color: #111827;

  cursor: pointer;
}

/*
|--------------------------------------------------------------------------
| Gefahrenbereich
|--------------------------------------------------------------------------
*/

.danger-zone {
  border-color: #fecaca;
}

.danger-zone__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.danger-zone__title {
  margin: 0 0 6px;
  font-size: 17px;
  color: #991b1b;
}

.danger-zone__text {
  margin: 0;
  max-width: 650px;
  font-size: 13px;
  line-height: 1.6;
  color: #6b7280;
}

/*
|--------------------------------------------------------------------------
| Danger Button
|--------------------------------------------------------------------------
*/

.button--danger {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.button--danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

/*
|--------------------------------------------------------------------------
| Kleine Tabellen-Aktionen
|--------------------------------------------------------------------------
*/

.table-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.table-actions form {
  margin: 0;
}

.button--small {
  min-height: 34px;
  padding: 7px 12px;

  font-size: 12px;
  line-height: 1;
}

/*
|--------------------------------------------------------------------------
| Tabellen-Metadaten
|--------------------------------------------------------------------------
*/

.table-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  padding: 16px 20px;

  border-bottom: 1px solid #e5e7eb;

  background: #ffffff;
}

.table-meta__count {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.table-meta__range {
  font-size: 13px;
  color: #6b7280;
}

/*
|--------------------------------------------------------------------------
| Pagination
|--------------------------------------------------------------------------
*/

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  padding: 18px 20px;

  border-top: 1px solid #e5e7eb;

  background: #ffffff;
}

.pagination__info {
  font-size: 13px;
  color: #6b7280;
}

.pagination__buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pagination__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 36px;
  height: 36px;
  padding: 0 12px;

  border: 1px solid #e5e7eb;
  border-radius: 8px;

  background: #ffffff;

  font-size: 13px;
  font-weight: 600;
  color: #374151;

  text-decoration: none;

  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.pagination__button:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.pagination__button--active {
  background: #da3389;
  border-color: #da3389;
  color: #ffffff;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
  .dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .form-grid,
  .detail-grid,
  .detail-list--grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .project-page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-page-header__actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .project-status-switch {
    flex: 1;
    min-width: 220px;
  }

  .project-status-switch__form {
    flex: 1;
  }

  .project-status-switch__select {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .backend-main {
    padding: 20px;
  }

  .page-header,
  .section-header {
    align-items: stretch;
    flex-direction: column;
  }

  .request-form {
    gap: 16px;
  }

  .form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .form-actions .button {
    width: 100%;
  }

  .danger-zone__content {
    align-items: flex-start;
    flex-direction: column;
  }

  .table-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .pagination {
    align-items: flex-start;
    flex-direction: column;
  }

  .pagination__buttons {
    width: 100%;
    flex-wrap: wrap;
  }
}

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

  .dashboard-card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .file-upload {
    align-items: stretch;
    flex-direction: column;
  }

  .file-upload .button {
    width: 100%;
  }

  .file-item {
    align-items: stretch;
    flex-direction: column;
  }

  .file-item__action .button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .login-wrapper {
    padding: 20px 14px;
  }

  .login-card {
    padding: 30px 22px;
  }
}
