/*
Theme Name: SPD Stadland Complete
Author: Matthias Herrmann
Description: Installierbares WordPress-Theme fuer den SPD Ortsverein Stadland
Version: 1.0.2
License: GPL-2.0-or-later
Text Domain: spd-stadland
*/

:root{
  --spd-red:#e3000f;
  --spd-red-dark:#b1000c;
  --spd-red-soft:#fde8ea;
  --ink:#111827;
  --muted:#5b6574;
  --bg:#f7f9fb;
  --radius:22px;
  --shadow:0 18px 48px rgba(17,24,39,.10);
  --shadow-soft:0 10px 24px rgba(17,24,39,.08);
  --max:1200px;
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,Helvetica,Arial,sans-serif;
  --header-h:82px;
}
*,
*::before,
*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--font);
  color:var(--ink);
  background:linear-gradient(180deg,#fff 0%,var(--bg) 100%);
  line-height:1.65;
}
img{max-width:100%;display:block}
a{color:var(--spd-red);text-decoration:none}
a:hover{text-decoration:underline}
.container{width:min(calc(100% - 32px), var(--max));margin-inline:auto}
.section{padding:40px 0 8px}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:18px}
.section-head h2{margin:0;font-size:clamp(1.8rem,3vw,2.6rem);line-height:1;letter-spacing:-.03em}
.section-head p{margin:0;max-width:58ch;color:var(--muted)}
.grid{display:grid;gap:22px}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}

.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  backdrop-filter:saturate(1.15) blur(12px);
  background:rgba(255,255,255,.92);
  border-bottom:1px solid rgba(17,24,39,.06);
}
.header-inner{
  min-height:var(--header-h);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
}
.brand{
  display:flex;
  align-items:center;
  gap:14px;
  color:var(--ink);
}
.brand:hover{text-decoration:none}
.brand-logo{
  width:auto;
  height:48px;
  object-fit:contain;
}
.brand-text{display:flex;flex-direction:column;line-height:1.05}
.brand-text strong{font-size:1rem}
.brand-text span{font-size:.82rem;color:var(--muted)}

.menu-toggle{
  display:none;
  width:48px;height:48px;border:0;border-radius:14px;background:#fff;
  box-shadow:var(--shadow-soft);cursor:pointer;padding:0
}
.menu-toggle-line{
  width:22px;height:2px;background:var(--ink);display:block;margin:5px auto;
  transition:transform .25s ease, opacity .25s ease
}
.menu-toggle.is-open .menu-toggle-line:nth-child(1){transform:translateY(7px) rotate(45deg)}
.menu-toggle.is-open .menu-toggle-line:nth-child(2){opacity:0}
.menu-toggle.is-open .menu-toggle-line:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

.main-nav ul{list-style:none;display:flex;align-items:center;gap:8px;margin:0;padding:0}
.main-nav a{
  min-height:44px;padding:0 15px;border-radius:999px;color:var(--ink);
  display:inline-flex;align-items:center;justify-content:center;font-weight:700;
  transition:background .2s ease,color .2s ease,transform .2s ease
}
.main-nav a:hover,.main-nav .current-menu-item > a{
  text-decoration:none;background:rgba(227,0,15,.08);color:var(--spd-red)
}

.hero{padding:28px 0 22px}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:24px}
.hero-copy,.hero-media{
  border-radius:32px;overflow:hidden;box-shadow:var(--shadow);position:relative
}
.hero-copy{
  background:linear-gradient(135deg, rgba(227,0,15,.96), rgba(177,0,12,.92));
  color:#fff;padding:52px;display:flex;flex-direction:column;justify-content:flex-end;min-height:500px
}
.eyebrow{
  display:inline-flex;width:max-content;align-items:center;gap:10px;
  padding:10px 14px;border-radius:999px;background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);margin-bottom:16px;font-size:.94rem
}
.hero h1{margin:0 0 14px;font-size:clamp(2.3rem,5vw,4.6rem);line-height:.95;letter-spacing:-.04em}
.hero p{margin:0;max-width:60ch;color:rgba(255,255,255,.92);font-size:1.05rem}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:28px}
.button{
  display:inline-flex;align-items:center;justify-content:center;min-height:50px;
  padding:0 20px;border-radius:999px;font-weight:800;transition:transform .2s ease, box-shadow .2s ease
}
.button:hover{text-decoration:none;transform:translateY(-1px)}
.button-primary{background:#fff;color:var(--spd-red)}
.button-secondary{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.16);color:#fff}
.hero-media img{width:100%;height:100%;object-fit:cover;min-height:500px}
.hero-card{
  position:absolute;left:18px;bottom:18px;right:18px;
  background:rgba(17,24,39,.7);backdrop-filter:blur(8px);color:#fff;
  border-radius:22px;padding:16px 18px
}

.card{
  background:rgba(255,255,255,.92);
  border:1px solid rgba(17,24,39,.06);
  border-radius:var(--radius);
  box-shadow:var(--shadow-soft);
  overflow:hidden;
}
.card-body{padding:22px}
.card h3{margin:0 0 10px;font-size:1.2rem;line-height:1.12}
.card p{margin:0;color:var(--muted)}
.topic-icon{
  width:44px;height:44px;border-radius:14px;background:var(--spd-red-soft);color:var(--spd-red);
  display:grid;place-items:center;font-weight:800;margin-bottom:14px
}
.kicker{
  display:inline-block;font-size:.78rem;font-weight:800;letter-spacing:.08em;
  text-transform:uppercase;color:var(--spd-red);margin-bottom:10px
}

.gallery{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px
}
.photo-card{
  position:relative;min-height:155px;border-radius:20px;overflow:hidden;box-shadow:var(--shadow-soft)
}
.photo-card img{width:100%;height:100%;object-fit:cover}
.photo-overlay{
  position:absolute;left:14px;right:14px;bottom:14px;background:rgba(17,24,39,.68);
  color:#fff;border-radius:18px;padding:12px 14px;backdrop-filter:blur(6px)
}
.photo-overlay strong{display:block;font-size:1rem}
.photo-overlay span{font-size:.9rem;color:rgba(255,255,255,.84)}

.news-list{display:grid;gap:18px}
.news-item{
  background:#fff;border:1px solid rgba(17,24,39,.08);border-radius:22px;padding:22px;
  box-shadow:0 14px 34px rgba(17,24,39,.07)
}
.news-item-horizontal{display:flex;align-items:flex-start;gap:18px}
.news-thumb{flex:0 0 180px;max-width:180px;border-radius:16px;overflow:hidden}
.news-thumb img{width:100%;height:120px;object-fit:cover;display:block}
.news-content{flex:1 1 auto}
.news-item h3{margin:0 0 8px;font-size:1.16rem}
.news-item p{margin:0;color:var(--muted)}
.news-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.news-date,.news-category{
  display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border-radius:999px;
  font-size:.82rem;font-weight:700
}
.news-date{background:rgba(17,24,39,.06);color:var(--ink)}
.news-category{background:var(--spd-red-soft);color:var(--spd-red)}
.news-item p{margin-bottom:14px}
.news-readmore{
  display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 14px;
  border-radius:999px;background:rgba(227,0,15,.08);color:var(--spd-red);font-weight:700
}
.news-readmore:hover{text-decoration:none;background:rgba(227,0,15,.14)}

.board-card .avatar{
  width:74px;height:74px;border-radius:22px;background:linear-gradient(135deg,var(--spd-red),var(--spd-red-dark));
  color:#fff;display:grid;place-items:center;font-weight:800;font-size:1.2rem;margin-bottom:16px;
  box-shadow:var(--shadow-soft)
}
.board-role{color:var(--muted);font-size:.96rem;margin-bottom:8px}
.board-card p a{word-break:break-word}

.split{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.feature-list{display:grid;gap:12px;margin-top:18px}
.feature-item{
  display:flex;gap:12px;align-items:flex-start;background:#fff;border:1px solid rgba(17,24,39,.06);
  border-radius:18px;padding:14px 16px;box-shadow:var(--shadow-soft)
}
.feature-dot{
  width:12px;height:12px;border-radius:999px;background:var(--spd-red);margin-top:8px;flex:0 0 12px
}

.cta{
  margin:50px 0 70px;border-radius:32px;padding:34px;
  background:linear-gradient(135deg,#121826,#1f2937);color:#fff;box-shadow:var(--shadow)
}
.cta-inner{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap}

.site-footer{
  background:#101418;color:#d9e1ea;margin-top:40px;padding-top:28px
}
.footer-grid{display:grid;grid-template-columns:1.2fr .8fr .8fr;gap:28px;padding-bottom:26px}
.footer-card{
  background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06);
  border-radius:24px;padding:20px
}
.footer-logo{height:40px;width:auto;margin-bottom:14px}
.footer-card h3{margin:0 0 12px;font-size:1.04rem;color:#fff}
.footer-card p,.footer-card li{color:#c6d0da}
.footer-card ul{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.footer-card a{color:#fff}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.08);padding:16px 0 28px;color:#a9b6c3;
  display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap
}

[data-reveal]{opacity:0;transform:translateY(18px);transition:opacity .7s ease,transform .7s ease}
[data-reveal].is-visible{opacity:1;transform:translateY(0)}

@media (max-width: 980px){
  .hero-grid,.split,.footer-grid{grid-template-columns:1fr}
  .grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero-copy,.hero-media img{min-height:auto}
  .hero-copy{padding:38px}
}
@media (max-width: 760px){
  :root{--header-h:74px}
  .menu-toggle{display:block}
  .main-nav{
    position:absolute;top:calc(100% + 10px);left:16px;right:16px;
    background:rgba(255,255,255,.98);border:1px solid rgba(17,24,39,.06);
    border-radius:24px;box-shadow:var(--shadow);padding:12px;opacity:0;pointer-events:none;
    transform:translateY(-8px);transition:opacity .24s ease,transform .24s ease
  }
  .main-nav.is-open{opacity:1;pointer-events:auto;transform:translateY(0)}
  .main-nav ul{flex-direction:column;align-items:stretch;gap:6px}
  .main-nav a{justify-content:flex-start;border-radius:16px;padding:12px 14px}
  .section-head{flex-direction:column;align-items:flex-start}
  .grid-4,.grid-3,.grid-2,.gallery{grid-template-columns:1fr}
  .news-item-horizontal{flex-direction:column}
  .news-thumb{max-width:100%;width:100%}
  .news-thumb img{width:100%;height:auto}
}
