/* Weinbau Kunrath – kleine Website ohne Bootstrap / jQuery.
   Original-Etiketten-Gelb der bisherigen Website: #fcc557. */
@font-face {
  font-family: Lato;
  src: url('../assets/fonts/lato-v14-latin_latin-ext-regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Lato;
  src: url('../assets/fonts/lato-v14-latin_latin-ext-700.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
:root {
  --ink: #292a24;
  --paper: #fbfaf7;
  --cream: #f3f0e9;
  --muted: #676c62;
  --line: #e4e1d8;
  --gold: #fcc557;
  --gold-dark: #76560e;
  --night: #242621;
  --wrap: 1140px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  margin: 0;
  font: 400 16px/1.65 Lato, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-dark); }
button { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 3px; }
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
.section-pad { padding: 94px 0; }
.eyebrow {
  display: inline-block;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .19em;
  line-height: 1.6;
  color: var(--gold-dark);
}
.eyebrow--light { color: var(--gold); }
.serif { font: 400 1em Georgia, 'Times New Roman', serif; }
.section-topline { display: flex; align-items: center; gap: 20px; margin-bottom: 12px; }
.fine-rule { height: 1px; flex: 1; background: var(--line); }
.section-heading-group { display: flex; align-items: end; justify-content: space-between; gap: 45px; margin-bottom: 32px; }
.section-heading-group h2, .contact-section h2 {
  font-size: clamp(2.05rem, 4vw, 3.1rem);
  line-height: 1.18;
  letter-spacing: -.03em;
  margin: 0;
  font-weight: 700;
}
.section-heading-group p { max-width: 580px; margin: 0; color: #686c63; line-height: 1.7; }
.section-heading-group a { color: #6b5518; text-decoration-color: var(--gold); }
.skip-link { position: fixed; z-index: 500; top: -100px; left: 14px; background: #fff; color: #151515; padding: 12px 16px; }
.skip-link:focus { top: 10px; }

/* Gelb am Seitenanfang, kompakter und dunkel beim Scrollen. */
.site-header {
  position: sticky; top: 0; z-index: 100; height: 84px;
  background: var(--gold); color: var(--night);
  transition: height .22s ease, background-color .22s ease, box-shadow .22s ease;
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; height: 100%; }
.brand { display: flex; align-items: center; position: relative; flex: 0 0 auto; }
.brand img {
  width: 161px; height: 50px; object-fit: contain;
  transition: width .22s ease, height .22s ease, opacity .2s ease;
}
.brand .brand-logo--light { position: absolute; top: 0; left: 0; opacity: 0; pointer-events: none; }
.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a { color: #28251d; text-decoration: none; font-size: .88rem; font-weight: 700; letter-spacing: .045em; padding: 20px 0; }
.main-nav a:hover { color: #654908; text-decoration: underline; }
.legal-nav a { color: #28251d; font-size: .9rem; font-weight: 700; text-decoration: none; }
.legal-nav a:hover { color: #654908; text-decoration: underline; }
.menu-toggle { display: none; background: transparent; border: 0; padding: 11px; color: var(--night); cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; }
.site-header.is-scrolled { height: 64px; background: var(--night); color: #fff; box-shadow: 0 5px 18px #15151533; }
.site-header.is-scrolled .brand img { width: 140px; height: 44px; }
.site-header.is-scrolled .brand-logo--dark { opacity: 0; }
.site-header.is-scrolled .brand .brand-logo--light { opacity: 1; }
.site-header.is-scrolled .main-nav a,
.site-header.is-scrolled .legal-nav a { color: #f9f8f3; }
.site-header.is-scrolled .main-nav a:hover,
.site-header.is-scrolled .legal-nav a:hover { color: var(--gold); }
.site-header.is-scrolled .menu-toggle { color: #fff; }

/* Ein einziger Hero ohne weiße Textkarte: Text liegt auf dem dunkleren Foto. */
.hero { position: relative; min-height: 650px; display: flex; align-items: center; overflow: hidden; background: #171d19; color: #fff; isolation: isolate; }
.hero-media { position: absolute; inset: 0; overflow: hidden; z-index: -2; }
.hero-media img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center center; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(12, 19, 16, .89) 0%, rgba(12, 19, 16, .75) 36%, rgba(12, 19, 16, .24) 69%, rgba(12, 19, 16, .04) 100%);
}
.hero-content { position: relative; z-index: 1; padding-block: 68px; }
.hero-card { width: min(625px, 64%); }
.hero-card .eyebrow { color: var(--gold); }
.hero-card h1 {
  margin: 14px 0 22px;
  font: 400 clamp(2.65rem, 4.5vw, 4.1rem)/1.12 Georgia, 'Times New Roman', serif;
  letter-spacing: -.032em; color: #fff;
}
.hero-statement { max-width: 565px; margin: 0; color: #f3f4ef; font-size: 1.06rem; line-height: 1.76; }
.hero-signature { margin: 15px 0 0; color: var(--gold); font-size: .75rem; line-height: 1.8; font-weight: 700; letter-spacing: .10em; }
.hero-signature span { white-space: nowrap; }
.actions { display: flex; align-items: center; gap: 23px; flex-wrap: wrap; margin-top: 28px; }
.button {
  display: inline-flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 14px 20px; min-height: 53px;
  text-decoration: none; font-weight: 700;
  transition: transform .15s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button--gold { background: var(--gold); color: #22261f; }
.button--gold:hover { background: #f5b934; color: #22261f; }
.text-link { font-weight: 700; text-decoration: none; }
.text-link--light { color: #fff; border-bottom: 1px solid var(--gold); padding: 8px 0; }
.text-link--light:hover { color: var(--gold); }

.wines { background: var(--cream); }
.wine-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.wine-card {
  min-width: 0; background: #fff; border: 1px solid #e7e4db;
  box-shadow: 0 5px 20px rgba(30, 31, 25, .035);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.wine-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(30, 31, 25, .08); }
/* Fotos stammen in 400×400 vor. Immer als Quadrat zeigen, niemals abschneiden. */
.wine-picture { background: #f5f5f3; width: 100%; aspect-ratio: 1 / 1; position: relative; overflow: hidden; display: grid; place-items: center; }
.wine-picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.no-photo { font-family: Georgia, serif; color: var(--muted); }
.wine-copy { padding: 20px 22px 23px; display: flex; flex-direction: column; flex: 1; }
.wine-copy h3 { font-size: 1.12rem; line-height: 1.38; margin: 0 0 10px; font-weight: 700; }
.wine-details { margin: 0 0 18px; color: #65675f; font-size: .9rem; line-height: 1.8; }
.wine-info-link {
  font-size: .9rem; font-weight: 700; color: #76560e;
  margin-top: auto; display: flex; justify-content: space-between; gap: 12px;
  text-decoration: none; border-top: 1px solid var(--line); padding-top: 13px;
}
.wine-info-link:hover { text-decoration: underline; }
.empty-wines { text-align: center; background: #fff; padding: 36px; color: var(--muted); }
.photo-quote {
  min-height: 270px; display: flex; align-items: center;
  background: linear-gradient(90deg, rgba(26, 33, 18, .80), rgba(26, 33, 18, .28)), url('../img/parallax/img3.jpg') center / cover no-repeat;
  color: #fff;
}
.photo-quote__content { padding-block: 54px; }
.photo-quote__content > p.serif { font-size: clamp(1.65rem, 3vw, 2.6rem); line-height: 1.4; max-width: 720px; margin: 12px 0 0; }
.tasting { background: #fff; }
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.filter-btn { padding: 8px 17px; min-height: 40px; border: 1px solid #d7d5cd; background: transparent; color: #43473c; cursor: pointer; font-size: .87rem; font-weight: 700; }
.filter-btn:hover { background: #f5f3ed; }
.filter-btn.is-active { background: var(--night); border-color: var(--night); color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.gallery-tile { position: relative; display: block; aspect-ratio: 1.35; overflow: hidden; background: #e7e6e2; }
.gallery-tile[hidden] { display: none; }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.gallery-tile:hover img { transform: scale(1.05); }
.gallery-magnify { position: absolute; bottom: 12px; right: 12px; background: rgba(255, 255, 255, .95); width: 36px; height: 36px; display: grid; place-items: center; font-size: 1.3rem; color: var(--ink); }
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(95vw, 1020px); max-height: 95vh; box-shadow: 0 20px 80px #0007; }
.lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.lightbox img { max-width: 95vw; max-height: 87vh; width: auto; object-fit: contain; }
.lightbox-close { position: absolute; right: 8px; top: 8px; border: 0; background: #fff; color: #222; width: 38px; height: 38px; cursor: pointer; font-size: 1.6rem; line-height: 1; }

.map-section { background: #f4f2ec; }
.map-wrap { border: 7px solid #fff; box-shadow: 0 6px 30px #3f44331c; }
.map-canvas { height: 440px; width: 100%; background: #ecece8; z-index: 0; }
.map-placeholder { margin: 0; padding: 40px; text-align: center; color: #697066; }
.map-canvas .leaflet-container { font: inherit; }
/* Nummern-Pins, in genau demselben Gelb wie Header und Etiketten. */
.kunrath-map-icon { background: transparent; border: 0; }
.kunrath-map-pin {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--gold); color: #29251d; border: 2px solid #fff;
  box-shadow: -2px 3px 7px #0005;
}
.kunrath-map-pin__label { display: inline-block; transform: rotate(45deg); font-size: 16px; line-height: 1; font-weight: 700; }
.locations { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.location-item { display: flex; gap: 15px; align-items: flex-start; }
.location-number {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%; background: var(--gold);
  color: #29251d; font-weight: 700; font-size: .89rem;
}
.location-item strong { display: block; font-size: .95rem; }
.location-item span:not(.location-number) { display: block; color: var(--muted); font-size: .87rem; }
.contact-section { background: var(--night); color: #f7f5ed; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(250px, .7fr); gap: 70px; align-items: center; }
.contact-section h2 { font-size: clamp(2.5rem, 5vw, 3.7rem); margin: 10px 0 20px; }
.contact-section p { max-width: 620px; color: #dbdcd3; line-height: 1.9; margin-bottom: 28px; }
.contact-details { font-style: normal; font-size: 1.08rem; line-height: 2.1; border-left: 1px solid #64685b; padding-left: 40px; }
.contact-details strong { font-size: 1.25rem; }
.contact-details a { color: var(--gold); }
.site-footer { background: var(--gold); color: #29251d; font-size: .84rem; padding: 25px 0; }
.footer-layout { display: flex; gap: 15px 24px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.site-footer a { color: #29251d; font-weight: 700; }
.site-footer a:hover { color: #624609; }
/* Immer sichtbarer, aber dezenter Seitenanfang-Pfeil. */
.back-to-top {
  position: fixed; z-index: 120;
  right: 16px; bottom: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  width: 41px; height: 41px; display: grid; place-items: center;
  border: 1px solid #e0ad42; border-radius: 50%; background: var(--gold);
  color: #242621; text-decoration: none; font-size: 1.48rem; font-weight: 700;
  box-shadow: 0 3px 15px rgba(0, 0, 0, .17);
  transition: transform .15s ease, background .15s ease;
}
.back-to-top span {
  display: block;
  line-height: 1;
  transform: translateY(-2px);
}
.back-to-top:hover { color: #242621; background: #ffdb88; transform: translateY(-3px); }

@media (max-width: 900px) {
  .wine-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading-group { display: block; }
  .section-heading-group h2 { margin-bottom: 12px; }
  .section-heading-group p { max-width: 750px; }
  .hero-card { width: min(570px, 77%); }
}
@media (max-width: 650px) {
  .wrap { width: min(var(--wrap), calc(100% - 32px)); }
  .section-pad { padding: 68px 0; }
  .site-header { height: 72px; }
  .brand img { width: 133px; height: 42px; }
  .site-header.is-scrolled { height: 60px; }
  .site-header.is-scrolled .brand img { width: 120px; height: 38px; }
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 10px 24px 22px; background: var(--gold); box-shadow: 0 12px 20px #2224; }
  .main-nav.is-open { display: grid; gap: 0; }
  .main-nav a { padding: 12px 2px; border-bottom: 1px solid #24262133; }
  .site-header.is-scrolled .main-nav { background: var(--night); }
  .site-header.is-scrolled .main-nav a { border-bottom-color: #ffffff35; }
  /* Mobil bleibt der Winzer im Foto sichtbar; darunter geht es ohne weißen
     Kasten fließend in einen dunklen Textbereich über. */
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; overflow: hidden; }
  .hero::before { display: none; }
  .hero-media { position: relative; width: 100%; height: clamp(265px, 75vw, 380px); z-index: 0; }
  .hero-media img { object-fit: cover; object-position: 75% center; }
  .hero-media::after { content: ''; position: absolute; inset: 52% 0 0; background: linear-gradient(180deg, transparent, #171d19); pointer-events: none; }
  .hero-content { width: min(var(--wrap), calc(100% - 32px)); padding: 0 0 42px; margin-top: -6px; }
  .hero-card { width: 100%; }
  .hero-card h1 { font-size: clamp(2.35rem, 9.2vw, 3.2rem); margin: 13px 0 16px; }
  .hero-statement { font-size: 1.02rem; line-height: 1.76; }
  .hero-signature { font-size: .72rem; letter-spacing: .08em; }
  .actions { align-items: flex-start; gap: 15px; }
  .wine-grid { grid-template-columns: 1fr; gap: 17px; width: min(100%, 480px); margin-inline: auto; }
  .wine-copy { padding: 19px 20px 22px; }
  .wine-copy h3 { font-size: 1.06rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .gallery-tile { aspect-ratio: 1.05; }
  .map-canvas { height: 360px; }
  .locations { grid-template-columns: 1fr; gap: 17px; }
  .contact-layout { grid-template-columns: 1fr; gap: 28px; }
  .contact-details { padding-left: 20px; }
}
@media (max-width: 430px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-layout { display: grid; }
  .back-to-top { width: 38px; height: 38px; right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
