/* =========================================
   WIR.SCHLADMING – SINGLE ENTRY
========================================= */

.ws-entry {
  background: var(--cream-soft);
  color: var(--ink);
}

.ws-entry .ws-entry-hero {
  position: relative;
  background: var(--cream);
}

.ws-entry .ws-entry-hero-inner,
.ws-entry .ws-entry-meta,
.ws-entry .ws-entry-intro {
  max-width: var(--max);
}

/* Header */

.ws-entry .ws-entry-hero-inner {
  padding-top: clamp(65px, 8vw, 130px);
  padding-bottom: clamp(65px, 8vw, 130px);
}

.ws-entry .ws-entry-category {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--purple-deep);
}

.ws-entry .ws-entry-subheadline {
  margin-bottom: 18px;
}

.ws-entry .ws-entry-title {
  max-width: 1000px;
  margin-bottom: 25px;
  color: var(--dark-deep);
}

.ws-entry .ws-entry-excerpt {
  max-width: 720px;
  margin-bottom: 0;
}

/* Bildheader */

.ws-entry--hero-image .ws-entry-hero-image {
  width: 100%;
  height: clamp(300px, 50svh, 700px);
  margin: 0;
  overflow: hidden;
  background: var(--petrol);
}

.ws-entry--hero-image .ws-entry-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ws-entry--hero-image .ws-entry-hero-inner {
  padding-top: clamp(35px, 4vw, 70px);
  padding-bottom: clamp(45px, 5vw, 85px);
}

/* Metadaten */

.ws-entry .ws-entry-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px 35px;

  padding-top: 22px;
  padding-bottom: 22px;

  border-bottom: 1px solid var(--line-dark);
}

.ws-entry .ws-entry-meta p {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.ws-entry .ws-entry-meta strong {
  color: var(--dark);
}

/* Einleitung */

.ws-entry .ws-entry-intro {
  padding-top: clamp(40px, 5vw, 85px);
  padding-bottom: clamp(40px, 5vw, 85px);
}

.ws-entry .ws-entry-lead {
  max-width: 850px;
}

.ws-entry .ws-entry-lead > :last-child {
  margin-bottom: 0;
}

/* Button */

.ws-entry .ws-entry-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;

  min-height: 52px;
  margin-top: 26px;
  padding: 12px 26px;

  border: 1px solid var(--lime);
  border-radius: 2px;

  background: var(--lime);
  color: var(--dark) !important;
  text-decoration: none;

  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.ws-entry .ws-entry-button:hover {
  background: var(--dark);
  color: var(--cream-soft) !important;
}

.ws-entry .ws-entry-button:focus-visible {
  outline: 3px solid var(--purple-deep);
  outline-offset: 4px;
}

/* Gutenberg / ACF Blocks */

.ws-entry .ws-entry-content {
  width: 100%;
  min-width: 0;
}

/* Mobile */

@media (max-width: 767.98px) {
  .ws-entry .ws-entry-hero-inner {
    padding-top: 48px;
    padding-bottom: 55px;
  }

  .ws-entry--hero-image .ws-entry-hero-inner {
    padding-top: 35px;
  }

  .ws-entry .ws-entry-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .ws-entry .ws-entry-button {
    width: 100%;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ws-entry .ws-entry-button {
    transition: none;
  }
}
