/* ============================================================
   KK Klub Waldesgrün – Custom Styles
   ============================================================ */

/* --- Fonts & Basis ----------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --gruen:        #2d6a4f;
  --gruen-hell:   #40916c;
  --gruen-dunkel: #1b4332;
  --akzent:       #74c69d;
  --bg:           #f4f6f4;
  --karte:        #ffffff;
  --text:         #1e2d24;
  --text-leicht:  #4a5e52;
  --rand:         #d8e8dc;
  --schatten:     0 2px 16px rgba(27,67,50,.10);
  --radius:       10px;
}

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

body {
  font-family: 'Inter', system-ui, sans-serif !important;
  background: var(--bg) !important;
  color: var(--text) !important;
  margin: 0;
}

/* --- Navbar ------------------------------------------------ */
nav[role="navigation"] {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 60px;
  background: rgba(27, 67, 50, 0.93);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}

body {
  padding-top: 60px; /* Platz für die fixierte Nav */
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

/* Logo */
.nav-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.nav-logo img { height: 44px; width: auto; display: block; }
.nav-logo span { color: #fff; font-size: 1rem; font-weight: 600; }

/* Nav-Links */
.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: .1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  display: block;
  white-space: nowrap;
  padding: .4rem .7rem;
  border-radius: 6px;
  color: rgba(255,255,255,.85) !important;
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: background .2s, color .2s;
}

.nav-links li a:hover { background: rgba(255,255,255,.15); color: #fff !important; }

/* Hamburger (Mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  flex-shrink: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: .3s;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top:  7px; }
.nav-toggle.offen span           { background: transparent; }
.nav-toggle.offen span::before   { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.offen span::after    { transform: rotate(-45deg) translate(5px,-5px); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 60px; left: 0; right: 0;
    z-index: 199;
    background: var(--gruen-dunkel);
    padding: .5rem 1rem 1rem;
    border-top: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
  }
  .nav-links.offen { display: flex; }
  .nav-links li a { padding: .65rem 1rem; white-space: normal; }
}

/* --- Hero -------------------------------------------------- */
header.cover {
  width: 100%;
  background-position: center center; /* kein !important – Inline-Style hat Vorrang */
  background-size: cover;
  margin-top: -60px;
  height: clamp(280px, 38vw, 540px);
}

header.cover > div {
  height: 100%;                /* füllt den Hero vollständig aus */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 60px;           /* Inhalt unterhalb der Nav */
  padding-left: 1rem;
  padding-right: 1rem;
  padding-bottom: 2rem;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.50) 0%,
    rgba(0,0,0,.20) 50%,
    rgba(0,0,0,.50) 100%
  ) !important;
}

header .tc-l h1 {
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  font-size: clamp(1.6rem, 4vw, 3rem) !important;
  letter-spacing: -.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

header .tc-l h2 {
  font-weight: 300 !important;
  font-size: clamp(1rem, 2vw, 1.3rem) !important;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

/* Logo im Hero */
header .tc-l img.mw4 {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));
  max-width: 120px !important;
}

/* --- Seitenheader (ohne Bild) ------------------------------ */
header:not(.cover) > div {
  background: var(--gruen-dunkel) !important;
  padding: 2rem 1.5rem 1.75rem;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
header:not(.cover) h1 {
  font-weight: 700 !important;
  font-size: clamp(1.4rem, 3vw, 2.2rem) !important;
  color: #fff !important;
  margin: 0;
}

/* --- Hauptinhalt ------------------------------------------- */
main { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

/* Tachyons measure-wide überschreiben */
.measure-wide { max-width: 100% !important; }

/* Artikel-Text */
article.cf {
  background: var(--karte);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 2.5rem 2.5rem !important;
  margin: 2rem auto;
  max-width: 960px;
  width: 100%;
  line-height: 1.75;
  text-align: left !important;
}

article.cf h2, article.cf h3 {
  color: var(--gruen-dunkel);
  font-weight: 700;
  margin-top: 1.8rem;
}

article.cf a {
  color: var(--gruen-hell);
  text-decoration: underline;
  text-underline-offset: 3px;
}

article.cf a:hover { color: var(--gruen-dunkel); }

/* Tabellen */
article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .92rem;
}
article table th {
  background: var(--gruen);
  color: #fff;
  padding: .65rem 1rem;
  text-align: left;
  font-weight: 600;
}
article table td {
  padding: .6rem 1rem;
  border-bottom: 1px solid var(--rand);
}
article table tr:last-child td { border-bottom: none; }
article table tr:hover td { background: #f0f7f3; }

/* --- Startseiten-Kacheln ----------------------------------- */
.pa3.pa4-ns { max-width: 1100px; margin: 0 auto; }

section.w-100.mw8 { max-width: 100% !important; }

/* Post-Karten */
section.w-100 article.bb {
  background: var(--karte);
  border: none !important;
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  margin-bottom: 1.25rem;
  transition: transform .2s, box-shadow .2s;
  overflow: hidden;
}

section.w-100 article.bb:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(27,67,50,.16);
}

section.w-100 article.bb .db {
  padding: 1.4rem 1.6rem !important;
}

section.w-100 article.bb h1 a {
  color: var(--gruen-dunkel) !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
}
section.w-100 article.bb h1 a:hover { color: var(--gruen-hell) !important; }

section.w-100 article.bb .f6 { color: var(--text-leicht); }

/* --- Artikelinhalt (Single Pages) -------------------------- */
.artikel-inhalt {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}

.artikel-inhalt p  { margin: 0 0 1.1rem; }
.artikel-inhalt strong { font-weight: 600; color: var(--text); }
.artikel-inhalt h2 { color: var(--gruen-dunkel); font-weight: 700; margin: 1.8rem 0 .6rem; }
.artikel-inhalt h3 { color: var(--gruen-dunkel); font-weight: 600; margin: 1.4rem 0 .5rem; }
.artikel-inhalt ul, .artikel-inhalt ol { padding-left: 1.4rem; margin: 0 0 1.1rem; }
.artikel-inhalt li { margin-bottom: .3rem; }
.artikel-inhalt a  { color: var(--gruen-hell); text-underline-offset: 3px; }
.artikel-inhalt table { width:100%; border-collapse:collapse; margin:1rem 0; }
.artikel-inhalt table th { background:var(--gruen); color:#fff; padding:.6rem 1rem; text-align:left; }
.artikel-inhalt table td { padding:.55rem 1rem; border-bottom:1px solid var(--rand); }

/* --- Galerie ------------------------------------------- */
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  padding: 1.5rem 0;
}

.galerie-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--schatten);
  cursor: pointer;
}

.galerie-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
  display: block;
}

.galerie-item:hover img { transform: scale(1.06); }

.galerie-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(27,67,50,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s;
}

.galerie-item:hover .overlay {
  background: rgba(27,67,50,.35);
}

.galerie-item .overlay svg {
  opacity: 0;
  transition: opacity .3s;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.5));
}

.galerie-item:hover .overlay svg { opacity: 1; }

.galerie-kopf {
  background: var(--karte);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.galerie-kopf p { color: var(--text-leicht); margin: 0; }

/* --- Footer ------------------------------------------------ */
footer[role="contentinfo"] {
  background: var(--gruen-dunkel) !important;
  padding: 2.5rem 1.5rem !important;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-col h4 {
  color: var(--akzent);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 .75rem;
}

.footer-col p, .footer-col a {
  color: rgba(255,255,255,.7);
  font-size: .88rem;
  line-height: 1.7;
  margin: 0;
  text-decoration: none;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  color: rgba(255,255,255,.45);
  font-size: .8rem;
}

.footer-bottom a { color: rgba(255,255,255,.55); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* --- Responsive ------------------------------------------- */
@media (max-width: 600px) {
  article.cf { padding: 1.5rem 1.2rem !important; }
  .galerie-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .6rem; }
}
