a {
  color: #0098A1;
}

.active {
  font-weight: bold;
}

body {
  font-family: 'Segoe UI', sans-serif;
}

h1 {
  font-family: 'Segoe UI', sans-serif;
}

:root {
  --primary-color: #0098A1;
  --primary-hover: #0098A1;
  --success-color: #2e7d32;
  --error-color: #d32f2f;
  --transition-speed: 0.3s;
}

/* Light theme (default) */
:root {
  --text-color: #333;
  --background-color: #ffffff;
  --light-gray: #ddd;
  --medium-gray: #999;
  --border-color: #e0e0e0;
  --overlay-bg: rgba(0, 0, 0, 0.5);
  --input-bg: #f5f5f5;
  --heading-color: #222;
}

/* Dark theme - Using Bootstrap's data-bs-theme attribute */
html[data-bs-theme="dark"] {
  --text-color: #e0e0e0;
  --background-color: #1e1e1e;
  --light-gray: #444;
  --medium-gray: #888;
  --border-color: #444;
  --overlay-bg: rgba(0, 0, 0, 0.7);
  --input-bg: #2d2d2d;
  --heading-color: #ffffff;
}

body {
  position: relative;
}

/* Action buttons list container */
.action-buttons-list {
  position: fixed;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform var(--transition-speed);
}

.action-buttons-list li {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Shared button styles */
.feedback-toggle-btn,
.learning-btn,
.chatbot-btn {
  background-color: #0098A1;
  border: none;
  padding: 0;
  cursor: pointer;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-speed), opacity var(--transition-speed);
  border-radius: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* Shared button container styles */
.feedback-button-container,
.learning-button-container,
.chatbot-button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  width: 100%;
  height: 100%;
  justify-content: center;
}

/* Shared icon styles */
.feedback-icon,
.learning-icon,
.chatbot-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  pointer-events: none;
  filter: brightness(0) invert(1);
  transition: transform var(--transition-speed);
  flex-shrink: 0;
  margin: 0 auto;
}

/* Shared text styles */
.feedback-text,
.learning-text,
.chatbot-text {
  font-size: 10px;
  color: white;
  font-family: 'Segoe UI', sans-serif;
  font-weight: 500;
  white-space: nowrap;
  text-align: center;
  transition: opacity var(--transition-speed);
  line-height: 1;
  width: 100%;
}

/* Shared hover effects */
.feedback-toggle-btn:hover,
.learning-btn:hover,
.chatbot-btn:hover {
  opacity: 0.9;
}

.feedback-toggle-btn:hover .feedback-icon,
.learning-btn:hover .learning-icon,
.chatbot-btn:hover .chatbot-icon {
  transform: scale(2) translateY(2px);
}

.feedback-toggle-btn:hover .feedback-text,
.learning-btn:hover .learning-text,
.chatbot-btn:hover .chatbot-text {
  opacity: 0;
}

/* Hide action buttons list when panel is open */
.panel-open .action-buttons-list {
  transform: translateY(-50%) translateX(100%);
}

/* Feedback panel */
.feedback-panel {
  position: fixed;
  top: 0;
  right: -350px;
  width: 320px;
  height: 100vh;
  max-height: 100vh;
  background-color: var(--background-color);
  color: var(--text-color);
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  padding: 20px;
  overflow-y: auto;
  transition: right var(--transition-speed);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  transform: translateZ(0);
  will-change: right;
}

body.panel-open {
  overflow: hidden;
}

.panel-open .feedback-panel {
  right: 0;
}

/* Required field indicator */
.required {
  color: var(--error-color);
  margin-left: 3px;
}

/* Overlay */
.feedback-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--overlay-bg);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-speed), visibility var(--transition-speed);
  transform: translateZ(0);
}

.panel-open .feedback-overlay {
  opacity: 1;
  visibility: visible;
}

/* Panel header */
.feedback-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  padding-top: 15px;
}

.feedback-title {
  margin: 0;
  color: var(--text-color);
  font-size: 1.3rem;
  font-weight: bold;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--medium-gray);
  line-height: 1;
}

.close-btn:hover {
  color: var(--text-color);
}

/* Rating container */
.rating-container {
  margin-bottom: 20px;
  text-align: center;
}

.rating-container p {
  margin-bottom: 10px;
  color: var(--text-color);
}

.thumbs-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.g-recaptcha {
  margin-bottom: 15px;
  transform-origin: left top;
  overflow: hidden;
}

.g-recaptcha>div {
  width: 100% !important;
}

.g-recaptcha iframe {
  transform: scale(0.95);
  transform-origin: left top;
  width: calc(100% / 0.95);
}

html[data-bs-theme="dark"] .g-recaptcha {
  filter: invert(0.85) hue-rotate(180deg);
}

html[data-bs-theme="dark"] .g-recaptcha:hover {
  filter: none;
}

.thumb-button {
  background: none;
  border: 1px solid var(--light-gray);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: #666;
}

.thumb-button:hover {
  border-color: var(--medium-gray);
  color: var(--text-color);
}

.thumb-button.active {
  background-color: #e6f7ff;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Form styles */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--text-color);
}

#feedback-form input,
#feedback-form textarea,
#feedback-form select {
  width: 100%;
  padding: 10px;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.2s;
  box-sizing: border-box;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  background-color: var(--background-color);
}

#feedback-form input:focus,
#feedback-form textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

#feedback-form select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 30px;
}

#submit-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 15px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
  width: 100%;
}

#submit-button:hover {
  background-color: var(--primary-hover);
}

#submit-button:disabled {
  background-color: var(--medium-gray);
  cursor: not-allowed;
}

#feedback-message {
  margin-top: 15px;
  padding: 10px;
  border-radius: 4px;
  text-align: center;
  font-size: 14px;
}

#feedback-message.success {
  background-color: #e6f7e6;
  color: var(--success-color);
}

#feedback-message.error {
  background-color: #fdeded;
  color: var(--error-color);
}

.hidden {
  display: none;
}

@media (max-width: 480px) {
  .feedback-panel {
    width: 85%;
    right: -100%;
  }

  /* Feedback note section */
  .feedback-note {
    padding: 15px 15px 5px 15px;
    text-align: center;
  }

  .feedback-note p {
    margin: 0;
    color: #999;
    font-size: 16px;
  }

  /* Divider lines */
  .feedback-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    margin: 0;
    display: block;
    width: 100%;
  }

  /* Rating container */
  .rating-container {
    padding: 15px;
  }

  .rating-container p {
    margin-top: 0;
    text-align: center;
  }
}

/* ========================================
   Bootstrap 4 Carousel Custom Styling
   ======================================== */
.carousel-unitop {
    margin: 30px auto 60px auto;
    max-width: 90%;
    background-color: transparent;
    border-radius: 0;
    overflow: visible;
    position: relative;
}

.carousel-unitop .carousel-inner {
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-unitop .carousel-item {
    height: 600px;
}

.carousel-unitop .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    display: block;
}

/* Carousel Indicators (Bootstrap 5 - verwendet <button> Elemente) */
.carousel-unitop .carousel-indicators {
    bottom: -35px;
    margin-bottom: 0;
}

.carousel-unitop .carousel-indicators button {
    width: 30px;
    height: 3px;
    border-radius: 0;
    background-color: rgba(0, 0, 0, 0.2);
    border: none;
    margin: 0 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-indent: -999px;
    overflow: hidden;
    padding: 0;
}

.carousel-unitop .carousel-indicators button:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

.carousel-unitop .carousel-indicators button.active {
    background-color: rgba(0, 0, 0, 0.6);
    width: 30px;
}

/* Carousel Controls */
.carousel-unitop .carousel-control-prev,
.carousel-unitop .carousel-control-next {
    width: 50px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.carousel-unitop .carousel-control-prev {
    left: -50px;
}

.carousel-unitop .carousel-control-next {
    right: -50px;
}

.carousel-unitop .carousel-control-prev:hover,
.carousel-unitop .carousel-control-next:hover {
    opacity: 0.8;
}

.carousel-unitop .carousel-control-prev-icon {
    width: 25px;
    height: 25px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='rgba(0,0,0,0.2)'%3e%3cpath d='M11.354 1.646a.5.5 0 0 0-.708 0l-6 6a.5.5 0 0 0 0 .708l6 6a.5.5 0 0 0 .708-.708L5.707 8l5.647-5.646a.5.5 0 0 0 0-.708'/%3e%3c/svg%3e");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    display: block;
}

.carousel-unitop .carousel-control-next-icon {
    width: 25px;
    height: 25px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='rgba(0,0,0,0.2)'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708'/%3e%3c/svg%3e");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    display: block;
}

.carousel-unitop .carousel-control-prev-icon:hover {
    opacity: 0.8;
}

.carousel-unitop .carousel-control-next-icon:hover {
    opacity: 0.8;
}

/* Dark Mode Support for Carousel */
html[data-bs-theme="dark"] .carousel-unitop .carousel-inner {
    background-color: #1e1e1e;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

html[data-bs-theme="dark"] .carousel-unitop .carousel-indicators button {
    background-color: rgba(255, 255, 255, 1);
}

html[data-bs-theme="dark"] .carousel-unitop .carousel-indicators button:hover {
    background-color: rgba(255, 255, 255, 1);
}

html[data-bs-theme="dark"] .carousel-unitop .carousel-indicators button.active {
    background-color: rgba(255, 255, 255, 1);
}

html[data-bs-theme="dark"] .carousel-unitop .carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='rgba(255,255,255,1)'%3e%3cpath d='M11.354 1.646a.5.5 0 0 0-.708 0l-6 6a.5.5 0 0 0 0 .708l6 6a.5.5 0 0 0 .708-.708L5.707 8l5.647-5.646a.5.5 0 0 0 0-.708'/%3e%3c/svg%3e");
}

html[data-bs-theme="dark"] .carousel-unitop .carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='rgba(255,255,255,1)'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708'/%3e%3c/svg%3e");
}

html[data-bs-theme="dark"] .carousel-control-prev-icon,
html[data-bs-theme="dark"] .carousel-control-next-icon {
  filter: none !important;
}


/* Responsive Design for Carousel */
@media (max-width: 768px) {
    .carousel-unitop {
        max-width: 100%;
        margin: 20px 0;
    }

    .carousel-unitop .carousel-control-prev-icon,
    .carousel-unitop .carousel-control-next-icon {
        width: 25px;
        height: 25px;
    }

    .carousel-unitop .carousel-indicators button {
        width: 20px;
        height: 2px;
        margin: 0 3px;
    }

    .carousel-unitop .carousel-indicators {
        bottom: -30px;
    }
}

/* ========================================
   Lightbox für Bildvergrößerung
   ======================================== */
.lightbox-container {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.lightbox-content {
    position: relative;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    text-align: center;
}

.lightbox-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 85vh;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

#lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background-color: white;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #999;
    text-decoration: none;
}

/* Dark Mode Support für Lightbox */
html[data-bs-theme="dark"] .lightbox-image-container {
    background-color: #1e1e1e;
}

/* Learning Box Component */
.unitop-learning-box {
  display: flex;
  align-items: center;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding: 2em 2.5em;
  width: 100%;
  font-family: 'Segoe UI', 'San Francisco', Arial, sans-serif;
  margin-bottom: 1.5em;
  background: #f3f6fa;
  color: #222;
}

.unitop-learning-box .icon-bg {
  border-radius: 12px;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 2em;
  flex-shrink: 0;
}

.unitop-learning-box .learning-content {
  flex: 1;
}

.unitop-learning-box .learning-title {
  font-weight: 600;
  font-size: 1.25em;
  margin-bottom: 0.3em;
  color: var(--heading-color);
}

.unitop-learning-box .learning-desc {
  font-size: 1.05em;
  margin-bottom: 1.2em;
  color: var(--text-color);
}

.unitop-learning-box .learning-link {
  color: #0098a1;
  font-weight: 500;
  text-decoration: none;
}

.unitop-learning-box .learning-link:hover {
  text-decoration: underline;
}

/* Dark theme support for learning box */
html[data-bs-theme="dark"] .unitop-learning-box {
  background: #2d2d2d;
  color: #e0e0e0;
}
