/* BVBM Bürgermedienpreis – Formular (Theme-konform) */
.bvbm-bmp {
  margin: 2.2rem 0 1rem;
  padding: 1.5rem 1.35rem 1.75rem;
  background: var(--bvbm-lightgrey, #F4F4F4);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
}

.bvbm-bmp h2 {
  margin-top: 0;
}

.bvbm-bmp__lead {
  margin: 0.6rem 0 0.85rem;
  max-width: none;
  width: 100%;
}

.bvbm-bmp__note {
  margin: 0 0 1.25rem;
  max-width: none;
  width: 100%;
  font-size: 0.95rem;
  color: #444;
}

.bvbm-bmp a.bvbm-bmp__doclink {
  color: var(--bvbm-green, #008080);
  font-weight: 700;
  text-decoration: underline;
}

.bvbm-bmp a.bvbm-bmp__doclink:hover {
  color: #006666;
}

.bvbm-bmp__req {
  color: #a33;
  font-weight: 700;
}

.bvbm-bmp__fieldset {
  border: 0;
  margin: 0 0 1.55rem;
  padding: 0;
}

/* Abschnittsüberschriften: nicht türkis, sondern sachlich mit Akzentlinie */
.bvbm-bmp__fieldset legend {
  display: block;
  width: 100%;
  float: left; /* damit Legend volle Breite nutzt */
  margin: 0 0 0.95rem;
  padding: 0 0 0.45rem;
  color: #111;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
  border-bottom: 2px solid rgba(0, 128, 128, 0.35);
}

.bvbm-bmp__fieldset::after {
  content: "";
  display: table;
  clear: both;
}

.bvbm-bmp__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.15rem;
  clear: both;
}

.bvbm-bmp__full {
  grid-column: 1 / -1;
}

.bvbm-bmp label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

/* Alle Eingabefelder einheitlich wie E-Mail */
.bvbm-bmp input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
.bvbm-bmp select,
.bvbm-bmp textarea {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid #c4c4c4;
  border-radius: 8px;
  background-color: #fff;
  color: #111;
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  min-height: 2.75rem;
  box-shadow: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.bvbm-bmp select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23555555' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.2rem;
}

.bvbm-bmp textarea {
  min-height: 110px;
  resize: vertical;
}

/* Datei-Auswahl: Button in Theme-Schrift */
.bvbm-bmp input[type="file"] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.45rem 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  color: #111;
  box-shadow: none;
  outline: none;
}

.bvbm-bmp input[type="file"]::file-selector-button {
  margin-right: 0.85rem;
  padding: 0.55rem 1rem;
  border: 1px solid #c4c4c4;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

.bvbm-bmp input[type="file"]::-webkit-file-upload-button {
  margin-right: 0.85rem;
  padding: 0.55rem 1rem;
  border: 1px solid #c4c4c4;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

/* Focus: nur einfache Umrandung, kein Outline/Glow */
.bvbm-bmp input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):focus,
.bvbm-bmp select:focus,
.bvbm-bmp textarea:focus {
  outline: none;
  border: 1px solid #888;
  box-shadow: none;
}

.bvbm-bmp input[type="file"]:focus {
  outline: none;
}

.bvbm-bmp input[type="file"]:focus::file-selector-button,
.bvbm-bmp input[type="file"]:focus::-webkit-file-upload-button {
  border-color: #888;
}

.bvbm-bmp__hint {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  color: #555;
}

.bvbm-bmp__check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0.85rem 0;
  font-weight: 400;
}

.bvbm-bmp__check input {
  width: auto;
  min-height: 0;
  margin-top: 0.3rem;
  flex: 0 0 auto;
  -webkit-appearance: auto;
  appearance: auto;
}

.bvbm-bmp__progress {
  height: 12px;
  background: #e0e0e0;
  border-radius: 99px;
  overflow: hidden;
  margin: 1rem 0 0.5rem;
}

.bvbm-bmp__bar {
  height: 100%;
  width: 0;
  background: var(--bvbm-green, #008080);
  transition: width 0.2s ease;
}

.bvbm-bmp__status {
  min-height: 1.25em;
  font-size: 0.92rem;
  color: #555;
  margin: 0.35rem 0 1rem;
}

.bvbm-bmp__submit {
  display: inline-block;
  border: 1px solid var(--bvbm-green, #008080);
  background: var(--bvbm-green, #008080);
  color: #fff !important;
  border-radius: 16px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.bvbm-bmp__submit:hover {
  filter: brightness(0.95);
}

.bvbm-bmp__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.bvbm-bmp__message {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  display: none;
}

.bvbm-bmp__message--ok,
.bvbm-bmp__message--err {
  display: block;
}

.bvbm-bmp__message--ok {
  background: #e7f6ef;
  border: 1px solid #b7e0c9;
}

.bvbm-bmp__message--err {
  background: #fdeaea;
  border: 1px solid #efc0c0;
}

/* Keine Icon-Prefixes vor Formular-Links */
.bvbm-bmp a:before {
  display: none !important;
}

@media (max-width: 650px) {
  .bvbm-bmp {
    padding: 1.15rem 1rem 1.35rem;
  }
  .bvbm-bmp__grid {
    grid-template-columns: 1fr;
  }
  .bvbm-bmp__full {
    grid-column: auto;
  }
}
