/**
 * HTH Redesign — Section-spezifische Styles
 * Jede Section = eigener Block, max-width zentriert, GSAP-Klassen für Animation
 */

/* ---------- Basis & Container ---------- */
.hth-container {
  max-width: var(--hth-content-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 768px) {
  .hth-container { padding-left: 32px; padding-right: 32px; }
}

/* ---------- Section 1: Hero ---------- */
.hth-hero {
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  min-height: min(100vh, 900px);
  display: flex;
  align-items: center;
  /* Fallback hinter der Bildebene */
  background: var(--hth-burgundy-dark);
  color: #fff;
  padding: 80px 24px 60px;
  border-radius: var(--hth-radius-lg);
  overflow: hidden;
}

/* Hintergrund nur in dieser Fläche — verhindert „Überstehen“ über die Rundungen */
.hth-hero__bg-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  overflow: hidden;
}

.hth-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  overflow: hidden;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.hth-hero__bg-slides .hth-hero__bg--1 {
  animation: hth-hero-xfade-a 14s ease-in-out infinite;
}

.hth-hero__bg-slides .hth-hero__bg--2 {
  animation: hth-hero-xfade-b 14s ease-in-out infinite;
}

@keyframes hth-hero-xfade-a {
  0%, 42% { opacity: 1; }
  50%, 92% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes hth-hero-xfade-b {
  0%, 42% { opacity: 0; }
  50%, 92% { opacity: 1; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hth-hero__bg-slides .hth-hero__bg--1,
  .hth-hero__bg-slides .hth-hero__bg--2 {
    animation: none;
  }
  .hth-hero__bg-slides .hth-hero__bg--2 {
    opacity: 0;
  }
}

.hth-hero .hth-container {
  width: 100%;
  border-radius: var(--hth-radius-card);
  position: relative;
  z-index: 1;
}

.hth-hero__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 12px;
}

.hth-hero__title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hth-hero__subtitle {
  font-size: 1.125rem;
  opacity: 0.95;
  max-width: 520px;
  margin-bottom: 28px;
  line-height: 1.5;
}

.hth-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Buttons (global für Sections) ---------- */
.hth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--hth-radius-btn);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hth-btn--primary {
  background: var(--hth-burgundy);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(126, 1, 53, 0.35);
}

.hth-btn--primary:hover {
  transform: translateY(-2px);
  background: var(--hth-burgundy-dark);
  box-shadow: 0 6px 20px rgba(80, 4, 35, 0.4);
}

.hth-btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.8);
}

.hth-btn--outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

/* ---------- Section 2: Mission (3 Karten) ---------- */
.hth-mission {
  background: var(--hth-bg-alt);
}

.hth-mission .hth-section__label {
  text-align: center;
  margin-bottom: 16px;
}

.hth-mission .hth-section__title {
  text-align: center;
  margin-bottom: 48px;
}

.hth-mission__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .hth-mission__grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

.hth-card {
  background: var(--hth-bg-alt);
  border-radius: var(--hth-radius-card);
  padding: 32px;
  box-shadow: var(--hth-shadow-card);
  transition: transform 0.25s, box-shadow 0.25s;
}

.hth-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(126, 1, 53, 0.15);
}

.hth-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--hth-burgundy);
}

.hth-mission .hth-card__icon {
  width: auto;
  height: auto;
  min-height: 3rem;
  font-size: 2.75rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hth-section--hidden {
  display: none !important;
}

.hth-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--hth-text);
  margin-bottom: 8px;
}

.hth-card__text {
  font-size: 0.9375rem;
  color: var(--hth-text-muted);
  line-height: 1.55;
}

/* ---------- Section Labels & Titles (global) ---------- */
.hth-section__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hth-burgundy);
  margin-bottom: 8px;
}

.hth-section__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--hth-burgundy-dark);
  line-height: 1.25;
}

/* ---------- Section 3: Projekte Highlight (2x2) ---------- */
.hth-projekte {
  background: var(--hth-bg);
}

.hth-projekte .hth-section__title {
  margin-bottom: 40px;
}

.hth-projekte__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .hth-projekte__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

.hth-projekt-card {
  background: var(--hth-bg-alt);
  border-radius: var(--hth-radius-card);
  overflow: hidden;
  box-shadow: var(--hth-shadow-card);
  transition: box-shadow 0.25s;
}

.hth-projekt-card:hover {
  box-shadow: 0 8px 32px rgba(126, 1, 53, 0.15);
}

.hth-projekt-card__img-wrap {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--hth-burgundy-light);
  border-radius: var(--hth-radius-card) var(--hth-radius-card) 0 0;
}

.hth-projekt-card__img-wrap img {
  border-radius: inherit;
}

.hth-projekt-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hth-projekt-card__body {
  padding: 24px;
}

.hth-projekt-card__badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hth-burgundy);
  background: var(--hth-burgundy-light);
  padding: 6px 12px;
  border-radius: var(--hth-radius-full);
  margin-bottom: 10px;
}

.hth-projekt-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--hth-text);
  margin-bottom: 8px;
}

.hth-projekt-card__title a {
  color: inherit;
  text-decoration: none;
}

.hth-projekt-card__title a:hover {
  color: var(--hth-burgundy);
}

.hth-projekt-card__text {
  font-size: 0.9375rem;
  color: var(--hth-text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.hth-link-arrow {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--hth-burgundy);
  text-decoration: none;
}

.hth-link-arrow:hover {
  text-decoration: underline;
}

/* ---------- Section 4: Impact-Zahlen (Parallax) ---------- */
.hth-impact {
  background: var(--hth-burgundy-dark);
  color: #fff;
  position: relative;
  border-radius: var(--hth-radius-lg);
  margin: 0 16px;
}

.hth-impact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(80, 4, 35, 0.9);
}

.hth-impact .hth-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  text-align: center;
}

@media (min-width: 768px) {
  .hth-impact .hth-container { grid-template-columns: repeat(4, 1fr); }
}

.hth-impact__number {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 4px;
}

.hth-impact__label {
  font-size: 0.9375rem;
  opacity: 0.9;
}

/* ---------- Section 5: Aktuelles (News) ---------- */
.hth-aktuelles {
  background: var(--hth-bg-alt);
}

.hth-aktuelles .hth-section__title {
  margin-bottom: 40px;
}

.hth-aktuelles__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .hth-aktuelles__grid { grid-template-columns: repeat(3, 1fr); }
}

.hth-news-card {
  background: var(--hth-bg-alt);
  border-radius: var(--hth-radius-card);
  overflow: hidden;
  box-shadow: var(--hth-shadow-card);
  transition: transform 0.25s, box-shadow 0.25s;
}

.hth-news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(126, 1, 53, 0.15);
}

.hth-news-card__img-wrap {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--hth-burgundy-light);
  border-radius: var(--hth-radius-card) var(--hth-radius-card) 0 0;
}

.hth-news-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hth-news-card__body {
  padding: 20px;
}

.hth-news-card__date {
  font-size: 0.8125rem;
  color: var(--hth-text-muted);
  margin-bottom: 6px;
}

.hth-news-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--hth-text);
  margin-bottom: 8px;
}

.hth-news-card__title a {
  color: inherit;
  text-decoration: none;
}

.hth-news-card__title a:hover {
  color: var(--hth-burgundy);
}

.hth-news-card__teaser {
  font-size: 0.9375rem;
  color: var(--hth-text-muted);
  line-height: 1.5;
}

/* ---------- Section 6: Spenden-Banner ---------- */
.hth-spenden-banner {
  background: var(--hth-burgundy);
  color: #fff;
  text-align: center;
  padding: 64px 24px;
  border-radius: var(--hth-radius-lg);
  margin: 0 16px;
}

.hth-spenden-banner__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.hth-spenden-banner__subtitle {
  font-size: 1.0625rem;
  opacity: 0.95;
  margin-bottom: 24px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hth-spenden-banner .hth-btn--primary {
  color: #fff;
  background: rgba(255,255,255,0.2);
  border: 2px solid #fff;
}
.hth-spenden-banner .hth-btn--primary:hover {
  background: #fff;
  color: var(--hth-burgundy-dark);
}

.hth-spenden-banner__trust {
  margin-top: 24px;
  font-size: 0.875rem;
  opacity: 0.9;
}

/* ---------- Section 7: Mitmachen (3 Karten) ---------- */
.hth-mitmachen {
  background: var(--hth-bg);
}

.hth-mitmachen .hth-section__title {
  margin-bottom: 48px;
  text-align: center;
}

.hth-mitmachen__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .hth-mitmachen__grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

.hth-mitmachen .hth-card {
  text-align: center;
}

.hth-mitmachen .hth-card__icon {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Section 8: Partner ---------- */
.hth-partner {
  background: var(--hth-bg-alt);
  text-align: center;
}

.hth-partner__label {
  font-size: 0.875rem;
  color: var(--hth-text-muted);
  margin-bottom: 16px;
}

.hth-partner__logo {
  max-width: 280px;
  height: auto;
  margin: 0 auto;
  opacity: 0.85;
}

.hth-partner__logo img {
  max-width: 100%;
  height: auto;
}

/* ---------- Page Hero (Innenseiten) ---------- */
.hth-page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--hth-burgundy-dark);
  color: #fff;
  padding: 80px 24px 60px;
  background-size: cover;
  background-position: center;
  border-radius: 0 0 var(--hth-radius-lg) var(--hth-radius-lg);
}

.hth-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(80, 4, 35, 0.88);
}

.hth-page-hero .hth-container {
  position: relative;
  z-index: 1;
}

.hth-page-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.hth-page-hero__breadcrumb {
  font-size: 0.875rem;
  opacity: 0.9;
}

.hth-page-hero__breadcrumb a {
  color: #fff;
  text-decoration: none;
}

.hth-page-hero__lead {
  font-size: 1.0625rem;
  max-width: 640px;
  margin: 16px auto 0;
  opacity: 0.95;
  line-height: 1.55;
  position: relative;
  z-index: 1;
}

/* Spenden-Seite: Konto & PayPal */
.hth-spenden-bank {
  background: var(--hth-bg);
  border-radius: var(--hth-radius-card);
  padding: 24px 28px;
  box-shadow: var(--hth-shadow-card);
  border: 1px solid rgba(126, 1, 53, 0.08);
}

.hth-spenden-bank__list {
  margin: 0;
}

.hth-spenden-bank__list dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hth-text-muted);
  margin-top: 12px;
}

.hth-spenden-bank__list dt:first-child {
  margin-top: 0;
}

.hth-spenden-bank__list dd {
  margin: 4px 0 0;
  font-size: 1.0625rem;
  font-weight: 600;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  color: var(--hth-text);
  letter-spacing: 0.02em;
}

.hth-spenden-paypal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 600px) {
  .hth-spenden-paypal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .hth-spenden-paypal-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hth-spenden-paypal-item {
  background: var(--hth-bg-alt);
  padding: 24px;
  border-radius: var(--hth-radius-card);
  box-shadow: var(--hth-shadow-card);
}

.hth-spenden-paypal-item .hth-card__title {
  margin-top: 0;
}

/* ---------- Zwei-Spalten (Leitbild, etc.) ---------- */
.hth-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 768px) {
  .hth-two-col { grid-template-columns: 1fr 1fr; gap: 48px; }
}

.hth-two-col__img img {
  width: 100%;
  height: auto;
  border-radius: var(--hth-radius-card);
  box-shadow: var(--hth-shadow-card);
}

/* ---------- Kontakt-Formular ---------- */
.hth-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .hth-contact-grid { grid-template-columns: 1fr 1fr; }
}
