/*
Theme Name: HSV Bergkamen
Theme URI: https://hsv-bergkamen.de
Author: HSV Bergkamen 1919 e.V.
Description: Vereinswebsite Hundesportverein Bergkamen 1919 e.V. – Agility, Basis, Rally, Hoopers, Begleithund.
Version: 1.4.8
License: GNU General Public License v2 or later
Text Domain: hsv-bergkamen
*/

:root {
  --green-dark:   #1e3d1a;
  --green:        #2c5f2e;
  --green-light:  #4a8c4d;
  --amber:        #e8901a;
  --amber-dark:   #c97510;
  --cream:        #faf8f3;
  --off-white:    #f2efe8;
  --border:       #ddd9ce;
  --ink:          #1c1c1c;
  --muted:        #5a5850;
  --white:        #ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
}

/* ─── NAV ─────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(30, 61, 26, 0.97);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 0.75rem; }
.nav-logo img,
.nav-logo .custom-logo,
.nav-logo .custom-logo-link img,
a.custom-logo-link img,
img.custom-logo {
  display: block !important;
  height: 44px !important;
  max-height: 44px !important;
  width: auto !important;
  max-width: 180px !important;
  object-fit: contain !important;
}
.nav-logo .custom-logo-link,
a.custom-logo-link {
  display: flex;
  align-items: center;
  height: 44px;
  overflow: hidden;
}
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.8);
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--amber); }
.nav-cta {
  background: var(--amber); color: var(--white) !important;
  padding: 0.45rem 1.1rem; border-radius: 4px;
  font-weight: 600 !important; transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--amber-dark) !important; color: var(--white) !important; }

/* ─── HERO ────────────────────────────────────────────── */
.hero {
  height: 100vh; min-height: 600px;
  position: relative; display: flex; align-items: flex-end; overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(20,40,18,0.80) 0%, rgba(20,40,18,0.40) 60%, transparent 100%);
}
.hero-overlay-bottom {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 200px; background: linear-gradient(to top, var(--cream), transparent);
}
.hero-content { position: relative; z-index: 2; padding: 0 2.5rem 6rem; max-width: 640px; }
.hero-eyebrow {
  font-family: 'Oswald', sans-serif; font-size: 0.8rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 1rem;
}
.hero-headline {
  font-family: 'Oswald', sans-serif; font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700; line-height: 1.0; color: var(--white);
  text-wrap: balance; margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: 1.05rem; color: rgba(255,255,255,0.82);
  max-width: 440px; margin-bottom: 2rem; font-weight: 300;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-since {
  position: absolute; bottom: 6rem; right: 3rem;
  font-family: 'Oswald', sans-serif; font-size: 0.75rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); z-index: 2;
}

/* ─── BUTTONS ─────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--amber); color: var(--white); font-weight: 600;
  font-size: 0.92rem; letter-spacing: 0.04em;
  padding: 0.8rem 1.8rem; border-radius: 4px; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--amber-dark); transform: translateY(-1px); color: var(--white); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--white); font-weight: 500; font-size: 0.92rem;
  letter-spacing: 0.04em; padding: 0.8rem 1.8rem; border-radius: 4px;
  border: 1.5px solid rgba(255,255,255,0.4); text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

/* ─── SECTION COMMONS ─────────────────────────────────── */
section { padding: 5rem 2.5rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-family: 'Oswald', sans-serif; font-size: 0.72rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 0.6rem;
}
.section-title {
  font-family: 'Oswald', sans-serif; font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 600; line-height: 1.1; color: var(--green-dark); margin-bottom: 0.5rem;
}
.section-lead {
  font-size: 1rem; color: var(--muted);
  max-width: 560px; margin-bottom: 2.5rem; font-weight: 400;
}

/* ─── DISCIPLINES ─────────────────────────────────────── */
.disciplines { background: var(--cream); }
.discipline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem; margin-top: 2.5rem;
}
.discipline-card {
  position: relative; border-radius: 8px; overflow: hidden;
  aspect-ratio: 4/3; background: var(--green-dark);
  cursor: pointer; text-decoration: none; display: block;
}
.discipline-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s ease, filter 0.4s; filter: brightness(0.85);
}
.discipline-card:hover img { transform: scale(1.04); filter: brightness(0.7); }
.discipline-card-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.5rem 1rem 0.9rem;
  background: linear-gradient(to top, rgba(20,40,18,0.88) 0%, transparent 100%);
  color: var(--white);
}
.discipline-card-label h3 {
  font-family: 'Oswald', sans-serif; font-size: 1.15rem;
  font-weight: 600; letter-spacing: 0.02em;
}
.discipline-card-label p { font-size: 0.78rem; color: rgba(255,255,255,0.75); margin-top: 0.15rem; }
.discipline-card-label .card-more {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.75rem; color: var(--amber); letter-spacing: 0.06em;
  margin-top: 0.5rem; font-weight: 500; opacity: 0; transition: opacity 0.25s;
}
.discipline-card:hover .card-more { opacity: 1; }
.badge-anfrage {
  display: inline-block;
  background: rgba(232,144,26,0.25); border: 1px solid rgba(232,144,26,0.5);
  color: var(--amber); font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.15rem 0.5rem;
  border-radius: 3px; margin-top: 0.3rem;
}
.discipline-card.featured { grid-column: span 2; aspect-ratio: 16/7; }

/* ─── GALLERY STRIP ───────────────────────────────────── */
.gallery-strip { background: var(--ink); overflow: hidden; padding: 0; }
.gallery-strip-inner { display: flex; gap: 4px; height: 200px; }
.gallery-strip-inner img {
  flex: 1; object-fit: cover; min-width: 0;
  filter: brightness(0.85); transition: flex 0.4s ease, filter 0.4s;
}
.gallery-strip-inner img:hover { flex: 3; filter: brightness(1); }

/* ─── PHILOSOPHY ──────────────────────────────────────── */
.philosophy { background: var(--green-dark); color: var(--white); }
.philosophy .section-title { color: var(--white); }
.philosophy .section-label { color: var(--amber); }
.philosophy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.philosophy-img { border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; }
.philosophy-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.philosophy-text .section-lead { color: rgba(255,255,255,0.72); max-width: none; }
.philosophy-pillars { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.pillar { display: flex; gap: 1rem; align-items: flex-start; }
.pillar-dot {
  width: 8px; height: 8px; background: var(--amber);
  border-radius: 50%; margin-top: 0.5rem; flex-shrink: 0;
}
.pillar-text h4 { font-weight: 600; font-size: 0.95rem; color: var(--white); margin-bottom: 0.15rem; }
.pillar-text p { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

/* ─── PROBE ───────────────────────────────────────────── */
.probe { background: var(--off-white); }
.probe-inner {
  background: var(--white); border-radius: 12px;
  border: 1px solid var(--border); padding: 3rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  align-items: center; max-width: 1200px; margin: 0 auto;
}
.probe-img { border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; }
.probe-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.probe-steps { margin: 1.5rem 0 2rem; display: flex; flex-direction: column; gap: 0.85rem; }
.probe-step { display: flex; align-items: center; gap: 0.85rem; font-size: 0.92rem; color: var(--ink); }
.probe-step-num {
  width: 28px; height: 28px; background: var(--green); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.78rem; color: var(--white); flex-shrink: 0;
}
.notice-box {
  background: #fff8ee; border: 1px solid #f0d090; border-radius: 6px;
  padding: 0.85rem 1rem; font-size: 0.84rem; color: #7a5a10; line-height: 1.5;
}

/* ─── TRAININGSZEITEN ─────────────────────────────────── */
.trainingszeiten { background: var(--cream); }
.tz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem; }
.tz-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 8px; padding: 1.4rem 1.5rem; border-top: 3px solid var(--green);
}
.tz-card h3 {
  font-family: 'Oswald', sans-serif; font-size: 1rem; font-weight: 600;
  color: var(--green-dark); margin-bottom: 0.6rem;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.tz-row {
  display: grid; grid-template-columns: 6.5rem 1fr auto;
  align-items: center; gap: 0.4rem; font-size: 0.88rem;
  padding: 0.35rem 0; border-bottom: 1px solid var(--border); color: var(--muted);
  min-width: 0;
}
.tz-row:last-child { border-bottom: none; }

/* Termine-Karten: Grid überschreiben, eigenes Block-Layout */
.termine-list .tz-row {
  display: block;
  border-bottom: none;
  grid-template-columns: unset;
}
.tz-tag { color: var(--ink); font-weight: 500; white-space: nowrap; min-width: 0; }
.tz-zeit { white-space: nowrap; min-width: 0; }
.tz-gruppe {
  font-size: 0.72rem; font-weight: 600; background: var(--green); color: #fff;
  padding: 0.1rem 0.45rem; border-radius: 3px; letter-spacing: 0.03em;
  white-space: nowrap; justify-self: end;
}

/* ─── LOCATION ────────────────────────────────────────── */
.location { background: var(--off-white); }
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; margin-top: 2rem; }
.location-info address { font-style: normal; margin-bottom: 1.5rem; }
.location-info address p { font-size: 1rem; margin-bottom: 0.2rem; }
.location-info address strong { font-size: 1.1rem; font-weight: 600; }
.location-map {
  background: var(--border); border-radius: 8px; overflow: hidden; height: 280px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: var(--muted); border: 1px solid var(--border);
}
.location-map iframe { width: 100%; height: 100%; border: none; }
.contact-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--green); font-weight: 500; text-decoration: none;
  font-size: 0.92rem; margin-top: 0.5rem;
}
.contact-link:hover { color: var(--green-dark); }

/* ─── FOOTER ──────────────────────────────────────────── */
footer { background: var(--green-dark); color: rgba(255,255,255,0.65); padding: 3.5rem 2.5rem 2rem; }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand h2 {
  font-family: 'Oswald', sans-serif; font-size: 1.2rem; font-weight: 700;
  color: var(--white); letter-spacing: 0.04em; margin-bottom: 0.5rem;
}
.footer-brand p { font-size: 0.84rem; line-height: 1.6; margin-bottom: 1rem; }
.footer-badge {
  display: inline-block; background: rgba(232,144,26,0.2);
  border: 1px solid rgba(232,144,26,0.4); color: var(--amber);
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3rem 0.75rem; border-radius: 4px;
}
.footer-col h4 {
  font-family: 'Oswald', sans-serif; font-size: 0.8rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--white); margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { font-size: 0.84rem; color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--amber); }
.footer-bottom {
  max-width: 1200px; margin: 1.5rem auto 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; color: rgba(255,255,255,0.35);
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: var(--amber); }

/* ─── SPARTEN-EINZELSEITE ─────────────────────────────── */
.sparte-hero {
  height: 55vh; min-height: 380px;
  position: relative; display: flex; align-items: flex-end; overflow: hidden;
  margin-top: 64px;
}
.sparte-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sparte-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(20,40,18,0.85) 0%, rgba(20,40,18,0.4) 70%, transparent 100%);
}
.sparte-hero-content { position: relative; z-index: 2; padding: 0 2.5rem 3.5rem; }
.sparte-hero-content h1 {
  font-family: 'Oswald', sans-serif; font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700; color: var(--white); line-height: 1.0; margin-bottom: 0.75rem;
}
.sparte-hero-content p { font-size: 1rem; color: rgba(255,255,255,0.82); max-width: 480px; }
.sparte-content { background: var(--cream); padding: 4rem 2.5rem; }
.sparte-content .section-inner { display: grid; grid-template-columns: 2fr 1fr; gap: 4rem; }
.sparte-text { font-size: 0.97rem; line-height: 1.75; color: var(--ink); }
.sparte-text h2 { font-family: 'Oswald', sans-serif; font-size: 1.6rem; color: var(--green-dark); margin-bottom: 1rem; }
.sparte-text p { margin-bottom: 1.1rem; }
.sparte-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.sparte-tz-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 8px;
  padding: 1.4rem 1.5rem; border-top: 3px solid var(--amber);
}
.sparte-tz-card h3 {
  font-family: 'Oswald', sans-serif; font-size: 0.85rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--green-dark); margin-bottom: 0.75rem;
}
.sparte-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 3rem; }
.sparte-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; }

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 900px) {
  .tz-grid { grid-template-columns: repeat(2, 1fr); }
  .philosophy-grid, .probe-inner, .location-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .discipline-card.featured { grid-column: span 1; aspect-ratio: 4/3; }
  .philosophy-img { order: -1; }
  nav { padding: 0 1rem; }
  .nav-links { gap: 1rem; }
  section { padding: 3.5rem 1.5rem; }
  .sparte-content .section-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tz-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero-content { padding: 0 1.5rem 5rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .sparte-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* ─── PAGE CONTENT TYPOGRAPHY ────────────────────────── */
.page-body p { margin-bottom: 1.1em; }
.page-body p:last-child { margin-bottom: 0; }
