/*
Theme Name: SV Echo Modern
Theme URI: https://www.sv-echo-wiesental.de/
Author: SV Echo Wiesental
Description: A responsive, modern club theme for Schützenverein Echo 1920 e.V., Wiesental.
Version: 1.0.0
Text Domain: sv-echo
*/

:root {
  --echo-green: #08783f;
  --echo-green-dark: #045a2e;
  --echo-green-light: #e7f4eb;
  --echo-ink: #15231c;
  --echo-muted: #5b6861;
  --echo-line: #d9e3dc;
  --echo-sand: #f7f7f3;
  --echo-white: #ffffff;
  --echo-shadow: 0 18px 48px rgba(21, 35, 28, .12);
  --echo-radius: 1.25rem;
  --echo-content: min(1120px, calc(100% - 2.5rem));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--echo-sand);
  color: var(--echo-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }

.skip-link { position: absolute; left: -9999px; top: auto; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 100; padding: .75rem 1rem; background: var(--echo-white); border-radius: .5rem; box-shadow: var(--echo-shadow); }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(217, 227, 220, .72); background: rgba(247, 247, 243, .9); backdrop-filter: blur(16px); }
.header-inner { width: var(--echo-content); min-height: 4.75rem; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--echo-ink); text-decoration: none; font-weight: 800; line-height: 1.15; }
.brand-mark { display: grid; place-items: center; width: 2.35rem; height: 2.35rem; color: var(--echo-white); background: var(--echo-green); border-radius: 50%; box-shadow: inset 0 0 0 5px #d9efdf; }
.brand-mark::before { content: ""; width: .65rem; height: .65rem; background: var(--echo-white); border: 3px solid var(--echo-green-dark); border-radius: 50%; }
.brand-mark.has-crest { width: 2.8rem; height: 2.8rem; background: transparent; border-radius: 0; box-shadow: none; }
.brand-mark.has-crest::before { display: none; }
.brand-mark__image { width: 100%; height: 100%; object-fit: contain; }
.brand small { display: block; margin-top: .15rem; color: var(--echo-muted); font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.primary-nav ul { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a { display: block; padding: .5rem .7rem; border-radius: .5rem; color: var(--echo-muted); font-size: .9rem; font-weight: 700; text-decoration: none; }
.primary-nav a:hover, .primary-nav a:focus-visible { color: var(--echo-green-dark); background: var(--echo-green-light); }
.member-nav { display: flex; align-items: center; gap: .45rem; white-space: nowrap; }
.member-nav a { padding: .5rem .7rem; border: 1px solid var(--echo-green); border-radius: .5rem; color: var(--echo-green-dark); font-size: .83rem; font-weight: 800; text-decoration: none; }
.member-nav a:hover, .member-nav a:focus-visible { background: var(--echo-green); color: var(--echo-white); }
.member-dashboard { margin-top: 1rem; }
.member-dashboard > h2 { max-width: none; }
.member-dashboard__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0; }
.member-dashboard__card--status { cursor: default; }
.vorstand-dashboard { margin-top: 3rem; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--echo-radius); background: var(--echo-ink); color: var(--echo-white); }
.vorstand-dashboard .eyebrow, .vorstand-dashboard__note { color: #b6ecc9; }
.vorstand-dashboard h2 { max-width: none; margin: 0 0 1.5rem; }
.vorstand-dashboard__metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; border-radius: .85rem; background: rgba(255,255,255,.15); }
.vorstand-dashboard__metrics > div { min-height: 8rem; padding: 1.25rem; background: rgba(255,255,255,.06); }
.vorstand-dashboard__metrics strong { display: block; color: #b6ecc9; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }
.vorstand-dashboard__metrics span { display: block; margin-top: .65rem; color: #d8e4db; font-size: .85rem; line-height: 1.35; }
.vorstand-dashboard .button-row { margin-top: 1.5rem; }
.vorstand-dashboard .button--secondary { border-color: #b6ecc9; color: #e7f4eb; }
.vorstand-dashboard .button--secondary:hover { color: var(--echo-green-dark); }
.vorstand-dashboard__note { margin: 1.25rem 0 0; font-size: .88rem; }
.vorstand-dashboard__activity { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.vorstand-dashboard__activity section { padding: 1.25rem; border: 1px solid rgba(255,255,255,.14); border-radius: .85rem; background: rgba(255,255,255,.04); }
.vorstand-dashboard__activity h3 { margin: 0 0 1rem; font-size: 1.1rem; }
.vorstand-dashboard__activity ul { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.vorstand-dashboard__activity li { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.vorstand-dashboard__activity a { color: #e7f4eb; font-weight: 700; text-decoration: none; }
.vorstand-dashboard__activity a:hover { color: #b6ecc9; text-decoration: underline; }
.vorstand-dashboard__activity time { flex: 0 0 auto; color: #b6ecc9; font-size: .76rem; }
@media (max-width: 640px) { .vorstand-dashboard__activity { grid-template-columns: 1fr; } .vorstand-dashboard__activity li { display: block; } .vorstand-dashboard__activity time { display: block; margin-top: .2rem; } }
@media (max-width: 780px) { .vorstand-dashboard__metrics { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .vorstand-dashboard__metrics { grid-template-columns: 1fr; } }
@media (max-width: 980px) { .header-inner { flex-wrap: wrap; padding-block: .7rem; } .primary-nav { order: 3; width: 100%; } .primary-nav ul { justify-content: flex-start; } }
@media (max-width: 640px) { .member-dashboard__cards { grid-template-columns: 1fr; } .member-nav a { padding: .42rem .5rem; font-size: .76rem; } }

.hero { overflow: hidden; position: relative; padding: clamp(4.5rem, 9vw, 8rem) 0 5rem; background: radial-gradient(circle at 82% 15%, rgba(196, 224, 204, .85), transparent 25rem), linear-gradient(135deg, #eff7f1 0%, #f9faf7 55%, #e9f4ec 100%); }
.hero::after { content: ""; position: absolute; right: -8rem; bottom: -10rem; width: 33rem; aspect-ratio: 1; border: 1px solid rgba(8, 120, 63, .18); border-radius: 50%; box-shadow: 0 0 0 2.5rem rgba(8, 120, 63, .06), 0 0 0 5rem rgba(8, 120, 63, .04); }
.hero-inner { position: relative; z-index: 1; width: var(--echo-content); margin: auto; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(18rem, .85fr); align-items: center; gap: clamp(2.5rem, 7vw, 7rem); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1rem; color: var(--echo-green-dark); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 1.7rem; height: 2px; background: currentColor; }
h1, h2, h3 { letter-spacing: -.035em; line-height: 1.1; }
h1 { max-width: 13ch; margin: 0; font-size: clamp(3rem, 6vw, 5.65rem); }
.hero-copy { max-width: 58ch; margin: 1.5rem 0 2rem; color: var(--echo-muted); font-size: clamp(1.05rem, 1.6vw, 1.23rem); }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .65rem 1.15rem; border: 1px solid var(--echo-green); border-radius: .65rem; background: var(--echo-green); color: var(--echo-white); font-weight: 800; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); background: var(--echo-green-dark); }
.button--secondary { background: transparent; color: var(--echo-green-dark); }
.button--secondary:hover { background: var(--echo-white); }

.target-art { position: relative; width: min(24rem, 100%); aspect-ratio: 1; margin-inline: auto; border-radius: 50%; background: repeating-radial-gradient(circle, #fff 0 1.75rem, #dfebdf 1.8rem 3.55rem, #08783f 3.6rem 5.35rem, #f6f4df 5.4rem 7.15rem, #d36545 7.2rem 8.95rem); box-shadow: 0 0 0 .85rem rgba(255,255,255,.76), var(--echo-shadow); }
.target-art::before { content: ""; position: absolute; inset: 39%; border-radius: 50%; background: var(--echo-ink); box-shadow: 0 0 0 .45rem rgba(255,255,255,.8); }
.target-art::after { content: "1920"; position: absolute; inset: auto 0 17%; text-align: center; color: var(--echo-ink); font-size: .76rem; font-weight: 900; letter-spacing: .16em; }

.section { width: var(--echo-content); margin: auto; padding: clamp(4rem, 8vw, 7rem) 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.25rem; }
.section-heading h2 { max-width: 14ch; margin: 0; font-size: clamp(2.15rem, 4vw, 3.5rem); }
.section-heading p { max-width: 48ch; margin: 0; color: var(--echo-muted); }
.discipline-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.discipline-card { min-height: 19rem; padding: 1.6rem; border: 1px solid var(--echo-line); border-radius: var(--echo-radius); background: var(--echo-white); box-shadow: 0 5px 18px rgba(21, 35, 28, .04); text-decoration: none; transition: transform .22s ease, box-shadow .22s ease; }
.discipline-card:hover { transform: translateY(-5px); box-shadow: var(--echo-shadow); }
.card-icon { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 3.9rem; border-radius: 1rem; color: var(--echo-green-dark); background: var(--echo-green-light); font-size: 1.4rem; }
.discipline-card h3 { margin: 0 0 .75rem; font-size: 1.55rem; }
.discipline-card p { margin: 0; color: var(--echo-muted); }
.card-arrow { display: inline-block; margin-top: 1.2rem; color: var(--echo-green-dark); font-weight: 900; }

.news-band { background: var(--echo-ink); color: var(--echo-white); }
.news-band .section { padding-block: clamp(4rem, 8vw, 6rem); }
.news-band .section-heading p, .news-card p { color: #c4d0c8; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.news-card { display: flex; flex-direction: column; min-height: 15rem; padding: 1.5rem; border: 1px solid rgba(255,255,255,.13); border-radius: var(--echo-radius); background: rgba(255,255,255,.05); }
.news-card time { color: #9ecbb0; font-size: .8rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.news-card h3 { margin: 1rem 0 .65rem; font-size: 1.35rem; }
.news-card h3 a { text-decoration: none; }
.news-card p { margin: 0; }
.news-card .card-arrow { margin-top: auto; padding-top: 1.2rem; color: #b6ecc9; }
.empty-news { padding: 1.5rem; border-radius: var(--echo-radius); background: rgba(255,255,255,.06); color: #c4d0c8; }

.club-panel { display: grid; grid-template-columns: .82fr 1.18fr; gap: 1.5rem; align-items: stretch; }
.club-panel__statement { padding: clamp(2rem, 5vw, 4rem); border-radius: var(--echo-radius); background: var(--echo-green); color: var(--echo-white); }
.club-panel__statement h2 { margin: 0; font-size: clamp(2.1rem, 4vw, 3.4rem); }
.club-panel__statement p { max-width: 38ch; margin-bottom: 0; color: #d4eadb; }
.club-panel__details { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border: 1px solid var(--echo-line); border-radius: var(--echo-radius); background: var(--echo-line); }
.detail { padding: 1.65rem; background: var(--echo-white); }
.detail strong { display: block; color: var(--echo-green-dark); font-size: 1.8rem; }
.detail span { color: var(--echo-muted); font-size: .92rem; }

.site-main--article { width: min(760px, calc(100% - 2.5rem)); margin: auto; padding: 5rem 0; }
.article-header { margin-bottom: 2.5rem; }
.article-header h1 { max-width: none; font-size: clamp(2.5rem, 5vw, 4.2rem); }
.article-meta { color: var(--echo-muted); font-size: .9rem; }
.article-featured-image { margin: 0 0 2rem; }
.article-featured-image img { width: min(14rem, 100%); border-radius: 1rem; background: var(--echo-green-light); }
.entry-content > * { max-width: 100%; }
.entry-content a { color: var(--echo-green-dark); font-weight: 700; }
.entry-content blockquote { margin: 2rem 0; padding: 1rem 1.5rem; border-left: 4px solid var(--echo-green); background: var(--echo-green-light); }
.entry-content table { width: 100%; margin: 1.5rem 0 2.25rem; border-collapse: collapse; background: var(--echo-white); }
.entry-content th, .entry-content td { padding: .85rem; border: 1px solid var(--echo-line); text-align: left; vertical-align: top; }
.entry-content th { color: var(--echo-green-dark); background: var(--echo-green-light); }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.contact-form__field { display: grid; gap: .35rem; margin: 0; }
.contact-form__field:nth-of-type(4), .contact-form__field:nth-of-type(5), .contact-form > p:last-child { grid-column: 1 / -1; }
.contact-form label { color: var(--echo-ink); font-weight: 800; }
.contact-form input, .contact-form textarea { width: 100%; padding: .75rem; border: 1px solid var(--echo-line); border-radius: .55rem; background: var(--echo-white); color: var(--echo-ink); }
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid rgba(8, 120, 63, .2); border-color: var(--echo-green); }
.contact-form__honeypot { position: absolute; left: -9999px; }
.contact-form__notice { padding: 1rem; border-radius: .65rem; background: var(--echo-green-light); color: var(--echo-green-dark); font-weight: 700; }
.contact-form__notice--error { background: #fbe9e5; color: #983c25; }
@media (max-width: 640px) { .contact-form { grid-template-columns: 1fr; } .contact-form__field, .contact-form__field:nth-of-type(4), .contact-form__field:nth-of-type(5), .contact-form > p:last-child { grid-column: auto; } }

.site-footer { background: #0b1711; color: #d8e4db; }
.footer-inner { width: var(--echo-content); margin: auto; padding: 2rem 0; display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; }
.footer-inner p { margin: 0; }
.footer-inner a { color: inherit; }
.footer-brand { display: inline-flex; align-items: center; gap: .7rem; }
.footer-crest { width: 2.25rem; height: 2.25rem; object-fit: contain; }

@media (max-width: 780px) {
  .header-inner { min-height: 4.2rem; }
  .brand-text { font-size: .85rem; }
  .primary-nav ul { gap: 0; }
  .primary-nav a { padding: .45rem; font-size: .78rem; }
  .hero-inner, .club-panel { grid-template-columns: 1fr; }
  .hero { padding-top: 4.5rem; }
  .hero-art { order: -1; }
  .target-art { width: min(16rem, 65vw); }
  .discipline-grid, .news-grid { grid-template-columns: 1fr; }
  .discipline-card { min-height: 0; }
  .discipline-card .card-icon { margin-bottom: 2rem; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 1rem; }
}

@media (max-width: 480px) {
  :root { --echo-content: min(100% - 1.5rem, 1120px); }
  .brand small, .primary-nav li:nth-child(3) { display: none; }
  .club-panel__details { grid-template-columns: 1fr; }
  .footer-inner { display: block; }
  .footer-inner p + p { margin-top: .5rem; }
}
