:root {
  --app-bg: #eef0f3;
  --surface: #ffffff;
  --surface-soft: #f5f6f8;
  --text: #171c22;
  --muted: #8c929b;
  --border: #d8dde4;
  --line: rgba(23, 28, 34, 0.14);
  --primary: #bd00f5;
  --orange: #ff7a1a;
  --amber: #ffb12f;
  --pink: #f44f86;
  --violet: #b700f2;
  --blue: #246bfe;
  --green: #10a87d;
  --shadow: 0 34px 70px rgba(25, 31, 38, 0.18);
  --soft-shadow: 0 12px 30px rgba(27, 35, 44, 0.08);
  --radius: 30px;
  --small-radius: 16px;
  --rail-width: 270px;
  --nav-blue: #2484f1;
  --nav-orange: #ff7a1a;
  --nav-slate: #64748b;
  --nav-green: #10a87d;
  --nav-violet: #9b35f0;
  --nav-cyan: #06a8d8;
  --nav-pink: #f44f86;
  --nav-amber: #f59e0b;
  --nav-dark: #1f2937;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #ffffff;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: var(--text);
  background: #ffffff;
  letter-spacing: 0;
}

body.app-shell {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  display: grid;
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
  overflow: visible;
  background: var(--surface);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
}

.sidebar {
  width: var(--rail-width);
  min-height: 100vh;
  position: sticky;
  top: 0;
  padding: 32px 18px;
  background: #ffffff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 28px;
  z-index: 20;
}

.brand {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(20, 25, 31, 0.08);
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand strong {
  display: block;
  color: #1d2633;
  font-size: 17px;
  line-height: 1.2;
}

.brand span {
  display: block;
  margin-top: 4px;
  color: #7b8494;
  font-size: 13px;
}

.nav-label {
  padding: 0 12px 4px;
  color: #7b8494;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
}

.nav-link {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-radius: 16px;
  color: #435169;
  text-decoration: none;
  font-weight: 800;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.nav-link:hover {
  background: color-mix(in srgb, var(--nav-accent, #2484f1) 10%, #ffffff);
  transform: translateY(-1px);
}

.nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--nav-accent, #2484f1), color-mix(in srgb, var(--nav-accent, #2484f1) 72%, #111827));
  box-shadow: 0 12px 24px color-mix(in srgb, var(--nav-accent, #2484f1) 28%, transparent);
}

.nav-icon {
  width: 31px;
  height: 31px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 31px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--nav-accent, #2484f1) 14%, #ffffff);
  color: var(--nav-accent, #2484f1);
  text-align: center;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.nav-link.active .nav-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.app-content {
  min-width: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.topbar {
  height: 92px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #ffffff;
}

.topbar-left,
.topbar-right {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.page-kicker {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-title {
  margin: 0;
  color: #1d242b;
  font-size: 24px;
  font-weight: 750;
  line-height: 1.2;
}

.topbar-time {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #f1f2f4;
  color: var(--text);
  cursor: pointer;
}

.quick-search {
  position: relative;
  width: min(360px, 32vw);
}

.quick-search input,
.search-form input,
.top-bar input,
input[type="text"],
input[type="number"],
input[type="date"],
input[type="email"],
input[type="password"],
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 15px;
  border: 0;
  border-radius: 15px;
  background: #f3f4f6;
  color: var(--text);
  outline: none;
  transition: box-shadow 160ms ease, background-color 160ms ease;
}

.quick-search input:focus,
.search-form input:focus,
.top-bar input:focus,
input:focus,
select:focus,
textarea:focus {
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(189, 0, 245, 0.12), 0 10px 24px rgba(28, 34, 42, 0.08);
}

.quick-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  max-height: 320px;
  overflow-y: auto;
  display: none;
  background: #ffffff;
  border: 1px solid rgba(23, 28, 34, 0.08);
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
  z-index: 50;
}

.quick-results a {
  display: block;
  padding: 12px 14px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid #f0f1f3;
}

.quick-results a:hover {
  background: #faf2ff;
}

.quick-results-heading {
  display: block;
  padding: 9px 14px;
  background: #f6f7f9;
  color: #747d8c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-content {
  width: 100%;
  flex: 1;
  padding: 0 0 0 0;
  overflow: visible;
}

.dashboard-studio {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 354px;
  border-top: 1px solid transparent;
}

.control-stage {
  min-width: 0;
  padding: 22px 28px 28px;
  border-right: 1px solid var(--line);
}

.dashboard-hero-panel {
  min-height: 138px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px;
  border-radius: 24px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 112, 35, 0.96), rgba(238, 77, 137, 0.94) 50%, rgba(189, 0, 245, 0.96)),
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.3), transparent 36%);
  box-shadow: 0 24px 54px rgba(189, 0, 245, 0.18);
}

.dashboard-hero-panel .eyebrow,
.dashboard-hero-panel .dashboard-copy {
  color: rgba(255, 255, 255, 0.84);
}

.dashboard-hero-panel h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.dashboard-hero-panel .dashboard-copy {
  max-width: 660px;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 750;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: 260px;
}

.hero-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  text-decoration: none;
  font-weight: 850;
  backdrop-filter: blur(14px);
}

.hero-button.primary {
  background: #ffffff;
  color: #1e2632;
}

.purchase-inbox-alert {
  position: relative;
  overflow: hidden;
  min-height: 74px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(203, 32, 232, 0.16);
  border-radius: 20px;
  background: linear-gradient(135deg, #fff8fb 0%, #ffffff 55%, #f7fbff 100%);
  color: #1e2632;
  text-decoration: none;
  box-shadow: 0 16px 40px rgba(189, 0, 245, 0.09);
  animation: purchaseAlertGlow 2.4s ease-in-out infinite;
}

.purchase-inbox-alert::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.72) 42%, transparent 58%);
  transform: translateX(-120%);
  animation: purchaseAlertSweep 3.2s ease-in-out infinite;
  pointer-events: none;
}

.purchase-inbox-alert:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 48px rgba(189, 0, 245, 0.13);
}

.purchase-inbox-dot {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #ff861f, #cb20e8);
  font-weight: 900;
  box-shadow: 0 0 0 0 rgba(203, 32, 232, 0.32);
  animation: purchaseDotPulse 1.45s ease-in-out infinite;
}

.purchase-inbox-alert strong,
.purchase-inbox-alert small {
  display: block;
}

.purchase-inbox-alert small {
  margin-top: 3px;
  color: #747d8c;
  font-weight: 750;
}

.purchase-inbox-alert b {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 13px;
  background: #1e2632;
  color: #ffffff;
  font-size: 13px;
}

@keyframes purchaseAlertGlow {
  0%, 100% {
    border-color: rgba(203, 32, 232, 0.16);
    box-shadow: 0 16px 40px rgba(189, 0, 245, 0.09);
  }
  50% {
    border-color: rgba(255, 134, 31, 0.28);
    box-shadow: 0 20px 54px rgba(203, 32, 232, 0.17);
  }
}

@keyframes purchaseAlertSweep {
  0%, 42% {
    transform: translateX(-120%);
  }
  72%, 100% {
    transform: translateX(120%);
  }
}

@keyframes purchaseDotPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(203, 32, 232, 0.32);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 10px rgba(203, 32, 232, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .purchase-inbox-alert,
  .purchase-inbox-alert::before,
  .purchase-inbox-dot {
    animation: none;
  }
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.dashboard-metrics article {
  min-height: 96px;
  padding: 15px 18px;
  border-radius: 18px;
  background: #f6f7f9;
  border: 1px solid rgba(23, 28, 34, 0.08);
}

.dashboard-metrics span,
.dashboard-metrics small {
  display: block;
  color: #747d8c;
  font-size: 13px;
  font-weight: 800;
}

.dashboard-metrics strong {
  display: block;
  margin: 8px 0 5px;
  color: #1e2632;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1;
  font-weight: 850;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.stage-header,
.summary-top,
.view-header,
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage-header h2,
.summary-top h2,
.view-header h1,
.top-bar h1,
h1 {
  margin: 0;
  color: #1b2229;
  font-size: 22px;
  font-weight: 750;
  line-height: 1.22;
}

.dashboard-copy {
  max-width: 760px;
  margin: 10px 0 0;
  color: #657083;
  font-size: 15px;
  line-height: 1.55;
}

.dashboard-copy.small {
  max-width: 680px;
  margin-top: -8px;
  margin-bottom: 14px;
  font-size: 13px;
}

.icon-action {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #f2f3f5;
  color: #161d24;
  text-decoration: none;
  font-size: 28px;
  font-weight: 400;
}

.status-dial-wrap {
  position: relative;
  min-height: 250px;
  display: grid;
  place-items: center;
}

.status-dial {
  width: 198px;
  height: 198px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    conic-gradient(
      from 220deg,
      var(--orange) 0 var(--offen),
      var(--violet) var(--offen) var(--bearbeitung),
      var(--pink) var(--bearbeitung) 100%
    );
  box-shadow: 0 18px 32px rgba(239, 88, 85, 0.18);
}

.status-dial::before {
  content: "";
  position: absolute;
  width: 234px;
  height: 234px;
  border-radius: 50%;
  border: 2px solid #f0f1f3;
  box-shadow: inset 0 0 0 20px rgba(246, 247, 249, 0.7);
  pointer-events: none;
}

.status-dial-inner {
  position: relative;
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #edf0f3, 0 14px 28px rgba(17, 24, 31, 0.13);
}

.status-dial-inner span {
  display: block;
  font-size: 38px;
  line-height: 1;
  font-weight: 650;
}

.status-dial-inner small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.dial-side {
  position: absolute;
  top: 48%;
  transform: translateY(-50%);
  color: #1f252c;
  text-align: center;
}

.dial-side.left {
  left: 10%;
}

.dial-side.right {
  right: 10%;
}

.dial-side strong {
  display: block;
  font-size: 22px;
  font-weight: 750;
}

.dial-side span {
  color: var(--muted);
  font-size: 13px;
}

.section-title {
  margin-bottom: 12px;
  color: #1c232a;
  font-size: 18px;
  font-weight: 750;
}

.bar-row {
  height: 108px;
  display: grid;
  grid-template-columns: repeat(10, minmax(18px, 1fr));
  align-items: end;
  gap: 16px;
  padding: 0 8px;
}

.bar-row span {
  height: var(--h);
  min-height: 34px;
  border-radius: 10px;
  background: #ededee;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}

.bar-row .hot {
  background: linear-gradient(180deg, #ffbd35, #ff711f);
}

.bar-row .pink {
  background: linear-gradient(180deg, #fb5ca4, #f0526b);
}

.premium-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.premium-card {
  min-height: 128px;
  padding: 18px 22px;
  border-radius: 18px;
  color: #ffffff;
  box-shadow: 0 18px 32px rgba(21, 27, 34, 0.12);
}

.premium-card span,
.premium-card small {
  display: block;
  font-weight: 750;
}

.premium-card span {
  font-size: 18px;
}

.premium-card strong {
  display: block;
  margin-top: 22px;
  font-size: 32px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.info-strip div {
  padding: 18px;
  border-radius: 18px;
  background: #f6f7f9;
  border: 1px solid rgba(23, 28, 34, 0.08);
}

.info-strip span,
.info-strip small {
  display: block;
  color: #747d8c;
  font-size: 13px;
  font-weight: 750;
}

.info-strip strong {
  display: block;
  margin: 7px 0;
  color: #1e2632;
  font-size: 24px;
}

.premium-card small {
  margin-top: 8px;
  opacity: 0.82;
}

.premium-card.orange {
  background: linear-gradient(135deg, #ff6625 0%, #ffb52f 100%);
}

.premium-card.violet {
  background: linear-gradient(135deg, #d600f7 0%, #8e00e8 100%);
}

.premium-card.rose {
  background: linear-gradient(135deg, #ff6b70 0%, #ef4c90 100%);
}

.summary-panel {
  padding: 32px;
  background: #ffffff;
}

.summary-top span {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.summary-hero {
  display: grid;
  grid-template-columns: 82px 1fr 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 34px;
}

.summary-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  color: #ffffff;
  font-weight: 800;
}

.summary-hero span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.summary-hero strong {
  display: block;
  margin-top: 5px;
  font-size: 38px;
  line-height: 1;
  font-weight: 650;
}

.progress-block {
  margin-top: 28px;
}

.progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
}

.progress-label span {
  color: #1f252c;
  font-weight: 750;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #ececef;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d800f5, #822cff);
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.device-tile {
  min-height: 104px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border-radius: 18px;
  text-decoration: none;
  color: #ffffff;
}

.device-tile span {
  font-size: 22px;
  font-weight: 750;
}

.device-tile small {
  font-size: 12px;
  font-weight: 750;
  text-align: center;
  line-height: 1.2;
}

.device-tile.orange {
  background: linear-gradient(135deg, #ff7023, #ffaa2a);
}

.device-tile.purple {
  background: linear-gradient(135deg, #d000f5, #9215ef);
}

.device-tile.pink {
  background: linear-gradient(135deg, #ff6c79, #ee4d89);
}

.device-tile.soft {
  color: #a5a9af;
  background: #f0f0f1;
}

.mini-chart {
  margin-top: 42px;
}

.mini-chart svg {
  width: 100%;
  height: 148px;
  display: block;
  overflow: visible;
}

.mini-chart polyline {
  fill: none;
  stroke: url("#sparkGradient");
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mini-chart svg polyline {
  stroke: #bd00f5;
}

.panel,
.card,
.login-card {
  background: #ffffff;
  border: 1px solid rgba(23, 28, 34, 0.08);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(18, 25, 32, 0.07);
}

.full-card {
  margin: 28px 32px 34px;
  padding: 24px;
}

.metric-subtext {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.form-page {
  max-width: 980px;
}

.premium-form {
  margin-top: 26px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: #303840;
  font-size: 13px;
  font-weight: 800;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.notice {
  margin-top: 22px;
  padding: 13px 15px;
  border-radius: 15px;
  font-weight: 750;
}

.notice.success {
  color: #0d7759;
  background: #e9fbf5;
}

.notice.error {
  color: #bd2730;
  background: #fff0f1;
}

.list-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.list-kpis article {
  padding: 20px;
  border-radius: 18px;
  background: #f6f7f9;
  border: 1px solid rgba(23, 28, 34, 0.08);
}

.list-kpis span,
.list-kpis small {
  display: block;
  color: #747d8c;
  font-size: 13px;
  font-weight: 750;
}

.list-kpis strong {
  display: block;
  margin: 8px 0;
  color: #1e2632;
  font-size: 28px;
  line-height: 1.1;
}

.list-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}

.result-panel {
  margin-top: 24px;
  padding: 24px;
  border-radius: 20px;
  color: #ffffff;
  background: linear-gradient(135deg, #ff7023, #d000f5);
  box-shadow: 0 18px 32px rgba(21, 27, 34, 0.12);
}

.result-panel span,
.result-panel small {
  display: block;
  font-weight: 750;
}

.result-panel strong {
  display: block;
  margin: 10px 0;
  font-size: 38px;
  line-height: 1;
}

.valuation-page {
  max-width: 1180px;
}

.valuation-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 24px;
  padding: 28px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #ff7023 0%, #ef4d87 48%, #bd00f5 100%);
  box-shadow: 0 22px 48px rgba(189, 0, 245, 0.18);
}

.valuation-hero span,
.valuation-hero small {
  display: block;
  font-weight: 800;
}

.valuation-hero strong {
  display: block;
  margin: 10px 0;
  font-size: 52px;
  line-height: 1;
}

.valuation-hero .btn {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.valuation-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.valuation-actions form {
  margin: 0;
}

.valuation-actions .btn {
  min-width: 178px;
}

.valuation-breakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.valuation-breakdown article {
  padding: 20px;
  border-radius: 18px;
  background: #f6f7f9;
  border: 1px solid rgba(23, 28, 34, 0.08);
}

.valuation-breakdown span,
.valuation-breakdown small {
  display: block;
  color: #747d8c;
  font-size: 13px;
  font-weight: 800;
}

.valuation-breakdown strong {
  display: block;
  margin: 8px 0;
  color: #1e2632;
  font-size: 28px;
  line-height: 1.1;
}

.valuation-form {
  margin-top: 28px;
}

.online-market-panel {
  margin-top: 24px;
  padding: 22px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(23, 28, 34, 0.08);
  box-shadow: 0 12px 28px rgba(18, 25, 32, 0.05);
}

.online-price-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.online-price-list article {
  padding: 16px;
  border-radius: 16px;
  background: #f6f7f9;
  border: 1px solid rgba(23, 28, 34, 0.08);
}

.online-price-list span,
.online-price-list small {
  display: block;
  color: #747d8c;
  font-size: 12px;
  font-weight: 800;
}

.online-price-list strong {
  display: block;
  margin: 7px 0;
  color: #1e2632;
  font-size: 22px;
}

.search-form,
form.suche-form {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(560px, 100%);
}

.btn,
a.btn,
button,
input[type="submit"] {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border: 0;
  border-radius: 15px;
  background: #171c22;
  color: #ffffff;
  text-decoration: none;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover,
a.btn:hover,
button:hover,
input[type="submit"]:hover {
  background: #2b323a;
}

.btn.secondary {
  color: #20262d;
  background: #f1f2f4;
}

.table-responsive {
  margin-top: 20px;
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid rgba(23, 28, 34, 0.08);
  background: #ffffff;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th {
  padding: 14px 16px;
  background: #f7f8fa;
  color: #7b828b;
  border-bottom: 1px solid #eceef1;
  text-align: left;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

td {
  padding: 15px 16px;
  border-bottom: 1px solid #f0f1f3;
  vertical-align: top;
}

.table-subline {
  display: block;
  margin-top: 4px;
  color: #8d96a5;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.customer-contact-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(23, 28, 34, 0.08);
  border-radius: 14px;
  background: #f8fafc;
  color: #5f6d80;
  font-size: 13px;
  font-weight: 850;
}

.customer-contact-box strong {
  color: #17212f;
}

.customer-contact-box span {
  overflow-wrap: anywhere;
}

tbody tr:hover {
  background: #fcf7ff;
}

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

.action-buttons,
td[data-label="Aktionen"] {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.action-buttons a,
td[data-label="Aktionen"] a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 12px;
  background: #f2f3f5;
  color: #20262d;
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
}

.order-actions {
  min-width: 390px;
  align-items: center;
}

.order-actions .action-pill {
  min-height: 38px;
  gap: 7px;
  padding: 7px 11px 7px 8px;
  border: 1px solid rgba(23, 28, 34, 0.08);
  border-radius: 13px;
  background: #f6f7f9;
  color: #293241;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.order-actions .action-pill:hover {
  transform: translateY(-1px);
  background: #ffffff;
  border-color: rgba(30, 102, 212, 0.22);
}

.order-actions .action-pill.primary {
  color: #ffffff;
  background: linear-gradient(135deg, #1677e8, #2496f2);
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(24, 123, 232, 0.2);
}

.order-actions .action-pill.primary:hover {
  background: linear-gradient(135deg, #1267d2, #1687e7);
}

.order-actions .action-pill.danger {
  color: #c3333b;
  background: #fff2f3;
  border-color: rgba(214, 69, 78, 0.2);
}

.order-actions .action-pill.danger:hover {
  color: #ffffff;
  background: #d63f49;
  border-color: #d63f49;
}

.action-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(32, 38, 45, 0.08);
  color: inherit;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.action-pill.primary .action-icon {
  background: rgba(255, 255, 255, 0.2);
}

.action-pill.danger .action-icon {
  background: rgba(214, 69, 78, 0.12);
}

.action-pill.danger:hover .action-icon {
  background: rgba(255, 255, 255, 0.18);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fbebff;
  color: #a000d4;
  font-size: 12px;
  font-weight: 800;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  min-width: 40px;
  padding: 10px 12px;
  border-radius: 13px;
  background: #f1f2f4;
  color: #20262d;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
}

.pagination a:hover,
.pagination .active {
  background: #171c22;
  color: #ffffff;
}

.text-success { color: var(--green); }
.text-warning { color: var(--orange); }
.text-info { color: var(--blue); }
.text-danger { color: #d74444; }

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 36px;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 123, 27, 0.16), transparent 32%),
    radial-gradient(circle at 78% 70%, rgba(189, 0, 245, 0.16), transparent 30%),
    linear-gradient(135deg, #eceef2, #ffffff);
}

.login-shell {
  width: min(1020px, 100%);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.login-brand {
  min-height: 520px;
  padding: 48px;
  color: #ffffff;
  background: linear-gradient(135deg, #151b22 0%, #242b33 42%, #bd00f5 150%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.login-brand img {
  width: min(340px, 100%);
}

.login-brand h1 {
  margin-top: 42px;
  color: #ffffff;
  font-size: 42px;
}

.login-brand p {
  max-width: 440px;
  color: rgba(255,255,255,0.74);
  line-height: 1.6;
}

.login-card {
  padding: 44px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-card h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.login-card p {
  margin: 0 0 26px;
  color: var(--muted);
}

.form-group {
  margin-bottom: 17px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #303840;
  font-size: 13px;
  font-weight: 800;
}

.error {
  padding: 12px 14px;
  border-radius: 15px;
  background: #fff0f1;
  color: #bd2730;
  margin-bottom: 17px;
}

@media (max-width: 1180px) {
  body.app-shell {
    width: 100%;
    margin: 0;
    min-height: 100vh;
  }

  .dashboard-studio {
    grid-template-columns: 1fr;
  }

  .control-stage {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .dashboard-hero-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-actions {
    justify-content: flex-start;
    min-width: 0;
  }

  .dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .summary-top,
  .summary-hero,
  .progress-block,
  .device-grid,
  .mini-chart {
    margin-top: 0;
  }
}

@media (max-width: 820px) {
  body.app-shell {
    display: block;
    border-radius: 0;
    width: 100%;
    min-height: 100vh;
    margin: 0;
  }

  .sidebar {
    position: fixed;
    top: 82px;
    left: 14px;
    right: 14px;
    width: auto;
    max-height: calc(100vh - 104px);
    min-height: auto;
    padding: 14px;
    border: 0;
    border-radius: 22px;
    box-shadow: var(--soft-shadow);
    overflow-y: auto;
    flex-direction: column;
    transform: translateY(-140%);
    transition: transform 180ms ease;
  }

  .sidebar.active {
    transform: translateY(0);
  }

  body.nav-open .page-content {
    padding-top: 560px;
  }

  .brand {
    display: none;
  }

  .nav-group {
    flex: 1;
    flex-direction: column;
    justify-content: flex-start;
    gap: 7px;
  }

  .nav-link {
    width: 100%;
    height: auto;
    min-height: 46px;
    padding: 0 14px;
    justify-content: flex-start;
  }

  .nav-label {
    display: block;
  }

  .nav-link span:not(.nav-icon) {
    display: inline;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .topbar {
    height: 82px;
    padding: 0 18px;
  }

  .quick-search,
  .topbar-time {
    display: none;
  }

  .control-stage,
  .summary-panel {
    padding: 22px 18px;
  }

  .dashboard-hero-panel {
    min-height: 0;
    padding: 22px;
    border-radius: 22px;
  }

  .dashboard-hero-panel h2 {
    font-size: 38px;
  }

  .dashboard-metrics {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .hero-button {
    width: 100%;
  }

  .purchase-inbox-alert {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .purchase-inbox-alert b {
    grid-column: 1 / -1;
    width: 100%;
  }

  .status-dial-wrap {
    min-height: 240px;
  }

  .status-dial {
    width: 188px;
    height: 188px;
  }

  .status-dial::before {
    width: 220px;
    height: 220px;
  }

  .status-dial-inner {
    width: 132px;
    height: 132px;
  }

  .dial-side.left {
    left: 0;
  }

  .dial-side.right {
    right: 0;
  }

  .premium-cards,
  .summary-panel,
  .login-shell {
    grid-template-columns: 1fr;
  }

  .summary-hero {
    grid-template-columns: 76px 1fr 1fr;
  }

  .device-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .full-card {
    margin: 18px;
    padding: 18px;
  }

  .view-header,
  .top-bar,
  .search-form,
  form.suche-form {
    align-items: stretch;
    flex-direction: column;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    justify-content: stretch;
  }

  .list-kpis {
    grid-template-columns: 1fr;
  }

  .list-toolbar {
    display: block;
  }

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

  .valuation-actions,
  .valuation-actions form,
  .valuation-actions .btn {
    width: 100%;
  }

  .valuation-hero strong {
    font-size: 40px;
  }

  .valuation-breakdown {
    grid-template-columns: 1fr;
  }

  .online-price-list {
    grid-template-columns: 1fr;
  }

  .table-responsive {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 12px;
  }

  thead {
    display: none;
  }

  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  tbody tr {
    overflow: hidden;
    border: 1px solid rgba(23, 28, 34, 0.08);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(18, 25, 32, 0.05);
  }

  tbody tr:hover {
    background: #ffffff;
  }

  td {
    min-height: 44px;
    display: grid;
    grid-template-columns: minmax(94px, 34%) 1fr;
    align-items: start;
    gap: 12px;
    padding: 11px 14px;
    border-bottom: 1px solid #f0f1f3;
    word-break: break-word;
  }

  td::before {
    content: attr(data-label);
    color: #8a94a5;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  td:last-child {
    border-bottom: 0;
  }

  td[data-label="Aktionen"],
  .action-buttons,
  .order-actions {
    display: flex;
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    gap: 8px;
  }

  td[data-label="Aktionen"]::before {
    width: 100%;
    flex-basis: 100%;
  }

  td[data-label="Aktionen"] a,
  .action-buttons a,
  .order-actions .action-pill {
    flex: 1 1 calc(50% - 8px);
    min-height: 42px;
  }

  .order-actions .action-pill.primary,
  .order-actions .action-pill.danger {
    flex-basis: 100%;
  }

  td[colspan] {
    display: block;
    text-align: center;
  }

  td[colspan]::before {
    display: none;
  }
}
