/* Design angelehnt an www.sb-huensborn.de
   Grün:   #1C6701 (Header) · Akzent: #95C300
   Creme:  #FEFBEF (Hintergrund) · Text: #595149 / #453E38
   Schriften: Oswald (Überschriften), Roboto (Fließtext) */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #595149;
  background: #FEFBEF;
}

h1, h2, h3 {
  font-family: Oswald, 'Arial Narrow', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #453E38;
  line-height: 1.25;
}

a { color: #6ea002; }
a:hover { color: #1C6701; }

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Kopfbereich */
.site-header {
  background: #1C6701;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo { height: 48px; width: auto; }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.main-nav a {
  font-family: Oswald, sans-serif;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: .5px;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 3px;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.12); }
.main-nav a.active { color: #d8f36b; }
.admin-button {
  font-family: Oswald, sans-serif;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: .5px;
  color: #1C6701;
  background: #fff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 4px;
}
.admin-button:hover { background: #d8f36b; color: #1c2b00; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #1C6701 0%, #2e8a0b 60%, #4ba314 100%);
  color: #fff;
  padding: 36px 0 32px;
  border-bottom: 6px solid #95C300;
}
.hero h1 { color: #fff; margin: 0 0 4px; font-size: 40px; }
.hero p { margin: 0; color: rgba(255,255,255,.9); }

main { padding: 32px 20px 48px; }

/* Karten / Boxen */
.card {
  background: #fff;
  border: 1px solid #e7e2d2;
  border-radius: 6px;
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(69,62,56,.08);
}
.card h2:first-child { margin-top: 0; }

/* Formulare */
label { display: block; font-weight: 500; margin-bottom: 4px; color: #453E38; }
input[type=text], input[type=email], input[type=number], input[type=password] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cfc9b8;
  border-radius: 4px;
  background: #fff;
  font: inherit;
  color: #453E38;
}
input:focus { outline: 2px solid #95C300; outline-offset: 0; border-color: #95C300; }
.field { margin-bottom: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
@media (max-width: 620px) {
  .grid2,
  .grid3 { grid-template-columns: 1fr; }
}

.btn {
  display: inline-block;
  font-family: Oswald, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 16px;
  color: #fff;
  background: #1C6701;
  border: 0;
  border-radius: 4px;
  padding: 12px 28px;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: #95C300; color: #1c2b00; }
.btn-small { padding: 6px 14px; font-size: 13px; }
.btn-danger { background: #a33; }
.btn-danger:hover { background: #c44; color: #fff; }

/* Umschalter Einzel/Team */
.type-switch { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.type-switch label {
  flex: 1 1 200px;
  border: 2px solid #cfc9b8;
  border-radius: 6px;
  padding: 14px 18px;
  cursor: pointer;
  font-family: Oswald, sans-serif;
  text-transform: uppercase;
  text-align: center;
  font-size: 17px;
  background: #fff;
}
.type-switch input { margin-right: 8px; accent-color: #1C6701; }
.type-switch label:has(input:checked) {
  border-color: #1C6701;
  background: #f2f9e4;
  color: #1C6701;
}

.member-box {
  border-left: 4px solid #95C300;
  background: #fbfaf3;
  padding: 14px 18px;
  margin-bottom: 14px;
  border-radius: 0 4px 4px 0;
}
.member-box h3 { margin: 0 0 10px; font-size: 16px; }

.publish-card h3 { margin-top: 0; }
.publish-card form { margin: 0; }
.admin-mode-card h3 { margin-top: 0; }
.admin-name-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  min-width: 260px;
}
.admin-add-shooter {
  border-left: 4px solid #95C300;
  background: #fbfaf3;
  padding: 14px 18px;
  margin: 16px 0;
  border-radius: 0 4px 4px 0;
}
.admin-add-shooter h4 {
  margin: 0 0 10px;
  font-family: Oswald, sans-serif;
  text-transform: uppercase;
  font-size: 15px;
  font-weight: 500;
  color: #453E38;
}

.prize-note {
  border-left: 4px solid #95C300;
  background: #fbfaf3;
  padding: 12px 16px;
  margin: 16px 0 0;
  border-radius: 0 4px 4px 0;
}

/* Meldungen */
.msg { padding: 14px 18px; border-radius: 4px; margin-bottom: 20px; }
.msg-ok    { background: #eef7d8; border: 1px solid #95C300; color: #2f4a00; }
.msg-error { background: #fdeaea; border: 1px solid #d9534f; color: #7a1f1c; }
.msg-info  { background: #eaf2fd; border: 1px solid #7aa7d9; color: #1c3d6e; }

/* Tabellen */
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eee8d8; }
th {
  font-family: Oswald, sans-serif;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .5px;
  background: #1C6701;
  color: #fff;
}
tbody tr:nth-child(even) { background: #faf8ef; }
td.num, th.num { text-align: right; }
.rank { font-family: Oswald, sans-serif; font-size: 17px; color: #1C6701; font-weight: 600; }
tr.podium-1 td { background: #f5edc8; }
tr.podium-2 td { background: #ececec; }
tr.podium-3 td { background: #f3e3d3; }

.badge {
  display: inline-block;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 12px;
  background: #95C300;
  color: #1c2b00;
  font-weight: 500;
}
.badge-open { background: #e3ddc9; color: #595149; }

.stats { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.stat {
  flex: 1 1 140px;
  background: #1C6701;
  color: #fff;
  border-radius: 6px;
  padding: 16px 20px;
  text-align: center;
}
.stat b { display: block; font-family: Oswald, sans-serif; font-size: 32px; line-height: 1.1; }
.stat span { font-size: 13px; text-transform: uppercase; letter-spacing: .5px; opacity: .9; }

.muted { color: #a09a91; font-size: 14px; }

/* Fußzeile */
.site-footer {
  background: #453E38;
  color: #cfc9b8;
  padding: 20px 0;
  margin-top: 24px;
}
.site-footer a { color: #c3e264; }

/* Responsiv – kleine Screens / Smartphone */
@media (max-width: 640px) {
  .wrap { padding: 0 14px; }
  .card { padding: 18px 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  /* Breite Tabellen nicht quetschen, sondern in der Karte horizontal scrollen */
  .card table { min-width: 720px; }
  th, td { padding: 8px 10px; font-size: 14px; }
}
