.footer-main {
  background: #f0f0f0;
  color: var(--text-color);
  padding: 2rem 1rem;
  font-size: 0.95rem;
  position: relative;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.footer-col {
  flex: 1 1 280px;
  min-width: 200px;
  text-align: left;
}

.footer-col a {
  color: var(--accent-color);
  text-decoration: none;
}

.footer-col h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.footer-search {
  position: relative;
  margin-top: 1rem;
  max-width: 260px;
}

.footer-search input {
  box-sizing: border-box;
  width: 100%;
  padding: 0.6rem 3rem 0.6rem 0.8rem;  /* rechter Puffer für größeren Button */
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
  outline: none;
  min-height: 48px;  /* wichtige Touchgröße */
}

.footer-search button {
  position: absolute;
  top: 50%;
  right: 0.4rem;
  transform: translateY(-50%);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  min-width: 48px;
  min-height: 48px;
}

.footer-search button img {
  height: 20px;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.footer-search button:hover img {
  opacity: 1;
}

.footer-col.social {
  padding-top: 0.5rem;
  align-self: flex-start;
  margin-left: 10px;
}

.footer-col.social a img {
  height: 24px;
  margin-right: 20px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #ddd;
  padding-top: 1rem;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--accent-color);
  text-decoration: none;
}

.social-icon {
  width: 30px;
  height: 30px;
  fill: #229954;
  margin-right: 10px;
  transition: fill 0.3s;
}

.social-icon:hover {
  fill: #1a7e43;
}

.footer-col.social a:focus-visible {
  outline: 2px solid #229954;
  outline-offset: 4px;
  border-radius: 6px;
  display: inline-block;
}

.footer-col.social a {
  display: inline-block;
  margin-right: 10px;
}

.back-to-top {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #6bc44a;
  color: white;
  padding: 9px 10.5px;
  text-decoration: none;
  border-radius: 6px;
  font-size: 1.2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 999;
}

.back-to-top.show {
  display: block;
}

.back-to-top:hover {
  color: white;
  background: #52af2f;
  text-decoration: none;
}

.accessibility-button {
  position: fixed;
  bottom: 70px;
  right: 20px;
  background-color: #a3d2f2;
  color: white;
  font-size: 1.2rem;
  width: 40px;
  height: 41px;
  line-height: 44px;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  z-index: 1100;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border: none;
  outline: none;
}

.accessibility-button:hover,
.accessibility-button:focus {
  background-color: #72aee6;
  outline: none;
  text-decoration: none;
}

.accessibility-button svg {
  fill: white;
  pointer-events: none;
}

#accessibility-options,
#slider-description {
    margin-top: 0.5rem;
}

.footer-links {
  margin-bottom: 0.1rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.footer-meta {
  margin-top: 0.1rem;
  font-size: 0.9rem;
  color: #666;
}

#accessibility-options {
  margin-top: 1.5rem;
  padding: 0.7em 1.1em;
  background: #f6fafd;
  color: #229954;
  border-radius: 0.7em 0.7em 0.7em 0.7em;
  font-size: 1.02rem;
  font-weight: 500;
  min-height: 2em;
  box-shadow: 0 1px 4px rgba(34,153,84,0.07);
  transition: background 0.3s, color 0.3s;
}

#slider-description {
  margin-top: 1.5rem;
  padding: 0.7em 1.1em;
  background: #f6fafd;
  color: #229954;
  border-radius: 0.7em 0.7em 0.7em 0.7em;
  font-size: 1.02rem;
  font-weight: 500;
  min-height: 2em;
  box-shadow: 0 1px 4px rgba(34,153,84,0.07);
  transition: background 0.3s, color 0.3s;
}

.rss-box {
  margin-top: 0.1rem;
}

.rss-box a {
  display: inline-block;
  padding: 0.5em 1em;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

.rss-box i {
  margin-right: 6px;
}

.noscript-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.noscript-box {
  background: #fff;
  padding: 2em;
  max-width: 500px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  font-family: sans-serif;
}

.noscript-box h2 {
  margin-top: 0;
  color: #c00;
}


@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
  }

  .footer-col {
    flex: 1 1 100%;
    min-width: unset;
  }

  .footer-col.social {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    padding-top: 0;
    margin-top: 1rem;
    margin-left: 0px;
  }

  .back-to-top {
    padding: 9px 10.5px;
  }

  .noscript-box {
    padding: 1rem;
    font-size: 0.95rem;
    width: 90%;
  }

}

.main-nav ul li.has-submenu > .submenu.open,
.main-nav ul li.has-submenu > ul.submenu.open {
  display: block !important;
}