/* MyHometown Plattform – Joomla article styles */
.mht-page {
  --mht-magenta: #a5107e;
  --mht-magenta-dark: #7d0b60;
  --mht-navy: #073e57;
  --mht-navy-dark: #062b3d;
  --mht-text: #202936;
  --mht-muted: #657080;
  --mht-line: #e6e8ee;
  --mht-soft: #fbf5fa;
  --mht-white: #ffffff;
  max-width: 1180px;
  margin: 28px auto 60px;
  color: var(--mht-text);
  font-family: inherit;
  line-height: 1.65;
}

.mht-page,
.mht-page * {
  box-sizing: border-box;
}

.mht-page h1,
.mht-page h2,
.mht-page h3,
.mht-page p,
.mht-page figure {
  margin-top: 0;
}

.mht-page h1,
.mht-page h2,
.mht-page h3 {
  color: var(--mht-text);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.mht-hero-panel {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 520px;
  flex-direction: column;
  justify-content: center;
  padding: 58px 52px;
  border-radius: 26px;
  background:
    linear-gradient(105deg, rgba(6, 43, 61, 0.96) 0%, rgba(7, 62, 87, 0.87) 46%, rgba(165, 16, 126, 0.58) 100%),
    url("/media/djmediatools/cache/1-slider-oben/2024x1191-crop-90-cityansicht.jpg") center center / cover no-repeat;
  box-shadow: 0 24px 55px rgba(6, 43, 61, 0.20);
}

.mht-hero-panel::after {
  position: absolute;
  right: -80px;
  bottom: -115px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  content: "";
}

.mht-hero-panel > * {
  position: relative;
  z-index: 1;
}

.mht-kicker {
  margin-bottom: 12px;
  color: var(--mht-magenta);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mht-kicker-light {
  color: #f3b8df;
}

.mht-hero-panel h1 {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--mht-white);
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  line-height: 1.04;
}

.mht-lead {
  max-width: 740px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.16rem;
  line-height: 1.7;
}

.mht-actions,
.mht-pills,
.mht-reference-facts,
.mht-store-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.mht-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.mht-button:hover,
.mht-button:focus {
  transform: translateY(-2px);
  text-decoration: none;
}

.mht-button-light {
  background: var(--mht-white);
  color: var(--mht-magenta-dark);
}

.mht-button-outline {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
  color: var(--mht-white);
}

.mht-pills {
  margin-top: 22px;
}

.mht-pills span,
.mht-reference-facts span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
}

.mht-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0 70px;
}

.mht-story-card {
  position: relative;
  overflow: hidden;
  min-height: 245px;
  padding: 28px;
  border: 1px solid var(--mht-line);
  border-radius: 18px;
  background: var(--mht-white);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.mht-story-card-current {
  border-top: 4px solid var(--mht-magenta);
}

.mht-story-number {
  display: block;
  margin-bottom: 28px;
  color: rgba(165, 16, 126, 0.16);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.mht-story-card h2 {
  margin-bottom: 10px;
  font-size: 1.55rem;
}

.mht-story-card p {
  margin-bottom: 0;
  color: var(--mht-muted);
}

.mht-section,
.mht-gallery-section {
  margin-bottom: 70px;
}

.mht-section-heading {
  max-width: 790px;
  margin-bottom: 28px;
}

.mht-section-heading-compact {
  max-width: 670px;
}

.mht-section-heading h2,
.mht-future h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.12;
}

.mht-section-heading p,
.mht-future > p {
  color: var(--mht-muted);
  font-size: 1.06rem;
}

.mht-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mht-feature {
  display: flex;
  min-height: 155px;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--mht-line);
  border-radius: 16px;
  background: var(--mht-white);
}

.mht-feature-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--mht-soft);
  color: var(--mht-magenta);
  font-size: 0.78rem;
  font-weight: 800;
}

.mht-feature h3 {
  margin-bottom: 6px;
  font-size: 1.08rem;
}

.mht-feature p {
  margin-bottom: 0;
  color: var(--mht-muted);
  font-size: 0.93rem;
}

.mht-reference {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(270px, 0.55fr);
  gap: 34px;
  align-items: center;
  margin-bottom: 70px;
  padding: 42px;
  border-radius: 22px;
  background: linear-gradient(120deg, var(--mht-magenta-dark), var(--mht-magenta));
  box-shadow: 0 18px 42px rgba(125, 11, 96, 0.18);
}

.mht-reference h2 {
  margin-bottom: 12px;
  color: var(--mht-white);
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  line-height: 1.16;
}

.mht-reference p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
}

.mht-reference-facts {
  align-content: center;
  flex-direction: column;
  align-items: stretch;
}

.mht-reference-facts span {
  border: 1px solid rgba(255, 255, 255, 0.20);
  text-align: center;
}

.mht-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mht-gallery figure {
  overflow: hidden;
  margin-bottom: 0;
  border-radius: 18px;
  background: #eef1f4;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
}

.mht-gallery img {
  display: block;
  width: 100%;
  height: 330px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.mht-gallery figure:hover img {
  transform: scale(1.025);
}

.mht-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 70px;
}

.mht-panel {
  padding: 36px;
  border: 1px solid var(--mht-line);
  border-radius: 20px;
  background: var(--mht-white);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.mht-panel h2 {
  margin-bottom: 12px;
  font-size: 2rem;
  line-height: 1.18;
}

.mht-panel > p {
  color: var(--mht-muted);
}

.mht-panel-accent {
  border: 0;
  background: linear-gradient(145deg, var(--mht-navy-dark), var(--mht-navy));
  box-shadow: 0 18px 40px rgba(6, 43, 61, 0.16);
}

.mht-panel-accent h2,
.mht-panel-accent p {
  color: var(--mht-white);
}

.mht-panel-accent p {
  opacity: 0.82;
}

.mht-steps {
  margin-top: 26px;
}

.mht-step {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--mht-line);
}

.mht-step > span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--mht-magenta);
  color: var(--mht-white);
  font-weight: 800;
}

.mht-step h3 {
  margin-bottom: 3px;
  font-size: 1.05rem;
}

.mht-step p {
  margin-bottom: 0;
  color: var(--mht-muted);
  font-size: 0.92rem;
}

.mht-future {
  margin-bottom: 28px;
  padding: 48px;
  border: 1px solid #ead7e5;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff 0%, var(--mht-soft) 100%);
}

.mht-future > p {
  max-width: 850px;
}

.mht-role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.mht-role-grid > div {
  padding: 18px;
  border-left: 3px solid var(--mht-magenta);
  background: rgba(255, 255, 255, 0.78);
}

.mht-role-grid strong,
.mht-role-grid span {
  display: block;
}

.mht-role-grid strong {
  margin-bottom: 4px;
  color: var(--mht-text);
}

.mht-role-grid span {
  color: var(--mht-muted);
  font-size: 0.88rem;
}

.mht-download {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 34px 38px;
  border-radius: 20px;
  background: #f3f5f7;
}

.mht-download h2 {
  margin-bottom: 8px;
  font-size: 1.8rem;
}

.mht-download p {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--mht-muted);
}

.mht-store-buttons {
  flex-wrap: nowrap;
}

.mht-store-buttons a,
.mht-store-buttons img {
  display: block;
}

.mht-store-buttons img {
  width: 165px;
  max-width: 100%;
  height: auto;
}

.mht-credits {
  margin: 14px 4px 0;
  color: #7b8490;
  font-size: 0.78rem;
  text-align: right;
}

@media (max-width: 900px) {
  .mht-story-grid,
  .mht-feature-grid,
  .mht-role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mht-reference,
  .mht-split,
  .mht-download {
    grid-template-columns: 1fr;
  }

  .mht-reference-facts {
    flex-direction: row;
  }

  .mht-gallery img {
    height: 270px;
  }
}

@media (max-width: 640px) {
  .mht-page {
    margin-top: 18px;
  }

  .mht-hero-panel,
  .mht-reference,
  .mht-panel,
  .mht-future,
  .mht-download {
    padding: 28px 22px;
    border-radius: 18px;
  }

  .mht-hero-panel {
    min-height: 500px;
    background-position: 58% center;
  }

  .mht-story-grid,
  .mht-feature-grid,
  .mht-gallery,
  .mht-role-grid {
    grid-template-columns: 1fr;
  }

  .mht-story-grid,
  .mht-section,
  .mht-gallery-section,
  .mht-reference,
  .mht-split {
    margin-bottom: 48px;
  }

  .mht-story-card {
    min-height: auto;
  }

  .mht-story-number {
    margin-bottom: 18px;
  }

  .mht-gallery img {
    height: auto;
    max-height: 430px;
  }

  .mht-actions,
  .mht-store-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .mht-button {
    width: 100%;
  }

  .mht-reference-facts {
    align-items: stretch;
    flex-direction: column;
  }

  .mht-store-buttons img {
    width: 185px;
  }

  .mht-credits {
    text-align: left;
  }
}
