@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Poppins', sans-serif;
}

body {
	background: url('bilder/HINTERGRUND.png') no-repeat center center fixed;
	background-size: cover;
	position: relative;
	min-height: 100vh;
}

img {
	max-width: 100%;
	height: auto;
}

.toggle-password {
	width: 32px !important;
	height: 32px !important;
	margin-top: -5px;
}

.admin .overlay {
    height: auto;
    min-height: 100vh;
    padding: 40px 15px;
    align-items: flex-start;
}

.admin .login-box {
    width: 100%;
    max-width: 1000px;
    overflow-x: auto;
    padding: 30px;
}

.overlay {
	background-color: rgba(255, 255, 255, 0.7);
	width: 100%;
	height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background-color: #f7f7f7;
    color: #222;
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

.login-box {
	background: white;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
	border-radius: 15px;
	width: 440px;
	max-width: 100%;
	padding: 30px 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.icon-container {
	display: flex;
	justify-content: center;
	margin-bottom: 10px;
}

.icon {
	width: 80px;
	height: 80px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
	border-radius: 50%;
	object-fit: cover;
}

.zurueck-button-container {
	text-align: center;
	margin-top: 20px;
}

.zurueck-button {
	display: inline-block;
	padding: 12px 25px;
	border-radius: 30px;
	background-color: #222;
	color: #fff;
	text-decoration: none;
	font-size: 15px;
	transition: background-color 0.3s ease, transform 0.2s ease;
}

.zurueck-button:hover {
	background-color: #000;
	transform: scale(1.05);
}

.login-header {
	text-align: center;
	margin-bottom: 30px;
}

.login-header header {
	color: #333;
	font-size: 30px;
	font-weight: 600;
}

.input-box {
	width: 100%;
	position: relative;
}

.input-field {
	width: 100%;
	height: 60px;
	font-size: 17px;
	padding: 0 25px;
	margin-bottom: 15px;
	border-radius: 30px;
	border: none;
	box-shadow: 0px 5px 10px 1px rgba(0, 0, 0, 0.1);
	outline: none;
	transition: .3s;
}

::placeholder {
	font-weight: 500;
	color: #222;
}

.button-group {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	width: 100%;
	gap: 10px;
	margin-top: 10px;
}

.submit-btn,
.register-btn {
	flex: 1;
	height: 50px;
	border: none;
	border-radius: 30px;
	font-size: 16px;
	color: white;
	background-color: #222;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	line-height: 50px;
	transition: 0.3s;
}

.submit-btn:hover,
.register-btn:hover {
	background-color: #000;
	transform: scale(1.05);
}

.legal-links {
	margin-top: 25px;
	font-size: 13px;
	text-align: center;
	color: #444;
}

.legal-links a {
	color: #444;
	text-decoration: none;
	margin: 0 5px;
	transition: color 0.2s ease;
}

.legal-links a:hover {
	color: #000;
	text-decoration: underline;
}

.input-with-icon {
    position: relative;
    width: 100%;
}

.input-with-icon .input-field {
    padding-right: 40px;
    height: 60px;
    line-height: 60px;
    font-size: 17px;
}

.input-with-icon .toggle-password {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    font-size: 18px;
    height: 18px;
    width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.entfernen-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #c0392b;
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.entfernen-btn:hover {
    background-color: #e74c3c;
    transform: scale(1.1);
}

.entfernen-btn:focus {
    outline: none;
}

.button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #222;
    color: white;
    font-size: 20px;
    text-align: center;
    transition: background-color 0.3s, transform 0.2s;
    text-decoration: none;
}

.logout-btn:hover {
    background-color: #000;
    transform: scale(1.1);
}

.logout-btn:focus {
    outline: none;
}

@media (max-width: 600px) {
	.login-box {
		width: 100%;
		max-width: 350px;
		padding: 25px 15px;
	}

	.icon {
		width: 70px;
		height: 70px;
	}

	.login-header header {
		font-size: 24px;
	}

	.input-field {
		height: 50px;
		font-size: 16px;
		padding: 0 20px;
	}

	.submit-btn,
	.register-btn {
		height: 45px;
		font-size: 15px;
		line-height: 45px;
	}
}

@media (max-width: 400px) {
	.login-header header {
		font-size: 22px;
	}
	.icon {
		width: 60px;
		height: 60px;
	}
}

@media screen and (max-height: 450px) and (orientation: landscape) {
	.overlay {
		align-items: flex-start;
		padding-top: 30px;
		padding-bottom: 30px;
		overflow-y: auto;
	}

	.login-box {
		width: 90%;
		max-height: none;
		padding: 20px;
	}

	.icon {
		width: 60px;
		height: 60px;
	}

	.login-header header {
		font-size: 22px;
	}

	.input-field {
		height: 45px;
		font-size: 15px;
	}

	.submit-btn,
	.register-btn {
		height: 45px;
		font-size: 14px;
		line-height: 45px;
	}

	.legal-links {
		font-size: 12px;
	}
}

.modal {
  display: block;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 600px;
  position: relative;
  box-shadow: 0 0 10px rgba(0,0,0,0.25);
}

.close-btn {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-btn:hover {
  color: #000;
}

.video-container {
  margin: 20px 0;
}

.modal-links {
  text-align: center;
  margin-top: 15px;
}

.modal-links a {
  color: #007BFF;
  text-decoration: none;
  margin: 0 10px;
}

.modal-links a:hover {
  text-decoration: underline;
}

.video-controls {
	text-align: center;
	margin-top: 10px;
	display: flex;
	justify-content: center;
	gap: 10px;
}

.switch-btn {
	padding: 8px 16px;
	border: none;
	border-radius: 5px;
	background-color: #222;
	color: #fff;
	font-size: 16px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.switch-btn:hover {
	background-color: #000;
}

.login-box { position: relative; overflow: visible; }

#chatbotFab{
  position: absolute;
  bottom: -22px;           /* weiter „überhängend“ */
  right: -22px;
  width: 72px;
  height: 72px;
  border: none;
  border-radius: 50%;
  overflow: hidden;        /* <— schneidet das Bild wirklich rund */
  background: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform .15s ease, box-shadow .2s ease;
  z-index: 5;
}
#chatbotFab:hover{ transform: translateY(-2px); box-shadow:0 14px 28px rgba(0,0,0,.3); }
#chatbotFab img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; 
  border-radius: 50%;
}

/* Chat-Overlay & Panel – zunächst versteckt */
#chatbotOverlay{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  display: none;
  z-index: 10000;
}
#chatbotPanel{
  position: fixed; right: 24px; bottom: 24px;
  width: min(420px,92vw); max-height: 80vh;
  background: #fff; border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  display: none;                  /* <— wichtig */
  flex-direction: column; overflow: hidden;
  z-index: 10001;
  font-family: 'Poppins', sans-serif;
}

.chatbot-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #222;
  color: #fff;
}

.chatbot-header .title { font-weight: 600; font-size: 16px; line-height: 1; }

.chatbot-close {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 20px;
  width: 36px; height: 36px;
  border-radius: 8px;
  cursor: pointer;
}
.chatbot-close:hover { background: rgba(255,255,255,.08); }

.chatbot-messages {
  padding: 14px;
  overflow-y: auto;
  background: #f7f8fb;
}

.msg { max-width: 80%; padding: 10px 12px; border-radius: 14px; margin: 6px 0; font-size: 14px; line-height: 1.45; }
.msg.bot  { background: #e9eefb; color: #111; border-bottom-left-radius: 4px; }
.msg.user { background: #222; color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }

.chatbot-input {
  display: flex; gap: 8px; padding: 10px; border-top: 1px solid #eee; background: #fff;
}

.chatbot-input input {
  flex: 1; height: 44px; border-radius: 12px; border: 1px solid #ddd; padding: 0 12px; font-size: 14px; outline: none;
}

.chatbot-input button {
  height: 44px; border: 0; border-radius: 12px; padding: 0 14px; background: #222; color: #fff; cursor: pointer;
}
.chatbot-input button:hover { background: #000; }

.typing { font-style: italic; color: #666; font-size: 13px; padding: 4px 2px; }