@charset "UTF-8";

/* Grundfarben */
:root {
  --cassiopeia-color-primary: #FFFFFF;
  --cassiopeia-color-hover: #FFFFFF;
}

/* Standardlink ohne Klasse */
a:not([class]) {
  text-decoration: none;
  color: #C9A94E;
}

/* Überschriftengewicht */
h1, .h1, h2, .h2, h3, .h3, h4, .h4 {
  font-weight: var(--cassiopeia-font-weight-headings, 400);
}

/* Logo padding */
.header img, svg {
  padding: 0 20px;
  height: 150px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Schatten für Bilder */
.pg-item-box img, svg,
.site-grid img, svg {
  box-shadow: 0 0 10px rgba(10, 44, 86, 1);
  transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
  z-index: 9999;
}

/* Kategorie-Galerie */
.pg-item-box-image {
  padding: 0;
}

.pg-category-items-box {
  display: inline-flex;
}

.visCSSinput, .editor {
  margin-top: 10px;
  background: 0;
  width: 20%;
}

/* Einheitliche maximale Seitenbreite */
.container-header,
.container-nav,
.site-grid,
.footer,
.mod-menu,
.card-body,
.container,
.container-component,
.container-header .grid-child {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/* Header komplett */
.container-header {
  width: 100%;
}

/* Top-Container mit Hintergrund und Schatten */
.container-top-a > *,
.container-top-b > * {
  background: #0A2C56;
  box-shadow: 0 0 6px rgba(10, 44, 86, 1);
  transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
  z-index: 9999;
}

/* Bottom-Container ohne Hintergrund und Schatten */
.container-bottom-a > *,
.container-bottom-b > * {
  border-bottom: 0;
  border-left: 0;
  border-right: 0;
  border-color: #0A2C56;
  border-radius: 0px;
}

/* Bottom-Container ohne Hintergrund und Schatten */
.container-bottom-a a,
.container-bottom-b a {
  color: #0A2C56 !important;
  font-size: 16px;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(10, 44, 86, 0.2);
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
}

.gallery-item {
  flex: 0 1 calc(33.333% - 10px);
}

.start-box *, .start-aside * {
  min-width: 0;
}
.start-box img, .start-aside img {
  max-width: 100%;
  height: auto;
  display: block;
}

  /* kleine, lokale Styles nur für diese Startseite */
  .start-hero{ text-align:center; padding:40px 20px; }
  .start-hero h1{ color:#0A2C56; margin:10px 0 5px; }
  .start-hero p{ font-size:1.15em; max-width:720px; margin:0 auto; color:#444; }

  .start-wrap{ display:flex; flex-wrap:wrap; gap:40px; justify-content:space-between; padding:20px 0; }
  .start-box{ flex:1 1 320px; max-width:48%; }
  .start-box h2{ color:#0A2C56; margin-top:0; }

  /* Termin-Box (Kurzversion) */
  .start-aside{ flex:0 1 320px; max-width:320px; background:#0A2C56; color:#C9A94E; border-radius:10px; box-shadow:0 0 8px rgba(10,44,86,.25); padding:18px 16px; }
  .start-aside h3{ color:#F7EAB6; margin:0 0 10px; font-size:1.15em; }
  .events{ list-style:none; padding:0; margin:0; }
  .events li{ border-bottom:1px solid rgba(247,234,182,.25); padding:10px 0; }
  .events li:last-child{ border-bottom:none; }
  .event-date{ display:block; font-weight:700; color:#F7EAB6; }
  .event-name{ display:block; color:#fff; }
  .event-place{ display:block; font-size:.9em; color:#D7C88A; }
  .events a{ color:#FFD766; text-decoration:none; }
  .events a:hover{ text-decoration:underline; }

@media (max-width: 768px) {
  .gallery-item {
    flex: 0 1 calc(50% - 10px);
  }
}

@media (max-width: 480px) {
  .gallery-item {
    flex: 0 1 100%;
  }
}

/* Desktop-Ansicht */
@media (min-width: 992px) {
  .container-header .grid-child {
    background: #0A2C56;
    box-shadow: 0 0 6px rgba(10, 44, 86, 1);
    padding: 0 0 7px 15px;
    z-index: 9999;
  }

  .site-grid {
    background-image: url('/images/template-media/bg-texture.png');
    background-repeat: repeat;
    background-size: 600px;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    border-radius: 8px;
  }

  .navbar-toggler {
    display: none;
  }

  .container-header .container-nav {
    background: #0A2C56;
  }

  .container-header .mod-menu > li > a,
  .container-header .mod-menu > li > span {
    color: #C9A94E;
  }

  .container-header .mod-menu > li.current:after,
  .container-header .mod-menu > li.active:after,
  .container-header .mod-menu > li:hover:after {
    background-color: #F7EAB6 !important;
  }


  .navbar {
    --navbar-padding-x: 0;
    --navbar-padding-y: 0;
  }

  .metismenu.mod-menu .metismenu-item a {
    color: #C9A94E;
  }

  .table {
    display: table;
    width: 100%;
  }

  .row {
    display: table-row;
  }

  .cell, .cell_pic {
    display: table-cell;
    padding: 10px;
    vertical-align: top;
    width: 33.33%;
  }

  .cell_pic {
    text-align: center;
  }

  .cell_pic img {
    display: block;
    margin: 0 auto 0 auto;
    max-width: 100%;
    height: auto;
  }
}

/* Mobile-Ansicht */
@media (max-width: 991px) {
  .container-header .grid-child:not(.container-nav),
  .container-header .container-nav {
    background: #0A2C56;
  }

  .container-header .mod-menu > li > a,
  .container-header .mod-menu > li > span {
    color: #C9A94E;
  }

  .container-header .mod-menu > li.active:after,
  .container-header .mod-menu > li:hover:after {
    background: #C9A94E;
  }

  .navbar {
    --navbar-padding-x: 0;
    --navbar-padding-y: 0;
  }

  .metismenu.mod-menu .metismenu-item a {
    color: #C9A94E;
  }

  .row, .cell, .cell_pic {
    display: block;
    width: 100%;
  }

  .cell_pic {
    text-align: center;
  }

  /* Burger-Menü-Button */
  .container-header .navbar-toggler {
    color: #C9A94E !important;
    border: 1px solid #C9A94E !important;
    margin-top: 0 !important;     /* statt tiefer: weiter oben platzieren */
    margin-bottom: 10px !important;     /* ggf. vorhandenen unteren Abstand aufheben */
  }

  .container-header .navbar-toggler:hover {
    color: #FFD766 !important;
    border-color: #FFD766 !important;
  }

  /* Footer-Icons */
  .fas, [class^=icon-], [class*=" icon-"], .fa-solid {
    color: #C9A94E !important;
  }

  .start-wrap {
    gap: 20px;                 /* etwas engerer Abstand auf Mobile */
  }
  
  .start-box,
  .start-aside {
    flex: 0 1 100% !important; /* volle Breite einnehmen */
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0;              /* verhindert „Halbierung“ durch Mindestbreiten */
  }  
}
