/* ===========================================================
   SV Mittleres Erzgebirge – Redesign
   Gemeinsames Stylesheet für alle Seiten
   =========================================================== */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f4f7f5;
  --color-bg-dark: #10241c;
  --color-primary: #1b4332;
  --color-primary-dark: #10241c;
  --color-accent: #40916c;
  --color-accent-light: #74c69d;
  --color-text: #1f2a24;
  --color-text-muted: #5b6b63;
  --color-text-inverse: #f4f7f5;
  --color-border: #e1e8e3;
  --shadow-card: 0 4px 18px rgba(16, 36, 28, 0.08);
  --shadow-card-hover: 0 10px 28px rgba(16, 36, 28, 0.14);
  --radius: 14px;
  --max-width: 1160px;
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-primary); }

h1, h2, h3, h4 {
  font-family: var(--font-base);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .6em;
  color: var(--color-primary-dark);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--color-text); }

.text-muted { color: var(--color-text-muted); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: .8em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .85em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--color-primary); color: #fff; transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.55);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; transform: translateY(-2px); }
.btn-outline-dark {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-outline-dark:hover { background: var(--color-primary); color: #fff; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: .8em 1.2em;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Top notice bar ---------- */
.notice-bar {
  background: var(--color-primary-dark);
  color: var(--color-text-inverse);
  font-size: .82rem;
  text-align: center;
  padding: .5em 1em;
}
.notice-bar a { color: var(--color-accent-light); font-weight: 600; }

/* ---------- Header / Nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--color-primary-dark);
  font-size: 1.05rem;
  line-height: 1.15;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(16,36,28,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex: none;
  padding: 4px;
  overflow: hidden;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand small { display: block; font-weight: 500; font-size: .72rem; color: var(--color-text-muted); }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  align-items: center;
}
nav.main-nav a {
  display: inline-block;
  padding: .6em .9em;
  border-radius: 999px;
  color: var(--color-text);
  font-weight: 600;
  font-size: .93rem;
}
nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}
nav.main-nav .nav-cta {
  background: var(--color-accent);
  color: #fff !important;
  margin-left: 4px;
}
nav.main-nav .nav-cta:hover { background: var(--color-primary); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg { width: 26px; height: 26px; color: var(--color-primary-dark); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    display: none;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    gap: 2px;
  }
  nav.main-nav a { padding: .8em 1em; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary) 60%, var(--color-accent));
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(116,198,157,.35), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(116,198,157,.2), transparent 40%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 90px 24px 100px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { color: #fff; }
.hero p.lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,.86);
  max-width: 46ch;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.hero-badge {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(6px);
}
.hero-badge h3 { color: #fff; margin-bottom: .3em; }
.hero-badge p { color: rgba(255,255,255,.82); margin-bottom: 0; }
.hero-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.hero-stat {
  background: rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 14px;
}
.hero-stat strong { display: block; font-size: 1.5rem; color: #fff; }
.hero-stat span { font-size: .78rem; color: rgba(255,255,255,.75); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 20px 64px; }
}

.hero.hero-photo {
  background-size: cover;
  background-position: center;
}
.hero.hero-photo::after {
  background:
    linear-gradient(100deg, rgba(6,14,10,.8) 0%, rgba(8,20,15,.62) 45%, rgba(10,26,19,.38) 100%);
}

/* generic page hero (inner pages, smaller) */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
  padding: 64px 24px;
  text-align: left;
}
.page-hero .container { max-width: var(--max-width); }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 60ch; margin-bottom: 0; }
.breadcrumb { font-size: .82rem; color: rgba(255,255,255,.65); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,.85); }

.page-hero.page-hero-photo {
  position: relative;
  background-size: cover;
  background-position: center;
}
.page-hero.page-hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(6,14,10,.82) 0%, rgba(8,20,15,.66) 50%, rgba(10,26,19,.42) 100%);
}
.page-hero.page-hero-photo .container { position: relative; z-index: 1; }

.photo-feature {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.photo-feature img { width: 100%; height: 100%; object-fit: cover; display: block; }

.news-photo {
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  margin: -28px -28px 20px;
}
.news-photo img { width: 100%; display: block; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.alt { background: var(--color-bg-alt); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--color-bg-alt);
  color: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card .icon svg { width: 24px; height: 24px; }

.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: .9rem; margin-top: 6px;
}

/* range fact list */
.fact-list { list-style: none; margin: 0 0 1.4em; padding: 0; display: grid; gap: 10px; }
.fact-list li {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--color-bg-alt);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: .95rem;
}
.fact-list li svg { flex: none; width: 18px; height: 18px; color: var(--color-accent); margin-top: 2px; }

/* callout */
.callout {
  border-left: 4px solid var(--color-accent);
  background: var(--color-bg-alt);
  padding: 18px 20px;
  border-radius: 0 10px 10px 0;
  font-size: .95rem;
}

/* placeholder banner for demo/news content */
.demo-flag {
  display: inline-block;
  background: #fff4d6;
  color: #7a5b00;
  border: 1px solid #f1d78c;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .3em .7em;
  border-radius: 6px;
  margin-bottom: .6em;
}

/* news cards */
.news-card { display: flex; flex-direction: column; height: 100%; }
.news-date { font-size: .8rem; color: var(--color-text-muted); font-weight: 600; margin-bottom: .5em; }
.news-card h3 { margin-bottom: .4em; }
.news-card p { color: var(--color-text-muted); flex: 1; }

/* map placeholder */
.map-placeholder {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  min-height: 280px;
}
.map-placeholder iframe { width: 100%; height: 100%; min-height: 280px; border: 0; display: block; }

/* contact list */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 16px 18px;
}
.contact-list .icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--color-bg-alt); color: var(--color-accent);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.contact-list .icon svg { width: 20px; height: 20px; }
.contact-list strong { display: block; margin-bottom: 2px; }

/* legal page */
.legal h2 { margin-top: 1.6em; }
.legal h2:first-of-type { margin-top: 0; }
.legal ul { padding-left: 1.2em; }

.review-banner {
  background: #fff4d6;
  border: 1px solid #f1d78c;
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 32px;
  font-size: .92rem;
  color: #7a5b00;
}

/* CTA band */
.cta-band {
  background: var(--color-primary-dark);
  color: #fff;
  text-align: center;
  padding: 64px 24px;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.8); max-width: 56ch; margin: 0 auto 28px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,.75);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-grid h4 { color: #fff; font-size: .95rem; margin-bottom: 1em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: rgba(255,255,255,.72); font-size: .92rem; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { color: rgba(255,255,255,.65); font-size: .9rem; max-width: 34ch; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 20px; font-size: .82rem; color: rgba(255,255,255,.55);
  flex-wrap: wrap; gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: #fff; }
.social-row { display: flex; gap: 10px; margin-top: 14px; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.social-row a:hover { background: var(--color-accent); }
.social-row svg { width: 17px; height: 17px; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
