/* ==========================================================
   SWV Stockach Startseite
   Joomla 6 / Cassiopeia Extended
   Einfügen in:
   /media/templates/site/cassiopeia_extended/css/user.css
   ========================================================== */

:root{
  --swv-blue:#9BD7F5;
  --swv-green:#195735;
  --swv-green-2:#2f6b3f;
  --swv-light:#f6fafc;
  --swv-text:#1f2b22;
  --swv-shadow:0 12px 32px rgba(0,0,0,.14);
}

body{
  background:#f7fbfd;
  color:var(--swv-text);
}

/* Header */
.header.container-header{
  background:var(--swv-blue) !important;
  background-image:none !important;
  box-shadow:0 3px 12px rgba(0,0,0,.18);
}

.header.container-header .grid-child,
.header.container-header .navbar-brand{
  background:transparent !important;
}

/* Hero */
.swv-hero-startseite{
  position:relative;
  width: 100%;
    max-width: 1600px;
    margin: 20px auto 0 auto;
    transform: none;
}

.swv-hero-img{
  width:100%;
  height:470px;
  object-fit:cover;
  object-position:center;
  display:block;
}

.swv-hero-startseite::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, rgba(0,0,0,.18), rgba(0,0,0,0));
  pointer-events:none;
}

.swv-hero-box{
  position:absolute;
  left:clamp(24px,4vw,70px);
  top:54%;
  transform:translateY(-50%);
  max-width:420px;
  padding:34px;
  color:#fff;
  background:rgba(17,64,44,.82);
  border-radius:18px;
  box-shadow:var(--swv-shadow);
  backdrop-filter:blur(5px);
  z-index:2;
}

.swv-hero-box h1{
  color:#fff;
  font-size:clamp(2rem,3vw,3.2rem);
  line-height:1.15;
  margin:0 0 18px;
  text-shadow:0 2px 8px rgba(0,0,0,.35);
}

.swv-hero-slogan{
  font-size:1.15rem;
  margin:0 0 20px;
}

.swv-hero-fakten{
  display:flex;
  flex-wrap:wrap;
  gap:14px 22px;
  padding-top:18px;
  margin-bottom:24px;
  border-top:1px solid rgba(255,255,255,.28);
  font-weight:700;
}

.swv-hero-buttons,
.swv-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
}

.swv-btn{
  display:inline-block;
  padding:13px 24px;
  border-radius:10px;
  text-decoration:none !important;
  font-weight:800;
  transition:all .2s ease;
}

.swv-btn:hover{
  transform:translateY(-2px);
}

.swv-btn-green{
  background:var(--swv-green-2);
  color:#fff !important;
}

.swv-btn-white{
  background:#fff;
  color:var(--swv-green) !important;
}

/* Kacheln */
.swv-card-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
  max-width:1120px;
  margin:36px auto 28px;
  padding:0 20px;
min-height:280px;
}

.swv-card{
  background:#fff;
  border-radius:16px;
  padding:28px;
  color:var(--swv-text) !important;
  text-decoration:none !important;
  box-shadow:0 8px 24px rgba(0,0,0,.10);
  transition:all .2s ease;
}

.swv-card:hover{
  transform:translateY(-5px);
  box-shadow:0 14px 32px rgba(0,0,0,.15);
}

.swv-card-icon{
  display:inline-flex;
  width:66px;
  height:66px;
  align-items:center;
  justify-content:center;
  margin-bottom:16px;
  border-radius:50%;
  background:#e5f3e9;
  font-size:2rem;
}

.swv-card h3{
  color:var(--swv-green);
  font-size:1.45rem;
  margin-bottom:10px;
}

.swv-card p{
  line-height:1.55;
}

.swv-card strong{
  color:var(--swv-green-2);
}

/* Willkommen */
.swv-welcome-card{
  background:#fff;
  border-radius:16px;
  box-shadow:0 8px 24px rgba(0,0,0,.09);
  padding:34px;
  margin-bottom:32px;
}

.swv-welcome-card h2,
.swv-welcome-card h3{
  color:var(--swv-green);
}

.swv-welcome-card h2{
  font-size:2.2rem;
  margin-bottom:18px;
}

.swv-welcome-card h3{
  font-size:1.35rem;
  line-height:1.45;
}

.swv-welcome-card p{
  font-size:1.08rem;
  line-height:1.7;
}

/* Sidebar Menü */
.sidebar-right .card,
.container-sidebar-right .card{
  border:0;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(0,0,0,.12);
}

.sidebar-right .card-header,
.container-sidebar-right .card-header{
  background:#fff;
  color:var(--swv-green);
  font-size:1.4rem;
  font-weight:800;
  padding:22px 24px;
}

.sidebar-right .mod-menu li,
.container-sidebar-right .mod-menu li{
  border-top:1px solid #e5edf0;
}

.sidebar-right .mod-menu a,
.sidebar-right .mod-menu button,
.container-sidebar-right .mod-menu a,
.container-sidebar-right .mod-menu button{
  display:flex;
  justify-content:space-between;
  align-items:center;
  width:100%;
  padding:15px 22px !important;
  color:var(--swv-green) !important;
  font-weight:700;
  text-decoration:none;
}

.sidebar-right .mod-menu a:hover,
.container-sidebar-right .mod-menu a:hover{
  background:#eef8fd;
}

@media(max-width:900px){
  .swv-hero-startseite,
  .swv-hero-img{
    min-height:560px;
    height:560px;
  }

  .swv-hero-box{
    left:18px;
    right:18px;
    top:au50%;
    bottom:24px;
    transform:translateY(-50%);
    max-width:none;
    padding:24px;
  }

  .swv-card-grid{
    grid-template-columns:1fr;
.swv-card-grid {
    margin-top: 25px;
}
  }
}
.swv-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

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

.swv-hero-overlay {
  position: absolute;
  left: 4%;
  bottom: 10%;
  max-width: 520px;
  padding: 32px;
  background: rgba(18, 61, 39, .78);
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}

.swv-hero-overlay h1 {
  color: #fff;
  font-size: 2.3rem;
  margin: 0 0 14px;
}

.swv-hero-overlay p {
  font-size: 1.15rem;
  margin-bottom: 18px;
}

.swv-hero-facts {
  display: flex;
  gap: 18px;
  margin-bottom: 22px;
  font-weight: 700;
}

.swv-button {
  display: inline-block;
  margin-right: 12px;
  padding: 12px 22px;
  background: #2f6b3f;
  color: #fff !important;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
}

.swv-button-light {
  background: #fff;
  color: #2f6b3f !important;
}

@media (max-width: 768px) {
  .swv-hero-overlay {
    position: static;
    max-width: none;
    border-radius: 0;
  }

  .swv-hero-facts {
    flex-direction: column;
    gap: 6px;
  }
}
.swv-hero-startseite{
  position:relative;
  overflow:visible;
}

.swv-hero-img{
  width:100%;
  display:block;
object-fit: cover;
    object-position: center;

}

.swv-hero-box{
  position:absolute;
  left:4%;
  top:18%;
  max-width:520px;
  padding:32px;
  background:rgba(18,61,39,.82);
  color:#fff;
  border-radius:18px;
}

.swv-hero-box h1{
  color:#fff;
  font-size:2.4rem;
}

.swv-hero-fakten{
  margin:20px 0;
  font-weight:bold;
  display:flex;
  gap:20px;
}

.swv-btn{
  display:inline-block;
  padding:12px 22px;
  margin-right:12px;
  border-radius:12px;
  font-weight:bold;
  text-decoration:none;
min-width:190px;
    text-align:center;
}

.swv-btn-green{
  background:#2f6b3f;
  color:#fff!important;
}

.swv-btn-white{
  background:#fff;
  color:#2f6b3f!important;
}
.swv-hero-img{
    width:100%;
    height:650px;
    object-fit:cover;
}
.swv-hero-box{

left:50px;

bottom:60px;

top:auto;

}
<h1>
Willkommen beim<br>
Schwarzwaldverein Stockach
</h1>
Seit 1972 Rund 260 Mitglieder
📅 Seit 1972

👥 Rund 260 Mitglieder
object-position:center;
/* =======================================================
   STARTSEITEN-KACHELN
   ======================================================= */

.swv-card-grid{
    .swv-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 260px;

}

.swv-card{
    background:#fff;
    border-radius:18px;
    padding:30px;
    text-decoration:none;
    color:#222;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    transition:.3s;
}

.swv-card:hover{
    transform:translateY(-6px);
    box-shadow:0 15px 30px rgba(0,0,0,.15);
}

.swv-card-icon{
    font-size:54px;
    display:block;
    margin-bottom:18px;
}

.swv-card h3{
    color:#2f6b3f;
    margin-bottom:12px;
}

.swv-card strong{
    color:#2f6b3f;
}
/* =======================================================
   AKTUELLES
   ======================================================= */


    
}.aktuelles {
    margin-top:45px;
    padding:25px;
    border-radius:18px;
    background:#fff;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
}
.swv-hero-startseite{
    width:100%;
    max-width:1400px;
    margin:0 auto;
}
.swv-hero-img{
    width:100%;
    height:520px;
    object-fit:cover;
    object-position:center;
}
.swv-hero-fakten{
    display:flex;
    gap:25px;
    margin:20px 0;
    font-weight:600;
}
.swv-willkommen-box {
  background: #ffffff;
  border-radius: 18px;
  padding: 32px;
  margin: 35px 0;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.swv-willkommen-box h2 {
  color: #2f6b3f;
  margin-bottom: 16px;
}
/* =======================================================
   AKTUELLES – STARTSEITE
   ======================================================= */

.swv-aktuelles {
    background: #fff;
    border-radius: 18px;
    padding: 35px;
    margin: 40px 0;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.swv-aktuelles h3 {
    color: #2f6b3f;
    font-size: 2rem;
    margin-bottom: 25px;
}

.swv-aktuelles .mod-articlesnews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.swv-aktuelles .mod-articlesnews__item {
    background: #f8fbfc;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
}

.swv-aktuelles .mod-articlesnews__item img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 15px;
}

.swv-aktuelles a {
    color: #2f6b3f;
    font-weight: 700;
}

.swv-aktuelles .readmore a {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 18px;
    background: #2f6b3f;
    color: #fff !important;
    border-radius: 12px;
    text-decoration: none;
}
/* Startseiten-Begrüßung */

.swv-starttext {
  background: #fff;
  border-radius: 18px;
  padding: 32px;
  margin: 35px 0;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.swv-starttext h2 {
  color: #2f6b3f;
  margin-bottom: 16px;
}

.swv-starttext p {
  font-size: 1.08rem;
  line-height: 1.7;
}
/* =======================================================
   AKTUELLES – STARTSEITE MIT SIDEBAR
   ======================================================= */

.swv-aktuelles {
    background:#fff;
    border-radius:18px;
    padding:30px;
    margin:35px 0;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.swv-aktuelles h3 {
    color:#2f6b3f;
    font-size:2rem;
    margin-bottom:22px;
}

.swv-aktuelles .mod-articlesnews__item {
    display:grid;
    grid-template-columns:180px 1fr;
    gap:22px;
    padding:20px 0;
    border-bottom:1px solid #e5e5e5;
}

.swv-aktuelles .mod-articlesnews__item:last-child {
    border-bottom:none;
}

.swv-aktuelles img {
    width:180px;
    height:120px;
    object-fit:cover;
    border-radius:14px;
}

.swv-aktuelles a {
    color:#2f6b3f;
    font-weight:700;
}

.swv-aktuelles .readmore a {
    display:inline-block;
    margin-top:10px;
    padding:9px 16px;
    background:#2f6b3f;
    color:#fff !important;
    border-radius:10px;
    text-decoration:none;
}

@media(max-width:700px){
    .swv-aktuelles .mod-articlesnews__item {
        grid-template-columns:1fr;
    }

    .swv-aktuelles img {
        width:100%;
        height:180px;
    }
}
/* Hero breiter / fast fullwidth */
.swv-hero-startseite {
  width: 100vw;
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
  border-radius: 0;
}

.swv-hero-img {
  width: 100%;
  max-width: none;
}
.swv-hero-startseite {
  margin-top: 90px !important;
}
/* =======================================================
   INTERNER BEREICH
   ======================================================= */

.swv-intern-box{
  background:#fff;
  border-radius:18px;
  padding:35px;
  margin:35px 0;
  box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.swv-intern-box h2{
  color:#2f6b3f;
  margin-bottom:15px;
  font-size:2rem;
}

.swv-intern-box p{
  font-size:1.05rem;
  line-height:1.7;
}

.swv-intern-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:24px;
  margin-top:28px;
}

.swv-intern-card{
  display:block;
  background:#f8fbfc;
  border-radius:16px;
  padding:26px;
  color:#222;
  text-decoration:none;
  box-shadow:0 4px 12px rgba(0,0,0,.06);
  transition:.25s;
}

.swv-intern-card span{
  font-size:42px;
  display:block;
  margin-bottom:12px;
}

.swv-intern-card h3{
  color:#2f6b3f;
  margin-bottom:10px;
}

.swv-intern-card strong{
  color:#2f6b3f;
}

.swv-intern-card:hover{
  transform:translateY(-5px);
  box-shadow:0 12px 26px rgba(0,0,0,.14);
}
/* ==================================================
   Phoca Gallery – moderne Galerieübersicht
   ================================================== */

/* Gesamte Galerie etwas luftiger */
.pg-categories-view,
.pg-category-view {
    margin-top: 1.5rem;
}

/* Einzelne Galerie-Karten */
.pg-categories-view .pg-cv-box,
.pg-categories-view .pg-box1,
.pg-categories-view .pg-box2,
.pg-categories-view .pg-box3 {
    border-radius: 12px;
}

/* Bild und Kartenbereich */
.pg-categories-view img {
    display: block;
    border-radius: 12px;
    transition:
        transform 0.3s ease,
        filter 0.3s ease;
}

/* Weicher Schatten für die Galerie-Kacheln */
.pg-categories-view .pg-cv-box,
.pg-categories-view .pg-box3 {
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.16);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

/* Dezenter Hover-Effekt */
.pg-categories-view .pg-cv-box:hover,
.pg-categories-view .pg-box3:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.23);
}

/* Bild beim Überfahren leicht vergrößern */
.pg-categories-view .pg-cv-box:hover img,
.pg-categories-view .pg-box3:hover img {
    transform: scale(1.035);
    filter: brightness(0.94);
}

/* Titel besser lesbar */
.pg-categories-view a,
.pg-categories-view .pg-cv-name,
.pg-categories-view .pg-cv-name a {
    font-weight: 700;
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.75);
}

/* Bildanzahl etwas dezenter */
.pg-categories-view .pg-cv-count,
.pg-categories-view .pg-cv-item-count {
    font-size: 0.88rem;
    opacity: 0.92;
}

/* Ordnersymbol etwas moderner */
.pg-categories-view .fa-folder,
.pg-categories-view .fa-folder-open {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

/* Smartphones */
@media (max-width: 768px) {
    .pg-categories-view .pg-cv-box,
    .pg-categories-view .pg-box3 {
        margin-bottom: 1rem;
    }

    .pg-categories-view a,
    .pg-categories-view .pg-cv-name {
        font-size: 1rem;
    }
}

/* Weniger Bewegung für Nutzer mit entsprechender Einstellung */
@media (prefers-reduced-motion: reduce) {
    .pg-categories-view img,
    .pg-categories-view .pg-cv-box,
    .pg-categories-view .pg-box3 {
        transition: none;
    }
}
/* ==================================================
   Phoca Gallery – moderner Titelbereich
   ================================================== */

.pg-category-box {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.pg-category-box-image {
    position: relative;
    overflow: hidden;
}

.pg-category-box-image::after {
    content: "";
    position: absolute;
    inset: 35% 0 0;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0),
        rgba(0, 0, 0, 0.82)
    );
}

.pg-category-box-info {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 1rem;
    pointer-events: none;
}

.pg-category-box-title {
    margin: 0;
}

.pg-modern-category-link {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    color: #fff !important;
    text-decoration: none !important;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
    pointer-events: auto;
}

..pg-modern-category-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;

    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    min-height: 2.4em;
}

.pg-modern-category-meta {
    font-size: 0.88rem;
    font-weight: 500;
    opacity: 0.92;
}

/* Altes Ordnersymbol ausblenden */
.pg-category-box-title > .ph-si-category {
    display: none !important;
}

/* Hover */
.pg-category-box-image img {
    transition:
        transform 0.3s ease,
        filter 0.3s ease;
}

.pg-category-box:hover .pg-category-box-image img {
    transform: scale(1.045);
    filter: brightness(0.92);
}

/* Auf kleinen Bildschirmen etwas kompakter */
@media (max-width: 768px) {
    .pg-category-box-info {
        padding: 0.75rem;
    }

    .pg-modern-category-title {
        font-size: 1rem;
    }

    .pg-modern-category-meta {
        font-size: 0.82rem;
    }
}
.pg-category-box:hover .pg-category-box-image::after {
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0),
        rgba(0,0,0,.92)
    );
}
.pg-category-box {
    height: 220px;
}

.pg-category-box-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}