/**
 * BD Gewinnspiel – Frontend Styles
 */

/* ── Widget Container ── */
.s7gw-widget,
.s7gw-validate-widget {
  max-width: 520px;
  margin: 0 auto;
  font-family: 'Oswald', sans-serif;
}

/* ── Buttons (global) ── */
.s7gw-widget [type=button],
.s7gw-widget [type=submit],
.s7gw-widget button,
.s7gw-validate-widget [type=button],
.s7gw-validate-widget [type=submit],
.s7gw-validate-widget button {
  background-color: #fff;
  border: 1px solid #fff;
  border-radius: 30px;
  color: #000;
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  padding: .75rem 1.25rem;
  text-align: center;
  transition: all .3s;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  white-space: nowrap;
  cursor: pointer;
  line-height: 1.3;
}

.s7gw-widget [type=button]:focus,
.s7gw-widget [type=button]:hover,
.s7gw-widget [type=submit]:focus,
.s7gw-widget [type=submit]:hover,
.s7gw-widget button:focus,
.s7gw-widget button:hover,
.s7gw-validate-widget [type=button]:focus,
.s7gw-validate-widget [type=button]:hover,
.s7gw-validate-widget [type=submit]:focus,
.s7gw-validate-widget [type=submit]:hover,
.s7gw-validate-widget button:focus,
.s7gw-validate-widget button:hover {
  background-color: #fff;
  color: #000;
  text-decoration: none;
}

.s7gw-widget button:active,
.s7gw-validate-widget button:active {
  transform: scale(0.97);
}

.s7gw-widget button:disabled,
.s7gw-validate-widget button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── CTA Wrapper ── */
.s7gw-step-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ── CTA Button ── */
.s7gw-btn-primary {
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ── Copy Button ── */
.s7gw-btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.s7gw-copy-icon {
  /* Kopier-Icon SVG */
}

.s7gw-copy-label {
  /* "Kopieren" Text */
}

/* ── DSGVO Hinweis ── */
.s7gw-dsgvo-note {
  margin-top: 14px;
  font-size: 0.78rem;
  color: #fff;
  line-height: 1.5;
  text-align: center;
}

.s7gw-dsgvo-note a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
}

/* ── Code Box ── */
.s7gw-code-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 1.0);
  margin-bottom: 10px;
  text-align: center;
}

.s7gw-code-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 2px solid #ffffff;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
  justify-content: space-between;
}

.s7gw-code {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 2px;
}

/* ── Loader ── */
.s7gw-loader {
  text-align: center;
  padding: 20px;
}

.s7gw-spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: s7gw-spin 0.7s linear infinite;
}

@keyframes s7gw-spin {
  to { transform: rotate(360deg); }
}

/* ── Validierung ── */
.s7gw-validate-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.s7gw-validate-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.s7gw-validate-input {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  font-size: 1rem;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 1px;
  border: 1px solid #fff;
  border-radius: 20px;
  background: transparent;
  color: #fff;
  text-transform: uppercase;
  outline: none;
  transition: all 0.3s;
}

.s7gw-validate-input:focus {
  background-color: #fff;
  color: #000;
}

.s7gw-validate-result {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.s7gw-validate-result.s7gw-valid {
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid #2ecc71;
  color: #2ecc71;
}

.s7gw-validate-result.s7gw-invalid {
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid #e74c3c;
  color: #e74c3c;
}
