@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #000;
  color: #f5f5f5;
  min-height: 100vh;
}

/* Header / Navigation */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 8vw;
  background: #000;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 20;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo {
  height: 40px;
  width: auto;
  border-radius: 6px;
}

.header-title {
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 14px;
  text-transform: uppercase;
}


.nav-toggle {
  display: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.7);
  padding: 0;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  position: relative;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 0.18s ease-out, opacity 0.18s ease-out;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

/* toggle animation */
body.nav-open .nav-toggle span {
  transform: rotate(45deg);
}

body.nav-open .nav-toggle span::before {
  transform: rotate(-90deg);
  top: 0;
}

body.nav-open .nav-toggle span::after {
  opacity: 0;
}
.nav {
  display: flex;
  gap: 22px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.nav a {
  color: #f5f5f5;
  text-decoration: none;
  opacity: 0.75;
  position: relative;
  padding-bottom: 4px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg,#ff4b6b,#ffcf4b);
  transition: width 0.18s ease-out;
}

.nav a:hover {
  opacity: 1;
}

.nav a:hover::after {
  width: 100%;
}

/* Hero */

.hero {
  position: relative;
  height: 100vh;
  margin: 0 0 32px;
  border-radius: 0;
  overflow: hidden;
  background: #000;
}
.hero-video {
  position: absolute;
  inset: 0;
}

.hero-video iframe {
  width: 100%;
  height: 100%;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top left, rgba(0,0,0,0.2), rgba(0,0,0,0.80));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 7vw;
}

.hero-logo {
  width: 220px;
  height: auto;
  margin-bottom: 12px;
}


.hero-brand {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 10px;
}

.hero-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
}

.hero-sub {
  font-size: 14px;
  opacity: 0.8;
  max-width: 440px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 13px;
  padding: 9px 20px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.btn-primary {
  background: linear-gradient(135deg,#ff334e,#ff9a3c);
  color: #050308;
  box-shadow: 0 0 18px rgba(255,70,70,0.65);
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-secondary {
  background: transparent;
  color: #f5f5f5;
  border: 1px solid rgba(255,255,255,0.22);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.05);
}

/* Sections */

.main-section, .page-wrap {
  margin: 0 8vw 40px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

/* Legendary Car Cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px, 260px));
  justify-content: center;
  gap: 22px;
}

.car-card {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: 26px;

  /* Legendary Card Format: eher hoch als breit */
  aspect-ratio: 2.3 / 3.5;
  max-width: 260px;
  margin: 0 auto;
  min-height: 360px;

  /* Bild wie Pokémon Card */
  background-size: contain;
  background-position: center top;
  background-repeat: no-repeat;
  background-color: #050308;

  padding: 18px 16px 24px;
  border: 2px solid rgba(255, 215, 128, 0.9); /* goldener Rand */
  box-shadow:
    0 0 18px rgba(0,0,0,0.95),
    0 0 40px rgba(255,120,40,0.85);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

/* Innerer Glanz-Rahmen wie Sammelkarte */
.car-card::before {
  content: "";
  position: absolute;
  inset: 8px 8px 34px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.25), transparent 40%),
    radial-gradient(circle at top, rgba(255,255,200,0.3), rgba(255,120,40,0.05), rgba(0,0,0,0.4));
  opacity: 0.9;
  mix-blend-mode: screen;
  pointer-events: none;
}

.car-card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: rgba(255, 230, 160, 1);
  box-shadow:
    0 0 22px rgba(0,0,0,1),
    0 0 52px rgba(255,180,80,0.98);
}

.card-info {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 70px;
  padding: 10px 12px 8px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0.97));
  box-shadow: 0 0 16px rgba(0,0,0,0.9);
}


.card-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #ffe9a0; /* goldener Titel */
}

.card-meta {
  margin-top: 2px;
  font-size: 11px;
  opacity: 0.9;
  color: #f5f5f5;
}
/* Badges wie oben bei einer Sammelkarte */

.card-badge {
  position: absolute;
  top: 12px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: radial-gradient(circle at top, rgba(0,0,0,0.1), rgba(0,0,0,0.85));
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow:
    0 0 10px rgba(0,0,0,0.8),
    0 0 16px rgba(255,255,255,0.18);
}

.badge-price {
  left: 16px;
  color: #ffe1e1;
}

.badge-ps {
  right: 16px;
  color: #ffeaa0;
}

/* Sold pill */

.status-pill {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: linear-gradient(135deg,#ff334e,#ff9a3c);
  color: #050308;
}

/* Detail Page */

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
  gap: 26px;
}

.detail-gallery {
  background: radial-gradient(circle at top, #22152e, #050308);
  border-radius: 24px;
  padding: 16px;
}

.detail-mainimg {
  width: 100%;
  border-radius: 18px;
  object-fit: contain;
  background: #000;
  max-height: 420px;
}

.thumb-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.thumb-row img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
}

.thumb-row img:hover {
  border-color: #ff8a4b;
}

.detail-info {
  padding: 10px 4px;
}

.detail-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.detail-sub {
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 10px;
}

.detail-price {
  font-size: 22px;
  font-weight: 700;
  color: #ffcf6b;
  margin-bottom: 12px;
}

.detail-specs {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 4px 16px;
  font-size: 12px;
  margin-bottom: 14px;
}

.detail-specs span {
  opacity: 0.7;
  margin-right: 4px;
}

.detail-block-title {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.78;
  margin: 12px 0 4px;
}

.detail-text {
  font-size: 13px;
  opacity: 0.9;
}

.detail-actions {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-small {
  font-size: 11px;
  opacity: 0.7;
}

/* Admin simple */

.admin-wrap {
  margin: 20px 8vw 40px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th,
.admin-table td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.admin-actions a {
  margin-right: 8px;
  color: #ffcf6b;
  text-decoration: none;
  font-size: 12px;
}

.form-field {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.form-field input,
.form-field textarea {
  background: #050308;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.14);
  padding: 7px 9px;
  color: #f5f5f5;
  font-family: inherit;
  font-size: 13px;
}

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

.admin-login {
  max-width: 320px;
  margin: 60px auto;
  padding: 26px 22px;
  background: #050308;
  border-radius: 18px;
  box-shadow: 0 0 24px rgba(0,0,0,0.85);
}

.admin-login h1 {
  font-size: 18px;
  margin-bottom: 14px;
}

.admin-login label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.admin-login input {
  width: 100%;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.18);
  background: #000;
  color: #f5f5f5;
  margin-bottom: 10px;
}

.admin-login button {
  width: 100%;
  border-radius: 999px;
  border: none;
  padding: 8px 0;
  background: linear-gradient(135deg,#ff334e,#ff9a3c);
  color: #050308;
  font-weight: 600;
  cursor: pointer;
}

.admin-login .err {
  margin-top: 8px;
  color: #ff8080;
  font-size: 12px;
}

/* Footer */

.footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 30px;
  padding: 14px 8vw 20px;
  font-size: 11px;
  opacity: 0.7;
}

/* Responsive */

@media (max-width: 960px) {
  .hero {
    margin: 14px 4vw 26px;
  }
  .main-section, .page-wrap {
    margin: 0 4vw 30px;
  }
  .header {
    padding: 10px 4vw;
  }
  .detail-layout {
    grid-template-columns: minmax(0,1fr);
  }
}


.card-info {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  padding: 10px 10px 6px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0.85), rgba(0,0,0,0.95));
  box-shadow: 0 0 14px rgba(0,0,0,0.85);
}

.card-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.card-meta-ps {
  font-size: 11px;
  font-weight: 600;
  color: #ffcf6b;
  margin-bottom: 2px;
}

.card-meta {
  margin-top: 0;
  font-size: 11px;
  opacity: 0.78;
}

.card-info {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 70px;
  padding: 10px 12px 8px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0.96));
  box-shadow: 0 0 16px rgba(0,0,0,0.85);
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.card-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
  color: #ffe9a0; /* goldener Titel */
}

.card-meta-ps {
  font-size: 12px;
  font-weight: 700;
  color: #ffcf6b;
  margin-bottom: 3px;
}

.card-meta {
  margin-top: 0;
  font-size: 11px;
  opacity: 0.8;
}

.import-box {
  margin-top: 30px;
  padding: 18px 18px 16px;
  border-radius: 20px;
  background: radial-gradient(circle at top, rgba(255,120,40,0.14), rgba(0,0,0,0.95));
  border: 1px solid rgba(255,200,120,0.6);
  box-shadow: 0 0 22px rgba(0,0,0,0.9);
}

.import-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.import-text {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 12px;
  max-width: 640px;
}

.import-btn {
  margin-top: 4px;
  font-size: 12px;
}

.home-import {
  margin-top: 40px;
  padding: 22px 22px 18px;
}

.home-import .import-title {
  font-size: 17px;
}

.home-import .import-text {
  font-size: 14px;
}

/* ===== Micro Animations & Fine Tuning ===== */

html {
  scroll-behavior: smooth;
}

/* Hero fade-in */
.hero-overlay {
  animation: heroFade 0.9s ease-out 0.1s both;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card entrance animation */
.card-grid .car-card {
  animation: cardIn 0.7s ease-out both;
}

.card-grid .car-card:nth-child(1) { animation-delay: 0.05s; }
.card-grid .car-card:nth-child(2) { animation-delay: 0.10s; }
.card-grid .car-card:nth-child(3) { animation-delay: 0.15s; }
.card-grid .car-card:nth-child(4) { animation-delay: 0.20s; }
.card-grid .car-card:nth-child(5) { animation-delay: 0.25s; }
.card-grid .car-card:nth-child(6) { animation-delay: 0.30s; }
.card-grid .car-card:nth-child(7) { animation-delay: 0.35s; }
.card-grid .car-card:nth-child(8) { animation-delay: 0.40s; }

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Buttons, etwas mehr „Click-Feel“ */
.btn {
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, filter 0.12s ease-out;
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 0 20px rgba(255, 120, 40, 0.9);
}

.btn-secondary:hover {
  transform: translateY(-1px);
}

/* Import-Box leicht reinblenden */
.import-box {
  position: relative;
  overflow: hidden;
}

.import-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.12), transparent 65%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
  transform: translateX(-15%);
}

.import-box:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* ===== Mobile tuning (<= 768px) ===== */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .header {
    padding: 10px 16px;
  }

  .nav {
    gap: 14px;
    font-size: 13px;
  }

  .hero {
    height: auto;
    min-height: 70vh;
  }

  .hero-video {
    aspect-ratio: 16 / 9;
  }

  .hero-overlay {
    left: 16px;
    right: 16px;
    bottom: 22px;
  }

  .hero-title {
    font-size: 18px;
  }

  .hero-sub {
    font-size: 13px;
  }

  .card-section {
    padding: 24px 16px 32px;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    justify-content: center;
    gap: 18px;
  }

  .car-card {
    max-width: 260px;
    margin: 0 auto;
  }

  .card-info {
    left: 14px;
    right: 14px;
    bottom: 62px;
    padding: 10px 10px 6px;
  }

  .card-title {
    font-size: 13px;
  }

  .import-box,
  .home-import {
    margin-top: 26px;
    padding: 18px 16px 14px;
  }

  .import-title {
    font-size: 14px;
  }

  .import-text {
    font-size: 13px;
  }

  .footer {
    font-size: 11px;
    padding: 14px 16px;
  }
}

/* Extra mobile tightening */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .header {
    padding: 6px 12px;
  }

  .header-title {
    font-size: 13px;
    line-height: 1.1;
  }

  .nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  body.nav-open .nav {
    display: flex;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: 10px 16px 14px;
    flex-direction: column;
    gap: 12px;
    background: rgba(0,0,0,0.96);
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }

  body.nav-open .nav a {
    font-size: 12px;
    letter-spacing: 0.16em;
  }

  .hero {
    height: auto;
    min-height: 0;
    margin: 0;
  }

  .hero-video {
    aspect-ratio: 16 / 9;
  }

  .hero-overlay {
    left: 16px;
    right: 16px;
    bottom: 14px;
  }

  .hero-title {
    font-size: 18px;
  }

  .hero-sub {
    font-size: 13px;
  }

  .card-section {
    padding: 10px 16px 20px;
  }

  .card-section h2 {
    margin-top: 12px;
    margin-bottom: 10px;
  }

  .card-grid {
    grid-template-columns: minmax(0, 1fr);
    justify-content: center;
    gap: 18px;
  }

  .car-card {
    max-width: 320px;
    margin: 0 auto;
  }

  .card-info {
    left: 14px;
    right: 14px;
    bottom: 62px;
    padding: 10px 10px 6px;
  }

  .card-title {
    font-size: 13px;
  }

  .import-box,
  .home-import {
    margin-top: 24px;
    padding: 18px 16px 14px;
  }

  .footer {
    font-size: 11px;
    padding: 12px 16px;
  }
}
