/* ========== Aktuelles (News) — Homepage Section ========== */

.aktuelles-section {
  padding: 5rem 0 3rem;
  background: #f8f9fa;
}

.aktuelles-section__head {
  text-align: center;
  margin-bottom: 3rem;
}

.aktuelles-section__kicker {
  display: inline-block;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--primary-color);
  margin-bottom: .5rem;
}

.aktuelles-section__title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--secondary-color);
  margin: 0 0 .75rem;
}

.aktuelles-section__subtitle {
  font-size: 1.05rem;
  color: #6b7280;
  max-width: 540px;
  margin: 0 auto;
}

/* Card grid — shared between homepage and full page */
.aktuelles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========== Card Design ========== */

.aktuelles-card {
  background: #fff;
  border-radius: 1.1rem;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(18, 27, 35, .07);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.aktuelles-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(18, 27, 35, .14);
}

.aktuelles-card:hover .aktuelles-card__fb-hint {
  color: var(--secondary-color);
  gap: .6rem;
}

/* Image wrapper */
.aktuelles-card__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.aktuelles-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.aktuelles-card:hover .aktuelles-card__img-wrap img {
  transform: scale(1.06);
}

/* Image count badge */
.aktuelles-card__img-count {
  position: absolute;
  bottom: .6rem;
  right: .6rem;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: .25rem .65rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: .3rem;
  z-index: 2;
  backdrop-filter: blur(4px);
}

.aktuelles-card__img-count i { font-size: .62rem; }

.aktuelles-featured__img-count {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  padding: .3rem .8rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: .35rem;
  z-index: 2;
  backdrop-filter: blur(4px);
}

/* Card body */
.aktuelles-card__body {
  padding: 1.4rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.aktuelles-card__body time {
  font-size: .8rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: .45rem;
  display: flex;
  align-items: center;
  gap: .35rem;
}

.aktuelles-card__body time i { font-size: .72rem; }

.aktuelles-card__body h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin: 0 0 .55rem;
  line-height: 1.35;
}

.aktuelles-card__body p {
  font-size: .92rem;
  line-height: 1.65;
  color: #4b5563;
  margin: 0;
  flex: 1;
}

/* Card footer with FB link */
.aktuelles-card__footer {
  margin-top: 1rem;
  padding-top: .85rem;
  border-top: 1px solid #f0f1f3;
}

.aktuelles-card__fb-hint {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--primary-color);
  transition: all .2s ease;
  padding: .3rem 0;
}

.aktuelles-card__fb-hint i {
  font-size: .72rem;
  transition: transform .2s ease;
}

.aktuelles-card:hover .aktuelles-card__fb-hint i {
  transform: translateX(3px);
}

/* "Alle Beiträge" link button on homepage */
.aktuelles-section__more {
  text-align: center;
  margin-top: 2.5rem;
}

.aktuelles-section__more a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2.2rem;
  font-size: .95rem;
  font-weight: 700;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  border-radius: 999px;
  text-decoration: none;
  transition: all .25s ease;
}

.aktuelles-section__more a:hover {
  background: var(--secondary-color);
  color: #fff;
}


/* ========== Full Aktuelles Page ========== */

/* Hero — dark overlay with image */
.aktuelles-hero {
  position: relative;
  min-height: 50vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 4rem;
}

.aktuelles-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.aktuelles-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aktuelles-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(59,69,78,.35) 0%,
    rgba(59,69,78,.20) 50%,
    rgba(59,69,78,.35) 100%
  );
}

.aktuelles-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  color: #fff;
  padding: 4rem 1.5rem 3.5rem;
}

.aktuelles-hero__content .aktuelles-section__kicker {
  color: var(--primary-color);
  background: rgba(251,187,33,.12);
  padding: .35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.aktuelles-hero__content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin: 0 0 1rem;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}

.aktuelles-hero__content p {
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 2rem;
  opacity: .95;
  line-height: 1.65;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}

.aktuelles-hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Facebook hero button */
.aktuelles-hero__fb {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .75rem 1.8rem;
  background: #1877f2;
  border: none;
  border-radius: 999px;
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .25s ease;
  box-shadow: 0 4px 16px rgba(24,119,242,.3);
}

.aktuelles-hero__fb:hover {
  background: #0d5bbf;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(24,119,242,.4);
}

.aktuelles-hero__fb i { font-size: 1rem; }

/* ── Featured Post (latest, full-width) ──── */

.aktuelles-featured-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 0;
}

.aktuelles-featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: #fff;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(18, 27, 35, .10);
  transition: transform .3s ease, box-shadow .3s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.aktuelles-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 56px rgba(18, 27, 35, .15);
}

.aktuelles-featured:hover .aktuelles-featured__fb-btn {
  background: var(--secondary-color);
  color: #fff;
}

.aktuelles-featured__img {
  position: relative;
  overflow: hidden;
  min-height: 360px;
}

.aktuelles-featured__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.aktuelles-featured:hover .aktuelles-featured__img img {
  transform: scale(1.04);
}

.aktuelles-featured__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.25) 100%);
}

.aktuelles-featured__label {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: .4rem 1rem;
  background: var(--primary-color);
  color: var(--secondary-color);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: .35rem;
  box-shadow: 0 2px 8px rgba(251,187,33,.3);
}

.aktuelles-featured__label i { font-size: .65rem; }

.aktuelles-featured__body {
  padding: 2.5rem 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.aktuelles-featured__body time {
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .75rem;
}

.aktuelles-featured__body time i { font-size: .75rem; }

.aktuelles-featured__body h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--secondary-color);
  margin: 0 0 1rem;
  line-height: 1.3;
}

.aktuelles-featured__body p {
  font-size: 1rem;
  line-height: 1.7;
  color: #4b5563;
  margin: 0 0 1.5rem;
}

.aktuelles-featured__actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.aktuelles-featured__fb-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.5rem;
  background: var(--primary-color);
  color: var(--secondary-color);
  font-size: .88rem;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  transition: all .25s ease;
  box-shadow: 0 4px 14px rgba(251,187,33,.25);
}

.aktuelles-featured__fb-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(251,187,33,.35);
}

.aktuelles-featured__fb-btn i { font-size: .82rem; }


/* ── Grid section title ──── */

.aktuelles-grid-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.aktuelles-grid-title {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e5e7eb;
}

.aktuelles-grid-title h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin: 0;
}

.aktuelles-grid-title__line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, #e5e7eb, transparent);
}

.aktuelles-grid-section .aktuelles-grid {
  padding: 0;
}


/* ── CTA Section ──── */

.aktuelles-cta {
  text-align: center;
  padding: 4.5rem 1.5rem 5rem;
  background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
}

.aktuelles-cta h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--secondary-color);
  margin: 0 0 .75rem;
}

.aktuelles-cta p {
  font-size: 1.05rem;
  color: #6b7280;
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.aktuelles-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 1rem 2.5rem;
  background: var(--primary-color);
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 999px;
  text-decoration: none;
  transition: all .25s ease;
  box-shadow: 0 4px 16px rgba(251,187,33,.3);
}

.aktuelles-cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(251,187,33,.4);
}

.aktuelles-cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.aktuelles-cta__phone {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary-color);
  text-decoration: none;
  border: 2px solid #d1d5db;
  border-radius: 999px;
  transition: all .25s ease;
}

.aktuelles-cta__phone:hover {
  border-color: var(--secondary-color);
  transform: translateY(-2px);
}

.aktuelles-cta__phone i {
  font-size: .9rem;
}

/* ── Empty / Error states ──── */

.aktuelles-empty,
.aktuelles-error {
  text-align: center;
  padding: 3rem;
  color: #6b7280;
  font-size: 1.1rem;
}

.aktuelles-error {
  color: #dc2626;
  background: #fef2f2;
  border-radius: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}


/* ========== Post Detail Page ========== */

/* Post page mini-hero header */
.post-page-hero {
  position: relative;
  background: var(--secondary-color);
  padding: 6.5rem 1.5rem 2rem;
  overflow: hidden;
}

.post-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59,69,78,.95) 0%, rgba(59,69,78,.85) 100%);
  z-index: 1;
}

.post-page-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.post-page-hero__back a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  transition: all .2s ease;
  padding: .45rem .9rem;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  margin-bottom: 1.25rem;
}

.post-page-hero__back a:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
}

.post-page-hero__back a i {
  font-size: .72rem;
  transition: transform .2s ease;
}

.post-page-hero__back a:hover i {
  transform: translateX(-3px);
}

.post-page-hero__date {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: .65rem;
}

.post-page-hero__date i { font-size: .72rem; }

.post-page-hero__title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.post-back {
  display: none; /* replaced by post-page-hero */
}

.post-back a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--secondary-color);
  text-decoration: none;
  transition: all .2s ease;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: #f0f1f3;
}

.post-back a:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
}

.post-back a i {
  font-size: .72rem;
  transition: transform .2s ease;
}

.post-back a:hover i {
  transform: translateX(-3px);
}

.post-article {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
}

/* Post header (hidden — moved to post-page-hero) */
.page-aktuelles-post .post-header {
  display: none;
}

/* Single hero image */
.post-hero-img {
  border-radius: 1.25rem;
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: 0 8px 40px rgba(0,0,0,.12);
}

.post-hero-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* Gallery */
.post-gallery {
  margin-bottom: 2.5rem;
  max-width: 100%;
  overflow: hidden;
}

.post-gallery__main {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 8px 40px rgba(0,0,0,.12);
  max-width: 100%;
  touch-action: pan-y;
}

.post-gallery__main img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 550px;
  object-fit: cover;
  transition: opacity .3s ease;
}

.post-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  border: none;
  color: var(--secondary-color);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  z-index: 2;
  touch-action: manipulation;
}

.post-gallery__nav:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-50%) scale(1.05);
}

.post-gallery__nav--prev { left: .75rem; }
.post-gallery__nav--next { right: .75rem; }

.post-gallery__counter {
  position: absolute;
  bottom: .75rem;
  right: .75rem;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  padding: .3rem .8rem;
  border-radius: 999px;
  z-index: 2;
}

.post-gallery__thumbs {
  display: flex;
  gap: .5rem;
  margin-top: .75rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: .25rem 0;
  scrollbar-width: thin;
}

.post-gallery__thumb {
  width: 76px;
  height: 56px;
  object-fit: cover;
  border-radius: .6rem;
  cursor: pointer;
  opacity: .45;
  transition: all .2s ease;
  flex-shrink: 0;
  border: 2.5px solid transparent;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}

.post-gallery__thumb:hover {
  opacity: .8;
}

.post-gallery__thumb.active {
  opacity: 1;
  border-color: var(--primary-color);
}

/* Post body text */
.post-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #374151;
  background: #fafbfc;
  padding: 2rem 2rem;
  border-radius: 1rem;
  border: 1px solid #f0f1f3;
}

.post-body p {
  margin: 0 0 1.25rem;
}

.post-body p:last-child {
  margin-bottom: 0;
}

/* Facebook link at bottom */
.post-fb {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.post-fb a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  font-weight: 600;
  color: #1877f2;
  text-decoration: none;
  transition: color .2s ease;
}

.post-fb a:hover { color: #0d5bbf; }

.post-fb a i {
  width: 1.6rem;
  height: 1.6rem;
  background: #1877f2;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
}


/* Post navigation (prev / next) */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #e5e7eb;
}

.post-nav__link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  background: #f8f9fa;
  border-radius: .75rem;
  text-decoration: none;
  color: inherit;
  transition: all .2s ease;
}

.post-nav__link:hover {
  background: #f0f1f3;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}

.post-nav__link--next {
  text-align: right;
  flex-direction: row-reverse;
  justify-self: end;
}

.post-nav__link--placeholder {
  visibility: hidden;
}

.post-nav__icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  flex-shrink: 0;
}

.post-nav__text {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
}

.post-nav__label {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #9ca3af;
}

.post-nav__title {
  font-size: .88rem;
  font-weight: 700;
  color: var(--secondary-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ========== Responsive ========== */

@media (max-width: 992px) {
  .aktuelles-featured {
    grid-template-columns: 1fr;
  }
  .aktuelles-featured__img {
    min-height: 280px;
  }
  .aktuelles-featured__body {
    padding: 2rem;
  }
  .aktuelles-hero__content h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  body.page-aktuelles-post,
  .page-aktuelles-post #main-content,
  .page-aktuelles-post .post-page-hero,
  .page-aktuelles-post .post-article {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .aktuelles-section { padding: 3.5rem 0 2rem; }
  .aktuelles-section__title { font-size: 1.7rem; }
  .aktuelles-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .aktuelles-card__body { padding: 1.2rem 1.2rem 1.4rem; }

  .aktuelles-hero__content {
    padding: 3rem 1rem 2.5rem;
  }
  .aktuelles-hero__content h1 {
    font-size: 1.85rem;
  }
  .aktuelles-hero__content p {
    font-size: .98rem;
  }
  .aktuelles-hero__actions {
    flex-direction: column;
  }

  .aktuelles-featured__img {
    min-height: 220px;
  }
  .aktuelles-featured__body {
    padding: 1.5rem;
  }
  .aktuelles-featured__body h2 {
    font-size: 1.3rem;
  }
  .aktuelles-featured-section {
    padding: 2rem 1rem 0;
  }
  .aktuelles-grid-section {
    padding: 2rem 1rem 3rem;
  }

  .aktuelles-cta h2 { font-size: 1.5rem; }
  .aktuelles-cta { padding: 3rem 1.2rem 4rem; }

  .post-back { padding: 5rem 1rem 0; }
  .post-article { padding: 1rem 1rem 2rem; }
  .post-header h1 { font-size: 1.5rem; }
  .post-gallery__main img { max-height: 350px; }
  .post-gallery__nav {
    width: 2.55rem;
    height: 2.55rem;
  }
  .post-gallery__nav--prev { left: .45rem; }
  .post-gallery__nav--next { right: .45rem; }
  .post-gallery__thumb { width: 56px; height: 42px; }
  .post-body { padding: 1.5rem 1.2rem; font-size: 1rem; }

  .post-nav { grid-template-columns: 1fr; }
  .post-nav__link--next { text-align: left; flex-direction: row; justify-self: start; }
  .post-nav__link--placeholder { display: none; }
}
