/*!
Theme Name: Jatschka
Theme URI: http://able2create.com/
Author: a2v
Author URI: http://able2create.com
Description: Alles neu
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: jatschka
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  --h2-top-size: clamp(52px, 6vw, 90px);
  --h2-top-line: 1.2;
  --h2-mega-size: clamp(52px, 6vw, 110px);
  --h2-mega-line: 1.2;
  --h1-size: clamp(36px, 6vw, 80px);
  --h1-line: 1.2;
  --h2-size: clamp(24px, 6vw, 40px);
  --h2-line: 1.2;
  --h3-size: clamp(20px, 6vw, 25px);
  --h3-line: 1.4;
  --mainnav-font-size: clamp(2rem, 5vmin, 3.75rem);
  --mainnav-font-line: 1.4;
  --headline-infobox: clamp(22px, 6vw, 26px);
  --subline-infobox: clamp(18px, 6vw, 22px);
  --beige-bg: #f2efe6;
  --beige-bg-trans: rgba(242, 239, 230, 0.8);
  --dark-brown: #3b392f;
  --black: #000;
}

::-webkit-scrollbar {
  width: 14px;
}

::-webkit-scrollbar-track {
  background-color: var(--black);
  border-radius: 0;
}

::-webkit-scrollbar-thumb {
  background-color: var(--beige-bg);
  border: solid 3px var(--black);
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #e3e0d6;
}

/*--------------------------------------------------------------
# Fonts
--------------------------------------------------------------*/

@font-face {
  font-family: 'Aichel';
  src: url('fonts/aichel-regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Apercu Pro';
  src: url('fonts/ApercuPro.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Apercu Pro';
  src: url('fonts/ApercuPro-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Apercu Pro';
  src: url('fonts/ApercuPro-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/*--------------------------------------------------------------
# Reset
--------------------------------------------------------------*/

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

* {
  margin: 0;
  padding: 0;
  font: inherit;
}

html,
body {
  height: auto;
  overflow-x: hidden;
}

body {
  min-height: 100svh;
  font-family: 'Apercu Pro', sans-serif;
  font-weight: normal;
  font-size: 23px;
  line-height: 1.5;
  color: #111;
  background-color: var(--beige-bg);
}

img,
picture,
svg,
video,
figure {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0;
}

/*--------------------------------------------------------------
# Basics
--------------------------------------------------------------*/

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

::selection {
  background-color: #3B392F;
  color: #F2EFE6;
}

::-moz-selection {
  background-color: #3B392F;
  color: #F2EFE6;
}

.wp-block-table td,
.wp-block-table th {
  border: 0;
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/

p,
li,
blockquote,
input,
textarea {
  font-family: 'Apercu Pro', sans-serif;
}

h1,
h2,
h3,
h4 {
  font-family: 'Aichel', serif;
  font-weight: 400;
}

h1 {
  font-size: var(--h1-size);
  line-height: var(--h1-line);
  text-transform: uppercase;
  position: relative;
  padding-bottom: 30px;
  margin-bottom: 60px;
  text-align: center;
}

h1::before {
  content: '';
  display: inline-block;
  width: 74px;
  height: 8px;
  background-color: currentColor;
  mask: url('https://jatschka.com/media/2025/06/strich.svg') no-repeat center;
  mask-size: contain;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.mega-h2>h2 {
  font-size: var(--h2-mega-size);
  line-height: var(--h2-mega-line);
  text-transform: uppercase;
  position: relative;
  padding-bottom: 30px;
  margin-bottom: 60px;
  text-align: center;
}

.mega-h2 {
  font-size: var(--h2-mega-size);
  line-height: var(--h2-mega-line);
  text-transform: uppercase;
  position: relative;
  padding-bottom: 30px;
  margin-bottom: 60px;
  text-align: center;
}

h2 {
  font-size: var(--h2-size);
  line-height: var(--h2-line);
  text-transform: uppercase;
  position: relative;
  padding-bottom: 30px;
  margin-bottom: 60px;
}

h2::before {
  content: '';
  display: inline-block;
  width: 74px;
  height: 8px;
  background-color: currentColor;
  mask: url('https://jatschka.com/media/2025/06/strich.svg') no-repeat center;
  mask-size: contain;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

h2.start-top {
  font-size: var(--h2-top-size);
  line-height: var(--h2-top-line);
  text-transform: uppercase;
  position: relative;
  padding-bottom: 30px;
  margin-bottom: 60px;
}

h2.no-stripe,
.no-stripe h2 {
  margin-bottom: 20px;
}

h2.no-stripe::before,
.no-stripe h2::before {
  content: '';
  width: 0px;
  height: 0px;
}

.fullscreen-start-top {
  min-height: 100svh !important;
  height: 100dvh;
  max-height: 100lvh;
}

.post-carousel-startseite h2 {
  text-align: center;
  margin-bottom: 30px !important;
  margin-top: 15px !important;
  hyphens: auto;
  overflow-wrap: break-word;
  word-break: break-word;
}

.post-carousel-startseite img {
  max-width: 290px !important;
  height: auto !important;
  margin: auto;
}

h3 {
  font-size: var(--h3-size);
  line-height: var(--h3-line);
  text-transform: uppercase;
}

strong,
b {
  font-weight: 700;
}

a {
  color: #000;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wp-element-button {
  /* font-family: 'Aichel', serif; */
  font-size: 18px;
  padding: 6px 30px;
  text-transform: uppercase;
  transition: all .3s ease-in-out;
  border-radius: 25px !important;
}

.wp-element-button:hover {
  transform: scale(105%);
  text-decoration: none;
}

.float-container {
  position: fixed;
  top: 40%;
  right: 0;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 1;
}

.float-container>div {
  width: 53px;
  height: 53px;
  background: #111111;
  display: flex;
  justify-content: center;
  align-items: center;
}

.float-container>div a {
  display: block;
  transition: all .2s ease-in-out;
}

.float-container>div:hover a {
  transform: scale(110%);
}

.float-container #totop {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
  pointer-events: none;
  /* verhindert Klicks, wenn unsichtbar */
}

.float-container #totop.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* SINGLE WEIN */

.single .entry-header {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-bottom: 60px;
}

.single .entry-header::before {
  content: '';
  display: inline-block;
  width: 74px;
  height: 8px;
  background-color: currentColor;
  mask: url('https://jatschka.com/media/2025/06/strich.svg') no-repeat center;
  mask-size: contain;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.single .entry-title {
  margin-bottom: 0;
}

.entry-header:has(.subline) .subline {
  margin-bottom: 10px;
}

.entry-header:has(.subline) .entry-title {
  padding-bottom: 10px;
}

.single h2.subline::before,
.single .entry-header .entry-title::before {
  content: '';
  width: 0px;
  height: 0px;
}

.single .entry-header .subline {
  font-size: var(--h2-size);
  line-height: var(--h2-line);
  text-transform: uppercase;
}

/* // SINGLE WEIN */

/*--------------------------------------------------------------
# Layout
--------------------------------------------------------------*/

/* .site-main>article {
  width: min(980px, 100% - 4rem);
  margin-inline: auto;
} */

.adresse-info {
  position: fixed;
  top: 40px;
  left: 70px;
  font-size: 14px;
  z-index: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
  transform: translateY(0);
}

.adresse-info.hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.adresse-info p:first-child {
  padding-bottom: 8px;
}

.kontakt-element {
  position: relative;
  padding-left: 24px;
  line-height: 1.4;
  margin-top: 8px;
}

.kontakt-element.mail::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  background-size: contain;
}

.kontakt-element.telefon::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1px;
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  background-size: contain;
}

.kontakt-element.mail::before {
  background-image: url('https://jatschka.com/media/2025/06/jatschka-mail-icon.svg');
}

.kontakt-element.telefon::before {
  background-image: url('https://jatschka.com/media/2025/06/jatschka-tel-icon.svg');
}

.startseite-logo img {
  width: clamp(360px, 45vw, 829px);
}

.vogerl-fullscreen-overlay {
  position: absolute;
  inset: auto 0 -60px 0;
  /* left:0; right:0; bottom:-250px */
  display: flex;
  justify-content: flex-end;
  width: 80% !important;
}

.vogerl-fullscreen-overlay figure {
  width: fit-content !important;
}

.vogerl-fullscreen-overlay img {
  mix-blend-mode: multiply;
  width: 29vw !important;
  max-width: 380px;
}

.schnecke-startseite {
  position: absolute !important;
  top: 50%;
  transform: translateY(-50%);
  left: -120px;
}

.schnecke-startseite img {
  height: auto !important;
}

.kreise-overlay,
.sonne-overlay {
  pointer-events: none;
}

.sonne-overlay img {
  width: 350px;
  height: auto;
}

/* PLUGINS/THIRD PARTY/GUTENBERG - HACKED */

.eapps-instagram-feed-title-container {
  display: none;
}

.eapps-instagram-feed>a::before {
  content: '';
  background: var(--beige-bg);
  position: absolute;
  width: 100%;
  height: 50px;
}

.eapps-instagram-feed>a div[role="button"] {
  z-index: -9 !important;
}

.eapps-instagram-feed>a div[role="button"]::before {
  content: '';
  background: var(--beige-bg);
  position: absolute;
  width: 100%;
  height: 20px;
}

.eapps-instagram-feed-posts-grid-load-more {
  border-radius: 20px !important;
  text-transform: uppercase;
}

.uagb-tm__text-wrap {
  display: flex;
  flex-direction: column-reverse;
}

.uagb-testimonial-details {
  display: block !important;
}

.uagb-slick-carousel {
  padding: 10px 30px 0 30px;
}

.slick-arrow svg {
  display: none;
}

.slick-prev::before,
.slick-next::before {
  content: '';
  display: inline-block;
  width: 40px;
  height: 40px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.slick-prev::before {
  background-image: url('https://jatschka.com/media/2025/07/arrow.svg');
  transform: rotate(180deg)
}

.slick-next::before {
  background-image: url('https://jatschka.com/media/2025/07/arrow.svg');
}


/*--------------------------------------------------------------
# Main Nav
--------------------------------------------------------------*/

.site-header {
  position: fixed;
  z-index: 9999999;
  right: 50px;
  top: 30px;
  mix-blend-mode: difference;
}

#hamburger {
  background: none;
  border: none;
  padding: 1rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  z-index: 9999999;
  position: relative;
  transition: all .2s ease-in-out;
}

#hamburger:hover {
  gap: 7px;
}

.line {
  transition: all 0.4s ease;
  transform-origin: center;
}

.line svg {
  width: 60px;
  height: 6px;
  display: block;
  fill: #fff;
}

#hamburger.active .top {
  transform: rotate(45deg) translate(5px, 15px);
}

#hamburger.active .middle {
  opacity: 0;
}

#hamburger.active .bottom {
  transform: rotate(-45deg) translate(6px, -16px);
}

#hamburger.active:hover {
  gap: 9px;
}

#flyout {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity 0.6s ease, transform 0.6s ease;
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(242, 239, 230, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 9999999;
}

#flyout.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  z-index: 999999;
}

.elfsight-app-a02f7544-78c8-4f20-a7b9-9fc18aa09d7f .eapps-instagram-feed .es-widget .eapps-widget .eapps-widget-show-toolbar>a {
  z-index: -1 !important;
}

#flyout ul li {
  list-style: none;
  margin-bottom: 20px;
}

#flyout ul li a {
  font-family: 'Aichel';
  font-size: var(--mainnav-font-size);
  line-height: var(--mainnav-font-line);
  text-transform: uppercase;
  position: relative;
  padding-bottom: 20px;
  display: block;
}

#flyout ul li a:hover {
  text-decoration: none;
}

#flyout ul li a::before {
  content: '';
  display: inline-block;
  width: 74px;
  height: 8px;
  background-color: currentColor;
  mask: url('https://jatschka.com/media/2025/06/strich.svg') no-repeat center;
  mask-size: contain;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: bottom .3s ease-in-out;
}

#flyout ul li a:hover::before {
  bottom: 10px;
}

.static-logo-area {
  height: 180px;
  display: flex;
  align-items: top;
  justify-content: center;
  padding-top: 42px;
}

.static-logo-area .logo-wrapper img {
  max-width: 260px;
  height: auto;
}

.fixed-header {
  position: fixed;
  top: 0;
  left: 50%;
  width: fit-content;
  z-index: 8;
  margin: auto;
  transform: translateX(-50%);
}

.fixed-header.hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

img.navi-grafik {
  position: absolute;
  right: 50px;
  bottom: -10%;
  max-width: 470px;
}

.navi-grafik {
  animation: breathe 4s ease-in-out infinite;
  transform-origin: center;
}

@keyframes breathe {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.03);
  }
}


/*--------------------------------------------------------------
# Infobox Overlay
--------------------------------------------------------------*/

.infobox {
  font-family: 'Apercu Pro', sans-serif;
  position: absolute;
  background: var(--beige-bg-trans);
  padding: 25px;
  min-width: 290px;
  width: min-content;
  bottom: 30px;
  left: 15%;
  z-index: 1;
}

.infobox a {
  display: block;
}

.infobox__headline {
  font-size: var(--headline-infobox);
  font-weight: bold;
}

.infobox__subline {
  font-size: var(--subline-infobox);
}

.infobox__additional_stuff {
  font-size: 14px;
  margin-top: 25px;
}

.infobox__headline:not(:first-of-type) {
  margin-top: 15px;
}

/*--------------------------------------------------------------
# Wein Single
--------------------------------------------------------------*/

.related-posts-wrapper {
  max-width: 1400px;
  padding: 0 25px;
  margin: 5rem auto;
}

.related-posts-grid-header .thumbnail-wrap img {
  max-width: 290px;
}

.related-posts-grid-header {
  position: relative;
  padding-bottom: 30px;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.related-posts-grid-header::before {
  content: '';
  display: inline-block;
  width: 74px;
  height: 8px;
  background-color: currentColor;
  mask: url('https://jatschka.com/media/2025/06/strich.svg') no-repeat center;
  mask-size: contain;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.related-posts-wrapper .related-title {
  padding-top: 50px;
  font-size: 30px;
  margin-bottom: 0;
  padding-bottom: 5px;
}

.related-posts-wrapper .related-title::before {
  height: 0;
}

.related-posts-wrapper h3 {
  font-size: 23px;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  justify-content: center;
}

.related-posts-grid.single-item .related-post {
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

.related-post {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
}

.related-post .datenblatt-link {
  margin-top: auto;
  padding-top: 1rem;
}

.related-post a,
.related-post p {
  margin-bottom: 1rem;
}

.datenblatt-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: #000;
  text-decoration: underline;
  font-weight: 500;
}

.acf-file-link {
  display: flex;
  gap: 10px;
  justify-content: center;
}

/*--------------------------------------------------------------
# Unsere Weine - Übersicht
--------------------------------------------------------------*/

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 80px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 20px 80px 20px;
  box-sizing: border-box;
}

.post-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.grid-thumbnail>img {
  max-width: 290px;
  height: auto;
  margin: auto;
}

.grid-header {
  padding-top: 35px;
  margin-bottom: 40px;
  padding-bottom: 30px;
  text-align: center;
  position: relative;
}

.grid-header::before {
  content: '';
  display: inline-block;
  width: 74px;
  height: 8px;
  background-color: currentColor;
  mask: url('https://jatschka.com/media/2025/06/strich.svg') no-repeat center;
  mask-size: contain;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.grid-title {
  font-size: 30px;
  margin-bottom: 0;
  padding-bottom: 5px;
}

.grid-title::before {
  content: '';
  height: 0;
}

.grid-thumbnail:hover+.grid-header .grid-title {
  text-decoration: underline;
}

.archive .grid-header h3 {
  margin: 0;
  padding: 0;
  font-size: 23px;
}

.grid-summary {
  padding: 0;
  flex-grow: 1;
}

.datenblatt-link {
  padding-top: 20px;
}

.datenblatt-link .button {
  display: inline-block;
  padding: 0 0 10px 25px;
  text-decoration: none;
  font-size: 18px;
  background-color: transparent;
  position: relative;
}

.datenblatt-link .button::before {
  content: '';
  background-image: url('https://jatschka.com/media/2025/07/Jatschka-download-icon.svg');
  position: absolute;
  left: 0;
  top: 2px;
  background-repeat: no-repeat;
  width: 18px;
  height: 20px;
}

.datenblatt-link .button:hover {
  text-decoration: underline;
}

/*--------------------------------------------------------------
# Footer - Formular
--------------------------------------------------------------*/

.form-teaser-block {
  padding: 25px;
  margin-top: 20px;
}

.form-teaser-inner {
  max-width: 1100px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-teaser-icon img {
  max-width: 100px;
  height: auto;
}

.form-teaser-image img {
  width: 100%;
  height: auto;
}

.form-teaser-headline {
  text-align: center;
  max-width: 850px;
  margin-top: 100px;
}

.form-teaser-formular {
  max-width: 850px;
  width: 100%;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/

.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin: 50px auto 50px auto;
  max-width: 350px;
  width: 100%;
}

.footer-column>p {
  font-size: 18px;
}

.footer-column:first-of-type ul {
  list-style: none;
  padding: 8px 25px 0 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 40px;
}

.footer-column ul {
  list-style: none;
  padding: 8px 0 0 0;
  margin: 0;
  display: flex;
  gap: 15px;
}

.footer-column li {
  font-size: 13px;
  text-transform: uppercase;
}

.footer-column:last-of-type li::before {
  content: '-';
}

.footer-strich {
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media only screen and (max-width: 1440px) {

  .navi-grafik {
    display: none;
  }

  .adresse-info {
    top: 25px;
    left: 20px;
  }

  .site-header {
    right: 10px;
    top: 10px;
  }

  .infobox {
    padding: 15px 20px;
    min-width: 220px;
    left: 5%;
  }

  .infobox__headline {
    font-size: 20px;
  }

  .infobox__subline {
    font-size: 20px;
  }

  .slick-prev::before,
  .slick-next::before {
    width: 15px;
    height: 15px;
  }

}

@media only screen and (max-width: 810px) {

  .mega-h2>h2,
  .mega-h2,
  h2,
  h2.start-top {
    padding-bottom: 30px;
    margin-bottom: 30px;
  }

  .static-logo-area {
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 25px;
    padding-left: 25px;
  }

  .fixed-header {
    left: 0;
    transform: none;
  }

  .static-logo-area .logo-wrapper img {
    max-width: 220px;
    height: auto;
  }

  .float-container,
  .sonne-overlay {
    display: none;
  }

  .uagb-slick-carousel {
    padding: 10px 0;
  }

}

@media only screen and (max-width: 767px) {

  .grid-thumbnail>img {
    max-width: 100%;
  }

  .vogerl-fullscreen-overlay {
    inset: auto 0 110px 0;
    width: 100% !important;
  }

  .vogerl-fullscreen-overlay img {
    width: 60vw !important;
    height: auto !important;
  }

}