@charset "utf-8";
@import "animate.css";
@import url("https://fonts.googleapis.com/css?family=Cabin+Condensed:400,600,700&display=swap");
@import url("https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css");

/*========================================================
                      Main Styles
=========================================================*/
html, body { height: 100%; margin: 0; }

body{
  font-family: "Cabin Condensed", system-ui, -apple-system, "Segoe UI",
               Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--c-txt);
  background: var(--c-bg);
}

.page{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main{ flex: 1 0 auto; }

footer{
  background: #f5f5f5;
  font-family: inherit;
  margin-top: auto;
  padding: 20px 0;
}

body {
  background: #ffffff;
  color: #d9cfc2;
  font: 300 16px/24px "Open Sans Light", sans-serif; /* fix */
  -webkit-text-size-adjust: none;
}
img {
    max-width: 100%;
    height: auto;
    margin-bottom: 0px;
    margin-top: 5px;
    padding-bottom: 0px;
}
h2 a:hover,
h3 a:hover,
h4 a:hover,
h5 a:hover,
h6 a:hover {
    color: #CE922E;
}
h2 {
    margin-top: 0px;
    font-family: "Open Sans Light";
    font-size: 30px;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: 0.9px; 
    color: #61162d;
    text-transform: uppercase;
    text-align: center;
    font-style: normal;
}
h2.primary {
	text-align: center;
    color: #61162d;
	width: 100%; 
}
h22 {
    margin-top: 0px;
    font-family: "Open Sans Light";
    font-size: 30px;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: 0.9px; 
    color: #FFF;
    text-transform: uppercase;
    text-align: center;
    font-style: normal;
}
h22.primary {
	text-align: center;
    color: #FFF;
	width: 100%; 
}

h23 {
    margin-top: 0px;
    font-family: "Open Sans Light";
    font-size: 30px;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: 0.9px; 
    color: #FFF;
    text-transform: uppercase;
    text-align: right;
    font-style: normal;
}
h23.primary {
	text-align: right;
    color: #FFF;
	width: 100%; 
}

h3 {
  margin-top: 8px;
  margin-bottom: 15px;
  font-size: 22px;
  line-height: 1.5;
  letter-spacing: 1px; 
  font-weight: 400;
  color: #61162d;
  text-transform: uppercase;
}
h4 {
  margin-bottom: 15px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
  color: #d9cfc2;
  text-transform: uppercase;
}
h4 a:hover {
  color: #d9cfc2;
}
h5 {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 24px;
  font-weight: 700;
  color: #61162d;
}
h2 + h5 {
  text-align: center;
  margin-bottom: 75px;
  margin-top: -32px;
}
h3 + h5,
h3 + ol {
  margin-top: 37px;
}
h3 + .box04 {
  margin-top: 45px;
}
.box-img + h4 {
  margin-top: 25px;
}
.thumb + h4 {
  margin-top: 15px;
}
h7 {
  margin-bottom: 15px;
  font-size: 30px;
  line-height: 18px;
  font-weight: 700;
  color: #FFF;
  text-transform: uppercase;
  text-align: center;
}
h8 {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 18px;
    font-weight: lighter;
    color: #FFF;
    text-align: center;
}
h9 {
    margin-bottom: 15px;
    font-size: 11px;
    line-height: 1.5;
    font-weight: lighter;
    color: #434343;
    text-align: center;
}
h10 {
    margin-bottom: 15px;
    font-size: 18px;
    line-height: 18px;
    font-weight: lighter;
    color: #323232;
    text-align: center;
}
h11 {
    margin-bottom: 15px;
    font-size: 13px;
    line-height: 18px;
    font-weight: lighter;
    color: #323232;
    text-align: center;
}
h12 {
    margin-bottom: 25px;
    font-size: 48px;
    line-height: 25px;
    font-weight: bold;
    color: #FFF;
    text-align: left;
}
h12 a:hover {
    color: #CE922E;
}
h14 {
    margin-bottom: 15px;
    font-size: 10px;
    line-height: 18px;
    font-weight: lighter;
    color: #323232;
    text-align: center;
}
h15 {
    font-family: "Open Sans Medium";
	color: #323232;
	text-decoration: none;
	outline: none;
	-moz-transition: 0.3s;
	-o-transition: 0.3s;
	-webkit-transition: 0.3s;
	transition: 0.3s;
	font-size: large;
    text-shadow: 3px 3px 2px rgba(0, 0, 0, 0.4);
}
p a:hover {
  text-decoration: none;
}
time {
  display: block;
}
a {
	font-family: 'Open Sans';
	color: #494949;
	text-decoration: none;
	outline: none;
	-moz-transition: 0.2s;
	-o-transition: 0.2s;
	-webkit-transition: 0.2s;
	transition: 0.2s;
	font-size: 16px;
    letter-spacing: 0.2px;
    line-height: 1.5;
}
a:active {
    font-family: "Open Sans";
	background-color: #F5F5F5;
	text-align: left;
}
a[href^="tel:"] {
  color: inherit;
  text-decoration: none;
}

a1 {
	font-family: 'Open Sans';
	color: #FFF;
	text-decoration: none;
	outline: none;
	-moz-transition: 0.3s;
	-o-transition: 0.3s;
	-webkit-transition: 0.3s;
	transition: 0.3s;
	font-size: 16px;
    letter-spacing: 0.2px;
    line-height: 1.5;
}
a1:active {
    font-family: "Open Sans";
	background-color: #F5F5F5;
	text-align: left;
}
a1[href^="tel:"] {
  color: inherit;
  text-decoration: none;
}
strong {
  font-weight: 700;
}
.fa {
    line-height: inherit;
    color: #61172D;
    position: static;
    text-align: center;
    margin-bottom: 0px;
}
[class*='fa-']:before {
    font-weight: 400;
    font-family: 'FontAwesome';
    shadow: 0px 0;
    box-shadow: 0px 0;
    bottom: 10px;
}
.page {
    overflow: hidden;
    text-align: left;
}
.lt-ie9 .page {
  min-width: 100%;
}

#einlogformular input 
{
	border: #999 solid 1px;
}
/*=======================================================
                        Components
=========================================================*/
        .sf-menu {
            font-family: "Open Sans Light";
            display: inline-block;
            padding-top: 0px;
        }
        .sf-menu:before,
        .sf-menu:after {
            content: " ";
            display: table;
        }
        .sf-menu:after {
            clear: both;
        }
        .sf-menu > li {
            position: relative;
            float: left;
            margin-right: 19px;
        }
        @media (max-width: 979px) and (min-width: 768px) {
            .sf-menu > li {
            margin-right: 5px;
            }
        }
        .sf-menu a {
            display: block;
            margin-bottom: 0px;
            line-height: 0.9;
        }
        .sf-menu > li > a {
            display: block;
            color: #61162d;
            padding: 36px 15px;
            font-size: 14px;
            line-height: 30px;
            text-decoration: none; /* Hinzugefügt für bessere Darstellung */
        }
        .sf-menu > li.sfHover > a,
        .sf-menu > li > a:hover {
            color: #CE922E;
        }
        .sf-menu > li.active > a {
            background: transparent;
            border-bottom: 0px solid transparent;
            color: #61162d;
            margin-bottom: 0px;
        }
        .sf-menu ul {
            display: none;
            position: absolute;
            top: 60px;
            left: -2px; /* Einheit hinzugefügt */
            padding: 14px 0 20px;
            background: #FFF;
            z-index: 2;
            -moz-box-sizing: border-box;
            -webkit-box-sizing: border-box;
            box-sizing: border-box;
        }
        .sf-menu ul > li {
            padding: 10px 10px;
            position: relative;
            text-align: left;
        }
        .sf-menu ul > li > a {
            color: #765152;
            text-transform: capitalize;
            padding-left: 7px;
            font-size: 14px;
            text-decoration: none; /* Hinzugefügt für bessere Darstellung */
        }
        .sf-menu ul > li.sfHover > a,
        .sf-menu ul > li > a:hover {
            color: #CE922E;
        }
        .sf-menu ul ul {
            position: absolute;
            top: 6px;
            left: 100%;
            width: 100px;
            margin-top: 0;
            padding: 3px 0;
            background: #FFF;
            z-index: 4;
        }
        .sf-menu ul ul > li {
            padding: 6px 0 6px 15px;
        }
        .sf-menu ul ul > li > a {
            color: #d9cfc2;
            text-decoration: none; /* Hinzugefügt für bessere Darstellung */
        }
        .sf-menu ul ul > li.sfHover > a,
        .sf-menu ul ul > li > a:hover {
            color: #CE922E;
        }
        .sf-menu > li > .sf-with-ul {
            position: relative;
        }
        .sf-menu > li > .sf-with-ul:before {
            position: absolute;
            left: 50%;
            top: 62%;
            margin-left: -6px;
            content: '\f0d7';
            font: 400 12px/12px 'FontAwesome';
            color: #d9cfc2;
        }
        @media (max-width: 767px) {
            .sf-menu {
                display: none;
            }
        }
        /*==================  Select Menu  ======================*/
        .select-menu {
            position: relative;
            display: none;
            width: 100%;
            background: #f5f5f5 url("../images/select.png") no-repeat right center !important;/* Absoluten Pfad verwenden */
            overflow: hidden;
        }
        
        .select-menu .select {
            width: 100%; /* Breite konsistent zur .select-menu */
            height: 30px;
            color: #585858;
            background: #f5f5f5; /* Hintergrundfarbe als transparent */
            font-family: 14px "Open Sans Light";
            line-height: 30px;
            border: 1px solid #ccc; /* Ein Rahmen hinzufügen für bessere Sichtbarkeit */
            border-radius: 0;
            box-shadow: none;
            outline: none;
            appearance: none;
            -moz-appearance: none;
            -webkit-appearance: none;
            cursor: pointer; /* Zeigt, dass es ein auswählbares Element ist */
        }
        
        .select-menu .select::-ms-expand {
            display: block; /* Entfernt Standard-Dropdown-Pfeil */
        }
        
/* Hamburger Menü Styling */
#hamburger.hamburger {
  display: none; /* Desktop: versteckt */
  width: 30px;
  height: 25px;
  margin-left: 59px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  padding: 5px;
  box-sizing: border-box;
  position: relative;
  z-index: 10010; /* über dem Slider */
}
#hamburger.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #61162d;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Layout */
@media (max-width: 767px) {
  #hamburger.hamburger {
    display: flex;
    margin-top: 8px;
    margin-left: 70px;
  }

  /* Nav-Container (#nav-menu) standardmäßig versteckt */
  #nav-menu.nav {
    display: none;
    width: 100%;
    position: relative;
    z-index: 10010;       /* über dem Slider */
    background: #fff;     /* Lesbarkeit */
  }
  /* wenn aktiv: zeigen */
  #nav-menu.nav.active { display: block; }

  /* UL der Superfish-Menüstruktur */
  #nav-menu .sf-menu {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  /* Top-Level */
  #nav-menu .sf-menu > li {
    position: relative;
    float: none;
    margin: 0;
    text-align: center;
  }
  #nav-menu .sf-menu > li > a {
    display: block;
    padding: 15px;
    border-bottom: 1px solid #ddd;
    font-size: 18px;
    text-align: center;
  }

  /* Submenüs: standardmäßig ausblenden … */
  #nav-menu .sf-menu ul {
    display: none;
    position: relative;   /* nicht absolute -> echte Höhe zählt mit */
    top: auto;
    left: auto;
    padding: 0;
    background: #fff;
    overflow: visible;
  }
  /* … und nur anzeigen, wenn das LI offen ist
     (Superfish setzt mobil meist .sfHover; alternativ kannst du
      beim Tippen eine .open-Klasse setzen) */
  #nav-menu .sf-menu li.sfHover > ul,
  #nav-menu .sf-menu li.open > ul {
    display: block;
  }

  /* Submenü-Items */
  #nav-menu .sf-menu ul > li { padding: 10px 20px; text-align: left; }
  #nav-menu .sf-menu ul ul { padding-left: 20px; }
}
/*==================  Stuck menu  ======================*/
.isStuck {
  background: #ffffff;
  z-index: 999;
  border-bottom: 1px solid #FAFAFA;
}
.isStuck .brand {
  top: 0;
  width: 200px;
}
@media only screen and (max-width: 979px) {
  .isStuck {
    display: none !important;
  }
}
/*==================     ToTop     ======================*/
.toTop {
    display: inline-block;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 42px;
    line-height: 36px;
    color: #FAFAFA;
    background-color: rgb(250, 250, 250, 0.2); /* 40% Deckkraft (60% transparent) */
    overflow: hidden;
    text-align: center;
    text-decoration: none;
    z-index: 20;
    margin-top: 19px;
}

.toTop:hover {
    color: #61162d;
    background-color: rgb(250, 250, 250, 1); /* 40% Deckkraft (60% transparent) */
    text-decoration: none;
}

/*==================   Tumbnail    ======================*/
.thumb {
    display: block;
    position: relative;
    overflow: hidden;
}
.thumb img {
  width: 100%;
  height: auto;
  -moz-transition: 0.5s all ease;
  -o-transition: 0.5s all ease;
  -webkit-transition: 0.5s all ease;
  transition: 0.5s all ease;
}
.thumb_overlay {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    -moz-transition: 0.3s all ease;
    -o-transition: 0.3s all ease;
    -webkit-transition: 0.3s all ease;
    transition: 0.3s all ease;
    color: #ffffff;
    background: transparent;
    height: 499px;
}
.thumb_overlay:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  background: url(../images/icon_expand.png) no-repeat left top;
  margin-top: -20px;
  margin-left: -20px;
}
.lt-ie9 .thumb_overlay:before {
  display: none;
}
.thumb:hover .thumb_overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.5);
}
.lt-ie9 .thumb:hover .thumb_overlay {
  background: none;
  -ms-filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#80000000');
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#80000000');
  zoom: 1;
}
.lt-ie9 .thumb:hover .thumb_overlay:before {
  display: block;
}
.thumb:hover img {
  -moz-transform: scale(1.2);
  -ms-transform: scale(1.2);
  -o-transform: scale(1.2);
  -webkit-transform: scale(1.2);
  transform: scale(1.2);
}
.video:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  background: url(../images/icon_video.png) no-repeat left top;
  margin-top: -28px;
  margin-left: -28px;
}
.video .thumb_overlay:before {
  display: none;
}
/*========================================================
                     Top_section
=========================================================*/
.top_panel {
    float: right;
    padding: 20px 0;
    opacity: 1;
}
@media (max-width: 767px) {
  .top_panel {
    float: none;
  }
}
.action-link {
  display: inline-block;
  margin-right: 55px;
  vertical-align: top;
  font-size: 14px;
  line-height: 30px;
  color: #61162d;
}
.action-link:hover {
    color: #CE922E;
    text-align: center;
}
.action-link .fa {
    color: #a3a3a2;
    margin-right: 5px;
    padding-top: 0px;
    margin-top: 0px;
    top: auto;
    padding-left: 0px;
    height: auto;
    margin-bottom: 0px;
}
.social-list1 {
  display: inline-block;
  margin-left: 11px;
  vertical-align: top;
}
@media (max-width: 767px) {
  .social-list1 {
    margin-left: 0;
  }
}
.social-list1 li {
  display: inline-block;
  margin-left: 10px;
}
.social-list1 li a {
  display: block;
  color: #d9cfc2;
}
.social-list1 li a:hover {
  color: #b1b1b1;
}
.social-list1 li a .fa {
  display: block;
  font-size: 18px;
  line-height: 30px;
}

/*========================================================
                     HEADER  Section
=========================================================*/
header {
  background-color: #FFFFFF;
  margin-bottom: 7px;
}

header .brand {
    position: absolute;
    top: 2px;
    left: -1px;
    display: inline-block;
    overflow: hidden;
}
@media (max-width: 979px) and (min-width: 768px) {
  header .brand {
    width: 200px;
  }
}
@media (max-width: 767px) {
  header .brand {
    position: static;
  }
}

header .nav {
  float: right;
}

@media (max-width: 767px) {
  header {
    text-align: center;
  }
  header .brand,
  header .nav {
    float: none;
  }
}

header .container {
  position: relative;
  margin-top: 0px; 
  margin-bottom: 5px;
}
/*========================================================
                     CONTENT  Styles
=========================================================*/
main {
    flex: 1; 
    display: block;
    background-color: #FFFFFF;
    color: #F5F5F5;
}
main p {
    margin-bottom: 25px;
    color: #FDFBF4;
    font-size: x-large;
    text-align: center;
}
.mt0 {
  margin-top: 0;
}
.mt01 {
  margin-top: 20px;
}
.mb01 {
  margin-bottom: 20px;
}
.mb02 {
  margin-bottom: 25px;
}
.primary {
  color: #f6b402;
}
.link1:hover {
  color: #d9cfc2;
  text-decoration: underline;
}

.centered-icon{
  display: block;
  margin: 0 auto;   /* zentriert horizontal */
}
/*==================  Backgrounds  ======================*/
.bg01 {
  background: #d9cfc2;
  background: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6));
  height: 8px;
}
.bg02 {
    background-repeat: repeat-x;
    background-position: bottom center;
    background-color: #FFFFFF;
    text-align: center;
}
.bg03 {
  position: relative;
  background: #d0c4b4;
}
.bg04 {
  position: relative;
  background: #61162d;
}
.bg05 {
  background: #ffffff url(../images/) no-repeat center -210px;
  padding-bottom: 40px;
  height: 360px;
}
@media (max-width: 767px) {
  .bg05 {
    background: #fff;
  }
}

/*==================  iframe  ======================*/

  .iframe-container {
    position: relative;
    width: 100%;
    height: 800px;
    margin-bottom: 0px;
    /* optional: max-width begrenzen, z. B. auf 600px */
    overflow: hidden;
  }
  .iframe-container::before {
    content: "";
    display: block;
    /* 800px Höhe bei 100% Breite → Verhältnis 800/100 = 8 → padding-bottom: 800/100*100% = 800% */
    padding-bottom: 100%; /* hier Anpassung nach gewünschtem Seitenverhältnis */
  }
  .iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 801px;
    border: 0;
  }

/* in ChurchTools → System settings → Calendar module → Custom CSS */
@media (max-width: 600px) {
  .churchcal-mobile .ct-header,
  .churchcal-mobile .ct-footer {
    display: none !important;
  }
  .churchcal-mobile .ct-daycell {
    font-size: 14px !important;
    padding: 4px !important;
  }
}

/*==================  Login Container  ======================*/
#einlogformular input {
	border: #999 solid 1px;
}
.login-container {
    width: 100%;
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    text-align: center;
    box-sizing: border-box;
}

/* Input immer volle Breite innerhalb des Containers */
.login-container input[type=password] {
    width: 95%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Button ebenfalls flexibel */
.login-container button {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-sizing: border-box;
}

/* =========================================================
   Bilder Gemeinde
   ========================================================= */

/* Modal-Styles */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0; top: 0;
  width: 80%; height: 80%;
  overflow: hidden;
  background-color: rgba(0,0,0,0.9);
  text-align: center;
}

.image-modal.show {
  display: block;
}

.image-modal img {
  max-width: 80%;
  max-height: 70vh;
  border-radius: 8px;
}

.image-modal-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}

.modal-prev,
.modal-next {
  cursor: pointer;
  position: fixed;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -10px;
  color: white;
  font-weight: bold;
  font-size: 40px;
  user-select: none;
  border-radius: 0 3px 3px 0;
  background-color: rgba(0,0,0,0.3);
  transition: background-color 0.3s;
  z-index: 10000;
}

.modal-prev:hover,
.modal-next:hover {
  background-color: rgba(0,0,0,0.8);
}

.modal-prev {
  left: 10px;
  border-radius: 3px 0 0 3px;
}

.modal-next {
  right: 10px;
  border-radius: 0 3px 3px 0;
}

/*==================      Well     ======================*/
.well01 {
  padding-bottom: 75px;
}
.well03 {
    padding-bottom: 55px;
    margin-top: 0px;
}
.well031 {
    padding-bottom: 0px;
    margin-top: 70px;
    background-color: #FFFFFF
}
.well032 {
  margin: 0;
  display: block;
  padding: clamp(16px, 5vh, 40px) 0 40px;
  min-height: 0;
  max-height: none;
  background: #fff url("../images/back.png") no-repeat center / cover;
  box-sizing: border-box;
  overflow: visible;
}

/* Sehr kleine Geräte */
@media (max-width: 400px) {
  .well032 {
    min-height: 0;
    padding: 16px 0 32px;
  }
}
.well033 {
    padding-bottom: 20px;
    margin-top: 20px;
    height: 350px;
    width: auto;
    background: #FFFFFF url(../images/backkind.png) no-repeat center;
}
.well04 {
  padding: 70px 0 65px;
}
.well05 {
  padding-top: 15px;
  padding-bottom: 60px;
}
.well06 {
	padding-top: 70px;
	padding-bottom: 35px;
	position: static;
    align-items: center;
	float: none;
	border-collapse: collapse;
}
.well07 {
    padding-bottom: 0px;
}
/*==================    Buttons    ======================*/
.btn {
    position: relative;
    display: inline-block;
    width: 100px;
    margin-bottom: 10px;
    margin-right: 5px;
    text-align: center;
    font-size: 14px;
    line-height: 25px;
    text-transform: uppercase;
    color: #fff;
    background: #F5F5F5;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    z-index: 1;
    background-color: #61162D;
}
.btn:hover {
  text-decoration: none;
  background: #891F3F;
}

/* Hero */
.hero{
  background: #fff;
  padding: clamp(28px, 6vw, 60px) 20px;
  border-bottom: 1px solid #e7ebef;
}

.hero-inner{
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.hero h1{
  margin: 0 0 6px;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: .08em;
  font-size: clamp(22px, 3.2vw, 36px);
}

.subtitle{
  margin: 0;
  opacity: .8;
  font-size: clamp(14px, 1.6vw, 16px);
}

/* Container & Reihen */
.container{
  max-width: 1200px;
  margin: 24px auto 72px;
  color: #d9cfc2;
  padding: 0 20px;
}

.container_footer{
  max-width: 1200px;
  margin: 24px auto 72px;
  padding: 0 20px;
}

.row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 22px;
}

.row--reverse{
  grid-auto-flow: dense;
}

.row--reverse .text-card{ order: 1; }
.row--reverse .image-card{ order: 2; }

/* Karten */
.card{
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Bilder */
.image-card{
  display: grid;
}

.image-card img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Textkarten */
.text-card{
  padding: clamp(20px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text-card h2,
.text-card h3{
  margin: 0 0 10px;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: .04em;
}

.text-card h2{ font-size: clamp(18px, 2.2vw, 22px); }
.text-card h3{ font-size: clamp(18px, 2.1vw, 21px); }

.text-card p{ margin: 0 0 12px; }

.text-card .info{
  margin-top: 8px;
  line-height: 1.5;
}

.text-card a{
  color: #cfe4ff;
  text-decoration: underline;
}

.text-card--dark{
  background: var(--dark);
  color: #fff;
}

.text-card--light{
  background: var(--light);
  text-align: center;
}

/*####################################################################################
Videos
####################################################################################*/

/* Raster / Layout, optional */
.video-container {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

/* Einheitliches Seitenverhältnis für alle Embeds */
.video-item {
  position: relative;
  aspect-ratio: 16 / 9;   /* moderner, einfacher Weg */
  width: 100%;
}

.video-item video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;      /* füllt, kann an den Rändern schneiden */
  object-position: center;
}

/*####################################################################################
Zweispaltig Hauptseite
####################################################################################*/

  .two-up {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-height: 40px;              /* Höhe nach Bedarf anpassen */
  }

.box-text-shadow {
    text-shadow: 1px 2px 2px black;
}

  /* Ein Feld (ganze Kachel klickbar) */
  body { margin: 0; }

  .panel {
    display: flex;
    flex-direction: column;
    justify-content: center;        /* vertikale Zentrierung */
    align-items: center;            /* horizontale Zentrierung */
    text-align: center;
    gap: 12px;
    padding-top: 20px;
    padding-bottom: 30px;
    color: #fff;
    text-decoration: none;          /* Link-Deko entfernen */
  }

  .panel.left  { background: #313E47; }   /* dunkles Blaugrau */
  .panel.right { background: #d0c4b4; }   /* Ziegelrot */

  .panel h3 {
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
  }

  .panel p { margin: 0; opacity: .9; }

  .btn-outline {
    display: inline-block;
    border: 2px solid #fff;
    padding: 10px 16px;
    text-decoration: none;
    color: #fff;
  }
  .btn-outline:focus,
  .btn-outline:hover { background: rgba(255,255,255,.12); }

  /* Responsiv: untereinander auf schmalen Screens */
  @media (max-width: 900px) {
    .two-up { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  }

.two-up_g {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 350px;  /* jede Zeile gleich hoch */
  gap: 0;
}

  .panel_g {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;        /* vertikale Zentrierung */
    align-items: center;            /* horizontale Zentrierung */
    text-align: center;
    height: 350px;
    margin-bottom: 0px;
    color: #000;
    text-decoration: none;          /* Link-Deko entfernen */
    text-shadow: 1px 2px 2px black;
  }

  .panel_g.left  { background: #d0c4b4; }
  .panel_g.right { background: #313E47; }


  .panel_g h3 {
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 1px 2px 2px black;
  }

  .btn-outline {
    display: inline-block;
    border: 2px solid #fff;
    padding: 10px 16px;
    text-decoration: none;
    text-shadow: 1px 2px 2px black;
    color: #fff;
  }
  .btn-outline:focus,
  .btn-outline:hover { background: rgba(255,255,255,.12); }

  /* Responsiv: untereinander auf schmalen Screens */
@media (max-width: 900px) {
  .two-up_g { grid-template-columns: 1fr; grid-auto-rows: 260px; }
}
/* --- Bild soll die Kachel vollständig füllen --- */
.panel_img {
  position: absolute;
  inset: 0;                /* top/right/bottom/left: 0 */
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0);      /* eliminiert Haarlinien in manchen Browsern */
}

/* --- Rechts-Kachel: Text linksbündig --- */
.panel_g.right {
  align-items: flex-start; /* statt center */
  text-align: left;
  text-shadow: 1px 2px 2px black;
  padding-left: 24px;
  padding-right: 24px;
  padding-bottom: 0px;
}

/* Lesbarkeit der Fließtexte verbessern */
.panel_g p { 
  margin: 0; 
  opacity: .9; 
  max-width: 65ch; 
}

/* Optional: auf sehr schmalen Screens Bild-Kacheln etwas niedriger */
@media (max-width: 900px) {
  .panel_g { height: 260px; }
}
/* 1) Grid: keine feste Höhe, jede Reihe exakt 300px hoch */
.two-up_g{
  height: auto;                 /* statt 600px */
  grid-auto-rows: 350px;        /* jede Zeile gleich hoch */
  gap: 0;                       /* falls du Abstand willst, hier z.B. 24px setzen */
}

/* 2) Grundpanel: nichts abschneiden lassen */
.panel_g{
  position: relative;
  height: auto;                 /* Höhe kommt jetzt von grid-auto-rows */
  overflow: hidden;             /* Bild sauber beschneiden */
}

/* 4) Das Bild selbst: füllt die gesamte Kachel */
.panel_g.image > img {
  position: absolute;
  inset: 0;                /* top/right/bottom/left: 0 */
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0);      /* eliminiert Haarlinien in manchen Browsern */
}

/* 5) Text-Kachel rechts linksbündig */
.panel_g.left{
  align-items: flex-start;
  text-align: right;
  padding: 0px 24px 0;
}

  .panel_g h23 {
    margin: 0;
    letter-spacing: 0.5px;
    text-align: right;
    text-transform: uppercase;
  }

/*#############################################################################
Container: Zweispaltig KiGo
#############################################################################*/

body { margin: 0; }

/* =======================
   Grid-Container
   ======================= */
.two-up-kigo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding-top: 50px;
  min-height: 40px; 
}

/* =======================
   Panels (auto-height)
   ======================= */
.panel_kigo {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;     /* vertikal zentriert (bei kurzen Texten) */
  align-items: center;         /* rechts überschreiben wir auf linksbündig */
  text-align: center;
  gap: 12px;
  padding: 24px 24px 20px;
  text-decoration: none;
  overflow: visible;           /* << nichts mehr abschneiden */
  min-height: clamp(200px, 28svh, 220px);
  z-index: 0;
}

/* Linkes Panel – dunkel */
.panel_kigo.left {
  background: #313E47;
  color: #fff;
  min-height: 250px; 
  height: auto;
}

/* Rechtes Panel – hell */
.panel_kigo.right {
  background: #d0c4b4;
  color: #111;
  align-items: flex-start;     /* Text linksbündig */
  text-align: left;
  min-height: 250px;
  height: auto;
}

/* Typografie */
.panel_kigo h3,
.panel_kigo h6,
.panel_kigo h2,
.panel_kigo p {
  margin: 0 0 8px 0;           /* konsistente Abstände */
  line-height: 1.4;
}
.panel_kigo p { max-width: 65ch; }

/* Button – Kontrastfreundlich per currentColor */
.btn-outline {
  display: inline-block;
  border: 2px solid currentColor;
  padding: 10px 16px;
  text-decoration: none;
  color: inherit;
}
.btn-outline:focus,
.btn-outline:hover { background: rgba(0,0,0,.08); }
.panel_kigo.left .btn-outline:focus,
.panel_kigo.left .btn-outline:hover { background: rgba(255,255,255,.12); }

/* Hintergrundbild im Panel */
.panel_img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
  z-index: -1;                 /* hinter den Text */
}

/* Utility */



.box-text-shadow { text-shadow: 1px 2px 2px black; }

/* =======================
   Responsive
   ======================= */
@media (max-width: 900px) {
  .two-up-kigo {
    grid-template-columns: 1fr;
    row-gap: 16px;             /* etwas Luft zwischen den Kacheln */
  }
  /* Panels füllen mobil nicht die ganze Breite, sondern 94% */
  .two-up-kigo .panel_kigo {
    width: 100%;
    max-width: 100vw;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    /* Bei langen Texten lieber oben/unten etwas mehr Platz geben */
    padding: 20px 16px;
    justify-content: flex-start; /* bei langen Texten oben beginnen */
  }
}

/*##############################################################################
Container: einspaltiges Grid mit fixer Reihenhöhe
################################################################################*/
.one-up_e{
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 100px;
  width: 100%;
  gap: 0;
}

/* Panel-Grundstil */
.panel_e{
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;     /* vertikal zentrieren */
  align-items: center;         /* horizontal zentrieren */
  text-align: center;
  color: #fff;
  background: #313E47;
  height: auto;
  text-decoration: none;       /* Link-Deko entfernen */
  overflow: hidden;            /* Bild sauber beschneiden */
  padding: 20px 24px 10px;
  text-shadow: 1px 2px 2px black;
}

/* Bild füllt die gesamte Kachel */
.panel_img,
.panel_e.image > img{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    transform: translateZ(0);
}

/* Typo & Button wie gehabt */
.panel_e h3{
  margin: 0 0 8px 0;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.panel_e p{
  margin: 0 0 16px 0;
  opacity: .9;
  max-width: 65ch;
}
.btn-outline{
  display: inline-block;
  border: 2px solid #fff;
  padding: 10px 16px;
  text-decoration: none;
  color: #fff;
}
.btn-outline:focus,
.btn-outline:hover{ background: rgba(255,255,255,.12); }

/* Responsiv: niedriger auf schmalen Screens */
@media (max-width: 900px){
  .one-up_e{ grid-auto-rows: 260px; }
}


/*==================      Sticky Footer      ======================*/
footer {
  margin-top: auto;
  padding-bottom: 0;
}

/* Deine Footer-Box */
.container_footer{
  max-width: 1200px;
  margin: 24px auto 0;   /* statt 24px auto 72px */
  padding: 0 20px 0;     /* padding-bottom: 0 */
}


/*==================      Box      ======================*/

.container1 {
	display: flex;
	flex-wrap: wrap;
	background-color: #F5F5F5;
	max-width: 1170px;
	width: 100%;
	padding-bottom: 50px;
    }

@media (max-width: 600px) {
  .container1 {
    width: 94%;
    max-width: none;   /* Entfernt die maximale Breitenbeschränkung */
    padding-left: 3%;  /* Optional: Fügt einen linken Padding hinzu, um den Container zu zentrieren */
    padding-right: 3%; /* Optional: Fügt einen rechten Padding hinzu, um den Container zu zentrieren */
  }
}
.container2 {
    display: flex;
    flex-wrap: wrap;
    background-color: transparent;
    max-width: 1170px;
	text-align: center;
    width: 100%;
    }

/* Allgemeine Styles für .box */
.box {
    flex: 1;
    padding-top: 10px;
    padding-left: 40px;
    padding-right: 40px;
    padding-bottom: 60px;
    box-sizing: border-box;
    min-width: 300px;
    text-align: left;
    color: #262626;
    background: #FFF;
}

.box1 {
    flex: 1;
    padding-top: 10px;
    padding-left: 40px;
    padding-right: 40px;
    padding-bottom: 60px;
    box-sizing: border-box;
    min-width: 300px;
    text-align: center;
    color: #262626;
    background: #FFF;
}

/* Media Query für mobile Geräte */
@media (max-width: 768px) {
    .box {
        flex: none;              /* Deaktiviert Flex-Wachstum */
        width: 94%;              /* Setzt die Breite auf 94% */
        max-width: 94%;          /* Sicherstellt, dass die maximale Breite ebenfalls 94% beträgt */
        min-width: unset;        /* Entfernt die Mindestbreite */
        margin: 0 auto;          /* Zentriert die Box horizontal */
    }
    
    .right-box-spende {
        flex: none;              /* Deaktiviert Flex-Wachstum */
        width: 94%;              /* Setzt die Breite auf 94% */
        max-width: 94%;          /* Sicherstellt, dass die maximale Breite ebenfalls 94% beträgt */
        min-width: unset;        /* Entfernt die Mindestbreite */
        margin: 0 auto;          /* Zentriert die Box horizontal */
    }
    /* Anpassung der Formularelemente auf mobilen Geräten */
    form input, form select, form textarea {
        width: 100%;             /* Volle Breite für Formularelemente */
    }
}

/* Styles für Formularelemente auf größeren Bildschirmen */
form input, form select, form textarea {
    width: 94%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

form textarea {
    resize: vertical;
    height: 100px;
}

.left-box {
    padding-top: 10px; 
    padding-bottom: 10px;
    text-align: left;
}

.left-box-spende p,
.right-box-spende a {
    font-size: var(--box-font-size, 18px) !important;
    font-size: inherit !important;
    color: #000;
    text-align: left;
}

.left-box-spende {
    padding-top: 10px; 
    padding-bottom: 10px;
}

.right-box-spende {
    flex: 1;
    padding-top: 10px;
    padding-left: 40px;
    padding-right: 40px;
    padding-bottom: 60px;
    box-sizing: border-box;
    min-width: 300px;
    color: #262626;
    background: #FFF;
}
/* Responsive Styling für mobile Geräte */
@media (max-width: 600px) {
.btn-container {
    justify-content: center; /* Buttons zentrieren */
    flex-direction: column; /* Optional: Buttons untereinander anordnen */
    align-items: center;
    }

.btn-container button {
    width: 94%; /* Breite der Buttons auf mobilen Geräten */
	margin-left: 30px; 
    margin-bottom: 10px; /* Abstand zwischen den Buttons */
    }
}

/* Gemeinsame Button-Stile */
.btn-container button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #fff;
    color: white;
    transition: background-color 0.3s;
    }

/*.btn-container button:hover {
    background-color: #0056b3;
    }*/

.send-btn {
    position: relative;
    display: inline-block;
    width: 120px;
    margin-bottom: 10px;
    margin-right: 5px;
    text-align: center;
    font-size: 14px;
    line-height: 25px;
    text-transform: uppercase;
    color: #fff;
    background: #d9cfc2;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    z-index: 1;
    background-color: #61162D;
}

.reset-btn {
	position: absolute;
	display: inline-block;
	width: 120px;
	margin-bottom: 10px;
	margin-right: 5px;
	text-align: center;
	font-size: 14px;
	line-height: 25px;
	text-transform: uppercase;
	color: #fff;
	background: #d9cfc2;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	z-index: 1;
	background-color: #61162D;
}

.send-btn:hover {
  text-decoration: none;
  background: #891F3F;
}

.reset-btn:hover {
  text-decoration: none;
  background: #891F3F;
}
/* Responsive Design */
@media (max-width: 768px) {
.container1 {
    flex-direction: column;
    }

    .left-box {
    border-right: none;
    border-bottom: 1px solid #ccc;
    }
}

/* Styles für Formularelemente auf größeren Bildschirmen */
form input, form select, form textarea {
    width: 94%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.box01 {
    border: 3px solid #d9cfc2;
    background: #d9cfc2;
    text-align: center;
    padding-bottom: 0px;
    margin-top: 40px;
    margin-bottom: 40px;
    height: 550px;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    padding-top: 15px;
}
.box01:before,
.box01:after {
  content: " ";
  display: table;
}
.box01:after {
  clear: both;
}
.box01 h4 {
	margin-bottom: 0;
	font-size: 16px;
	text-align: center;
	line-height: 21px;
	color: #61172D;
}
.box01 h4 a:hover {
  color: #f6b402;
}
.box01 p {
  padding: 0 10px;
  margin: 0;
  font-size: 12px;
  text-align: center;
  line-height: 18px;
  text-transform: uppercase;
  color: #61162d;
}
.box01_aside {
  float: left;
}
.box01_cnt__no-flow {
  overflow: hidden;
}
.box-img {
  border: 12px none #000000;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.box-img img {
  width: 100%;
  height: auto;
}
.date {
  font-size: 13px;
  line-height: 21px;
  text-transform: uppercase;

}
.box02 {
    margin-bottom: 40px;
    text-align: center;
}
.box02 p {
  font-size: 12px;
  line-height: 16px;
  margin-bottom: 30px;
}
.box03:before,
.box03:after {
  content: " ";
  display: table;
}
.box03:after {
  clear: both;
}
.box03_aside {
	float: left;
	margin-right: 15px;
	text-align: center;
	text-align-last: center;
	width: 270px;
}
@media (max-width: 1199px) {
  .box03_aside {
    float: none;
    text-align: center;
    margin-bottom: 20px;
    margin-right: 0;
  }
}
.box03_aside .fa {
  width: 70px;
  height: 70px;
  border-radius: 20%;
  border: 3px solid #edecec;
  text-align: center;
  line-height: 70px;
  font-size: 36px;
  color: #e2472e;
}
.box03_cnt__no-flow {
    overflow: hidden;
    margin-top: -10px;
    text-align: left;
}
.box03_cnt__no-flow.middle {
  vertical-align: middle;
  display: table-cell;
}
@media (max-width: 1199px) {
  .box03_cnt__no-flow.middle {
    display: block;
    text-align: center;
  }
}
.box03_cnt__no-flow p {
  font-size: 14px;
  line-height: 18px;
}
.box03 .contact-text {
  color: #e2472e;
  font-size: 18px;
  line-height: 21px;
  text-transform: uppercase;
}
.box03 a.contact-text:hover {
  color: #f6b402;
}
.box04 {
  margin-bottom: 3px;
}
.box04:before,
.box04:after {
  content: " ";
  display: table;
}
.box04:after {
  clear: both;
}
.box04_aside {
  float: left;
  margin-right: 25px;
  border-radius: 3px;
}
@media (max-width: 479px) {
  .box04_aside {
    float: none;
    margin-bottom: 20px;
  }
}
.box04_cnt__no-flow {
  overflow: hidden;
}
.box04_cnt__no-flow h5 {
  margin-top: -5px;
  margin-bottom: 5px;
}
.box05 {
	background: #d9cfc2;
	text-align: center;
	padding-bottom: 10px;
	margin-top: 40px;
	margin-bottom: 40px;
	box-shadow: 0 0 0; /* Leichter Schatten */
	height: 380px;
	width: 180px;
	-webkit-box-shadow: 0 0 0;
	color: #FFFFFF;
}
.box05:before,
.box05:after {
  content: " ";
  display: table;
}
.box05:after {
  clear: both;
}
.box05 h4 {
	margin-bottom: 0;
	font-size: 16px;
	text-align: center;
	line-height: 21px;
	color: #61172D;
}
.box05 h4 a:hover {
  color: #f6b402;
}
.box05 p {
  padding: 0 10px;
  margin: 0;
  font-size: 12px;
  text-align: center;
  line-height: 18px;
  text-transform: uppercase;
  color: #61162d;
}
.box05_aside {
  float: left;
}
.box05_cnt__no-flow {
  overflow: hidden;
}
.box05buch {
	background: #d9cfc2;
	text-align: center;
	padding-bottom: 11px;
	margin-top: 30px;
	margin-bottom: -30px;
	box-shadow: 0 0 0; /* Leichter Schatten */
	height: 380px;
	width: 180px;
	-webkit-box-shadow: 0 0 0;
	padding-right: 14px;
	padding-left: 14px;
	margin-left: 0px;
	margin-right: 0px;
	padding-top: 11px;
}

.box05buch:before,
.box05buch:after {
  content: " ";
  display: table;
}
.box05buch:after {
  clear: both;
}
.box05buch h4 {
	margin-bottom: 0;
	font-size: 14px;
	text-align: center;
	line-height: 18px;
	color: #61172D;
}
.box05buch h4 a:hover {
  color: #f6b402;
}
.box05buch p {
  padding: 0 10px;
  margin: 0;
  font-size: 12px;
  text-align: center;
  line-height: 18px;
  text-transform: uppercase;
  color: #61162d;
}
.box05buch_aside {
  float: left;
}
.box05buch_cnt__no-flow {
  overflow: hidden;
}

/* Responsive Anpassungen */

/* Für Tablets */
@media (max-width: 768px) {
  .box05buch {
    width: 45%; /* Zwei Boxen pro Zeile */
    height: auto; /* Automatische Höhe */
    margin: 15px auto; /* Zentrieren mit automatischen Rändern */
  }
  
  .box05buch h4 {
    font-size: 18px;
  }
  
  .box05buch p {
    font-size: 14px;
  }
}

/* Für Smartphones */
@media (max-width: 480px) {
  .box05buch {
    width: 100%; /* Eine Box pro Zeile */
    margin: 15px 0; /* Abstand oben und unten */
    height: auto; /* Automatische Höhe */
  }
  
  .box05buch h4 {
    font-size: 20px;
  }
  
  .box05buch p {
    font-size: 16px;
  }
  
  .box05buch {
    padding-right: 10px;
    padding-left: 10px;
  }
}

/* Galerie */
.gallery-container {
  max-width: 600px;
  margin: auto;
  padding-bottom: 80px;
  text-align: center;
  position: relative;
}

.galleryImage {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  cursor: pointer;
}

#galleryImage {
  transition: filter 0.3s ease, transform 0.3s ease;
}

#galleryImage:hover {
  filter: brightness(1.01);  /* 5% heller */
  transform: scale(1.00);    /* ganz leicht vergrößern */
  cursor: pointer;
}

/* Pfeile außerhalb vom Bild */
.prevBtn {
  position: absolute;
  left: -40px;  /* Verschiebe links nach außen */
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  user-select: none;
}

.nextBtn {
  position: absolute;
  right: -40px; /* Verschiebe rechts nach außen */
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  user-select: none;
}

/* Modal-Styles */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0; top: 0;
  width: 80%; height: 80%;
  overflow: hidden;
  background-color: rgba(0,0,0,0.9);
  text-align: center;
}

.image-modal.show {
  display: block;
}

.image-modal img {
  max-width: 80%;
  max-height: 70vh;
  border-radius: 8px;
}

.image-modal-close {
    position: absolute;
    top: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    right: auto;
}

.modal-prev,
.modal-next {
  cursor: pointer;
  position: fixed;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -10px;
  color: white;
  font-weight: bold;
  font-size: 40px;
  user-select: none;
  border-radius: 0 3px 3px 0;
  background-color: rgba(0,0,0,0.3);
  transition: background-color 0.3s;
  z-index: 10000;
}

.modal-prev:hover,
.modal-next:hover {
  background-color: rgba(0,0,0,0.8);
}

.modal-prev {
  left: 10px;
  border-radius: 3px 0 0 3px;
}

.modal-next {
  right: 10px;
  border-radius: 0 3px 3px 0;
}

/* Optional: Anpassungen für größere Bildschirme */
@media (min-width: 1200px) {
  .box05buch {
    width: 180px; /* Beibehaltung der ursprünglichen Breite */
    height: 380px;
  }
}

/* Stil für die Box */
.container3 {
    display: flex;
    justify-content: center; /* Zentriert die Boxen horizontal */
    flex-wrap: wrap;         /* Ermöglicht das Umbrechen der Boxen auf kleinere Bildschirme */
    text-align: left;
    padding: 20px;
    gap: 5px;                /* Abstand zwischen den Boxen */
    max-width: 900px;        /* Maximale Breite des Containers */
    margin: 0 auto;          /* Zentriert den Container auf der Seite */
    margin-bottom: 40px;
}

.container5 {
    display: flex;
    justify-content: center; /* Zentriert die Boxen horizontal */
    flex-wrap: wrap;         /* Ermöglicht das Umbrechen der Boxen auf kleinere Bildschirme */
    text-align: center;
    padding: 20px;
    gap: 5px;                /* Abstand zwischen den Boxen */
    max-width: 900px;        /* Maximale Breite des Containers */
    margin: 0 auto;          /* Zentriert den Container auf der Seite */
    margin-bottom: 60px;
}

.container9 {
    display: flex;
    justify-content: center; /* Zentriert die Boxen horizontal */
    flex-wrap: wrap;         /* Ermöglicht das Umbrechen der Boxen auf kleinere Bildschirme */
    text-align: left;
    font-size: 10px;
    padding: 20px;
    gap: 5px;                /* Abstand zwischen den Boxen */
    max-width: 900px;        /* Maximale Breite des Containers */
    margin: 0 auto;          /* Zentriert den Container auf der Seite */
    margin-bottom: 40px;
}
audio {
    width: 100%;
    max-width: 350px;
    max-height: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    background-color: #61162d;
    padding: 5px;
}

/* ===========================
   FCG Archiv Player
   =========================== */
:root{
  --egap-bg:#3b3b3b;
  --egap-bg2:#333;
  --egap-fg:#ffffff;
  --egap-muted:#bdbdbd;
  --egap-line:rgba(255,255,255,.07);
  --egap-accent:#f3c300; /* gelb */
  --egap-wave-off:rgba(255,255,255,.35);
}

.egap-player{
  background: var(--egap-bg);
  color: var(--egap-fg);
  border: 1px solid rgba(0,0,0,.35);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 10px 26px rgba(0,0,0,.25);
  margin: 14px 0 18px;
  font-family: 'Open Sans', Arial, sans-serif;
}

/* Buttons/Icons im Player weiß (überschreibt ggf. Theme-Farbe #61162d) */
.egap-player .fa{ color: var(--egap-fg) !important; }
.egap-player button{ color: var(--egap-fg); }

.egap-top{
  display: grid;
  grid-template-columns: 92px 1fr 210px;
  gap: 16px;
  align-items: center;
}

.egap-cover{
  width: 92px; height: 92px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.12);
  background: #222;
}
.egap-cover img{ width:100%; height:100%; object-fit: cover; object-position: 50% 58%; transform: translateY(-2px) scale(1.10);
  display:block; }

.egap-main{
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  align-items: center;
}

.egap-controls{
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.egap-btn{
  width: 42px; height: 42px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.egap-btn:hover{ background: rgba(255,255,255,.06); }
.egap-btn:active{ transform: translateY(1px); }
.egap-btn .fa{ font-size: 20px; }


/* Größerer Play/Pause Button */
.egap-controls [data-egap-play]{ width: 84px; height: 84px; }
.egap-controls [data-egap-play] .fa{ font-size: 42px; }
.egap-now{ min-width: 0; }
.egap-title{
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.egap-meta{
  margin-top: 2px;
  color: var(--egap-muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.egap-vol{
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: center;
  justify-self: end;
}
.egap-vol input[type="range"]{ width: 100%; accent-color: #61162d; }

/* Wave/Progress */
.egap-wave{
  margin-top: 12px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  user-select: none;
}
.egap-wave canvas{
  width: 100%;
  height: 72px;
  display: block;
}

.egap-time{
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--egap-muted);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}

/* Playlist im Player */
.egap-list{
  margin-top: 0;
  border-top: 0;
  max-height: 320px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.35) rgba(0,0,0,.22);
}
.egap-list::-webkit-scrollbar{ width: 10px; }
.egap-list::-webkit-scrollbar-track{ background: rgba(0,0,0,.22); border-left: 1px solid rgba(255,255,255,.06); }
.egap-list::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.28); border-radius: 999px; border: 2px solid rgba(0,0,0,.22); }
.egap-list::-webkit-scrollbar-thumb:hover{ background: rgba(255,255,255,.36); }

.egap-item{
  width: 100%;
  text-align: left;
  padding: 15px 12px;
  border: 0;
  border-bottom: 1px solid var(--egap-line);
  background: transparent;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr 70px;
  gap: 12px;
  align-items: center;
  position: relative;
}
.egap-item:hover{ background: rgba(255,255,255,.05); }

/* Active: nur gelbe Schrift (kein linker Balken, kein Button) */
.egap-item.is-active .egap-item-title{ color: var(--egap-accent); }

.egap-item-left{ min-width: 0; }
.egap-item-title{
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.egap-item-meta{
  margin-top: 4px;
  color: var(--egap-muted);
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.egap-item-right{
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--egap-muted);
}

.egap-dur{
  color: var(--egap-muted);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  min-width: 44px;
  text-align: right;
}

.egap-mini{ display:none; }

/* Search-Bar unter der Audiografik, über der Playlist */
.egap-bar{
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--egap-line);
  border-bottom: 1px solid var(--egap-line);
}

.egap-search{
  display: grid;
  grid-template-columns: 1fr 34px 34px;
  gap: 8px;
  align-items: center;
}
.egap-search input{
  height: 28px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,.35);
  background: #f2f2f2;
  color: #222;
  padding: 0 8px;
}
.egap-search button{
  height: 28px;
  border-radius: 4px;
  border: 0;
  background: rgba(255,255,255,.12);
  cursor: pointer;
}
.egap-search button:active{ transform: translateY(1px); }
.egap-search button.is-on{ color: var(--egap-accent); }

.egap-toggles{ display: inline-flex; gap: 8px; align-items: center; }
.egap-toggle{
  width: 34px; height: 28px;
  border-radius: 4px;
  border: 0;
  background: rgba(255,255,255,.10);
  cursor: pointer;
  position: relative;
}
.egap-toggle.is-on{ color: var(--egap-accent); }
.egap-toggle:active{ transform: translateY(1px); }

/* Repeat-One Badge (wie „1“ im Demo) */
.egap-toggle[data-repeat-one="1"]::after{
  content: "1";
  position: absolute;
  right: 4px; top: 3px;
  font-size: 10px;
  line-height: 1;
  color: var(--egap-accent);
  font-weight: 700;
}

/* Alte Liste ausblenden (kein Doppel-Layout mehr). */
.egap-js .directory-tree{ display:none !important; }
.egap-js .directory-tree audio{ display:none !important; }

/* Falls du lieber erst nach Player-Init ausblenden willst: egap-ready bleibt kompatibel. */
.egap-ready .directory-tree{ display:none !important; }
.egap-ready .directory-tree audio{ display:none !important; }

@media (max-width: 820px){
  .egap-top{ grid-template-columns: 72px 1fr; }
  .egap-cover{ width:72px; height:72px; }
  .egap-vol{ grid-column: 1 / -1; justify-self: start; width: min(420px, 100%); }
  .egap-main{ grid-template-columns: 1fr; }
  .egap-item{ grid-template-columns: 1fr 80px; }
  .egap-list{ max-height: 45vh; }
}

/* Mobile */
@media (max-width: 640px){
  .egap-player{ padding: 12px; border-radius: 7px; }

  .egap-top{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .egap-cover{
    width: 64px; height: 64px;
    flex: 0 0 64px;
  }

  .egap-main{
    flex: 1 1 calc(100% - 76px);
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .egap-controls{
    gap: 10px;
  }

  .egap-btn{
    width: 40px; height: 40px;
  }
  .egap-btn .fa{ font-size: 18px; }

  /* Play/Pause bleibt groß, aber etwas kompakter */
  .egap-controls [data-egap-play]{ width: 72px; height: 72px; }
  .egap-controls [data-egap-play] .fa{ font-size: 36px; }

  .egap-title{ font-size: 15px; }
  .egap-meta{ font-size: 12px; }

  .egap-vol{
    flex: 1 1 100%;
    width: 100%;
    justify-self: stretch;
  }
  .egap-vol input[type="range"]{ height: 22px; }

  .egap-wave canvas{ height: 56px; }
  .egap-time{ font-size: 11px; }

  .egap-bar{
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .egap-search{
    grid-template-columns: 1fr 40px 40px;
  }
  .egap-search input{
    height: 32px;
    font-size: 14px;
  }
  .egap-search button{ height: 32px; }

  .egap-toggles{
    justify-content: flex-end;
  }
  .egap-toggle{ width: 40px; height: 32px; }

  .egap-list{ max-height: 55vh; }
  .egap-item{
    padding: 14px 10px;
    grid-template-columns: 1fr 62px;
    gap: 10px;
  }
  .egap-dur{ min-width: 52px; }

  /* Titel darf zweizeilig werden */
  .egap-item-title{
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .egap-item-meta{
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-width: 420px){
  .egap-cover{ width: 56px; height: 56px; flex-basis: 56px; }
  .egap-controls [data-egap-play]{ width: 66px; height: 66px; }
  .egap-controls [data-egap-play] .fa{ font-size: 33px; }
  .egap-wave canvas{ height: 52px; }
}

/* ===========================
   Swiper Buttons – Lösung A
   =========================== */

.swiper-button-prev,
.swiper-button-next {
  /* Sichtbarkeit: mobil ausblenden wie zuvor */
  display: none;

  /* Positionierung */
  position: absolute;
  top: 44%;
  transform: translateY(-50%);

  /* Fläche & Zentrierung */
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;              /* ab >=992px aktiv, siehe Media Query */
  place-items: center;

  /* Optik & Typo */
  background: transparent !important;
  border-radius: 999px;
  font-family: "Open Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  color: #ffffff;

  /* Interaktion */
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 10;
}

/* Seitenzuordnung */
.swiper-button-prev { left: 0; }
.swiper-button-next { right: 0; }

/* RTL-Unterstützung */
.swiper-container-rtl .swiper-button-next { left: 0; right: auto; }
.swiper-container-rtl .swiper-button-prev { right: 0; left: auto; }

/* Pfeil-Zeichen: typografisch zentrierte Guillemets */
.swiper-button-prev::before,
.swiper-button-next::before {
  pointer-events: none;
}
.swiper-button-prev::before { content: "\2039"; } /* ‹ */
.swiper-button-next::before { content: "\203A"; } /* › */

/* Alte Linie via ::after vollständig deaktivieren */
.swiper-button-prev::after,
.swiper-button-next::after { content: none; display: none; }

/* Hover (optional) */
.swiper-button-prev:hover,
.swiper-button-next:hover { 
  color: #61162d;
  opacity: .03;
}

/* Ab 992px anzeigen (ersetzt vorheriges display:block) */
@media (min-width: 992px) {
  .swiper-button-prev,
  .swiper-button-next {
    display: grid;
  }
}

/* Disabled-State beibehalten */
.swiper-button-prev.swiper-button-disabled,
.swiper-button-next.swiper-button-disabled {
  opacity: 0.1;
  cursor: auto;
  pointer-events: none;
}

/* Falls irgendwo Swiper's Bild-Varianten gesetzt werden:
   sicherheitshalber neutralisieren */
.swiper-button-prev.swiper-button-white,
.swiper-button-next.swiper-button-white,
.swiper-button-prev.swiper-button-black,
.swiper-button-next.swiper-button-black {
  background-image: none !important;
}

/* Lock-State beibehalten */
.swiper-button-lock { display: none; }

/*========================================================
                     Image Modal
=========================================================*/

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;                 /* Flex-Zentrierung */
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;              /* optionaler Rand */
  background: rgba(0,0,0,.7);
  overflow: hidden;              /* keine Scrollbars im Overlay */
  opacity: 0;                    /* weiches Ein-/Ausblenden */
  pointer-events: none;
  transition: opacity .25s ease;
}
.image-modal.show {
  opacity: 1;
  pointer-events: auto;
  /* WICHTIG: nicht wieder auf block umstellen! */
}


/* Bild/Rahmen */
.image-modal-content {
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  margin: 0;                     /* kein margin:auto nötig */
  box-shadow: 0 8px 48px rgba(0,0,0,.45);
  border-radius: 12px;
  background: #fff;
  padding: 0px;
  animation: modalIn .3s cubic-bezier(.77,0,.18,1);
}
@keyframes modalIn {
  from { transform: scale(.85); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* Schließen-Button */
.image-modal-close {
  position: fixed;               /* am Viewport kleben */
  top: 24px;
  right: 28px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 2.4rem;
  cursor: pointer;
  user-select: none;
  padding: 4px 10px;
  border-radius: 8px;
  z-index: 10002;                /* über Pfeilen und Bild */
  transition: color .15s, background .15s;
}
.image-modal-close:hover,
.image-modal-close:active {
  color: #ffe54c;
  background: rgba(0,0,0,.14);
}

/* Pfeile – IMMER sichtbar */
#modalPrevBtn, #modalNextBtn {
  position: fixed;               /* statt absolute */
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.25);
  border: 0;
  color: #fff;
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  padding: .25rem .5rem;
  z-index: 10001;                /* über dem Bild */
  transition: opacity .2s ease, background .2s ease;
}
#modalPrevBtn { left: 12px; }
#modalNextBtn { right: 12px; }
#modalPrevBtn:hover, #modalNextBtn:hover {
  opacity: .9; background: rgba(0,0,0,.35);
}

/* Mobile */
@media (max-width: 700px) {
  .image-modal-content {
    max-width: 98vw;
  }
  .image-modal-close {
    top: 14px; right: 10px; font-size: 2rem; padding: 2px 8px;
  }
}

/* Hintergrund nicht scrollen & keine Rechtsverschiebung */
body.modal-open {
  overflow: hidden !important;
  touch-action: none;
  position: relative;
  height: 100vh;
  padding-right: 0 !important;   /* verhindert Scrollbar-Compensation */
}


/* Popup-Thumbnails (deine bestehenden Styles können bleiben) */
.popup-img {
  cursor: pointer;
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
@media (hover:hover) and (pointer:fine) {
  .popup-img:hover {
    transform: scale(1.04) translateY(-6px);
    z-index: 2;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
  }
}

/*========================================================
                     Drei Felder
=========================================================*/
.dreikarten{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  max-width: 1100px;
  min-height: 500px;
  margin: 2rem auto;
  padding-top: 0px;
  padding-bottom: 40px;
}
@media (max-width: 768px){
  .dreikarten{
    grid-template-columns: 1fr;
    gap: 24px;                 /* optional etwas kleinerer Abstand */
  }
  .dreikarten .karte{
    width: 94%;
    margin: 0 auto;            /* mittig ausrichten */
  }
}

/* Karte */
.karte{
  display: flex;
  flex-direction: column;
  border: 0px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 10px 20px rgba(0,0,0,.2);
  overflow: hidden;                 /* sorgt dafür, dass der farbige Kopf die Rundung oben mit ausfüllt */
  background: #ffffff;
  min-height: 100%;
}

/* Standard-Akzentfarbe (#2f3b44) für Kopf & Fuß */
.karte__kopf{
  background: #806759;   /* bei Farbvarianten wird diese Regel von den Modifiern überschrieben */
  color: #fff;
  padding: 16px 20px;
  text-align: center;
  display: block;        /* volle Breite */
  width: 100%;
}

.karte__kopf_f{
  background: #d9cfc2;   /* bei Farbvarianten wird diese Regel von den Modifiern überschrieben */
  color: #fff;
  padding: 16px 20px;
  text-align: center;
  display: block;        /* volle Breite */
  width: 100%;
}

.karte__fuss{
  background: #806759;
  color: #fff;
  text-align: center;
  padding: 16px 20px;
}

.karte__fuss_f{
  background: #d9cfc2;
  color: #61162d;
  text-align: center;
  padding: 16px 20px;
}

.karte__kopf h2{
  margin: 0;
  background: transparent !important; /* falls anderswo ein Hintergrund gesetzt ist */
  display: block;                      /* damit der Text mittig in der Zeile steht */
  letter-spacing: .02em;
  font-size: 1.3rem;
}

.karte__kopf_f h2{
  margin: 0;
  background: transparent !important; /* falls anderswo ein Hintergrund gesetzt ist */
  display: block;                      /* damit der Text mittig in der Zeile steht */
  letter-spacing: .02em;
  font-size: 1.3rem;
  color: #61162d;
}

.karte__kopf *,
.karte__fuss *{
  color: #fff !important;
}

.karte__fuss_f,
.karte__fuss_f * {
  color: #61162d !important;
}

.karte__inhalt{
  flex: 1 1 auto;
  color: #fff;
  color: #1f2937;
  padding: 24px 20px;
  line-height: 1.4;
  text-align: center;
}
.karte__inhalt p,
.karte__fuss p{ margin: 0; }

.karte--orange .karte__kopf,
.karte--orange .karte__fuss{ background: #d9cfc2; }

.karte--rotbraun .karte__kopf,
.karte--rotbraun .karte__fuss{ background: #bf8260; }

.karte--blau .karte__kopf,
.karte--blau .karte__fuss{ background: #bf8260; }

/*========================================================
                     Popup Bilder
=========================================================*/

.popup-img {
  cursor: pointer;
  transition: box-shadow 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  /* Stelle sicher, dass Bilder nie zu groß für das Grid sind */
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
@media (hover: hover) and (pointer: fine) {
  .popup-img:hover {
    z-index: 2;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  }
}

/* Popup-Overlay */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999; /* höher als dein Footer */
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s;
  /* Keine Scrollbars im Modal! */
  overflow: auto;
}
.image-modal.show {
  display: flex;
  opacity: 1;
}

.image-modal-content {
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  box-shadow: 0 8px 48px rgba(0,0,0,0.45);
  border-radius: 12px;
  background: white;
  padding: 7px;
  animation: modalIn 0.3s cubic-bezier(.77,0,.18,1);
  display: block;
  margin: auto;
}
@keyframes modalIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Schließen-Button */
.image-modal-close {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 2.4rem;
  color: #fff;
  cursor: pointer;
  z-index: 1010;
  user-select: none;
  padding: 4px 10px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  background: rgba(0,0,0,0.07);
}
.image-modal-close:active,
.image-modal-close:hover { color: #ffe54c; background: rgba(0,0,0,0.14); }

/* Mobile Anpassungen */
@media (max-width: 700px) {
  .image-modal-content {
    max-width: 98vw;
    max-height: 62vh;
    padding: 2px;
  }
  .image-modal-close {
    top: 14px;
    right: 10px;
    font-size: 2rem;
    padding: 2px 8px;
  }
}

/* Verhindere Scrollen im Hintergrund, wenn Modal offen */
body.modal-open {
  overflow: hidden !important;
  touch-action: none;
  position: relative;
  height: 100vh;
}

.gallery-container {
  max-width: 600px;
  margin: auto;
  text-align: center;
  position: relative;
}

.galleryImage {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  cursor: pointer;
}

#galleryImage {
  transition: filter 0.3s ease, transform 0.3s ease;
}

#galleryImage:hover {
  filter: brightness(1.01);  /* 5% heller */
  transform: scale(1.01);    /* ganz leicht vergrößern */
  cursor: pointer;
}

/* Pfeile außerhalb vom Bild */
.prevBtn {
  position: absolute;
  left: -40px;  /* Verschiebe links nach außen */
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  user-select: none;
}

.nextBtn {
  position: absolute;
  right: -40px; /* Verschiebe rechts nach außen */
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  user-select: none;
}

/* Modal-Styles */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0; top: 0;
  width: 80%; height: 80%;
  overflow: hidden;
  background-color: rgba(0,0,0,0.9);
  text-align: center;
}

.image-modal.show {
  display: block;
}

.image-modal img {
  max-width: 80%;
  max-height: 70vh;
  border-radius: 8px;
}

.image-modal-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}

.modal-prev,
.modal-next {
  cursor: pointer;
  position: fixed;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -10px;
  color: white;
  font-weight: bold;
  font-size: 40px;
  user-select: none;
  border-radius: 0 3px 3px 0;
  background-color: rgba(0,0,0,0.3);
  transition: background-color 0.3s;
  z-index: 10000;
}

.modal-prev:hover,
.modal-next:hover {
  background-color: rgba(0,0,0,0.8);
}

.modal-prev {
  left: 10px;
  border-radius: 3px 0 0 3px;
}

.modal-next {
  right: 10px;
  border-radius: 0 3px 3px 0;
}

/*========================================================
                     Container
=========================================================*/

.container4 {
  display: flex;
  font-family: "Open Sans Light";
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
  padding-top: 30px;
  padding-bottom: 40px;
  gap: 0;
  min-height: 150px;
  max-width: 900px;
  margin: 0 auto;
}

/* Mobil: 94% Breite, mittig, nichts abschneiden */
@media (max-width: 768px) {
  .container4 {
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
    gap: 16px;

    width: 94%;
    max-width: 94vw;       /* zusätzliche Sicherheit */
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;

    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .container4 > * { width: 100%; }

  .container4 img,
  .container4 video { max-width: 100%; height: auto; display: block; }

  .container4 iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
  }
}

/* ===== container5 ===== */
.container5 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
  color: #262626;
  padding-top: 0;
  padding-bottom: 0;
  gap: 8px;
  min-height: 150px;
  max-width: 1170px;
  margin: 0 auto;
}

/* Mobil: 94% Breite */
@media (max-width: 768px) {
  .container5 {
    width: 94%;
    max-width: 94vw;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;

    height: auto;
    min-height: 0;
    overflow: visible;
    gap: 12px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .container5 > * { width: 100%; }

  .container5 img,
  .container5 video { max-width: 100%; height: auto; display: block; }

  .container5 iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; }
}

/* ===== container6 ===== */
.container6 {
  display: flex;
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
  padding-top: 20px;
  padding-bottom: 10px;
  gap: 0;
  min-height: 150px;
  max-width: 1170px;
  margin: 0 auto;
}

/* Mobil: 94% Breite */
@media (max-width: 768px) {
  .container6 {
    flex-direction: column;
    align-items: center;

    width: 94%;
    max-width: 94vw;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;

    height: auto;
    min-height: 0;
    overflow: visible;
    gap: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .container6 > * { width: 100%; }

  .container6 img,
  .container6 video { max-width: 100%; height: auto; display: block; }

  .container6 iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; }
}

/* ===== container7 ===== */
.container7 {
  display: flex;
  font-family: "Open Sans Light";
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
  padding-top: 20px;
  padding-bottom: 0;
  gap: 0;
  min-height: 90px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Mobil: 94% Breite */
@media (max-width: 768px) {
  .container7 {
    flex-direction: column;
    align-items: center;

    width: 94%;
    max-width: 94vw;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;

    height: auto;
    min-height: 0;
    overflow: visible;
    gap: 12px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .container7 > * { width: 100%; }

  .container7 img,
  .container7 video { max-width: 100%; height: auto; display: block; }

  .container7 iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; }
}


/* Zusätzliche Styles für die Google Map außerhalb der Media Query */
.google-map {
    width: 100%;
    height: 500px;                    /* Standardhöhe für größere Bildschirme */
    border: 0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
    /* Stil für jede einzelne Box */
    .box06 {
        display: flex;
        font-family: "Open Sans Light";
        align-items: left;
        background-color: #ffffff;
        border: 1px solid #ddd;
        border-radius: 5px;
        padding: 15px;
		height: auto;
        flex: 1 1 300px;         /* Flex-Grow, Flex-Shrink, Basisbreite */
        box-sizing: border-box;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Leichter Schatten */
        transition: transform 0.2s;           /* Übergangseffekt bei Hover */
    }

    /* Hover-Effekt für die Boxen06 */
    .box06:hover {
	transform: translateY(-0px);
    }

    /* Stil für das Bild innerhalb der Box */
    .box06 img {
        width: 80px;
        height: 80px;
        object-fit: cover;       /* Bild passt sich an den Container an */
        border-radius: 3px;
        margin-right: 20px;      /* Abstand zwischen Bild und Text */
    }

    /* Stil für den Textbereich innerhalb der Box */
    .box06 .text {
        flex: 1;
        text-align: left;
    }

    /* Stil für die Überschrift innerhalb der Box */
    .box06 .text h3 {
        margin: 0 0 10px 0;
        font-size: 1.2em;
        color: #61172D;
    }

    /* Stil für den Titel innerhalb der Box */
    .box06 .text h4 {
        margin: 0 0 10px 0;
        font-size: 1.0em;
        color: #61172D;
    }

    /* Stil für den Absatz innerhalb der Box */
    .box06 .text p {
        margin: 0;
        color: #666;
    }

    /* Stil für h9 innerhalb der Box */
    .box06 .text h9 {
	font-size: 0.9em; /* Beispielgröße, anpassen nach Bedarf */
	color: #666;
	margin-top: 10px;
	text-align: left;
    }

    /* Responsive Anpassungen für Tablets */
    @media (max-width: 900px) {
        .box06 {
            flex: 1 1 45%;          /* Zwei Boxen pro Reihe */
        }
    }

    /* Responsive Anpassungen für Mobilgeräte */
    @media (max-width: 767px) {
        .box06 {
            flex-direction: column; /* Vertikale Anordnung von Bild und Text */
            align-items: left;
            text-align: left;       /* Änderung von center zu left für bessere Lesbarkeit */
            flex: 1 1 100%;         /* Eine Box pro Reihe */
        }
        .box06 img { /* Korrigierter Selektor */
            margin-right: 0;
            margin-bottom: 15px;    /* Abstand zwischen Bild und Text bei vertikaler Anordnung */
        }
    }
    /* Stil für jede einzelne Box07 */
    .box07 {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding-bottom: 0px;
    height: 110px;
    flex: 0 0 0;                            /* Flex-Grow, Flex-Shrink, Basisbreite */
    box-sizing: border-box;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);  /* Leichter Schatten */
    transition: transform 0.2s;             /* Übergangseffekt bei Hover */
    margin-top: 10px;
    padding-top: 35px;
    padding-right: 10px;
    padding-left: 10px;
    }

    /* Stil für den Textbereich innerhalb der Box */
    .box07 .text {
        flex: 1;
        text-align: center;
    }

    /* Stil für die Überschrift innerhalb der Box */
    .box07 .text h3 {
        margin: 0 0 5px 0;
        font-size: 1.2em;
        color: #61172D;
    }

    /* Stil für den Titel innerhalb der Box */
    .box07 .text h4 {
        margin: 0 0 10px 0;
        font-size: 1.0em;
        color: #61172D;
    }

    /* Stil für den Absatz innerhalb der Box */
    .box07 .text p {
        margin: 0;
        color: #666;
    }

    /* Stil für h9 innerhalb der Box */
    .box07 .text h9 {
	font-size: 0.9em; /* Beispielgröße, anpassen nach Bedarf */
	color: #666;
	margin-top: 10px;
	text-align: center;
    }

    /* Responsive Anpassungen für Tablets */
    @media (max-width: 900px) {
        .box07 {
        flex: 1 1 45%;        
        }
    }

    /* Responsive Anpassungen für Mobilgeräte */
@media (max-width: 767px) {
  .box07 {
    padding: 10px 15px !important;
    max-height: 250px !important;
    overflow-y: visible !important;  
    justify-content: flex-start !important;
    align-items: flex-start !important;

    line-height: 1.3;
  }

  .box07 img {

    margin-bottom: 10px !important;
    max-height: 100px;          /* Bildhöhe beschränken */
    object-fit: contain;         /* proportional skalieren */
  }

  .box07 > * {
    /* bei Textabschnitten ebenfalls Zeilenabstand anpassen */
    line-height: 1.3;
    margin-bottom: 8px;
  }
    
  .box07 {
    flex: 0 0 100% !important;    /* flex-basis = 100 % */
    max-width: 100%     !important;  
    width: 100%         !important;  
    display: block      !important;  /* nicht nebeneinander inline-flex o.ä. */
  }

  /* Wenn deine Felder in einem Flex-Wrapper stecken (z.B. .boxes oder .row),
     stell hier sicher, dass dieser in Spalten anordnet: */
  .boxes,
  .row {
    display: flex               !important;
    flex-direction: column      !important;
  }
}
    
.contact-icons {
    display: flex;
    flex-direction: row;
    gap: 18px; /* Abstand zwischen den Icons */
    align-items: center;
    text-align: left;
    margin-top: 20px; /* Abstand zum vorherigen Inhalt */
}

.contact-link {
    text-decoration: none;
    color: #61172D; /* Beispielhafte Farbe */
    font-size: 1.2em; /* Schriftgröße */
    display: flex;
    align-items: center;
}

.contact-link i {
    margin-right: 10px; /* Abstand zwischen Icon und Text */
    font-size: 1.3em; /* Icon-Größe */
}

.contact-link:hover {
    transform: translateY(-4px);
    color: #ff6600; /* Farbe beim Hover */
}

.circle {
  border-radius: 50%;
  border: 8px solid #edecec;
  float: left;
}
@media (max-width: 767px) {
  .circle {
    float: none;
  }
}
.stripe {
	position: relative;
	margin-top: 10px;
	margin-bottom: 0px;
}
@media (max-width: 767px) {
  .stripe {
    background: #d0c4b4;
    margin-top: 0px;
  }
}
.stripe .bg-stripe {
  position: absolute;
  height: 100%;
  width: 100%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5); /* Leichter Schatten */
}
.stripe .bg-stripe:before,
.stripe .bg-stripe:after {
  content: " ";
  display: table;
}
.stripe .bg-stripe:after {
  clear: both;
}
.stripe .bg-stripe > div {
    height: 70px;
    float: right;
    width: 43.5%;
}
@media (max-width: 767px) {
  .stripe .bg-stripe {
    display: none;
  }
}
@media (max-width: 767px) {
  .stripe .bg03,
  .stripe .bg04 {
    background: transparent;
    margin-top: 0;
  }
  .stripe .bg04 .stripe-link {
    margin-top: 0;
  }
}
.stripe .stripe-link {
	display: block;
	margin-top: 0px;
	margin-right: 35px;
	margin-left: 0px;
	margin-bottom: 0px;
	color: #61162D;
	text-transform: uppercase;
	font-size: 38px;
	line-height: 48px;
	letter-spacing: 2.3px;
	text-align: right;
}
@media (max-width: 1199px) {
  .stripe .stripe-link {
    font-size: 34px;
    margin-right: 0px;
    line-height: 44px;
    text-align: center;
  }
}
@media (min-width: 979px) {
  .stripe .stripe-link.ml01 {
    margin-left: 0px;
    margin-right: 0px;
    text-align: center;
  }
}
@media (max-width: 979px) and (min-width: 768px) {
  .stripe .stripe-link.ml01 {
    margin-left: 0px;
    margin-right: 0px;
    text-align: center;
  }
}
.stripe .stripe-left .fa {
  padding-right: 20px;
  font-size: 36px;
}
.stripe .stripe-right .fa {
  padding-left: 10px;
}
.num-list {
	list-style-type: none;
	counter-reset: item;
	margin-top: 80px;
}
.num-list .num-list-item {
  position: relative;
  padding-left: 40px;
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 20px;
}
.num-list .num-list-item:before {
  content: counter(item) '.';
  counter-increment: item;
  position: absolute;
  top: 0;
  left: 0;
  font-size: 42px;
  font-weight: 600;
  color: #d9cfc2;
  line-height: 40px;
}
.num-list .num-list-item h5 {
  margin-bottom: 0;
}
.num-list li.num-list-item {
  border-bottom: 1px solid #dadada;
}
.num-list li.num-list-item h5 {
  margin-bottom: 5px;
}
.addr {
  font-size: 14px;
  line-height: 18px;
}
.addr dl:before,
.addr dl:after {
  content: " ";
  display: table;
}
.addr dl:after {
  clear: both;
}
.addr dl dt {
  float: left;
  width: 70px;
}
.addr dl dd {
  overflow: hidden;
}
/*========================================================
                     Kalender  Styles
=========================================================*/
/* Container für den Kalender bleibt unverändert */
.calendar-container {
	align-items: center;
	text-align: center;
	width: 65%;
	height: auto;
	margin-top: 20px;
	margin-right: auto;
	margin-left: auto;
	margin-bottom: 0px;
    background-color: #FFFFFF;
	padding-bottom: 0px;
}

/* Aktuelles Datum bleibt unverändert */
.current-date {
    background-color: transparent; 
    border: 3px solid #F7A600; /* Ein etwas dunklerer Gelber Rand */
    border-radius: 3px; /* Optional: Abgerundete Ecken für ein besseres Aussehen */
    padding: 0px; /* Optional: Innenabstand für bessere Sichtbarkeit */
    box-sizing: border-box; /* Stellen Sie sicher, dass Padding und Border in der Gesamtbreite enthalten sind */
}

/* Einzelne Kalendereinträge */
.calendar-entry {
    display: grid;
    grid-template-columns: 0.3fr 0.45fr 1fr 0.7fr;
    align-items: center;
    max-height: 100%;
    text-align: left;
    color: #262626;
    font-size: 17px;
    margin-left: 0px;
    padding: 10px; /* Optional: Etwas Innenabstand */
    border: 1px solid #ddd; /* Dünne graue Linie */
    border-radius: 3px; /* Optional: Abgerundete Ecken */
    margin-bottom: 5px; /* Abstand zwischen den Tagen */
}

.calendar-entry:nth-child(even) {
    background-color: #fff;
}

.calendar-entry div {
    height: auto;
    text-align: left; /* Text linksbündig */
    font-size: 17px;
    padding-left: 10px; /* Optional: Abstand nach links */
}

/* Stil für das linke Feld (Wochentag & Datum) */
.day-date {
    background-color: #61162d;
    color: #fff;
    display: flex;
    width: 70%;
    height: auto; /* Automatische Höhe */
    text-align: center; /* Text linksbündig */
    flex-direction: column;
    align-items: left; /* Inhalt linksbündig ausrichten */
    justify-content: left;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 3px; /* Optional: Innenabstand */
}

.day-date span {
    margin: 0;
    font-weight: normal;
    text-align: center; /* Text linksbündig */
}

.day-date.sonntag span {
    font-weight: bold;
    color: #262626; /* Optional: Etwas auffälliger */
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .calendar-container {
        width: 94%; /* Angepasste Breite für mobile Geräte */
        margin: 0 auto; /* Zentriert den Container */
        padding: 0 10px; /* Optional: Innenabstand für bessere Darstellung */
		align-items: center;
		text-align: center;
    }

    .calendar-header, .calendar-entry {     
        grid-template-columns: 1fr; /* Einspaltiges Layout für kleinere Bildschirme */
        min-width: 250px;
    }

    .calendar-header div, .calendar-entry div {
        text-align: center; /* Text linksbündig auf mobilen Geräten */
        padding-left: 0; /* Optional: Entferne linken Padding */
    }

	.day-date {
	    flex-direction: column;
 		justify-content: center;
		width: 96%; /* Volle Breite innerhalb der Grid-Zelle */
		margin: 0 auto; /* Zentriert den Container */
	}

	.day-date span {
   		margin: 0;
	}
    
    .day-date.sonntag span {
        font-weight: bold;
        color: #262626;
    }
    
/* Optional: Schriftgröße anpassen für mobile Geräte */
	.calendar-entry div, .day-date span {
    	font-size: 17px;
   		padding-left: 5px;
   		padding-top: 5px;
   		padding-bottom: 5px;
   		padding-right: 5px;
    }
}
/*========================================================
                     Video  Styles
=========================================================*/
        /* Container für die Videos */
    .video-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
	max-width: 1170px;
	margin-top: 100px;
	margin-right: auto;
	margin-left: auto;
	margin-bottom: 60px; /* Zentriert den Container */
	padding: 10px;
	background-color: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.3);
        }

        /* Einzelnes Video-Element */
        .video-item {
            position: relative;
            padding-bottom: 56.25%; /* 16:9 Verhältnis */
            height: 0;
            overflow: hidden;
            border-radius: 4px;
            background-color: #000;
        }

        /* Iframe-Stile für responsive Verhalten */
        .video-item iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: 0;
        }

        /* Responsive Anpassung für kleinere Bildschirme */
        @media (max-width: 600px) {
            .video-container {
                grid-template-columns: 1fr;
            }
        }
/*========================================================
                     FOOTER  Styles
=========================================================*/
footer {
	background: #61162D;
	text-align: center;
    height: 150px;
    padding: 20px 0;
	padding-top: 20px;
}
.social-list2 {
  margin-bottom: 15px;
}
.social-list2 li {
  display: inline-block;
  margin: 0 10px;
}
@media (max-width: 479px) {
  .social-list2 li {
    margin: 0 5px;
  }
}
.social-list2 li a {
  display: block;
  color: #fff;
} 
.social-list2 li a:hover {
  color: #d9cfc2;
}
.social-list2 li a .fa {
  display: block;
  font-size: 30px;
  line-height: 30px;
}
.copy {
    font-family: "Open Sans Light";
    text-transform: uppercase;
    text-decoration: none;
    font-size: 14px;
    line-height: 36px;
    color: #d9cfc2;
    margin-top: -10px;
    margin-right: -10px;
    margin-left: -10px;
    margin-bottom: -10px;
}
.copy a:hover {
    text-decoration: none;
    color: #FFF;
    padding-left: 0px;
}


/* ========================================================
   Overrides & Additions (Carousel + Modal cleanup)
   Date: 2025-09-17
   --------------------------------------------------------
   - Fix: show only one slide per view (flex: 0 0 100%)
   - Fix: Modal: enforce full-screen overlay variant
   - Fix: Swiper arrows: reasonable hover opacity
   - Isolation: slider images do not inherit object-fit/height
   ======================================================== */

/* --- Carousel (vanilla) --- */
.carousel { position: relative; max-width: 900px; margin: 1.5rem auto; user-select: none; }
.carousel-viewport { overflow: hidden; border-radius: 12px; box-shadow: 0 6px 30px rgba(0,0,0,.12); }
.carousel-track { display: flex; transition: transform .35s ease; will-change: transform; padding: 0; margin: 0; list-style: none; }
.carousel-slide { flex: 0 0 100%; }
.carousel-img { display: block; width: 100%; height: auto; object-fit: contain; cursor: zoom-in; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); border: none; background: rgba(0,0,0,.45); color: #fff; font-size: 28px; line-height: 1; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; }
.carousel-btn:hover { background: rgba(0,0,0,.65); }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* --- Modal / Lightbox (force full overlay) --- */
.image-modal { position: fixed !important; inset: 0 !important; display: none; align-items: center; justify-content: center; background: rgba(15,15,15,.9); z-index: 9999; padding: 24px; }
.image-modal.show { display: flex !important; }
.image-modal-content { max-width: min(100%, 1200px); max-height: 90vh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.45); }
.image-modal-close, .image-modal-prev, .image-modal-next { position: absolute; border: none; background: rgba(0,0,0,.55); color: #fff; font-size: 32px; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; }
.image-modal-close { top: 16px; right: 16px; font-size: 36px; }
.image-modal-prev, .image-modal-next { top: 50%; transform: translateY(-50%); }
.image-modal-prev { left: 20px; }
.image-modal-next { right: 20px; }
body.modal-open { overflow: hidden !important; }

@media (max-width: 640px) {
  .carousel-btn { font-size: 24px; width: 40px; height: 40px; }
  .image-modal-prev, .image-modal-next { width: 42px; height: 42px; }
}

/* --- Swiper arrows (if Swiper is used elsewhere) --- */
.swiper-button-prev:hover, .swiper-button-next:hover { opacity: .9 !important; }
@media (max-width: 991.98px){
  /* Optional: show arrows on small screens as well */
  .swiper-button-prev, .swiper-button-next { display: grid !important; }
}

/* =========================================================
   Spenden Hero (Bildcontainer mit Text mittig)
   ========================================================= */

.donation-hero{
  position: relative;
  background-image: var(--donation-hero-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 320px;
  display: flex;
  align-items: center;
}

.donation-hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background: #313E47;
}

.donation-hero__inner{
  position: relative; /* über dem Overlay */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px;
  display: flex;
  justify-content: center;
}

.donation-hero__box{
  width: min(760px, 100%);
  color: #fff;
}

.donation-hero__title{
  margin: 0 0 18px;
  color: #fff;
  letter-spacing: 1.6px;
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.2;
  text-align: center;
}

.donation-hero__text{
  margin: 0 0 18px;
  color: #fff;
  font-size: 16px;
  line-height: 1.55;
}

.donation-hero__bank{
  color: #fff;
  font-size: 16px;
  line-height: 1.6;
}

/* =========================================================
   Spendenformular direkt unter Hero
   ========================================================= */

.donation-form-section{
  padding: 34px 0 10px;
}

.donation-form-section .container{
  margin-top: 0;
}

/* Mobil: etwas kompakter */
@media (max-width: 768px){
  .donation-hero{
    min-height: 280px;
  }
  .donation-hero__inner{
    padding: 34px 16px;
  }
}


/*========================================================
                     Mobile Fix: Startseite / Footer
=========================================================*/
@media (max-width: 767px) {
  .well032 {
    clear: both;
    padding-bottom: 40px;
  }

  .well032 .container {
    margin-bottom: 0;
  }

  .well032 .row {
    display: block !important;
    margin-bottom: 0;
  }

  .well032 .grid_5 {
    float: none !important;
    display: block !important;
    width: 100% !important;
    max-width: 100%;
    margin: 0 0 30px 0 !important;
  }

  .well032 .box03 {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  .well032 .box04_aside,
  .well032 .box03_cnt__no-flow {
    float: none !important;
    display: block;
    width: 100% !important;
    overflow: visible;
    text-align: center;
  }

  .well032 .box04_aside {
    margin-right: 0;
    margin-bottom: 18px;
  }

  .well032 .box04_aside img {
    display: block;
    margin: 0 auto 18px;
    max-width: 100%;
    height: auto;
  }

  .well032 .box03_cnt__no-flow {
    margin-top: 0;
  }

  footer,
  .footer {
    clear: both;
    height: auto;
    min-height: 150px;
  }
}

/* =========================================================
   Gemeinde Mosaik / Galerie-Block
   Eigenständige Klassen, damit die vorhandenen .row/.container-Regeln
   und alte Bootstrap-Klassen diesen Bereich nicht beeinflussen.
   ========================================================= */
.gemeinde-mosaik-section {
  margin-top: 50px;
  padding: 0 0 70px;
  background: #ffffff;
}

.gemeinde-mosaik-wrap {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.gemeinde-mosaik {
  display: grid;
  grid-template-columns: repeat(4, 290px);
  grid-auto-rows: 219px;
  gap: 0;
  align-items: stretch;
  justify-content: left;
  background: #ffffff;
}

.gemeinde-mosaik__intro,
.gemeinde-mosaik__cta {
  width: 290px;
  height: 219px;
  min-height: 219px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gemeinde-mosaik__intro {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  background: #d9cfc2;
}

.gemeinde-mosaik__title {
  margin: 0;
  width: 100%;
  color: #111111;
  font-family: Georgia, "Open Sans", Arial, sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
}

.gemeinde-mosaik__founded {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
}

.gemeinde-mosaik__divider {
  display: block;
  width: 27px;
  height: 2px;
  background: #d9b300;
  flex: 0 0 27px;
}

.gemeinde-mosaik__founded-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.gemeinde-mosaik__year {
  color: #111111;
  font-family: Georgia, "Open Sans", Arial, sans-serif;
  font-size: clamp(32px, 4vw, 42px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: 8px;
}

.gemeinde-mosaik__subline {
  margin-top: 14px;
  color: #111111;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0;
}

.gemeinde-mosaik__image {
  display: block;
  width: 290px;
  height: 219px;
  min-height: 219px;
  overflow: hidden;
  background: #f5f5f5;
  text-decoration: none;
}

.gemeinde-mosaik__image img {
  display: block;
  width: 290px;
  height: 219px;
  min-height: 219px;
  object-fit: cover;
  margin: 0;
  padding: 0;
  transition: transform .35s ease, filter .35s ease;
}

.gemeinde-mosaik__image:hover img,
.gemeinde-mosaik__image:focus img {
  transform: scale(1.04);
  filter: brightness(1.04);
}

.gemeinde-mosaik__cta {
  align-items: flex-start;
  padding: 34px 28px;
  background: #d9cfc2;
}

.gemeinde-mosaik__text {
  margin: 0 0 18px;
  color: #111111;
  font-family: Georgia, "Open Sans Light", "Open Sans", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 4px;
  text-align: left;
}

.gemeinde-mosaik__link {
  display: inline-block;
  position: relative;
  align-self: center;
  color: #d9a900 !important;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 7px;
  text-align: center;
}

.gemeinde-vorstellung-title {
  font-family: "Open Sans Light", "Open Sans", Arial, sans-serif;
  font-size: 32px;
  line-height: 1.4;
  font-weight: 300;
  letter-spacing: 2px;
  color: #61162d;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 35px;
}

.gemeinde-mosaik__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 88px;
  height: 2px;
  background: #d9b300;
  transform: translateX(-50%);
}

.gemeinde-mosaik__link:hover,
.gemeinde-mosaik__link:focus {
  color: #61162d !important;
}

@media (max-width: 991px) {
  .gemeinde-mosaik-wrap {
    width: min(580px, calc(100% - 40px));
  }

  .gemeinde-mosaik {
    grid-template-columns: repeat(2, 290px);
  }

  .gemeinde-mosaik__intro {
    padding-left: 24px;
  }
}

@media (max-width: 560px) {
  .gemeinde-mosaik-wrap {
    width: 290px;
  }

  .gemeinde-mosaik {
    grid-template-columns: 290px;
  }

  .gemeinde-mosaik__year {
    letter-spacing: 5px;
  }

  .gemeinde-mosaik__text {
    letter-spacing: 2.5px;
  }
    
  .gemeinde-mosaik .gemeinde-mosaik__intro {
    align-items: flex-start !important;
    text-align: left !important;
    background: #d9cfc2;
  }

  .gemeinde-mosaik .gemeinde-mosaik__title {
    display: block;
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    text-align: left !important;
  }
}
/* =========================================================
   Gemeinde Mosaik Lightbox
   ========================================================= */

.gm-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.86);
  align-items: center;
  justify-content: center;
  padding: 40px 70px;
  box-sizing: border-box;
}

.gm-lightbox.gm-lightbox--open {
  display: flex;
}

.gm-lightbox__image {
  display: block;
  max-width: 90vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.45);
  background: #ffffff;
}

.gm-lightbox__close {
  position: absolute;
  top: 22px;
  right: 32px;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 46px;
  line-height: 1;
  cursor: pointer;
  z-index: 100001;
}

.gm-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  width: 54px;
  height: 74px;
  font-size: 44px;
  line-height: 1;
  cursor: pointer;
  z-index: 100001;
  transition: background 0.2s ease;
}

.gm-lightbox__nav:hover,
.gm-lightbox__close:hover {
  color: #d9b300;
}

.gm-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.gm-lightbox__prev {
  left: 24px;
}

.gm-lightbox__next {
  right: 24px;
}

@media (max-width: 700px) {
  .gm-lightbox {
    padding: 55px 48px;
  }

  .gm-lightbox__image {
    max-width: 92vw;
    max-height: 78vh;
  }

  .gm-lightbox__nav {
    width: 38px;
    height: 58px;
    font-size: 32px;
  }

  .gm-lightbox__prev {
    left: 6px;
  }

  .gm-lightbox__next {
    right: 6px;
  }

  .gm-lightbox__close {
    top: 12px;
    right: 18px;
    font-size: 40px;
  }
}


/*========================================================
                     Jahres-Veranstaltungen Startseite
=========================================================*/
.jahres-events-section {
  background: #ffffff;
  padding: clamp(38px, 6vw, 72px) 20px;
  text-align: center;
}

.jahres-events-wrap {
  max-width: 1170px;
  margin: 0 auto;
}

.jahres-events-head {
  max-width: 780px;
  margin: 0 auto 34px;
}

.jahres-events-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: #CE922E;
  font-family: "Open Sans", sans-serif;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.jahres-events-head h2 {
  margin-bottom: 10px;
  color: #61162d;
}

.jahres-events-head p {
  margin: 0 auto;
  color: #494949;
  font-family: "Open Sans", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  text-align: center;
}

.jahres-events-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
  align-items: stretch;
}

.jahres-event-card {
  display: flex;
  flex: 0 1 calc((100% - 52px) / 3);
  max-width: calc((100% - 52px) / 3);
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(97, 22, 45, 0.14);
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(49, 62, 71, 0.14);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.jahres-event-card:hover {
  transform: translateY(-4px);
  border-color: rgba(206, 146, 46, 0.55);
  box-shadow: 0 16px 38px rgba(49, 62, 71, 0.20);
}

.jahres-event-image {
  position: relative;
  height: 230px;
  min-height: 230px;
  background: #d0c4b4;
  overflow: hidden;
}

.jahres-event-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.35s ease;
}

.jahres-event-card:hover .jahres-event-image img {
  transform: scale(1.04);
}

.jahres-event-date {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-block;
  padding: 8px 12px;
  background: rgba(97, 22, 45, 0.92);
  color: #fff;
  font-family: "Open Sans", sans-serif;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.jahres-event-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 22px 22px;
  text-align: left;
}

.jahres-event-content h3 {
  margin: 0 0 10px;
  color: #61162d;
  font-size: 21px;
  line-height: 1.3;
}

.jahres-event-content p {
  margin: 0 0 18px;
  color: #494949;
  font-family: "Open Sans", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  text-align: left;
}

.jahres-event-meta {
  display: grid;
  gap: 7px;
  margin-top: auto;
  padding-top: 2px;
  color: #313E47;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

.jahres-event-meta span {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  column-gap: 6px;
  align-items: start;
}

.jahres-event-meta .fa {
  width: 18px;
  margin-top: 2px;
  margin-right: 0;
  color: #CE922E;
  text-align: center;
}

.jahres-event-contact {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(97, 22, 45, 0.12);
  color: #494949;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.jahres-event-contact a {
  color: #61162d;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.jahres-event-contact a:hover {
  color: #CE922E;
}

.jahres-events-footer {
  margin-top: 34px;
}

.jahres-events-button {
  display: inline-block;
  padding: 12px 22px;
  background: #61162d;
  color: #fff !important;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid #61162d;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.jahres-events-button:hover {
  background: #CE922E;
  border-color: #CE922E;
  color: #fff !important;
}

@media (max-width: 1000px) {
  .jahres-event-card {
    flex-basis: calc((100% - 26px) / 2);
    max-width: calc((100% - 26px) / 2);
  }
}

@media (max-width: 680px) {
  .jahres-events-section {
    padding: 36px 14px;
  }

  .jahres-events-grid {
    gap: 22px;
  }

  .jahres-event-card {
    flex-basis: 100%;
    max-width: 100%;
  }

  .jahres-event-image {
    height: 210px;
    min-height: 210px;
  }

  .jahres-event-content {
    padding: 21px 18px 20px;
  }
}
