/* ==========================================================================
   Salzamt – landing page (index.html only)
   Page-specific layout on top of the shared design system in style.css.
   All classes are prefixed with .home-.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Section bands and ornaments
   -------------------------------------------------------------------------- */

.home-band {
  background: rgba(233, 219, 187, 0.5);
  border-top: 1px solid var(--gold-2);
  border-bottom: 1px solid var(--gold-2);
}

.page-home .ornament-rule {
  margin: 0 auto 1.25rem;
}

.page-home .section > .container > h2 {
  margin-bottom: 1.75rem;
}

.home-section-cta {
  margin: 2.5rem 0 0;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.home-hero {
  padding-top: 2.5rem;
}

.home-hero__inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.home-hero__figure {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
}

.home-hero__frame {
  padding: 1.25rem;
}

.home-hero__frame img {
  width: 100%;
  height: auto;
  border: 1px solid var(--parchment-3);
}

.home-hero__text {
  text-align: center;
}

.home-hero__text h1 {
  font-size: clamp(3.4rem, 11vw, 6.5rem);
  margin-bottom: 0.1em;
}

.home-hero__subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  line-height: 1.15;
  color: var(--ink-2);
  margin: 0 0 1rem;
}

.home-hero__lead {
  font-family: var(--font-type);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 1.25rem;
}

.home-hero__intro {
  font-size: 1.15rem;
  max-width: 34em;
  margin-inline: auto;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

@media (max-width: 480px) {
  .home-hero__actions .btn--lg {
    font-size: 1.05rem;
    padding: 0.9rem 1.5rem;
  }
}

@media (min-width: 900px) {
  .home-hero {
    padding-top: 3.5rem;
  }

  .home-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    gap: 4rem;
  }

  .home-hero__figure {
    order: 2;
    margin-inline: 0;
    justify-self: end;
  }

  .home-hero__frame {
    padding: 1.5rem;
  }

  .home-hero__text {
    text-align: left;
  }

  .home-hero__intro {
    margin-inline: 0;
  }

  .home-hero__actions {
    justify-content: flex-start;
  }
}

/* --------------------------------------------------------------------------
   Über das Amt
   -------------------------------------------------------------------------- */

.home-about__frame {
  max-width: 820px;
  margin-inline: auto;
  padding-top: 3.25rem;
  font-size: 1.1rem;
}

.home-about__frame p:last-of-type {
  margin-bottom: 0;
}

.home-about__stamp {
  position: absolute;
  top: -0.9rem;
  right: 1.5rem;
  transform: rotate(6deg);
}

@media (max-width: 640px) {
  .home-about__frame {
    padding-top: 3rem;
    font-size: 1.05rem;
  }

  .home-about__stamp {
    right: 0.75rem;
    font-size: 0.85rem;
  }
}

/* --------------------------------------------------------------------------
   Der Amtsweg
   -------------------------------------------------------------------------- */

.home-process__steps {
  max-width: 1000px;
  margin: 2.5rem auto 0;
}

@media (max-width: 760px) {
  .home-process__steps {
    max-width: 480px;
    margin-top: 2rem;
  }
}

/* --------------------------------------------------------------------------
   Amtsstatistik
   -------------------------------------------------------------------------- */

.home-stats__grid {
  margin: 0;
}

.home-stat {
  padding: 1.75rem 1rem;
  text-align: center;
  justify-content: center;
  min-height: 11rem;
}

.home-stat__label {
  order: 2;
  font-family: var(--font-type);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  line-height: 1.4;
}

.home-stat__value {
  order: 1;
  margin: 0 0 0.6rem;
  font-family: var(--font-type);
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.1;
  color: var(--burgundy);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .home-stats__grid {
    gap: 1rem;
  }

  .home-stat {
    min-height: 0;
    padding: 1.25rem 1rem;
  }

  .home-stat__value {
    font-size: 2.2rem;
    margin-bottom: 0.4rem;
  }
}

/* --------------------------------------------------------------------------
   Parteienverkehr
   -------------------------------------------------------------------------- */

.home-hours__box {
  max-width: 720px;
  margin-inline: auto;
}

.home-hours .table th {
  width: 45%;
  vertical-align: middle;
}

.home-hours .table td.num {
  white-space: normal;
  vertical-align: middle;
}

.home-hours__note {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ink-2);
  margin: 1rem 0 0;
}

/* --------------------------------------------------------------------------
   Aus dem Amtsshop
   -------------------------------------------------------------------------- */

.home-product__media {
  aspect-ratio: 148 / 105;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--burgundy);
}

.home-product__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-icon {
  width: 42%;
  height: auto;
  max-height: 80%;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-product .card__title {
  font-size: 1.4rem;
  line-height: 1.15;
}

.home-product__subtitle {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.home-product__foot {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--parchment-2);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.home-product__price {
  font-family: var(--font-type);
  font-size: 1.2rem;
  color: var(--burgundy);
  margin: 0;
}

.home-product__link {
  font-variant: small-caps;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-bottom: 1px solid var(--burgundy);
  white-space: nowrap;
}

.home-product__link::after {
  content: " ›";
}

.home-product__link:hover {
  border-bottom-width: 2px;
}

/* --------------------------------------------------------------------------
   Die Bediensteten
   -------------------------------------------------------------------------- */

.home-team-teaser__list {
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 2rem 1.5rem;
}

.home-member {
  text-align: center;
}

.home-member__name {
  font-size: 1.5rem;
  margin: 1rem 0 0.15rem;
}

.home-member__title {
  font-variant: small-caps;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
  color: var(--burgundy);
  margin: 0;
}

/* Four 160px circles: one row on desktop, two by two on tablets and phones
   (the shared .grid--4 breakpoints), never a single tall column. */
@media (max-width: 640px) {
  .home-team-teaser__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1rem;
  }

  .home-member__name {
    font-size: 1.3rem;
  }
}
