/* ==========================================================================
   VEREINSFARBEN: TSV 1972 Biebelried e.V.
   ========================================================================== */
:root {
  --primary-color: #003bde;       /* Das leuchtende Vereinsblau */
  --primary-hover: #002ab0;       /* Dunkleres Blau für Hover-Effekte */
  --accent-color: #ffd700;        /* Gelb aus dem Kreuz & den Ringen */
  --bg-color: #f2f5fa;            /* Heller Hintergrund mit minimaler Blaunote */
  --card-bg: #ffffff;             /* Weiß aus dem Logo */
  --text-main: #1a202c;           /* Haupttextfarbe */
  --text-muted: #64748b;          /* Nebentextfarbe */
  --border-color: #cbd5e1;        /* Subtile Rahmenfarbe */
  --error-color: #e11d48;         /* Fehlerfarbe */
  --radius: 12px;                  
  --shadow: 0 10px 25px -5px rgba(0, 59, 222, 0.12);
}

/* ==========================================================================
   BASIS STYLES
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  display: flex;
  justify-content: center;
  padding: 30px 12px;
  line-height: 1.5;
}

.container {
  background: var(--card-bg);
  width: 100%;
  max-width: 680px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 28px;
  border-top: 6px solid var(--primary-color);
}

.header {
  text-align: center;
  margin-bottom: 32px;
}

.logo-container {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

#club-logo {
  max-height: 120px;
  max-width: 100%;
  object-fit: contain;
}

h1 {
  font-size: 1.9rem;
  color: var(--primary-color);
  margin-bottom: 6px;
  font-weight: 700;
}

.header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   FORMULAR ELEMENTE
   ========================================================================== */
.form-group {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-color);
}

.form-group:last-of-type {
  border-bottom: none;
}

.section-title {
  display: block;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.required {
  color: var(--error-color);
}

textarea, input[type="text"], input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s;
  outline: none;
}

textarea:focus, input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 59, 222, 0.15);
}

/* Radio Button Cards (Option 1 & 5) */
.radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .radio-group {
    grid-template-columns: 1fr;
  }
}

.radio-card {
  position: relative;
  cursor: pointer;
}

.radio-card input {
  position: absolute;
  opacity: 0;
}

.card-content {
  display: block;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  transition: all 0.2s ease;
  background-color: #fff;
}

.radio-card input:checked + .card-content {
  border-color: var(--primary-color);
  background-color: rgba(0, 59, 222, 0.06);
  color: var(--primary-color);
}

/* 1-10 Skala (Option 3) */
.scale-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.rating-scale {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
}

@media (max-width: 550px) {
  .rating-scale {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }
}

.rating-box {
  cursor: pointer;
}

.rating-box input {
  position: absolute;
  opacity: 0;
}

.rating-box span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.2s ease;
  background: #fff;
}

.rating-box input:checked + span {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.rating-box:hover span {
  border-color: var(--primary-color);
}

/* Kontaktdaten */
.contact-fields {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-color);
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid var(--accent-color);
}

.hidden {
  display: none !important;
}

.input-wrapper label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}

/* Button & Error Handling */
.submit-btn {
  width: 100%;
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.submit-btn:hover {
  background-color: var(--primary-hover);
}

.submit-btn:active {
  transform: scale(0.99);
}

.error-msg {
  display: none;
  color: var(--error-color);
  font-size: 0.85rem;
  margin-top: 6px;
  font-weight: 500;
}

.error-msg.visible {
  display: block;
}

.success-card {
  text-align: center;
  padding: 40px 20px;
}

.success-card h2 {
  color: var(--primary-color);
  margin-bottom: 12px;
}