@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/OpenSans-Variable.woff2') format('woff2');
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/OpenSans-Variable.woff2') format('woff2');
}

    :root {
      --speech-btn-width: 140px;
      --a11y-font-size: 100%;
    }

body {
  font-size: var(--a11y-font-size);
  transition: font-size 0.3s ease-in-out;
}

/* Alles, was Text enthält */
main, article, .entry-content, p, li, blockquote {
  font-size: 1em;
}

/* Toolbar bleibt fix */
.dam-touch-speech-bar,
.dam-touch-speech-bar * {
  font-size: initial !important;
}


    #speech-container {
      position: fixed;
      z-index: 9999;
    }

    #speech-container.icon-bottom {
      bottom: 20px;
      top: auto;
    }

    #speech-container.icon-top {
      top: 20px;
      bottom: auto;
    }

    #speech-container.icon-right {
      right: 20px;
    }

    #speech-container.icon-left {
      left: 20px;
    }

    .no-transitions * {
      transition: none !important;
    }


    .scroll-indicator {
      position: absolute;
      top: 50%;
      width: 24px;
      height: 24px;
      transform: translateY(-50%);
      background-size: contain;
      background-repeat: no-repeat;
      cursor: pointer;
      opacity: 0;
      pointer-events: none;
      /* Standard: nicht anklickbar */
      transition: opacity 0.3s ease;
      z-index: 9999;
    }

    .scroll-indicator-right {
      right: 5px;
      background-image: url('right.svg');
    }

    .scroll-indicator-left {
      left: 5px;
      background-image: url('left.svg');
    }

    /* Nur sichtbar, wenn Container .active hat UND JS .visible setzt */
    #speech-container.active .scroll-indicator.visible {
      opacity: 1;
      pointer-events: auto;
    }


    #help-icon {
      all: unset;
      border-top-left-radius: unset;
      border-top-right-radius: unset;
      border-bottom-right-radius: unset;
      border-bottom-left-radius: unset;
      display: unset;
      cursor: unset;
      justify-content: unset;
      align-items: unset;
      height: unset;
      width: unset;
      width: 100%;
      height: 100%;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      cursor: pointer;
    }

    #help-icon img {
      width: 58px;
      height: 58px;
      pointer-events: none;
      visibility: hidden;
      display:none;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .help-indicator {
        position: absolute;
        width: 35px;
        height: 58px;
        border-radius: 50%;
        background: #1e64b000;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        transition: transform 0.4s ease;
        padding: 0;
    }

    .help-indicator.help-indicator-right {
      right: 0;
    }

    .help-indicator.help-indicator-left {
      left: 0;
    }

    .help-indicator.help-indicator-bottom {
      bottom: 0;
      top: auto;
    }

    .help-indicator.help-indicator-top {
      top: 0;
      bottom: auto;
    }

    /* --- Panel --- */
    #speech-buttons {
      display: flex;
      align-items: center;
      gap: 12px;
      height: 58px;
      background: rgba(46, 130, 210, 0.98);
      opacity: 0;
      transition: transform 0.4s ease, opacity 0.3s ease;
      position: relative;
      overflow: hidden;
      overflow-x: auto;
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
    }

    #speech-container.icon-right #speech-buttons {
      padding: 0 34px 0 16px;
      border-top-right-radius: 29px;
      border-bottom-right-radius: 29px;
      border-top-left-radius: 0;
      border-bottom-left-radius: 0;
      transform: translateX(100%);
    }

    #speech-container.icon-left #speech-buttons {
      padding: 0 29px 0 32px;
      border-top-left-radius: 29px;
      border-bottom-left-radius: 29px;
      border-top-right-radius: 0;
      border-bottom-right-radius: 0;
      transform: translateX(-100%);
    }

    #speech-container.icon-right #speech-buttons.active,
    #speech-container.icon-left #speech-buttons.active {
      opacity: 1;
      transform: translateX(0);
    }

    #speech-buttons::before,
    #speech-buttons::after {
      content: "";
      position: absolute;
      top: 0;
      width: 58px;
      height: 58px;
      border-radius: 50%;
      z-index: 1;
    }

    #speech-buttons::before {
      background: #f4f4f4;
    }

    #speech-container.icon-right #speech-buttons::after {
        background-size: 48px;
        background-position: center;
        opacity: 0.85;
        display: block;
        pointer-events: none;
        background-repeat: no-repeat;
        background-position-x: 14px;
    }

    #speech-container.icon-left #speech-buttons::after {
      background-size: 48px;
      background-position: center;
      opacity: 0.85;
      display: block;
      pointer-events: none;
      background-repeat: no-repeat;
      background-position-x: -7px;
  }

    #speech-container.icon-right #speech-buttons::before {
      left: -29px;
      right: auto;
    }

    #speech-container.icon-right #speech-buttons::after {
      right: 0;
      left: auto;
    }

    #speech-container.icon-left #speech-buttons::before {
      right: -29px;
      left: auto;
    }

    #speech-container.icon-left #speech-buttons::after {
      left: 0;
      right: auto;
    }

    #speech-buttons.hide-after::after {
      content: none;
    }

    #speech-container.icon-right #speech-buttons.hide-after {
      border-right: 29px solid #3284d3;
    }

    #speech-container.icon-left #speech-buttons.hide-after {
      border-left: 29px solid #3284d3;
    }

    #speech-buttons::-webkit-scrollbar {
      /* display: none; /* Chrome/Safari */
    }

    /* Jeder Button snappt */
    /* #speech-buttons button {
      scroll-snap-align: center;
      flex: 0 0 auto;
    } */

    /* --- Icon --- */
    /* Runder Kreis-Container */
    #speech-icon {
      position: absolute;
      width: 58px;
      height: 58px;
      border-radius: 50%;
      background: #1e64b0;
      display: flex;
      justify-content: center;
      align-items: center;
      cursor: pointer;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
      z-index: 2;
      transition: transform 0.4s ease;
      padding: 0;
      /* wichtig: kein Padding */
    }

  #speech-icon img {
    opacity: 0;
    transition: opacity 0.2s ease;
  }
  #speech-icon img[data-loaded="true"] {
    opacity: 1!important;
  }

    #speech-container.icon-bottom #speech-icon {
      bottom: 0;
      top: auto;
    }

    #speech-container.icon-top #speech-icon {
      top: 0;
      bottom: auto;
    }

    #speech-container.icon-right #speech-icon {
      right: 0;
    }

    #speech-container.icon-left #speech-icon {
      left: 0;
    }

    /* Button im Kreis */
    #speech-icon button#accessibility-icon {
      all: unset;
      background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><circle cx="64" cy="64" r="63" fill="%231e64b0" stroke="white" stroke-width="6"/><g transform="translate(19,18) scale(0.7)" fill="none" stroke="%23fff" stroke-width="6"><path d="M28.4 34.3c-4.6-2-10 .2-12 4.8s.2 10 4.8 12l4.5 1.9c6.6 2.8 13.4 4.9 20.4 6.2v19.1c0 1.6-.3 3.3-.8 4.8l-10.9 32.8c-1.6 4.8 1 10 5.8 11.6 4.8 1.6 10-1 11.6-5.8l9.3-27.9c.5-1.4 1.8-2.4 3.4-2.4 1.5 0 2.9 1 3.4 2.4l9.3 27.9c1.6 4.8 6.8 7.4 11.6 5.8 4.8-1.6 7.4-6.8 5.8-11.6l-11-32.8c-.5-1.6-.8-3.2-.8-4.8v-19c7-1.3 13.8-3.4 20.4-6.2l4.5-1.9c4.6-2 6.8-7.4 4.8-12s-7.4-6.8-12-4.8L96 36.2c-9.9 4.3-20.7 6.5-31.5 6.5S43 40.5 33 36.2l-4.6-1.9z"/><circle cx="64.5" cy="15.2" r="15.2"/></g></svg>');
      width: 100%;
      height: 100%;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      cursor: pointer;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    }

    /* Das Icon-Bild */
    #speech-icon img {
      width: 58px;
      height: 58px;
      pointer-events: none;
      /* Klicks nur auf den Button, nicht auf das Bild */
    }

    /* --- Buttons --- */
    #speech-buttons button {
      width: var(--speech-btn-width);
      max-width: calc(40vw - 10px);
      color: #1e64b0;
      border: none;
      padding: 10px 0;
      border-radius: 6px;
      cursor: pointer;
      text-align: center;
      white-space: nowrap;
      opacity: 0;
      transform: translateX(20px);
      transition: transform 0.3s ease, opacity 0.3s ease;
      overflow-x: hidden;
      text-overflow: ellipsis;
    }

    .dam-touch-speech-bar__button.active {
      color: #2e82d2 !important;
      font-weight: bold;
      background-color: #e8e8e8;
      box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
    }

    #speech-buttons.active button:nth-child(1) {
      transition-delay: 0.2s;
      opacity: 1;
      transform: translateX(0);
    }

    #speech-buttons.active button:nth-child(2) {
      transition-delay: 0.25s;
      opacity: 1;
      transform: translateX(0);
    }

    #speech-buttons.active button:nth-child(3) {
      transition-delay: 0.3s;
      opacity: 1;
      transform: translateX(0);
    }

    #speech-buttons.active button:nth-child(4) {
      transition-delay: 0.35s;
      opacity: 1;
      transform: translateX(0);
    }

    #speech-buttons.active button:nth-child(5) {
      transition-delay: 0.4s;
      opacity: 1;
      transform: translateX(0);
    }

    #speech-buttons button:hover {
      background: #eee;
    }

    /* --- Info-Zeile --- */
    #speech-info {
      position: absolute;
      bottom: 60px;
      left: 56%;
      transform: translateX(-44%) translateY(10px);
      /* optisch mittig */
      background: #3183d3;
      color: #fff;
      padding: 6px 12px;
      border-radius: 6px;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
      opacity: 0;
      transition: all 0.3s ease;
      pointer-events: none;
      white-space: nowrap;
    }

    #speech-info.active {
      opacity: 1;
      transform: translateX(-60%) translateY(0);
      pointer-events: auto;
    }

    #accessibility-icon {
      position: fixed;
      left: auto;
      right: auto;
      background-color: #1b4d9b;
      border: 2px solid white;
      padding: 0;
      border-radius: 50%;
      cursor: pointer;
      z-index: 9999;
      width: 48px;
      height: 48px;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
      transition: transform 0.3s ease;
    }

    #accessibility-icon.icon-position-bottom {
      bottom: 20px;
      top: auto;
    }

    #accessibility-icon.icon-position-top {
      top: 20px;
      bottom: auto;
    }

    #accessibility-icon:hover {
      transform: scale(1.1);
    }

    #accessibility-icon.icon-position-right {
      right: 20px;
    }

    #accessibility-icon.icon-position-left {
      left: 20px;
    }

    #dam-touch-speech-button {
      position: fixed;
      left: auto;
      right: auto;
      background-color: #1b4d9b;
      border: 2px solid white;
      border-radius: 50%;
      cursor: pointer;
      z-index: 9999;
      width: 48px;
      height: 48px;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
      transition: transform 0.3s ease, background-color 0.3s ease;
      visibility: visible;
      opacity: 1;
    }

    #dam-touch-speech-button.icon-position-bottom {
      bottom: 20px;
      top: auto;
    }

    #dam-touch-speech-button.icon-position-top {
      top: 20px;
      bottom: auto;
    }

    #dam-touch-speech-button.icon-position-left {
      left: 20px;
    }

    #dam-touch-speech-button.icon-position-right {
      right: 20px;
    }

    #dam-touch-speech-button span {
      font-size: 24px;
    }

    #dam-touch-speech-button:hover {
      transform: scale(1.1);
    }

    #dam-touch-speech-button:focus {
      outline: 2px solid #ffffff;
      outline-offset: 2px;
    }

    #dam-touch-speech-button.dam-touch-speech-active {
      background-color: #0f2d5c;
    }

    #dam-touch-speech-button[data-hidden="true"],
    #accessibility-icon[data-hidden="true"] {
      opacity: 0;
      pointer-events: none;
      visibility: hidden;
    }

    #dam-touch-speech-button.dam-touch-speech-await {
      background-color: #ffc107;
      color: #112240;
    }

    #accessibility-icon.dam-touch-speech-active,
    #accessibility-icon.dam-touch-speech-await {
      background-color: #1b4d9b;
      color: #ffffff;
    }

    #accessibility-icon.dam-touch-speech-active img {
      display: none;
    }

    #accessibility-icon::after {
      content: "";
      display: block;
      width: 58px;
      height: 58px;
      background: url("active-speech.svg") no-repeat center;
      background-size: contain;
      transition-delay: 1s;
      transform: translateX(0);
    }

    #accessibility-icon.dam-touch-speech-await img {
      display: none;
    }

    #dam-touch-speech-button.dam-touch-speech-active::after {
      content: "";
      display: block;
      width: 48px;
      height: 48px;
      background: url("active-speech.svg") no-repeat center;
      background-size: contain;
    }

    #accessibility-icon.dam-touch-speech-await::after {
      content: "👉";
      font-size: 24px;
      display: block;
    }

    #dam-touch-speech-button.dam-touch-speech-active span {
      display: none;
    }

    #accessibility-modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.4);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      z-index: 10000;
    }

    #accessibility-modal.scrollable {
      justify-content: end;
    }

    #accessibility-modal[hidden] {
      display: none;
    }

    #click {
      max-width: 0px;
      display: block;
      max-height: 0px;
      font-size: 0px;
    }

    #mac-safari-tab-hint kbd {
      display: inline-block;
      padding: 0.2em 0.5em !important;
      font-family: monospace;
      font-size: 1.6em !important;
      background: #eee !important;
      border: 1px solid #ccc !important;
      border-radius: 4px;
      box-shadow: inset 0 -1px 0 #bbb;
      color: #333;
      white-space: nowrap;
    }

    kbd {
      display: inline-block;
      padding: 0.2em 0.5em !important;
      font-size: 2em !important;
      font-family: monospace;
      background: #eee !important;
      border: 1px solid #ccc !important;
      border-radius: 4px;
      box-shadow: inset 0 -1px 0 #bbb;
      color: #333;
      white-space: nowrap;
      min-width: 43px;
      text-align: center;
    }

    kbdm {
      display: inline-block;
      padding: 0.2em 0.5em !important;
      font-family: monospace;
      background: #eee !important;
      border: 1px solid #ccc !important;
      border-radius: 4px;
      box-shadow: inset 0 -1px 0 #bbb;
      color: #333;
      white-space: nowrap;
      text-align: center;
      min-width: 6ch;
      max-width: 16ch;
      font-size: 1.2em;
    }

    #mouseclick {
      height: 1.5em;
      vertical-align: middle;
      padding: 0 12px;
    }

    .high-contrast img#mouseclick {
      filter: invert(100%);
    }

    .modal-content {
      background: white;
      width: 100%;
      max-width: 880px;
      border-radius: 12px;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
      font-family: 'Open Sans', Arial, sans-serif;
      position: relative;
      max-height: calc(100vh - 80px);
      display: flex;
      flex-direction: column;
      overflow: hidden;
      top: clamp(20px, 8vh, 40px);
      transform: scale(.95);
    }

    .modal-content strong {
        font-weight: 600;
        white-space: nowrap;
    }

    .modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid #ddd;
      padding: 1.5rem 2rem 1rem;
      flex: 0 0 auto;
      background: white;
    }

    .modal-header h2 {
      margin: 0;
      font-size: 1.5rem;
    }

    #modal-close-x {
      background: none;
      border: none;
      font-size: 1.5rem;
      cursor: pointer;
      color: #888;
    }

    #modal-close-x:hover {
      color: #000;
    }

    .modal-content p {
      padding-top: 1em;
      padding-bottom: 0em;
      margin-bottom: 0.8rem;
    }

    .modal-content ul {
      padding-left: 1.2rem;
      margin-bottom: 1rem;
    }

    .modal-notice {
      margin: 1rem 2rem 0;
      padding: 14px 18px;
      background: #f4f6ff;
      border-radius: 10px;
      border: 1px solid rgba(0, 0, 0, 0.05);
      font-size: 0.94em;
      line-height: 1.4;
    }

    .modal-notice strong {
      display: inline-block;
      margin-bottom: 6px;
      font-size: 1em;
    }

    .modal-notice ul {
      margin: 6px 0 0;
      padding-left: 18px;
    }

    .modal-notice li {
      margin-bottom: 4px;
    }

    .modal-notice li:last-child {
      margin-bottom: 0;
    }


    .modal-body-scroll {
      flex: 1 1 auto;
      overflow-y: auto;
      padding: 1rem 2rem 1.5rem;
      background: white;
    }

    .modal-footer {
      display: flex;
      justify-content: center;
      border-top: 1px solid #ddd;
      padding: 1rem 2rem 1.5rem;
      background: white;
      flex: 0 0 auto;
      gap: 0.75rem;
    }

    .no-speak#mac-safari-tab-hint {
      display: none;
    }

    .accessibility-hints {
      display: flex;
      flex-direction: column;
      gap: 1.25rem;
      width: 100%;
      font-size: 0.95em;
      line-height: 1.35;
    }

    .hint-section {
      display: flex;
      flex-direction: column;
      gap: 0.65rem;
      background: #f8f9fb;
      border-radius: 8px;
      padding: 16px 18px;
      box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    }

    .hint-section__title {
      margin: 0 0 4px;
      font-size: 1.05em;
      font-weight: 600;
    }

    .hint-section__rows {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }

    .hint-row {
      display: flex;
      align-items: flex-start;
      gap: 1rem;
      flex-wrap: nowrap;
    }

    .hint-row__keys {
      flex: 0 0 160px;
      max-width: 210px;
      display: flex;
      flex-wrap: nowrap;
      gap: 6px;
      white-space: normal;
      word-break: break-word;
    }

    .hint-row__text {
      flex: 1 1 220px;
      min-width: 180px;
      white-space: normal;
      word-break: break-word;
      font-size: 1.05em;
    }

    .hint-notice {
      background: #f4f6ff;
      border-radius: 6px;
      padding: 12px 15px;
      font-size: 0.9em;
    }

    .hint-notice ul {
      margin: 8px 0 0;
      padding-left: 18px;
    }

    .hint-conclusion {
      margin: 0;
      font-size: .95em;
    }

    @media (min-width: 680px) {
      .accessibility-hints {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1.15rem;
      }

      .hint-conclusion {
        grid-column: 1 / -1;
        margin-top: 4px;
      }
    }

    @media (min-width: 680px) {
      .hint-section {
        min-height: 100%;
      }
    }

    @media (max-width: 600px) {
      .hint-row {
        flex-direction: column;
        gap: 0.4rem;
      }

      .hint-row__keys,
      .hint-row__text {
        flex: 1 1 auto;
        max-width: 100%;
      }
    }

    .modal-footer button {
      background-color: rgba(46, 130, 210, 0.98);
      color: white;
      border: none;
      padding: 8px 16px;
      font-size: 1rem;
      border-radius: 4px;
      cursor: pointer;
      transition: background-color 0.3s ease, transform 0.3s ease;
    }

    .modal-footer button:hover {
      background-color: rgba(46, 130, 210, 0.98);
      transform: scale(1.1);
    }

    @media screen and (max-width: 500px) {
      .mobile-only {
        display: block;
      }
    }

    @media screen and (min-width: 501px) {
      .mobile-only {
        display: none;
      }
    }

    body.hide-images img:not(#accessibility-icon img):not(#logo),
    body.hide-images picture {
      visibility: hidden !important;
    }

    .alt-replacement {
      position: absolute;
      left: 0px;
      top: 40%;
      max-width: 100%;
      max-height: 141px;
      overflow: hidden;
      font-size: 15px;
      line-height: 1.5;
      text-align: center;
      width: 100%;
    }

    body.high-contrast {
      background-color: #000 !important;
      color: #fff !important;
    }

    body.high-contrast a {
      color: #0ff !important;
      text-decoration: underline !important;
    }

    body.high-contrast .accessibility-modal,
    body.high-contrast .modal-content {
      background-color: #000 !important;
      color: #fff !important;
      border: 2px solid #fff !important;
    }

    body.high-contrast .modal-footer button {
      background-color: #fff !important;
      color: #000 !important;
    }

    body.high-contrast .speaking-highlight {
      outline: 5px solid #007bfffa !important;
    }

    /* Modal-Ausführung bei kleinen Geräten unten ausrichten */
    @media screen and (max-height: 910px) and (max-width: 600px) {
      #accessibility-modal {
        align-items: flex-end;
      }

      .modal-content {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        width: 100%;
        max-width: none;
        border-radius: 12px 12px 0 0;
      }
    }

    #dam-touch-speech-bar {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(30, 100, 176, 0.98);
      color: #fff;
      z-index: 9998;
      padding: 12px calc(16px + env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-right));
      box-shadow: 0 -4px 12px rgba(30, 100, 176, 0.3);
      transform: translateY(100%);
      transition: transform 0.3s ease, opacity 0.3s ease;
      opacity: 0;
      pointer-events: none;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    #dam-touch-speech-bar[data-visible="true"] {
      transform: translateY(0);
      opacity: 1;
      pointer-events: auto;
    }

    .dam-touch-speech-bar__header {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
    }

    @media (max-width: 400px) {
      .dam-touch-speech-bar__hint {
        letter-spacing: -0.5px;
      }
    }

    .dam-touch-speech-bar__hint {
      font-size: 1.2em;
      font-weight: 600;
      margin: 0;
      color: #ffffff;
      margin-bottom: 0.5em;
    }

    .dam-touch-speech-bar__hint[hidden] {
      display: none;
    }

    .dam-touch-speech-bar__actions {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      justify-content: center;
      /* nachträglich */
    }

    @media (min-width: 768px) {
      .dam-touch-speech-bar__button {
        padding-left: 15px;
      }
    }

    .dam-touch-speech-bar__button {
      flex: 1 1 calc(50% - 8px);
      min-width: var(--speech-btn-width);
      max-width: 200px;
      /* nachträglich */
      background: #ffffff;
      color: #112240;
      border: 2px solid transparent;
      border-radius: 999px;
      padding: 10px 30px 10px 1px;
      font-size: 15px;
      font-weight: 600;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
      position: relative;
    }

    .dam-touch-speech-bar__button--active {
      background: #f9e9e8;
      ;
      border-color: #ffffff;
    }

    @media (max-width: 400px) {
      .dam-touch-speech-bar__button-label {
        padding-left: 15px;
      }
    }

    @media (min-width: 401px) {
      .dam-touch-speech-bar__button {}

      .dam-touch-speech-bar__button-label {
        letter-spacing: inherit;
        position: relative;
        right: 10px;
      }
    }

    .dam-touch-speech-bar__button-label {
        flex: 1 1 auto;
        text-align: center;
        white-space: nowrap;
        letter-spacing: -.5px;
        font-size: 1.2em;
        position: relative;
        /* right: -20px; */
        padding-left: 25px;
        overflow: hidden;
        padding-right: 0px;
        text-overflow: ellipsis;
        min-width: 160px;
    }

    .dam-touch-speech-bar__button-icon {
      width: 38px;
      height: 38px;
      object-fit: contain;
      position: absolute;
      right: 2px;
      top: 50%;
      transform: translateY(-50%);
    }

    .dam-touch-speech-bar__button:hover,
    .dam-touch-speech-bar__button:focus {
      border-color: #ffffff;
      outline: none;
    }

    .dam-touch-speech-bar__button--stop {
      background: #f44336;
      color: #ffffff;
      display: none;
    }

    .dam-touch-speech-bar__button--stop:hover,
    .dam-touch-speech-bar__button--stop:focus {
      background: #d32f2f;
    }

    .dam-touch-speech-button img {
      width: 48px;
      height: 48px;
      max-width: inherit;
    }

    button.dam-touch-speech-bar__button:not(:nth-child(n+2)) {
      /* nachträglich */
      /*display: none;*/
    }

    .touch-hint {
      position: fixed;
      top: 75%;
      left: 50%;
      transform: translate(-50%, -50%);
      z-index: 9999;
      display: flex;
      justify-content: center;
      align-items: center;
      pointer-events: none;
      /* nicht klickbar */
    }

    .touch-circle {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      background: rgba(0, 123, 255, 0.4);
      /* blauer Kreis */
      animation: touchPulse 0.8s ease-out forwards;
    }

    @keyframes touchPulse {
      0% {
        transform: scale(0.5);
        opacity: 0.8;
      }

      70% {
        transform: scale(1.3);
        opacity: 0.3;
      }

      100% {
        transform: scale(1.5);
        opacity: 0;
      }
    }

    .hidden {
      display: none;
    }

    .speaking-highlight {
      outline: 2px solid #007bff30;
      background-color: rgba(0, 123, 255, 0.08);
      transition: background-color 0.3s ease, outline 0.3s ease;
    }
    /* === Fontsize Popup === */
.fontsize-popup {
  position: absolute;
  bottom: 70px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  display: flex;
  gap: 8px;
  padding: 6px 10px;
  z-index: 9999;
  animation: popupFadeIn 0.15s ease-out forwards;
  transform-origin: bottom center;
}

.fontsize-popup {
  transition: opacity 0.4s ease, transform 0.4s ease;
  opacity: 1;
}

.fontsize-popup.closing {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}

.fontsize-popup button {
  background: none;
  border: 2px solid #3284d3;
  color: #3284d3;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fontsize-popup button:hover,
.fontsize-popup button:focus,
.fontsize-popup button.active {
  background: #3284d3;
  color: #fff;
  outline: none;
}

.fontsize-popup button[data-size="small"] { font-size: 0.9rem; min-width: 50px; }
.fontsize-popup button[data-size="normal"] { font-size: 1rem; min-width: 50px; }
.fontsize-popup button[data-size="large"] { font-size: 1.2rem; min-width: 50px; }

@keyframes popupFadeIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes popupFadeOut {
  from { opacity: 1; transform: scale(1) translateY(0); }
  to   { opacity: 0; transform: scale(0.95) translateY(10px); }
}



