/* Brennerei Purnerhof — custom styles (fonts, brand details) */

@font-face {
  font-family: 'Yipes';
  src: url('/assets/01a04404-3b02-7fe7-9c63-8e51033a63f5/yipes.woff?v=1787847523') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Yipes';
  src: url('/assets/01a04404-847a-7fab-a7b9-8f9468e8faf3/yipes-Italic.woff?v=1787847541') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

body {
  font-family: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  background-color: #1B1B1A;
  color: #FFFFFF;
}

.font-yipes {
  font-family: 'Yipes', 'DM Sans', cursive;
  font-weight: 400;
  line-height: 1.15;
}

/* Type scale (original: 24px base desktop / 16px mobile) */
.t-hero { font-size: 3rem; }
.t-h2   { font-size: 2rem; }
.t-h3   { font-size: 1.5rem; }
.lead   { font-size: 1.0625rem; line-height: 1.6; }
@media (min-width: 768px) {
  .t-hero { font-size: 4.5rem; }
  .t-h2   { font-size: 3rem; }
  .t-h3   { font-size: 2.25rem; }
  .lead   { font-size: 1.5rem; line-height: 1.55; }
}

/* Nav underline fade (Elementor e--pointer-underline e--animation-fade) */
.nav-underline a { position: relative; text-decoration: none; }
.nav-underline a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.nav-underline a:hover::after,
.nav-underline a:focus-visible::after,
.nav-underline a.is-active::after { transform: scaleX(1); }

/* Hero overlays (original gradients) */
.hero-overlay-home {
  background-image: linear-gradient(228deg, rgba(27, 27, 26, 0) 0%, #1B1B1A 93%);
  opacity: 0.86;
}
.hero-overlay-sub {
  background-image: linear-gradient(230deg, rgba(27, 27, 26, 0) 27%, #1B1B1A 80%);
  opacity: 0.86;
}

/* Entrance animations */
@keyframes pw-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pw-fade-down { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: none; } }
@keyframes pw-fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.anim-fade { animation: pw-fade 0.8s ease both; }
.anim-fade-down { animation: pw-fade-down 0.8s ease both; }
.anim-fade-up { animation: pw-fade-up 0.8s ease both; }
@media (prefers-reduced-motion: reduce) {
  .anim-fade, .anim-fade-down, .anim-fade-up { animation: none; }
}

/* Buttons (original: gold, square, 15px 40px) */
.btn-gold {
  background-color: var(--color-primary);
  color: var(--color-primary-content);
  border: 0;
  border-radius: 0;
  padding: 15px 40px;
  height: auto;
  min-height: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s ease;
}
.btn-gold:hover, .btn-gold:focus-visible { background-color: var(--color-primary); color: #FFFFFF; opacity: 0.92; }
.btn-gold-outline {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: 0;
  padding: 13px 38px;
  height: auto;
  min-height: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-gold-outline:hover, .btn-gold-outline:focus-visible {
  background-color: var(--color-primary);
  color: var(--color-primary-content);
}

/* Pill cards (Sorten): straight sides, rounded top/bottom — like the original popup shape */
.sorten-pill {
  border: 5px solid var(--color-primary);
  border-radius: 9999px; /* clamps to a stadium/pill on taller-than-wide boxes */
  display: flex;
  align-items: center;
  justify-content: center;
}
.sorten-trigger {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  text-align: center;
  cursor: pointer;
  display: block;
  color: inherit;
}
.sorten-trigger .sorten-pill {
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.35s ease;
}
.sorten-trigger:hover .sorten-pill,
.sorten-trigger:focus-visible .sorten-pill {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px -18px rgba(205, 177, 111, 0.5);
}
.sorten-trigger img {
  transition: transform 0.4s ease;
}
.sorten-trigger:hover img,
.sorten-trigger:focus-visible img {
  transform: scale(1.07);
}
.sorten-trigger:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 6px;
}

/* NEU badge */
.badge-neu {
  position: absolute;
  top: -43px;
  right: 0;
  background-color: var(--color-primary);
  color: var(--color-primary-content);
  border-radius: 100px;
  padding: 20px 16px;
  font-size: 0.9rem;
  text-transform: uppercase;
  line-height: 1;
  z-index: 2;
}

/* Footer map: grayscale -> color on hover */
.map-fade img { filter: brightness(0.65) saturate(0); transition: filter 0.5s ease; }
.map-fade:hover img, .map-fade:focus-visible img { filter: brightness(1) saturate(1); }

/* Forms: transparent fields with gold underline (original style) */
.field-line .input, .field-line .textarea {
  background-color: transparent;
  border-width: 0 0 1px 0;
  border-color: var(--color-primary);
  border-radius: 0;
  color: #FFFFFF;
  font-size: 1rem;
  height: auto;
  min-height: 2.75rem;
  width: 100%;
}
.field-line .textarea { min-height: 6rem; }
.field-line .input:focus, .field-line .textarea:focus {
  outline: none;
  box-shadow: none;
  border-color: #FFFFFF;
  background-color: transparent;
}
.field-line .label {
  color: #FFFFFF;
  font-size: 0.9rem;
  padding: 0 0 0.25rem 0;
  height: auto;
}
.field-line ::placeholder { color: rgba(255, 255, 255, 0.45); }

/* Checkbox in brand colors */
.field-line .checkbox { border-radius: 0; border-color: var(--color-primary); background-color: transparent; }
.field-line .checkbox:checked { background-color: var(--color-primary); border-color: var(--color-primary); color: var(--color-primary-content); }

/* DM Sans (self-hosted variable font, latin + latin-ext, like the original site's local hosting) */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('/assets/01a0441a-b63a-7421-938d-bc4621a04afa/rP2Hp2ywxg089UriCZ2IHSeH.woff2?v=1787848996') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('/assets/01a0441a-b2c4-790f-a77d-4d9bee9be499/rP2Hp2ywxg089UriCZOIHQ.woff2?v=1787848995') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 100 1000;
  font-display: swap;
  src: url('/assets/01a0441a-b8f0-700f-b493-1d46c56c6a12/rP2Fp2ywxg089UriCZa4Hz-D.woff2?v=1787848997') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
}
.skip-link:focus {
  left: 8px; top: 8px;
  background: var(--color-primary);
  color: var(--color-primary-content);
  padding: 8px 16px;
}

/* Award image with arch frame (border directly on the img, like the original) */
.award-img {
  border: 1px solid var(--color-primary);
  border-radius: 174px 174px 0 0;
}

/* Award lists: gold distillation-drop bullets instead of standard dots */
.award-list {
  list-style: none;
  padding-left: 0;
}
.award-list li {
  position: relative;
  padding-left: 2.1rem;
}
.award-list li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.42em;
  width: 0.85rem;
  height: 0.85rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23CDB16F'%3E%3Cpath d='M12 2C8.5 7.5 5 11 5 15a7 7 0 0 0 14 0c0-4-3.5-7.5-7-13z'/%3E%3C/svg%3E") no-repeat center / contain;
  filter: drop-shadow(0 0 3px rgba(205, 177, 111, 0.35));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}
.award-list li:hover::before {
  transform: scale(1.4) rotate(-10deg);
  filter: drop-shadow(0 0 8px rgba(205, 177, 111, 0.85));
}
.award-list li {
  transition: transform 0.3s ease;
}
.award-list li:hover {
  transform: translateX(4px);
}
@media (prefers-reduced-motion: reduce) {
  .award-list li,
  .award-list li::before {
    transition: none;
  }
  .award-list li:hover {
    transform: none;
  }
  .award-list li:hover::before {
    transform: none;
  }
}

/* Subtle link underline default on dark */
main a:not([class]) { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
main a:not([class]):hover { color: var(--color-primary); }

/* Scroll reveal (IntersectionObserver toggles .in-view; stagger via --i) */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js .reveal.in-view {
  opacity: 1;
  transform: none;
}

/* Hero parallax: subtle zoom while the hero scrolls out (scroll-driven, progressive) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-parallax {
      animation: hero-scrub linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 100%;
      will-change: transform;
    }
  }
}
@keyframes hero-scrub {
  to { transform: scale(1.09); }
}

html {
  scroll-behavior: smooth;
}

/* Modals (daisyUI dialog) in brand style */
.modal-box {
  border: 5px solid var(--color-primary);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .sorten-trigger .sorten-pill,
  .sorten-trigger img {
    transition: none;
  }
  .sorten-trigger:hover .sorten-pill {
    transform: none;
    box-shadow: none;
  }
}
