/*
Theme Name:  Immergruen Grasheim
Theme URI:   https://sk-immergruen-grasheim.de
Author:      Schuetzenkameradschaft Immergruen Grasheim
Description: Offizielles WordPress-Theme der Schuetzenkameradschaft Immergruen Grasheim
Version:     1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License:     GNU General Public License v2 or later
Text Domain: immergruen-grasheim
Tags:        custom-menu,custom-logo,featured-images,responsive-layout
*/

:root {
  --gd:    #1a4d2e;
  --gm:    #2d7a45;
  --gl:    #4caf6e;
  --gold:  #c8a84b;
  --gdark: #a07830;
  --cream: #f9f6ef;
  --wh:    #ffffff;
  --tx:    #222222;
  --txl:   #555555;
  --bd:    #e0d9cc;
  --fh:    'Playfair Display', Georgia, serif;
  --fb:    'Open Sans', Arial, sans-serif;
  --r:     6px;
  --s1:    0 2px 8px rgba(0,0,0,.10);
  --s2:    0 4px 20px rgba(0,0,0,.14);
  --tr:    .25s ease;
  --mw:    1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--fb); color: var(--tx); background: var(--cream); line-height: 1.7; font-size: 16px; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: var(--gm); text-decoration: none; transition: color var(--tr); }
a:hover { color: var(--gold); }
h1,h2,h3,h4,h5,h6 { font-family: var(--fh); color: var(--gd); line-height: 1.25; margin-bottom: .6em; }
h1 { font-size: clamp(1.8rem,4vw,2.8rem); }
h2 { font-size: clamp(1.4rem,3vw,2.1rem); }
h3 { font-size: clamp(1.1rem,2.5vw,1.5rem); }
p  { margin-bottom: 1em; }
ul { list-style: none; }

.container { max-width: var(--mw); margin: 0 auto; padding: 0 1.5rem; }
.sp  { padding: 5rem 0; }
.sps { padding: 3rem 0; }
.tc  { text-align: center; }

/* Buttons */
.btn { display: inline-block; padding: .75rem 1.8rem; border-radius: var(--r); font-weight: 600; font-size: .95rem; border: 2px solid transparent; transition: all var(--tr); cursor: pointer; font-family: var(--fb); }
.btn-p  { background: var(--gm);  color: var(--wh); border-color: var(--gm);  }
.btn-p:hover  { background: var(--gd); border-color: var(--gd); color: var(--wh); }
.btn-g  { background: var(--gold); color: var(--gd); border-color: var(--gold); }
.btn-g:hover  { background: var(--gdark); color: var(--wh); }
.btn-o  { background: transparent; color: var(--gm); border-color: var(--gm); }
.btn-o:hover  { background: var(--gm); color: var(--wh); }
.btn-ow { background: transparent; color: var(--wh); border-color: rgba(255,255,255,.55); }
.btn-ow:hover { background: var(--wh); color: var(--gd); }

/* Section Titles */
.stit { font-family: var(--fh); font-size: clamp(1.5rem,3vw,2.2rem); color: var(--gd); text-align: center; margin-bottom: .5rem; }
.stit::after { content: ''; display: block; width: 70px; height: 3px; background: var(--gold); margin: .6rem auto 1.5rem; border-radius: 2px; }
.ssub { text-align: center; color: var(--txl); max-width: 650px; margin: 0 auto 2.5rem; }

/* Header */
#hdr { background: var(--gd); position: sticky; top: 0; z-index: 1000; box-shadow: var(--s2); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; padding: .8rem 1.5rem; max-width: var(--mw); margin: 0 auto; }
.logo { display: flex; align-items: center; gap: .9rem; text-decoration: none; }
.logo img { height: 56px; width: auto; border-radius: 50%; border: 2px solid var(--gold); }
.logo-ph { width: 56px; height: 56px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--gd); font-size: 1rem; flex-shrink: 0; }
.ln { font-family: var(--fh); color: var(--wh); font-size: 1.05rem; font-weight: 700; line-height: 1.2; display: block; }
.ls { color: var(--gold); font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; display: block; }
#nav { display: flex; align-items: center; gap: .2rem; }
#nav a { color: var(--wh); padding: .5rem .85rem; border-radius: var(--r); font-size: .87rem; font-weight: 500; transition: all var(--tr); }
#nav a:hover, #nav .current-menu-item > a { background: var(--gold); color: var(--gd); }
.hbg { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: .4rem; background: transparent; border: none; }
.hbg span { display: block; width: 26px; height: 2px; background: var(--wh); border-radius: 2px; transition: all var(--tr); }

/* Hero */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; justify-content: center; overflow: hidden; background: linear-gradient(135deg, var(--gd) 0%, #0e3020 60%, #152a1a 100%); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .22; }
.hero-deco { position: absolute; right: 4%; bottom: 6%; font-size: 9rem; opacity: .06; user-select: none; pointer-events: none; }
.hero-c { position: relative; text-align: center; color: var(--wh); padding: 2rem 1.5rem; max-width: 820px; }
.hero-badge { display: inline-block; background: var(--gold); color: var(--gd); font-size: .77rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .35rem 1.2rem; border-radius: 50px; margin-bottom: 1.4rem; }
.hero-title { font-family: var(--fh); font-size: clamp(2rem,5.5vw,3.8rem); color: var(--wh); line-height: 1.15; margin-bottom: .5rem; }
.hero-title .acc { color: #6fd98c; }
.hero-tag { font-size: clamp(.95rem,2vw,1.18rem); color: rgba(255,255,255,.8); margin-bottom: 2rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.sc-hint { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.35); font-size: .72rem; display: flex; flex-direction: column; align-items: center; gap: .4rem; animation: bnc 2s infinite; }
@keyframes bnc {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-8px); }
}

/* Stats */
.stats { background: var(--gm); padding: 2.5rem 0; border-top: 2px solid var(--gold); }
.stats-g { display: grid; grid-template-columns: repeat(auto-fit,minmax(155px,1fr)); gap: 1.5rem; text-align: center; }
.stat { color: var(--wh); }
.stat-n { font-family: var(--fh); font-size: 2.3rem; font-weight: 700; color: var(--gold); display: block; }
.stat-l { font-size: .8rem; opacity: .88; letter-spacing: .03em; text-transform: uppercase; }

/* Über uns */
.about { background: var(--wh); }
.about-g { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.aimg { position: relative; border-radius: 12px; overflow: hidden; box-shadow: var(--s2); }
.aimg img { width: 100%; object-fit: cover; height: 420px; }
.aimg-ph { width: 100%; height: 420px; background: linear-gradient(135deg,var(--gd),var(--gm)); display: flex; align-items: center; justify-content: center; font-size: 5rem; }
.aemb { position: absolute; bottom: -18px; right: -18px; width: 96px; height: 96px; background: var(--gd); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; border: 4px solid var(--gold); }
.atx .stit { text-align: left; }
.atx .stit::after { margin-left: 0; }
.feat { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.2rem; }
.fic { width: 46px; height: 46px; border-radius: 50%; background: var(--gd); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.feat h4 { font-size: 1rem; margin-bottom: .2rem; color: var(--gd); }
.feat p  { font-size: .87rem; color: var(--txl); margin: 0; }

/* News */
.news { background: var(--cream); }
.news-g { display: grid; grid-template-columns: repeat(auto-fit,minmax(290px,1fr)); gap: 2rem; }
.nc { background: var(--wh); border-radius: 12px; overflow: hidden; box-shadow: var(--s1); transition: transform var(--tr), box-shadow var(--tr); }
.nc:hover { transform: translateY(-5px); box-shadow: var(--s2); }
.ncimg { height: 200px; background: linear-gradient(135deg,var(--gd),var(--gm)); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.ncimg img { width: 100%; height: 100%; object-fit: cover; }
.ncb { padding: 1.5rem; }
.ncm { display: flex; gap: .7rem; align-items: center; margin-bottom: .7rem; }
.ncc { background: var(--gl); color: var(--wh); font-size: .68rem; font-weight: 700; padding: .2rem .65rem; border-radius: 50px; text-transform: uppercase; letter-spacing: .05em; }
.ncd { font-size: .78rem; color: var(--txl); }
.ncb h3 { font-size: 1rem; margin-bottom: .45rem; line-height: 1.35; }
.ncb p  { font-size: .86rem; color: var(--txl); margin-bottom: 1rem; }
.rm { font-size: .83rem; font-weight: 600; color: var(--gm); display: inline-flex; align-items: center; gap: .3rem; }
.rm:hover { color: var(--gold); }

/* Events */
.events { background: var(--gd); }
.events .stit { color: var(--wh); }
.events .ssub { color: rgba(255,255,255,.6); }
.evl { display: flex; flex-direction: column; gap: 1rem; max-width: 820px; margin: 0 auto; }
.ev  { background: rgba(255,255,255,.08); border: 1px solid rgba(200,168,75,.3); border-radius: 10px; padding: 1.25rem 1.5rem; display: flex; align-items: center; gap: 1.5rem; transition: background var(--tr); text-decoration: none; }
.ev:hover { background: rgba(255,255,255,.14); }
.evd { min-width: 64px; text-align: center; background: var(--gold); color: var(--gd); border-radius: 8px; padding: .5rem; flex-shrink: 0; }
.evday { font-family: var(--fh); font-size: 1.65rem; font-weight: 700; line-height: 1; display: block; }
.evmon { font-size: .67rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; display: block; }
.evi { flex: 1; }
.evi h4 { color: var(--wh); margin-bottom: .2rem; font-size: 1rem; }
.evi p  { color: rgba(255,255,255,.58); font-size: .83rem; margin: 0; }
.evt { color: var(--gold); font-size: .83rem; font-weight: 600; white-space: nowrap; }

/* Disziplinen */
.disz { background: var(--wh); }
.disz-g { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 1.5rem; }
.dc { border: 2px solid var(--bd); border-radius: 12px; padding: 2rem 1.5rem; text-align: center; transition: all var(--tr); }
.dc:hover { border-color: var(--gm); background: var(--cream); transform: translateY(-4px); box-shadow: var(--s1); }
.dcic { font-size: 2.8rem; margin-bottom: 1rem; }
.dc h3 { font-size: .98rem; margin-bottom: .35rem; }
.dc p  { font-size: .83rem; color: var(--txl); margin: 0; }

/* Galerie */
.gal { background: var(--cream); }
.gal-g { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 1rem; }
.gi { border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; background: linear-gradient(135deg,var(--gd),var(--gm)); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; position: relative; cursor: pointer; }
.gi img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gi:hover img { transform: scale(1.07); }

/* Vorstand */
.vst { background: var(--wh); }
.vst-g { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 2rem; }
.vc { text-align: center; }
.vcph { width: 110px; height: 110px; border-radius: 50%; background: var(--gl); margin: 0 auto 1rem; overflow: hidden; border: 4px solid var(--gold); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.vcph img { width: 100%; height: 100%; object-fit: cover; }
.vc h4   { font-size: 1.02rem; margin-bottom: .2rem; }
.vc .role { font-size: .8rem; color: var(--gm); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

/* CTA */
.cta { background: linear-gradient(135deg,var(--gd) 0%,#0d2c1c 100%); position: relative; overflow: hidden; }
.cta-in { position: relative; text-align: center; max-width: 640px; margin: 0 auto; }
.cta-in h2 { color: var(--wh); margin-bottom: .75rem; }
.cta-in p  { color: rgba(255,255,255,.72); margin-bottom: 2rem; }
.cta-btns  { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-perks { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2rem; margin-top: 2rem; }
.cta-perks span { color: #aaddbb; font-size: .9rem; }

/* Kontakt */
.kon { background: var(--wh); }
.kon-g { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.kon-info h3, .kon-fm h3 { font-size: 1.2rem; margin-bottom: 1.2rem; }
.cd { display: flex; align-items: flex-start; gap: .9rem; margin-bottom: 1.1rem; }
.ci { width: 42px; height: 42px; background: var(--gd); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.ct strong { display: block; font-size: .78rem; color: var(--txl); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .1rem; }
.soc { display: flex; gap: .75rem; margin-top: 1.5rem; }
.sl  { width: 38px; height: 38px; background: var(--gd); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--wh); transition: background var(--tr); }
.sl:hover { background: var(--gold); color: var(--gd); }
.fg { margin-bottom: 1.1rem; }
.fg label { display: block; font-size: .83rem; font-weight: 600; margin-bottom: .35rem; color: var(--gd); }
.fg input, .fg textarea, .fg select { width: 100%; padding: .7rem 1rem; border: 1.5px solid var(--bd); border-radius: var(--r); font-family: var(--fb); font-size: .93rem; background: var(--cream); color: var(--tx); transition: border-color var(--tr); outline: none; }
.fg input:focus, .fg textarea:focus, .fg select:focus { border-color: var(--gm); background: var(--wh); }
.fg textarea { min-height: 130px; resize: vertical; }
.fgr { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Footer */
footer { background: #111d15; color: rgba(255,255,255,.7); padding: 4rem 0 0; }
.ft-g { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.ft-brand p { font-size: .83rem; margin: .7rem 0 1.2rem; opacity: .6; line-height: 1.6; }
.ft-soc { display: flex; gap: .75rem; }
.ft-sl  { width: 36px; height: 36px; background: rgba(255,255,255,.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--wh); transition: background var(--tr); }
.ft-sl:hover { background: var(--gold); color: var(--gd); }
.ft-col h4 { color: var(--gold); font-family: var(--fh); font-size: .98rem; margin-bottom: 1rem; padding-bottom: .4rem; border-bottom: 1px solid rgba(200,168,75,.2); }
.ft-col li { margin-bottom: .5rem; }
.ft-col a  { color: rgba(255,255,255,.55); font-size: .86rem; transition: color var(--tr); }
.ft-col a:hover { color: var(--gold); }
.ft-btm { border-top: 1px solid rgba(255,255,255,.07); padding: 1.2rem 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.ft-btm p, .ft-btm a { font-size: .77rem; color: rgba(255,255,255,.38); }
.ft-btm a:hover { color: var(--gold); }

/* Breadcrumb */
.bc { background: var(--gd); padding: 1rem 0; font-size: .83rem; }
.bc a, .bc span { color: rgba(255,255,255,.52); }
.bc a:hover { color: var(--gold); }
.bc .sep { margin: 0 .4rem; color: rgba(255,255,255,.22); }
.bc .cur { color: var(--gold); font-weight: 600; }

/* Single / Page */
.cw { padding: 4rem 0; }
.cm { max-width: 780px; }
.eh { margin-bottom: 2rem; border-bottom: 2px solid var(--bd); padding-bottom: 1.5rem; }
.em { font-size: .83rem; color: var(--txl); margin-top: .4rem; }
.eth { border-radius: 10px; overflow: hidden; margin-bottom: 2rem; box-shadow: var(--s1); }
.eth img { width: 100%; max-height: 450px; object-fit: cover; }
.ec p { margin-bottom: 1.2em; }
.ec h2, .ec h3 { margin: 1.8em 0 .5em; }
.ec ul { padding-left: 1.5em; margin-bottom: 1.2em; list-style: disc; }
.ec li { margin-bottom: .4em; }
.ec blockquote { border-left: 4px solid var(--gold); padding: 1rem 1.5rem; background: var(--cream); border-radius: 0 8px 8px 0; margin: 1.5em 0; font-style: italic; color: var(--txl); }

/* Widgets */
.widget { background: var(--wh); border-radius: 10px; padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: var(--s1); }
.widget-title { font-size: 1rem; color: var(--gd); border-bottom: 2px solid var(--gold); padding-bottom: .5rem; margin-bottom: 1rem; }

/* Pagination */
.pag { display: flex; gap: .5rem; justify-content: center; margin: 3rem 0; flex-wrap: wrap; }
.pag .page-numbers { padding: .5rem .9rem; border-radius: var(--r); border: 1.5px solid var(--bd); color: var(--gm); font-size: .9rem; font-weight: 600; transition: all var(--tr); }
.pag .page-numbers:hover, .pag .current { background: var(--gm); color: var(--wh); border-color: var(--gm); }

/* Responsive */
@media (max-width: 1024px) {
  .ft-g    { grid-template-columns: 1fr 1fr; }
  .about-g { gap: 2.5rem; }
}
@media (max-width: 768px) {
  .hbg { display: flex; }
  #nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--gd); flex-direction: column; padding: 1rem; gap: .25rem; border-top: 2px solid var(--gold); }
  #nav.open { display: flex; }
  #nav a { padding: .7rem 1rem; width: 100%; }
  .about-g, .kon-g { grid-template-columns: 1fr; }
  .aemb { display: none; }
  .ft-g { grid-template-columns: 1fr 1fr; }
  .fgr  { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .ft-g { grid-template-columns: 1fr; }
  .hero-btns, .cta-btns { flex-direction: column; align-items: center; }
  .stats-g { grid-template-columns: 1fr 1fr; }
}