
body {
  /* font-family: Garamond, serif; */
  /* font-size: 1.25em; */
  hyphens: auto;
  /* text-align: justify;*/
  word-break: break-word;
}


:root {
  color-scheme: light dark;
}

/* MENÜ */

.sticky-top {
  padding-top: 0;
}

/* damit Ankerelemente korrekt angesprungen sind, die sonst hinter dem Menü liegen würden */
html {
  scroll-padding-top: 56px;
  /* Höhe des fixierten Menüs */
}

/* "Suchen" Text nur im Bereich zwischen lg und xl */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .search-btn-text {
    display: none !important;
  }
}

#mainnav {
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

/* Breite der Dropdownmenüs */
.dropdown-menu {
  min-width: 22rem;
}

#mainnav .nav-item .nav-link {
  font-size: 0.875rem;
}

@media (min-width: 1200px) {

  /* xl */
  #mainnav .nav-item .nav-link {
    font-size: 1rem;
  }
}


/* Menu Scrollable */

.dropdown-menu-scrollable {
  max-height: calc(70vh - 56px);
  /* z.B. 200px hoch */
  overflow-y: auto;
  /* vertikales Scrollen erlauben */
  position: relative;
}





/* Anderes */


.bg-primary {
  /* Neue primaere Farbe */
  background-color: #283A82 !important;
}


.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:visited {
  background-color: #283A82;
  border-color: #283A82;
  color: white;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #475794;
  border-color: #475794;
}

.btn-secondary,
.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active,
.btn-secondary:visited {
  background-color: #475794;
  border-color: #475794;
  color: white;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: #4d70fa;
  border-color: #4d70fa;
}


a.autorinnenlink {
  text-decoration: none;
}

a.autorinnenlink:hover {
  text-decoration: underline;
}

a.btn {
  text-decoration: none;
}



a {
  color: #283A82;
}

a:hover,
a:focus {
  color: #475794;
}


code {
  color: #283A82;  
}


.btn:hover {
  background-color: #283A82;  
  color: #ffffff;  
  border: 1px solid #283A82;  
}


/* Eigenen Tooltip-Hintergrund und Textfarbe festlegen */
.tooltip {
  --bs-tooltip-bg: #283A82; /* eigene Hintergrundfarbe, z.B. Blau */
  --bs-tooltip-opacity: 1;  /* volle Deckkraft, keine Transparenz */  
  --bs-tooltip-color: #fff;  /* Textfarbe, z.B. Weiß */
}





.aspect-ratio-box-right {
  position: relative;
  height: 100%;
  padding-top: 61.8%;
}

.aspect-ratio-box-right img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.aspect-ratio-box-top {
  position: relative;
  width: 100%;
  padding-top: 61.8%;

}

.aspect-ratio-box-top img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


/* Zum Markieren von z.B. IBAN oder Mailadressen mit einem Klick */
.select-all {
  user-select: all;
  -webkit-user-select: all;
  /* für Safari */
}


/* Das Images in Horizontal-Cards zoomen */
.img-full-zoom {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Aspect Ratio für Card-Images festlegen */
.card-bild-container {
  width: 100%;
  aspect-ratio: 800 / 495;
  /* Verhältnis des Containers */
  overflow: hidden;
  /* Alles außerhalb des Containers wird ausgeblendet */
}


/* Body für Caroussel bei Mobilview (bild über text) */
@media (max-width: 767.98px) {
  .carousel-body-ratio {
    aspect-ratio: 800 / 700;
    height: auto !important;
    /* falls etwas anderes gesetzt ist */
    overflow: hidden;
    /* optional, wenn Inhalte überschreiten */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Inhalt oben ausrichten */
  }
}




.responsive-rounded-img {
  border-radius: var(--bs-border-radius) var(--bs-border-radius) 0 0;
  /* oben abgerundet für Mobil */
}

@media (min-width: 768px) {
  .responsive-rounded-img {
    border-radius: var(--bs-border-radius) 0 0 var(--bs-border-radius);
    /* links abgerundet ab md */
  }
}



#footer a {
  color: #9ea6c7;
  /* Standardfarbe */
  text-decoration: none;
  /* Keine Unterstreichung */
  transition: color 0.3s ease;
  /* Sanfter Übergang */
}

#footer a:hover {
  color: #ffffff;
  /* Hellere Farbe beim Hover */
  text-decoration: underline;
  /* Auch beim Hover keine Unterstreichung */
}






.card a {
  color: var(--bs-link-color);
  /* Bootstrap-Linkfarbe */
  text-decoration: none;
  transition: text-decoration 0.2s ease;
}

.card a:hover {
  text-decoration: underline;
}


h3 {
  margin-top: 2rem;
}

.card h3 {
  margin-top: .3rem;
  /* oder was Bootstrap vorgibt */
}



.card .row {
  height: 100%;
}

.card .col-md-5 {
  height: 100%;
  overflow: hidden;
}


/* Dezente, halbtransparente Indikator-Dots */
.carousel-indicators [data-bs-target] {
  background-color: rgba(120, 120, 120, 0.3);
  /* leichtes Grau, 30% Deckkraft */
  border: none;
  opacity: 1;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  transition: background-color 0.3s;
}

.carousel-indicators .active {
  background-color: rgba(80, 80, 80, 0.7);
  /* dunkleres Grau, 70% Deckkraft */
}

/* Dezente, halbtransparente Pfeile */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(120, 120, 120, 0.3);
  /* leichtes Grau, 30% Deckkraft */
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  background-size: 60% 60%;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-color 0.3s;
}

/* Optional: Hover-Effekt für bessere Sichtbarkeit beim Überfahren */
.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover,
.carousel-indicators [data-bs-target]:hover {
  background-color: rgba(80, 80, 80, 0.5);
}

.carousel {
  position: relative;
}

.carousel-indicators {
  position: absolute;
  bottom: -2.0rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 10;
  padding: 0.5rem 0;
}


@media (max-width: 768px) {
  .carousel-control-prev {
    left: -0.0rem;
    /* Pfeil weiter links außerhalb des Carousels */
    top: -18em;
  }

  .carousel-control-next {
    right: -0.0rem;
    /* Pfeil weiter rechts außerhalb des Carousels */
    top: -18em;
  }

}






/* Modal Style */

/* Slide-in Animation für das Modal */
.modal.fade .modal-dialog {
  transform: translateY(100px);
  transition: transform 0.5s cubic-bezier(.36, 1.67, .56, 1.03);
  opacity: 0;
}

.modal-header {
  border-bottom: none;
}

.modal.fade.show .modal-dialog {
  transform: translateY(0);
  opacity: 1;
}

.img-clickable {
  cursor: pointer;
  transition: box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.img-clickable:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.modal-dialog {
  /* Modal wird maximal breit durch modal-xl */
}

.modal-body {
  padding: 0 1rem 1rem 1rem;
  /* oben 0, rechts 1rem, unten 1rem, links 1rem */
}

.modal-body img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  margin-bottom: 1rem;
}

.img-fit-screen {
  max-width: 100%;
  max-height: 100vh;
  /* max. 100% der Viewport-Höhe */
  height: auto;
  width: auto;
  display: block;
  /* optional, für zentrierte Darstellung */
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
  /* Bild proportional anpassen ohne zu schneiden */
}


/* Testimonial */
.testimonialcard {
  height: 350px !important;
  max-width: 740px;
}

@media (max-width: 768px) {
  .testimonialcard {
    height: 500px !important;
    max-width: 100% !important;
  }
}



/* Dopamin-Spendenbutton-Button-Effekt */
.spendenbutton {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.spendenbutton:hover {
  transform: scale(1.05) rotate(-0.5deg);
}

.sparkle {
  position: fixed;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, #fff, var(--color));
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.9;
  animation: sparkle-move 700ms ease-out forwards;
  filter: drop-shadow(0 0 4px white);
  z-index: 9999;
  transform: rotate(var(--rotation));
}

@keyframes sparkle-move {
  0% {
    transform: translate(0, 0) scale(1) rotate(var(--rotation));
    opacity: 0.9;
  }

  100% {
    transform: translate(var(--x), var(--y)) scale(0.5) rotate(var(--rotation));
    opacity: 0;
  }
}


.brief {
  background: white;
  border-radius: 5px;
  padding: 1.5rem;
  max-width: 600px;
  margin: 2rem auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}



.termin-list {
  max-width: 440px;
  /* maximale Breite */
}





/* Card */





/* Responsive Card */

.card-body {
  position: relative;
  /* <-- WICHTIG für stretched-link */
}



.zoom-on-hover {
  transition: transform 0.4s ease;
}

.zoom-on-hover:hover {
  transform: scale(1.08);
}


:root {
  --gold-left: 38.2%;
  /* Bild */
  --gold-right: 61.8%;
  /* Text */
  --gap: 1rem;
}

/* Basis / mobile-first: Bild oben, Text darunter */
.responsivecard {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  max-width: 1100px;
  margin: 1rem auto;
}


/* Bild-Block */
.responsivecard__media {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: block;
}


.responsivecard__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform-origin: center center;
  transition: transform 0.45s cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
}

.responsivecard__media:hover img,
.responsivecard__media:focus-within img {
  transform: scale(1.08);
}

/* Text-Block */
.responsivecard__body {
  padding: 1.25rem;
  box-sizing: border-box;
  position: relative;
  /* <-- WICHTIG für stretched-link */
}

.responsivecard__title {
  margin: 0 0 0.75rem 0;
  font-size: 1.25rem;
  line-height: 1.2;
}

.responsivecard__text {
  margin: 0 0 1rem 0;
  color: #333;
  line-height: 1.55;
}

.responsivecard__meta {
  color: #777;
  font-size: 0.9rem;
}

/* Desktop: Bild links, Text rechts im goldenen Schnitt */
@media (min-width: 768px) {
  .responsivecard {
    flex-direction: row;
    /*align-items: stretch; /* gleiche Höhe */
  }

  .responsivecard__media {
    flex: 0 0 var(--gold-left);
    max-width: var(--gold-left);
    min-width: var(--gold-left);
    display: flex;
    align-items: stretch;
    margin: 0;
  }

  .responsivecard__body {
    flex: 1 1 var(--gold-right);
    max-width: var(--gold-right);
    min-width: var(--gold-right);
    padding-top: 1.2rem;
    padding-right: 1.6rem;
    padding-bottom: 1.6rem;
    padding-left: 1.6rem;
  }

  .responsivecard__media img {
    height: 101%;
    width: 101%;
  }
}


/* Mindesthöhen für responsivecards im Caroussel */

.carousel-item .responsivecard {
  min-height: 575px;
  max-width: 695px;
}


@media (min-width: 576px) {

  /* sm */
  .carousel-item .responsivecard {
    min-height: 604;
  }
}

@media (min-width: 768px) {

  /* md */
  .carousel-item .responsivecard {
    min-height: 290px;
    max-width: 680px;
  }
}

@media (min-width: 992px) {

  /* lg */
  .carousel-item .responsivecard {
    min-height: 340;
    max-width: 720px;
  }
}

@media (min-width: 1200px) {

  /* xl */
  .carousel-item .responsivecard {
    min-height: 290px;
    max-width: 890px;
  }
}

@media (min-width: 1400px) {

  /* xxl */
  .carousel-item .responsivecard {
    min-height: 280;
    max-width: 1000px;
  }
}



/* Alle Schriftgrößen nur im Aside-Bereich anpassen */
aside h1 {
  font-size: 1.5rem;
  /* ca. 24px */
  font-weight: 700;
  /* fett */
}

aside h3 {
  font-size: 1.15rem;
  /* ca. 20px */
  font-weight: 600;
}

/* Fließtext im Aside */
aside p {
  font-size: 0.95rem;
  /* ca. 15px */
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

/* Listeneinträge in Listgroups */
aside ul.list-group li,
aside .list-group-item {
  font-size: 0.8rem;
  line-height: 1.4;
}



