/*
Theme Name: Whisky Verein
Author: FOP
Description: Ein schlichtes, modernes und konfigurierbares WordPress-Theme für Whisky-Vereine mit Veranstaltungskarussell.
Version: 1.0.16
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: whisky-verein
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --wv-bg: #f4f0e8;
  --wv-surface: #fffdf8;
  --wv-text: #26231f;
  --wv-muted: #706a61;
  --wv-accent: #9c641f;
  --wv-accent-dark: #754713;
  --wv-line: #ded7cc;
  --wv-radius: 16px;
  --wv-shadow: 0 14px 36px rgba(38, 35, 31, .08);
  --wv-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--wv-bg);
  color: var(--wv-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--wv-accent-dark); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: var(--wv-accent); }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--wv-accent) 45%, transparent); outline-offset: 3px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.wv-container { width: min(calc(100% - 40px), var(--wv-width)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 30; background: rgba(244,240,232,.94); border-bottom: 1px solid rgba(222,215,204,.85); backdrop-filter: blur(12px); }
.admin-bar .site-header { top: 32px; }
.site-header__inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-branding { display: flex; align-items: center; gap: 12px; min-width: 0; }
.custom-logo { width: auto; max-height: 54px; }
.site-title { color: var(--wv-text); font-family: Georgia, serif; font-size: clamp(1.25rem, 2vw, 1.65rem); font-weight: 700; text-decoration: none; }
.site-nav ul { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.site-nav a { color: var(--wv-text); font-size: .95rem; font-weight: 650; text-decoration: none; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--wv-accent); }
.menu-toggle { display: none; padding: 8px 10px; color: var(--wv-text); background: transparent; border: 1px solid var(--wv-line); border-radius: 9px; }

.wv-hero { position: relative; min-height: clamp(470px, 67vh, 720px); display: grid; align-items: end; overflow: hidden; background: #25221e; color: #fff; }
.wv-hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .52; }
.wv-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(24,20,16,.87) 0%, rgba(24,20,16,.38) 65%, rgba(24,20,16,.18) 100%); }
.wv-hero__content { position: relative; z-index: 1; max-width: 760px; padding-block: clamp(80px, 12vw, 150px); }
.wv-eyebrow { margin: 0 0 12px; color: #e4bb7b; font-size: .78rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.wv-hero h1 { max-width: 720px; margin: 0; font-family: Georgia, serif; font-size: clamp(2.7rem, 7vw, 5.5rem); font-weight: 500; line-height: 1.02; text-wrap: balance; }
.wv-hero__lead { max-width: 620px; margin: 24px 0 0; color: rgba(255,255,255,.86); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.wv-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.wv-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 20px; border: 1px solid var(--wv-accent); border-radius: 999px; background: var(--wv-accent); color: #fff; font-weight: 750; text-decoration: none; transition: transform .2s, background .2s; }
.wv-button:hover { transform: translateY(-1px); background: var(--wv-accent-dark); color: #fff; }
.wv-button--light { border-color: rgba(255,255,255,.65); background: transparent; }
.wv-button--light:hover { background: #fff; color: var(--wv-text); }
.wv-hero-events { max-width: 650px; margin-top: 34px; padding: 18px 20px; border: 1px solid rgba(255,255,255,.23); border-radius: 14px; background: rgba(255,255,255,.07); backdrop-filter: blur(8px); }
.wv-hero-event { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; animation: wv-hero-event-in .38s ease-out; }
.wv-hero-event[hidden] { display: none; }
.wv-hero-event__date { display: block; margin-bottom: 3px; color: #e4bb7b; font-size: .76rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.wv-hero-event__title { margin: 0; color: #fff; font-family: Georgia, serif; font-size: clamp(1.15rem, 2.4vw, 1.5rem); line-height: 1.25; }
.wv-hero-event__link { color: #fff; font-size: .9rem; font-weight: 750; white-space: nowrap; }
.wv-hero-event__link:hover { color: #e4bb7b; }
.wv-hero-events__dots { display: flex; gap: 7px; margin-top: 14px; }
.wv-hero-events__dot { width: 24px; height: 4px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.3); cursor: pointer; }
.wv-hero-events__dot[aria-current="true"] { background: #e4bb7b; }
@keyframes wv-hero-event-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.wv-section { padding-block: clamp(64px, 9vw, 112px); }
.wv-section--surface { background: var(--wv-surface); }
.wv-section__head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 32px; }
.wv-section__head h2, .wv-content h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.1; }
.wv-section__head p { max-width: 620px; margin: 8px 0 0; color: var(--wv-muted); }
.wv-carousel__controls { display: flex; gap: 8px; }
.wv-carousel__button { width: 44px; height: 44px; border: 1px solid var(--wv-line); border-radius: 50%; background: var(--wv-surface); color: var(--wv-text); cursor: pointer; }
.wv-carousel__button:hover { border-color: var(--wv-accent); color: var(--wv-accent); }
.wv-carousel__viewport { overflow: hidden; }
.wv-carousel__track { display: grid; grid-auto-columns: minmax(280px, calc((100% - 48px) / 3)); grid-auto-flow: column; gap: 24px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; }
.wv-carousel__track::-webkit-scrollbar { display: none; }
.wv-event-card { position: relative; min-width: 0; height: 100%; min-height: 430px; display: flex; flex-direction: column; overflow: hidden; background: var(--wv-surface); border: 1px solid var(--wv-line); border-radius: var(--wv-radius); box-shadow: var(--wv-shadow); scroll-snap-align: start; }
.wv-event-card__image { position: relative; display: block; flex: 0 0 230px; overflow: hidden; background: #d8d0c2; }
.wv-event-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.wv-event-card:hover .wv-event-card__image img { transform: scale(1.025); }
.wv-event-card__body { position: relative; z-index: 1; flex: 1 1 auto; display: flex; flex-direction: column; padding: 24px; }
.wv-event-card__date { display: block; margin-bottom: 8px; color: var(--wv-accent-dark); font-size: .82rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.wv-event-card h3 { margin: 0 0 10px; font-family: Georgia, serif; font-size: clamp(1.25rem, 1.8vw, 1.45rem); line-height: 1.15; overflow-wrap: anywhere; hyphens: auto; }
.wv-event-card h3 a { color: var(--wv-text); text-decoration: none; }
.wv-event-card p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--wv-muted); font-size: .95rem; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.wv-event-card__link { display: inline-block; align-self: flex-start; margin-top: auto; padding-top: 18px; font-weight: 750; }
.wv-empty { padding: 34px; border: 1px dashed var(--wv-line); border-radius: var(--wv-radius); color: var(--wv-muted); text-align: center; }

.wv-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .75fr); gap: clamp(40px, 8vw, 100px); align-items: center; }
.wv-split h2 { margin: 0 0 20px; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.1; }
.wv-split__text { color: var(--wv-muted); }
.wv-split__text > *:first-child { margin-top: 0; }
.wv-split__text > *:last-child { margin-bottom: 0; }
.wv-callout { padding: clamp(30px, 5vw, 54px); border-radius: var(--wv-radius); background: #27231f; color: #fff; }
.wv-callout p { color: rgba(255,255,255,.75); }
.wv-content { width: min(calc(100% - 40px), 820px); margin-inline: auto; padding-block: clamp(60px, 9vw, 110px); }
.wv-content__meta { color: var(--wv-muted); }
.wv-content .wp-post-image { margin: 32px 0; border-radius: var(--wv-radius); }
.wv-post-list { display: grid; gap: 24px; }

.site-footer { padding-block: 50px; border-top: 1px solid var(--wv-line); color: var(--wv-muted); font-size: .9rem; }
.site-footer__inner { display: flex; justify-content: space-between; gap: 24px; }

@media (max-width: 820px) {
  .admin-bar .site-header { top: 46px; }
  .menu-toggle { display: inline-flex; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 20px; background: var(--wv-surface); border-bottom: 1px solid var(--wv-line); }
  .site-nav.is-open { display: block; }
  .site-nav ul { align-items: stretch; flex-direction: column; gap: 16px; }
  .wv-carousel__track { grid-auto-columns: minmax(280px, 72vw); }
  .wv-split { grid-template-columns: 1fr; }
  .site-footer__inner { flex-direction: column; }
}
@media (max-width: 520px) {
  .wv-container, .wv-content { width: min(calc(100% - 28px), var(--wv-width)); }
  .wv-section__head { align-items: start; flex-direction: column; }
  .wv-carousel__track { grid-auto-columns: 88vw; }
  .wv-hero h1 { font-size: 2.6rem; }
  .wv-hero-event { grid-template-columns: 1fr; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Event overview page | v1.0.16 */
.wv-events-page__hero {
  padding-block: clamp(70px, 10vw, 128px);
  border-bottom: 1px solid var(--wv-line);
  background: var(--wv-bg);
}
.wv-events-page__hero-inner { max-width: 900px; }
.wv-events-page__hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(2.7rem, 7vw, 5.2rem);
  font-weight: 500;
  line-height: 1.02;
  text-wrap: balance;
}
.wv-events-page__lead,
.wv-events-page__intro {
  max-width: 720px;
  margin-top: 24px;
  color: var(--wv-muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}
.wv-events-page__intro > :first-child { margin-top: 0; }
.wv-events-page__intro > :last-child { margin-bottom: 0; }
.wv-events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.wv-events-grid .wv-event-card { min-height: 100%; }
.wv-events-grid .wv-event-card__body p { -webkit-line-clamp: 5; }
.wv-events-grid--past .wv-event-card { box-shadow: none; }

@media (max-width: 980px) {
  .wv-events-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .wv-events-grid { grid-template-columns: 1fr; }
}
