
:root{
  --pvdf-accent:#1d4ed8;
  --pvdf-accent2:#45a3ff;
  --pvdf-grad-dark:#0b3dd1;
  --pvdf-grad-light:#45a3ff;
  --pvdf-text:#121826;
  --pvdf-muted:rgba(18,24,38,.65);
  --pvdf-border:rgba(26,24,24,.12);
  --pvdf-card:rgba(255,255,255,.88);
  --pvdf-overlay:rgba(8,12,20,.55);
  --pvdf-shadow:0 24px 90px rgba(0,0,0,.35);
  --pvdf-radius:18px;
  --pvdf-radius2:14px;
  --pvdf-font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

@keyframes pvdfw { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }

.pvdf-open-btn, .pvdf-btn-primary{
  font-family: var(--pvdf-font);
  border:0;
  cursor:pointer;
  color:#fff;
  padding:12px 18px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--pvdf-grad-dark), var(--pvdf-grad-light), var(--pvdf-grad-dark));
  background-size:200% 200%;
  animation: pvdfw 4s ease-in-out infinite;
  box-shadow:0 10px 26px rgba(29,78,216,.28);
}
.pvdf-open-btn:hover, .pvdf-btn-primary:hover{ transform: translateY(-1px); }
.pvdf-open-btn:active, .pvdf-btn-primary:active{ transform: translateY(0px); }
/* Theme/Pagebuilder ::before / ::after im Plugin-Bereich hart abschalten */
.pvdf-open-btn::before,
.pvdf-open-btn::after,
.pvdf-modal-overlay::before,
.pvdf-modal-overlay::after,
.pvdf-modal::before,
.pvdf-modal::after,
.pvdf-modal *::before,
.pvdf-modal *::after {
  content: none !important;
  display: none !important;
  background: none !important;
  box-shadow: none !important;
}
.pvdf-modal-overlay{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background: var(--pvdf-overlay);
  z-index: 99999;
  padding: 22px;
}
.pvdf-modal-overlay.is-open{ display:flex; }

.pvdf-modal{
  width: min(980px, 96vw);
  height: min(86vh, 760px); /* stays constant across steps */
  background: rgba(255,255,255,.80);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border:1px solid rgba(255,255,255,.35);
  border-radius: var(--pvdf-radius);
  box-shadow: var(--pvdf-shadow);
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

.pvdf-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 18px 18px 12px 18px;
  border-bottom: 1px solid rgba(255,255,255,.35);
  background: linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,.35));
}
.pvdf-brand{ display:flex; gap:12px; align-items:center; }
.pvdf-brand-mark{
  width: auto;
  height: auto;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  font-weight: inherit;
  background: transparent !important;
  animation: none !important;
  box-shadow: none !important;
  overflow: visible;
}

.pvdf-logo{
  width:28px;
  height:28px;
  display:block;
  object-fit:contain;
}
.pvdf-brand-name{ font-weight:800; color:var(--pvdf-text); line-height:1.1; }
.pvdf-brand-sub{ font-size: 13px; color: var(--pvdf-muted); margin-top: 2px; }

.pvdf-steps{ display:flex; gap:8px; align-items:center; }
.pvdf-step-dot{
  width:10px; height:10px; border-radius:999px;
  background: rgba(18,24,38,.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
.pvdf-step-dot.is-active{
  width:18px;
  background: linear-gradient(120deg, var(--pvdf-grad-dark), var(--pvdf-grad-light), var(--pvdf-grad-dark));
  background-size:200% 200%;
  animation: pvdfw 4s ease-in-out infinite;
}

.pvdf-close{
  border:0; cursor:pointer;
  width:42px;height:42px;border-radius:14px;
  color:#fff;font-size:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height: 1;
  background: linear-gradient(120deg, var(--pvdf-grad-dark), var(--pvdf-grad-light), var(--pvdf-grad-dark));
  background-size:200% 200%;
  animation: pvdfw 4s ease-in-out infinite;
  box-shadow:0 10px 26px rgba(29,78,216,.22);
}

.pvdf-body{
  flex: 1 1 auto;
  min-height: 0;
  overflow:auto;
  padding: 18px;
}
.pvdf-footer{
  padding: 14px 18px 18px 18px;
  display:flex;
  justify-content:space-between;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,.35);
  background: linear-gradient(0deg, rgba(255,255,255,.65), rgba(255,255,255,.35));
}

.pvdf-btn{
  font-family: var(--pvdf-font);
  border:0; cursor:pointer;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 700;
  transition: transform .12s ease, opacity .12s ease;
}
.pvdf-btn:disabled{ opacity:.55; cursor:not-allowed; }
.pvdf-btn-secondary{
  background: rgba(255,255,255,.85);
  color: var(--pvdf-text);
  box-shadow: inset 0 0 0 1px var(--pvdf-border);
}
.pvdf-btn-secondary:hover{ transform: translateY(-1px); }
.pvdf-btn-primary{ min-width: 140px; }

.pvdf-h2{
  margin: 0 0 6px 0;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.01em;
  color: var(--pvdf-text);
}
.pvdf-muted{ margin:0 0 14px 0; color: var(--pvdf-muted); }

.pvdf-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pvdf-field label{
  display:block;
  font-size: 13px;
  color: rgba(18,24,38,.85);
  margin-bottom: 6px;
  font-weight: 700;
}
.pvdf-field input, .pvdf-field textarea{
  width:100%;
  border-radius: 14px;
  padding: 12px 12px;
  border: 1px solid var(--pvdf-border);
  background: rgba(255,255,255,.85);
  font-family: var(--pvdf-font);
  color: var(--pvdf-text);
  outline: none;
}
.pvdf-field textarea{ resize: vertical; min-height: 90px; }
.pvdf-field input:focus, .pvdf-field textarea:focus{
  border-color: color-mix(in oklab, var(--pvdf-accent) 45%, white);
  box-shadow: 0 0 0 4px rgba(29,78,216,.12);
}
.pvdf-wide{ grid-column: 1 / -1; }
.pvdf-req{ color: var(--pvdf-accent); margin-left: 4px; }

.pvdf-privacy{ margin-top: 12px; }
.pvdf-check{ display:flex; gap:10px; align-items:flex-start; color: var(--pvdf-muted); }
.pvdf-check input{ margin-top: 4px; }
.pvdf-check a{ color: var(--pvdf-accent); text-decoration: none; }
.pvdf-check a:hover{ text-decoration: underline; }

.pvdf-drop{
  border-radius: var(--pvdf-radius2);
  background: var(--pvdf-card);
  border:1px dashed rgba(29,78,216,.28);
  padding: 18px;
  text-align:center;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
}
.pvdf-drop.is-drag{ border-color: var(--pvdf-accent); box-shadow: 0 0 0 4px rgba(29,78,216,.12); }
.pvdf-drop-title{ font-weight: 850; color: var(--pvdf-text); font-size: 16px; }
.pvdf-drop-sub{ color: var(--pvdf-muted); margin: 6px 0; }
.pvdf-drop-hint{ margin-top: 10px; color: var(--pvdf-muted); font-size: 13px; }

.pvdf-filelist{ margin-top: 14px; display:flex; flex-direction:column; gap:10px; }
.pvdf-file{
  display:flex; align-items:center; justify-content:space-between;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--pvdf-border);
}
.pvdf-file-name{ font-weight: 750; color: var(--pvdf-text); }
.pvdf-file-meta{ color: var(--pvdf-muted); font-size: 12px; }
.pvdf-file-remove{
  border:0; cursor:pointer;
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(18,24,38,.06);
  color: var(--pvdf-text);
}
.pvdf-file-remove:hover{ background: rgba(18,24,38,.10); }

.pvdf-alert{
  margin-top: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(239,68,68,.35);
  color: rgba(153,27,27,.95);
}
.pvdf-success{
  margin-top: 12px;
  padding: 14px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(34,197,94,.35);
  color: rgba(22,101,52,.95);
}

.pvdf-summary{
  border-radius: var(--pvdf-radius2);
  background: var(--pvdf-card);
  border: 1px solid rgba(255,255,255,.45);
  padding: 14px;
}

@media (max-width: 560px){
  .pvdf-modal{ width: calc(100vw - 12px); height: calc(100vh - 12px); border-radius: 16px; }
  .pvdf-grid{ grid-template-columns: 1fr; }
  .pvdf-modal-overlay{ padding: 6px; }
}

/* Autofill detection (Chrome/WebKit) so the "Weiter" button enables even when fields are auto-filled */
@keyframes pvdfAutofill { from { } to { } }
input:-webkit-autofill,
textarea:-webkit-autofill{
  animation-name: pvdfAutofill;
  animation-duration: 0.01s;
}
#pvdfFiles,
.pvdf-hidden-file-input{
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}