/*
Theme Name: Golf auf Rügen
Theme URI: https://www.golfaufruegen.de/
Author: iGaming.com Ltd
Description: Premium WordPress theme for Golf auf Rügen — elegant editorial design combining golf course information with Rügen island tourism.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: golfaufruegen
*/

/* ═══════════════════════════════════════════════════════
   DESIGN SYSTEM TOKENS
   ═══════════════════════════════════════════════════════ */

:root {
  /* Colors — Premium Golf: Deep Green + Warm Gold */
  --color-primary: #1a3c2a;
  --color-on-primary: #ffffff;
  --color-secondary: #2d5a3f;
  --color-accent: #a67c2e;
  --color-accent-hover: #8b6820;
  --color-background: #faf9f6;
  --color-foreground: #1c1917;
  --color-card: #ffffff;
  --color-card-foreground: #1c1917;
  --color-muted: #f0ede8;
  --color-muted-foreground: #6b7280;
  --color-border: #d6d3d1;
  --color-destructive: #dc2626;
  --color-hero-overlay: rgba(26, 60, 42, 0.65);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-base: 16px;
  --line-height-body: 1.65;
  --line-height-heading: 1.15;

  /* Spacing — 8px grid */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  /* Layout */
  --max-width: 1240px;
  --max-width-narrow: 800px;

  /* Borders & Shadows */
  --border-radius-sm: 6px;
  --border-radius: 10px;
  --border-radius-lg: 16px;
  --border-radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 16px 40px rgba(0, 0, 0, 0.14), 0 6px 12px rgba(0, 0, 0, 0.06);

  /* Transitions */
  --transition-fast: 150ms ease-out;
  --transition-base: 250ms ease-out;
  --transition-slow: 400ms ease-out;

  /* Z-index */
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-fixed: 30;
  --z-modal-backdrop: 40;
  --z-modal: 50;
}


/* ═══════════════════════════════════════════════════════
   CSS RESET / BASE
   ═══════════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: var(--font-size-base);
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-body);
  color: var(--color-foreground);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}


/* ═══════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: var(--line-height-heading);
  color: var(--color-foreground);
  font-weight: 700;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
}

h4 {
  font-size: 1.125rem;
  font-weight: 600;
}

p {
  margin-bottom: var(--space-md);
  color: var(--color-muted-foreground);
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: var(--color-muted-foreground);
}


/* ═══════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════ */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

@media (min-width: 768px) {
  .section {
    padding-top: var(--space-4xl);
    padding-bottom: var(--space-4xl);
  }
}

.section--muted {
  background-color: var(--color-muted);
}

.section--dark {
  background-color: var(--color-primary);
  color: var(--color-on-primary);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-on-primary);
}

.section--dark p {
  color: rgba(255, 255, 255, 0.8);
}


/* ═══════════════════════════════════════════════════════
   SECTION HEADER (reused across all sections)
   ═══════════════════════════════════════════════════════ */

.section-header {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: var(--space-3xl);
  }
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  font-size: 1.0625rem;
}


/* ═══════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.btn--primary {
  padding: 14px 32px;
  background-color: var(--color-accent);
  color: var(--color-on-primary);
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  padding: 14px 32px;
  background-color: transparent;
  color: var(--color-on-primary);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn--secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn--outline {
  padding: 12px 28px;
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--outline:hover {
  background-color: var(--color-primary);
  color: var(--color-on-primary);
}

.btn--ghost {
  padding: 12px 24px;
  background-color: transparent;
  color: var(--color-accent);
}

.btn--ghost:hover {
  background-color: var(--color-muted);
}

.btn--lg {
  padding: 18px 40px;
  font-size: 1.0625rem;
  border-radius: var(--border-radius-lg);
}


/* ═══════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-fixed);
  transition: all var(--transition-base);
}

/* Fallback: solid header when JS hasn't run yet */
.site-header--transparent {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-border);
}

/* Once JS confirms hero is present, make header transparent */
.js-has-hero .site-header--transparent {
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.site-header--scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  transition: height var(--transition-base);
}

@media (min-width: 1024px) {
  .site-header__inner {
    height: 88px;
  }

  .site-header--scrolled .site-header__inner {
    height: 72px;
  }
}

.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 40px;
  width: auto;
  transition: filter var(--transition-base);
}

@media (min-width: 1024px) {
  .site-logo img {
    height: 48px;
  }
}

/* Logo: gold on white header, white on hero */
.site-logo img {
  filter: brightness(0) invert(46%) sepia(98%) saturate(407%) hue-rotate(11deg) brightness(93%) contrast(88%);
  transition: filter var(--transition-base);
}

.js-has-hero .site-header--transparent .site-logo img {
  filter: brightness(0) invert(1);
}

.site-header--scrolled .site-logo img {
  filter: brightness(0) invert(46%) sepia(98%) saturate(407%) hue-rotate(11deg) brightness(93%) contrast(88%);
}

.site-logo__text {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-foreground);
  white-space: nowrap;
  transition: color var(--transition-base);
}

/* Default: dark logo text (safe fallback) */
.site-header--transparent .site-logo__text {
  color: var(--color-foreground);
}

/* With hero: white logo text */
.js-has-hero .site-header--transparent .site-logo__text {
  color: #fff;
}

.site-header--scrolled .site-logo__text {
  color: var(--color-foreground);
}

.nav-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
    align-items: center;
  }
}

.nav-desktop ul {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-desktop li {
  margin: 0;
  padding: 0;
}

.nav-desktop__link {
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
  padding: var(--space-sm) 0;
}

/* Default: dark text on light header (safe fallback) */
.site-header--transparent .nav-desktop__link {
  color: var(--color-foreground);
}

.site-header--transparent .nav-desktop__link:hover {
  color: var(--color-accent);
}

/* With hero present: white text on transparent header */
.js-has-hero .site-header--transparent .nav-desktop__link {
  color: rgba(255, 255, 255, 0.9);
}

.js-has-hero .site-header--transparent .nav-desktop__link:hover {
  color: var(--color-on-primary);
}

.site-header--scrolled .nav-desktop__link {
  color: var(--color-foreground);
}

.site-header--scrolled .nav-desktop__link:hover {
  color: var(--color-accent);
}

.nav-desktop__link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.nav-desktop__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-base);
}

.nav-desktop__link:hover::after {
  width: 100%;
}

.nav-cta {
  display: none;
}

@media (min-width: 1024px) {
  .nav-cta .btn--primary {
    padding: 10px 24px;
    font-size: 0.875rem;
  }

  .nav-cta {
    display: block;
  }
}

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: calc(var(--z-modal) + 1);
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle__bar {
  width: 100%;
  height: 2px;
  border-radius: 2px;
  transition: all var(--transition-base);
}

.site-header--transparent .nav-toggle__bar {
  background-color: var(--color-on-primary);
}

.site-header--scrolled .nav-toggle__bar {
  background-color: var(--color-foreground);
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.nav-mobile {
  position: fixed;
  inset: 0;
  background-color: var(--color-primary);
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-slow);
}

.nav-mobile.is-open {
  opacity: 1;
  visibility: visible;
}

.nav-mobile__link {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  transition: color var(--transition-fast);
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-slow);
}

.nav-mobile.is-open .nav-mobile__link {
  transform: translateY(0);
  opacity: 1;
}

.nav-mobile__link:hover {
  color: var(--color-accent);
}

.nav-mobile__link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Stagger mobile nav links */
.nav-mobile__link:nth-child(1) { transition-delay: 80ms; }
.nav-mobile__link:nth-child(2) { transition-delay: 130ms; }
.nav-mobile__link:nth-child(3) { transition-delay: 180ms; }
.nav-mobile__link:nth-child(4) { transition-delay: 230ms; }
.nav-mobile__link:nth-child(5) { transition-delay: 280ms; }
.nav-mobile__link:nth-child(6) { transition-delay: 330ms; }
.nav-mobile__link:nth-child(7) { transition-delay: 380ms; }


/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(26, 60, 42, 0.82) 0%,
    rgba(26, 60, 42, 0.55) 50%,
    rgba(26, 60, 42, 0.72) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding-top: var(--space-4xl);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background-color: var(--color-accent);
}

.hero h1 {
  color: var(--color-on-primary);
  margin-bottom: var(--space-lg);
}

.hero__subtitle {
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-2xl);
  max-width: 540px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: float 2.5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

.hero__scroll-indicator svg {
  width: 20px;
  height: 20px;
}


/* ═══════════════════════════════════════════════════════
   COURSE CARDS
   ═══════════════════════════════════════════════════════ */

.courses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .courses-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.course-card {
  background-color: var(--color-card);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.course-card__image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.course-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.course-card:hover .course-card__image img {
  transform: scale(1.05);
}

.course-card__badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  padding: 6px 14px;
  background-color: var(--color-accent);
  color: var(--color-on-primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--border-radius-sm);
}

.course-card__body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-card__title {
  font-size: 1.1875rem;
  margin-bottom: var(--space-sm);
  color: var(--color-foreground);
}

.course-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.8125rem;
  color: var(--color-muted-foreground);
  margin-bottom: var(--space-md);
}

.course-card__meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.course-card__meta-item svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.course-card__description {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-muted-foreground);
  margin-bottom: var(--space-md);
  flex: 1;
}

.course-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  transition: gap var(--transition-fast);
}

.course-card__link:hover {
  gap: var(--space-md);
}

.course-card__link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.course-card__link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.course-card__link:hover svg {
  transform: translateX(2px);
}


/* ═══════════════════════════════════════════════════════
   ALTERNATING FEATURE ROWS (Warum Rügen)
   ═══════════════════════════════════════════════════════ */

.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 768px) {
  .feature-row {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }
}

.feature-row + .feature-row {
  margin-top: var(--space-3xl);
}

@media (min-width: 768px) {
  .feature-row + .feature-row {
    margin-top: var(--space-4xl);
  }
}

@media (min-width: 768px) {
  .feature-row--reverse .feature-row__image {
    order: 2;
  }

  .feature-row--reverse .feature-row__text {
    order: 1;
  }
}

.feature-row__image {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.feature-row__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-row__text h3 {
  color: var(--color-foreground);
  margin-bottom: var(--space-md);
}

.feature-row__text p {
  margin-bottom: var(--space-lg);
}

.feature-row__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.feature-row__list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  font-size: 0.9375rem;
  color: var(--color-muted-foreground);
}

.feature-row__list-item svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  margin-top: 2px;
}


/* ═══════════════════════════════════════════════════════
   STEPS (Für Einsteiger)
   ═══════════════════════════════════════════════════════ */

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }
}

.step-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  background-color: var(--color-card);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.step-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--border-radius-full);
  background-color: var(--color-primary);
  color: var(--color-on-primary);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.step-card__title {
  margin-bottom: var(--space-sm);
  color: var(--color-foreground);
}

.step-card__text {
  font-size: 0.9375rem;
}

/* Connector line between steps (desktop only) */
@media (min-width: 768px) {
  .step-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: calc(var(--space-2xl) + 28px);
    right: calc(-1 * var(--space-xl) / 2 - 16px);
    width: calc(var(--space-xl) + 32px);
    height: 2px;
    background: repeating-linear-gradient(
      90deg,
      var(--color-border) 0,
      var(--color-border) 6px,
      transparent 6px,
      transparent 12px
    );
  }
}


/* ═══════════════════════════════════════════════════════
   TOURNAMENTS / EVENT CARDS
   ═══════════════════════════════════════════════════════ */

.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .events-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.event-card {
  background-color: var(--color-card);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.event-card:hover {
  box-shadow: var(--shadow-md);
}

.event-card__date {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.event-card__date svg {
  width: 16px;
  height: 16px;
}

.event-card__title {
  margin-bottom: var(--space-sm);
}

.event-card__text {
  font-size: 0.9375rem;
  margin-bottom: var(--space-md);
}

.event-card__location {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8125rem;
  color: var(--color-muted-foreground);
}

.event-card__location svg {
  width: 14px;
  height: 14px;
}


/* ═══════════════════════════════════════════════════════
   FAQ / ACCORDION (Etikette)
   ═══════════════════════════════════════════════════════ */

.faq-list {
  max-width: var(--max-width-narrow);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-item {
  background-color: var(--color-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-lg);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-foreground);
  gap: var(--space-md);
  transition: color var(--transition-fast);
}

.faq-item__question:hover {
  color: var(--color-accent);
}

.faq-item__question:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
  border-radius: var(--border-radius);
}

.faq-item__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  transition: transform var(--transition-base);
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-item__answer-inner {
  padding: 0 var(--space-lg) var(--space-lg);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-muted-foreground);
}


/* ═══════════════════════════════════════════════════════
   CTA BANNER
   ═══════════════════════════════════════════════════════ */

.cta-banner {
  position: relative;
  overflow: hidden;
}

.cta-banner__inner {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .cta-banner__inner {
    padding: var(--space-4xl) var(--space-lg);
  }
}

.cta-banner h2 {
  color: var(--color-on-primary);
  margin-bottom: var(--space-md);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-xl);
  font-size: 1.0625rem;
}


/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */

.site-footer {
  background-color: var(--color-foreground);
  color: rgba(255, 255, 255, 0.7);
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-col__title {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-lg);
}

.footer-col__text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

.footer-col__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-col__link {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
}

.footer-col__link:hover {
  color: var(--color-accent);
}

.footer-col__link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-full);
  background-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition-fast);
}

.footer-social__link:hover {
  background-color: var(--color-accent);
  color: var(--color-on-primary);
}

.footer-social__link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.footer-social__link svg {
  width: 18px;
  height: 18px;
}


/* ═══════════════════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════════════════ */

/* Reveal animations: hidden by default only when JS is active */
.js-reveal-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js-reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Without JS: everything visible by default */
.reveal {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }
.reveal-delay-5 { transition-delay: 500ms; }

@media (prefers-reduced-motion: reduce) {
  .js-reveal-ready .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__media video {
    display: none;
  }

  .hero__media {
    background: url('img/hero-golf-ruegen.webp') center / cover no-repeat;
  }
}


/* ═══════════════════════════════════════════════════════
   SKIP LINK (Accessibility)
   ═══════════════════════════════════════════════════════ */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background-color: var(--color-accent);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--border-radius-sm);
  z-index: 100;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-md);
}


/* ═══════════════════════════════════════════════════════
   STICKY MOBILE CTA
   ═══════════════════════════════════════════════════════ */

.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
  z-index: var(--z-sticky);
  opacity: 0;
  transform: translateY(100%);
  transition: all var(--transition-base);
}

.mobile-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mobile-cta .btn {
  width: 100%;
}

@media (max-width: 1023px) {
  .mobile-cta {
    display: block;
  }
}


/* ═══════════════════════════════════════════════════════
   BLOG GRID (index.php)
   ═══════════════════════════════════════════════════════ */

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 640px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  background-color: var(--color-card);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.blog-card__image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.05);
}

.blog-card__body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8125rem;
  color: var(--color-muted-foreground);
  margin-bottom: var(--space-md);
}

.blog-card__title {
  font-size: 1.1875rem;
  margin-bottom: var(--space-sm);
}

.blog-card__title a {
  color: var(--color-foreground);
  transition: color var(--transition-fast);
}

.blog-card__title a:hover {
  color: var(--color-accent);
}

.blog-card__title a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.blog-card__excerpt {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-muted-foreground);
  margin-bottom: var(--space-md);
  flex: 1;
}

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  transition: gap var(--transition-fast);
}

.blog-card__link:hover {
  gap: var(--space-md);
}

.blog-card__link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}


/* ═══════════════════════════════════════════════════════
   BLOG PAGINATION
   ═══════════════════════════════════════════════════════ */

.blog-pagination {
  margin-top: var(--space-3xl);
  display: flex;
  justify-content: center;
}

.blog-pagination ul {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.blog-pagination li {
  list-style: none;
}

.blog-pagination a,
.blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 var(--space-md);
  border-radius: var(--border-radius);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  gap: var(--space-sm);
}

.blog-pagination a {
  color: var(--color-foreground);
  background-color: var(--color-card);
  box-shadow: var(--shadow-sm);
}

.blog-pagination a:hover {
  background-color: var(--color-primary);
  color: var(--color-on-primary);
}

.blog-pagination a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.blog-pagination .current {
  background-color: var(--color-accent);
  color: var(--color-on-primary);
  font-weight: 700;
}


/* ═══════════════════════════════════════════════════════
   SINGLE POST (single.php)
   ═══════════════════════════════════════════════════════ */

.post-hero {
  position: relative;
  height: 50vh;
  min-height: 320px;
  max-height: 560px;
  overflow: hidden;
}

.post-hero--no-image {
  height: 180px;
  background-color: var(--color-primary);
}

.post-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 60, 42, 0.3) 0%,
    rgba(26, 60, 42, 0.6) 100%
  );
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8125rem;
  color: var(--color-muted-foreground);
  margin-bottom: var(--space-lg);
}

.post-meta__sep {
  color: var(--color-border);
}

.post-meta a {
  color: var(--color-accent);
  transition: color var(--transition-fast);
}

.post-meta a:hover {
  color: var(--color-accent-hover);
}

.post-title {
  margin-bottom: var(--space-2xl);
}

/* WordPress Content Styles */
.post-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-foreground);
}

.post-content p {
  color: var(--color-foreground);
  margin-bottom: var(--space-lg);
}

.post-content h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.post-content h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.post-content ul,
.post-content ol {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.post-content ul {
  list-style: disc;
}

.post-content ol {
  list-style: decimal;
}

.post-content li {
  margin-bottom: var(--space-sm);
  color: var(--color-foreground);
  line-height: 1.7;
}

.post-content blockquote {
  border-left: 4px solid var(--color-accent);
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
  background-color: var(--color-muted);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-style: italic;
}

.post-content blockquote p {
  margin-bottom: 0;
  color: var(--color-foreground);
}

.post-content img {
  border-radius: var(--border-radius);
  margin: var(--space-xl) 0;
}

.post-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.post-content a:hover {
  color: var(--color-accent-hover);
}

.post-content a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.post-content pre {
  background-color: var(--color-foreground);
  color: var(--color-background);
  padding: var(--space-lg);
  border-radius: var(--border-radius);
  overflow-x: auto;
  margin: var(--space-xl) 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

.post-content code {
  background-color: var(--color-muted);
  padding: 2px 6px;
  border-radius: var(--border-radius-sm);
  font-size: 0.9em;
}

.post-content pre code {
  background: none;
  padding: 0;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-xl) 0;
}

.post-content th,
.post-content td {
  padding: var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.post-content th {
  font-weight: 600;
  background-color: var(--color-muted);
}

/* WordPress Image Alignments */
.post-content .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.post-content .alignleft {
  float: left;
  margin-right: var(--space-lg);
  margin-bottom: var(--space-md);
}

.post-content .alignright {
  float: right;
  margin-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.post-content .wp-caption {
  max-width: 100%;
}

.post-content .wp-caption-text,
.post-content figcaption {
  font-size: 0.8125rem;
  color: var(--color-muted-foreground);
  text-align: center;
  margin-top: var(--space-sm);
}

/* WordPress Gallery */
.post-content .wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}

.post-content .wp-block-gallery img {
  margin: 0;
  border-radius: var(--border-radius-sm);
}


/* ═══════════════════════════════════════════════════════
   POST TAGS
   ═══════════════════════════════════════════════════════ */

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.post-tags a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-muted-foreground);
  background-color: var(--color-muted);
  border-radius: var(--border-radius-full);
  transition: all var(--transition-fast);
}

.post-tags a:hover {
  background-color: var(--color-primary);
  color: var(--color-on-primary);
}

.post-tags a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* WordPress default tag output: rel="tag" */
.post-tags a[rel="tag"] {
  text-decoration: none;
}


/* ═══════════════════════════════════════════════════════
   POST NAVIGATION (Prev/Next)
   ═══════════════════════════════════════════════════════ */

.post-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

@media (min-width: 640px) {
  .post-nav {
    grid-template-columns: 1fr 1fr;
  }
}

.post-nav__link {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background-color: var(--color-muted);
  border-radius: var(--border-radius);
  transition: all var(--transition-base);
}

.post-nav__link:hover {
  background-color: var(--color-primary);
  color: var(--color-on-primary);
}

.post-nav__link:hover .post-nav__label,
.post-nav__link:hover .post-nav__title {
  color: var(--color-on-primary);
}

.post-nav__link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.post-nav__link--next {
  text-align: right;
}

@media (min-width: 640px) {
  .post-nav__link--next {
    grid-column: 2;
  }
}

.post-nav__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  transition: color var(--transition-fast);
}

.post-nav__link--next .post-nav__label {
  justify-content: flex-end;
}

.post-nav__title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-foreground);
  transition: color var(--transition-fast);
}


/* ─── Comments ──────────────────────────────────────── */

.comments-area {
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
}

.comments-area__title {
  font-size: 1.375rem;
  margin-bottom: var(--space-xl);
}

.comments-list {
  list-style: none;
  padding: 0;
}

.comments-list .comment {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-border);
}

.comments-list .comment-body {
  display: flex;
  gap: var(--space-md);
}

.comments-list .comment-body .avatar {
  border-radius: 50%;
  flex-shrink: 0;
}

.comments-list .comment-author {
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.comments-list .comment-metadata {
  font-size: 0.8125rem;
  color: var(--color-muted-foreground);
  margin-bottom: var(--space-sm);
}

.comments-list .comment-metadata a {
  color: inherit;
}

.comments-list .comment-content p {
  margin-bottom: var(--space-sm);
}

.comments-list .reply a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent);
}

.comments-area__closed {
  color: var(--color-muted-foreground);
  font-style: italic;
}

.comment-respond {
  margin-top: var(--space-2xl);
}

.comment-respond .comment-reply-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-lg);
}

.comment-form label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  background: var(--color-card);
  color: var(--color-foreground);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
  margin-bottom: var(--space-md);
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb, 42, 101, 67), 0.15);
}

.comment-form textarea {
  min-height: 140px;
  resize: vertical;
}

.comment-form .form-submit .submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-xl);
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.comment-form .form-submit .submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.comment-form .form-submit .submit:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
