:root {
  --accent: #2563eb;
  --accent-2: #7c3aed;
  --ink: #0f172a;
  --muted: #475569;
  --bg: #f6f8fc;
  --surface: #ffffff;
  --border: #e6eaf2;
  --shadow-sm: 0 1px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.10);
  --control-h: 40px;
}

@font-face {
  font-family: "Material Symbols Outlined";
  font-style: normal;
  font-weight: 100 700;
  src: url("/assets/fonts/material-symbols-outlined.woff2") format("woff2");
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: 500;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

.icon {
  margin-right: 0.35rem;
  opacity: 0.9;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    margin: 0;
    color: var(--ink);
    background-color: var(--bg);
    line-height: 1.6;
}

#background-video {
    display: none;
}


@keyframes navhover {
    0%  { box-shadow: 0 1px 6px rgba(0,0,0,0.04); }
    100% { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
}

nav {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    background-color: rgba(255,255,255,0.92);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.75rem;
    z-index: 10;
    padding: 0.25rem 0.5rem;
}

.meldung {
    justify-content: center;
    align-items: center;
    color:#333333;
    background-color: #f7f7f7;
    padding: 0.25rem 0.5rem;
    border-bottom: 1px solid #eeeeee;
}

nav a {
    color: #111111;
    padding: 0.5rem 0.75rem;
    margin: 0;
    text-decoration: none;
    border-radius: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
    min-height: var(--control-h);
    display: inline-flex;
    align-items: center;
}

nav:hover {
    animation: navhover 0.3s ease-in forwards;
}

.logo {
    flex: 1;
    display: flex;
    justify-content: left;
}

.logo img {
    margin: 0.75rem;
    height: 2rem;
}

.nav-links {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
}

.login-signup {
    flex: 1;
    display: flex;
    justify-content: right;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
}

.login-signup a:hover {
    background-color: #f2f2f2;
}

.nav-links a:hover {
    background-color: #f2f2f2;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    border-radius: 0;
    background-color: var(--surface);
    text-align: left;
    flex: 1;
    margin: 0;
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}


.hero-text h1 {
    margin-top: 0;
    color: #111111;
}

.hero-text form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.suche {
    display: flex; 
    gap: 0.5rem;
}

.suche input[type="text"] {
    flex-grow: 1;
    border-radius: 0; 
    width: 100%;
    box-sizing: border-box;
    background-color: #ffffff;
    color: #111111;
    border: 1px solid #dddddd;
    min-height: var(--control-h);
    padding: 0.6rem 0.75rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.suche button {
    flex-shrink: 0; 
}

.hero-text a{
    text-decoration: none;
}

.hero-text p{
    margin: 1.5rem 0;
    color: #444444;
}

.hero-image img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    width: 100%;
    max-width: 520px;
    height: auto;
    border-radius: 0;
}

footer {
  border-top: 1px solid var(--border);
  box-shadow: none;
  display: flex;
  padding: 2rem;
  background-color: var(--surface);
  color: #666666;
  text-align: center;
  justify-content: center;
}







.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-h);
  line-height: 1.2;
  font-weight: 600;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
  color: #ffffff;
  font-size: 16px;
  background-color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 0;
  cursor: pointer;
  padding: 0.6rem 1rem;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  text-align: center;
}

.button-secondary {
  background-color: #ffffff;
  color: #111111;
  border-color: #dddddd;
}

.button-secondary:hover {
  background-color: #f7f7f7;
}

.button-ghost {
  background-color: transparent;
  color: #111111;
  border-color: transparent;
}

.button-ghost:hover {
  background-color: #f2f2f2;
}

.button[disabled],
button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.button:active {
  transform: translateY(1px);
}

.button:hover {
  background-color: #1d4ed8;
}

.artikelsection {
  padding: 3rem 0;
  background-color: var(--bg);
}

.aktuelleartikel {
  text-align: center;
  color: #111111;
  margin: 0 auto 2rem auto;
  max-width: 100%;
  padding: 0 1.25rem;
  font-weight: 600;
}

.artikel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.artikelkarte {
  background-color: #ffffff;
  padding: 1rem;
  border-radius: 0;
  color: #111111;
  text-align: left;
  border: 1px solid #eeeeee;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.artikelkarte:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.artikelkarte img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 0.75rem;
}

.artikelkarte h3 {
  margin: 0.5rem 0;
  color: #111111;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.artikelkarte p {
  margin: 0.25rem 0 0.5rem 0;
  color: #444444;
}

.verfuegbar {
  padding-top: 0.25rem;
  color: #2e7d32;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  width: 100%;
  min-height: var(--control-h);
  padding: 0.6rem 0.75rem;
  margin-bottom: 1rem;
  background-color: #ffffff;
  color: #111111;
  border: 1px solid #dddddd;
  border-radius: 0;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
  outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
  border-color: #aaaaaa;
}

button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-h);
  line-height: 1.1;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--accent);
  padding: 0.6rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 0;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

button[type="submit"]:hover {
  background-color: #2f6fe6;
}

.notice {
  max-width: 1200px;
  margin: 1rem auto;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.notice.success {
  background: #e8f5e9;
  border-color: #b7e1bc;
  color: #1b5e20;
}

.notice.error {
  background: #ffebee;
  border-color: #ffcdd2;
  color: #b71c1c;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem 1rem;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.page-header h1 {
  margin: 0;
}

.page-hero {
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(124, 58, 237, 0.06));
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.page-hero-content h1 {
  margin-top: 0;
}

.hero-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-title {
  margin: 0 0 1.25rem 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.step {
  border: 1px solid var(--border);
  padding: 1rem;
  background: var(--surface);
}

.step-title {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.step-text {
  color: #444444;
}

.center-actions {
  max-width: 100%;
  margin: 1.75rem auto 0 auto;
  padding: 0 1.25rem;
  display: flex;
  justify-content: stretch;
}

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

.panel {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.two-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.list {
  margin: 0.75rem 0 0 1.1rem;
}

.muted {
  color: #666666;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.03);
  font-size: 0.85rem;
  color: #444444;
  gap: 0.25rem;
}

.callout {
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.empty-state {
  max-width: 720px;
  margin: 2rem auto;
  padding: 2rem;
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
}

.empty-state h2 {
  margin-top: 0;
}

.shop-toolbar {
  max-width: 1200px;
  margin: 0 auto 1rem auto;
  padding: 0 1rem;
}

.shop-title {
  margin: 0 0 0.75rem 0;
}

.shop-filters {
  border: 1px solid #eeeeee;
  background: #ffffff;
  padding: 1rem;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.filter-row {
  display: flex;
  gap: 0.75rem;
  align-items: end;
  flex-wrap: wrap;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 160px;
}

.filter-field.grow {
  flex: 1 1 260px;
  min-width: 240px;
}

.filter-actions {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #444444;
  padding: 0.25rem 0;
}

select,
input[type="number"],
input[type="date"],
input[type="time"] {
  width: 100%;
  min-height: var(--control-h);
  padding: 0.6rem 0.75rem;
  margin-bottom: 1rem;
  background-color: #ffffff;
  color: #111111;
  border: 1px solid #dddddd;
  border-radius: 0;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
  outline: none;
}

select:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus {
  border-color: #aaaaaa;
}

.card-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem;
  margin-top: auto;
  align-items: stretch;
}

.inline-form {
  display: inline;
  margin: 0;
}

.artikelkarte .card-actions .button {
  margin-top: 0;
  width: 100%;
}

.card-actions > a.button,
.card-actions > form {
  width: 100%;
  min-width: 0;
}

.card-actions > form {
  display: block;
  margin: 0;
}

.verfuegbar.is-zero {
  color: #b71c1c;
}

.add-to-cart {
  margin-top: 1rem;
  border-top: 1px solid #eeeeee;
  padding-top: 1rem;
}

.form-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.form-row label {
  min-width: 70px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cart {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr 240px;
  gap: 1rem;
  border: 1px solid #eeeeee;
  background: #ffffff;
  padding: 1rem;
}

.cart-item-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid #eeeeee;
}

.cart-item-title {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.cart-item-title a {
  color: #111111;
  text-decoration: none;
  font-weight: 600;
}

.cart-item-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  color: #444444;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
}

.cart-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid #eeeeee;
  padding-top: 1rem;
}

.cart-total .total {
  font-weight: 600;
  font-size: 1.25rem;
}

.cart-cta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
  align-items: start;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.summary {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #eeeeee;
  padding-bottom: 0.75rem;
}

.summary-title {
  font-weight: 600;
}

.summary-price {
  white-space: nowrap;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.summary-total .total {
  font-weight: 600;
  font-size: 1.25rem;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-container {
  max-width: 460px;
  margin: 2.25rem auto;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  background-color: var(--surface);
  box-shadow: var(--shadow-md);
}

.auth-container h1 {
  margin-top: 0;
  text-align: center;
}

.auth-container form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}

.auth-container input,
.auth-container select,
.auth-container textarea {
  margin-bottom: 0;
}

.auth-footer {
  margin-top: 1rem;
  text-align: center;
  color: var(--muted);
}

.auth-footer a {
  color: var(--accent);
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 0.85rem;
  color: var(--muted);
  font-size: 18px;
  pointer-events: none;
}

.input-with-icon input,
.input-with-icon select {
  padding-left: 2.65rem;
}

.nav-links a,
.login-signup a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  line-height: 1.1;
}

.nav-links a .material-symbols-outlined,
.login-signup a .material-symbols-outlined {
  font-size: 18px;
  transform: translateY(0.5px);
}

.button .material-symbols-outlined {
  font-size: 20px;
}

.nav-links a .icon,
.login-signup a .icon {
  margin-right: 0;
}

.nav-dropdown {
  position: relative;
}

.nav-summary {
  list-style: none;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  min-height: var(--control-h);
}

.nav-summary::-webkit-details-marker {
  display: none;
}

.nav-caret {
  margin-left: 0.1rem;
  font-size: 18px;
  opacity: 0.75;
  transform: translateY(0.5px);
}

.nav-dropdown[open] .nav-summary {
  background: rgba(15, 23, 42, 0.03);
}

.nav-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 200px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  padding: 0.35rem;
  z-index: 30;
}

.nav-menu a {
  width: 100%;
  justify-content: flex-start;
  padding: 0.55rem 0.65rem;
}

.nav-menu a:hover {
  background: rgba(15, 23, 42, 0.03);
}

.nav-dropdown[open] .nav-caret {
  transform: rotate(180deg) translateY(-0.5px);
}

.artikel-details {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.artikel-details img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  border: 1px solid #eeeeee;
  background: #fff;
}

.artikel-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .artikel-details {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .two-panels {
    grid-template-columns: 1fr;
  }
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  .cart-item {
    grid-template-columns: 120px 1fr;
  }
  .cart-item-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: end;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 680px) {
  nav {
    padding: 0.25rem;
  }
  .logo {
    flex: 0 0 auto;
  }
  .nav-links {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .login-signup {
    flex: 0 0 auto;
    justify-content: flex-end;
    white-space: nowrap;
  }
  .hero {
    padding: 2rem 1rem;
  }
  .artikel {
    grid-template-columns: 1fr;
  }
}

.header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-row {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.profile-block {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.profile-avatar {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(124, 58, 237, 0.10));
  color: var(--ink);
  font-weight: 700;
}

.profile-name {
  font-weight: 600;
}

.table-wrap {
  width: 100%;
  overflow: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table th,
.table td {
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0.75rem;
  text-align: left;
  vertical-align: middle;
}

.table thead th {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.02);
}

.table-compact th,
.table-compact td {
  padding: 0.55rem 0.65rem;
}

.right {
  text-align: right;
}

.small {
  font-size: 0.88rem;
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel-head h2 {
  margin: 0;
}

.empty-state.small {
  padding: 1.25rem;
  margin: 0;
}

.badge.danger {
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.08);
  color: #991b1b;
}

.admin-body {
  background: radial-gradient(800px 380px at 12% 0%, rgba(37, 99, 235, 0.16), rgba(246, 248, 252, 0)) , var(--bg);
}

.admin-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem 1rem;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.25rem;
}

.admin-sidebar {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 1rem;
  position: sticky;
  top: 86px;
  height: fit-content;
}

.admin-sidebar-title {
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.admin-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.6rem;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--ink);
  margin-bottom: 0.25rem;
  background: transparent;
}

.admin-link:hover {
  background: rgba(15, 23, 42, 0.03);
}

.admin-link.active {
  border-color: rgba(37, 99, 235, 0.25);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.06));
}

.admin-sidebar-footer {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.admin-main {
  min-width: 0;
}

.admin-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-title {
  font-size: 1.35rem;
  font-weight: 700;
}

.admin-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.kpi-card {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 1rem;
}

.kpi-card.accent {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(124, 58, 237, 0.10));
}

.kpi-label {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.kpi-value {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

.kpi-sub {
  margin-top: 0.25rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.25rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 180px 160px 1fr 160px;
  gap: 0.75rem;
  align-items: end;
}

.form-grid .field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-grid .field.grow {
  grid-column: span 2;
}

.form-grid .field.actions {
  display: flex;
  flex-direction: column;
}

.form-grid input,
.form-grid select,
.inline-edit input,
.inline-edit select,
.inline-edit textarea {
  margin-bottom: 0;
}

.inline-details summary {
  list-style: none;
}

.inline-details summary::-webkit-details-marker {
  display: none;
}

.inline-edit {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.setting {
  border: 1px solid var(--border);
  padding: 1rem;
  background: rgba(15, 23, 42, 0.02);
}

@media (max-width: 1100px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: relative;
    top: auto;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .admin-topbar {
    flex-direction: column;
    align-items: start;
  }
}

.admin-mini-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.admin-mini-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.admin-mini-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.admin-mini-title {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.admin-mini-links {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
