*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #ffffff;

  /* Hintergrundbild + Zentrierung */
  background-image: url("Background.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* ====== Card / Panel ====== */
.register-container {
  width: 100%;
  max-width: 420px;

  padding: 32px 28px 26px;
  border-radius: 24px;

  background: linear-gradient(
    135deg,
    rgba(45, 156, 252, 0.2),
    rgba(29, 114, 243, 0.12)
  );
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.85);
}

/* 🔹 Formular schmaler machen, damit Inputs kürzer sind */
.register-container form {
  max-width: 320px;
  margin: 0 auto;
}

/* ====== Headings ====== */
.heading {
  margin: 0 0 4px;
  font-size: 26px;
  font-weight: 700;
}

.subheading {
  margin: 0 0 18px;
  font-size: 14px;
  opacity: 0.85;
}

/* ====== Error message ====== */
.error-message {
  margin: 0 0 16px;
  color: #ff6b6b;
  font-weight: 600;
  font-size: 14px;
}

/* ====== Form groups ====== */
.input-group {
  margin-top: 14px;
}

.input-label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  opacity: 0.9;
}

/* Wrapper (Icon + Input) */
.input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;

  width: 100%;
  padding: 8px 14px;
  border-radius: 999px;

  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.input-icon {
  font-size: 16px;
  opacity: 0.9;
}

/* Input field */
.input-field {
  flex: 1;
  border: none;
  background: transparent;
  color: #e5e7eb;
  font-size: 14px;
  padding: 6px 0;
  outline: none;
}

.input-field::placeholder {
  color: rgba(209, 213, 219, 0.7);
}

/* ====== Buttons ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.btn-primary {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 12px 0;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(90deg, #2d9cfc, #1d72f3);
  cursor: pointer;
  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.45);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

/* ====== Helper text / links ====== */
.helper-text {
  margin-top: 16px;
  font-size: 13px;
  opacity: 0.9;
  text-align: center;
}

.link-inline {
  color: #ffffff;
  text-decoration: underline;
}

.link-inline:hover {
  text-decoration: none;
}

/* ----- HEADER CONTAINER ----- */
.nm-header {
  width: 100%;
  padding: 14px 28px;

  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: rgba(15, 23, 42, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  font-family: system-ui, sans-serif;
}

/* ----- LEFT / BRAND ----- */
.nm-header-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  text-shadow: 0 3px 8px rgba(0,0,0,0.4);
  user-select: none;
}

/* ----- RIGHT / NAVIGATION ----- */
.nm-header-nav a {
  margin-left: 22px;
  font-size: 15px;
  font-weight: 500;
  color: #e5e7eb;
  text-decoration: none;
  transition: 0.15s ease;
}

.nm-header-nav a:hover {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(45, 156, 252, 0.55);
}

/* ➕ Warenkorb-Icon im Header */
.nm-header-nav img {
  height: 18px;          /* passt zur Textgröße der Links */
  width: auto;
  vertical-align: middle;
  opacity: 0.9;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.nm-header-nav a:hover img {
  opacity: 1;
  transform: scale(1.1) translateY(-1px);
}

/* ----- Active item ----- */
.nm-header-nav .active {
  color: #ffffff;
  font-weight: 600;
}

/* Push content down */
.nm-header-space {
  height: 70px;
}

/* ===================================================================== */
/* ================  MARKETPLACE / DASHBOARD STYLES  =================== */
/* ===================================================================== */

/* Spezielle Body-Klasse NUR für das Dashboard */
.nm-body-market {
  /* Hintergrund bleibt vom body-Selektor erhalten */
  display: block;        /* überschreibt flex aus body */
  align-items: initial;  /* sicherheitshalber */
  justify-content: initial;
  padding: 0;            /* Dashboard braucht kein 24px body-padding */
  min-height: 100vh;
}

/* Wrapper for the whole marketplace content */
.nm-market-container {
  max-width: 1100px;
  margin: 110px auto 40px; /* space for header + bottom margin */
  padding: 26px 28px 30px;
  border-radius: 26px;

  background: radial-gradient(circle at top left,
            rgba(37, 99, 235, 0.35),
            rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.95);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nm-market-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}

.nm-market-title {
  font-size: 28px;
  font-weight: 700;
}

.nm-market-subtitle {
  font-size: 14px;
  opacity: 0.85;
}

/* Product grid */
.nm-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 10px;
}

/* Single product card */
.nm-product-card {
  position: relative;
  padding: 18px 18px 20px;
  border-radius: 22px;

  background: radial-gradient(circle at top,
              rgba(30, 64, 175, 0.55),
              rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.95);

  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nm-product-badge {
  position: absolute;
  top: 10px;
  right: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(248, 113, 113, 0.9);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.nm-product-image-circle {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%,
              rgba(56, 189, 248, 0.9),
              rgba(37, 99, 235, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 6px;
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.7);
}

.nm-product-title {
  font-size: 17px;
  font-weight: 600;
}

.nm-product-description {
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.5;
}

.nm-product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  font-size: 14px;
}

.nm-product-price {
  font-weight: 600;
}

.nm-product-price span {
  font-size: 12px;
  opacity: 0.85;
}

.nm-product-cta {
  margin-top: 10px;
}

.nm-product-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(90deg, #2d9cfc, #1d72f3);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.55);
  text-decoration: none;
}

.nm-product-button:hover {
  filter: brightness(1.06);
}

@media (max-width: 600px) {
  .nm-market-container {
    margin: 90px 12px 32px;
    padding: 20px 16px 22px;
  }
}

/* ===================================================================== */
/* ===========  SPEZIELLE VARIANTEN NUR FÜR DAS DASHBOARD  ============= */
/* ===================================================================== */

/* kompakterer Container, damit mehr Hintergrund sichtbar ist */
.nm-market-container--compact {
  max-width: 680px; /* noch schmaler damit 'NEMESIS MARKET' rechts sichtbar wird */
  background: radial-gradient(circle at top left,
            rgba(37, 99, 235, 0.25),
            rgba(15, 23, 42, 0.9));
}

/* genau 2 Spalten auf Desktop, 1 Spalte auf kleineren Screens */
.nm-product-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 800px) {
  .nm-product-grid--two {
    grid-template-columns: 1fr;
  }
}
