:root {
  --rotary-orange: #f7a81b;
  --rotary-blue: #17458f;
  --rotary-dark-blue: #003366;
  --background-dark: #1c1c1e;
  --background-card: #1f1f1f;
  --text-white: #ffffff;
  --text-dark: #333333;
  --border-radius: 5px;
  --border-radius-small: 2px;
  --spacing-small: 10px;
  --spacing-medium: 20px;
  --spacing-large: 40px;
  --font-family: Arial, Helvetica, sans-serif;
  --focus-outline: 3px solid var(--rotary-orange);
  --focus-offset: 2px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-white);
  background-color: var(--background-dark);
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  z-index: 1000;
  font-weight: bold;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
video:focus,
[tabindex]:focus {
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 1rem;
  overflow-wrap: break-word;
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  transition: all 0.3s ease;
}

a:hover,
a:focus {
  text-decoration-thickness: 3px;
}

.highlight-link {
  color: var(--rotary-orange);
  font-weight: 500;
}

.highlight-link:hover,
.highlight-link:focus {
  background-color: rgba(247, 168, 27, 0.1);
  padding: 2px 4px;
  border-radius: 3px;
}

.root {
  width: 100%;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1250px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.header {
  background-color: white;
  padding: var(--spacing-medium);
  color: var(--text-dark);
}

.splash {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  display: block;
  object-fit: cover;
}

.title {
  margin: 25px 0;
  color: var(--rotary-orange);
  font-size: 2.5rem;
}

.subtext {
  color: var(--rotary-blue);
  font-size: 1.1rem;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--spacing-medium) 0;
  flex-wrap: wrap;
  gap: var(--spacing-small);
}

.nav-left,
.nav-center,
.nav-right {
  display: flex;
  gap: var(--spacing-small);
  flex-wrap: wrap;
}

.nav-btn,
.login-btn {
  display: inline-block;
  padding: 10px 15px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.nav-btn {
  background-color: var(--rotary-blue);
  color: white;
}

.nav-btn:hover,
.nav-btn:focus {
  background-color: var(--rotary-dark-blue);
  transform: translateY(-2px);
}

.login-btn {
  background-color: var(--rotary-orange);
  color: black;
}

.login-btn:hover,
.login-btn:focus {
  background-color: #e6951a;
  transform: translateY(-2px);
}

.content {
  background: var(--rotary-blue);
  padding: var(--spacing-large);
  color: white;
  flex: 1;
}

.contentTitle {
  color: var(--rotary-orange);
  font-size: 3rem;
  margin-bottom: var(--spacing-medium);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.highlight-text {
  color: var(--rotary-orange);
  overflow-wrap: break-word;
}

.text-blob {
  margin: 25px 0;
  line-height: 1.8;
}

.flex-container {
  display: flex;
  gap: var(--spacing-medium);
  margin-top: 30px;
  flex-wrap: wrap;
}

.flex-item {
  flex: 1;
  min-width: 250px;
  padding: var(--spacing-medium);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  transition: transform 0.3s ease;
}

.flex-item:hover {
  transform: translateY(-5px);
}

.video-container,
.image-container {
  display: flex;
  gap: var(--spacing-medium);
  margin: var(--spacing-large) 0;
  flex-wrap: wrap;
}

/* Standardize video box dimensions */
/* Force all video boxes to a consistent height, overriding any inline styles */
.video-box {
  height: 200px !important;
  position: relative;
}

/* Hide the actual video elements by default; they will be displayed in a modal */
.video-box video {
  display: none;
}

/* Uniform styling for interview videos (short interviews section) */
.interview-video {
  position: relative;
  height: 200px !important;
  background: var(--background-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.interview-video video {
  display: none;
}

/* Apply the play button styling to both video-box and interview-video containers */
.video-box .play-button,
.interview-video .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
}

.video-box .play-button::before,
.interview-video .play-button::before {
  content: "";
  display: block;
  margin-left: 4px;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent white;
}

/* Style for the play button overlay */
.video-box .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
}

/* Create the triangle play symbol using borders */
.video-box .play-button::before {
  content: "";
  display: block;
  margin-left: 4px;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent white;
}

/* Fullscreen modal for playing videos */
#video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#video-modal[aria-hidden="false"] {
  display: flex;
}

#video-modal .modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  width: 800px;
  background: var(--background-card);
  border-radius: var(--border-radius);
  padding: var(--spacing-medium);
}

#video-modal video {
  width: 100%;
  height: auto;
  max-height: 80vh;
  border-radius: var(--border-radius);
}

/* Close button inside modal */
#video-modal .close-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  background: var(--text-white);
  color: var(--text-dark);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  border: 2px solid var(--text-dark);
}

.video-box,
.image-box {
  flex: 1;
  min-width: 300px;
  height: 200px;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--background-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video,
.image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
  display: block;
}

.project-container {
  display: flex;
  gap: var(--spacing-medium);
  margin: var(--spacing-large) 0;
  align-items: flex-start;
  flex-wrap: wrap;
}

.project-container .text-blob {
  flex: 1;
  min-width: 300px;
}

.project-container .video-box {
  flex: 0 0 48%;
  min-width: 300px;
}

.interview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-medium);
  margin-top: 30px;
}

.interview-card {
  background-color: var(--background-card);
  border-radius: var(--border-radius);
  padding: var(--spacing-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.interview-card:hover {
  transform: translateY(-5px);
}

.interview-video {
  width: 100%;
  margin-bottom: var(--spacing-small);
}

.interview-info {
  text-align: center;
}

.interview-role {
  color: white;
  font-size: 0.9em;
  margin-bottom: 4px;
}

.interview-name {
  color: var(--rotary-orange);
  font-weight: bold;
  font-size: 1.1em;
}

.interview-club {
  color: white;
  font-size: 0.85em;
}

.search-bar {
  border: 4px solid #e1895e;
  border-radius: 50px;
  width: 100%;
  max-width: 500px;
  height: 50px;
  background-color: transparent;
  display: flex;
  align-items: center;
  margin-bottom: 50px;
}

.search-bar input {
  flex: 1;
  padding: 0 var(--spacing-medium);
  border: none;
  background: transparent;
  color: #e1895e;
  font-size: 18px;
  outline: none;
  height: 100%;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  justify-content: center;
}

.gallery .image {
  background: white;
  padding: var(--spacing-small);
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.gallery .image:hover {
  transform: translateY(-5px);
}

.gallery .image img {
  width: 90%;
  height: auto;
}

.gallery .image name,
.gallery .image distrikt,
.gallery .image land {
  color: black;
  padding-top: var(--spacing-small);
  font-weight: 600;
  word-break: break-word;
}

.missing-data {
  visibility: hidden;
}

.unselected {
  display: none;
}

.social-container {
  display: flex;
  justify-content: space-around;
  gap: var(--spacing-medium);
  flex-wrap: wrap;
}

.social {
  max-width: 250px;
  text-align: center;
}

.social img {
  width: 48px;
  height: 48px;
  margin-bottom: var(--spacing-small);
}

.social h3 {
  margin: var(--spacing-small) 0 5px 0;
  color: var(--rotary-blue);
}

.social p {
  color: var(--rotary-blue);
  margin: 0;
}

.social h3 a {
  color: var(--rotary-blue);
  text-decoration: underline 2px;
}

.duo-button-container {
  display: flex;
  gap: var(--spacing-small);
  flex-wrap: wrap;
}

.duo-button {
  background-color: #f5a623;
  color: var(--rotary-blue);
  text-decoration: none;
  padding: 10px 15px;
  border-radius: var(--border-radius);
  font-weight: bold;
  min-width: 125px;
  text-align: center;
  transition: all 0.3s ease;
}

.duo-button:hover,
.duo-button:focus {
  background-color: #e6951a;
  transform: translateY(-2px);
}

.legal {
  background-color: var(--rotary-dark-blue);
  padding: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-large);
  flex-wrap: wrap;
  margin-top: auto;
}

.legal a {
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--border-radius);
  transition: background-color 0.3s ease;
}

.legal a:hover,
.legal a:focus {
  background-color: rgba(255, 255, 255, 0.1);
  text-decoration: underline;
}

.legal-content,
.contact-content {
  background: white;
  color: var(--text-dark);
  padding: var(--spacing-large);
  line-height: 1.6;
}

.legal-content h1,
.legal-content h2,
.contact-content h1 {
  color: #0056b3;
  margin-bottom: var(--spacing-small);
}

.legal-content h1 {
  font-size: 2em;
}

.legal-content h2 {
  font-size: 1.5em;
  margin-top: var(--spacing-medium);
}

.legal-content p,
.contact-content p {
  margin: var(--spacing-small) 0;
}

.legal-content ul {
  margin: var(--spacing-small) 0;
  padding-left: var(--spacing-medium);
}

.legal-content .highlight {
  font-weight: bold;
  color: #d9534f;
}

.contact-content .text-blob a {
  color: var(--rotary-blue);
  text-decoration: underline 2px;
  font-weight: bold;
}

.stiftungsunterlagen-heading {
  color: var(--rotary-dark-blue);
  font-size: 1.5em;
  margin-bottom: var(--spacing-medium);
}

.unterlagen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-large);
}

.unterlagen-kategorie {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-small);
}

.unterlagen-kategorie-title {
  font-weight: bold;
  color: #f5a623;
  font-size: 1em;
}

.unterlagen-liste {
  list-style: disc;
  padding-left: var(--spacing-medium);
  margin: 0;
}

.unterlagen-liste li a {
  color: var(--text-white);
  text-decoration: none;
}

.unterlagen-liste li a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  :root {
    --spacing-large: 20px;
    --spacing-medium: 15px;
  }

  .container {
    padding: 0 15px;
  }

  .navbar {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .nav-left,
  .nav-center,
  .nav-right {
    flex-direction: column;
    width: 100%;
  }

  .nav-btn,
  .login-btn {
    width: 100%;
    text-align: center;
  }

  .contentTitle {
    font-size: 2.25rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .flex-container,
  .video-container,
  .image-container,
  .social-container {
    flex-direction: column;
  }

  .project-container {
    flex-direction: column;
  }

  .project-container .video-box {
    flex: none;
    width: 100%;
  }

  .interview-grid {
    grid-template-columns: 1fr;
  }

  .unterlagen-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-medium);
  }

  .legal {
    flex-direction: column;
    gap: var(--spacing-small);
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --spacing-large: 15px;
    --spacing-medium: 10px;
  }

  .header,
  .content,
  .legal-content,
  .contact-content {
    padding: 15px;
  }

  .title {
    font-size: 1.5rem;
    margin: 15px 0;
  }

  .contentTitle {
    font-size: 1.75rem;
  }

  .flex-item {
    min-width: unset;
  }

  .video-box,
  .image-box {
    min-height: 150px;
    min-width: unset;
  }

  .unterlagen-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .duo-button-container {
    flex-direction: column;
  }

  .duo-button {
    width: 100%;
  }

  .search-bar {
    width: 100%;
  }

  .gallery {
    grid-template-columns: 1fr;
  }
}

@media print {
  .skip-link,
  .navbar,
  .legal {
    display: none;
  }

  .content {
    background: white;
    color: black;
  }

  .highlight-text,
  .highlight-link {
    color: black;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.accessibility-menu {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  font-family: var(--font-family);
}

.accessibility-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--rotary-orange);
  color: #000;
  border: none;
  padding: 12px 16px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  min-height: 44px;
  min-width: 44px;
}

.accessibility-toggle:hover,
.accessibility-toggle:focus {
  background: #e6951a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.accessibility-icon {
  font-size: 20px;
  line-height: 1;
}

.accessibility-text {
  white-space: nowrap;
}

.accessibility-panel {
  position: absolute;
  top: 60px;
  right: 0;
  width: 400px;
  max-width: 90vw;
  max-height: 80vh;
  background: #fff;
  border: 2px solid var(--rotary-orange);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transform: translateY(-20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.accessibility-panel[aria-hidden="false"] {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.accessibility-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--rotary-blue);
  color: white;
  border-bottom: 1px solid #ddd;
}

.accessibility-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
}

.accessibility-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.accessibility-close:hover,
.accessibility-close:focus {
  background: rgba(255, 255, 255, 0.2);
}

.accessibility-content {
  max-height: 60vh;
  overflow-y: auto;
  padding: 0;
}

.accessibility-section {
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}

.accessibility-section:last-child {
  border-bottom: none;
}

.accessibility-section h3 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: bold;
  color: var(--rotary-blue);
}

.accessibility-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.accessibility-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  min-height: 44px;
}

.accessibility-btn:hover,
.accessibility-btn:focus {
  background: #e9ecef;
  border-color: var(--rotary-orange);
  transform: translateY(-1px);
}

.accessibility-btn[aria-pressed="true"] {
  background: var(--rotary-orange);
  border-color: var(--rotary-orange);
  color: #000;
  font-weight: bold;
}

.btn-icon {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

.btn-text {
  flex: 1;
}

.accessibility-footer {
  padding: 16px 20px;
  background: #f8f9fa;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.accessibility-reset {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #dc3545;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
}

.accessibility-reset:hover,
.accessibility-reset:focus {
  background: #c82333;
  transform: translateY(-1px);
}

.accessibility-info {
  color: #666;
  font-size: 12px;
}

body.high-contrast {
  background: #000 !important;
  color: #fff !important;
}

body.high-contrast * {
  background: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
}

body.high-contrast .header {
  background: #fff !important;
  color: #000 !important;
}

body.high-contrast .header * {
  background: #fff !important;
  color: #000 !important;
}

body.high-contrast .nav-btn,
body.high-contrast .login-btn {
  background: #fff !important;
  color: #000 !important;
  border: 2px solid #000 !important;
}

body.high-contrast .highlight-text,
body.high-contrast .highlight-link {
  color: #ffff00 !important;
  background: #000 !important;
}

body.high-contrast img,
body.high-contrast video {
  filter: contrast(200%) brightness(150%);
}

body.inverted-colors {
  filter: invert(1) hue-rotate(180deg);
}

body.inverted-colors img,
body.inverted-colors video {
  filter: invert(1) hue-rotate(180deg);
}

body.monochrome {
  filter: grayscale(100%);
}

body.monochrome img,
body.monochrome video {
  filter: grayscale(100%);
}

body.deuteranopia {
  filter: url("#deuteranopia-filter");
}

body.protanopia {
  filter: url("#protanopia-filter");
}

body.tritanopia {
  filter: url("#tritanopia-filter");
}

body.large-text {
  font-size: 1.25em;
}

body.large-text h1 {
  font-size: 3.125rem;
}
body.large-text h2 {
  font-size: 2.5rem;
}
body.large-text h3 {
  font-size: 1.875rem;
}

body.dyslexia-font {
  font-family: "Comic Sans MS", "OpenDyslexic", cursive, sans-serif;
}

body.dyslexia-font * {
  font-family: "Comic Sans MS", "OpenDyslexic", cursive, sans-serif;
}

body.increased-spacing {
  line-height: 2;
}

body.increased-spacing p,
body.increased-spacing li {
  line-height: 2.2;
  margin-bottom: 1.5rem;
}

body.increased-spacing h1,
body.increased-spacing h2,
body.increased-spacing h3 {
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

body.simplified-layout .header {
  padding: 10px;
}

body.simplified-layout .navbar {
  flex-direction: column;
  gap: 5px;
}

body.simplified-layout .flex-container,
body.simplified-layout .video-container,
body.simplified-layout .image-container {
  flex-direction: column;
}

body.simplified-layout .video-box,
body.simplified-layout .image-box {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

body.simplified-layout .interview-grid {
  grid-template-columns: 1fr;
}

body.focus-mode .header,
body.focus-mode .legal {
  display: none;
}

body.focus-mode .content {
  padding-top: 20px;
}

body.focus-mode .flex-container,
body.focus-mode .video-container,
body.focus-mode .image-container {
  display: none;
}

body.large-buttons .nav-btn,
body.large-buttons .login-btn,
body.large-buttons .duo-button,
body.large-buttons button {
  padding: 16px 24px;
  font-size: 18px;
  min-height: 56px;
  min-width: 56px;
}

body.large-buttons .accessibility-btn {
  padding: 16px 20px;
  font-size: 16px;
  min-height: 56px;
}

body.reduced-motion *,
body.reduced-motion *::before,
body.reduced-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

body.reading-guide {
  position: relative;
}

body.reading-guide::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--rotary-orange);
  z-index: 9999;
  pointer-events: none;
  transition: top 0.1s ease;
}

body.tooltips [title]:hover::after,
body.tooltips [aria-label]:hover::after {
  content: attr(title) attr(aria-label);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  z-index: 10001;
  pointer-events: none;
}

@media (max-width: 768px) {
  .accessibility-menu {
    top: 10px;
    right: 10px;
  }

  .accessibility-toggle {
    padding: 10px 12px;
    font-size: 14px;
  }

  .accessibility-text {
    display: none;
  }

  .accessibility-panel {
    width: 350px;
    top: 50px;
  }

  .accessibility-buttons {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .accessibility-menu {
    top: 5px;
    right: 5px;
  }

  .accessibility-panel {
    width: calc(100vw - 20px);
    right: -10px;
    top: 45px;
  }

  .accessibility-header,
  .accessibility-section,
  .accessibility-footer {
    padding: 12px 16px;
  }

  .accessibility-btn {
    padding: 12px 14px;
    font-size: 13px;
  }
}

@media print {
  .accessibility-menu {
    display: none;
  }
}
