/* =============================================
   DOMUS Hospizdienst – TYPO3 Sitepackage CSS
   CI-Farben: #FACE21 (hell-orange), #FAAA21 (dunkel-orange)
   Basiert auf Bootstrap 5.3 (via CDN)
   ============================================= */

/* =============================================
   1. CSS CUSTOM PROPERTIES (CI-System)
   ============================================= */
:root {
  --ci-orange:       #FAAA21;
  --ci-orange-light: #FACE21;
  --ci-orange-pale:  #FFF8E7;
  --text-dark:       #444444;
  --text-muted:      #777777;
  --bg-warm:         #F9F7F2;
  --bg-white:        #FFFFFF;
  --footer-bg:       #3A3A3A;
}

/* =============================================
   2. BASE / TYPOGRAPHY
   ============================================= */
body {
  font-family: 'IBM Plex Sans', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-dark);
}

a {
  color: var(--ci-orange);
  text-decoration: none;
}

a:hover {
  color: #c88800;
  text-decoration: underline;
}

/* =============================================
   3. NAVBAR
   ============================================= */
.navbar-domus {
  background-color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 12px 0;
  z-index: 1030;
}

.navbar-domus .navbar-brand img {
  height: 52px;
  width: auto;
}

.navbar-domus .nav-link {
  color: var(--text-dark) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 16px !important;
  border-radius: 4px;
  transition: color 0.2s, background-color 0.2s;
}

.navbar-domus .nav-link:hover,
.navbar-domus .nav-link:focus,
.navbar-domus .nav-item.active > .nav-link {
  color: var(--ci-orange) !important;
  background-color: var(--ci-orange-pale);
}

.navbar-domus .dropdown-menu {
  border: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  border-radius: 8px;
  border-top: 3px solid var(--ci-orange);
}

.navbar-domus .dropdown-item {
  font-size: 0.9rem;
  color: var(--text-dark);
  padding: 8px 20px;
}

.navbar-domus .dropdown-item:hover,
.navbar-domus .dropdown-item.active {
  background-color: var(--ci-orange-pale);
  color: var(--ci-orange);
}

.navbar-domus .btn-spende {
  background-color: var(--ci-orange);
  color: #fff !important;
  border-radius: 24px;
  padding: 8px 22px !important;
  font-weight: 700;
  transition: background-color 0.2s, transform 0.1s;
}

.navbar-domus .btn-spende:hover {
  background-color: #c88800 !important;
  transform: translateY(-1px);
}

/* =============================================
   4. PAGE HERO (Unterseiten-Header)
   ============================================= */
.page-hero {
  position: relative;
  min-height: 320px;
  background-size: cover;
  background-position: center 40%;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.70) 0%,
    rgba(0,0,0,0.30) 55%,
    rgba(0,0,0,0.05) 100%
  );
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 48px;
  padding-top: 80px;
}

.page-hero-content h1 {
  color: #fff;
  font-size: 2.8rem;
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
  border-bottom: none;
}

.page-hero-content p {
  color: rgba(255,255,255,0.88);
  font-size: 1.1rem;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.breadcrumb-hero { margin-bottom: 16px; }

/* Verhindert den Bootstrap-Float-Bug beim aktiven (unverlinkten) Item */
.breadcrumb-hero .breadcrumb-item {
  display: inline-flex;
  align-items: center;
}

.breadcrumb-hero .breadcrumb-item a {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
}

.breadcrumb-hero .breadcrumb-item a:hover {
  color: var(--ci-orange-light);
  text-decoration: none;
}

.breadcrumb-hero .breadcrumb-item.active {
  color: var(--ci-orange-light);
  font-size: 0.85rem;
}

.breadcrumb-hero .breadcrumb-item + .breadcrumb-item::before {
  float: none;  /* Bootstrap-Default überschreiben */
  color: rgba(255,255,255,0.45);
}

@media (max-width: 991px) { .page-hero-content h1 { font-size: 2.1rem; } }
@media (max-width: 575px)  {
  .page-hero { min-height: 240px; }
  .page-hero-content h1 { font-size: 1.75rem; }
}

/* =============================================
   5. SECTION SPACING & HEADINGS
   ============================================= */
.section-heading {
  margin-bottom: 48px;
}

.section-heading h2 {
  font-size: 2rem;
  display: inline-block;
  padding-bottom: 10px;
  border-bottom: 4px solid var(--ci-orange);
}

.section-heading p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 12px;
}

/* =============================================
   6. TYPO3 FRAME WRAPPERS
   ============================================= */
.frame {
  margin-bottom: 2rem;
}

.frame-ruler-before { border-top: 1px solid #dee2e6; padding-top: 2rem; }
.frame-ruler-after  { border-bottom: 1px solid #dee2e6; padding-bottom: 2rem; }
.frame-ruler-between {
  border-top: 1px solid #dee2e6;
  border-bottom: 1px solid #dee2e6;
  padding: 2rem 0;
}

.frame-space-before-extra-small { margin-top: 0.5rem !important; }
.frame-space-before-small       { margin-top: 1rem !important; }
.frame-space-before-medium      { margin-top: 2rem !important; }
.frame-space-before-large       { margin-top: 3rem !important; }
.frame-space-before-extra-large { margin-top: 5rem !important; }
.frame-space-after-extra-small  { margin-bottom: 0.5rem !important; }
.frame-space-after-small        { margin-bottom: 1rem !important; }
.frame-space-after-medium       { margin-bottom: 2rem !important; }
.frame-space-after-large        { margin-bottom: 3rem !important; }
.frame-space-after-extra-large  { margin-bottom: 5rem !important; }

/* =============================================
   7. TYPO3 CONTENT ELEMENTS – TYPOGRAFIE
   ============================================= */

/* H1 – Seitenüberschrift, orange Unterstrich wie im Prototyp */
.frame h1 {
  font-size: 2.2rem;
  display: inline-block;
  padding-bottom: 10px;
  border-bottom: 4px solid var(--ci-orange);
  margin-bottom: 1.5rem;
}

/* H2 – Abschnittsüberschrift, etwas schlanker */
.frame h2 {
  font-size: 1.75rem;
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--ci-orange);
  margin-bottom: 1.25rem;
}

/* H3/H4 – Unterüberschriften ohne Unterstrich */
.frame h3 {
  font-size: 1.35rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.frame h4 {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* Ausnahme: In Hero- und News-Bereichen keine generische Rahmenlinie */
.news-hero .frame h1,
.news-hero .frame h2,
.hero-block .frame h1,
.hero-block .frame h2 {
  display: block;
  border-bottom: none;
  padding-bottom: 0;
}

.frame p {
  line-height: 1.75;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.frame ul,
.frame ol {
  padding-left: 1.5em;
  line-height: 1.9;
  color: var(--text-dark);
}

.frame ul li,
.frame ol li { margin-bottom: 4px; }

.frame ul li::marker {
  color: var(--ci-orange);
  font-weight: 700;
}

.frame blockquote {
  background-color: var(--ci-orange-pale);
  border-left: 5px solid var(--ci-orange);
  border-radius: 0 14px 14px 0;
  padding: 28px 32px;
  margin: 0 0 24px;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-dark);
}

/* =============================================
   8. TEXTMEDIA / GALLERY
   ============================================= */
.ce-gallery { margin-bottom: 1rem; }

.ce-gallery img {
  border-radius: 12px;
  width: 100%;
  height: auto;
  display: block;
}

.image-lightbox-link {
  display: block;
  cursor: zoom-in;
  text-decoration: none;
}

.ce-gallery figcaption {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
}

/* =============================================
   9. TABELLE
   ============================================= */
.ce-table { width: 100%; }

.ce-table thead th {
  background-color: var(--ci-orange);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  border: none;
}

.ce-table tbody tr:nth-child(even) {
  background-color: var(--ci-orange-pale);
}

.ce-table tbody td {
  font-size: 0.9rem;
  color: var(--text-dark);
  vertical-align: middle;
  border-color: #e8e2d4;
}

/* =============================================
   10. DOWNLOADS / UPLOADS
   ============================================= */
.ce-uploads {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ce-uploads li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background-color: var(--bg-warm);
  border-radius: 10px;
  margin-bottom: 8px;
  transition: background-color 0.15s;
}

.ce-uploads li:hover { background-color: var(--ci-orange-pale); }

.ce-uploads li a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-dark);
}

.ce-uploads li a:hover {
  color: var(--ci-orange);
  text-decoration: none;
}

/* =============================================
   11. BUTTONS
   ============================================= */
.btn-domus {
  background-color: var(--ci-orange);
  color: #fff;
  font-weight: 700;
  border-radius: 24px;
  padding: 10px 26px;
  font-size: 0.9rem;
  border: none;
  transition: background-color 0.2s, transform 0.15s;
  display: inline-block;
}

.btn-domus:hover {
  background-color: #c88800;
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-domus--sm {
  padding: 7px 18px;
  font-size: 0.82rem;
}

.btn-outline-domus {
  border: 2px solid var(--ci-orange);
  color: var(--ci-orange);
  font-weight: 700;
  border-radius: 24px;
  padding: 10px 28px;
  transition: background-color 0.2s, color 0.2s;
  display: inline-block;
}

.btn-outline-domus:hover {
  background-color: var(--ci-orange);
  color: #fff;
  text-decoration: none;
}

.btn-hero {
  background-color: var(--ci-orange);
  color: #fff;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 32px;
  font-size: 1rem;
  border: none;
  transition: background-color 0.2s, transform 0.15s;
  display: inline-block;
}

.btn-hero:hover {
  background-color: #c88800;
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}

/* =============================================
   12. NEWS CARD (EXT:news Listen-Ansicht)
   ============================================= */
.news-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
  background: #fff;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
}

.news-card .card-img-top {
  height: 200px;
  object-fit: cover;
}

.news-card .card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

/* Global badge-category (news card + sidebar) */
.badge-category {
  background-color: var(--ci-orange-pale);
  color: var(--ci-orange);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  text-decoration: none;
}
.badge-category:hover {
  background-color: var(--ci-orange);
  color: #fff;
}

.news-card .badge-category {
  margin-bottom: 10px;
}

.news-card .card-date {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.news-card .card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
  line-height: 1.4;
}

.news-card .card-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex-grow: 1;
}

.news-card .btn-read-more {
  color: var(--ci-orange);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0;
  border: none;
  background: none;
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.15s;
}

.news-card .btn-read-more:hover {
  color: #c88800;
  text-decoration: none;
  gap: 8px;
}

/* =============================================
   12b. NEWS LIST PAGINATION
   ============================================= */
.news-list-section .pagination .page-link {
  border: 1px solid #dee2e6;
  color: var(--text-dark);
  border-radius: 8px !important;
  padding: 6px 14px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.news-list-section .pagination .page-link:hover {
  background-color: var(--ci-orange-pale);
  border-color: var(--ci-orange);
  color: var(--ci-orange);
}

.news-list-section .pagination .page-item.active .page-link {
  background-color: var(--ci-orange);
  border-color: var(--ci-orange);
  color: #fff;
}

.news-list-section .pagination .page-item.disabled .page-link {
  color: #bbb;
  background-color: transparent;
  border-color: #dee2e6;
}

.frame-type-news_pi1,
.frame-list-type-news_pi1,
.frame-list-type-tx_news_pi1 {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 0;
  padding: 56px 0;
  background-color: var(--bg-warm);
}

.frame-type-news_pi1 > header,
.frame-type-news_pi1 > .news-list-section,
.frame-list-type-news_pi1 > header,
.frame-list-type-news_pi1 > .news-list-section,
.frame-list-type-tx_news_pi1 > header,
.frame-list-type-tx_news_pi1 > .news-list-section {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
  padding-right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
}

.frame-type-news_pi1 > header,
.frame-list-type-news_pi1 > header,
.frame-list-type-tx_news_pi1 > header {
  margin-bottom: 24px;
}

.frame-type-news_pi1 > header h1,
.frame-list-type-news_pi1 > header h1,
.frame-list-type-tx_news_pi1 > header h1 {
  font-size: 2.2rem;
  display: inline-block;
  padding-bottom: 10px;
  border-bottom: 4px solid var(--ci-orange);
  margin-bottom: 1.5rem;
}

.frame-type-news_pi1 > header h2,
.frame-list-type-news_pi1 > header h2,
.frame-list-type-tx_news_pi1 > header h2 {
  font-size: 1.75rem;
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--ci-orange);
  margin-bottom: 1.25rem;
}

.frame-type-news_pi1 > header h3,
.frame-list-type-news_pi1 > header h3,
.frame-list-type-tx_news_pi1 > header h3 {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 12px;
}

.frame-type-news_pi1 > .news-list-section,
.frame-list-type-news_pi1 > .news-list-section,
.frame-list-type-tx_news_pi1 > .news-list-section {
  background-color: transparent !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.frame-type-news_pi1 > .news-list-section > .container,
.frame-list-type-news_pi1 > .news-list-section > .container,
.frame-list-type-tx_news_pi1 > .news-list-section > .container {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

/* =============================================
   13. NEWS DETAIL PAGE
   ============================================= */
.news-hero {
  position: relative;
  min-height: 340px;
  background-size: cover;
  background-position: center 40%;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.news-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.35) 50%,
    rgba(0,0,0,0.10) 100%
  );
}

.news-hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 40px;
  padding-top: 64px;
}

.news-hero-category {
  display: inline-block;
  background-color: var(--ci-orange);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.news-hero-content h1 {
  color: #fff;
  font-size: 2.6rem;
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
  margin-bottom: 16px;
  border-bottom: none;
}

.news-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: rgba(255,255,255,0.82);
  font-size: 0.88rem;
}

.news-hero-meta i { color: var(--ci-orange-light); }

.news-article {
  padding: 64px 0 48px;
  background-color: var(--bg-white);
}

.article-lead {
  font-size: 1.18rem;
  line-height: 1.75;
  color: var(--text-dark);
  font-weight: 600;
  border-left: 4px solid var(--ci-orange);
  padding-left: 20px;
  margin-bottom: 32px;
}

/* Rich-text body area */
.news-bodytext {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
}

.news-bodytext p { margin-bottom: 1.25rem; }

.news-bodytext h2, .news-bodytext h3, .news-bodytext h4 {
  color: var(--text-dark);
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.news-bodytext h2 {
  font-size: 1.5rem;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--ci-orange);
  display: inline-block;
}

.news-bodytext ul, .news-bodytext ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.news-bodytext ul li, .news-bodytext ol li {
  margin-bottom: 0.4rem;
}

.news-bodytext a {
  color: var(--ci-orange);
  text-decoration: underline;
}

.news-bodytext a:hover { color: #c88800; }

.news-bodytext blockquote {
  background-color: var(--ci-orange-pale);
  border-left: 5px solid var(--ci-orange);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 1.5rem 0;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-dark);
}

.news-article p {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
}

.article-subheading {
  font-size: 1.4rem;
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--ci-orange);
  margin-top: 40px;
  margin-bottom: 20px;
}

.article-quote {
  background-color: var(--ci-orange-pale);
  border-left: 5px solid var(--ci-orange);
  border-radius: 0 12px 12px 0;
  padding: 24px 28px;
  margin: 32px 0;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-dark);
  line-height: 1.7;
}

.article-quote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ci-orange);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

.article-tag {
  background-color: var(--bg-warm);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid #ddd;
  transition: background-color 0.15s, color 0.15s;
}

.article-tag:hover {
  background-color: var(--ci-orange-pale);
  color: var(--ci-orange);
  border-color: var(--ci-orange);
}

/* Masonry-Galerie */
.news-gallery {
  background-color: var(--bg-warm);
  padding: 64px 0;
}

.masonry {
  --masonry-cols:   3;
  --masonry-gap:    16px;
  --masonry-radius: 10px;
  column-count: var(--masonry-cols);
  column-gap:   var(--masonry-gap);
}

.masonry a {
  display: block;
  margin-bottom: var(--masonry-gap);
  break-inside: avoid;
  border-radius: var(--masonry-radius);
  overflow: hidden;
  background-color: #ddd;
  transition: transform 0.2s, box-shadow 0.2s;
}

.masonry a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.16);
}

.masonry img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.masonry img.loaded { opacity: 1; }

.news-navigation {
  background-color: var(--bg-white);
  padding: 40px 0;
  border-top: 1px solid #eee;
}

.news-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.15s;
}

.news-nav-link:hover { color: var(--ci-orange); }

.article-sidebar { position: sticky; top: 88px; }

.sidebar-card {
  background-color: var(--bg-warm);
  border-radius: 12px;
  padding: 24px;
  border-top: 3px solid var(--ci-orange);
}

.sidebar-card h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ci-orange);
  margin-bottom: 16px;
}

/* Sidebar news list */
.sidebar-news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-news-list li {
  border-bottom: 1px solid #e8e4de;
  padding: 10px 0;
}

.sidebar-news-list li:last-child { border-bottom: none; }

.sidebar-news-list a {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  line-height: 1.4;
  margin-bottom: 3px;
  transition: color 0.15s;
}

.sidebar-news-list a:hover { color: var(--ci-orange); }

.sidebar-news-list span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* =============================================
   14. VERANSTALTUNGEN / EVENT CARDS
   ============================================= */
.frame-type-news_pi1:has(.event-list),
.frame-list-type-news_pi1:has(.event-list),
.frame-list-type-tx_news_pi1:has(.event-list) {
  background-color: #fff;
}

.event-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  border-left: 4px solid var(--ci-orange);
  transition: transform 0.2s, box-shadow 0.2s;
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

.event-date-badge {
  min-width: 68px;
  text-align: center;
  background-color: var(--ci-orange);
  color: #fff;
  border-radius: 10px;
  padding: 10px 8px;
  font-weight: 700;
  line-height: 1.2;
  flex-shrink: 0;
}

.event-date-badge .day {
  font-size: 1.8rem;
  display: block;
  line-height: 1;
}

.event-date-badge .month {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-info h3 { font-size: 1.1rem; margin-bottom: 6px; color: var(--text-dark); }
.event-info p  { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 6px; line-height: 1.5; }

.event-info .event-location {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.event-info .btn-event {
  color: var(--ci-orange);
  font-weight: 700;
  font-size: 0.88rem;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.event-info .btn-event:hover { color: #c88800; text-decoration: none; }

@media (max-width: 767px) {
  .event-card { flex-direction: column; gap: 16px; }
}

/* =============================================
   15. ENGAGEMENT CARDS (Startseite CTA)
   ============================================= */
.engagement-card {
  background-color: #fff;
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}

.engagement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 36px rgba(0,0,0,0.12);
}

.engagement-card .icon-circle {
  width: 72px;
  height: 72px;
  background-color: var(--ci-orange-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: var(--ci-orange);
}

.engagement-card h3 { font-size: 1.2rem; margin-bottom: 12px; }

.engagement-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

/* =============================================
   16. PERSON CARDS (Vorstand / Personen-Grid)
   ============================================= */

/* Section-Wrapper für den Personen-Grid Content Block */
.persons-section {
  background-color: var(--bg-warm);
  padding: 64px 0;
}

.person-card {
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  transition: transform 0.22s, box-shadow 0.22s;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.person-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.13);
}

.person-card--featured { border-top: 4px solid var(--ci-orange); }

.person-photo-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--bg-warm);
}

.person-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}

.person-card:hover .person-photo { transform: scale(1.04); }

.person-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0ece2 0%, #e8e2d4 100%);
  color: #c5bfb0;
  font-size: 5rem;
}

.person-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.person-role {
  display: inline-block;
  background-color: var(--ci-orange-pale);
  color: var(--ci-orange);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  align-self: flex-start;
}

.person-role--primary { background-color: var(--ci-orange); color: #fff; }

.person-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.person-bio {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
  flex-grow: 1;
  margin-bottom: 20px;
}

.person-contact {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ci-orange);
  border: 1.5px solid var(--ci-orange);
  border-radius: 20px;
  padding: 7px 16px;
  transition: background-color 0.18s, color 0.18s;
  align-self: flex-start;
  margin-top: auto;
  text-decoration: none;
}

.person-contact:hover {
  background-color: var(--ci-orange);
  color: #fff;
  text-decoration: none;
}

/* =============================================
   17. CONTENT-BLOCK: HINWEISBOX
   ============================================= */
.ce-infobox {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 14px;
  font-size: 0.92rem;
  line-height: 1.65;
}

.ce-infobox p { margin: 4px 0 0; color: inherit; font-size: inherit; }
.ce-infobox strong { display: block; margin-bottom: 2px; }

.ce-infobox-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.ce-infobox--info    { background-color: #e8f4fd; color: #1a5276; border-left: 4px solid #2980b9; }
.ce-infobox--success { background-color: #eafaf1; color: #1d6a38; border-left: 4px solid #27ae60; }
.ce-infobox--warning { background-color: #fef9e7; color: #7d6608; border-left: 4px solid #f1c40f; }
.ce-infobox--tip     { background-color: var(--ci-orange-pale); color: #7a4f00; border-left: 4px solid var(--ci-orange); }

.ce-infobox--info    .ce-infobox-icon { color: #2980b9; }
.ce-infobox--success .ce-infobox-icon { color: #27ae60; }
.ce-infobox--warning .ce-infobox-icon { color: #f39c12; }
.ce-infobox--tip     .ce-infobox-icon { color: var(--ci-orange); }

/* =============================================
   18. CONTENT-BLOCK: AKKORDEON / FAQ
   ============================================= */
.ce-accordion .accordion-item {
  border: 1px solid #e0dbd0;
  border-radius: 10px !important;
  margin-bottom: 8px;
  overflow: hidden;
}

.ce-accordion .accordion-button {
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--text-dark);
  background-color: #fff;
}

.ce-accordion .accordion-button:not(.collapsed) {
  background-color: var(--ci-orange-pale);
  color: var(--text-dark);
  box-shadow: none;
}

.ce-accordion .accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(250,170,33,0.25);
}

.ce-accordion .accordion-body {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
  border-top: 1px solid #e0dbd0;
}

/* =============================================
   19. CONTENT-BLOCK: CTA BANNER
   ============================================= */
.ce-cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  background: linear-gradient(135deg, #FFFBEF 0%, #FFF4CC 100%);
  border-left: 4px solid var(--ci-orange);
  border-radius: 0 14px 14px 0;
  padding: 28px 32px;
  margin-top: 12px;
}

.ce-cta-banner h4 { margin-bottom: 6px; font-size: 1.1rem; }
.ce-cta-banner p  { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* =============================================
   20. CONTENT-BLOCK: MASONRY-BILDERGALERIE
   ============================================= */
.masonry-gallery-section {
  padding: 32px 0;
}

.masonry-gallery-section .section-heading {
  margin-bottom: 32px;
}

/* =============================================
   21. CONTENT-BLOCK: ICON-SPALTEN
   ============================================= */
.ce-icon-columns {
  background-color: #FFFAEA;
  padding: 64px 0;
}

.ce-icon-columns .section-heading {
  margin-bottom: 48px;
}

.ce-icon-text {
  text-align: center;
  padding: 40px 32px;
  background-color: #fff;
  border-radius: 16px;
  height: 100%;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
}

.ce-icon-text:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 36px rgba(0,0,0,0.12);
}

.ce-icon-text .icon-circle {
  width: 72px;
  height: 72px;
  background-color: var(--ci-orange-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: var(--ci-orange);
}

.ce-icon-text .icon-circle i {
  display: block;
  line-height: 1;
}

.ce-icon-text h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.ce-icon-text p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

.ce-icon-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .ce-icon-columns {
    padding: 48px 0;
  }

  .ce-icon-text {
    padding: 32px 24px;
  }
}

/* =============================================
   21. CTA BANNER (Seiten-Abschluss)
   ============================================= */
.cta-banner {
  background-color: var(--bg-white);
  padding: 64px 0;
}

.cta-banner-inner {
  background: linear-gradient(135deg, #FFFBEF 0%, #FFF4CC 100%);
  border-radius: 20px;
  padding: 48px;
  border-left: 5px solid var(--ci-orange);
}

.cta-banner-inner h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  display: inline-block;
  border-bottom: none;
}

.cta-banner-inner p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0;
}

@media (max-width: 991px) { .cta-banner-inner { padding: 32px 24px; } }

/* =============================================
   22. WELCOME / WILLKOMMEN
   ============================================= */
.lead-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.welcome-quote {
  background-color: var(--ci-orange-pale);
  border-left: 5px solid var(--ci-orange);
  border-radius: 0 12px 12px 0;
  padding: 32px 28px;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-dark);
  line-height: 1.75;
  margin-top: 16px;
}

.welcome-quote .quote-author {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ci-orange);
}

.welcome-image {
  border-radius: 16px;
  object-fit: cover;
  width: 100%;
  height: 380px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

/* =============================================
   23. FOOTER
   ============================================= */
footer {
  background-color: var(--footer-bg);
  color: rgba(255,255,255,0.8);
  padding: 56px 0 28px;
}

footer h5 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ci-orange);
  display: inline-block;
}

footer p,
footer address {
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
  font-style: normal;
}

footer a {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
}

footer a:hover {
  color: var(--ci-orange-light);
  text-decoration: none;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer ul li { margin-bottom: 8px; }

footer ul li a::before {
  content: '›';
  margin-right: 6px;
  color: var(--ci-orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  padding-top: 20px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom a { color: rgba(255,255,255,0.45); font-size: 0.82rem; }
.footer-bottom a:hover { color: var(--ci-orange-light); }

/* =============================================
   24. HERO-BLOCK (Content Block)
   ============================================= */
.hero-block {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Große Variante (Startseite) */
.hero-block--large {
  min-height: 560px;
}

/* Kompakte Variante (Unterseiten) */
.hero-block--compact {
  min-height: 320px;
}

/* Hintergrundbild-Container mit Ken-Burns (Startseite) */
.hero-block__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

.hero-block--large .hero-block__bg {
  animation: heroKenBurns 18s ease-in-out infinite alternate;
  transform-origin: center center;
}

@keyframes heroKenBurns {
  0%   { transform: scale(1.0)   translate(0, 0); }
  33%  { transform: scale(1.06)  translate(-1%, 0.5%); }
  66%  { transform: scale(1.04)  translate(1%, -0.5%); }
  100% { transform: scale(1.08)  translate(-0.5%, 1%); }
}

/* Overlay */
.hero-block__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.38) 50%,
    rgba(0,0,0,0.12) 100%
  );
}

.hero-block--compact .hero-block__overlay {
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.68) 0%,
    rgba(0,0,0,0.28) 70%,
    rgba(0,0,0,0.05) 100%
  );
}

/* Inhalt */
.hero-block__content {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero-block--compact .hero-block__content {
  padding-top: 48px;
  padding-bottom: 48px;
}

/* Headline */
.hero-block__headline {
  color: #fff;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
  margin-bottom: 20px;
  border-bottom: none;
}

.hero-block--compact .hero-block__headline {
  font-size: 2rem;
  margin-bottom: 12px;
}

/* Subtext */
.hero-block__subtext {
  color: rgba(255,255,255,0.88);
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 36px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
  max-width: 580px;
}

.hero-block--compact .hero-block__subtext {
  font-size: 1rem;
  margin-bottom: 24px;
}

/* CTA-Button */
.hero-block__cta {
  display: inline-flex;
  align-items: center;
  background-color: var(--ci-orange);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(250,170,33,0.4);
}

.hero-block__cta:hover {
  background-color: #e09800;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(250,170,33,0.5);
  text-decoration: none;
}

.hero-block--compact .hero-block__cta {
  font-size: 0.92rem;
  padding: 11px 26px;
}

/* Responsive */
@media (max-width: 991px) {
  .hero-block--large  { min-height: 420px; }
  .hero-block--compact { min-height: 240px; }
  .hero-block__headline { font-size: 2.2rem; }
}

@media (max-width: 767px) {
  .hero-block--large  { min-height: 340px; }
  .hero-block__headline { font-size: 1.7rem; }
  .hero-block__subtext { font-size: 1rem; }
  .hero-block--compact .hero-block__headline { font-size: 1.4rem; }
}

/* =============================================
   26. SONSTIGE RESPONSIVE-REGELN
   ============================================= */
@media (max-width: 991px) {
  .welcome-image { height: 260px; margin-top: 32px; }
  .news-hero-content h1 { font-size: 2rem; }
  .news-hero { min-height: 280px; }
}

@media (max-width: 767px) {
  .news-hero-content h1 { font-size: 1.7rem; }
  .news-hero { min-height: 240px; }
  .news-hero-content {
    padding-top: 48px;
    padding-bottom: 32px;
  }
  .masonry { column-count: 2; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 500px) {
  .masonry { column-count: 1; }
}

.breadcrumb-bar {
  margin-top:15px;
}
