/* Standardmäßig sind Aussprachehinweise versteckt */

  
  .ruby-text rt {
    display: none;
  }
  
  /* Wenn aktiviert, werden Aussprachehinweise angezeigt */
  .ruby-text.show-pronunciation rt {
    display: ruby-text;
    font-size: 0.75em;
    color: #0082fc;
    font-weight: 500;
  }
  
  .ruby-text.show-pronunciation {
    ruby-position: over;
    font-size: 1em;
  }

/* Tooltip Styles für Fachbegriffe */
abbr {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: #6366f1;
  cursor: help;
  position: relative;
}

abbr:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 8px;
}

abbr:hover::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1f2937;
  margin-bottom: 2px;
  z-index: 1000;
}

/* Focus styles für Keyboard-Navigation */
abbr:focus {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
  border-radius: 2px;
}

abbr:focus::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 8px;
}

abbr:focus::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1f2937;
  margin-bottom: 2px;
  z-index: 1000;
}

/* Dicke Fokus-Indikatoren für Video-Elemente */
video:focus {
  outline: 8px solid #6366f1 !important;
  outline-offset: 12px !important;
  border-radius: 12px;
  box-shadow: 0 0 0 12px rgba(99, 102, 241, 0.4) !important;
  position: relative;
  z-index: 10;
}

video:focus-visible {
  outline: 8px solid #6366f1 !important;
  outline-offset: 12px !important;
  border-radius: 12px;
  box-shadow: 0 0 0 12px rgba(99, 102, 241, 0.4) !important;
  position: relative;
  z-index: 10;
}

/* Zusätzliche Hover-Effekte für Video-Elemente */
video:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.2s ease-in-out;
}

/* Tooltip Styles für Social Media Links */
.social-link {
  position: relative;
  cursor: pointer;
}

.social-link:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 8px;
}

.social-link:hover::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1f2937;
  margin-bottom: 2px;
  z-index: 1000;
}

/* Focus styles für Social Media Links */
.social-link:focus {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
  border-radius: 2px;
}

.social-link:focus::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 8px;
}

.social-link:focus::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1f2937;
  margin-bottom: 2px;
  z-index: 1000;
}

/* Tooltip Styles für Accessibility Options */
.accessibility-option {
  position: relative;
  cursor: pointer;
}

.accessibility-option:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 8px;
}

.accessibility-option:hover::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1f2937;
  margin-bottom: 2px;
  z-index: 1000;
}

/* Focus styles für Accessibility Options */
.accessibility-option:focus {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
  border-radius: 2px;
}

.accessibility-option:focus::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 8px;
}

.accessibility-option:focus::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1f2937;
  margin-bottom: 2px;
  z-index: 1000;
}