/* ==== Grundlayout ==== */

html, body {
  background-color: #050505;
}

body,
#container {
  background-color: #050505;
  color: #f5f5f5;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Header oben */

#header {
  background: radial-gradient(circle at 0% 0%, #303030 0, #050505 60%);
  border-bottom: 1px solid #2b2b2b;
  padding-inline: 20px;
}

#header a:link,
#header a:visited {
  color: #f5f5f5;
}

#user-tools {
  color: #b3b3b3;
}

/* Branding-Block links */

.porsche-admin-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.porsche-admin-logo {
  height: 32px;
  width: auto;
}

.porsche-admin-branding-text {
  display: flex;
  flex-direction: column;
}

.porsche-admin-title {
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.porsche-admin-subtitle {
  font-size: 0.75rem;
  color: #a0a0a0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Content-Wrapper */

#content {
  margin: 24px;
  padding: 24px;
  border-radius: 18px;
  background: #101010;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  border: 1px solid #262626;
}

#content h1 {
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Breadcrumbs */

div.breadcrumbs {
  background: transparent;
  color: #7a7a7a;
  border-bottom: none;
  padding: 8px 24px 0;
}

div.breadcrumbs a {
  color: #b5b5b5;
}
div.breadcrumbs a:hover {
  color: #ffffff;
}

/* ==== Sidebar / App-Liste ==== */

#content-main {
  color: #f5f5f5;
}

#content-main .module {
  background: #181818;
  border-radius: 16px;
  border: 1px solid #262626;
}

/* Startseite: App-Module */

.dashboard .module h2,
.app-vehicles .module h2 {
  border-bottom: 1px solid #262626;
  padding: 12px 16px;
  margin: 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #f5f5f5;
}

.dashboard .module table,
.app-vehicles .module table {
  width: 100%;
}

.dashboard .module table td,
.dashboard .module table th {
  padding: 8px 16px;
}

.module caption {
  background: transparent;
}

/* ==== Buttons & Actions ==== */

.button,
input[type="submit"],
.submit-row input[type="submit"],
.submit-row input.default,
.object-tools a,
.submit-row a.deletelink {
  background: #e0001b;
  border-radius: 999px;
  border: none;
  padding: 8px 18px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  color: #ffffff !important;
  text-decoration: none !important;
}

.button:hover,
input[type="submit"]:hover,
.submit-row input[type="submit"]:hover,
.submit-row input.default:hover,
.object-tools a:hover,
.submit-row a.deletelink:hover {
  background: #ff2c33;
}

.submit-row {
  border-top: 1px solid #262626;
  background: #121212;
}

/* ==== Change-List als Karten ==== */

.change-list .results {
  margin-top: 1.5rem;
}

.change-list .results table {
  border-collapse: separate;
  border-spacing: 0 0.7rem; /* vertikaler Abstand zwischen „Cards“ */
}

/* Jede Zeile = Card */

.change-list #result_list tbody tr {
  background: #181818;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.7);
  border-radius: 14px;
  overflow: hidden;
  transform: translateY(0);
  transition:
    transform 0.14s ease-out,
    box-shadow 0.14s ease-out,
    background 0.14s ease-out;
}

.change-list #result_list tbody th,
.change-list #result_list tbody td {
  border: none;
  padding: 10px 14px;
  white-space: nowrap;
  font-size: 0.85rem;
}

/* Hover-Effekt */

.change-list #result_list tbody tr:hover {
  transform: translateY(-2px);
  background: #1f1f1f;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85);
}

/* Header-Zeile eher als Label-Zeile */

.change-list #result_list thead th {
  background: transparent;
  border: none;
  color: #8c8c8c;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

/* Checkbox-Spalte schmal halten */

.change-list #result_list tbody td:first-child,
.change-list #result_list tbody th:first-child {
  width: 40px;
}

/* Actions-Bar als Chip */

.change-list .actions {
  background: #151515;
  border-radius: 999px;
  padding: 8px 16px;
  border: 1px solid #262626;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}

/* ==== Detailseiten / Formulare ==== */

#content-main form .module,
#content-main form .inline-group {
  background: #181818;
  border-radius: 16px;
  border: 1px solid #262626;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65);
}

#content-main form .module h2,
.inline-group h2 {
  background: #181818;
  border-bottom: 1px solid #262626;
  padding: 10px 14px;
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #f5f5f5;
}

/* Form-Felder */

.form-row {
  padding: 6px 14px;
  border-bottom: 1px solid #202020;
}

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

.form-row label {
  color: #d0d0d0;
}

/* Inline-Tabellen (TrimOptionInline, OptionInline) */

.inline-group table {
  border-collapse: collapse;
  width: 100%;
}

.inline-group table th,
.inline-group table td {
  border-bottom: 1px solid #252525;
  padding: 6px 8px;
}

.inline-group table tr:nth-child(even) {
  background: #1b1b1b;
}

/* ==== Login-Page ==== */

body.login {
  background: radial-gradient(circle at 0% 0%, #333 0, #050505 60%);
}

.login #header {
  border-bottom: none;
}

.login #content {
  max-width: 420px;
  margin: 60px auto;
  background: #111111;
  border-radius: 18px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.85);
}

.login .form-row label {
  color: #dcdcdc;
}

.login .submit-row {
  background: transparent;
  border-top: none;
}

/* ==== Bildvorschau bei Optionen ==== */

.field-image_preview .option-image-preview {
  display: flex;
  justify-content: flex-end;
  padding-left: 16px;
}

.option-image-preview img {
  max-width: 320px;
  max-height: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid #333333;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.8);
  background: #050505;
}


/* ==== Thumbnails in der Options-Liste ==== */

.p-admin-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 36px;
  border-radius: 10px;
  background: #101010;
  border: 1px solid #262626;
  overflow: hidden;
  margin-right: 4px;
}

.p-admin-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}


/* ==== Thumbnails in der Trim-Liste ==== */

.p-admin-trim-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 40px;
  border-radius: 12px;
  background: #101010;
  border: 1px solid #262626;
  overflow: hidden;
  margin-right: 4px;
}

.p-admin-trim-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

/* ==== Serien-Badge ==== */

.p-admin-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid #333333;
  background: #151515;
  color: #e5e5e5;
}

.p-admin-badge--series {
  border-color: #e0001b;
  color: #ffe5e5;
  background: radial-gradient(circle at 0 0, #4b1016, #140203);
}



/* ==== Dashboard / Startseite ==== */

.p-admin-dashboard {
  margin: 8px 0 0;
}

.p-admin-dashboard-title {
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.p-admin-dashboard-subtitle {
  color: #9a9a9a;
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.p-admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.p-admin-dashboard-card {
  background: #181818;
  border-radius: 18px;
  border: 1px solid #262626;
  padding: 14px 16px 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
}

.p-admin-dashboard-card-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
  color: #f5f5f5;
}

.p-admin-dashboard-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.p-admin-dashboard-card-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
}

.p-admin-dashboard-link {
  color: #e5e5e5;
  text-decoration: none;
  font-size: 0.9rem;
}

.p-admin-dashboard-link:hover {
  text-decoration: underline;
}

.p-admin-dashboard-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid #444;
  font-size: 0.8rem;
  text-decoration: none;
  color: #f5f5f5;
}

.p-admin-dashboard-add:hover {
  border-color: #e0001b;
  color: #ffcacd;
}
