/* ==== GLOBAL RESET & BASE ==== */
.funke-isolate *, .funke-isolate *::before, .funke-isolate *::after {
  all: unset;
  box-sizing: border-box;
  font-family: system-ui, sans-serif;
  color: inherit;
}
.funke-form.modern *, .funke-jury-wrapper * {
  all: revert-layer;
  font-family: inherit;
  box-sizing: border-box;
  line-height: 1.5;
  color: white;
}
/* ==== FORMULAR: CONTAINER ==== */
.funke-form.modern {
  width: 100%;
  max-width: 960px;
  margin: 3rem auto;
  padding: 2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.funke-form.modern input, .funke-form.modern select, .funke-form.modern textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: white !important;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  transition: all 0.2s ease;
}
.funke-form.modern select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg fill='white' height='18' viewBox='0 0 24 24' width='18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}
.funke-form.modern input::placeholder, .funke-form.modern textarea::placeholder {
  color: #ffffff99;
}
.funke-form.modern input:focus, .funke-form.modern select:focus, .funke-form.modern textarea:focus {
  border-color: #0073aa;
  background: rgba(0, 0, 0, 0.1);
  outline: none;
}
/* ==== GRID & LABELS ==== */
.funke-form.modern .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.funke-form.modern .form-group {
  display: flex;
  flex-direction: column;
}
.funke-form.modern label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: .5rem;
  display: block;
}
.funke-form.modern .form-grid h4 {
  grid-column: 1 / -1;
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: .5rem;
}
/* ==== RADIO/FIELDSET ==== */
.funke-form.modern fieldset.form-group {
  border: none;
  margin-bottom: 2rem;
}
.funke-form.modern fieldset legend {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.8rem;
  color: white;
}
/* Button-Wrapper für horizontale Anordnung */
.funke-form.modern .radio-toggle-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
/* Eingabe ausblenden */
.funke-form.modern input[type="radio"].hidden-radio {
  display: none;
}
/* Label als Button */
.funke-form.modern .radio-toggle-group label {
  flex: 1 1 auto;
  text-align: center;
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}
/* Hover-Effekt */
.funke-form.modern .radio-toggle-group label:hover {
  background: rgba(255, 255, 255, 0.15);
}
/* Aktiver Button (per JS gesetzt) */
.funke-form.modern .radio-toggle-group label.active {
  background: #ff000042;
  color: white;
  border-color: #ff0000b3;
}
/* ==== DROPZONE ==== */
.funke-form.modern .upload-group {
  margin-top: 2rem;
}
.funke-form.modern .dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.65);
  background: transparent;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  color: white;
  transition: background 0.2s ease;
  backdrop-filter: blur(10px) brightness(0.5);
  -webkit-backdrop-filter: blur(10px) brightness(0.5);
}
.funke-form.modern .dropzone:hover {
  background: rgba(255, 255, 255, 0.02);
}
.dropzone .filename-display {
  text-align: center;
  margin-top: 8px;
  font-weight: 500;
  color: #ffffffaa;
  font-size: 0.9rem;
}
.dropzone.has-file .filename-display {
  color: #28c76f;
}
#preview-image {
  margin-top: 0.8rem;
  max-height: 100px;
  display: none;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
/* ==== BUTTON ==== */
.funke-form.modern .submit-wrapper {
  margin-top: 2rem;
}
.funke-form.modern .submit-btn {
  display: inline-block;
  width: 100%;
  padding: 24px 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
}
.funke-form.modern .submit-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
/* ==== FEHLER ==== */
.field-error {
  color: red;
  font-size: 0.85em;
  margin-top: 4px;
}
input.has-error, select.has-error {
  border-color: red !important;
}
/* ==== RESPONSIVE ==== */
@media (max-width: 768px) {
  .funke-form.modern .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .funke-form.modern {
    padding: 1.25rem;
  }
  .funke-form.modern .form-grid {
    grid-template-columns: 1fr;
  }
  .funke-form.modern .submit-btn {
    font-size: 0.95rem;
  }
}
/* ==== JURY: WIDGET ==== */
.funke-jury {
  margin: 40px auto;
  padding: 74px;
  border-radius: 12px;
  border: 1px solid #ffffff24;
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
  background: transparent;
}
.funke-jury-progress {
  margin-bottom: 24px;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
}
.jury-category-heading {
  margin: 24px 0 12px;
  font-size: 20px;
  font-weight: bold;
  border-bottom: 2px solid #ffffff52;
  padding-bottom: 4px;
}
/* ==== JURY: KARTEN ==== */
.funke-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  justify-items: stretch;
}
.funke-jury-card {
  background: #ffffff0d;
  border: 1px solid #ffffff29;
  padding: 1.2rem;
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: all 0.25s ease;
  position: relative;
}
.funke-jury-card:hover {
  background: #ffffff15;
}
.funke-jury-card.read {
  opacity: 0.5;
}
.funke-jury-card.selected {
  background: #00ff953b;
  outline: 2px solid #28c76f;
  box-shadow: 0 0 0 2px #28c76f40;
}
.funke-jury-card-meta {
  font-size: 1.1rem;
  line-height: 1.4;
  color: #eee;
}
.funke-jury-card-meta strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}
.funke-jury-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 6px;
}
.funke-jury-card-links a {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: white;
  text-decoration: none;
  transition: background 0.2s ease;
}
.funke-jury-card-links a:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
}
.funke-jury-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
/* ==== JURY: VOTE BUTTON ==== */
.funke-vote-button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 18px;
  border-radius: 12px;
  color: white;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s ease;
}
.funke-vote-button:hover {
  background: rgba(255, 255, 255, 0.15);
}
.funke-vote-button.selected {
  background: #28c76f;
  color: white;
  font-weight: bold;
  border-color: #28c76f;
}
/* ==== JURY: Checkbox (nicht mehr genutzt) ==== */
.funke-read-checkbox {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}
.funke-read-checkbox:checked {
  background: #28c76f;
  border-color: #28c76f;
  box-shadow: 0 0 4px #28c76f88;
}
.funke-read-checkbox:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 6px;
  width: 4px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
/* ==== JURY: Gelesen-Button ==== */
.funke-read-button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.funke-read-button:hover {
  background: rgba(255, 255, 255, 0.15);
}
.funke-read-button.read-done {
  background: #28c76f;
  border-color: #28c76f;
  color: white;
  font-weight: 600;
}
/* ==== JURY: Formular unten ==== */
#jury-info-form {
  margin-top: 30px;
  width: 100%;
  padding: 2rem;
  border-radius: 16px;
  background: #ffffff08;
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
  border: 1px solid #ffffff26;
  max-width: 100%;
  box-sizing: border-box;
}
#jury-info-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: white;
}
#jury-info-form input {
  width: 100%;
  padding: 10px;
  margin-bottom: 16px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #f9f9f9;
  color: #111 !important;
}
#jury-info-form input::placeholder {
  color: #111 !important;
}
#jury-info-form input:focus {
  border-color: #0073aa;
  outline: none;
  background: #fff;
}
#jury-info-form .submit-wrapper {
  margin-top: 2rem;
}
#jury-info-form .submit-wrapper button, button.funke-load-more {
  display: inline-block;
  width: 100%;
  padding: 24px 32px;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 15px;
  background-color: rgb(255 0 0 / 18%);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
}
#jury-info-form .submit-wrapper button:hover, button.funke-load-more:hover {
  background-color: rgb(255 0 0 / 22%);
}
button.funke-load-more {
  margin-top: 20px;
}
#jury-info-form .submit-wrapper button {
  background-color: #27c76f4f;
}
.funke-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.dropzone .filename-display {
  text-align: center;
  margin-top: 8px;
  font-weight: 500;
  color: #ffffffaa;
  font-size: 0.9rem;
}
.dropzone.has-file .filename-display {
  color: #28c76f;
}
/* ==== FORMULAR: SUBMIT Sichtbarkeit ==== */
.funke-form.modern .submit-wrapper {
  display: none;
  margin-top: 2rem;
}
.funke-form.modern .submit-wrapper.visible {
  display: block;
}
#funke_jury_password {
  width: 100%;
}
.jury-login button {
  width: 100%;
}
.jury-login button:hover {
  background-color: #ffffff0f;
  border: 1px solid #ffffff5c;
}
.jury-login {
  max-width: 500px;
  margin: 0 auto;
  border: 1px solid #ffffff45;
  padding: 40px 50px;
  border-radius: 18px;
  backdrop-filter: blur(11px);
  background: #ffffff12;
  margin-top: 10px;
  margin-bottom: 10px;
}
.jury-category-heading {
  letter-spacing: 0;
  color: white;
}
.submit-wrapper {
  display: none;
}
.submit-wrapper.visible {
  display: block;
}
#funke-form-success {
  text-align: center;
  background: #4caf5066;
  max-width: 600px;
  margin: 0 auto;
  border-radius: 10px;
  padding: 30px;
  backdrop-filter: blur(12px);
  border: 1px solid #4CAF50;
}
.form-errors {
  text-align: center;
  background: #ff000059;
  max-width: 600px;
  margin: 0 auto;
  border-radius: 10px;
  padding: 30px;
  backdrop-filter: blur(12px);
  border: 1px solid #d82611;
}
span.error-strike {
  font-size: 60px;
  margin: 0 0 27px 0;
  display: block;
  font-weight: 800;
}
.sucess-jury {
    text-align: center;
    font-size: 20px;
    margin: 0;
}
/* ==== RESPONSIVE JURY-CARDS ==== */
@media (max-width: 1024px) {
  .funke-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .funke-card-grid {
    grid-template-columns: 1fr;
  }
}
/* ==== JURY FORMULAR GRID ==== */
#jury-info-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1024px) {
  #jury-info-form .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  #jury-info-form .form-grid {
    grid-template-columns: 1fr;
  }
}