/* ============================================================
   Stockschützen Wolfersdorf – öffentlicher Bereich
   Modernes Stylesheet (nur index/kontakt/satzung/impressum)
   ============================================================ */

:root {
  --accent: #ea7a1c;
  --accent-600: #c75f00;
  --accent-700: #a44f00;
  --ink: #1f2733;
  --muted: #5b6676;
  --bg: #eef1f6;
  --card: #ffffff;
  --border: #e4e8ef;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(24, 39, 64, .08);
  --shadow-sm: 0 2px 8px rgba(24, 39, 64, .06);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 24px 16px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

#wrapper {
  max-width: 1080px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* ---------- Kopfbereich ---------- */

header {
  margin: 0;
}

#headertop {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 28px 32px;
  background: linear-gradient(135deg, #2b3242 0%, #3c4355 100%);
  color: #fff;
}

#headerimage {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  margin: 0;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

#headerimage img {
  width: 100%;
  height: auto;
}

.headertextlarge {
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 700;
  letter-spacing: .5px;
  line-height: 1.1;
  margin: 0;
  text-align: left;
  font-variant: normal;
  text-shadow: none;
}

.headertextsmall {
  color: var(--accent);
  font-size: clamp(.85rem, 2vw, 1rem);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 6px 0 0;
  text-align: left;
  text-shadow: none;
}

/* ---------- Navigation ---------- */

#headerbottom {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

#subnavi {
  padding: 0;
}

.navi {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 10px 16px;
  font-size: 1.02rem;
  text-shadow: none;
}

.navi a:link,
.navi a:active,
.navi a:visited {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  padding: 9px 16px;
  margin: 0;
  border-radius: 10px;
  transition: color .15s ease, background-color .15s ease;
}

.navi a:hover,
.navi a:focus {
  color: var(--accent-700);
  background-color: #fbe9d6;
  text-decoration: none;
}

/* ---------- Inhalt ---------- */

main {
  padding: 8px 32px 24px;
  margin: 0;
  display: block;
}

article {
  padding: 16px 0 0;
  font-size: 1rem;
  text-align: left;
  line-height: 1.75;
}

article h1 {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  margin: 36px 0 18px;
  color: var(--ink);
  letter-spacing: .3px;
  padding: 0 0 12px;
  border-bottom: 3px solid var(--accent);
}

article h1:first-child {
  margin-top: 12px;
}

article h2 {
  color: var(--ink);
  font-size: 1.5rem;
  margin: 28px 0 12px;
  padding: 0;
}

article h3 {
  color: var(--accent-700);
  font-size: 1.3rem;
  font-style: normal;
  font-weight: 600;
  padding: 0;
  margin: 22px 0 10px;
}

article h4 {
  color: var(--accent-700);
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0 0 6px;
  padding: 0;
  letter-spacing: .3px;
  text-align: left;
}

article h5 {
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 26px 0 8px;
  padding: 10px 0 0;
  border-top: 1px solid var(--border);
}

article p {
  margin: 10px 0;
  color: #2c3542;
}

article a:link,
article a:visited,
article a:active {
  color: var(--accent-600);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease;
}

article a:hover {
  border-bottom-color: var(--accent-600);
}

/* Listen */

article ul {
  padding: 0;
  margin: 10px 0 10px 4px;
  list-style: none;
}

article ul li {
  position: relative;
  padding: 2px 0 2px 24px;
}

article ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

article ol {
  margin: 10px 0 10px 22px;
  padding: 0;
  line-height: 1.6;
}

/* Tabellen (z. B. Vorstandschaft) */

article table {
  text-align: left;
  width: 100%;
  border-collapse: separate;
  border-spacing: 16px;
  margin: 8px -16px;
}

article table td {
  vertical-align: top;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}

article table td h4 {
  margin-bottom: 8px;
}

article table td p {
  margin: 0;
  color: var(--muted);
}

/* Ergebnisliste */

article table.erglist {
  border-spacing: 0;
  border-collapse: collapse;
  background: #f8fafc;
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
  overflow: hidden;
  font-size: .92rem;
  line-height: 1.5;
  margin: 10px 0;
}

article table.erglist td {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 8px 12px;
}

/* Karten / Bilder / iframes */

article img {
  border: 0;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

article iframe {
  width: 100%;
  border: 0;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

/* ---------- Fußbereich ---------- */

footer {
  color: var(--muted);
  margin: 0;
  padding: 22px 32px;
  text-align: center;
  font-size: .9rem;
  background: #f8fafc;
  border-top: 1px solid var(--border);
}

.copyright {
  font-size: .75rem;
  text-align: center;
  font-weight: 400;
}

.clear {
  clear: both;
  line-height: 0;
}

/* ---------- Responsiv ---------- */

@media (max-width: 760px) {
  body {
    padding: 12px 10px;
  }

  #headertop {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    padding: 24px 20px;
  }

  .headertextlarge,
  .headertextsmall {
    text-align: center;
  }

  main {
    padding: 8px 18px 20px;
  }

  footer {
    padding: 18px 18px;
  }

  article table,
  article table tbody,
  article table tr,
  article table td {
    display: block;
    width: 100%;
  }

  article table {
    border-spacing: 0;
    margin: 8px 0;
  }

  article table td {
    margin-bottom: 12px;
  }
}
