/* ==========================================================================
   Eigene CSS-Anpassungen FPOE Aurolzmuenster (Cassiopeia Extended)
   Seit 26.10.2026 in user.css ausgelagert, damit Joomla-Updates sie nicht
   mehr ueberschreiben (colors.css/colors.min.css werden bei Updates auf
   Werkszustand zurueckgesetzt, user.css nicht).
   Alle neuen CSS-Aenderungen bitte NUR hier vornehmen.
   ========================================================================== */

/* --- Anti-Spam-Honeypot-Feld im Kontaktformular unsichtbar machen --- */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- "Unser Team"-Seite als Karten-Raster --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.person-card {
  margin: 0;
  text-align: center;
}
.person-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  display: block;
}
.person-card figcaption {
  margin-top: 0.5rem;
}
.person-card figcaption strong {
  display: block;
  color: rgb(0, 51, 153);
  font-size: 1rem;
}
.person-card figcaption small {
  display: block;
  color: #666;
  font-size: 0.85rem;
}

/* --- Kopfbereich: einzeilig, Logo im Badge-Look, Menue-Hover/Aktiv-Zustand --- */
.header.container-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 0.5rem;
}
.header.container-header > .grid-child {
  width: auto;
}
.header .container-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}
.header .brand-logo img {
  padding: 6px 12px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  background-color: #fff;
  display: block;
}
.header .mod-menu.nav {
  flex-wrap: wrap;
}
.header .mod-menu .nav-item > a {
  border-radius: 6px;
  padding: 0.5rem 0.85rem;
  transition: background-color 0.15s ease;
}
.header .mod-menu .nav-item > a:hover {
  background-color: rgba(255, 255, 255, 0.18);
}
.header .mod-menu .nav-item.active > a {
  background-color: rgba(255, 255, 255, 0.14);
  text-decoration: underline;
  font-weight: 600;
}

/* --- Homepage-Teaser als abgegrenzte Karten + Kicker-Label (falls vorhanden) --- */
.com-content-article__body > article {
  background-color: #fff;
  border: 1px solid rgb(0, 51, 153, 0.25);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.com-content-article__body > article > small {
  display: block;
  color: rgb(0, 51, 153);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
}

/* --- Beitragsuebersicht "Aktuelles": Einleitungstext auf 3 Zeilen kuerzen --- */
.com-content-category-blog__item .item-content > p:not(.readmore) {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- "Weiterlesen"-Link ohne wiederholten vollen Beitragstitel --- */
.com-content-category-blog__item .readmore a {
  font-size: 0;
}
.com-content-category-blog__item .readmore a .icon-chevron-right {
  font-size: 1rem;
}
.com-content-category-blog__item .readmore a::after {
  content: "Weiterlesen";
  font-size: 1rem;
  margin-left: 0.25rem;
}

/* --- Artikel-Lesbarkeit: Absatzabstand, blaue Zwischenueberschriften, Bildgroesse --- */
.com-content-article__body {
  line-height: 1.6;
}
.com-content-article__body p {
  margin-bottom: 1rem;
}
.com-content-article__body h3 {
  color: rgb(0, 51, 153);
  clear: both;
  margin-top: 1.5rem;
}
figure.item-image {
  max-width: 380px;
  width: 45%;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
figure.item-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* --- Service-Kaertchen (Gemeindeservice) als echte Karten mit Icon-Badges --- */
.section-heading {
  color: rgb(0, 51, 153);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
#mod-custom112 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
#mod-custom112 .section-heading {
  grid-column: 1 / -1;
}
.service-card {
  background-color: #fff;
  border: 1px solid rgba(0, 51, 153, 0.25);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  padding: 1rem;
}
.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: rgb(0, 51, 153);
  color: #fff;
  margin-bottom: 0.5rem;
}
.card-icon svg {
  width: 16px;
  height: 16px;
}
.service-card h2 {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}
.service-card p {
  font-size: 0.9rem;
  margin: 0 0 0.5rem;
}

/* --- Kontaktbox auf einzelnen "Aktuelles"-Artikelseiten unterhalb des Artikels --- */
body.itemid-103.view-article .site-grid {
  display: block;
}
body.itemid-103.view-article .site-grid .container-sidebar-right {
  margin-top: 1.5rem;
}

/* --- Startbild (Gruppenfoto): Desktop volle Breite, 450px, Beschnitt von unten --- */
@media (min-width: 781px) {
  .hero-photo-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    object-position: center 22%;
  }
}

/* ==========================================================================
   Mobil (max-width: 780px): alle Abweichungen vom Desktop-Layout gebuendelt
   ========================================================================== */
@media (max-width: 780px) {
  .hero-photo {
    max-height: 200px;
  }
  .hero-photo-img {
    height: 200px;
  }

  .header.container-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .header.container-header > .grid-child,
  .header .container-nav {
    width: 100%;
  }
  header.header .container-nav ul.mod-menu {
    flex-direction: row !important;
    align-items: flex-start !important;
    flex-wrap: wrap;
  }

  figure.item-image {
    max-width: none;
    width: 100%;
    float: none;
    margin: 0 0 1rem;
  }

  #mod-custom112 {
    grid-template-columns: 1fr;
  }
  .service-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "icon title"
      "icon text"
      "icon link";
    column-gap: 0.75rem;
    align-items: start;
  }
  .service-card .card-icon {
    grid-area: icon;
    margin-bottom: 0;
  }
  .service-card h2 {
    grid-area: title;
  }
  .service-card p {
    grid-area: text;
  }
  .service-card a {
    grid-area: link;
  }
}
