@charset "utf-8";
/*####################################################TABLET#####################################*/
@media (min-width: 709px) and (max-width: 1032px) {
  .hero_glass {
    width: 60%;
  }
  #navi {
    padding: 6px 0;
  }
  #navi ul {
    gap: 18px;
    padding: 12px 8px;
  }
  .navlink {
    padding: 4px 2px 12px;
    font-size: .85rem;
    letter-spacing: .07em;
  }
  .navlink::after {
    left: -12px;
    right: -12px;
    height: 2.8em;
  }
  .vita {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
    gap: 60px;
    padding: 9%;
  }
  .vita_image {
    position: sticky;
    top: 120px;
    align-self: start;
  }
  /*###########################Galerie############################*/
  .gallery {
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;
    padding-bottom: 10%;
  }
  .gallery2 {
    width: 80%;
    max-width: 1600px;
  }
  .gallery .artwork, .gallery2 .artwork {
    position: relative;
    overflow: visible;
  }
  .gallery .caption, .gallery2 .caption {
    display: inline-block;
    width: auto;
    max-width: 100%;
    height: auto;
    min-height: 0;
    white-space: normal;
    overflow-wrap: break-word;
    position: absolute;
    left: auto;
    right: -1px;
    bottom: -3px;
    padding: 6px 14px;
    font-size: 1rem;
    line-height: 1.2;
    text-align: center;
    color: rgba(0, 0, 0, .92);
    background: rgba(195, 232, 232, .18);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .10);
    opacity: .95;
    overflow: visible;
  }
  .item {
    position: relative;
    overflow: visible;
  }
  .gallery2 > * {
    overflow: visible;
  }
  .gallery2 .caption.wide {
    max-width: 100%;
  }
  .gallery2 .caption.wide strong {
    text-align: center;
  }
  /*######################Partnergalerien#####################*/
  .partner-door {
    width: 100%;
    height: 180px;
  }
  .partner-name {
    width: 100%;
    height: 75px;
  }
  #overlay {
    padding: 12px;
  }
  #grossesBild {
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    border-radius: 12px;
  }
  /*########################Ferienwohnung#####################*/
  .bilder {
    grid-template-columns: repeat(3, 1fr);
  }
  .bilder img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
  }
  .bilder img:nth-last-child(2) {
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }
  /*########################Videos##########################*/
  .videos {
    width: 90%;
    gap: 15px;
    margin: 0 auto;
    padding:10% 0 15% 0;
  }
  .video video {
    height: 240px;
  }
  .video::after {
    width: 55px;
    height: 55px;
    font-size: 28px;
  }
  .danke {
    width: 100%;
  }
  /*####################Footer################################*/
  footer {
    background-size: 300% auto;
    background-position: center top;
  }
  .footer-container {
    width: 90%;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .copyright {
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    padding: 2% 0 0 0;
    text-align: center;
  }
}

/*####################################################MOBILE############################################*/
@media (max-width: 708px) {
  .cover {
    height: 450px;
  }
  .cover h1 {
    letter-spacing: .2em;
  }
  .cover p {
    font-size: 1.2rem;
  }
  .hero_glass {
    width: 90%;
  }
  .hero_subline {
    font-size: .65rem;
    letter-spacing: .22em;
  }
  .hero_glass h1 {
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1.1;
  }
  /*######################Navigation###########################*/
  #navi ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
  }
  .navlink {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 28px;
  }
  #navi li:nth-child(1) .navlink {
    background-image: url(img/home.svg);
  }
  #navi li:nth-child(2) .navlink {
    background-image: url(img/news.svg);
  }
  #navi li:nth-child(3) .navlink {
    background-image: url(img/person.svg);
  }
  #navi li:nth-child(4) .navlink {
    background-image: url(img/palette.svg);
  }
  #navi li:nth-child(5) .navlink {
    background-image: url(img/daumen.svg);
  }
  #navi li:nth-child(6) .navlink {
    background-image: url(img/fewo.svg);
  }
  #navi li:nth-child(7) .navlink {
    background-image: url(img/contact.svg);
  }
  .navlink::before, .navlink::after {
    display: none;
  }
  /*##########################Vita##############################*/
  .vita {
    grid-template-columns: 1fr;
    padding: 15%;
    gap: 20px;
  }
  .vita_image img {
    height: auto;
  }
  .vita-text h2 {
    font-size: 3rem;
  }
  /*###########################Galerie########################*/
  .gallery {
    display: block;
    padding: 2% 20px;
  }
  .artwork {
    margin-bottom: 35px;
  }
  .artwork img {
    width: 100%;
    height: auto;
  }
  .caption {
    left: 0;
    bottom: 0;
    font-size: .9rem;
    line-height: 1.2;
    max-width: calc(100% - 24px);
    height: auto;
    border-radius: 0;
    opacity: 1;
    transform: none;
  }
  /*#########################Galerie 2#########################*/
  .gallery2 {
    max-width: 70%;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .gallery2 .top, .gallery2 .bottom {
    grid-column: 1 / -1;
  }
  /*############################Partnergalerien#########################*/
.partner {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 30px;
}
.partner-door {
  width: 80%;
  max-width: 300px;
}
  .partner-door:hover {
    transform: none;
  }
  .partner-door:hover .partner-name {
    color: #105b5b;
    text-shadow: none;
  }
  .partner-door:hover .door-btn {
    background: #0d9488;
    transform: none;
  }
  
  /*############################Videos#########################*/
  .videos {
    flex-direction: column;
    width: 100%;
    gap: 90px;
    margin: 30px auto;
    padding: 10%;
    align-items: stretch;
  }
  .video {
    width: 90%;
    margin: 0 auto;
  }
  .video video {
    width: 100%;
    height: auto;
    display: block;
  }
  .video::after {
    width: 55px;
    height: 55px;
    font-size: 28px;
  }
  /*############################Dankebereich##########################*/
  .dankebox {
    max-width: 95%;
  }
  .danke {
    padding: 10%;
  }
  .danketext {
    font-size: 2.3rem;
  }
  .dankebox p:not(.danketext):not(.signa) {
    font-size: 1.2rem;
    padding: 5%;
    line-height: 1.5;
  }
  .signa {
    padding: 0;
    font-family: "Cormorant Garamond", "Times New Roman", Times, serif;
    font-size: 2rem;
  }
  /*#####################Ferienwohnung########################*/
 .fewo h2 {
    font-size: 1.7rem;
  }
 .bilder {
    grid-template-columns: repeat(1, 1fr);
  }
  .bilder img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    pointer-events: none;
    cursor: default;
  }
.bilder img:nth-last-child(2) {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
  /*#####################Footer########################*/
  footer {
    background-size: 520% auto;
    background-position: 100% top;
  }
  .footer-container {
    grid-template-columns: 1fr;
    padding: 5% 0;
  }
  .footer-section {
    padding: 0;
    margin: 0;
    left: 20%;
  }
  .footer-section::before {
    display: none;
  }
}