/* lokaler Font */
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #1e7f3b;
  --secondary: #0f3d22;
  --accent: #f4c430;
  --bg: #f2f5f3;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: #333;
}

header {
  height: 75vh;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
              url('../image/diemannschaft.JPG');
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  animation: fadeIn 1.5s ease;
}

header h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

nav {
  position: sticky;
  top: 0;
  background: var(--secondary);
  padding: 15px;
  text-align: center;
  z-index: 1000;
}

nav a {
  color: white;
  margin: 0 15px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--accent);
}

section {
  padding: 80px 20px;
  max-width: 1100px;
  margin: auto;
  animation: slideUp 1s ease;
}

h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--secondary);
}

.centered {
  text-align: center;
  max-width: 800px;
  margin: auto;
}

/* Mannschaft */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.player {
  background: white;
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.player:hover {
  transform: translateY(-8px);
}

.player h3 {
  margin: 0 0 8px;
  color: var(--secondary);
}

.player p {
  margin: 0;
  color: #666;
}

/* Spielplan */
.schedule {
  text-align: center;
}

.league {
  color: #666;
  margin-top: -25px;
  margin-bottom: 30px;
}

.games {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.game {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.game p {
  margin: 8px 0;
}

.game details {
  margin-top: 10px;
}

.game summary {
  cursor: pointer;
  color: var(--primary);
  font-weight: 600;
}

.game ul {
  margin: 10px 0;
  padding-left: 20px;
}

.vote {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.vote label {
  font-weight: 600;
  color: var(--secondary);
}

.vote select {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: inherit;
  margin-left: 8px;
}

.vote button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.3s;
}

.vote button:hover {
  background: var(--secondary);
}

.vote button[data-answer="Nein"] {
  background: #b03a2e;
}

.vote button[data-answer="Nein"]:hover {
  background: #7e281d;
}

/* Abstimmungs-Stand pro Spiel */
.tally {
  flex-basis: 100%;
  margin-top: 5px;
  padding: 10px 14px;
  background: #f7f9f7;
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.tally-row + .tally-row {
  margin-top: 4px;
}

.tally-ja strong {
  color: #1e7e34;
}

.tally-nein strong {
  color: #b03a2e;
}

/* Kontaktformular */
form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input, textarea, select {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: inherit;
}

form button {
  background: var(--accent);
  border: none;
  padding: 12px;
  border-radius: 30px;
  font-weight: bold;
  font-family: inherit;
  cursor: pointer;
}

.privacy {
  font-size: 0.85rem;
  color: #666;
}

#form-status {
  text-align: center;
  font-weight: 600;
  min-height: 1.5em;
}

/* Footer */
footer {
  background: var(--secondary);
  color: white;
  text-align: center;
  padding: 25px;
}

.footer-logo {
  width: 250px;
  margin-bottom: 15px;
}

footer a {
  color: white;
}

/* Animationen */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Smartphone-Optimierung */
@media (max-width: 768px) {
  header {
    height: 60vh;
    padding: 20px;
  }

  header h1 {
    font-size: 2rem;
  }

  header p {
    font-size: 1rem;
  }

  nav {
    padding: 10px;
  }

  nav a {
    display: inline-block;
    margin: 6px;
    font-size: 0.9rem;
  }

  section {
    padding: 50px 15px;
  }

  h2 {
    font-size: 1.6rem;
  }

  form {
    width: 100%;
  }

  .footer-logo {
    width: 250px;
  }
}
