@charset "utf-8";

:root {
  --shelter-accent: #2e5902;
}

/* Shared foundations */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
html {
  scroll-behavior: smooth;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: white;
}
.desktop-layout {
  font-family: 'Menco', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}
a {
  font-family: "menco", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 1.25vw;
}
.footer-separator {
  font-family: "menco", sans-serif;
  font-size: 1.25vw;
  font-style: normal;
  font-weight: 500;
}
header img {
  max-height: 100px;
}
.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
  background-color: white;
  padding: 1rem 2rem;
  margin: 0;
}

/* Desktop navigation */
.main-nav ul ul {
  display: none;
  position: absolute;
}
.main-nav li :is(a, button) {
  text-decoration: none;
  color: var(--shelter-accent);
  font-weight: bold;
  font-size: 1rem;
  transition: color 0.3s ease;
  position: relative;
}
button {
  font: inherit;
  color: inherit;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.changing-image > button,
.mobile-help-action > button {
  position: absolute;
  inset: 0;
  width: 44px;
  height: 44px;
}
.main-nav button {
  line-height: inherit;
  text-align: left;
}
:is(a, button):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.dropdown {
  position: relative;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--shelter-accent);
  color: white;
  padding: 0.5rem 0;
  min-width: 150px;
  z-index: 1000;
  flex-direction: column;
}
.dropdown-menu :is(a, button) {
  color: inherit;
}
.dropdown.is-open > .dropdown-menu {
  display: block;
  background-color: var(--shelter-accent);
}
.dropdown.is-open > .dropdown-menu > li > :is(a, button) {
  color: white;
}
.dropdown-menu li {
  width: 100%;
}
.dropdown-menu :is(a, button) {
  display: block;
  padding: 0.5rem 1rem;
  color: white;
  width: 100%;
}
.dropdown-menu li :is(a, button):is(:hover, :focus-visible) {
  background-color: white !important;
  color: var(--shelter-accent) !important;
}
.dropdown-sub {
  position: relative;
}
.dropdown-submenu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background-color: #3c401e;
  color: white;
  min-width: 180px;
  z-index: 1001;
  padding: 0;
}
.dropdown-submenu :is(a, button) {
  color: inherit;
}
.dropdown-sub.is-open > .dropdown-submenu {
  display: block;
  background-color: #3c401e;
}
.dropdown-submenu :is(a, button) {
  display: block;
  padding: 0.5rem 1rem;
  color: white;
  text-decoration: none;
  width: 100%;
  background-color: #3c401e;
}
.dropdown-submenu :is(a, button):is(:hover, :focus-visible) {
  background-color: white !important;
  color: #3c401e !important;
}
.main-nav li :is(a, button):hover {
  color: #000000;
}
.nav-separator {
  border: none;
  height: 2px;
  background-color: var(--shelter-accent);
  margin: 0 0 1rem 0;
  width: 100%;
}
.tierheim {
  font-family: "menco", sans-serif;
  font-weight: 500;
  font-style: normal;
  color: var(--shelter-accent);
  font-size: 2em;
  margin: 0 0 3rem 44px;
}
.hero img {
  width: 100%;
  height: auto;
  margin: 12px 0 0 0;
}
.aktuelles, .unsere-tiere {
  padding: 2rem;
}
.info-grid {
  display: grid;
  grid-template-columns: 166fr 349fr 169fr 389fr 127fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
  padding: 2rem 0;
}
.title {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  font-family: "amatic-sc", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--shelter-accent);
}
.text:nth-of-type(1) {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}
.text:nth-of-type(2) {
  grid-column: 4 / 5;
  grid-row: 2 / 3;
}
.text {
  font-family: "menco", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}
.aktuelles {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2rem;
  background: rgba(191, 129, 75, 0.6);
  gap: 2rem;
  flex-wrap: wrap;
}
.aktuelles-text {
  flex: 2;
}
.aktuelles-bild {
  flex: 1;
  text-align: right;
}
.aktuelles-bild img {
  max-width: 100%;
  width: 400px;
  height: auto;
  border-radius: 8px;
}
.help-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  background-color: rgba(191, 129, 75, 0.6);
}
.help-logo {
  height: 60px;
}
.arrow-icon {
  width: 48px;
  height: 48px;
}
.changing-image {
  position: relative;
  width: 48px;
  height: 48px;
}
.changing-image img {
  position: absolute;
  top: 0;
  left: 0;
  transition: all 0.5s ease;
}
.action-icon-hover {
  opacity: 0;
}
.changing-image:hover .action-icon-hover {
  opacity: 1;
}
.changing-image:hover .action-icon-default {
  opacity: 0;
}
.section-separator {
  border: none;
  height: 2px;
  background-color: #8c5535;
  width: 100%;
}
.unsere-tiere {
  background: rgba(191, 129, 75, 0.6);
  text-align: center;
  position: relative;
  padding: 4rem 2rem;
  overflow: hidden;
}
.gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: nowrap;
  margin-top: 1rem;
}
.main-img {
  width: clamp(100px, 30vw, 500px);
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}
.side-img {
  width: clamp(100px, 20vw, 300px);
  max-width: 300px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}
.pfoten {
  width: clamp(40px, 5vw, 80px);
  height: auto;
  opacity: 0.9;
}
@media (max-width: 850px) {
  .gallery {
    flex-direction: column;
    align-items: center;
  }
}
footer {
  background: #402318;
  color: #bf814b;
  padding: 2rem;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

/* Desktop footer */
.footer-col {
  flex: 1;
  min-width: 200px;
  margin: 1rem;
}
h2 {
  font-family: "amatic-sc", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: var(--shelter-accent);
  font-size: 2em;
}
p {
  font-family: "menco", sans-serif;
  font-weight: 500;
  font-style: normal;
  text-align: left;
}
@media (min-width: 1250px) {
  p {
    font-size: 1rem;
  }
}
@media (max-width: 1249px) and (min-width: 851px) {
  p {
    font-size: 1.75vw;
  }
}
@media (max-width: 850px) {
  p {
    font-size: 10pt;
  }
}
h4 {
  font-family: "menco", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 2em;
}
.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr;
  gap: 2rem;
  color: #D8A05B;
  padding: 2rem;
  font-family: "menco", sans-serif;
  align-items: start;
}
.footer-logo img {
  width: 100px;
  height: auto;
}
.footer-col h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.footer-col p {
  font-size: 1rem;
  line-height: 1.5;
  max-width: 300px;
}
.social-icons {
  display: flex;
  gap: 1rem;
  margin: 0.5rem 0;
}
.social-icons img {
  width: 100px;
  height: 50px;
}
.social-extra {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
.social-extra img {
  width: 50px;
  height: 50px;
}
.footer-bottom {
  width: 100%;
  grid-column: 1 / -1;
  text-align: left;
  font-size: 0.9rem;
  margin-top: 2rem;
}
.footer-bottom :is(a, button) {
  color: #D8A05B;
  text-decoration: none;
  margin-right: 1rem;
}
.footer-bottom :is(a, button):hover {
  text-decoration: underline;
}
.desktop-layout {
  display: block;
}
.mobile-layout {
  display: none;
}

/* Switch between the dedicated desktop and mobile compositions. */
@media (max-width: 850px) {
  .desktop-layout {
    display: none;
  }
  .mobile-layout {
    display: block;
  }
}

/* Mobile navigation and page composition */
@media screen and (max-width: 850px) {
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background: white;
  }
  header img {
    max-height: 50px;
  }
  .mobile-layout {
    font-family: 'Menco', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    position: relative;
    width: 100%;
  }
  .mobile-menu-toggle {
    display: block;
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    position: absolute;
    top: 7px;
    right: 10px;
    z-index: 20;
    padding: 10px;
  }
  .mobile-menu-toggle img {
    max-width: 50px;
    width: 100%;
    height: auto;
    cursor: pointer;
  }
  .mobile-menu.is-open {
    display: flex;
  }
  .mobile-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    width: 100%;
    height: 250px;
    background-color: #2d4e1d;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    z-index: 15;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
  }
  .mobile-menu-label {
    display: block;
    appearance: none;
    border: 0;
    color: inherit;
    font: inherit;
    width: 80vw;
    max-width: 500px;
    margin: 6px auto;
    padding: 14px 20px;
    background-color: transparent;
    text-align: center;
    color: white;
    font-size: 18px;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
    text-decoration: none;
  }
  .mobile-menu > .mobile-menu-item {
    flex-shrink: 0;
  }
  .mobile-menu-label:hover {
    background-color: #d2b49c;
    color: white;
    transform: scale(1.02);
  }
  .mobile-submenu {
    display: none;
    flex-direction: column;
    padding-left: 0;
    gap: 5px;
  }
  .mobile-menu-item.is-open > .mobile-submenu {
    display: flex;
  }
  .mobile-submenu > :is(a, button:not(.mobile-menu-label)) {
    display: block;
    font-size: 15px;
    background-color: #3c401e;
    padding: 10px;
    width: 70vw;
    max-width: 450px;
    margin: 2px auto;
    text-align: center;
    border-radius: 4px;
    color: white;
    text-decoration: none;
  }
  .mobile-submenu > :is(a, button):hover {
    background-color: white;
    color: #2d4e1d;
  }
  .mobile-submenu > :is(a, button:not(.mobile-menu-label)) {
    font-size: 14px;
  }
}

/* A note is shown only when an unfinished concept action is requested. It
   replaces unrelated third-party destinations without inventing real offers. */
.concept-dialog {
  width: min(560px, calc(100% - 40px));
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 52px 24px 28px;
  border: 1px solid var(--shelter-accent);
  border-radius: 8px;
  background: #fff;
  color: #1a1a1a;
  font-family: "menco", sans-serif;
  overflow: auto;
}
.concept-dialog::backdrop {
  background: #0008;
}
.concept-dialog h2 {
  margin: 0 0 16px;
}
.concept-dialog p {
  font-size: 16px;
  line-height: 1.5;
}
.concept-dialog-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  font-size: 28px;
  color: var(--shelter-accent);
}
.mobile-hero img {
  width: 100%;
  height: 100%;
  margin: 5px 0 0 0;
}
.mobile-info-grid {
  display: grid;
  grid-template-columns: 50fr 323.75fr 25fr;
  grid-template-rows: auto auto;
  gap: 0.25rem;
  padding: 1rem 0 2rem 0;
}
.mobile-info-title {
  grid-column: 2;
  grid-row: 1;
  font-family: "amatic-sc", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--shelter-accent);
  text-align: center;
  justify-self: center;
  align-self: center;
}
.mobile-info-grid p {
  font-size: 8.5px;
}
@media (max-width: 850px) {
  .mobile-info-copy {
    grid-column: 2;
    grid-row: 2;
    font-family: "menco", sans-serif;
    font-size: 10px !important;
    font-weight: 300;
    font-style: normal;
    line-height: 1.5;
    color: #1a1a1a;
    max-width: 100%;
    margin: -15px auto;
    text-align: center;
  }
  h2 {
    font-size: 1.25rem !important;
  }
  .animal-slider {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(191, 129, 75, 0.6);
    padding: 1rem;
    position: relative;
  }
  .animal-slider-track {
    position: relative;
    width: 60vw;
    max-width: 500px;
  }
  .animal-slide {
    display: none;
  }
  .animal-slide img {
    width: 100%;
    border-radius: 10px;
    align-items: center;
    text-align: center;
    justify-self: center;
    align-self: center;
    object-fit: cover;
  }
  .animal-slide.is-active {
    display: block;
  }
  @media (min-width: 650px) {
    .animal-slider-controls {
      position: relative;
      width: 100%;
      max-width: 500px;
      display: flex;
      justify-content: space-between;
      margin-top: 1rem;
      pointer-events: none;
    }
    .animal-slider-arrow {
      display: block;
      appearance: none;
      border: 0;
      padding: 0;
      background: transparent;
      color: inherit;
      font: inherit;
      pointer-events: auto;
      cursor: pointer;
    }
    .animal-slider-arrow img {
      width: clamp(24px, 5vw, 48px);
      height: auto;
      transition: 0.3s ease;
    }
    .animal-slider-arrow.prev img:hover {
      content: url("../assets/icons/button hover links.svg");
    }
    .animal-slider-arrow.next img:hover {
      content: url("../assets/icons/button hover.svg");
    }
    h2 {
      font-family: "amatic-sc", sans-serif;
      font-size: 2em;
      color: var(--shelter-accent);
      margin-bottom: 1rem;
    }
  }
}
@media (max-width: 650px) {
  .animal-slider-controls {
    position: absolute;
    top: 50%;
    width: 90vw;
    max-width: 500px;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
  }
  .animal-slider-arrow {
    display: block;
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    pointer-events: auto;
    cursor: pointer;
  }
  .animal-slider-arrow img {
    width: 40px;
    height: 40px;
    transition: 0.3s ease;
  }
  .animal-slider-arrow.prev img:hover {
    content: url("../assets/icons/button hover links.svg");
  }
  .animal-slider-arrow.next img:hover {
    content: url("../assets/icons/button hover.svg");
  }
  h2 {
    font-family: "amatic-sc", sans-serif;
    font-size: 2em;
    color: var(--shelter-accent);
    margin-bottom: 1rem;
  }
}
@media (max-width: 850px) {
  .mobile-news {
    display: grid;
    grid-template-columns: 10fr 300fr 10fr;
    grid-template-rows: auto auto;
    gap: 0rem;
    padding: 1rem 0 2rem 0;
    background-color: rgba(191, 129, 75, 0.6);
    text-align: center;
  }
  .mobile-news-title {
    grid-column: 2;
    grid-row: 1;
    font-family: "amatic-sc", sans-serif;
    font-size: 2em;
    color: var(--shelter-accent);
    justify-self: center;
  }
  .mobile-news-copy {
    grid-column: 2;
    grid-row: 2;
    font-family: "menco", sans-serif;
    font-size: 8.5px;
    font-weight: 300;
    font-style: normal;
    line-height: 1.5;
    color: #000000;
    margin: -15px auto;
    max-width: 100%;
    text-align: center;
  }
  .mobile-news-media {
    grid-column: 2;
    grid-row: 3;
    justify-self: center;
    margin-top: 1.5rem;
  }
  .mobile-news-media img {
    width: clamp(150px, 60vw, 61vw);
    max-width: 60vw;
    border-radius: 8px;
    object-fit: cover;
  }
  .mobile-news p {
    font-size: 8.5px;
  }
  .mobile-news h2 {
    font-weight: bold;
  }
}
@media (max-width: 850px) {
  .mobile-brand-name {
    font-family: "menco", sans-serif;
    font-weight: 500;
    font-style: normal;
    color: var(--shelter-accent);
    font-size: 1.25em;
    margin: 0 0 1rem 25px;
  }
  .mobile-nav-separator {
    border: none;
    height: 2px;
    background-color: var(--shelter-accent);
    margin: 0 0 0.5rem 0;
    width: 100%;
  }
  .mobile-help-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background-color: rgba(191, 129, 75, 0.6);
  }
  .mobile-help-logo {
    height: 60px;
  }
  .mobile-action-icon {
    width: 40px;
    height: 40px;
  }
  .mobile-help-copy p {
    font-family: "menco", sans-serif;
    font-size: 15px;
    font-weight: 300;
    font-style: normal;
    line-height: 1.5;
  }
  .mobile-help-title h2 {
    font-size: 23px !important;
    font-weight: bold;
  }
  .mobile-help-action {
    position: relative;
    width: 30px;
    height: 30px;
  }
  .mobile-help-action img {
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.5s ease;
  }
  .mobile-action-icon-hover {
    opacity: 0;
  }
  .mobile-help-action:hover .mobile-action-icon-hover {
    opacity: 1;
  }
  .mobile-help-action:hover .mobile-action-icon-default {
    opacity: 0;
  }
}
@media (max-width: 850px) and (min-width: 400px) {
  .mobile-footer {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    grid-template-areas:
      "logo info social"
      "logo info tierschutz"
      "bottom bottom bottom";
    gap: 2rem;
    background-color: rgba(64,35,24,1);
    color: #D8A05B;
    padding: 2rem;
    font-family: sans-serif;
    align-items: start;
  }
  .mobile-footer-logo {
    grid-area: logo;
  }
  .mobile-footer-logo img {
    width: 100px;
    height: auto;
  }
  .mobile-footer-info {
    grid-area: info;
  }
  .mobile-footer-info h4 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
  }
  .mobile-footer-info p {
    font-size: 0.5rem;
    line-height: 1.4;
    max-width: 250px;
    margin-bottom: 1rem;
  }
  .mobile-footer-social {
    grid-area: social;
  }
  .mobile-footer-social h4 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
  }
  .mobile-social-icons {
    display: flex;
    margin-top: 1rem;
    margin-right: 1rem;
  }
  .mobile-social-icons img {
    width: 75px;
    height: 75px;
    margin-right: -2rem;
  }
  .mobile-footer-affiliation {
    grid-area: tierschutz;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }
  .mobile-footer-affiliation img {
    width: 50px;
    height: auto;
  }
  .mobile-footer-affiliation span {
    font-size: 1rem;
    font-family: "menco", sans-serif;
    font-weight: 700;
    font-style: normal;
    line-height: 1.5;
    color: white;
  }
  .mobile-footer-links {
    grid-area: bottom;
    text-align: left;
    font-weight: 100;
    font-size: 5rem;
    margin-top: 2rem;
  }
  .mobile-footer-links a,
  .mobile-footer-links .footer-separator {
    color: #D8A05B;
    text-decoration: none;
    margin-right: 1rem;
  }
  .mobile-footer-links .footer-separator {
    font-family: "menco", sans-serif;
    font-size: 1.25vw;
    font-style: normal;
    font-weight: 500;
  }
  .mobile-footer-links a:hover {
    text-decoration: underline;
  }
  .mobile-footer-logo, .mobile-footer-info, .mobile-footer-social, .mobile-footer-affiliation, .mobile-footer-links {
    justify-self: center;
  }
  .mobile-footer-info p, .mobile-footer-social h4, .mobile-footer-info h4, .mobile-footer-affiliation span {
    text-align: left;
  }
  .mobile-footer-affiliation {
    flex-direction: column;
    align-items: center;
    margin-top: 0.5rem;
  }
  .mobile-social-icons {
    justify-content: center;
  }
  .mobile-social-icons img {
    width: 40px;
    height: 40px;
    gap: 40px;
  }
  .mobile-social-icons :is(a, button) {
    width: 40px;
    height: 40px;
    gap: 40px;
  }
  .mobile-footer-links {
    font-size: 0.7rem;
    margin-top: 1rem;
  }
}
@media (max-width: 400px) {
  .mobile-footer-logo {
    grid-area: logo;
    justify-self: center;
  }

  .mobile-footer-logo img {
    width: 60px;
    height: auto;
  }
  .mobile-footer-info h4, .mobile-footer-social h4 {
    font-size: clamp(0.9rem, 4vw, 1.2rem);
  }
  .mobile-footer-info p, .mobile-footer-affiliation span {
    font-size: clamp(0.6rem, 3.5vw, 0.9rem);
    text-align: left;
  }
  .mobile-social-icons img {
    width: 32px;
    height: 32px;
  }
  .mobile-footer-affiliation img {
    width: 36px;
    height: auto;
  }
  .mobile-footer-affiliation span {
    font-size: 1rem;
    font-family: "menco", sans-serif;
    font-weight: 700;
    font-style: normal;
    line-height: 1.5;
    color: white;
  }
  .mobile-footer-links {
    font-size: 0.65rem;
    text-align: left;
    padding-top: 1rem;
  }
  .mobile-footer-links a,
  .mobile-footer-links .footer-separator {
    color: #D8A05B;
  }
}

@media (max-width: 850px) {
  /* Do not let the global 1.25vw link size override the authored footer type.
     Its existing line box is already tall enough for this inherited size. */
  .mobile-footer-links :is(a, button, .footer-separator) {
    font-size: inherit;
    line-height: inherit;
  }
  .mobile-footer-links :is(a, button) {
    position: relative;
    display: inline-block;
  }
  .mobile-footer-links :is(a, button)::before {
    content: "";
    position: absolute;
    inset: -14px 0;
  }
  .mobile-footer-links button {
    color: #D8A05B;
  }
  /* The replacement copy keeps the same eight/four lines at the measured
     12.75px line height, so enlarging it does not move the project images. */
  .mobile-info-grid p,
  .mobile-news p {
    font-size: 10px;
    line-height: 1.275;
  }
}

@media (max-width: 399px) {
  /* Keep the original two-column contact row when the replacement copy is
     shorter; social icons must not jump up beside the contact information. */
  .mobile-footer-info {
    width: 52vw;
  }
}
