/* ==========================================================================
   HERO
   The large introduction area at the top of the page with the headline
   "Unsere Bücher", a short tagline and a description text.
   ========================================================================== */

.hero {
  background: var(--beige-dark);
  text-align: center;
  padding: 72px 24px 60px;
  border-bottom: 2px solid var(--sage);

  /* Pushes the hero down so it is not hidden behind the fixed top bar */
  margin-top: 70px;
}

/* Breadcrumb above the headline on category pages: "Startseite › Kategorie" */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--sage-dark);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Main headline; clamp() scales the font size with the window width,
   but never smaller than 38px or larger than 62px */
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 6vw, 62px);
  color: var(--brown);
  margin-bottom: 10px;
}

/* Short italic slogan below the headline */
.hero-tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 16px;
}

/* Description paragraph; limited width keeps lines short and easy to read */
.hero-desc {
  font-size: 17px;
  color: var(--text);
  max-width: 640px;
  margin: 0 auto;  /* centers the text block horizontally */
  line-height: 1.9;
}


/* ##########################################################################
   MOBILE LAYOUT (phones and small tablets, up to 768px wide)
   Only for the phone version; the desktop is not affected.
   ########################################################################## */
@media (max-width: 768px) {

  /* IMPORTANT: on phones the top bar is no longer fixed (see
     navigation.css), so the space reserved for it is removed here.
     Side spacing is reduced so the text gets more room. */
  .hero {
    margin-top: 0;
    padding: 48px 16px 40px;
  }

  /* Slightly smaller text for narrow screens */
  .hero-tagline,
  .hero-desc {
    font-size: 16px;
  }

  .hero-desc {
    line-height: 1.7;
  }
}
