/* ==========================================
   HERO SECTION - MINIMALIST & CLEAN
   Royal Bronze Theme
   ========================================== */

.hero {
  position: relative;
  min-height: 110vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 20px;
  overflow: visible;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 1700px; height: 100%;
  background-image: url("../images/index/library.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.4;
  z-index: -2;
  transition: opacity 0.3s ease;
  mask-image: linear-gradient(to bottom,
    rgba(0,0,0,1) 0%, rgba(0,0,0,1) 60%,
    rgba(0,0,0,0.7) 75%, rgba(0,0,0,0) 100%
  );
  -webkit-mask-image: linear-gradient(to bottom,
    rgba(0,0,0,1) 0%, rgba(0,0,0,1) 60%,
    rgba(0,0,0,0.7) 75%, rgba(0,0,0,0) 100%
  );
}

html[data-theme="dim"] .hero::before { opacity: 0.4; }

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 1400px; height: 100%;
  z-index: -1;
  pointer-events: none;
  filter: drop-shadow(-40px 0 60px rgba(44,62,80,0.25))
          drop-shadow(40px 0 60px rgba(44,62,80,0.25));
  mask-image: linear-gradient(to bottom,
    rgba(0,0,0,1) 0%, rgba(0,0,0,1) 60%,
    rgba(0,0,0,0.7) 75%, rgba(0,0,0,0) 100%
  );
  -webkit-mask-image: linear-gradient(to bottom,
    rgba(0,0,0,1) 0%, rgba(0,0,0,1) 60%,
    rgba(0,0,0,0.7) 75%, rgba(0,0,0,0) 100%
  );
  background: linear-gradient(to bottom, transparent, transparent);
}

html[data-theme="dim"] .hero::after {
  filter: drop-shadow(-40px 0 60px rgba(0,0,0,0.5))
          drop-shadow(40px 0 60px rgba(0,0,0,0.5));
}

.hero-container {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 900px;
  text-align: center;
  margin: 0 auto;
}

/* Title — Cormorant Garamond */
.hero-title {
  font-family: var(--font-heading);
  font-size: var(--text-h1);
  font-weight: var(--weight-h1);
  font-style: normal;
  line-height: 1.1;
  margin-bottom: 32px;
  color: #2C3E50;
  letter-spacing: -0.02em;
  -webkit-text-stroke: 0.5px rgba(44, 62, 80, 0.2);
  paint-order: stroke fill;
}

html[data-theme="dim"] .hero-title {
  color: #B08D57;
  -webkit-text-stroke: 0.5px rgba(176, 141, 87, 0.2);
}

/* Description — Inter */
.hero-description {
  font-family: var(--font-body);
  font-size: var(--text-lead);
  font-weight: var(--weight-lead);
  font-style: normal;
  line-height: 1.7;
  color: #2C3E50;
  margin-bottom: 56px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

html[data-theme="dim"] .hero-description { color: rgba(245, 242, 237, 0.9); }

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 56px;
}

/* Subtle CTA — Inter (kursiv erlaubt als Akzent) */
.hero-cta-subtle {
  display: inline-block;
  padding: 0 0 4px;
  background: none;
  border: none;
  border-bottom: 2px solid currentColor;
  color: #2C3E50;
  font-family: var(--font-body);
  font-size: var(--text-lead);
  font-weight: var(--weight-button);
  font-style: italic; /* erlaubt: seltener Akzent */
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

html[data-theme="dim"] .hero-cta-subtle { color: #B08D57; }

.hero-cta-subtle:hover {
  color: #B08D57;
  border-bottom-color: #B08D57;
  transform: translateY(-1px);
}

html[data-theme="dim"] .hero-cta-subtle:hover {
  color: #d4b07a;
  border-bottom-color: #d4b07a;
}

/* Glass CTA — Inter */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: rgba(176, 141, 87, 0.15);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(176, 141, 87, 0.3);
  color: #2C3E50;
  font-family: var(--font-body);
  font-size: var(--text-button);
  font-weight: var(--weight-button);
  font-style: normal;
  letter-spacing: 0.02em;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow:
    0 8px 24px rgba(176, 141, 87, 0.15),
    inset 0 1px 0 rgba(176, 141, 87, 0.2);
}

.hero-cta:hover {
  background: rgba(176, 141, 87, 0.25);
  border-color: #B08D57;
  transform: translateY(-2px);
  box-shadow:
    0 12px 40px rgba(176, 141, 87, 0.35),
    0 0 0 1px rgba(176, 141, 87, 0.4),
    inset 0 1px 0 rgba(176, 141, 87, 0.3);
}

.hero-cta-secondary {
  background: rgba(44, 62, 80, 0.05);
  border: 1.5px solid rgba(44, 62, 80, 0.2);
  color: #2C3E50;
}

html[data-theme="dim"] .hero-cta-secondary {
  background: rgba(176, 141, 87, 0.08);
  border-color: rgba(176, 141, 87, 0.25);
  color: #B08D57;
}

.hero-cta-secondary:hover {
  background: rgba(176, 141, 87, 0.15);
  border-color: #B08D57;
  color: #B08D57;
  box-shadow:
    0 12px 40px rgba(176, 141, 87, 0.25),
    0 0 0 1px rgba(176, 141, 87, 0.3),
    inset 0 1px 0 rgba(176, 141, 87, 0.2);
}

html[data-theme="dim"] .hero-cta {
  background: rgba(176, 141, 87, 0.2);
  border-color: rgba(176, 141, 87, 0.35);
  color: #B08D57;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(176, 141, 87, 0.25);
}

html[data-theme="dim"] .hero-cta:hover {
  background: rgba(176, 141, 87, 0.3);
  border-color: #B08D57;
  color: #d4b07a;
}

html[data-theme="dim"] .hero-cta-secondary:hover {
  background: rgba(176, 141, 87, 0.2);
  color: #d4b07a;
}

.hero-cta::before { display: none; }

/* Features pill — Inter */
.hero-features {
  display: inline-flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 12px 20px;
  background: rgba(176, 141, 87, 0.08);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border: 1px solid rgba(176, 141, 87, 0.2);
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(176, 141, 87, 0.1), inset 0 1px 0 rgba(176, 141, 87, 0.15);
}

html[data-theme="dim"] .hero-features {
  background: rgba(176, 141, 87, 0.12);
  border-color: rgba(176, 141, 87, 0.25);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2), inset 0 1px 0 rgba(176, 141, 87, 0.2);
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: var(--weight-body);
  color: rgba(44, 62, 80, 0.85);
}

html[data-theme="dim"] .hero-feature { color: rgba(245, 242, 237, 0.85); }
.hero-feature-icon { font-size: 16px; color: #B08D57; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-title { font-size: clamp(2.5rem, 5vw, var(--text-h1)); }
}

@media (max-width: 768px) {
  .hero { min-height: auto; padding: 100px 20px 80px; }
  .hero::before, .hero::after { max-width: 100%; }
  .hero-features { flex-direction: column; gap: 16px; }
}

@media (max-width: 480px) {
  .hero-cta-group { flex-direction: column; width: 100%; }
  .hero-cta,
  .hero-cta-subtle { width: 100%; justify-content: center; }
}