/*
Theme Name: Pit's Wein
Theme URI: https://pitswein.de/
Author: Pit's Wein
Description: Individuelles Theme für Pit’s Wein, Hamburg-Winterhude. Basiert auf dem statischen Prototyp (OpenAI Sites) und ergänzt den Inhaltstyp „Weine“ mit Feldern aus Advanced Custom Fields (ACF).
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 8.1
Tested up to: 7.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pits-wein
*/

/* ==========================================================================
   Inhalt
   1. Schrift (lokal, Bebas Neue, SIL Open Font License)
   2. Startseite              – html.pw-home
   3. Sortiment               – html.pw-sortiment
   4. Rechtliche Seiten       – html.pw-legal
   5. WordPress-Ergänzungen
   Jede Seitenvorlage setzt ihre Klasse auf <html>. Dadurch bleiben die
   Gestaltungen aus dem Prototyp voneinander getrennt, obwohl sie in einer
   gemeinsamen Datei liegen.
   ========================================================================== */

/* 1. Schrift
   ========================================================================== */
@font-face {
  font-family: "Bebas Neue";
  src: url("assets/fonts/bebas-neue.woff2") format("woff2"),
       url("assets/fonts/bebas-neue.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* 2. Startseite
   ========================================================================== */
html.pw-home {
  --paper: #f2eee5;
  --ink: #171715;
  --night: #10100f;
  --sage: #626e66;
  --wine: #642735;
  --muted: #6c685f;
  --line: rgba(23, 23, 21, 0.22);
  --serif: "Bodoni 72", Didot, "Bodoni MT", Georgia, serif;
  --sans: Lato, Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display-sans: "Bebas Neue", "Arial Narrow", sans-serif;
  --max: 1480px;
  --gutter: clamp(22px, 5vw, 78px);
}

html.pw-home * {
  box-sizing: border-box;
}

html.pw-home {
  scroll-behavior: smooth;
  background: var(--paper);
}

html.pw-home body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html.pw-home.js:not(.age-confirmed),
html.pw-home.js:not(.age-confirmed) body {
  overflow: hidden;
}

html.pw-home img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html.pw-home a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

html.pw-home button,
html.pw-home a {
  -webkit-tap-highlight-color: transparent;
}

html.pw-home section[id],
html.pw-home nav[id] {
  scroll-margin-top: 92px;
}

html.pw-home :focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 6px;
}

html.pw-home .skip-link {
  position: fixed;
  z-index: 1200;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: var(--night);
  background: var(--paper);
  transform: translateY(-160%);
}

html.pw-home .skip-link:focus {
  transform: translateY(0);
}

html.pw-home .age-gate {
  display: none;
}

html.pw-home.js:not(.age-confirmed) .age-gate {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: 26px var(--gutter) 22px;
  overflow-y: auto;
  color: var(--ink);
  background: var(--paper);
  transition: opacity 320ms ease, transform 320ms ease;
}

html.pw-home .age-gate.age-accepted {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
}

html.pw-home .age-logo {
  justify-self: center;
  width: clamp(132px, 12vw, 188px);
  height: auto;
  filter: brightness(0);
}

html.pw-home .age-question,
html.pw-home .age-denied {
  align-self: center;
  width: min(100%, 920px);
  margin: clamp(44px, 8vh, 100px) auto;
  text-align: center;
}

html.pw-home .age-kicker,
html.pw-home .eyebrow,
html.pw-home .hero-kicker {
  margin: 0 0 24px;
  font-family: var(--display-sans);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html.pw-home .age-kicker,
html.pw-home .eyebrow {
  color: var(--wine);
}

html.pw-home .age-question h2,
html.pw-home .age-denied h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(64px, 9vw, 132px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

html.pw-home .age-question > p:last-of-type,
html.pw-home .age-denied > p:last-of-type {
  max-width: 500px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 17px;
}

html.pw-home .age-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 46px;
  margin-top: 48px;
}

html.pw-home .age-action,
html.pw-home .age-back {
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

html.pw-home .age-action:hover,
html.pw-home .age-action:focus-visible,
html.pw-home .age-back:hover,
html.pw-home .age-back:focus-visible {
  color: var(--wine);
}

html.pw-home .age-denied {
  display: none;
}

html.pw-home .age-back {
  margin-top: 38px;
}

html.pw-home .age-gate[data-state="denied"] .age-question {
  display: none;
}

html.pw-home .age-gate[data-state="denied"] .age-denied {
  display: block;
}

html.pw-home .age-gate-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

html.pw-home .age-gate-footer div {
  display: flex;
  gap: 20px;
}

html.pw-home .site-header {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: 96px;
  padding: 12px var(--gutter);
  color: #fff;
  border-bottom: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease;
}

html.pw-home .site-header.scrolled {
  color: var(--ink);
  border-bottom-color: var(--line);
  background: rgba(242, 238, 229, 0.96);
  backdrop-filter: blur(12px);
}

html.pw-home .header-links a {
  font-family: var(--display-sans);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html.pw-home .brand-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  color: inherit;
  line-height: 1;
  text-decoration: none;
}

html.pw-home .brand-logo-symbol {
  display: block;
  width: 66px;
  height: 62px;
  overflow: hidden;
}

html.pw-home .brand-logo-symbol img {
  display: block;
  width: 100%;
  height: auto;
  transition: filter 220ms ease;
}

html.pw-home .brand-logo-name {
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

html.pw-home .site-header.scrolled .brand-logo img {
  filter: brightness(0);
}

html.pw-home .header-links {
  display: flex;
  gap: 27px;
  align-items: center;
}

html.pw-home .header-links:first-child {
  justify-self: start;
}

html.pw-home .header-links:last-child {
  justify-self: end;
}

html.pw-home .header-links a {
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
}

html.pw-home .hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 140px var(--gutter) 82px;
  overflow: hidden;
  color: #fff;
  background: var(--night);
}

html.pw-home .hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
  linear-gradient(180deg, rgba(15, 15, 13, 0.24), rgba(15, 15, 13, 0.18) 48%, rgba(15, 15, 13, 0.48)),
  url("/wp-content/uploads/2026/10/IMG_6366-1536x2048.jpeg") center 20% / cover no-repeat;
  filter: saturate(0.88);
  transform: scale(1.012);
}

html.pw-home .hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1380px);
  text-align: center;
}

html.pw-home .hero-kicker {
  color: rgba(255, 255, 255, 0.7);
}

html.pw-home .hero h1 {
  margin: 0;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(72px, 10.3vw, 164px);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.88;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.22);
  text-wrap: balance;
}

html.pw-home .hero-line {
  max-width: 720px;
  margin: 38px auto 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(16px, 1.35vw, 20px);
  letter-spacing: 0.025em;
}

html.pw-home .hero-down {
  position: absolute;
  z-index: 1;
  bottom: 28px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #fff;
  font-size: 23px;
  text-decoration: none;
  transform: translateX(-50%);
}

html.pw-home .wine-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(105px, 13vw, 190px) var(--gutter);
}

html.pw-home .section-intro {
  max-width: 1080px;
  margin-bottom: clamp(68px, 9vw, 122px);
}

html.pw-home .section-heading,
html.pw-home .statement h2,
html.pw-home .tasting h2,
html.pw-home .visit h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.052em;
}

html.pw-home .section-heading {
  margin: 0;
  font-size: clamp(64px, 8.4vw, 128px);
  line-height: 0.9;
}

html.pw-home .section-intro-copy {
  max-width: 610px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 18px;
}

html.pw-home .wine-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 62px);
}

html.pw-home .wine-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

html.pw-home .wine-figure {
  aspect-ratio: 3 / 4;
  margin: 0 0 30px;
  overflow: hidden;
  background: #d7cfc2;
}

html.pw-home .wine-number {
  display: block;
  margin-bottom: 14px;
  color: var(--wine);
  font-family: var(--display-sans);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

html.pw-home .wine-card h3 {
  margin: 0 0 13px;
  font-family: var(--serif);
  font-size: clamp(30px, 2.8vw, 43px);
  font-weight: 400;
  letter-spacing: -0.037em;
  line-height: 1.02;
}

html.pw-home .wine-meta {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

html.pw-home .wine-note {
  min-height: 5em;
  margin: 0 0 25px;
  color: var(--muted);
}

html.pw-home .wine-buy {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 25px;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

html.pw-home .price-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

html.pw-home .price {
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: -0.035em;
}

html.pw-home .price-detail {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
  white-space: nowrap;
}

html.pw-home .text-link {
  display: inline-block;
  padding: 5px 0;
  border-bottom: 1px solid currentColor;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-decoration: none;
}

html.pw-home .text-link:hover,
html.pw-home .text-link:focus-visible {
  color: var(--wine);
}

html.pw-home .selection-note {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 46px;
  align-items: center;
  justify-content: space-between;
  margin-top: 62px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

html.pw-home .selection-note p {
  max-width: 790px; margin: 0;
}

html.pw-home .statement {
  display: grid;
  place-items: center;
  padding: clamp(94px, 11vw, 155px) var(--gutter);
  color: var(--ink);
  border-top: 1px solid var(--line);
  background: var(--paper);
  text-align: center;
}

html.pw-home .statement-inner {
  max-width: 900px;
}

html.pw-home .statement .eyebrow {
  color: var(--wine);
}

html.pw-home .statement h2 {
  margin: 0;
  font-size: clamp(58px, 7.4vw, 108px);
  line-height: 0.92;
  text-wrap: balance;
}

html.pw-home .statement p:not(.eyebrow) {
  max-width: 690px;
  margin: 30px auto 0;
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 21px);
}

html.pw-home .statement .text-link {
  margin-top: 28px;
  color: var(--ink);
}

html.pw-home .statement .text-link:hover,
html.pw-home .statement .text-link:focus-visible {
  color: var(--wine);
}

html.pw-home .tasting {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(100vh, 1040px);
  padding: clamp(150px, 20vw, 280px) var(--gutter) clamp(62px, 8vw, 110px);
  overflow: hidden;
  color: #fff;
  background: var(--night);
}

html.pw-home .tasting::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
  linear-gradient(180deg, rgba(10, 10, 9, 0.04) 22%, rgba(10, 10, 9, 0.66) 100%),
  url("/wp-content/uploads/2026/10/Weinprobe.webp") center 50% / cover no-repeat;
  filter: saturate(0.88);
  transform: scale(1.01);
}

html.pw-home .tasting-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 1120px);
  margin: 0 auto;
  text-align: center;
}

html.pw-home .tasting .hero-kicker {
  color: rgba(255, 255, 255, 0.72);
}

html.pw-home .tasting h2 {
  margin: 0;
  font-size: clamp(66px, 9vw, 138px);
  line-height: 0.88;
  text-wrap: balance;
}

html.pw-home .tasting-details {
  max-width: 740px;
  margin: 38px auto 0;
}

html.pw-home .tasting-details > p:first-child {
  font-size: 18px;
}

html.pw-home .tasting-facts {
  margin: 28px 0 26px;
  padding: 21px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  font-family: var(--serif);
  font-size: clamp(20px, 1.5vw, 24px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
  text-wrap: balance;
}

html.pw-home .tasting .text-link {
  font-family: var(--serif);
  font-size: clamp(22px, 1.8vw, 26px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
}

html.pw-home .tasting .text-link:hover,
html.pw-home .tasting .text-link:focus-visible {
  color: #f0c7d0;
}

html.pw-home .tasting-legal {
  max-width: 660px;
  margin: 21px auto 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.55;
  text-wrap: balance;
}

html.pw-home .visit {
  width: 100%;
  padding: clamp(96px, 11vw, 160px) var(--gutter) 82px;
}

html.pw-home .visit-inner {
  width: min(100%, 1180px);
  margin: 0 auto;
}

html.pw-home .visit-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.75fr);
  gap: clamp(48px, 7vw, 108px);
  align-items: end;
}

html.pw-home .visit h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(54px, 6vw, 92px);
  line-height: 0.93;
  text-wrap: balance;
}

html.pw-home .visit-intro {
  max-width: 380px;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.55;
}

html.pw-home .visit-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(60px, 10vw, 150px);
  margin-top: clamp(68px, 8vw, 104px);
}

html.pw-home .visit-block h3 {
  margin: 0 0 18px;
  color: var(--wine);
  font-family: var(--display-sans);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

html.pw-home .visit-block p {
  margin: 0 0 18px;
}

html.pw-home .visit-block a {
  text-decoration: none;
}

html.pw-home .visit-block .text-link {
  margin-top: 4px;
  border-bottom: 0;
  color: var(--wine);
  font-family: var(--display-sans);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

html.pw-home .hours {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 24px;
  max-width: 390px;
  margin: 0;
}

html.pw-home .hours dt,
html.pw-home .hours dd {
  margin: 0;
}

html.pw-home .hours dd {
  text-align: right;
}

html.pw-home .site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 34px var(--gutter) 40px;
  color: rgba(255, 255, 255, 0.82);
  background: var(--sage);
  font-size: 10px;
  letter-spacing: 0.055em;
}

html.pw-home .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

@media (max-width: 1040px) {
  html.pw-home .wine-grid {
    gap: 28px;
  }

  html.pw-home .wine-buy {
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  html.pw-home.js:not(.age-confirmed) .age-gate {
    padding: 20px var(--gutter) 18px;
  }

  html.pw-home .age-logo {
    width: 112px;
  }

  html.pw-home .age-question,
  html.pw-home .age-denied {
    margin: 38px auto;
  }

  html.pw-home .age-question h2,
  html.pw-home .age-denied h2 {
    font-size: clamp(58px, 19vw, 82px);
  }

  html.pw-home .age-question > p:last-of-type,
  html.pw-home .age-denied > p:last-of-type {
    font-size: 15px;
  }

  html.pw-home .age-actions {
    flex-direction: column; align-items: center; margin-top: 34px;
  }

  html.pw-home .age-gate-footer {
    align-items: flex-start;
  }

  html.pw-home .age-gate-footer > span {
    max-width: 120px;
  }

  html.pw-home .age-gate-footer div {
    gap: 12px;
  }

  html.pw-home .site-header {
    min-height: 88px; padding-top: 8px; padding-bottom: 8px;
  }

  html.pw-home .brand-logo-symbol {
    width: 54px; height: 51px;
  }

  html.pw-home .brand-logo-name {
    margin-top: 4px; font-size: 19px;
  }

  html.pw-home .header-links {
    gap: 0;
  }

  html.pw-home .header-links a {
    font-size: 14px;
  }

  html.pw-home .hero {
    padding-top: 120px;
  }

  html.pw-home .hero::before {
    background-image: linear-gradient(180deg, rgba(15, 15, 13, 0.24), rgba(15, 15, 13, 0.18) 48%, rgba(15, 15, 13, 0.48)), url("/wp-content/uploads/2026/10/IMG_6366-768x1024.jpeg");
  }

  html.pw-home .hero h1 {
    font-size: clamp(68px, 19vw, 104px);
  }

  html.pw-home .hero-line {
    max-width: 310px; font-size: 15px;
  }

  html.pw-home .section-heading {
    font-size: clamp(62px, 18vw, 92px);
  }

  html.pw-home .section-intro-copy {
    font-size: 16px;
  }

  html.pw-home .wine-grid {
    grid-template-columns: 1fr; gap: 78px;
  }

  html.pw-home .wine-card {
    max-width: 540px;
  }

  html.pw-home .wine-note {
    min-height: 0;
  }

  html.pw-home .selection-note {
    align-items: flex-start;
  }

  html.pw-home .statement h2,
  html.pw-home .tasting h2 {
    font-size: clamp(62px, 18vw, 98px);
  }

  html.pw-home .tasting {
    min-height: 100svh;
  }

  html.pw-home .tasting::before {
    background-position: 50% 50%;
  }

  html.pw-home .tasting-details > p:first-child {
    font-size: 16px;
  }

  html.pw-home .visit {
    padding-top: 92px;
  }

  html.pw-home .visit-heading-row {
    grid-template-columns: 1fr; gap: 28px;
  }

  html.pw-home .visit h2 {
    font-size: clamp(48px, 14vw, 72px);
  }

  html.pw-home .visit-intro {
    max-width: 520px; margin: 0;
  }

  html.pw-home .visit-contact {
    grid-template-columns: 1fr; gap: 48px;
  }

  html.pw-home .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.pw-home {
    scroll-behavior: auto;
  }

  html.pw-home *,
  html.pw-home *::before,
  html.pw-home *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}


/* 3. Sortiment
   ========================================================================== */
html.pw-sortiment {
  --paper: #f2eee5;
  --ink: #171715;
  --sage: #626e66;
  --wine: #642735;
  --muted: #6c685f;
  --line: rgba(23, 23, 21, 0.22);
  --serif: "Bodoni 72", Didot, "Bodoni MT", Georgia, serif;
  --sans: Lato, Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display-sans: "Bebas Neue", "Arial Narrow", sans-serif;
  --max: 1380px;
  --gutter: clamp(22px, 5vw, 78px);
}

html.pw-sortiment * {
  box-sizing: border-box;
}

html.pw-sortiment {
  background: var(--paper);
}

html.pw-sortiment body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html.pw-sortiment.js:not(.age-confirmed),
html.pw-sortiment.js:not(.age-confirmed) body {
  overflow: hidden;
}

html.pw-sortiment a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

html.pw-sortiment :focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 6px;
}

html.pw-sortiment .skip-link {
  position: fixed;
  z-index: 1200;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: var(--paper);
  transform: translateY(-160%);
}

html.pw-sortiment .skip-link:focus {
  transform: translateY(0);
}

html.pw-sortiment .age-gate {
  display: none;
}

html.pw-sortiment.js:not(.age-confirmed) .age-gate {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: 26px var(--gutter) 22px;
  overflow-y: auto;
  background: var(--paper);
  transition: opacity 320ms ease, transform 320ms ease;
}

html.pw-sortiment .age-gate.age-accepted {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
}

html.pw-sortiment .age-logo {
  justify-self: center;
  width: clamp(132px, 12vw, 188px);
  height: auto;
  filter: brightness(0);
}

html.pw-sortiment .age-question,
html.pw-sortiment .age-denied {
  align-self: center;
  width: min(100%, 920px);
  margin: clamp(44px, 8vh, 100px) auto;
  text-align: center;
}

html.pw-sortiment .eyebrow,
html.pw-sortiment .age-kicker {
  margin: 0 0 22px;
  color: var(--wine);
  font-family: var(--display-sans);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html.pw-sortiment .age-question h2,
html.pw-sortiment .age-denied h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(64px, 9vw, 132px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

html.pw-sortiment .age-question > p:last-of-type,
html.pw-sortiment .age-denied > p:last-of-type {
  max-width: 500px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 17px;
}

html.pw-sortiment .age-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 46px;
  margin-top: 48px;
}

html.pw-sortiment .age-action,
html.pw-sortiment .age-back {
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

html.pw-sortiment .age-action:hover,
html.pw-sortiment .age-action:focus-visible,
html.pw-sortiment .age-back:hover,
html.pw-sortiment .age-back:focus-visible {
  color: var(--wine);
}

html.pw-sortiment .age-denied {
  display: none;
}

html.pw-sortiment .age-back {
  margin-top: 38px;
}

html.pw-sortiment .age-gate[data-state="denied"] .age-question {
  display: none;
}

html.pw-sortiment .age-gate[data-state="denied"] .age-denied {
  display: block;
}

html.pw-sortiment .age-gate-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

html.pw-sortiment .age-gate-footer div {
  display: flex; gap: 20px;
}

html.pw-sortiment .catalog-header {
  position: sticky;
  z-index: 40;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 96px;
  padding: 10px var(--gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(242, 238, 229, 0.96);
  backdrop-filter: blur(12px);
}

html.pw-sortiment .catalog-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  color: var(--ink);
  line-height: 1;
  text-decoration: none;
}

html.pw-sortiment .catalog-logo-symbol {
  display: block;
  width: 64px;
  height: 60px;
  overflow: hidden;
}

html.pw-sortiment .catalog-logo-symbol img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0);
}

html.pw-sortiment .catalog-logo-name {
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

html.pw-sortiment .header-link {
  width: max-content;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  font-family: var(--display-sans);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

html.pw-sortiment .header-link:last-child {
  justify-self: end;
}

html.pw-sortiment .header-link:hover,
html.pw-sortiment .header-link:focus-visible {
  color: var(--wine);
}

html.pw-sortiment .catalog-intro,
html.pw-sortiment .inventory,
html.pw-sortiment .catalog-contact {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding-right: var(--gutter);
  padding-left: var(--gutter);
}

html.pw-sortiment .catalog-intro {
  padding-top: clamp(100px, 13vw, 180px);
}

html.pw-sortiment .catalog-intro h1 {
  max-width: 1050px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(72px, 10vw, 150px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.88;
  text-wrap: balance;
}

html.pw-sortiment .intro-grid {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.72fr);
  gap: clamp(48px, 10vw, 150px);
  margin-top: clamp(58px, 8vw, 100px);
  padding: 26px 0 clamp(78px, 10vw, 125px);
  border-top: 1px solid var(--line);
}

html.pw-sortiment .intro-grid p {
  margin: 0;
}

html.pw-sortiment .intro-copy {
  max-width: 680px; font-size: clamp(18px, 1.5vw, 22px);
}

html.pw-sortiment .inventory-meta {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.035em;
}

html.pw-sortiment .inventory-meta strong {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-family: var(--display-sans);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

html.pw-sortiment .inventory {
  padding-bottom: clamp(95px, 12vw, 170px);
}

html.pw-sortiment .inventory-group {
  padding: 44px 0 clamp(82px, 9vw, 126px);
  border-top: 1px solid var(--line);
}

html.pw-sortiment .inventory-group h2 {
  margin: 0 0 clamp(44px, 5vw, 72px);
  font-family: var(--serif);
  font-size: clamp(42px, 4vw, 62px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}

html.pw-sortiment .inventory-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(58px, 7vw, 94px) clamp(22px, 3.4vw, 52px);
  margin: 0;
  padding: 0;
  list-style: none;
}

html.pw-sortiment .inventory-list li {
  display: flex;
  min-width: 0;
}

html.pw-sortiment .wine-figure {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin: 0;
}

html.pw-sortiment .wine-bottle {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  margin-bottom: 20px;
  overflow: hidden;
}

html.pw-sortiment .wine-bottle img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

html.pw-sortiment .wine-caption {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 17px;
  border-top: 1px solid rgba(23, 23, 21, 0.17);
}

html.pw-sortiment .wine-name {
  font-family: var(--serif);
  font-size: clamp(20px, 1.75vw, 27px);
  letter-spacing: -0.025em;
  line-height: 1.08;
}

html.pw-sortiment .seasonal-tag {
  flex: none;
  color: var(--wine);
  font-family: var(--display-sans);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html.pw-sortiment .wine-detail {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.015em;
  line-height: 1.5;
}

html.pw-sortiment .wine-choice {
  display: flex;
  min-height: 48px;
  margin-top: auto;
  padding-top: 16px;
  align-items: center;
}

html.pw-sortiment .select-wine,
html.pw-sortiment .quantity-stepper button,
html.pw-sortiment .selection-open,
html.pw-sortiment .dialog-close,
html.pw-sortiment .reservation-action,
html.pw-sortiment .reservation-remove {
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

html.pw-sortiment .select-wine {
  min-height: 44px;
  padding: 0;
  border-bottom: 1px solid currentColor;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.055em;
}

html.pw-sortiment .select-wine:hover,
html.pw-sortiment .select-wine:focus-visible,
html.pw-sortiment .quantity-stepper button:hover,
html.pw-sortiment .quantity-stepper button:focus-visible,
html.pw-sortiment .reservation-remove:hover,
html.pw-sortiment .reservation-remove:focus-visible {
  color: var(--wine);
}

html.pw-sortiment .quantity-stepper {
  display: none;
  align-items: center;
  border: 1px solid var(--line);
}

html.pw-sortiment .wine-figure[data-selected="true"] .select-wine {
  display: none;
}

html.pw-sortiment .wine-figure[data-selected="true"] .quantity-stepper {
  display: inline-flex;
}

html.pw-sortiment .quantity-stepper button {
  width: 44px;
  height: 44px;
  font-size: 20px;
  line-height: 1;
}

html.pw-sortiment .quantity-stepper output {
  min-width: 30px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

html.pw-sortiment .selection-bar {
  position: fixed;
  z-index: 70;
  right: var(--gutter);
  bottom: 24px;
  left: var(--gutter);
  display: flex;
  width: min(calc(100% - (2 * var(--gutter))), 760px);
  min-height: 66px;
  margin: 0 auto;
  padding: 10px 12px 10px 22px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid rgba(23, 23, 21, 0.2);
  background: rgba(242, 238, 229, 0.97);
  box-shadow: 0 14px 42px rgba(23, 23, 21, 0.12);
  backdrop-filter: blur(14px);
}

html.pw-sortiment .selection-bar[hidden] {
  display: none;
}

html.pw-sortiment .selection-copy {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: -0.02em;
}

html.pw-sortiment .selection-open {
  min-height: 44px;
  padding: 0 18px;
  color: var(--paper);
  background: var(--sage);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html.pw-sortiment .selection-open:hover,
html.pw-sortiment .selection-open:focus-visible {
  background: var(--wine);
}

html.pw-sortiment .reservation-dialog {
  width: min(100%, 680px);
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: var(--paper);
}

html.pw-sortiment .reservation-dialog::backdrop {
  background: rgba(23, 23, 21, 0.34);
  backdrop-filter: blur(2px);
}

html.pw-sortiment .reservation-shell {
  min-height: 100%;
  padding: 30px clamp(24px, 5vw, 62px) 46px;
}

html.pw-sortiment .dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

html.pw-sortiment .dialog-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(46px, 6vw, 72px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

html.pw-sortiment .dialog-close {
  flex: none;
  width: 44px;
  height: 44px;
  font-size: 29px;
  font-weight: 300;
  line-height: 1;
}

html.pw-sortiment .dialog-close:hover,
html.pw-sortiment .dialog-close:focus-visible {
  color: var(--wine);
}

html.pw-sortiment .reservation-intro {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 16px;
}

html.pw-sortiment .reservation-list {
  margin: 34px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

html.pw-sortiment .reservation-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

html.pw-sortiment .reservation-item-name {
  align-self: center;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.12;
}

html.pw-sortiment .reservation-item-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

html.pw-sortiment .reservation-item .quantity-stepper {
  display: inline-flex;
}

html.pw-sortiment .reservation-remove {
  min-height: 44px;
  padding: 0;
  border-bottom: 1px solid currentColor;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.055em;
}

html.pw-sortiment .reservation-form {
  margin-top: 42px;
}

html.pw-sortiment .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

html.pw-sortiment .form-field {
  display: grid;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.055em;
}

html.pw-sortiment .form-field-wide {
  grid-column: 1 / -1;
}

html.pw-sortiment .form-field input,
html.pw-sortiment .form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  font: 16px/1.5 var(--sans);
}

html.pw-sortiment .form-field textarea {
  min-height: 90px;
  resize: vertical;
}

html.pw-sortiment .form-field input:focus,
html.pw-sortiment .form-field textarea:focus {
  border-color: var(--ink);
  outline: 0;
}

html.pw-sortiment .age-check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  margin-top: 28px;
  align-items: start;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

html.pw-sortiment .age-check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--sage);
}

html.pw-sortiment .reservation-legal {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

html.pw-sortiment .reservation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  margin-top: 28px;
  align-items: center;
}

html.pw-sortiment .reservation-action {
  min-height: 48px;
  padding: 0 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

html.pw-sortiment .reservation-action-primary {
  color: var(--paper);
  background: var(--sage);
}

html.pw-sortiment .reservation-action-primary:hover,
html.pw-sortiment .reservation-action-primary:focus-visible {
  background: var(--wine);
}

html.pw-sortiment .reservation-action-secondary {
  padding-right: 0;
  padding-left: 0;
  border-bottom: 1px solid currentColor;
}

html.pw-sortiment .reservation-status {
  margin: 24px 0 0;
  color: var(--wine);
  font-size: 14px;
}

html.pw-sortiment .catalog-contact {
  padding-top: clamp(82px, 10vw, 135px);
  padding-bottom: clamp(88px, 11vw, 150px);
  border-top: 1px solid var(--line);
  text-align: center;
}

html.pw-sortiment .catalog-contact h2 {
  max-width: 920px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(58px, 7.5vw, 108px);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.92;
  text-wrap: balance;
}

html.pw-sortiment .catalog-contact p {
  max-width: 650px;
  margin: 30px auto 0;
  color: var(--muted);
}

html.pw-sortiment .text-link {
  display: inline-block;
  margin-top: 28px;
  padding: 5px 0;
  border-bottom: 1px solid currentColor;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-decoration: none;
}

html.pw-sortiment .text-link:hover,
html.pw-sortiment .text-link:focus-visible {
  color: var(--wine);
}

html.pw-sortiment .site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 34px var(--gutter) 40px;
  color: rgba(255, 255, 255, 0.86);
  background: var(--sage);
  font-size: 10px;
  letter-spacing: 0.055em;
}

html.pw-sortiment .footer-links {
  display: flex; flex-wrap: wrap; gap: 22px;
}

@media (max-width: 1080px) {
  html.pw-sortiment .inventory-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  html.pw-sortiment.js:not(.age-confirmed) .age-gate {
    padding: 20px var(--gutter) 18px;
  }

  html.pw-sortiment .age-logo {
    width: 112px;
  }

  html.pw-sortiment .age-question,
  html.pw-sortiment .age-denied {
    margin: 38px auto;
  }

  html.pw-sortiment .age-question h2,
  html.pw-sortiment .age-denied h2 {
    font-size: clamp(58px, 19vw, 82px);
  }

  html.pw-sortiment .age-actions {
    flex-direction: column; align-items: center; margin-top: 34px;
  }

  html.pw-sortiment .age-gate-footer {
    align-items: flex-start;
  }

  html.pw-sortiment .age-gate-footer > span {
    max-width: 120px;
  }

  html.pw-sortiment .age-gate-footer div {
    gap: 12px;
  }

  html.pw-sortiment .catalog-header {
    min-height: 88px;
  }

  html.pw-sortiment .catalog-logo-symbol {
    width: 52px; height: 49px;
  }

  html.pw-sortiment .catalog-logo-name {
    margin-top: 4px; font-size: 18px;
  }

  html.pw-sortiment .header-link {
    font-size: 14px;
  }

  html.pw-sortiment .header-link:last-child {
    display: none;
  }

  html.pw-sortiment .intro-grid {
    grid-template-columns: 1fr;
  }

  html.pw-sortiment .intro-grid {
    gap: 30px;
  }

  html.pw-sortiment .inventory-group {
    padding-top: 34px; padding-bottom: 72px;
  }

  html.pw-sortiment .inventory-group h2 {
    margin-bottom: 36px;
  }

  html.pw-sortiment .inventory-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 52px 18px;
  }

  html.pw-sortiment .wine-bottle {
    margin-bottom: 14px;
  }

  html.pw-sortiment .wine-caption {
    display: block; padding-top: 13px;
  }

  html.pw-sortiment .wine-name {
    font-size: 18px;
  }

  html.pw-sortiment .seasonal-tag {
    display: block; margin-top: 8px;
  }

  html.pw-sortiment .selection-bar {
    right: 14px;
    bottom: 14px;
    left: 14px;
    width: auto;
    padding-left: 16px;
  }

  html.pw-sortiment .selection-copy {
    font-size: 18px;
  }

  html.pw-sortiment .selection-open {
    padding: 0 13px;
  }

  html.pw-sortiment .reservation-dialog {
    width: 100%;
  }

  html.pw-sortiment .reservation-shell {
    padding-top: 22px;
  }

  html.pw-sortiment .form-grid {
    grid-template-columns: 1fr; gap: 20px;
  }

  html.pw-sortiment .form-field-wide {
    grid-column: auto;
  }

  html.pw-sortiment .reservation-item {
    grid-template-columns: 1fr;
  }

  html.pw-sortiment .reservation-item-controls {
    justify-content: space-between;
  }

  html.pw-sortiment .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.pw-sortiment *,
  html.pw-sortiment *::before,
  html.pw-sortiment *::after {
    transition-duration: 0.01ms !important;
  }
}


/* Ergänzung WordPress: Weinkarte im Sortiment mit Angaben aus dem Bereich „Weine“
   (gleiche Gestaltung wie auf der Startseite, kleinere Schriftgrößen). */
html.pw-sortiment .wine-meta {
  /* wie die Detailzeile im Prototyp: normale Schrift, Groß-/Kleinschreibung wie eingegeben */
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1.5;
  text-transform: none;
}

html.pw-sortiment .wine-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

html.pw-sortiment .wine-buy {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
}

html.pw-sortiment .price-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

html.pw-sortiment .price {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

html.pw-sortiment .price-detail {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
  white-space: nowrap;
}

/* Ohne Preis: „Zur Auswahl“ steht links */
html.pw-sortiment .wine-buy:not(:has(.price)) {
  justify-content: flex-start;
}

html.pw-sortiment .wine-buy:not(:has(.price)) .price-wrap {
  display: none;
}

html.pw-sortiment .wine-buy .wine-choice {
  min-height: 44px;
  margin-top: 0;
  padding-top: 0;
}

html.pw-sortiment .inventory-empty {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

@media (max-width: 760px) {
  html.pw-sortiment .price { font-size: 19px; }
  html.pw-sortiment .wine-note { font-size: 12px; }
  html.pw-sortiment .wine-meta { font-size: 11px; }
}


/* 4. Rechtliche Seiten
   ========================================================================== */
html.pw-legal {
  --paper: #f1ede4;
  --ink: #211f1b;
  --night: #11110f;
  --wine: #5e2330;
  --muted: #716c63;
  --line: rgba(33, 31, 27, 0.22);
  --serif: "Bodoni 72", Didot, "Bodoni MT", Georgia, serif;
  --sans: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display-sans: "Bebas Neue", "Arial Narrow", sans-serif;
  --gutter: clamp(22px, 6vw, 86px);
}

html.pw-legal * {
  box-sizing: border-box;
}

html.pw-legal {
  background: var(--paper);
}

html.pw-legal body {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html.pw-legal a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

html.pw-legal a:hover,
html.pw-legal a:focus-visible {
  color: var(--wine);
}

html.pw-legal .skip-link {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  padding: 9px 13px;
  color: #fff;
  background: var(--wine);
}

html.pw-legal .skip-link:focus {
  transform: translateY(0);
}

html.pw-legal .legal-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 94px;
  padding: 14px var(--gutter);
  border-bottom: 1px solid var(--line);
}

html.pw-legal .back-link {
  justify-self: start;
  font-family: var(--display-sans);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

html.pw-legal .wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  color: var(--ink);
  line-height: 1;
  text-decoration: none;
}

html.pw-legal .wordmark-symbol {
  display: block;
  width: 64px;
  height: 60px;
  overflow: hidden;
}

html.pw-legal .wordmark-symbol img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0);
}

html.pw-legal .wordmark strong {
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

html.pw-legal .header-spacer {
  min-width: 1px;
}

html.pw-legal main {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: clamp(74px, 10vw, 140px) var(--gutter) clamp(100px, 13vw, 180px);
}

html.pw-legal .eyebrow {
  margin: 0 0 20px;
  color: var(--wine);
  font-family: var(--display-sans);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

html.pw-legal h1,
html.pw-legal h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.04em;
}

html.pw-legal h1 {
  max-width: 950px;
  margin: 0;
  font-size: clamp(58px, 9vw, 116px);
  line-height: 0.92;
}

html.pw-legal .legal-lead {
  max-width: 760px;
  margin: clamp(36px, 6vw, 70px) 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.22;
}

html.pw-legal .legal-meta {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
}

html.pw-legal .legal-content {
  max-width: 780px;
  margin-top: clamp(70px, 10vw, 120px);
}

html.pw-legal .legal-section {
  padding: 34px 0 38px;
  border-top: 1px solid var(--line);
}

html.pw-legal .legal-section:first-child {
  padding-top: 0; border-top: 0;
}

html.pw-legal .legal-section h2 {
  margin: 0 0 18px;
  font-size: clamp(31px, 4.2vw, 46px);
  line-height: 1.05;
}

html.pw-legal .legal-section h3 {
  margin: 28px 0 8px;
  font-size: 15px;
  letter-spacing: 0.01em;
}

html.pw-legal .legal-section p,
html.pw-legal .legal-section ul,
html.pw-legal .legal-section address {
  margin: 0 0 16px;
}

html.pw-legal .legal-section p:last-child,
html.pw-legal .legal-section ul:last-child,
html.pw-legal .legal-section address:last-child {
  margin-bottom: 0;
}

html.pw-legal .legal-section ul {
  padding-left: 1.15em;
}

html.pw-legal .legal-section li {
  margin-bottom: 7px;
}

html.pw-legal address {
  font-style: normal;
}

html.pw-legal .notice {
  margin: 0 0 44px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--wine);
}

html.pw-legal .notice strong {
  display: block;
  margin-bottom: 8px;
  color: var(--wine);
  font-family: var(--display-sans);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html.pw-legal .notice p {
  margin: 0;
}

html.pw-legal .form-sample {
  margin-top: 22px;
  padding: 22px;
  border-left: 2px solid var(--wine);
  background: rgba(255, 255, 255, 0.26);
}

html.pw-legal .form-sample p {
  margin-bottom: 12px;
}

html.pw-legal .legal-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  margin-top: auto;
  padding: 32px var(--gutter) 38px;
  color: rgba(255, 255, 255, 0.66);
  background: var(--night);
  font-size: 10px;
  letter-spacing: 0.06em;
}

html.pw-legal .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

html.pw-legal .legal-footer a:hover,
html.pw-legal .legal-footer a:focus-visible {
  color: #fff;
}

@media (max-width: 680px) {
  html.pw-legal .legal-header {
    grid-template-columns: auto 1fr;
    min-height: 78px;
  }

  html.pw-legal .wordmark {
    justify-self: end;
  }

  html.pw-legal .wordmark-symbol {
    width: 52px; height: 49px;
  }

  html.pw-legal .wordmark strong {
    margin-top: 4px; font-size: 18px;
  }

  html.pw-legal .header-spacer {
    display: none;
  }

  html.pw-legal main {
    padding-top: 68px;
  }

  html.pw-legal .legal-footer {
    flex-direction: column;
  }
}


/* Ergänzung WordPress: Rechtstexte kommen aus dem Seiteneditor.
   Jede Überschrift H2 beginnt einen Abschnitt – wie die Abschnitte im Prototyp. */
html.pw-legal .legal-content > h2 {
  margin: 38px 0 18px; /* Abstand vor der Trennlinie; fällt mit dem Absatzabstand zusammen */
  padding-top: 34px;
  border-top: 1px solid var(--line);
  font-size: clamp(31px, 4.2vw, 46px);
  line-height: 1.05;
}

html.pw-legal .legal-content > h2:first-child,
html.pw-legal .legal-content > .notice + h2:not(:first-child) {
  margin-top: 0;
}

html.pw-legal .legal-content > h2:first-child {
  padding-top: 0;
  border-top: 0;
}

html.pw-legal .legal-content h3 {
  margin: 28px 0 8px;
  font-size: 15px;
  letter-spacing: 0.01em;
}

html.pw-legal .legal-content > p,
html.pw-legal .legal-content > ul,
html.pw-legal .legal-content > ol,
html.pw-legal .legal-content > address {
  margin: 0 0 16px;
}

html.pw-legal .legal-content ul,
html.pw-legal .legal-content ol { padding-left: 1.15em; }

html.pw-legal .legal-content li { margin-bottom: 7px; }

html.pw-legal .legal-content .notice > p:first-child strong,
html.pw-legal .legal-content .notice > .notice-title {
  display: block;
  margin-bottom: 8px;
  color: var(--wine);
  font-family: var(--display-sans);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html.pw-legal .legal-content .notice > p:first-child:has(> strong:only-child) { margin: 0; }
html.pw-legal .legal-content .notice p { margin: 0; }
html.pw-legal .legal-content .form-sample p:last-child { margin-bottom: 0; }
html.pw-legal .legal-content .wp-block-group { box-sizing: border-box; }


/* 5. WordPress-Ergänzungen
   ========================================================================== */
/* Ergänzung WordPress: Admin-Leiste für angemeldete Nutzer */
html.pw-home body.admin-bar .site-header { top: 32px; }

@media (max-width: 782px) {
  html.pw-home body.admin-bar .site-header { top: 46px; }
}

@media (max-width: 600px) {
  html.pw-home body.admin-bar .site-header { top: 0; }
}

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


/* Cookie-Banner: Statistikbeschreibung sichtbar bedienbar. */
.cmplz-cookiebanner .cmplz-category-toggle[aria-controls^="cmplz-desc-statistics-"] {
  min-width: 24px;
  min-height: 24px;
}
.cmplz-cookiebanner .cmplz-category-toggle[aria-controls^="cmplz-desc-statistics-"] .cmplz-open {
  display: inline-flex !important;
}

/* Die Beschreibung folgt dem aufgeklappten Zustand der Kategorie. */
.cmplz-cookiebanner .cmplz-statistics:has(.cmplz-category-toggle[aria-expanded="true"]) > .cmplz-description {
  display: block !important;
}

/* Flaschenetiketten: Vergrößerung nur bei Maus-Hover. */
@media (hover: hover) and (pointer: fine) {
  html.pw-home .wine-figure,
  html.pw-sortiment .wine-bottle {
    cursor: zoom-in;
  }

  html.pw-home .wine-figure img,
  html.pw-sortiment .wine-bottle img {
    transform-origin: 50% 85%;
    transition: transform 350ms ease;
  }

  html.pw-home .wine-figure:hover img,
  html.pw-sortiment .wine-bottle:hover img {
    transform: scale(2.2);
  }
}
