/**
 * NOVA Clear Theme - Moderne Design-Anpassungen
 * Verbesserte Lesbarkeit, zeitgemäßes Erscheinungsbild, dezente Farbpalette
 */

/* Farbpalette: Kontrastfarbenbasis */
:root {
  --nova-primary: #ED1566;
  --nova-primary-hover: #D4125A;
  --nova-text: #2d3748;
  --nova-text-muted: #64748b;
  --nova-border: #e2e8f0;
  --nova-bg-subtle: #f8fafc;
}

/* 1. Typografie & Basis */
body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--nova-text);
  background-color: var(--nova-bg-subtle);
}

#main-wrapper {
  background-color: #fff;
}

/* Überschriften mit besserer Lesbarkeit */
h1, .h1 { font-size: 1.875rem; }
h2, .h2 { font-size: 1.5rem; }

/* 2. Moderne abgerundete Ecken */
.card,
.productbox-inner,
.btn:not(.btn-icon),
.form-control,
.custom-select,
.input-group-text,
.dropdown-menu,
.modal-content,
.alert,
.badge {
  border-radius: 0.375rem !important;
}

/* Abgerundete Produktbilder */
.productbox-image-wrapper,
.productbox-image-wrapper-inner {
  border-radius: 0.375rem;
  overflow: hidden;
}

.btn-icon {
  border-radius: 50% !important;
}

/* 3. Dezente Schatten für Tiefe und Lesbarkeit */
.card,
.productbox-inner,
.modal-content {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.card:hover,
.productbox-hover:hover .productbox-inner {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 4. Farben: modern, kontrastreich, unaufdringlich */
.btn-primary,
.btn-primary:hover {
  background-color: var(--nova-primary) !important;
  border-color: var(--nova-primary) !important;
}

.btn-primary:hover {
  background-color: var(--nova-primary-hover) !important;
  border-color: var(--nova-primary-hover) !important;
}

.btn-outline-primary {
  border-color: var(--nova-primary) !important;
  color: var(--nova-primary) !important;
}

.btn-outline-primary:hover {
  background-color: rgba(237, 21, 102, 0.08) !important;
  border-color: var(--nova-primary-hover) !important;
  color: var(--nova-primary-hover) !important;
}

a {
  color: var(--nova-text);
}

a:hover {
  color: var(--nova-primary) !important;
}

.text-primary,
.navbar-light .navbar-nav .nav-link:hover,
.pagination .page-link:hover {
  color: var(--nova-primary) !important;
}

/* Header: dezente Trennlinie */
header {
  border-bottom: 1px solid var(--nova-border);
}

/* Begrüßung zentriert im Header */
.header-greeting-bar {
  width: 100%;
  padding: 0.5rem 1rem;
  background-color: var(--nova-bg-subtle);
  border-bottom: 1px solid var(--nova-border);
}

.header-greeting {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--nova-primary) !important;
  white-space: nowrap;
}

/* Footer: klarer Kontrast */
#footer {
  background-color: var(--nova-bg-subtle);
  border-top: 1px solid var(--nova-border);
}

#copyright {
  background-color: #1a202c !important;
  color: #e2e8f0 !important;
}

/* Formulare: klarere Rahmen */
.form-control:focus,
.custom-select:focus {
  border-color: var(--nova-primary);
  box-shadow: 0 0 0 0.2rem rgba(237, 21, 102, 0.15);
}

/* 5. Hero-Banner "Neu Eingetroffen" / Top Angebote */
.top-angebot-hero {
  width: 100%;
  margin-bottom: 2rem;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.top-angebot-hero__image-wrapper {
  position: relative;
  display: block;
  min-height: 280px;
}

.top-angebot-hero__image {
  width: 100%;
  height: auto;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

/* Zentriertes Header-Bild */
.top-angebot-hero__image-wrapper--centered {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  min-height: 280px;
  padding: 0 1rem;
}

.top-angebot-hero__image-wrapper--centered .top-angebot-hero__image {
  object-fit: contain;
  max-height: 300px;
  max-width: 85%;
  width: auto;
  height: auto;
  min-height: 0;
}

@media (min-width: 768px) {
  .top-angebot-hero__image-wrapper--centered {
    padding: 0 2rem;
    min-height: 340px;
  }

  .top-angebot-hero__image-wrapper--centered .top-angebot-hero__image {
    max-width: 80%;
    max-height: 400px;
  }
}

.top-angebot-hero__overlay {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
}

.top-angebot-hero__placeholder {
  min-height: 280px;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 2px dashed var(--nova-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.top-angebot-hero__badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background-color: var(--nova-primary);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(237, 21, 102, 0.3);
}

.top-angebot-hero__text {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--nova-text);
  margin: 0 0 0.5rem;
}

.top-angebot-hero__hint {
  font-size: 0.875rem;
  color: var(--nova-text-muted);
  margin: 0;
}

/* Hero mit Produktbox: einheitliches Box-Design wie Slider */
.top-angebot-hero__box .box-slider .product-wrapper {
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.top-angebot-hero__box .productlist-filter-headline {
  text-align: center;
}

@media (min-width: 768px) {
  .top-angebot-hero__image-wrapper {
    min-height: 340px;
  }

  .top-angebot-hero__image {
    min-height: 340px;
  }

  .top-angebot-hero__placeholder {
    min-height: 340px;
    padding: 4rem 2rem;
  }

  .top-angebot-hero__text {
    font-size: 1.5rem;
  }
}
