.home #slim-chatbot-button {
    bottom: 80px;
}

.slim-chatbot-topic-btn {
	font-size: 1em !important;
}

.slim-chatbot-quick-topic-btn {
	background: var(--e-global-color-accent)!important;
	color:#fff!important;	
}

.slim-chatbot-quick-topic-btn:hover {
	background: #fff!important;
	color:#000!important;	
}

/* Schließen-Button für Welcome-Popup */
#slim-chatbot-welcome-close {
    position: absolute;
    top: -60px;
    left: -60px;
    background: none;
    border: none;
    color: #000;
    font-size: 55px;
    cursor: pointer;
    z-index: 1001;
}

/* Schließen-Button für Chat-Button */
#slim-chatbot-button-close {
    position: absolute;
    top: -25px;
    left: -25px;
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    font-size: 25px;
    cursor: pointer;
    padding: 15px 16px 18px 16px;
    z-index: 10;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#slim-chatbot-button {
	display: none;
    position: fixed;
    bottom: 20px;
    right: 70px;
    background-color: var(--e-global-color-primary);
    color: white;
    padding: 15px 20px 20px 20px;
    border-radius: 100px;
    border: 3px solid #fff;
    cursor: pointer;
    z-index: 1000;
    font-weight:400;
    font-size: 1.4em;
}

#slim-chatbot-button strong, #slim-chatbot-container strong {
	font-weight:800;
}

#slim-chatbot-container {
    display: none;
    position: fixed;
    bottom: 207px;
    right: 20px;
    width: 27vw;
	height:50vh;
    background-color: #f1f1f1;
    border-radius: 10px;
    overflow: auto;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	border:solid 3px #fff;
	overflow: visible;
	flex-direction: column;
}

#slim-chatbot-header-still {
	height: 194px!important;
    width: auto;
    position: absolute;
    right: 10px!important;
    top: auto!important;
    bottom: 10px!important;
}	

@media (max-width: 767px) {
	
#slim-chatbot-button {
    right: 73px;
    bottom: 60px;
}

#slim-chatbot-contact-popup {
  right: 2vw;
  bottom: 0!important;
  max-height: 30vh;
  overflow: scroll;
}

#slim-chatbot-container {
    bottom: 71px;
    height: 73vh;
}
	
#slim-chatbot-contact-popup {
	max-width: 95vw!important;
}
	
#slim-chatbot-welcome-content img {
  height: 294px!important;
  right: -100px!important;
}
	
#slim-chatbot-welcome-popup {
  right: 0!important;
  padding: 20px 142px 20px 20px!important;
  bottom: 120px;
}

}

#slim-chatbot-header {
    background-color: var(--e-global-color-primary);
    color: white;
    border-radius: 8px 8px 0 0;
    padding: 10px;
    font-weight: 400;
	font-size: 1.4em;
    display: flex;
    justify-content: space-between;
    align-items: center;
	position: sticky;
  top: 0px;
  z-index: 10;
}

#slim-chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 40px;
	padding:0;
	line-height: 1.2;
    cursor: pointer;
}

#slim-chatbot-content {
	min-height:0;
    /*height: calc(100% - 197px);*/
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
	flex:1;
	transition: height 0.3s ease; /* Sanfte Animation beim Anpassen der Höhe */
}

#slim-chatbot-input-container {
    display: flex;
    padding: 10px;
    background-color: white;
	border-radius: 0 0 10px 10px;

}

#slim-chatbot-input {
    flex-grow: 1;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-shadow: 0 0 3px #000;

}

#slim-chatbot-input::placeholder { color: #888; opacity: 1; }

#slim-chatbot-send {
    margin-left: 5px;
    padding: 5px 10px;
    background-color: var(--e-global-color-primary);
    color: white;
    border-radius: 0px;
	border-radius: 0;
	border: solid 1px var(--e-global-color-primary); 
    cursor: pointer;
}

#slim-chatbot-send:hover {
    background-color: #fff;
    color: var(--e-global-color-primary);
}

.chat-message {
    max-width: 80%;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 21px;
    clear: both;
    word-wrap: break-word;
    box-shadow: -3px -2px 15px #999;
    position: relative;
	font-size: 0.8em;
}

#slim-chatbot-quick-topics-heading {
	font-size: 1.0em!important;
}

.user-message {
    background-color: #DCF8C6;
    float: right;
    text-align: left;
    margin-right: 10px;
}

.bot-message {
    background-color: #E0E0E0;
    float: left;
    text-align: left;
    margin-left: 20%;
}

/* Datenschutzhinweis */
#slim-chatbot-privacy-modal {
    position: fixed;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#slim-chatbot-privacy-content {
    background: #fff;
    padding: 20px;
	margin: 40vh auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    text-align: center;
}

#slim-chatbot-privacy-content h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

#slim-chatbot-privacy-content p {
    font-size: 14px;
    margin-bottom: 20px;
}

#slim-chatbot-privacy-content a {
	color: var(--e-global-color-primary);
}

#slim-chatbot-privacy-content button {
    padding: 10px 20px;
    background: var(--e-global-color-primary);
    color: #fff;
    border: solid 1px var(--e-global-color-primary);
    border-radius: 0px;
    cursor: pointer;
}

#slim-chatbot-privacy-content button:hover {
    background: #fff;
	color: var(--e-global-color-primary);
	border: solid 1px var(--e-global-color-primary);
}

/* Spinner */
#slim-chatbot-spinner {
    position: absolute; /* Absolut positionieren */
    top: 50%; /* Vertikal zentrieren */
    left: 50%; /* Horizontal zentrieren */
    transform: translate(-50%, -50%); /* Zentrierung korrigieren */
    font-size: 16px;
    color: #666;
    z-index: 1000; /* Sicherstellen, dass er immer oben angezeigt wird */
    display: none; /* Standardmäßig ausblenden */
}

#slim-chatbot-spinner .spinner {
    border: 4px solid rgba(0, 0, 0, 0.1); /* Leichter Rahmen */
    border-top: 4px solid #0073aa; /* Farbiger Rahmen für Animation */
    border-radius: 50%; /* Kreisförmig */
    width: 24px; /* Größe des Spinners */
    height: 24px;
    animation: spin 1s linear infinite; /* Rotations-Animation */
}

#slim-chatbot-contact-form {
	position: absolute;
	bottom: 50px;
	padding: 10px;
	background:#ffffff;
	width: 100%;
	z-index: 10;
}

#slim-chatbot-contact-form input[type=text], #slim-chatbot-contact-form input[type=email] {
	width:41%;
}

#slim-chatbot-contact-content label, #contact-name, #contact-email {
	font-size: 0.8em;	
}

#slim-chatbot-contact-content [type="radio"] {
  margin-right: 5px;
  margin-left: 10px;
}

#slim-chatbot-contact-form label {
font-size: .76em;
width: 21%;
}

#slim-chatbot-contact-form #slim-chatbot-contact-submit {
color: #fff;
background-color: var(--e-global-color-primary);
border-radius: 0;
border: solid 1px var(--e-global-color-primary); 
margin: 5px 0 0 17px;
width: 24%;
}

#slim-chatbot-contact-form button {
color: #fff;
background-color: var(--e-global-color-primary);
border-radius: 0;
border: solid 1px var(--e-global-color-primary); 
margin: 5px 0 0 0;
}

#slim-chatbot-contact-form {
    display: block;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}
#slim-chatbot-contact-form.visible {
    display: block;
    opacity: 1;
}

#slim-chatbot-contact-form #slim-chatbot-contact-submit:hover, #slim-chatbot-contact-form #slim-chatbot-contact-submit:focus, #slim-chatbot-contact-form #slim-chatbot-contact-submit:hover, #slim-chatbot-contact-form button:hover {
color: var(--e-global-color-primary);
background-color: #fff;
border-radius: 0;
border: solid 1px var(--e-global-color-primary); 
}

#slim-chatbot-contact-popup {
    position: fixed;
    right: 23vw;
    bottom: 207px;
  background: white;
  border-radius: 8px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  padding: 15px;
  z-index: 2000;
  max-width: 18vw;
}

#slim-chatbot-contact-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#slim-chatbot-contact-close {
    color: var(--e-global-color-primary);
    border: none;
    padding: 5px 26px 5px 15px;
    font-size: 20px;
    cursor: pointer;
    float: right;
	width: 30px;
	border-radius: 0;
}

#slim-chatbot-contact-close:hover {
    color: #fff;
    background-color: var(--e-global-color-primary);
}


#slim-chatbot-contact-submit {
    background: var(--e-global-color-primary);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
	border-radius: 0px;
}

#slim-chatbot-welcome-popup {
    position: fixed;
    bottom: 70px;
    right: 20px;
    background-color: #fff;
    border-radius: 30px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    padding: 20px;
    z-index: 1000;
    display: block;
    width: 260px;
    overflow: visible;
}

#slim-chatbot-welcome-content {
    display: block;
    overflow: visible;
    position: relative;
}

/* Video-Container — absolut, aus dem Dokumentfluss heraus */
.page-id-22255 #slim-chatbot-video-wrap {
    position: absolute;
    bottom: 220px;
    left: -70px;
    z-index: 2;
    pointer-events: none;
}

.page-id-22275 #slim-chatbot-video-wrap {
    position: absolute;
    bottom: 0;
    left: -490px;
    z-index: 2;
    pointer-events: none;
}

#slim-chatbot-intro-video {
    height: 600px;
    width: auto;
    display: block;
    position: absolute;
    bottom: 0;
}

/* Untertitel unter dem Video */
#slim-chatbot-untertitel {
position: absolute;
    bottom: -40px;
    width: 324px;
    font-weight: 700;
    text-align: center;
    font-size: 1.5em;
    color: #fff;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
    /*-webkit-text-stroke-color: #000;
    text-stroke-color: #000;
    -webkit-text-stroke-width: 1px;
    text-stroke-width: 1px;*/
    padding: 2px 6px;
    min-height: 18px;
    line-height: 1.0;
}

	.page-id-22255 #slim-chatbot-untertitel {
    left: 10px;
	}
	
	.page-id-22275 #slim-chatbot-untertitel {
    left: 60px;
	}

/* Text-Bereich — wächst nur mit Inhalt */
#slim-chatbot-welcome-text-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0;
}

#slim-chatbot-welcome-text-wrap h3 {
    font-size: 1.5em !important;
    margin: 0 0 8px 0;
}

#slim-chatbot-welcome-text-wrap p {
    font-size: 0.8em;
    margin: 0 0 14px 0;
    line-height: 1.4;
}

@media (max-width: 767px) {
	#slim-chatbot-container {
	width: 93vw;
	right: 3.5vw;
	}
	
    #slim-chatbot-welcome-popup {
        right: 0 !important;
        bottom: 80px;
        width: 100vw;
        border-radius: 10px 10px 0 0;
        padding: 15px 15px 20px 15px;
    }

    .page-id-22255 #slim-chatbot-video-wrap {
        width: 120px;
		bottom: 80px;
    	left: auto;
    	right: -82px;
    }
	
	.page-id-22275 #slim-chatbot-video-wrap {
        width: 120px;
		bottom: 80px;
    	left: auto;
    	right: -2px;
    }
	
	.page-id-22275 #slim-chatbot-header-still {
    height: 141px !important;
    bottom: 40px !important;
	}
	
	#slim-chatbot-welcome-close {
    top: -49px;
    left: -16px;
	}

    #slim-chatbot-intro-video {
        height: 380px;
    }
	
	#slim-chatbot-ton-btn {
    bottom: 94px!important;
    right: 60px!important;
	display:none;
	}
	
	.page-id-22255 #slim-chatbot-untertitel {
    bottom: 186px;
    left: -180px;
	width: 216px;
    font-size: 1.4em;
	}
	
	.page-id-22275 #slim-chatbot-untertitel {
    bottom: 237px;
    left: -104px;
    text-align: right;
    width: 166px;
    font-size: 1.4em;
	}
}

#slim-chatbot-welcome-start {
    background-color: var(--e-global-color-primary);
    color: white;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.2em;
    padding: .3rem 0.6rem .5rem;
    border: solid 1px var(--e-global-color-primary);
}

#slim-chatbot-welcome-start:hover {
    background-color: #fff;
	color: var(--e-global-color-primary);
	border: solid 1px var(--e-global-color-primary); 
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Zoom-in mit Bounce — nur beim Standbild (ab 2. Seite) */
#slim-chatbot-welcome-popup.standbild #slim-chatbot-video-wrap {
    animation: figur-einzoom 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes figur-einzoom {
    0% {
        transform: scale(0.4) translateY(60px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}
#slim-chatbot-ton-btn {
    position: absolute;
    background: rgba(0,0,0,0.45);
    border: solid 2px #000;
    color: #fff;
    font-size: 24px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    pointer-events: auto; /* Ton-Button wieder klickbar */
}

.page-id-22275 #slim-chatbot-ton-btn {
    bottom: 254px;
    right: -470px;
}

.page-id-22255 #slim-chatbot-ton-btn {
    bottom: 194px;
    right: -50px;
}

#slim-chatbot-ton-btn:hover {
    background: rgba(0,0,0,0.7);
}

/* Blur-Overlay während Video läuft — Body-Hintergrund bleibt unverändert */
#slim-chatbot-blur-overlay {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999;
    pointer-events: none;
    animation: overlay-einblenden 0.4s ease both;
}

@keyframes overlay-einblenden {
    from { opacity: 0; }
    to   { opacity: 1; }
}
